zerosize-ptr: Fix compilation on OS/2 kLIBC.
[gnulib.git] / ChangeLog
blob357c231be860ebe547108b6d640cc1cb74bd3033
1 2021-01-19  KO Myung-Hun  <komh78@gmail.com>
3         zerosize-ptr: Fix compilation on OS/2 kLIBC.
4         * tests/zerosize-ptr.h [OS/2 kLIBC]: Don't use mmap().
6 2021-01-19  KO Myung-Hun  <komh78@gmail.com>
8         stddef: Fix compilation for max_align_t on OS/2 kLIBC.
9         * lib/stddef.in.h [OS/2 kLIBC]: Include <cstddef> in C++ mode.
11 2021-01-19  KO Myung-Hun  <komh78@gmail.com>
13         yield: Implement for OS/2 kLIBC.
14         * modules/yield (Depends-on): Add sched_yield.
16         sched_yield: Implement for OS/2 kLIBC.
17         * lib/sched_yield.c (sched_yield) [OS/2 kLIBC]: New implementation.
19 2021-01-19  KO Myung-Hun  <komh78@gmail.com>
21         spawn: Use special invocation for <spawn.h> on OS/2 kLIBC.
22         * lib/spawn.in.h: Use special invocation to include <spawn.h> properly
23         on OS/2 kLIBC.
25 2021-01-18  Bruno Haible  <bruno@clisp.org>
27         noreturn tests: Avoid test failure on Solaris 10/x86 with cc.
28         * tests/test-noreturn.c (main): Return 0.
30 2021-01-18  Bruno Haible  <bruno@clisp.org>
32         uninorm tests: Fix compilation error on Cygwin.
33         * tests/uninorm/test-nfc.c (n): Don't define when using a preinstalled
34         libunistring on Windows.
35         * tests/uninorm/test-nfd.c (n): Likewise.
36         * tests/uninorm/test-nfkc.c (n): Likewise.
37         * tests/uninorm/test-nfkd.c (n): Likewise.
39 2021-01-17  Bruno Haible  <bruno@clisp.org>
41         immutable: Implement on native Windows.
42         * lib/immutable.h (IMMUTABLE_EFFECTIVE): Set to 1 on native Windows.
43         * lib/immutable.c: Include <windows.h>.
44         (CreateFileMapping): New macro.
45         (init_pagesize, init_mmap_file, alloc_pages, free_pages): Add
46         implementation for native Windows.
48 2021-01-17  Bruno Haible  <bruno@clisp.org>
50         canonicalize-lgpl tests: Fix link error.
51         * modules/canonicalize-lgpl-tests (Makefile.am): Link
52         test-canonicalize-lgpl with $(LIBINTL).
54 2021-01-17  Bruno Haible  <bruno@clisp.org>
56         canonicalize-lgpl: Work around // handling in realpath() of musl 1.2.2.
57         Reported by Natanael Copa <ncopa@alpinelinux.org> in
58         <https://lists.gnu.org/archive/html/bug-gettext/2021-01/msg00021.html>.
59         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add a test whether // is
60         the same as /, on Linux only.
61         * lib/canonicalize-lgpl.c: Correct indentation of preprocessor
62         directives.
63         * doc/posix-functions/realpath.texi: Mention the musl 1.2.2 bug.
65 2021-01-17  Bruno Haible  <bruno@clisp.org>
67         canonicalize[-lgpl] tests: Add more tests.
68         * tests/test-canonicalize.c (main): Add detailed tests for // handling.
69         * tests/test-canonicalize-lgpl.c (main): Likewise.
71 2021-01-17  Bruno Haible  <bruno@clisp.org>
73         argp tests: Avoid test failures on Alpine Linux.
74         * tests/test-argp-2.sh: Use the test framework (init.sh). Use the
75         'compare' function instead of 'diff -c'.
76         * tests/test-argp-version-etc-1.sh: Likewise.
78 2021-01-17  Bruno Haible  <bruno@clisp.org>
80         get-rusage-data tests: Avoid test failure on musl libc.
81         * modules/get-rusage-data-tests (Files): Add m4/musl.m4.
82         (configure.ac): Invoke gl_MUSL_LIBC.
83         * tests/test-get-rusage-data.c (main): Treat musl libc like glibc.
85 2021-01-17  Bruno Haible  <bruno@clisp.org>
87         immutable, get-rusage-data: Fix autoconf warning.
88         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Define through AC_DEFUN_ONCE.
90 2021-01-16  Bruno Haible  <bruno@clisp.org>
92         vma-iter: Port to 64-bit Haiku.
93         * lib/vma-iter.c (vma_iterate): Adapt to changed signature of
94         get_next_area_info.
96 2021-01-15  Bruno Haible  <bruno@clisp.org>
98         doc: Update doc about realpath.
99         * doc/posix-functions/realpath.texi: Update info about macOS.
101 2021-01-13  Paul Eggert  <eggert@cs.ucla.edu>
103         verify: simplify static_assert configuration
104         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1):
105         Do not define for C++.  This should be good enough nowadays,
106         since recent-enough C++ compilers have static_assert.
107         (_GL_HAVE_STATIC_ASSERT_CXX11, _GL_HAVE_STATIC_ASSERT_CXX17):
108         Remove.  All uses replaced by simply checking __cpp_static_assert.
110 2021-01-13  Simon Josefsson  <simon@josefsson.org>
112         lib-msvc-compat: Update libtool usage recommendation.
113         * doc/ld-output-def.texi (Visual Studio Compatibility): Install
114         .def files into libdir, not bindir.  Have libfoo-*.def file depend
115         on libfoo.la to fix parallell builds.
117 2021-01-12  Bruno Haible  <bruno@clisp.org>
119         verify: Use C++11 static_assert when available.
120         Reported by Alexandre Duret-Lutz <adl@lrde.epita.fr> in
121         <https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00177.html>.
122         * lib/verify.h (_GL_HAVE_STATIC_ASSERT_CXX11): New macro.
123         (_GL_HAVE_STATIC_ASSERT_CXX17): Renamed from _GL_HAVE_STATIC_ASSERT1.
124         (_GL_VERIFY): Use static_assert when available with C++11 syntax.
126 2021-01-11  Paul Eggert  <eggert@cs.ucla.edu>
128         tempname: consume less entropy
129         Derived from a glibc patch proposed by Adhemerval Zanella in:
130         https://sourceware.org/pipermail/libc-alpha/2021-January/121302.html
131         * lib/tempname.c: Include stdbool.h.
132         (random_bits): New arg use_getrandom.
133         (try_tempname_len): Skip getrandom on the first try,
134         unless __GT_NOCREATE.
135         * modules/tempname (Depends-on): Add stdbool.
137 2021-01-10  Bruno Haible  <bruno@clisp.org>
139         lchmod-tests: Fix link error.
140         * modules/lchmod-tests (Makefile.am): Don't assume that LIBINTL is set.
142 2021-01-10  Simon Josefsson  <simon@josefsson.org>
144         Correct preceeding change.
145         * top/gitsub.sh: Update link.
147 2021-01-09  Bruno Haible  <bruno@clisp.org>
149         immutable: Add tests.
150         * tests/test-immutable.sh: New file.
151         * tests/test-immutable.c: New file.
152         * modules/immutable-tests: New file.
154         immutable: New module.
155         * lib/immutable.h: New file.
156         * lib/immutable.c: New file.
157         * m4/immutable.m4: New file.
158         * m4/mprotect.m4: New file, based on libffcall/m4/codeexec.m4.
159         * modules/immutable: New file.
161 2021-01-10  Simon Josefsson  <simon@josefsson.org>
163         Use https:// instead of git://.
164         * build-aux/bootstrap (default_gnulib_url): Ditto.
165         * config/srclistvars.sh: Ditto.
166         * doc/gnulib-readme.texi (Git Checkout): Ditto.
167         * doc/gnulib-tool.texi (VCS Issues): Ditto.
168         * top/gitsub.sh: Update link.
170 2021-01-09  Paul Eggert  <eggert@cs.ucla.edu>
172         snippet/_Noreturn: port to pedantic clang
173         Problem reported by Joe Nelson in:
174         https://lists.gnu.org/r/bug-gnulib/2021-01/msg00152.html
175         * doc/noreturn.texi: Improve.
176         * lib/_Noreturn.h (_Noreturn):
177         * m4/gnulib-common.m4 (gl_COMMON_BODY):
178         Do not assume _Noreturn works as-is when __STRICT_ANSI__ is
179         defined, unless __STDC_VERSION__ indicates C11 or later.
180         * lib/_Noreturn.h (_Noreturn): Fall back on __attribute__
181         ((__noreturn__)) if Clang; this merges the
182         2020-08-10T23:53:13Zbruno@clisp.org patch to m4/gnulib-common.m4.
184 2021-01-09  Darshit Shah  <darnir@gnu.org>
186         Allow setting CVS username for gnu-web-doc-update.
187         * build-aux/gnu-web-doc-update: Introduce new option --user to set the
188         name of the user on Savannah, when it doesn't match $USER.
190 2021-01-09  Bruno Haible  <bruno@clisp.org>
192         exp* tests: Work around clang 6.0.1 optimization bugs on x86.
193         * tests/test-exp-ieee.h (test_function): Mark some variable as
194         'volatile'.
195         * tests/test-exp2-ieee.h (test_function): Likewise.
197 2021-01-09  Bruno Haible  <bruno@clisp.org>
199         fchmodat: Work around trailing slash bug in fchmodat() on AIX 7.2.
200         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): In the test whether fchmodat works,
201         also test for the trailing slashes behaviour. Define
202         HAVE_NEARLY_WORKING_FCHMODAT if this is the only missing feature.
203         * lib/fchmodat.c (fchmodat): If HAVE_NEARLY_WORKING_FCHMODAT, handle
204         trailing slashes here.
205         * modules/fchmodat (Depends-on): Sort by condition, not alphabetically.
206         * doc/posix-functions/fchmodat.texi: Document the AIX bug.
208 2021-01-09  Bruno Haible  <bruno@clisp.org>
210         fchmod-tests, fchmodat tests, lchmod tests: Add more tests.
211         * tests/test-fchmod.c: Include <fcntl.h>.
212         (BASE): New macro.
213         (main): Add more tests.
214         * tests/test-fchmodat.c (main): Add more tests.
215         * tests/test-lchmod.c (main): Likewise.
217 2021-01-09  Bruno Haible  <bruno@clisp.org>
219         utimensat: Fix typo in last commit.
220         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Fix typo in macro explanation.
222 2021-01-09  Bruno Haible  <bruno@clisp.org>
224         truncate: Document last workaround.
225         * doc/posix-functions/truncate.texi: Document the AIX bug.
227 2021-01-08  Paul Eggert  <eggert@cs.ucla.edu>
229         dynarray: work even if ‘free’ is replaced
230         Problem reported by Darshit Shah in:
231         https://lists.gnu.org/r/bug-gnulib/2021-01/msg00140.html
232         * lib/malloc/dynarray-skeleton.c (DYNARRAY_FREE): New macro.
233         Use it everywhere instead of DYNARRAY_NAME (free).
235         tempname: don’t block for minutes
236         Derived from a patch proposed by Adhemerval Zanella in:
237         https://sourceware.org/pipermail/libc-alpha/2021-January/121302.html
238         * lib/tempname.c (random_bits): Use GRND_NONBLOCK.
240         tempname: sync with proposed glibc patch
241         This is from Adhemerval Zanella in:
242         https://sourceware.org/pipermail/libc-alpha/2021-January/121301.html
243         * lib/tempname.c (__lxstat64): Remove.
244         (__lstat64, __stat64): New replacement macros.  All uses changed.
246         regex: stop using alloca
247         * lib/regex_internal.h: Do not include <alloca.h> or define
248         __libc_use_alloca or alloca.  Patch written by Adhemerval Zanella:
249         https://sourceware.org/pipermail/libc-alpha/2021-January/121374.html
250         * modules/regex (Depends-on): Remove alloca-opt.
252         regexec: remove alloca usage in build_trtable
253         Prompted by this different change proposed by Adhemerval Zanella:
254         https://sourceware.org/pipermail/libc-alpha/2021-January/121373.html
255         * lib/regexec.c (build_trtable): Prevent inlining,
256         so that it doesn’t bloat the caller’s stack.
257         Use auto variables instead of alloca/malloc.
258         After these changes, build_trtable’s total stack allocation is
259         only 20 KiB on a 64-bit machine, and this is less than glibc’s 64
260         KiB cutoff so there’s little point to using alloca to shrink it.
261         Although Gnulib traditionally has used a 4 KiB cutoff, going to 20
262         KiB here should not be a significant problem in practice;
263         Gnulib-using packages concerned about overflow of tiny stacks can
264         compile with something like gcc -fstack-clash-protection.
266         scratch_buffer: add scratch_buffer_dupfree macro
267         * lib/scratch_buffer.h (__libc_scratch_buffer_dupfree):
268         New macro, needed to support recent changes in this module.
270         regex: remove alloca usage on regex set_regs
271         Derived from this patch by Adhemerval Zanella:
272         https://sourceware.org/pipermail/libc-alpha/2021-January/121372.html
273         * lib/regex_internal.h: Include dynarray.h, for Gnulib.
274         * lib/regexec.c (DYNARRAY_STRUCT, DYNARRAY_ELEMENT)
275         (DYNARRAY_PREFIX): New macros.
276         Include malloc/dynarray-skeleton.c.
277         (set_regs): Use dynarray rather than alloca.
278         * modules/regex (Depends-on): Add dynarray.
280         dynarray: new module
281         * config/srclist.txt: Mention the new files.
282         * lib/cdefs.h (__attribute_maybe_unused__): New macro,
283         like Gnulib’s _GL_ATTRIBUTE_MAYBE_UNUSED but with glibc
284         naming conventions.
285         * lib/libc-config.h: Use it instead of __glibc_likely.
286         * lib/dynarray.h, modules/dynarray: New files.
287         * lib/malloc/dynarray-skeleton.c, lib/malloc/dynarray.h:
288         * lib/malloc/dynarray_at_failure.c:
289         * lib/malloc/dynarray_emplace_enlarge.c:
290         * lib/malloc/dynarray_finalize.c, lib/malloc/dynarray_resize.c:
291         * lib/malloc/dynarray_resize_clear.c, modules/dynarray:
292         New files, from glibc with the following changes needed for
293         portability to compilers that are not recent-enough GCC.
294         * lib/malloc/dynarray_at_failure.c: Include stdlib.h, for abort.
295         (__libc_dynarray_at_failure) [!_LIBC]: Simply abort.
296         * lib/malloc/dynarray_emplace_enlarge.c:
297         * lib/malloc/dynarray_resize.c:
298         Include intprops.h, and use INT_MULTIPLY_WRAPV instead
299         of __builtin_mul_overflow.
300         * lib/malloc/dynarray.h (__libc_dynarray_at_failure):
301         Use _Noreturn instead of __attribute__ ((noreturn)).
302         * lib/malloc/dynarray_resize_clear.c: Do not include stdlib.h;
303         it’s not needed.
304         (__libc_dynarray_resize_clear): Do not do arithmetic on void *.
305         * lib/malloc/dynarray-skeleton.c (struct DYNARRAY_STRUCT):
306         Do not use anonymous unions, as they are not in C99. All uses changed.
307         Use __nonnull (X) instead of __attribute__ ((nonnull X)),
308         and __attribute_maybe_unused__ instead of __attribute__ ((unused)).
310 2021-01-06  Simon Josefsson  <simon@josefsson.org>
312         bootstrap: Fix parsing of package name.
313         * build-aux/bootstrap (package): Attempt to use autoconf --trace
314         to parse AC_INIT before falling back to sed expression.
316 2021-01-07  Bruno Haible  <bruno@clisp.org>
318         localename: Fix link error with duplocale on AIX 7.2 (regr. 2019-12-18).
319         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
320         LOCALENAME_ENHANCE_LOCALE_FUNCS.
321         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE):
322         Set gt_working_uselocale.
323         (gt_INTL_THREAD_LOCALE_NAME): Set gt_fake_locales, gt_good_uselocale,
324         gt_localename_enhances_locale_funcs, LOCALENAME_ENHANCE_LOCALE_FUNCS.
325         Define HAVE_GOOD_USELOCALE, LOCALENAME_ENHANCE_LOCALE_FUNCS.
326         * m4/localename.m4 (gl_LOCALENAME): Test
327         gt_localename_enhances_locale_funcs instead of gt_nameless_locales.
328         * modules/locale (Makefile.am): Substitute
329         LOCALENAME_ENHANCE_LOCALE_FUNCS.
330         * lib/locale.in.h (newlocale, duplocale, freelocale): Don't override if
331         module 'localename' is in use but LOCALENAME_ENHANCE_LOCALE_FUNCS is 0.
332         * lib/localename.c (HAVE_GOOD_USELOCALE): Don't define here.
333         (get_locale_t_name, newlocale, duplocale, freelocale): Define if
334         LOCALENAME_ENHANCE_LOCALE_FUNCS.
336 2021-01-06  Bruno Haible  <bruno@clisp.org>
338         logb: Fix test failure on glibc/powerpc.
339         * doc/posix-functions/logb.texi: Update platform info.
340         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Test against bug with negative
341         subnormal numbers.
343 2021-01-06  Paul Eggert  <eggert@cs.ucla.edu>
345         libc-config: simplify clang __has_* macros
346         cdefs.h sometimes used names like __glibc_clang_has_attribute and
347         sometimes __glibc_has_attribute.  There is no need in glibc or
348         Gnulib to distinguish clang from other compilers here, so be
349         consistent and use the simpler names.
350         * lib/cdefs.h (__glibc_has_builtin, __glibc_has_extension):
351         Rename from __glibc_clang_has_builtin, __glibc_clang_has_extension.
352         All uses changed.
353         (__glibc_clang_has_attribute): Remove. All uses replaced
354         by __glibc_has_attribute.
355         * lib/libc-config.h [!__glibc_likely]: Undef them here too.
356         This fixes a problem where __glibc_has_attribute was not undeffed.
358 2021-01-06  Bruno Haible  <bruno@clisp.org>
360         flock: Update documentation.
361         * doc/glibc-functions/flock.texi: Document what to expect on AIX and
362         Solaris.
364 2021-01-06  Bruno Haible  <bruno@clisp.org>
366         ilogbl: Fix compilation error with xlclang on AIX 7.2.
367         * lib/math.in.h (ilogbl): Undefine macro before declaration.
369 2021-01-06  Bruno Haible  <bruno@clisp.org>
371         ilogbl: Fix test failures on AIX 7.1 in 64-bit mode.
372         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test also some denormalized
373         argument.
374         * doc/posix-functions/ilogbl.texi: Mention the AIX bug.
376 2021-01-06  Bruno Haible  <bruno@clisp.org>
378         ilogb: Fix test failures on AIX 7.1 in 64-bit mode.
379         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Test also some denormalized
380         argument.
381         * doc/posix-functions/ilogb.texi: Mention the AIX bug.
383 2021-01-05  Bruno Haible  <bruno@clisp.org>
385         fclose: Fix test failure on AIX 7.2.
386         * m4/fclose.m4 (gl_FUNC_FCLOSE_STDIN): New macro.
387         (gl_FUNC_FCLOSE): Invoke it. Set REPLACE_FCLOSE accordingly.
388         * doc/posix-functions/fclose.texi: Update platform information.
389         * doc/posix-functions/fflush.texi: Likewise.
391 2021-01-05  Bruno Haible  <bruno@clisp.org>
393         pipe-filter-gi: Fix test failure on AIX 7.2.
394         * lib/pipe-filter-aux.h (SSIZE_MAX) [AIX]: Set to 4096.
396 2021-01-05  Bruno Haible  <bruno@clisp.org>
398         utimens, utimensat, fdutimensat: Avoid test failures on AIX 7.2.
399         * lib/utimecmp.c (utimecmpat): On AIX, declare equality when the two
400         times differ by less than 0.01 seconds.
401         * tests/test-futimens.h (test_futimens): Pass UTIMECMP_TRUNCATE_SOURCE
402         flag.
404 2021-01-05  Bruno Haible  <bruno@clisp.org>
406         utimensat: Work around trailing slash bug in utimensat() on AIX 7.2.
407         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Require AC_CANONICAL_HOST. Add a
408         test for trailing slash handling. Improve cross-compilation guesses.
409         Conditionally define HAVE_NEARLY_WORKING_UTIMENSAT.
410         * lib/utimensat.c (rpl_utimensat): Add alternative implementation when
411         HAVE_NEARLY_WORKING_UTIMENSAT is defined.
412         * lib/utimens.c: Use the overridden utimensat when
413         HAVE_NEARLY_WORKING_UTIMENSAT is defined.
414         * doc/posix-functions/utimensat.texi: Mention the AIX bug.
416 2021-01-05  Bruno Haible  <bruno@clisp.org>
418         ptsname_r, ptsname: Avoid test failures on AIX 7.2.
419         * tests/test-ptsname_r.c (main): On AIX, set a 20-seconds timer.
420         * tests/test-ptsname.c (main): Likewise. On AIX, open a pty through
421         /dev/ptc and don't test the BSD ptys.
423 2021-01-05  Paul Eggert  <eggert@cs.ucla.edu>
425         libc-config: merge from glibc
426         Use a better way of keeping glibc <sys/cdefs.h> and gnulib
427         lib/cdefs.h mostly in sync, by using lib/cdefs.h only on platforms
428         where <sys/cdefs.h> does not work well enough for Gnulib.
429         * lib/cdefs.h: Go back to using _SYS_CDEFS_H rather than
430         _GL_DEFS_H as an include guard.
431         (__THROW, __THROWNL, __NTH, __NTHNL):
432         Define to noexcept for C++11 and later.
433         (__glibc_objsize, __glibc_objsize0): New, for _FORTIFY_SOURCE=3.
434         (__warndecl): Remove.
435         (__attribute_copy__): New macro, for GCC 9 support.
436         (__LDBL_REDIR, __LDBL_REDIR_DECL, __LDBL_REDIR1)
437         (__LDBL_REDIR1_DECL, __LDBL_REDIR1_NTH, __REDIRECT_NTH_LDBL)
438         (__REDIRECT_LDBL, __LDBL_REDIR_NTH):
439         Redirections for IEEE long double on powerpc64le.
440         (__LDBL_REDIR2_DECL): New macro.
441         (__attr_access): New macro, for GCC 10 bounds checking.
442         (__attribute_returns_twice__): New macro, for setjmp etc.
443         * lib/libc-config.h: Include <cdefs.h> only if __glibc_likely is
444         undefined.  The following changes apply only if __glibc_likely
445         is not defined.
446         (__LDBL_REDIR2_DECL, __attr_access, __attribute_returns_twice__)
447         (__glibc_clang_has_attribute, __glibc_clang_has_extension)
448         (__glibc_objsize, __glibc_objsize0):
449         Undef these new (or newer) <cdefs.h> macros.
450         (__P, __PMT, __always_inline): Do not undef, since cdefs.h does that.
451         (__glibc_likely): Do not undef, since this is inside
452         ifndef __glibc_likely.
453         (__warndecl): Do not undef; no longer defined.
455 2021-01-05  Jim Meyering  <meyering@fb.com>
457         maintainer-makefile: correct preceding change
458         * top/maint.mk (syntax-check-rules): Use LC_ALL=C, not LANG=C.
460 2021-01-05  Paul Eggert  <eggert@cs.ucla.edu>
462         maint: note syncs to glibc
463         * config/srclist.txt: filename.h, idx.h, scratch_buffer.h and
464         scratch_buffer_dupfree.c are now identical to glibc.  Add
465         commentary about some other syncs we’d like.
466         * modules/filename, modules/idx (Maintainer): Add glibc.
468 2021-01-05  Bruno Haible  <bruno@clisp.org>
470         truncate: Work around trailing slash bug in truncate() on AIX 7.2.
471         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Add a test whether truncate
472         rejects trailing slashes. Set REPLACE_TRUNCATE and define
473         TRUNCATE_TRAILING_SLASH_BUG if not.
474         * lib/truncate.c (orig_truncate): New function.
475         (truncate): Add alternative implementation when
476         TRUNCATE_TRAILING_SLASH_BUG is defined.
477         * modules/truncate (Depends-on): Add sys_stat, stat.
479 2021-01-05  Bruno Haible  <bruno@clisp.org>
481         mkfifoat: Fix cross-compilation guess (regression from 2021-01-04).
482         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Fix copy-and-paste mistake.
484 2021-01-05  Bruno Haible  <bruno@clisp.org>
486         ffsll: Override completely broken implementation on AIX in 32-bit mode.
487         * m4/ffsll.m4 (gl_FUNC_FFSLL): Test whether ffsll minimally works. If
488         not, set REPLACE_FFSLL.
489         * lib/string.in.h (ffsll): Consider REPLACE_FFSLL.
490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
491         REPLACE_FFSLL.
492         * modules/string (Makefile.am): Substitute REPLACE_FFSLL.
493         * modules/ffsll (Depends-on, configure.ac): Consider REPLACE_FFSLL.
494         * doc/glibc-functions/ffsll.texi: Mention the AIX 7.2 bug.
496 2021-01-04  Bruno Haible  <bruno@clisp.org>
498         symlinkat: Fix trailing slash handling.
499         * lib/symlinkat.c (rpl_symlinkat): Don't follow symlinks during the
500         trailing slash handling.
501         * modules/symlinkat (Depends-on): Update conditions.
503 2021-01-04  Bruno Haible  <bruno@clisp.org>
505         mkfifoat: Update module description.
506         * modules/mkfifoat (Depends-on): Update conditions after last commits.
508 2021-01-04  Bruno Haible  <bruno@clisp.org>
510         link: Improve trailing slash handling on native Windows.
511         * lib/link.c (link): If stat() fails, provide a better errno.
513 2021-01-04  Bruno Haible  <bruno@clisp.org>
515         mkfifoat: Work around trailing slash bug in mknodat() on AIX 7.2.
516         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Set also REPLACE_MKNODAT.
517         * lib/sys_stat.in.h (mknodat): Consider REPLACE_MKNODAT.
518         * lib/mknodat.c: Add an overriding implementation of mknodat().
519         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize REPLACE_MKNODAT.
520         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKNODAT.
521         * modules/mkfifoat (Depends-on, configure.ac): Consider REPLACE_MKNODAT.
522         * doc/posix-functions/mknodat.texi: Mention the AIX bug.
524         mkfifoat: Work around trailing slash bug in mkfifoat() on AIX 7.2.
525         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Add a test whether mkfifoat rejects
526         trailing slashes. Set REPLACE_MKFIFOAT if not.
527         * lib/sys_stat.in.h (mkfifoat): Consider REPLACE_MKFIFOAT.
528         * lib/mkfifoat.c: Add an overriding implementation of mkfifoat().
529         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
530         REPLACE_MKFIFOAT.
531         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKFIFOAT.
532         * modules/mkfifoat (Depends-on): Add fstatat.
533         (configure.ac): Consider REPLACE_MKFIFOAT.
534         * doc/posix-functions/mkfifoat.texi: Mention the AIX bug.
536 2021-01-04  Bruno Haible  <bruno@clisp.org>
538         libc-config: Avoid overriding the headers from an installed newer glibc.
539         Reported by Paul E Murphy <murphyp@linux.ibm.com> in
540         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00106.html>.
541         * lib/cdefs.h: Use a different include guard than glibc's <sys/cdefs.h>.
542         * lib/libc-config.h: Update accordingly.
544 2021-01-04  Simon Josefsson  <simon@josefsson.org>
546         maintainer-makefile: Invoke syntax-checks regardless of locale.
547         * top/maint.mk (syntax-check-rules): Invoke sed with LANG=C
548         environment because [a-z] may not include 'w' in all locales.
550 2021-01-04  Bruno Haible  <bruno@clisp.org>
552         nstrftime, time_rz: Avoid using an obsolete Autoconf macro.
553         Reported by Mike Gran <spk121@yahoo.com> in
554         <https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00067.html>.
555         * lib/time-internal.h: Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
556         * lib/time_rz.c: Likewise.
557         * lib/nstrftime.c: Set and test HAVE_STRUCT_TM_TM_ZONE, not
558         HAVE_TM_ZONE.
559         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Update comments.
561 2021-01-04  Bruno Haible  <bruno@clisp.org>
563         expm1f-ieee: Work around AIX 7.2 bug.
564         * m4/expm1f.m4 (gl_FUNC_EXPM1F): Initialize gl_expm1f_required. If
565         module 'expm1f-ieee' is in use, check whether expm1f works according to
566         IEEE.
567         * m4/expm1f-ieee.m4: New file.
568         * modules/expm1f-ieee (Files): Add it.
569         (Depends-on): Update conditions.
570         (configure.ac): Invoke gl_FUNC_EXPM1F_IEEE.
571         * doc/posix-functions/expm1f.texi: Mention the AIX bug.
573 2021-01-04  Bruno Haible  <bruno@clisp.org>
575         ffsl, ffsll: Work around AIX 7.2 problem.
576         * lib/string.in.h: On AIX, include <strings.h> for the declarations of
577         ffsl and ffsll.
578         * doc/glibc-functions/ffsl.texi: Document the AIX 7.2 problem.
579         * doc/glibc-functions/ffsll.texi: Likewise.
581 2021-01-04  Bruno Haible  <bruno@clisp.org>
583         ssfmalloc: Fix includes.
584         * lib/ssfmalloc.h: Include <strings.h>, for ffs().
585         * tests/test-ssfmalloc.c: Include <string.h>, for memset().
587 2021-01-03  Bruno Haible  <bruno@clisp.org>
589         quotearg tests: Avoid test failures on Solaris 11.3.
590         * tests/test-quotearg.sh: Copy the fr/ directory using 'cp -R', not
591         'cp -a'.
593 2021-01-03  Bruno Haible  <bruno@clisp.org>
595         tests: Fix link errors on Solaris, when libunistring-optional is in use.
596         * modules/wcwidth (Link): New section.
597         * modules/wcswidth (Link): New section.
598         * modules/mbchar (Link): New section.
599         * modules/mbfile (Link): Link against libunistring.
600         * modules/mbiter (Link): Likewise.
601         * modules/mbuiter (Link): Likewise.
602         * modules/mbmemcasecmp (Link): Likewise.
603         * modules/mbscasecmp (Link): Likewise.
604         * modules/mbscasestr (Link): Likewise.
605         * modules/mbschr (Link): Likewise.
606         * modules/mbscspn (Link): Likewise.
607         * modules/mbslen (Link): Likewise.
608         * modules/mbsncasecmp (Link): Likewise.
609         * modules/mbsnlen (Link): Likewise.
610         * modules/mbspbrk (Link): Likewise.
611         * modules/mbspcasecmp (Link): Likewise.
612         * modules/mbsrchr (Link): Likewise.
613         * modules/mbssep (Link): Likewise.
614         * modules/mbsspn (Link): Likewise.
615         * modules/mbsstr (Link): Likewise.
616         * modules/mbstok_r (Link): Likewise.
617         * modules/mbswidth (Link): Likewise.
618         * modules/exclude (Link): Likewise.
619         * modules/propername (Link): Likewise.
620         * modules/regex-quote (Link): Likewise.
621         * modules/trim (Link): Likewise.
622         * modules/mbmemcasecmp-tests (Makefile.am): Link the test program
623         against libunistring.
624         * modules/mbscasecmp-tests (Makefile.am): Likewise.
625         * modules/mbscasestr-tests (Makefile.am): Likewise.
626         * modules/mbschr-tests (Makefile.am): Likewise.
627         * modules/mbscspn-tests (Makefile.am): Likewise.
628         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
629         * modules/mbspbrk-tests (Makefile.am): Likewise.
630         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
631         * modules/mbsrchr-tests (Makefile.am): Likewise.
632         * modules/mbsspn-tests (Makefile.am): Likewise.
633         * modules/mbsstr-tests (Makefile.am): Likewise.
634         * modules/exclude-tests (Makefile.am): Likewise.
635         * modules/regex-quote-tests (Makefile.am): Likewise.
637 2021-01-03  Bruno Haible  <bruno@clisp.org>
639         c32ispunct tests: Avoid test failures on FreeBSD.
640         * tests/test-c32ispunct.c (main): On FreeBSD, disable tests that fail on
641         FreeBSD 12.1.1.
643 2021-01-04  Simon Josefsson  <simon@josefsson.org>
645         doc: Repeat warning that --with-tests cannot be used twice.
646         * doc/gnulib-tool.texi (Multiple instances): Remind reader of
647         --with-tests limitation.
649 2021-01-03  Bruno Haible  <bruno@clisp.org>
651         iconv, iconv_open: Improve documentation.
652         Reported by Noah Misch <noah@leadboat.com> in
653         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00172.html>.
654         * doc/posix-functions/iconv_open.texi: Add new paragraph "Portability
655         problems handled by Gnulib".
656         * doc/posix-functions/iconv.texi: Likewise. Update info about AIX.
657         * m4/iconv.m4 (AM_ICONV_LINK): Improve comments.
659 2021-01-03  Bruno Haible  <bruno@clisp.org>
661         iconv-h: Fix module description.
662         * modules/iconv-h (Include): Check HAVE_ICONV_H.
664 2021-01-03  Noah Misch  <noah@leadboat.com>
666         iconv_open: Fix module description.
667         * modules/iconv_open (Include): Check HAVE_ICONV, like modules/iconv.
669 2021-01-03  Bruno Haible  <bruno@clisp.org>
671         stddef: Override wrong max_align_t on AIX 7 with xlc in 64-bit mode.
672         * m4/stddef_h.m4 (gl_STDDEF_H): Make check for good max_align_t
673         stricter: Add tests for offsetof-based alignof.
674         * lib/stddef.in.h (max_align_t): Override on AIX in 64-bit mode.
675         * doc/posix-headers/stddef.texi: Document the AIX max_align_t bug.
677 2021-01-03  Bruno Haible  <bruno@clisp.org>
679         free-posix: Work around GCC mis-optimization bug.
680         Code by Bernhard Voelker <mail@bernhard-voelker.de>.
681         * lib/free.c (rpl_free): Add alternative complicated code for GCC.
683 2021-01-02  Bruno Haible  <bruno@clisp.org>
685         valgrind-tests: Disable valgrind if it would cause all tests to fail.
686         Suggested by Simon Josefsson <simon@josefsson.org> in
687         <https://lists.gnu.org/archive/html/help-gsasl/2021-01/msg00004.html>.
688         * m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Test $VALGRIND on an
689         executable produced by the current compiler. Set VALGRIND to empty if it
690         does not work. Don't set VALGRIND to empty if it merely does not accept
691         the --error-exitcode=1 --leak-check=full options.
693 2021-01-02  Bruno Haible  <bruno@clisp.org>
695         valgrind-tests: Really enable the valgrind options test.
696         * m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Don't assume that the
697         valgrind options --error-exitcode=1 --leak-check=full always work.
699 2021-01-02  Bruno Haible  <bruno@clisp.org>
701         utimensat: Fix test failures on macOS 10.13.
702         * lib/utimensat.c: Include <string.h>, <sys/stat.h>.
703         (rpl_utimensat): Check against invalid tv_nsec values. Before calling
704         utimensat, recognize a filename ending in a slash that does not point
705         to a directory.
707 2021-01-02  Bruno Haible  <bruno@clisp.org>
709         utimens: Fix test failure on macOS 10.13.
710         * lib/utimens.c: Include <string.h>.
712         utimens: Fix test failure on macOS 10.13.
713         * lib/utimens.c (fdutimens): Before calling utimensat, recognize a
714         filename ending in a slash that does not point to a directory.
716 2021-01-02  Bruno Haible  <bruno@clisp.org>
718         utimens: Avoid test failures on macOS 10.13.
719         Reported by Martin Storsjö <martin@martin.st> in
720         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
721         * tests/test-utimens-common.h (check_ctime): Define to -1 on macOS.
722         * tests/test-utimens.h (test_utimens): Don't expect a ctime change when
723         only the atime is requested to change.
724         * tests/test-futimens.h (test_futimens): Likewise.
725         * tests/test-lutimens.h (test_lutimens): Likewise.
727 2021-01-02  Bruno Haible  <bruno@clisp.org>
729         renameatu: Fix test failures on macOS.
730         Reported by Martin Storsjö <martin@martin.st> in
731         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
732         * lib/renameatu.c (renameatu): Don't call renameatx_np right away.
733         Instead, treat it as a variant of renameat, with all possible bugs that
734         renameat might have.
736 2021-01-02  Bruno Haible  <bruno@clisp.org>
738         getgroups test: Avoid warning with glibc >= 2.32 and gcc >= 10.
739         Reported by Bernhard Voelker <mail@bernhard-voelker.de> in
740         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00090.html>.
741         * tests/test-getgroups.c: Silence gcc warnings of type
742         -Wstringop-overflow.
744 2021-01-02  Bruno Haible  <bruno@clisp.org>
746         timespec_get: Add tests.
747         * tests/test-timespec_get.c: New file.
748         * modules/timespec_get-tests: New file.
750         timespec_get: New module.
751         * lib/time.in.h (timespec_get): New declaration.
752         * lib/timespec_get.c: New file.
753         * m4/timespec_get.m4: New file.
754         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
755         GNULIB_TIMESPEC_GET, HAVE_TIMESPEC_GET.
756         * modules/time (Makefile.am): Substitute GNULIB_TIMESPEC_GET,
757         HAVE_TIMESPEC_GET.
758         * modules/timespec_get: New file.
759         * tests/test-time-c++.cc (timespec_get): Check signature.
760         * doc/glibc-functions/timespec_get.texi: Mention the new module.
762 2021-01-01  Bruno Haible  <bruno@clisp.org>
764         time: Define TIME_UTC.
765         * lib/time.in.h (TIME_UTC, GNULIB_defined_TIME_UTC): New macros.
766         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Set TIME_H_DEFINES_TIME_UTC.
767         * modules/time (Makefile.am): Substitute TIME_H_DEFINES_TIME_UTC.
768         * tests/test-time.c: Check that TIME_UTC is defined and a positive
769         integer.
770         * doc/posix-headers/time.texi: Mention TIME_UTC.
772 2021-01-01  Bruno Haible  <bruno@clisp.org>
774         stddef: Try harder to get max_align_t defined on OpenBSD, part 2.
775         * modules/stddef (Depends-on): Add extensions.
777 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
779         canonicalize: remove NARROW_ADDRESSES optimization
780         * lib/canonicalize-lgpl.c, lib/canonicalize.c (NARROW_ADDRESSES):
781         Remove, and remove all uses, as the optimization is arguably not
782         worth the extra complexity.  Suggested by Adhemerval Zanella in:
783         https://sourceware.org/pipermail/libc-alpha/2020-December/121203.html
785 2021-01-01  Bruno Haible  <bruno@clisp.org>
787         stddef: Try harder to get max_align_t defined on OpenBSD.
788         * m4/stddef_h.m4 (gl_STDDEF_H): Require gl_USE_SYSTEM_EXTENSIONS.
790 2021-01-01  Bruno Haible  <bruno@clisp.org>
792         aligned_alloc: Fix test failure on OpenBSD 6.8.
793         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): On OpenBSD, define
794         _ISOC11_SOURCE.
795         * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Require it. Update
796         comment.
798 2021-01-01  Bruno Haible  <bruno@clisp.org>
800         posixtm tests: Disable part of the test on plaforms where it fails.
801         * tests/test-posixtm.c (T): Disable two tests on macOS as well.
803 2021-01-01  Bruno Haible  <bruno@clisp.org>
805         c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS.
806         * tests/test-c32isgraph.c (main): On Solaris, disable tests that fail on
807         Solaris 11 OmniOS.
808         * tests/test-c32isprint.c (main): Likewise.
809         * tests/test-c32ispunct.c (main): Likewise.
811 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
813         libc-config: port to Sun C 5.9
814         * lib/libc-config.h (libc_hidden_proto): Omit ", ..." in macro
815         definition.  It’s not needed for Gnulib and elicits a diagnostic
816         from Sun C 5.9 Patch 124867-12 2009/11/22.
818 2021-01-01  Bruno Haible  <bruno@clisp.org>
820         quotearg tests: Avoid test failures on Solaris 11.
821         * modules/quotearg-tests (Makefile.am): Set host_os in
822         TESTS_ENVIRONMENT.
823         * tests/test-quotearg.sh: On Solaris 11 systems, make a copy of the fr/
824         directory that contains the .mo file.
826 2021-01-01  Bruno Haible  <bruno@clisp.org>
828         maint: Update copyright notices in --version output.
829         List the most recent year in which changes were made, per
830         <https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html>.
831         * build-aux/declared.sh (func_version): Say 2019.
832         * build-aux/libtool-next-version (func_version): Likewise.
833         * build-aux/run-test (func_version): Likewise.
834         * check-module (COPYRIGHT_NOTICE): Say 2012.
835         * lib/git-merge-changelog.c (main): Say 2020.
837 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
839         filename: change filename.h comment to LGPLv2.1+
840         * lib/filename.h: Change license notice to match what should be in
841         glibc, and what modules/filename specifies.  This is to simplify
842         syncing with glibc.
844         doc: mention year-0 bugs in Solaris etc.
845         * doc/posix-functions/gmtime.texi, doc/posix-functions/gmtime_r.texi:
846         * doc/posix-functions/localtime.texi:
847         * doc/posix-functions/localtime_r.texi:
848         * doc/posix-functions/mktime.texi:
849         Mention year-0 bugs in localtime etc.
851 2020-12-31  Bruno Haible  <bruno@clisp.org>
853         ptsname_r: Fix test failure on Solaris.
854         * lib/ptsname_r.c (__ptsname_r) [__sun]: Don't test the major number of
855         the device.
857 2020-12-31  Bruno Haible  <bruno@clisp.org>
859         posixtm tests: Disable part of the test on plaforms where it fails.
860         * tests/test-posixtm.c (T): Disable two tests on Solaris.
862 2020-12-31  Bruno Haible  <bruno@clisp.org>
864         poll tests: Avoid test failure on AIX.
865         * tests/test-poll.c (test_pipe): Disable the "expecting POLLHUP after
866         shutdown" test on AIX.
867         * doc/posix-functions/poll.texi: Mention the AIX bug.
869 2020-12-31  Bruno Haible  <bruno@clisp.org>
871         poll tests: Avoid test failure on BSD and Solaris systems.
872         * tests/test-poll.c (test_accept_first, test_socket_pair): Disable the
873         "expecting POLLHUP after shutdown" test on all platforms except Linux.
875 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
877         fnmatch: merge from glibc + proposal
878         This merges the change proposed by Adhemerval Zanella in:
879         https://sourceware.org/pipermail/libc-alpha/2020-December/121212.html
880         which fixes a Gnulib bug that led to a failed assert.
881         * lib/fnmatch_loop.c (EXT): Use signed level, not unsigned, and
882         check that it stays nonnegative.  Use __flexarr instead of
883         FLEXIBLE_ARRAY_MEMBER, to port better to glibc.
884         * tests/test-fnmatch.c (main): New test cases, taken from glibc.
886         glob: merge proposed glibc changes
887         This merges the change proposed by Adhemerval Zanella in:
888         https://sourceware.org/pipermail/libc-alpha/2020-December/121211.html
889         * lib/glob.c (__lstat64, __stat64) [_LIBC]: Remove.
891 2020-12-31  Bruno Haible  <bruno@clisp.org>
893         memalign: Work around Solaris bug.
894         * lib/memalign.c: New file.
895         * m4/memalign.m4: New file.
896         * modules/memalign (Files): Add them.
897         (Depends-on): Add malloc-h.
898         (configure.ac): Invoke gl_FUNC_MEMALIGN. Conditionally compile
899         memalign.c. Set module indicator.
900         (Include): Include <malloc.h> unconditionally.
901         * doc/glibc-functions/memalign.texi: Mention the Solaris issues.
903         malloc-h: Add tests.
904         * tests/test-malloc-h.c: New file.
905         * modules/malloc-h-tests: New file.
906         * tests/test-malloc-h-c++.cc: New file.
907         * modules/malloc-h-c++-tests: New file.
909         malloc-h: New module.
910         * lib/malloc.in.h: New file.
911         * m4/malloc_h.m4: New file.
912         * modules/malloc-h: New file.
913         * doc/glibc-headers/malloc.texi: New file.
914         * doc/gnulib.texi (Glibc Header File Substitutes): Include it.
916 2020-12-31  Bruno Haible  <bruno@clisp.org>
918         unistd: Fix portability warnings.
919         * lib/unistd.in.h (fchownat, unlinkat): Fix module name in warning.
921 2020-12-31  Bruno Haible  <bruno@clisp.org>
923         utime: Fix compilation error on macOS and Solaris 9 (regr. 2020-12-24).
924         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
925         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00295.html>.
926         * lib/utime.c: Include <errno.h>.
928 2020-12-30  Karl Berry  <karl@freefriends.org>
930         config: srclistvars doc.
931         * config/srclistvars.sh: doc a couple of unusual source repo urls.
933 2020-12-30  Bruno Haible  <bruno@clisp.org>
935         getlogin tests, getlogin_r tests: Avoid failure on Solaris OpenIndiana.
936         * tests/test-getlogin.c (main): Don't fail if getlogin() returns NULL
937         with no errno.
938         * tests/test-getlogin_r.c (main): Don't fail if getlogin_r() returns
939         EINVAL.
941 2020-12-29  Jim Meyering  <meyering@fb.com>
943         regex-tests: tweak to avoid a clang-10 warning
944         * tests/test-regex.c: Compare with explicit zero, rather than
945         as boolean to avoid this from clang-10:
946         test-regex.c:315:9: error: converting the result of '<<' to a \
947           boolean always evaluates to true \
948           [-Werror,-Wtautological-constant-compare]
949         if (! REG_STARTEND)
951         hash: add casts-to-float to avoid clang-10 warnings
952         * lib/hash.c (compute_bucket_size): Cast SIZE_MAX to float
953         to avoid this warning from clang-10 (for use in grep):
954           hash.c:501:11: error: implicit conversion from 'unsigned long' \
955             to 'float' changes value from 18446744073709551615 to \
956             18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
957           if (SIZE_MAX <= new_candidate)
958         (hash_insert_if_absent): Likewise.
960 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
962         canonicalize: fix size overflow treatment
963         This also has some minor cleanups.
964         * lib/canonicalize-lgpl.c, lib/canonicalize.c: No need to include
965         stddef.h, since the code no longer refers directly to ptrdiff_t.
966         * lib/canonicalize-lgpl.c (realpath_stk):
967         * lib/canonicalize.c (canonicalize_filename_mode_stk):
968         Treat size overflow like other out-of-memory.
969         * lib/canonicalize.c: No need to include stdlib.h, since
970         the code no longer refers to stdlib.h functions (other
971         than those that canonicalize.h must declare).
972         * lib/canonicalize.c (canonicalize_filename_mode_stk):
973         Do not bother terminating the string result on error.
975 2020-12-29  Bruno Haible  <bruno@clisp.org>
977         list-c++, [o]map-c++, [o]set-c++: Fix conflict with 'free-posix' module.
978         * lib/gl_list.hh: Include <stdlib.h>.
979         * lib/gl_map.hh: Likewise.
980         * lib/gl_omap.hh: Likewise.
981         * lib/gl_set.hh: Likewise.
982         * lib/gl_oset.hh: Likewise.
984 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
986         canonicalize: fix ptrdiff_t overflow bug
987         Problem reported by Adhemerval Zanella in:
988         https://sourceware.org/pipermail/libc-alpha/2020-December/121182.html
989         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
990         Include intprops.h.
991         (NARROW_ADDRESSES): New constant.
992         * lib/canonicalize-lgpl.c (realpath_stk):m
993         * lib/canonicalize.c (canonicalize_filename_mode_stk):
994         Work even if strlen (END) does not fit in idx_t, or if adding
995         N to it overflows.
996         * modules/canonicalize, modules/canonicalize-lgpl (Depends-on):
997         Add intprops.
999 2020-12-28  Bruno Haible  <bruno@clisp.org>
1001         havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
1002         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): In
1003         acl_is_expected_elfclass, use 'expr', not 'test'.
1005 2020-12-28  Bruno Haible  <bruno@clisp.org>
1007         ptsname_r: Fix a compiler warning on Solaris.
1008         * lib/ptsname_r.c (__ptsname_r): Reduce the scope of variable 'err'.
1010 2020-12-28  Bruno Haible  <bruno@clisp.org>
1012         gnulib-tool: Fix logic whether to add a dummy.c.
1013         * gnulib-tool (func_remove_if_blocks): New function.
1014         (func_modules_add_dummy): Use it to eliminate all conditional statements
1015         from the automake snippet.
1017 2020-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1019         faccessat: revert recent EOVERFLOW change
1020         I misunderstood the glibc source code.  Deduced from
1021         Adhemerval Zanella’s proposed glibc patch in:
1022         https://sourceware.org/pipermail/libc-alpha/2020-December/121131.html
1023         * doc/posix-functions/faccessat.texi: It is not a problem.
1024         * lib/canonicalize-lgpl.c, lib/canonicalize.c, lib/faccessat.c:
1025         (FACCESSAT_NEVER_OVERFLOWS): Remove. All uses removed.
1026         * lib/faccessat.c: Revert to simpler version now that
1027         LSTAT_FOLLOWS_SLASHED_SYMLINK must be false.
1028         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW):
1029         Remove.  All uses removed.
1030         * modules/canonicalize, modules/canonicalize-lgpl (Files):
1031         Remove m4/faccessat.m4.
1033         canonicalize-lgpl: accommodate picky cpp
1034         * lib/canonicalize-lgpl.c: Use "defined FUNC_REALPATH_WORKS" in
1035         case preprocessor is picky.  Reported by Adhemerval Zanella in:
1036         https://sourceware.org/pipermail/libc-alpha/2020-December/121130.html
1038         canonicalize: simplify via scratch_buffer_dupfree
1039         * config/srclist.txt: Adjust accordingly.
1040         * lib/canonicalize-lgpl.c (realpath_stk):
1041         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1042         Simplify by using scratch_buffer_dupfree.
1043         * lib/malloc/scratch_buffer.h (scratch_buffer_dupfree): New function.
1044         * lib/malloc/scratch_buffer_dupfree.c: New file.
1045         * modules/scratch_buffer (Files, Depends-on):
1046         Add malloc/scratch_buffer_dupfree.c.
1048 2020-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1050         regex: remove glibc21.m4
1051         It doesn’t seem to be needed any more; at least, I couldn’t
1052         reproduce the circa-2013 problem.  Perhaps the recent
1053         --conditional-dependencies fixes have removed the need for it.
1054         * m4/glibc21.m4: Remove.  All uses removed.
1056 2020-12-26  Bruno Haible  <bruno@clisp.org>
1058         gnulib-tool: Make --conditional-dependencies work with --with-tests.
1059         Reported by Paul Eggert in
1060         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00236.html>.
1061         * gnulib-tool (func_emit_tests_Makefile_am): Handle conditional
1062         dependencies like func_emit_lib_Makefile_am.
1064 2020-12-26  Bruno Haible  <bruno@clisp.org>
1066         execvpe: Make dependency to stdbool explicit.
1067         * lib/execvpe.c: Include <stdbool.h>.
1068         * modules/execvpe (Depends-on): Add stdbool.
1070         execlp: Add tests.
1071         * tests/test-execlp-main.c: New file.
1072         * tests/test-execlp.sh: New file.
1073         * modules/execlp-tests: New file.
1075         execlp: New module.
1076         * lib/execlp.c: New file.
1077         * m4/execlp.m4: New file.
1078         * modules/execlp: New file.
1079         * doc/posix-functions/execlp.texi: Mention more Windows problems and the
1080         new module.
1082         execle: Add tests.
1083         * tests/test-execle-main.c: New file.
1084         * tests/test-execle.sh: New file.
1085         * modules/execle-tests: New file.
1087         execle: New module.
1088         * lib/execle.c: New file.
1089         * m4/execle.m4: New file.
1090         * modules/execle: New file.
1091         * doc/posix-functions/execle.texi: Mention more Windows problems and the
1092         new module.
1094         execl: Add tests.
1095         * tests/test-execl-main.c: New file.
1096         * tests/test-execl.sh: New file.
1097         * modules/execl-tests: New file.
1099         execl: New module.
1100         * lib/execl.c: New file.
1101         * m4/execl.m4: New file.
1102         * modules/execl: New file.
1103         * doc/posix-functions/execl.texi: Mention more Windows problems and the
1104         new module.
1106         execv: Add tests.
1107         * tests/test-execv-main.c: New file.
1108         * tests/test-execv.sh: New file.
1109         * modules/execv-tests: New file.
1111         execv: New module.
1112         * lib/execv.c: New file.
1113         * m4/execv.m4: New file.
1114         * modules/execv: New file.
1115         * doc/posix-functions/execv.texi: Mention more Windows problems and the
1116         new module.
1118         execvp: Add tests.
1119         * tests/test-execvp-main.c: New file.
1120         * tests/test-execvp.sh: New file.
1121         * modules/execvp-tests: New file.
1123         execvp: New module.
1124         * lib/execvp.c: New file.
1125         * m4/execvp.m4: New file.
1126         * modules/execvp: New file.
1127         * doc/posix-functions/execvp.texi: Mention more Windows problems and the
1128         new module.
1130         execvpe: Add tests.
1131         * tests/test-execvpe-main.c: New file.
1132         * tests/test-execvpe.sh: New file.
1133         * modules/execvpe-tests: New file.
1135         execvpe: New module.
1136         * lib/execvpe.c: New file.
1137         * m4/execvpe.m4: New file.
1138         * modules/execvpe: New file.
1139         * doc/glibc-functions/execvpe.texi: Mention the Windows problems and the
1140         new module.
1142         execve: Add tests.
1143         * tests/test-exec-child.c: New file.
1144         * tests/test-execve-main.c: New file.
1145         * tests/test-execve.sh: New file.
1146         * modules/execve-tests: New file.
1148         execve: New module.
1149         * lib/execve.c: New file.
1150         * m4/execve.m4: New file.
1151         * modules/execve: New file.
1152         * doc/posix-functions/execve.texi: Mention more Windows problems and the
1153         new module.
1155         execve, execvpe, execvp, execv, execl, execle, execlp: Prepare modules.
1156         * lib/unistd.in.h (execl, execle, execlp, execv, execve, execvp,
1157         execvpe): Add declarations for the new modules.
1158         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether execl, execle, execlp,
1159         execv, execve, execvp, execvpe are declared.
1160         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EXEC*, HAVE_EXECVPE,
1161         REPLACE_EXEC*.
1162         * modules/unistd (Makefile.am): Substitute GNULIB_EXEC*, HAVE_EXECVPE,
1163         REPLACE_EXEC*.
1164         * tests/test-unistd-c++.cc: Check the signature of execl, execle,
1165         execlp, execv, execve, execvp, execvpe.
1167 2020-12-26  Bruno Haible  <bruno@clisp.org>
1169         stack: Fix typo in comments.
1170         * lib/stack.h: Fix typo in comments.
1172 2020-12-26  Bruno Haible  <bruno@clisp.org>
1174         bitset: Fix conflict with 'free-posix' module.
1175         * lib/bitset/base.h: Include <stdlib.h>.
1177 2020-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1179         idx: change idx.h comment to LGPLv2.1+
1180         * lib/idx.h: Change license notice to match what should be in glibc.
1181         gnulib-tool will change it as appropriate anyway, so this is just
1182         to simplify syncing with glibc.
1184 2020-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
1186         MODULES.html.sh: Update after 2020-12-19 change.
1187         * MODULES.html.sh (func_all_modules): Do s/free/free-posix/.
1189 2020-12-25  Bruno Haible  <bruno@clisp.org>
1191         Make it possible to turn off the mkdir override on Windows.
1192         * lib/sys_stat.in.h (mkdir): Conditionalize through GNULIB_MKDIR and
1193         GNULIB_MDA_MKDIR. Also support GNULIB_POSIXCHECK.
1194         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_MKDIR,
1195         GNULIB_MDA_MKDIR.
1196         * modules/sys_stat (Makefile.am): Substitute GNULIB_MKDIR,
1197         GNULIB_MDA_MKDIR.
1198         * modules/mkdir (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
1199         * doc/posix-functions/mkdir.texi: Mention also the 'sys_stat' module.
1201         Make it possible to turn off each of the Windows oldnames workarounds.
1202         * lib/fcntl.in.h (creat, open):  Conditionalize each of the Windows
1203         oldnames workarounds through a GNULIB_MDA_<func> symbol.
1204         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
1205         * lib/search.in.h (lfind, lsearch): Likewise.
1206         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
1207         Likewise.
1208         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
1209         * lib/string.in.h (memccpy, strdup): Likewise.
1210         * lib/sys_stat.in.h (chmod, umask): Likewise.
1211         * lib/time.in.h (tzset): Likewise.
1212         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
1213         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
1214         read, rmdir, swab, unlink, write): Likewise.
1215         * lib/utime.in.h (utime): Likewise.
1216         * lib/wchar.in.h (wcsdup): Likewise.
1217         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize these
1218         GNULIB_MDA_<func> symbols.
1219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Likewise.
1220         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Likewise.
1221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
1223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
1224         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
1225         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Likewise.
1226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
1227         * m4/utime_h.m4 (gl_UTIME_H_DEFAULTS): Likewise.
1228         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Likewise.
1229         * modules/fcntl-h (Makefile.am): Substitute these GNULIB_MDA_<func>
1230         symbols.
1231         * modules/math (Makefile.am): Likewise.
1232         * modules/search (Makefile.am): Likewise.
1233         * modules/stdio (Makefile.am): Likewise.
1234         * modules/stdlib (Makefile.am): Likewise.
1235         * modules/string (Makefile.am): Likewise.
1236         * modules/sys_stat (Makefile.am): Likewise.
1237         * modules/time (Makefile.am): Likewise.
1238         * modules/unistd (Makefile.am): Likewise.
1239         * modules/utime-h (Makefile.am): Likewise.
1240         * modules/wchar (Makefile.am): Likewise.
1242 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1244         canonicalize, canonicalize-lgpl: remove lint
1245         Pacify GCC.  Some of these problems were reported by Bruno Haible in:
1246         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00217.html
1247         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
1248         Sort shared include directives, for consistency.
1249         (IF_LINT): New macro.
1250         (suffix_requires_dir_check): Mark with _GL_ATTRIBUTE_PURE.
1251         * lib/canonicalize-lgpl.c (GCC_LINT, _GL_ATTRIBUTE_PURE) [_LIBC]:
1252         New macros.
1253         (realpath_stk): Suppress bogus -Wmaybe-uninitialized warning.
1254         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1255         Omit unused local.  Suppress bogus -Wmaybe-uninitialized warning.
1257 2020-12-24  Bruno Haible  <bruno@clisp.org>
1259         spawn-pipe: Use posix_spawn by default on native Windows.
1260         * lib/spawn-pipe.c (SPAWN_PIPE_IMPL_AVOID_POSIX_SPAWN): New macro.
1261         (create_pipe): Use it to decide among the two possible implementations.
1262         * modules/spawn-pipe (Depends-on): Add posix_spawnattr_setpgroup.
1264 2020-12-24  Bruno Haible  <bruno@clisp.org>
1266         unistd-safer: Implement pipe_safer on native Windows.
1267         * lib/pipe-safer.c (pipe_safer): Don't test HAVE_PIPE.
1268         * modules/unistd-safer (Depends-on): Add pipe-posix.
1270 2020-12-24  Bruno Haible  <bruno@clisp.org>
1272         execute: Use posix_spawn by default on native Windows.
1273         * lib/execute.c (EXECUTE_IMPL_AVOID_POSIX_SPAWN): New macro.
1274         (execute): Use it to decide among the two possible implementations.
1276 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1278         canonicalize-lgpl: merge proposed libc changes
1279         This merges the changes proposed for glibc in:
1280         https://sourceware.org/pipermail/libc-alpha/2020-December/121085.html
1281         https://sourceware.org/pipermail/libc-alpha/2020-December/121086.html
1282         * lib/canonicalize-lgpl.c: Include idx.h and filename.h
1283         unconditionally.
1284         (idx_t, IDX_MAX, FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME)
1285         (ISSLASH) [_LIBC]: Remove.
1287 2020-12-24  Bruno Haible  <bruno@clisp.org>
1289         posix_spawn-internal: Implement for native Windows.
1290         * lib/spawni.c (grow_inheritable_handles, shrink_inheritable_handles,
1291         close_inheritable_handles, memiszero, sigisempty, open_handle, do_open,
1292         do_dup2, do_close): New functions.
1293         (__spawni): Implement on native Windows.
1294         * modules/posix_spawn-internal (Depends-on): Add filename,
1295         concat-filename, findprog-in, malloca, windows-spawn.
1296         * doc/posix-functions/posix_spawn.texi: Update.
1297         * doc/posix-functions/posix_spawnp.texi: Likewise.
1299 2020-12-24  Bruno Haible  <bruno@clisp.org>
1301         windows-spawn: Export another auxiliary function.
1302         * lib/windows-spawn.h (convert_CreateProcess_error): New declaration.
1303         * lib/windows-spawn.c (convert_CreateProcess_error): New function,
1304         extracted from spawnpvech.
1305         (spawnpvech): Use it.
1307 2020-12-24  Bruno Haible  <bruno@clisp.org>
1309         windows-spawn: Export some more auxiliary functions.
1310         * lib/windows-spawn.h: Include <stdbool.h>.
1311         (struct inheritable_handles): New type.
1312         (init_inheritable_handles, compose_handles_block,
1313         free_inheritable_handles): New declarations.
1314         * lib/windows-spawn.c (init_inheritable_handles, compose_handles_block):
1315         New functions, based on spawnvech.
1316         (free_inheritable_handles): New function.
1317         (spawnpvech): Use them.
1319 2020-12-24  Bruno Haible  <bruno@clisp.org>
1321         windows-spawn: Export another auxiliary function.
1322         * lib/windows-spawn.h (compose_envblock): New declaration.
1323         * lib/windows-spawn.c (compose_envblock): New function, extracted from
1324         spawnpvech.
1325         (spawnpvech): Use it.
1327 2020-12-24  Bruno Haible  <bruno@clisp.org>
1329         windows-spawn: Export an auxiliary function.
1330         * lib/windows-spawn.h (compose_command): New declaration.
1331         * lib/windows-spawn.c (compose_command): New function, extracted from
1332         spawnpvech.
1333         (spawnpvech): Use it.
1335 2020-12-24  Bruno Haible  <bruno@clisp.org>
1337         posix_spawn* tests: Add support for native Windows.
1338         * tests/test-posix_spawn-open1.c (DATA_FILENAME): Treat native Windows
1339         like Cygwin.
1340         * tests/test-posix_spawn-dup2-stdin.c (main): Don't assume the signals
1341         SIGHUP and SIGPIPE. On native Windows, don't call
1342         posix_spawnattr_setsigmask.
1343         * tests/test-posix_spawn-dup2-stdout.c (main): Likewise.
1344         * tests/test-posix_spawn-fchdir.c (main): Likewise.
1345         * tests/test-posix_spawn-chdir.c (test): Likewise. Accept the child
1346         output from Cygwin's 'pwd' program.
1347         * tests/test-posix_spawn-script.c (main): On native Windows, skip the
1348         executable-shell-script part of the test.
1349         * tests/test-posix_spawnp-script.c (main): Likewise.
1350         * modules/posix_spawn-tests (Depends-on): Add freopen, waitpid.
1351         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
1352         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
1353         * modules/posix_spawnp-tests (Depends-on): Add  waitpid.
1354         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
1355         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
1356         * modules/posix_spawn_file_actions_addchdir-tests (Makefile.am): Don't
1357         test the POSIX_SPAWN_PORTED conditional.
1358         * modules/posix_spawn_file_actions_addfchdir-tests (configure.ac):
1359         Define the POSIX_SPAWN_PORTED conditional here.
1361 2020-12-24  Bruno Haible  <bruno@clisp.org>
1363         sh-filename: Add support for native Windows.
1364         * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.
1366 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1368         careadlinkat: improve warning line number
1369         This propagates an idea first used in canonicalize-lgpl.
1370         * lib/careadlinkat.c (GCC_BOGUS_WRETURN_LOCAL_ADDR):
1371         New macro.
1372         (careadlinkat): Use it.
1374         linkat: use eloop-threshold
1375         * lib/linkat.c: Include eloop-threshold.h.
1376         Do not include sys/param.h.
1377         (MAXSYMLINKS): Remove.
1378         (link_follow, linkat_follow): Use __eloop_threshold instead
1379         of MAXSYMLINKS.
1380         * m4/linkat.m4 (gl_FUNC_LINKAT): Omit sys/param.h check.
1381         * modules/linkat (Depends-on): Add eloop-threshold.  Sort.
1383         canonicalize-lgpl: use eloop-threshold
1384         * lib/canonicalize-lgpl.c [!_LIBC]: Include eloop-threshold.h.
1385         (MAXSYMLINKS, __eloop_threshold): Remove.
1386         * modules/canonicalize-lgpl (Depends-on): Add eloop-threshold.
1388         eloop-threshold: new module
1389         * config/srclist.txt: Add a comment about it.
1390         * lib/eloop-threshold.h, modules/eloop-threshold: New files.
1392         canonicalize: prefer faccessat to stat
1393         A proper faccessat doesn't have the EOVERFLOW problem, and can be
1394         more efficient as it needn't gather data from the filesystem to
1395         fill in struct stat.  So use stat only if faccessat is absent,
1396         or when checking for symlink loops in canonicalize.c.
1397         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
1398         Include fcntl.h, for AT_EACCESS.
1399         (FACCESSAT_NEVER_EOVERFLOWS): Default to false.
1400         (file_accessible): New function, based on faccessat but with
1401         a fallback to stat and with an EOVERFLOW workaround.
1402         (dir_check): Use it.
1403         (dir_suffix): New static constant.
1404         * lib/canonicalize-lgpl.c (FACCESSAT_NEVER_EOVERFLOWS) [_LIBC]:
1405         Use __ASSUME_FACCESSAT2 to set FACCESSAT_NEVER_EOVERFLOWS
1406         (__faccessat) [!_LIBC]: Define.
1407         (realpath_stk): Use dir_suffix now.
1408         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1409         If logical, don't check each component's existence; just check
1410         at the end, as that's enough.
1411         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1412         (gl_CANONICALIZE_LGPL_SEPARATE):
1413         Require gl_FUNC_FACCESSAT_EOVERFLOW,
1414         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and check for faccessat.
1415         (gl_CANONICALIZE_LGPL_SEPARATE): Do not check for readlink,
1416         as the code does not use HAVE_READLINK.
1417         * modules/canonicalize, modules/canonicalize-lgpl (Files):
1418         Add m4/faccessat.m4, m4/lstat.m4.
1419         (Depends-on): Add fcntl-lh.
1421         faccessat: work around F_OK EOVERFLOW bug
1422         * doc/posix-functions/faccessat.texi: Mention the problem.
1423         * lib/faccessat.c (FACCESSAT_NEVER_EOVERFLOWS): Default to 0.
1424         (rpl_faccessat): If !FACCESSAT_NEVER_EOVERFLOWS, check
1425         for F_OK and EOVERFLOW, which means we can return 0.
1426         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW): New macro.
1427         (gl_FUNC_FACCESSAT): Use it.
1429         stat failing with EOVERFLOW implies existence
1430         * lib/euidaccess.c (euidaccess):
1431         * lib/file-has-acl.c (file_has_acl):
1432         * lib/link.c (link, rpl_link):
1433         * lib/mkdir.c (rpl_mkdir):
1434         * lib/mkfifo.c (rpl_mkfifo):
1435         * lib/mknod.c (rpl_mknod):
1436         * lib/ptsname_r.c (__ptsname_r):
1437         * lib/symlink.c (rpl_symlink):
1438         * lib/symlinkat.c (rpl_symlinkat):
1439         * lib/unlink.c (rpl_unlink):
1440         * lib/unlinkat.c (rpl_unlinkat):
1441         * lib/utime.c (utime):
1442         If stat fails with EOVERFLOW the file exists, so treat it that way
1443         in file-existence tests that do not need struct stat values.
1445         canonicalize-lgpl: remove freea macro
1446         * lib/canonicalize-lgpl.c (freea) [_LIBC]: Remove; not needed.
1448         canonicalize, canonicalize-lgpl: fix symlink bug
1449         Problem reported by Adhemerval Zanella in:
1450         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00155.html
1451         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
1452         (suffix_requires_dir_check, dir_check): New functions.
1453         (GCC_BOGUS_WRETURN_LOCAL_ADDR): New macro, to put the diagnostic
1454         closer to the related GCC diagnostics.
1455         * lib/canonicalize-lgpl.c (realpath_stk):
1456         * lib/canonicalize.c (canonicalize_file_mode_stk):
1457         Use them to fix a bug with .../symlink-to-regular-file/ etc.
1458         * lib/canonicalize-lgpl.c (__stat) [!_LIBC]: New macro.
1459         (realpath_stk): New function,
1460         with the contents of the old __realpath and a new scratch buffer arg.
1461         This is needed to pacify GCC 10.1, as canonicalize.c is already doing.
1462         (__realpath): Use it.
1463         * tests/test-canonicalize-lgpl.c, tests/test-canonicalize.c:
1464         Add test cases for the bugs.
1466 2020-12-24  Bruno Haible  <bruno@clisp.org>
1468         execute: Treat signalled processes like wait-process does.
1469         * lib/execute.c: Include <sys/types.h>, <sys/wait.h>.
1470         (execute): Recognize the case where the exit code indicates a signalled
1471         child process.
1472         * tests/test-execute-main.c (main): Update expected test result.
1473         * modules/execute (Depends-on): Add sys_wait.
1475 2020-12-24  Bruno Haible  <bruno@clisp.org>
1477         windows-spawn: Improve errno upon failure on native Windows.
1478         * lib/windows-spawn.c (spawnpvech): Map the CreateProcess errors
1479         ERROR_BAD_FORMAT and ERROR_BAD_EXE_FORMAT to ENOEXEC.
1480         * tests/executable-script.sh: New file.
1481         * tests/test-posix_spawn-script.c (main): Also try executing
1482         executable-script.sh.
1483         * tests/test-posix_spawnp-script.c (main): Likewise.
1484         * tests/test-execute-script.c (main): Likewise.
1485         * tests/test-spawn-pipe-script.c (main): Likewise.
1486         * modules/posix_spawn-tests (Files): Add tests/executable-script.sh.
1487         * modules/posix_spawnp-tests (Files): Likewise.
1488         * modules/execute-tests (Files): Likewise.
1489         * modules/spawn-pipe-tests (Files): Likewise.
1491 2020-12-24  Bruno Haible  <bruno@clisp.org>
1493         findprog-in: Improve errno upon failure on native Windows.
1494         * lib/findprog-in.c (find_in_given_path): If the file basename has no
1495         dot and the search with a suffix returned no result, do also a search
1496         without a suffix, and set errno = ENOEXEC if we find a file in this way.
1497         * tests/test-spawn-pipe-script.c (main): Update expected errno.
1499 2020-12-23  Bruno Haible  <bruno@clisp.org>
1501         posix_spawn, posix_spawnp: Fix execution of scripts.
1502         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): New macro.
1503         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if posix_spawn
1504         or posix_spawnp allows unsecure execution of scripts.
1505         * doc/posix-functions/posix_spawn.texi: Document the script execution
1506         problem.
1507         * doc/posix-functions/posix_spawnp.texi: Likewise.
1509 2020-12-23  Bruno Haible  <bruno@clisp.org>
1511         Add unit tests regarding execution of scripts.
1512         * tests/executable-script: New file.
1513         * tests/executable-shell-script: New file.
1514         * tests/test-posix_spawn-script.c: New file.
1515         * tests/test-posix_spawnp-script.c: New file.
1516         * tests/test-execute-script.c: New file.
1517         * tests/test-spawn-pipe-script.c: New file.
1518         * modules/posix_spawn-tests (Files): Add
1519         tests/test-posix_spawn-script.c, tests/executable-script,
1520         tests/executable-shell-script.
1521         (Makefile.am): Compile and run test-posix_spawn-script.
1522         * modules/posix_spawnp-tests (Files): Add
1523         tests/test-posix_spawnp-script.c, tests/executable-script,
1524         tests/executable-shell-script.
1525         (Makefile.am): Compile and run test-posix_spawnp-script.
1526         * modules/execute-tests (Files): Add tests/test-execute-script.c,
1527         tests/executable-script, tests/executable-shell-script.
1528         (Makefile.am): Compile and run test-execute-script.
1529         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-script.c,
1530         tests/executable-script, tests/executable-shell-script.
1531         (Makefile.am): Compile and run test-spawn-pipe-script.
1533 2020-12-23  Bruno Haible  <bruno@clisp.org>
1535         Don't execute scripts without '#!' marker through /bin/sh.
1536         This reflects the change done in glibc through
1537         <https://sourceware.org/bugzilla/show_bug.cgi?id=13134> and
1538         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c>.
1539         * lib/spawni.c (internal_function): Remove macro.
1540         (script_execute): Remove function.
1541         (__spawni): Don't invoke script_execute.
1542         * lib/execute.c (execute): Disable the ENOEXEC handling.
1543         * lib/spawn-pipe.c (create_pipe): Likewise.
1544         * NEWS: Mention the change.
1546 2020-12-23  Bruno Haible  <bruno@clisp.org>
1548         posix_spawn[p]: Fix compilation error on Windows (regr. 2020-12-14).
1549         Reported by Adrian Ebeling <devl@adrian-ebeling.de> in
1550         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00189.html>.
1551         * lib/spawni.c (__spawni): Update function parameters.
1553 2020-12-23  Bruno Haible  <bruno@clisp.org>
1555         posix_spawn tests: Add two more tests.
1556         * tests/test-posix_spawn-inherit0.c: New file, based on
1557         tests/test-posix_spawn-open2.c.
1558         * tests/test-posix_spawn-inherit1.c: New file, based on
1559         tests/test-posix_spawn-open2.c.
1560         * modules/posix_spawn-tests (Files): Add them.
1561         (Depends-on): Add fflush.
1562         (Makefile.am): Compile and run test-posix_spawn-inherit0 and
1563         test-posix_spawn-inherit1.
1565 2020-12-23  Bruno Haible  <bruno@clisp.org>
1567         posix_spawn tests: Add another test.
1568         * tests/test-posix_spawn-open2.c: New file, based on
1569         tests/test-posix_spawn-open1.c.
1570         * modules/posix_spawn-tests (Files): Add it.
1571         (Makefile.am): Compile and run test-posix_spawn-open1.
1573 2020-12-20  Bruno Haible  <bruno@clisp.org>
1575         Remove support for broken <wchar.h> in AIX 3.
1576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
1578 2020-12-20  Bruno Haible  <bruno@clisp.org>
1580         Remove support for broken <wchar.h> in BSD/OS and OSF/1.
1581         * lib/wchar.in.h: Don't include <stdio.h>, <time.h>.
1582         * lib/mbchar.h: Likewise.
1583         * lib/mbiter.h: Likewise.
1584         * lib/mbuiter.h: Likewise.
1585         * m4/stdint.m4 (gl_STDINT_INCLUDES): Likewise.
1586         * lib/mbfile.h: Don't include <time.h>.
1587         * lib/mbswidth.h: Update comment.
1588         * lib/stdint.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> before
1589         <wchar.h>.
1590         * lib/wctype.in.h: Likewise.
1591         * m4/btowc.m4 (gl_FUNC_BTOWC): Simplify test programs.
1592         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Likewise.
1593         * m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
1594         * m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
1595         * m4/mbrlen.m4 (gl_FUNC_MBRLEN, gl_MBRLEN_INCOMPLETE_STATE,
1596         gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL): Likewise.
1597         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
1598         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_MBRTOWC_INCOMPLETE_STATE,
1599         gl_MBRTOWC_SANITYCHECK, gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2,
1600         gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL, gl_MBRTOWC_STORES_INCOMPLETE,
1601         AC_FUNC_MBRTOWC): Likewise.
1602         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Likewise.
1603         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE):
1604         Likewise.
1605         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS, gl_MBSRTOWCS_WORKS): Likewise.
1606         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1607         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1608         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Likewise.
1609         * m4/wchar_h.m4 (gl_WCHAR_H, gl_WCHAR_H_INLINE_OK): Likewise.
1610         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1611         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Likewise.
1612         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE):
1613         Likewise.
1614         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS, gl_WCSRTOMBS_TERMINATION,
1615         gl_WCSRTOMBS_NULL): Likewise.
1616         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
1617         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1618         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1620         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1621         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Likewise.
1622         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
1623         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
1624         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
1625         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
1627 2020-12-20  Bruno Haible  <bruno@clisp.org>
1629         isnanf: Fix autoconf test.
1630         * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.
1632 2020-12-20  Bruno Haible  <bruno@clisp.org>
1634         Remove some of the support for obsolete IRIX 4 and 5.
1635         * m4/mountlist.m4 (AC_FUNC_GETMNTENT): Don't test for getmntent in
1636         libsun.
1637         * tests/init.sh (setup_): Don't talk about IRIX 5.
1639 2020-12-20  Bruno Haible  <bruno@clisp.org>
1641         filemode: Remove Cray support.
1642         * lib/filemode.c (IS_MIGRATED_FILE): Remove macro.
1643         (filemodestring): Don't produce an 'M' type.
1644         * m4/filemode.m4 (gl_FILEMODE): Don't invoke AC_STRUCT_ST_DM_MODE.
1645         * m4/st_dm_mode.m4: Remove file.
1646         * modules/filemode (Files): Remove it.
1648 2020-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1650         free-posix: assume glibc 2.33 fixes this.
1651         * m4/free.m4 (gl_FUNC_FREE): Assume glibc 2.33+ is fixed.
1652         Use compile-time test rather than guessing for cross-builds.
1654 2020-12-20  Bruno Haible  <bruno@clisp.org>
1656         backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
1657         Reported by Adrian Ebeling <adrianebeling@gmx.de> in
1658         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
1659         * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
1661 2020-12-20  Bruno Haible  <bruno@clisp.org>
1663         float: Fix compilation error when gnulib's float.h exists twice.
1664         Reported by Santiago Vila <sanvila@unex.es>.
1665         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
1667 2020-12-19  Bruno Haible  <bruno@clisp.org>
1669         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
1670         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
1671         Don't trust _POSIX_VERSION for this test.
1673 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1675         free-posix: port to GNU/Linux
1676         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
1677         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
1678         other GNU/Linux hosts.
1680 2020-12-19  Bruno Haible  <bruno@clisp.org>
1682         free-posix: Add tests.
1683         * tests/test-free.c: New file.
1684         * tests/macros.h (ASSERT_NO_STDIO,
1685         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
1686         WRITE_TO_STDERR): New macros.
1687         * modules/free-posix-tests: New file.
1689 2020-12-18  Bruno Haible  <bruno@clisp.org>
1691         free-posix: Add C++ declaration test.
1692         * tests/test-stdlib-c++.cc (free): New declaration.
1694 2020-12-18  Bruno Haible  <bruno@clisp.org>
1696         free-posix: New module, renamed from 'free'.
1697         * modules/free-posix: Renamed from modules/free.
1698         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
1699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
1700         not GNULIB_FREE.
1701         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
1702         GNULIB_FREE.
1703         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
1704         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
1705         what it does.
1706         * NEWS: Mention that module 'free' no longer exists.
1707         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
1708         * modules/canonicalize-lgpl (Depends-on): Likewise.
1710 2020-12-18  Bruno Haible  <bruno@clisp.org>
1712         free: Remove support for obsolete platforms.
1713         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
1714         CANNOT_FREE_NULL.
1715         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
1716         * modules/free (Description): Update.
1717         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
1719 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1721         intprops: port to ICC 2021.1 Beta 20201112
1722         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
1723         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
1724         Add a clause for other compilers that claim to support
1725         __builtin_mul_overflow_p, since we might as well find out about
1726         slackers other than Clang and ICC.
1727         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
1728         like older GCCs even when it claims to be a newer one.
1730 2020-12-18  Bruno Haible  <bruno@clisp.org>
1732         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
1733         Reported by Stefan Liebler <stli@linux.ibm.com> in
1734         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
1735         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
1736         GCC 5.x and 6.x.
1737         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
1738         GCC 5.x and 6.x.
1740 2020-12-17  Bruno Haible  <bruno@clisp.org>
1742         free: Fix warning.
1743         Reported by Pádraig Brady <P@draigBrady.com> in
1744         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
1745         * lib/stdlib.in.h (free): New declaration.
1746         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
1747         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
1748         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
1749         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
1750         'free' as a macro here.
1751         * modules/free (Depends-on): Add stdlib.
1752         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
1754 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1756         canonicalize-lgpl: fix AIX test failures
1757         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
1758         Problem reported by Bruno Haible in:
1759         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
1760         * lib/canonicalize-lgpl.c: Include sys/stat.h.
1761         (__realpath): When testing a file name ending in '/', use stat
1762         rather than readlink, so that it does the right thing on AIX.
1763         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
1765         canonicalize: omit second readlink when not needed
1766         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1767         Omit second readlink when (can_exist != CAN_MISSING
1768         && startlen != 0 && !logical).  Simplify.
1770         canonicalize: remove arbitrary 8192-byte limit
1771         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
1772         like GNU Hurd that do not define the PATH_MAX macro, and similarly
1773         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
1774         using scratch buffers.  Lessen the number of differences between
1775         the two source files, to simplify this and future maintenance.
1776         * lib/canonicalize-lgpl.c (__realpath):
1777         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1778         Use scratch buffers instead of malloc and malloca.  This avoids
1779         the need for alloca, and avoids the need for malloc in most cases.
1780         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
1781         easier to compare, e.g., by sorting include files and by switching
1782         to the GNU convention of calling file names "file names", not
1783         "path names".  Include stdbool.h, scratch_buffer.h.
1784         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
1785         (malloca) [_LIBC]: Remove.
1786         [!_LIBC]: Do not include malloca.h.
1787         (get_path_max): New function, so that pathconf is called only in
1788         the rare and dubious case when when RESOLVED is not null and
1789         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
1790         file name, as we care about the longest file name starting from
1791         "/" (not from the input file name), and POSIX does not specify
1792         what pathconf does on a non-directory file anyway.  If PATH_MAX is
1793         not defined, do not worry about overriding a path_max of 0, and do
1794         not let path_max exceed IDX_MAX.
1795         (__realpath): Remove an assumption that file name components
1796         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
1797         the Hurd, presumably).
1798         When allocating the result, allocate it to just the right size;
1799         this costs nothing when the result is smaller than 1023 bytes,
1800         and for larger results it's probably worth the CPU to call realloc,
1801         as canonicalize.c already does.
1802         * lib/canonicalize.c: Include attribute.h.
1803         Do not include pathmax.h or xgetcwd.h.
1804         (PATH_MAX): Do not define, so file names longer than 8192 bytes
1805         work on platforms with no fixed limit.
1806         (canonicalize_filename_mode_stk): New function, with
1807         the content of the old canonicalize_filename_mode.
1808         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
1809         since the scratch buffers now do memory management for us.
1810         Use rawmemchr instead of adding strlen.
1811         Use mempcpy instead of mempcpy + size.
1812         Assume free preserves errno.
1813         (canonicalize_filename_mode): Use it.
1814         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
1815         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
1816         scratch_buffer, stdbool, xalloc-die.
1817         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
1818         malloca, realloc-posix.  Add scratch_buffer, stdbool.
1820         canonicalize-lgpl: simplify merge to glibc
1821         This patch lessens the differences between git glibc
1822         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
1823         The (perhaps wishful) goal is to make them identical.
1824         * lib/canonicalize-lgpl.c [!_LIBC]:
1825         Include <libc-config.h>, not config.h.
1826         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
1827         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
1828         Do not include alloca.h, since we use malloca now.
1829         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
1830         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
1831         freea so that the mainline code can be kept #ifdef free.
1832         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
1833         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
1834         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
1835         __eloop_threshold.  All uses of their definiens changed.
1836         (SIZE_MAX): Remove; no longer needed.
1837         (alloc_failed): Remove, and remove all instances.
1838         No need for alloc_failed now that free preserves errno.
1839         (__realpath): Default path_max to 1024 instead of 8192, as that’s
1840         the glibc tradition and is safer when the 2nd argument is null.
1841         Use __rawmemchr instead of strchr.
1842         Use __mempcpy where appropriate.
1843         Simplify test for overflow so that it does not need SIZE_MAX.
1844         Do not preserve errno around free or freea calls; no longer needed.
1845         Mark __realpath with libc_hidden_def.
1846         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
1847         malloc-posix, mempcpy, realloc-posix, rawmemchr.
1848         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
1850         free: preserve errno
1851         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
1852         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
1853         platforms that do not preserve errno.
1854         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
1855         Also, define CANNOT_FREE_NULL if free cannot free NULL.
1856         * modules/free (configure.ac): Also replace 'free' if
1857         it does not preserve errno.
1859         idx: simplify IDX_MAX, remove IDX_WIDTH
1860         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
1861         to UNSIGNED_IDX_T.
1862         (IDX_WIDTH): Remove, since it’s not used and its value
1863         arguably should be PTRDIFF_WIDTH anyway.
1865 2020-12-16  Bruno Haible  <bruno@clisp.org>
1867         posix_spawn_file_actions_addfchdir-tests: Rename test.
1868         * tests/test-posix_spawn-fchdir.c: Renamed from
1869         tests/test-posix_spawn5.c.
1870         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
1871         Update.
1873         posix_spawn_file_actions_addchdir-tests: Rename test.
1874         * tests/test-posix_spawn-chdir.c: Renamed from
1875         tests/test-posix_spawn4.c.
1876         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
1877         Update.
1879         posix_spawn-tests: Rename test.
1880         * tests/test-posix_spawn-open1.c: Renamed from
1881         tests/test-posix_spawn3.c.
1882         * modules/posix_spawn-tests (Files, Makefile.am): Update.
1884         posix_spawnp-tests: Rename test.
1885         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
1886         tests/test-posix_spawn2.c.
1887         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
1888         tests/test-posix_spawn2.in.sh.
1889         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1891         posix_spawnp-tests: Rename test.
1892         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
1893         tests/test-posix_spawn1.c.
1894         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
1895         tests/test-posix_spawn1.in.sh.
1896         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1898 2020-12-14  Bruno Haible  <bruno@clisp.org>
1900         findprog-in: Allow overriding the current directory.
1901         * lib/findprog.h (find_in_given_path): Add directory argument.
1902         * lib/findprog-in.c (find_in_given_path): Likewise.
1903         * lib/execute.c (execute): Update caller.
1904         * lib/spawn-pipe.c (create_pipe): Likewise.
1905         * lib/windows-spawn.c (spawnpvech): Likewise.
1906         * NEWS: Mention the change.
1908 2020-12-14  Bruno Haible  <bruno@clisp.org>
1910         posix_spawn-internal: Make better use of 'const'.
1911         * lib/spawn_int.h (__spawni): Does not need write access to the elements
1912         of argv and envp.
1913         * lib/spawni.c (__spawni, script_execute): Likewise.
1914         * lib/spawn.c (posix_spawn): Update caller.
1915         * lib/spawnp.c (posix_spawnp): Likewise.
1917 2020-12-14  Bruno Haible  <bruno@clisp.org>
1919         spawn: Make it compile on native Windows.
1920         * modules/spawn (Depends-on): Add signal-h.
1922 2020-12-14  Bruno Haible  <bruno@clisp.org>
1924         windows-spawn: Avoid shadowing a variable.
1925         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
1927 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1929         string: port memchr macro to AIX 7.2 XLC
1930         Its <string.h> defines a memchr macro to help inlining.
1931         * lib/string.in.h (memchr): #undef before #defining.
1933         canonicalize: fix AIX test failures
1934         Problem reported by Bruno Haible in:
1935         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
1936         * lib/canonicalize.c (canonicalize_filename_mode):
1937         When testing a file name ending in '/', use stat rather than
1938         readlink, so that it does the right thing on AIX.
1939         * modules/canonicalize (Depends-on): Add readlink, to pull in the
1940         recent changes in the Gnulib readlink module.
1942         Assume readlink/readlinkat ERANGE fix
1943         * lib/areadlink-with-size.c (areadlink_with_size):
1944         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
1945         * lib/careadlinkat.c (readlink_stk):
1946         Do not worry about readlink or readlinkat failing with errno == ERANGE,
1947         since the Gnulib readlink and readlinkat modules now fix that.
1949         getcwd: port to AIX
1950         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
1951         in case our sys/stat.h #defined a function macro with the same name.
1953         readlink, readlinkat: add ERANGE portability
1954         Fix some portability issues with Gnulib's readlink and readlinkat,
1955         notably mostly working around the ERANGE problem in AIX and HP-UX.
1956         * doc/posix-functions/readlink.texi:
1957         * doc/posix-functions/readlinkat.texi:
1958         ERANGE problem is mostly fixed now.  Mention AIX problem with
1959         trailing / and EINVAL.  Lessen differences between these two files.
1960         * lib/readlink.c (rpl_readlink):
1961         * lib/readlinkat.c (rpl_readlinkat):
1962         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
1963         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
1964         Lessen spurious differences between the readlink and readlinkat code.
1965         * lib/readlinkat.c (rpl_readlinkat):
1966         Fix bug where stat was used where fstatat was intended.
1967         * m4/readlink.m4 (gl_FUNC_READLINK):
1968         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
1969         to identify readlink problems more precisely.  All uses changed.
1970         Guess no on AIX or HP-UX for this variable.
1971         Add check for whether readlink truncates results,
1972         and define new macro READLINK_TRUCATE_BUG accordingly.
1973         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
1974         Also check gl_cv_func_readlink_trailing_slash when deciding
1975         whether to replace readlinkat.
1976         * modules/readlinkat (Depends-on): Most dependencies are also
1977         needed if replacing readlinkat.  fstatat is different, as it
1978         is needed only if replacing an existing readlinkat.
1980 2020-12-13  Bruno Haible  <bruno@clisp.org>
1982         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
1983         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
1984         the stdin_handle and/or stdout_handle.
1986 2020-12-12  Bruno Haible  <bruno@clisp.org>
1988         Fix gnulib-tool error when some modules occur in tests/.
1989         * doc/gnulib.texi (Specification): Update statistics.
1990         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
1991         (Using AC_LIBOBJ): New section.
1992         * check-AC_LIBOBJ: New file.
1993         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
1994         * modules/fopen-gnu (Files): Add lib/fopen.c.
1995         * modules/memmem (Files): Add lib/memmem.c.
1996         * modules/renameat (Files): Add lib/at-func2.c.
1997         * modules/strcasestr (Files): Add lib/strcasestr.c.
1998         * modules/strstr (Files): Add lib/strstr.c.
2000 2020-12-11  Bruno Haible  <bruno@clisp.org>
2002         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
2003         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
2004         elements of argv.
2005         * lib/sh-quote.c (shell_quote_argv): Likewise.
2006         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
2007         the return type.
2008         * lib/windows-spawn.c (prepare_spawn): Likewise.
2009         * lib/os2-spawn.h (prepare_spawn): Likewise.
2010         * lib/os2-spawn.c (prepare_spawn): Likewise.
2011         * lib/execute.h (execute): Does not need write access to the elements of
2012         prog_argv.
2013         * lib/execute.c (execute): Likewise.
2014         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
2015         Likewise.
2016         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
2017         create_pipe_out): Likewise.
2018         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
2019         Likewise.
2020         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
2021         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
2022         * lib/javaexec.h (execute_fn): Does not need write access to the
2023         elements of prog_argv.
2024         * lib/javaexec.c (execute_java_class): Update variable types and remove
2025         casts to 'char *'.
2026         * lib/csharpexec.h (execute_fn): Does not need write access to the
2027         elements of prog_argv.
2028         * lib/csharpexec.c (execute_csharp_using_mono,
2029         execute_csharp_using_sscli): Update variable types and remove casts to
2030         'char *'.
2031         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
2032         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
2033         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
2034         is_jikes_present): Update variable types and remove casts to 'char *'.
2035         * lib/javaversion.c (execute_and_read_line): Does not need write access
2036         to the elements of prog_argv.
2037         * lib/csharpcomp.c (compile_csharp_using_mono,
2038         compile_csharp_using_sscli): Update variable types and remove casts to
2039         'char *'.
2040         * tests/test-sh-quote.c (main): Update variable types and remove casts
2041         to 'char *'.
2042         * tests/test-execute-main.c (main): Update variable types and remove
2043         casts to 'char *'.
2044         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
2045         remove casts to 'char *'.
2046         * NEWS: Mention the changes.
2048 2020-12-11  Bruno Haible  <bruno@clisp.org>
2050         execute-tests: Fix compilation error with MSVC.
2051         * tests/test-execute-child.c (is_device): With _fstat, use
2052         'struct _stat', not 'struct stat'.
2054 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2056         vararrays: just use 2.70
2057         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
2058         and later, since Autoconf 2.70 matches Gnulib now.
2060         sys_types: just use 2.70
2061         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
2062         Reindent to match Autoconf sources.
2063         Use Autoconf 2.70 as a prerequisite, not 2.69c.
2065         stdint: port to Autoconf 2.70
2066         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
2067         instead of assuming that AC_INCLUDES_DEFAULT does it.
2068         The old code relied on AC_INCLUDES_DEFAULT being called
2069         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
2070         but this does not occur in Autoconf 2.70.
2072         pid_t.m4: just use 2.70
2073         * m4/pid_t.m4 (AC_TYPE_PID_T):
2074         Use Autoconf 2.70 as a prerequisite, not 2.69c.
2076         largefile: just use 2.70
2077         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
2078         Use Autoconf 2.70 as a prerequisite, not 2.69c.
2080         AC_C_RESTRICT: update from Autoconf
2081         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
2082         as a prerequisite, not 2.69c, since 2.70 is now out.
2083         (AC_C_RESTRICT): Define only for 2.70 or earlier.
2084         Try __restrict__ before __restrict.
2086         extensions: update from Autoconf
2087         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
2088         Provide a default implementation for Autoconf 2.69 or earlier.
2089         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
2090         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
2092         alloca: update from Autoconf
2093         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
2094         Trivial update to match Autoconf 2.70.
2096 2020-12-11  Bruno Haible  <bruno@clisp.org>
2098         memchr: Work around memory overrun bug on AIX 7.2.
2099         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
2100         * doc/posix-functions/memchr.texi: Mention the AIX bug.
2102 2020-12-11  Bruno Haible  <bruno@clisp.org>
2104         execute-tests: Fix compilation error on AIX in 32-bit mode.
2105         * tests/test-execute-child.c: In order to get the original definition of
2106         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
2107         include the system's <sys/stat.h> and use it before including other
2108         header files.
2110 2020-12-10  Bruno Haible  <bruno@clisp.org>
2112         windows-spawn: Relicense under LGPLv2+.
2113         * modules/windows-spawn (License): Change to LGPLv2+.
2115 2020-12-10  Bruno Haible  <bruno@clisp.org>
2117         execute, spawn-pipe: Fix memory leak on native Windows.
2118         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
2119         * lib/windows-spawn.c: Don't include xalloc.h.
2120         (quoted_arg_length, quoted_arg_string): New functions, extracted from
2121         prepare_spawn.
2122         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
2123         elements of *new_argv together.
2124         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
2125         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
2126         * lib/os2-spawn.c: Don't include xalloc.h.
2127         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
2128         elements of *new_argv together.
2129         * lib/execute.c: Include xalloc.h.
2130         (execute): Check return value of prepare_spawn. Free the memory
2131         allocated by prepare_spawn.
2132         * modules/execute (Depends-on): Add xalloc-die.
2133         * lib/spawn-pipe.c: Include xalloc.h.
2134         (create_pipe): Check return value of prepare_spawn. Free the memory
2135         allocated by prepare_spawn.
2136         * modules/spawn-pipe (Depends-on): Add xalloc-die.
2138 2020-12-10  Bruno Haible  <bruno@clisp.org>
2140         findprog-in: Relicense under LGPLv2+.
2141         Paul Smith's approval is in
2142         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
2143         * modules/findprog-in (License): Change to LGPLv2+.
2145 2020-12-10  Bruno Haible  <bruno@clisp.org>
2147         findprog-in: Don't exit upon out-of-memory.
2148         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
2149         code.
2150         * lib/findprog-in.c: Don't include xalloc.h.
2151         (find_in_given_path): Call concatenated_filename, not
2152         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
2153         return NULL with errno set.
2154         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
2155         concat-filename, strdup-posix, malloc-posix.
2157 2020-12-09  Bruno Haible  <bruno@clisp.org>
2159         fmaf: Work around a bug on FreeBSD 12.2/arm.
2160         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
2161         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
2163 2020-12-09  Bruno Haible  <bruno@clisp.org>
2165         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
2166         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
2167         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
2168         * lib/glthread/threadlib.c: Include <errno.h>.
2169         (glthread_in_use): For FreeBSD, provide an alternative implementation
2170         that uses pthread_key_create.
2172 2020-12-09  Bruno Haible  <bruno@clisp.org>
2174         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
2175         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
2176         not 'isnan'.
2178 2020-12-08  Bruno Haible  <bruno@clisp.org>
2180         std-gnu11: Make compatible with Autoconf 2.70.
2181         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
2182         use.
2184 2020-12-08  Bruno Haible  <bruno@clisp.org>
2186         argp: Avoid undefined behaviour when invoking qsort().
2187         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
2188         Reported by Jeffrey Walton <noloader@gmail.com> in
2189         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
2190         * lib/argp-help.c (group_cmp): Remove third argument.
2191         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
2192         upon hol_cluster_cmp.
2193         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
2194         (hol_entry_cmp): Rewritten to implement a total order.
2196 2020-12-08  Bruno Haible  <bruno@clisp.org>
2198         argp: Improve comments.
2199         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
2200         null pointer.
2201         (struct hol_entry): Fix comment regarding sort order of group.
2202         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
2203         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
2204         (hol_cluster_is_child, argp_hol): Move functions.
2205         (HOL_ENTRY_PTRCMP): Remove unused macro.
2207 2020-12-08  Bruno Haible  <bruno@clisp.org>
2209         argp: Don't pass invalid arguments to isspace() and isalnum().
2210         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
2211         before passing it to isspace() or isalnum().
2213 2020-12-08  Bruno Haible  <bruno@clisp.org>
2215         argp: Don't rely on undefined behaviour of _tolower().
2216         Patch by Eric Blake
2217         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
2218         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
2219         not upper-case.  Pass correct range to tolower.
2221 2020-12-07  Bruno Haible  <bruno@clisp.org>
2223         unicodeio: Fix wrong result on FreeBSD.
2224         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
2225         characters on all platforms.
2227 2020-12-07  Bruno Haible  <bruno@clisp.org>
2229         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
2230         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
2231         FreeBSD systems.
2233 2020-12-07  Bruno Haible  <bruno@clisp.org>
2235         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
2236         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
2237         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
2238         trivially of sbrk is not available.
2239         * doc/glibc-functions/sbrk.texi: Mention that the function does not
2240         exist in FreeBSD 12.2/arm64.
2241         * doc/glibc-functions/brk.texi: Likewise.
2243 2020-12-07  Bruno Haible  <bruno@clisp.org>
2245         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
2246         Suggested by Zack Weinberg in
2247         <https://savannah.gnu.org/support/?110294>.
2248         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
2249         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
2251 2020-12-07  Bruno Haible  <bruno@clisp.org>
2253         Tweak the Windows oldnames workaround.
2254         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
2255         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
2256         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
2257         always.
2258         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
2259         * lib/stdlib.in.h (putenv): Likewise.
2261 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
2263         doc: fix flat address space discussion
2264         * doc/gnulib-readme.texi (Other portability assumptions):
2265         Move the all-bits-zero assumption outside the flat address space
2266         section, since the two issues are independent.
2268         doc: document -static-libubsan more
2269         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
2270         -static-libubsan a bit more.  Mostly cons.
2272 2020-12-06  Bruno Haible  <bruno@clisp.org>
2274         doc: Add more details regarding the undefined behaviour sanitizer.
2275         * doc/gnulib-readme.texi (High Quality): Describe
2276         -fsanitize-undefined-trap-on-error better.
2278 2020-12-06  Bruno Haible  <bruno@clisp.org>
2280         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
2281         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
2282         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
2283         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
2284         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
2285         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
2286         a preprocessor #define.
2287         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
2288         * lib/search.in.h (lfind, lsearch): Likewise.
2289         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
2290         Likewise.
2291         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
2292         * lib/string.in.h (memccpy, strdup): Likewise.
2293         * lib/sys_stat.in.h (chmod, umask): Likewise.
2294         * lib/time.in.h (tzset): Likewise.
2295         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
2296         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
2297         read, rmdir, swab, unlink, write): Likewise.
2298         * lib/utime.in.h (utime): Likewise.
2299         * lib/wchar.in.h (wcsdup): Likewise.
2300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
2301         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
2302         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
2303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
2304         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
2305         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
2306         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
2307         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
2308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
2309         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
2310         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
2311         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
2312         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
2313         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
2315 2020-12-06  Bruno Haible  <bruno@clisp.org>
2317         doc: Mention some missing function declarations.
2318         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
2319         AIX.
2320         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
2321         FreeBSD.
2322         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
2323         Cygwin.
2324         * doc/pastposix-functions/fcvt.texi: Likewise.
2325         * doc/pastposix-functions/gcvt.texi: Likewise.
2327 2020-12-06  Bruno Haible  <bruno@clisp.org>
2329         doc: Tweak example.
2330         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
2331         'print'.
2333 2020-12-06  Bruno Haible  <bruno@clisp.org>
2335         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
2336         * tests/test-filenamecat.c: Include idx.h.
2337         (main): Mark prefixlen as nonnegative.
2338         * modules/filenamecat-tests (Depends-on): Add idx.
2340 2020-12-06  Bruno Haible  <bruno@clisp.org>
2342         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
2343         * lib/time_rz.c: Include idx.h.
2344         (save_abbr): Mark zone_size as nonnegative.
2345         * modules/time_rz (Depends-on): Add idx.
2347 2020-12-06  Bruno Haible  <bruno@clisp.org>
2349         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
2350         * lib/parse-datetime.y: Include idx.h.
2351         (textint): Mark digits as nonnegative.
2352         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
2353         dsts_seen, times_seen, zones_seen as nonnegative.
2354         (lookup_word): Mark wordlen as nonnegative.
2355         (yylex): Mark count as nonnegative.
2356         (parse_datetime2): Mark tzsize as nonnegative.
2357         * modules/parse-datetime (Depends-on): Add idx.
2359 2020-12-06  Bruno Haible  <bruno@clisp.org>
2361         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
2362         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
2363         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
2364         nonnegative.
2365         * modules/fnmatch (Depends-on): Add idx.
2367 2020-12-06  Bruno Haible  <bruno@clisp.org>
2369         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
2370         * lib/c-stack.c: Include idx.h.
2371         (die): Mark buflen as nonnegative.
2372         * modules/c-stack (Depends-on): Add idx.
2374 2020-12-06  Bruno Haible  <bruno@clisp.org>
2376         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
2377         * lib/backupfile.c: Include idx.h.
2378         (numbered_backup): Mark base_offset as nonnegative.
2379         (backupfile_internal): Likewise.
2380         * modules/backup-rename (Depends-on): Add idx.
2381         * modules/backupfile (Depends-on): Likewise.
2383 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2385         doc: fix curved quotes issue
2386         * doc/gnulib.texi: Set txicodequoteundirected and
2387         txicodequotebacktick so that ` and ' in examples do not generate
2388         curved single quotes that do the wrong thing when cut and pasted.
2390         doc: mention static and dynamic checking
2391         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
2392         for static and dynamic checking.
2394         intprops: Add INT_ADD_OK etc.
2395         * doc/intprops.texi (Checking Integer Overflow): New section.
2396         * lib/intprops.h: From a suggestion by Bruno Haible in:
2397         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
2398         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
2400         doc: move exotic platfroms to Target Platforms
2401         * doc/gnulib-intro.texi (Supported Platforms)
2402         (Formerly Supported Platforms, Unsupported Platforms):
2403         New subsections, split off from Target Platforms.
2404         (Unsupported Platforms): Move the exotic-platform stuff here ...
2405         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
2406         section.
2408         doc: mention intptr_t etc. and IBM i
2409         * doc/gnulib-readme.texi (Other portability assumptions):
2410         Mention intptr_t and uintptr_t, and that arithmetic on them
2411         works in the usual way.
2412         (Exotic platforms): New section, containing material from
2413         the old 'Integer Portability' section.  Also mention IBM i.
2414         * doc/intprops.texi (Wraparound Arithmetic):
2415         Say that the macros work on unsigned integers too.
2416         (Integer Portability): Remove.
2418 2020-12-04  Bruno Haible  <bruno@clisp.org>
2420         utime: Fix a test failure on macOS 10.13.
2421         Reported by Martin Storsjö <martin@martin.st> in
2422         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2423         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
2424         slashes on files.
2425         * lib/utime.c (utime): Add alternative implementation for Unix
2426         platforms.
2427         * modules/utime (Depends-on): Add stat.
2428         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
2429         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
2430         trailing-slash bug.
2431         * doc/posix-functions/open.texi: Likewise.
2432         * doc/posix-functions/stat.texi: Likewise.
2433         * doc/posix-functions/symlink.texi: Likewise.
2435 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
2437         intprops: update doc and mention Unisys
2438         * doc/gnulib-readme.texi (Other portability assumptions):
2439         Also mention ptrdiff_t when talking about widths and overflow.
2440         * doc/intprops.texi (Integer Properties): Summarize new section.
2441         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
2442         evaluates its argument.
2443         (Integer Bounds): Fix typo.
2444         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
2445         Document that the _WRAPV macros now support pointers to unsigned
2446         integers.
2447         (Integer Range Overflow): Update SEI CERT citation.
2448         (Integer Portability): New subsection, which mentions
2449         the oddball Unisys platforms as non-Gnulib targets.
2451 2020-12-03  Bruno Haible  <bruno@clisp.org>
2453         idx: Clarify that idx_t always behaves like a signed type.
2454         Suggested by Paul Eggert in
2455         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
2456         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
2457         Don't test UNSIGNED_IDX_T.
2459 2020-12-03  Bruno Haible  <bruno@clisp.org>
2461         idx: New module.
2462         * lib/idx.h: New file.
2463         * modules/idx: New file.
2464         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
2465         ptrdiff_t.
2466         * lib/canonicalize.c: Likewise.
2467         * modules/canonicalize-lgpl (Depends-on): Add idx.
2468         * modules/canonicalize (Depends-on): Likewise.
2470 2020-12-03  Bruno Haible  <bruno@clisp.org>
2472         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
2473         Reported by Martin Storsjö <martin@martin.st> in
2474         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2475         * tests/test-fprintf-posix3.c: Skip the test on macOS.
2476         (main): Return a different exit code at each point. Allow 100 KB extra
2477         memory consumption.
2478         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
2479         doesn't work" diagnostic.
2481 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2483         canonicalize: refactor can_mode flag
2484         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
2485         (multiple_bits_set): ... this new static function.  Uses changed.
2486         (canonicalize_filename_mode): Refactor for clarity to avoid
2487         modifying the CAN_MODE argument.
2489         canonicalize: prefer signed integer types
2490         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
2491         (seen_triple, canonicalize_filename_mode): Prefer signed to
2492         unsigned types where either will do, as they avoid some glitches
2493         in comparisons and can trap on overflow when debugging.
2495         canonicalize: fix most of another EOVERFLOW issue
2496         * lib/canonicalize.c (canonicalize_filename_mode):
2497         Do not call stat if fewer than 20 symlinks have been traversed.
2498         This avoids EOVERFLOW failure in the common case where there
2499         are not that many symlinks, while continuing to catch loops
2500         (or fail due to EOVERFLOW) in the unusual case when there
2501         are many symlinks to traverse.
2503         canonicalize: do not assume symlinks have st_ino
2504         * lib/canonicalize.c (canonicalize_filename_mode):
2505         When checking for loops, use st_dev and st_ino from the parent
2506         directory not from the symlink, as pre-2017 POSIX says these
2507         members are not reliable for symlinks.  Couple this with START
2508         (the remaining file name to be resolved), not NAME (the whole file
2509         name with START as its suffix).
2510         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
2512         canonicalize: fix EOVERFLOW bug
2513         * lib/canonicalize.c (canonicalize_filename_mode):
2514         When testing whether a directory entry is a symbolic link, or a
2515         directory or other, do not use lstat or stat or
2516         areadlink_with_size.  Just use areadlink, as this suffices and it
2517         avoids the EOVERFLOW problem that lstat and stat have.
2518         * modules/canonicalize (Depends-on): Depend on areadlink instead
2519         of areadlink-with-size and stat.
2521         canonicalize-lgpl: fix EOVERFLOW bug
2522         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
2523         (__realpath): Do not use lstat.  Just use readlink, as this
2524         suffices and it avoids the EOVERFLOW problem that lstat has.
2525         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
2527 2020-12-02  Bruno Haible  <bruno@clisp.org>
2529         strsignal-tests: Fix test failure on macOS 10.13.
2530         Reported by Martin Storsjö <martin@martin.st> in
2531         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2532         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
2533         to be longer than the expected result.
2535 2020-12-02  Bruno Haible  <bruno@clisp.org>
2537         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
2538         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
2539         recursive self-include problem on FreeBSD 12.2 in C++ mode.
2541 2020-12-02  Bruno Haible  <bruno@clisp.org>
2543         spawn-pipe: Allow caller to specify directory for the subprocess.
2544         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
2545         Add directory argument.
2546         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
2547         (create_pipe): Add directory argument. If specified, resolve the program
2548         file name and make it absolute, first. Pass the directory to spawnpvech
2549         and posix_spawn_file_actions_addchdir.
2550         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
2551         argument.
2552         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
2553         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
2554         * tests/test-spawn-pipe-main.c (test_pipe): Update.
2555         * NEWS: Mention the change.
2556         * lib/csharpcomp.c (compile_csharp_using_mono,
2557         compile_csharp_using_sscli): Update.
2558         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
2559         is_gcj_43): Update.
2560         * lib/javaversion.c (execute_and_read_line): Update.
2561         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
2562         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
2564 2020-12-02  Bruno Haible  <bruno@clisp.org>
2566         execute: Allow caller to specify directory for the subprocess.
2567         * lib/execute.h (execute): Add directory argument.
2568         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
2569         (execute): Add directory argument. If specified, resolve the program
2570         file name and make it absolute, first. Pass the directory to spawnpvech
2571         and posix_spawn_file_actions_addchdir.
2572         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
2573         posix_spawn, posix_spawn_file_actions_addchdir.
2574         * tests/test-execute-main.c: Add test for passing a directory.
2575         * tests/test-execute-child.c: Likewise.
2576         * tests/test-execute.sh: Update.
2577         * modules/execute-tests (Depends-on): Add mkdir.
2578         * NEWS: Mention the change.
2579         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
2580         * lib/csharpexec.c (execute_csharp_using_mono,
2581         execute_csharp_using_sscli): Update.
2582         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
2583         compile_using_javac, compile_using_jikes, is_javac_present,
2584         is_jikes_present): Update.
2585         * lib/javaexec.c (execute_java_class): Update.
2587 2020-12-01  Bruno Haible  <bruno@clisp.org>
2589         vma-iter: Add support for macOS11/arm64.
2590         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
2591         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
2592         and by Martin Storsjö <martin@martin.st> in
2593         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
2594         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
2596 2020-12-01  Bruno Haible  <bruno@clisp.org>
2598         spawn-pipe: Fix handling of OS/2 kLIBC.
2599         Reported by KO Myung-Hun <komh78@gmail.com> in
2600         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
2601         * modules/spawn-pipe (configure.ac): Use the common idiom for
2602         recognizing the OS/2 operating system.
2604 2020-11-30  Bruno Haible  <bruno@clisp.org>
2606         execute: Fix uninitialized use of errno.
2607         * lib/execute.c (execute): Preserve errno across several system calls.
2609 2020-11-30  Bruno Haible  <bruno@clisp.org>
2611         access tests: Fix test failure on native Windows.
2612         * tests/test-access.c (main): Change permissions of f2 file before
2613         attempting to remove it.
2615 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
2617         faccessat: link with $(LIB_EACCESS)
2618         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
2619         module depends on euidaccess.
2621 2020-11-30  Bruno Haible  <bruno@clisp.org>
2623         execute, spawn-pipe: Make multithread-safe on native Windows.
2624         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
2625         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
2626         (spawnpvech): New declaration.
2627         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
2628         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
2629         (_): Remove macro.
2630         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
2631         undup_safer_noinherit): Remove functions.
2632         (spawnpvech): New function.
2633         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
2634         cloexec, dup2, error, gettext-h.
2635         * lib/execute.c: Include msvc-nothrow.h.
2636         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
2637         * lib/spawn-pipe.c: Include msvc-nothrow.h.
2638         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
2639         instead of _spawnvpe.
2640         * modules/execute (Depends-on): Add msvc-nothrow.
2641         * modules/spawn-pipe (Depends-on): Likewise.
2643 2020-11-30  Bruno Haible  <bruno@clisp.org>
2645         execute, spawn-pipe: Improve documentation.
2646         * lib/execute.h: Describe progname, prog_path, prog_argv.
2647         * lib/spawn-pipe.h: Likewise.
2649 2020-11-30  Bruno Haible  <bruno@clisp.org>
2651         execute tests: Add more tests.
2652         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
2653         inherited file descriptors >= 3.
2654         * tests/test-execute-child.c: Likewise.
2655         * tests/test-execute.sh: Update.
2657 2020-11-30  Bruno Haible  <bruno@clisp.org>
2659         havelib: Fix for non-ELF platforms (regression 2019-11-17).
2660         Reported by comex <comexk@gmail.com> in
2661         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
2662         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
2663         don't expect an ELF header.
2665 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2667         bitset: use integer_length in table implementation
2668         * lib/bitset/table.c (tbitset_list_reverse): Use
2669         BITSET_FOR_EACH_BIT_REVERSE.
2671 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2673         bitset: use integer_length in list implementation
2674         * lib/bitset/list.c (lbitset_list_reverse): Use
2675         BITSET_FOR_EACH_BIT_REVERSE.
2677 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2679         bitset: use integer_length in vector implementation
2680         * lib/bitset/array.c (vbitset_list_reverse): Use
2681         BITSET_FOR_EACH_BIT_REVERSE.
2683 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2685         bitset: use integer_length in array implementation
2686         * modules/bitset (Depends-on): Add integer_length_l.
2687         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
2688         * lib/bitset/array.c (abitset_list_reverse): Use it.
2690 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2692         bitset: style: use consistent names
2693         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
2694         and 'boffset' as 'bitoff', for consistency with the other
2695         implementations.
2696         * bitset/table.c (tbitset_list_reverse): Likewise.
2698 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2700         bitset: style: sort header
2701         * lib/bitset/base.h (bitset_ffs): Rename as...
2702         (bitset_ffs_): this.
2703         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
2705 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2707         bitset: tests: check BITSET_FOR_EACH_REVERSE
2708         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
2709         Check BITSET_FOR_EACH_REVERSE.
2711 2020-11-29  Bruno Haible  <bruno@clisp.org>
2713         spawn-pipe tests: Fix test failure with MSVC.
2714         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
2715         (gl_msvc_invalid_parameter_handler): New function.
2716         (main): Set a global invalid-parameter handler.
2717         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
2719 2020-11-29  Bruno Haible  <bruno@clisp.org>
2721         execute: Add tests.
2722         * tests/test-execute.sh: New file.
2723         * tests/test-execute-main.c: New file.
2724         * tests/test-execute-child.c: New file.
2725         * modules/execute-tests: New file.
2727 2020-11-29  Bruno Haible  <bruno@clisp.org>
2729         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
2730         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
2731         works.
2732         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
2733         fallback implementation as on Haiku.
2734         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
2735         effective.
2736         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
2738 2020-11-29  Bruno Haible  <bruno@clisp.org>
2740         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
2741         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
2742         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
2743         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
2744         * lib/windows-spawn.c: Remove modifications for kLIBC.
2745         * modules/spawn-pipe (Files): Add the new files.
2746         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
2748 2020-11-28  Bruno Haible  <bruno@clisp.org>
2750         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
2751         Reported by Paul Eggert in
2752         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
2753         * m4/sparcv8+.m4: New file.
2754         * modules/sparcv8+: New file.
2755         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
2757 2020-11-28  Bruno Haible  <bruno@clisp.org>
2759         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
2760         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
2762 2020-11-28  Bruno Haible  <bruno@clisp.org>
2764         windows-spawn: New module.
2765         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
2766         implementations.
2767         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
2768         * modules/windows-spawn: New file.
2769         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
2770         * lib/spawn-pipe.c: Likewise.
2771         * modules/execute (Files): Remove lib/w32spawn.h.
2772         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2773         xalloc.
2774         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2775         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
2776         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2777         xalloc.
2778         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2780 2020-11-27  Bruno Haible  <bruno@clisp.org>
2782         ssfmalloc tests: Port to macOS 11.
2783         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
2785 2020-11-26  Bruno Haible  <bruno@clisp.org>
2787         Fix dependencies of modules that use '_exit' on native Windows.
2788         Reported by Jim Meyering in
2789         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
2790         * modules/_Exit (Depends-on): Add unistd.
2791         * modules/closein (Depends-on): Likewise.
2792         * modules/closeout (Depends-on): Likewise.
2793         * modules/forkpty (Depends-on): Likewise.
2794         * modules/posix_spawn-internal (Depends-on): Likewise.
2795         * modules/savewd (Depends-on): Likewise.
2796         * modules/stat-time-tests (Depends-on): Likewise.
2798 2020-11-26  Bruno Haible  <bruno@clisp.org>
2800         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
2801         * modules/raise-tests (Depends-on): Add unistd.
2802         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
2804 2020-11-25  Jim Meyering  <meyering@fb.com>
2806         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
2807         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
2808         non-NULL, since we don't bother handing strdup failure.
2810         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
2811         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
2812         * tests/test-raise.c: Include unistd.h.
2813         (handler): Use _exit, not exit.
2815 2020-11-23  Bruno Haible  <bruno@clisp.org>
2817         Use the correct printf format attribute for mingw.
2818         Reported by Reuben Thomas <rrt@sc3d.org> in
2819         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
2821         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
2822         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
2824         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
2825         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
2826         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2827         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
2828         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
2829         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
2831         * modules/vasnprintf (Depends-on): Add stdio.
2832         * lib/vasnprintf.h: Include <stdio.h>.
2833         (asnprintf, vasnprintf): Use the standard printf format attribute.
2835         * modules/xvasprintf (Depends-on): Add stdio.
2836         * lib/xvasprintf.h: Include <stdio.h>.
2837         (xasprintf, xvasprintf): Use the standard printf format attribute.
2839         * modules/xprintf (Depends-on): List stdio first.
2840         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
2841         depends on GNULIB_VPRINTF_POSIX.
2842         (xfprintf, xvfprintf): Use a printf format attribute that depends on
2843         GNULIB_VFPRINTF_POSIX.
2845         * modules/c-vasnprintf (Depends-on): Add stdio.
2846         * lib/c-vasnprintf.h: Include <stdio.h>.
2847         (c_vasnprintf): Use the standard printf format attribute.
2849         * modules/c-vasprintf (Depends-on): Add stdio.
2850         * lib/c-vasprintf.h: Include <stdio.h>.
2851         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
2853         * modules/c-vsnprintf (Depends-on): Add stdio.
2854         * lib/c-vsnprintf.h: Include <stdio.h>.
2855         (c_vsnprintf): Use the standard printf format attribute.
2857         * modules/c-snprintf (Depends-on): Add stdio.
2858         * lib/c-snprintf.h: Include <stdio.h>.
2859         (c_snprintf): Use the standard printf format attribute.
2861         * modules/c-xvasprintf (Depends-on): Add stdio.
2862         * lib/c-xvasprintf.h: Include <stdio.h>.
2863         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
2865         * modules/error (Depends-on): Depend on stdio always.
2866         * lib/error.h: Include <stdio.h>.
2867         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
2868         (error, error_at_line): Use a printf format attribute that depends on
2869         GNULIB_VFPRINTF_POSIX.
2870         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2871         _GL_ATTRIBUTE_FORMAT_PRINTF.
2873         * modules/verror (Depends-on): Add stdio.
2874         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
2875         (verror, verror_at_line): Use the standard printf format attribute.
2876         * lib/verror.c: Include "error.h".
2878         * modules/argp (Depends-on): Add stdio.
2879         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
2880         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
2882         * modules/libtextstyle-optional (Depends-on): Add stdio.
2883         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
2884         printf format attribute.
2886         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
2887         format attribute.
2889 2020-11-23  Pádraig Brady  <P@draigBrady.com>
2891         selinux-at, selinux-h: use const correct declarations
2892         * lib/se-selinux.in.h: Use const for "set" functions,
2893         to match current selinux, and support cleaner user code.
2894         * lib/selinux-at.c: Likewise.
2895         * lib/selinux-at.h: Likewise.
2897 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2899         canonicalize-lgpl: fix memory leak
2900         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
2901         which could have occurred if BUF was so large that malloc was
2902         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
2903         this eliminates the need to free BUF separately.
2905 2020-11-22  Bruno Haible  <bruno@clisp.org>
2907         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
2908         * modules/xvasprintf (Depends-on): Add xalloc.
2909         * modules/pipe-filter-gi (Depends-on): Likewise.
2910         * modules/execute (Depends-on): Likewise, for w32spawn.h.
2911         * modules/spawn-pipe (Depends-on): Likewise.
2913 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
2915         bootstrap: add option hooks
2916         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
2917         (bootstrap_option_hook): Likewise.
2918         (usage): Call bootstrap_print_option_usage_hook.
2920 2020-11-22  Bruno Haible  <bruno@clisp.org>
2922         argp: Don't break getprogname on non-glibc systems.
2923         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
2924         program_invocation_name and program_invocation_short_name.
2926 2020-11-22  Bruno Haible  <bruno@clisp.org>
2928         doc: Document <link.h>.
2929         * doc/glibc-headers/link.texi: New file.
2930         * doc/gnulib.texi: Include it.
2932 2020-11-22  Bruno Haible  <bruno@clisp.org>
2934         doc: Add references to the LSB.
2935         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
2936         * doc/posix-functions/*.texi: Likewise.
2938 2020-11-22  Bruno Haible  <bruno@clisp.org>
2940         doc: Fix a makeinfo warning (regression 2020-11-03).
2941         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
2943 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
2945         parse-datetime: fix printf format typo
2946         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
2947         previous patch to this file.  Problem reported by Chris Elvidge in
2948         <https://bugs.gnu.org/44763#32>.
2950         setlocale-null-tests: work around GCC bug 44511
2951         * tests/test-setlocale_null-mt-all.c:
2952         * tests/test-setlocale_null-mt-one.c:
2953         Ignore -Wreturn-type, to work around GCC bug 44511.
2955         nl_langinfo-tests: work around GCC bug 44511
2956         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
2957         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
2958         Problem reported for GNU grep by Andreas Schwab
2959         <https://bugs.gnu.org/44535>.
2961         selinux-h: add stubs for selabel_open etc.
2962         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
2963         because matchpathcon is deprecated in favor of selabel_open etc.,
2964         so this patch adds stubs for these functions.
2965         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
2966         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
2967         as it is needed for selabel_open and selinux/selinux.h declares
2968         this type here.
2969         * modules/selinux-h (Files): Add the new files.
2970         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
2971         (lib_SOURCES): Add se-label.in.h, se-label.c.
2972         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
2973         (selinux/label.h): New rule, mimicking selinux/context.h.
2974         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
2975         (Include): Add selinux/label.h.
2977 2020-11-21  Bruno Haible  <bruno@clisp.org>
2979         Update after 'test-driver' in Automake changed.
2980         * build-aux/test-driver.diff: Rebase.
2982 2020-11-21  Daiki Ueno  <ueno@gnu.org>
2984         read-file: remove dead assignment
2985         * lib/read-file.c (fread_file): Remove dead assignment when
2986         RF_SENSITIVE is set, flagged by clang-analyzer.
2988 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2990         bitset: tests: exercise the stats too
2992         * tests/test-bitset.c: Display the stats at the end of the test.
2993         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
2994         last bin, display "256-..." rather that "256-511", since the last bin
2995         does count item greater than or equal to 256.
2997 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2999         bitset: tests: try harder to break it
3000         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
3001         BITSET_LIST_SIZE.
3002         (main): Likewise.
3003         While at it, also exercise super small bitsets.
3005 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
3007         bitset: use ffs where possible in the vector implementation
3008         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
3010 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
3012         bitset: use ffs where possible in the table implementation
3013         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
3015 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
3017         bitset: check empty and full bitsets
3018         * tests/test-bitset.c (check_zero, check_ones): New.
3019         (check_attributes): Use them.
3021 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
3023         bitset: be sure to always return a value
3024         * lib/bitset/array.c (abitset_small_list): Always update *next and
3025         return a value.
3027 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3029         vcs-to-changelog: Expect spaces in file names
3030         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
3031         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
3032         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
3033         tabs to spaces.
3034         (list_changes): Use tabs to identify file names.
3036 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
3038         bitset: strengthen tests
3039         * tests/test-bitset.c (compare): Also check count.
3040         Deal only with random values, move the one-bit tests to...
3041         (check_one_bit): this new function.
3042         (check_attributes): Call it.
3044 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
3046         bitset: fix iteration over table bitsets
3047         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
3049 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
3051         bitset: rename internal details for consistency
3052         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
3054 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
3056         bitset: test: run deterministic tests on several bitset sizes
3057         * tests/test-bitset.c (check_attributes): Run it with small and large
3058         sizes.
3060 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
3062         bitset: use ffs where possible in the list implementation
3063         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
3065 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
3067         bitset: use ffs where possible in array implementation
3068         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
3070 2020-11-17  Bruno Haible  <bruno@clisp.org>
3072         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
3073         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
3074         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
3075         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
3076         C++ mode.
3078 2020-11-17  Bruno Haible  <bruno@clisp.org>
3080         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
3081         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
3082         is always declared.
3083         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
3084         declared.
3086 2020-11-17  Bruno Haible  <bruno@clisp.org>
3088         Fix link errors on AIX.
3089         * modules/clean-temp (Link): Link with $(LIBTHREAD).
3090         * modules/getumask (Link): Link with $(LIBTHREAD).
3091         * modules/getumask-tests (Makefile.am): Link test-getumask with
3092         $(LIBTHREAD).
3093         * modules/supersede (Link): Link with $(LIBTHREAD).
3094         * modules/supersede-tests (Makefile.am): Link test-supersede with
3095         $(LIBTHREAD).
3096         * modules/fatal-signal (Link): New section.
3097         * modules/execute (Link): New section.
3098         * modules/csharpexec (Link): Link with $(LIBTHREAD).
3099         * modules/javaexec (Link): Link with $(LIBTHREAD).
3100         * modules/spawn-pipe (Link): New section.
3101         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
3102         $(LIBTHREAD).
3103         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
3104         * modules/javacomp (Link): Link with $(LIBTHREAD).
3105         * modules/javaversion (Link): Link with $(LIBTHREAD).
3106         * modules/pipe-filter-gi (Link): New section.
3107         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
3108         test-pipe-filter-gi2-main with $(LIBTHREAD).
3109         * modules/pipe-filter-ii (Link): New section.
3110         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
3111         test-pipe-filter-ii2-main with $(LIBTHREAD).
3112         * modules/term-style-control (Link): New section.
3113         * modules/term-style-control-tests (Makefile.am): Link
3114         test-term-style-control-hello, test-term-style-control-yes with
3115         $(LIBTHREAD).
3116         * modules/wait-process (Link): New section.
3117         * modules/nonblocking-pipe-tests (Makefile.am): Link
3118         test-nonblocking-pipe-main with $(LIBTHREAD).
3119         * modules/nonblocking-socket-tests (Makefile.am): Link
3120         test-nonblocking-socket-main with $(LIBTHREAD).
3122 2020-11-16  Bruno Haible  <bruno@clisp.org>
3124         Fix link errors on platforms with libunistring.
3125         * modules/c32isalnum (Link): New section.
3126         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
3127         $(LIBUNISTRING).
3128         * modules/c32isalpha (Link): New section.
3129         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
3130         $(LIBUNISTRING).
3131         * modules/c32isblank (Link): New section.
3132         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
3133         $(LIBUNISTRING).
3134         * modules/c32iscntrl (Link): New section.
3135         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
3136         $(LIBUNISTRING).
3137         * modules/c32isdigit (Link): New section.
3138         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
3139         $(LIBUNISTRING).
3140         * modules/c32isgraph (Link): New section.
3141         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
3142         $(LIBUNISTRING).
3143         * modules/c32islower (Link): New section.
3144         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
3145         $(LIBUNISTRING).
3146         * modules/c32isprint (Link): New section.
3147         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
3148         $(LIBUNISTRING).
3149         * modules/c32ispunct (Link): New section.
3150         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
3151         $(LIBUNISTRING).
3152         * modules/c32isspace (Link): New section.
3153         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
3154         $(LIBUNISTRING).
3155         * modules/c32isupper (Link): New section.
3156         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
3157         $(LIBUNISTRING).
3158         * modules/c32isxdigit (Link): New section.
3159         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
3160         $(LIBUNISTRING).
3161         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
3162         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
3163         $(LIBUNISTRING).
3165 2020-11-16  Bruno Haible  <bruno@clisp.org>
3167         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
3168         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
3169         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
3170         * modules/getumask-tests (Makefile.am): Link test-getumask with
3171         $(LIBINTL).
3172         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
3173         * modules/supersede-tests (Makefile.am): Link test-supersede with
3174         $(LIBINTL).
3175         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
3176         $(LIBINTL).
3178 2020-11-16  Bruno Haible  <bruno@clisp.org>
3180         getumask: Document link dependencies.
3181         * modules/getumask (Link): New section.
3183 2020-11-16  Bruno Haible  <bruno@clisp.org>
3185         Update link dependencies in modules after 2020-09-09 change.
3186         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
3187         * modules/mkdtemp (Link): Likewise.
3188         * modules/mkostemp (Link): Likewise.
3189         * modules/mkostemps (Link): Likewise.
3190         * modules/mkstemp (Link): Likewise.
3191         * modules/mkstemps (Link): Likewise.
3192         * modules/supersede (Link): Likewise.
3193         * modules/tmpfile (Link): Likewise.
3194         * modules/tmpfile-safer (Link): Likewise.
3196 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
3198         getumask-tests: port to Solaris 10 etc.
3199         Problem reported by Tom Christensen in:
3200         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
3201         * modules/getumask-tests (test_getumask_LDADD):
3202         Add $(LIB_CLOCK_GETTIME).
3204 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
3206         bitset: use ffsl to accelerate iterations over set bits
3207         Suggested by Bruno Haible.
3208         * modules/bitset: Depend upon ffsl.
3209         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
3210         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
3212 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
3214         bitset: more tests
3215         * tests/test-bitset.c (compare): Make it clear that the random values
3216         should not be modified.
3217         Check bitset_first, bitset_last and BITSET_FOR_EACH.
3219 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
3221         bitset: fix the copy from lbitset to other types
3222         * lib/bitset/list.c (lbitset_copy): Rename as...
3223         (lbitset_copy_): this.
3224         (lbitset_copy): New.
3225         Dispatch to heterogeneous/homogeneous copy.
3227 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
3229         bitset: making debug traces more useful
3230         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
3232         bitset: comment changes
3233         * lib/bitset.c: Move some documenting comments to...
3234         * lib/bitset.h: here.
3235         * lib/bitset/array.c: Fix some comments.
3237 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
3239         careadlinkat: warn better about GCC bug 93644
3240         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
3241         not in effect, use "#warning" to let builders know more clearly
3242         about GCC bug 93644, because the bug triggers even if no -W option
3243         is given to GCC.
3245 2020-11-13  Jim Meyering  <meyering@fb.com>
3247         hard-locale-tests: avoid a -Wstrict-prototypes warning
3248         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
3249         changing "main ()" to "main (void)". This was the only case that
3250         triggered a warning when building grep with --enable-gcc-warnings.
3252 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
3254         time_rz: simplify CVE-2017-7476 fix
3255         * lib/time_rz.c: Do not include limits.h; I think it was included
3256         under the mistaken impression that limits.h defines SIZE_MAX.
3257         (SIZE_MAX): Remove.
3258         (save_abbr): Put string length into a ptrdiff_t variable,
3259         so that the size comparison works naturally.  This
3260         fixes CVE-2017-7476 in a cleaner way.
3262         parse-datetime: streamline overflow checking
3263         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
3264         did not work for unsigned destinations, and since time_t might
3265         be unsigned that meant it did not work for time_t destinations.
3266         This limitation of INT_ADD_WRAPV has been fixed, so we can
3267         now streamline parse-datetime.y a bit.
3268         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
3269         has not been used for a while.
3270         (yylex, parse_datetime2): Assume C99 declarations after statements.
3271         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
3272         to TYPE_MINIMUM.
3273         (parse_datetime2): No need for time_overflow now that
3274         INT_ADD_WRAPV works for unsigned results.
3276         parse-datetime-tests: port to Alpine Linux 3.12.1
3277         * tests/test-parse-datetime.c: Include errno.h for errno,
3278         and unistd.h for _SC_TZNAME_MAX and sysconf.
3279         (main): In the outlandishly-long time zone abbreviation test,
3280         do not exceed TZNAME_MAX as this has undefined behavior,
3281         and on Alpine Linux 3.12.1 it makes the test fail.
3283 2020-11-09  Pádraig Brady  <P@draigBrady.com>
3285         mgetgroups: avoid warning with clang
3286         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
3287         so disable -Wpointer-sign for all clang versions.
3289 2020-11-07  Bruno Haible  <bruno@clisp.org>
3291         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
3292         Reported by Simon Josefsson in
3293         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
3294         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
3295         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
3296         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
3298 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3300         tests: pacify Sun C 5.9
3301         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
3302         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
3303         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
3304         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
3305         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
3306         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
3307         Remove unreachable ‘return NULL;’s.
3309         tests: port better to XLC 12.01
3310         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
3311         even in code that is not executed, as IBM XLC 12.01 complains "The
3312         subscript -1 is less than zero."
3313         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
3314         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
3315         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
3316         arguments than are required by the macro definition."
3318 2020-11-03  Bruno Haible  <bruno@clisp.org>
3320         aligned-malloc: Use fixes from the new modules.
3321         * modules/aligned-malloc (Depends-on): Add posix_memalign,
3322         aligned_alloc, memalign.
3323         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
3325 2020-11-03  Bruno Haible  <bruno@clisp.org>
3327         aligned_alloc: Add tests.
3328         * tests/test-aligned_alloc.c: New file.
3329         * modules/aligned_alloc-tests: New file.
3331         aligned_alloc: New module.
3332         * lib/stdlib.in.h (aligned_alloc): New declaration.
3333         * lib/aligned_alloc.c: New file.
3334         * m4/aligned_alloc.m4: New file.
3335         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
3336         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
3337         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
3338         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
3339         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
3340         * modules/aligned_alloc: New file.
3341         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
3342         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
3343         AIX bug.
3345 2020-11-03  Bruno Haible  <bruno@clisp.org>
3347         posix_memalign: Add tests.
3348         * tests/test-posix_memalign.c: New file.
3349         * modules/posix_memalign-tests: New file.
3351         posix_memalign: New module.
3352         * lib/stdlib.in.h (posix_memalign): New declaration.
3353         * lib/posix_memalign.c: New file.
3354         * m4/posix_memalign.m4: New file.
3355         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
3356         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
3357         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
3358         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
3359         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
3360         * modules/posix_memalign: New file.
3361         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
3362         * doc/posix-functions/posix_memalign.texi: Mention the new module and
3363         the OpenBSD bug.
3365 2020-11-03  Bruno Haible  <bruno@clisp.org>
3367         memalign: Add tests.
3368         * tests/test-memalign.c: New file.
3369         * modules/memalign-tests: New file.
3371         memalign: New module.
3372         * modules/memalign: New file.
3373         * doc/glibc-functions/memalign.texi: Mention the new module.
3375 2020-11-03  Bruno Haible  <bruno@clisp.org>
3377         verify tests: Fix crash with GCC (regression 2020-11-02).
3378         * tests/test-verify.c (main): Fix initializer of s.
3380 2020-11-03  Pádraig Brady  <P@draigBrady.com>
3382         mountlist: recognize more file system types as remote
3384         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
3385         "remote" file systems from stat.c in coreutils.
3387 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
3389         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
3390         * tests/test-verify.c (main): Initialize state variable.
3391         Reported by Bruno Haible for GCC 5.4.0.
3393 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
3395         dfa.h: support inclusion from C++
3396         * lib/dfa.h: Allow multiple inclusion, and inclusion from
3397         C++ code.  The latter was suggested by Arnold Robbins.
3399 2020-11-01  Bruno Haible  <bruno@clisp.org>
3401         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
3402         * tests/test-ssfmalloc.c: Include <limits.h>.
3403         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
3405 2020-11-01  Bruno Haible  <bruno@clisp.org>
3407         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
3408         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
3410 2020-11-01  Jim Meyering  <meyering@fb.com>
3412         dfa-tests: test for today's invalid-merge fix
3413         * tests/test-dfa-invalid-merge.sh: New file.
3414         * modules/dfa-tests (Files): Add it.
3415         (TESTS): Add it.
3417 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3419         dfa: retain sequences of similar nodes in optimization
3420         DFA was merging similar nodes when it should not.  For example,
3421         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
3422         is not merged.  Problem reported by Gonzalo Padrino in
3423         https://bugs.gnu.org/44351
3424         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
3425         optimization.
3427 2020-11-01  Jim Meyering  <meyering@fb.com>
3429         test-dfa-match-aux.c: accept EREs, not BREs
3430         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
3431         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
3433 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
3435         verify tests: avoid -Wmissing-declarations warnings
3436         * tests/test-verify.c (test_assume_expressions): Add declaration.
3437         (test_assume_optimization): Likewise.
3438         (test_assume_noreturn): Likewise.
3439         (main): Move down after all other definitions.  While at it, also
3440         call test_assume_expressions and test_assume_optimization as a
3441         runtime check.
3443 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3445         sys_stat: update comments for S_IRWXUGO, S_IXUGO
3446         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
3447         Perhaps these macros should be removed, as they’re not in either
3448         POSIX or GNU.  They could be moved to stat-macros.h, which would
3449         be cleaner in some sense.
3451 2020-10-25  Bruno Haible  <bruno@clisp.org>
3453         ssfmalloc tests: Small tweaks.
3454         * tests/test-ssfmalloc.c: Add comments.
3455         (alloc_pages): Don't require PROT_EXEC bits.
3456         (block_sizes): Add more small sizes, for better coverage of
3457         ssfmalloc-bitmap.h.
3459         ssfmalloc tests: Portability to Minix.
3460         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
3461         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
3462         * m4/mmap-anon.m4: Update comment.
3464         ssfmalloc: Portability to AIX.
3465         * modules/ssfmalloc (Include): Add ssfmalloc.h.
3466         (Link): New section.
3467         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
3468         $(LIBTHREAD).
3470         ssfmalloc: Portability to Cygwin.
3471         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
3472         (pg_offset_t): Define depending on PAGESIZE_MAX.
3473         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
3474         (PAGESIZE_MAX): New macro.
3476         ssfmalloc: Fix buffer overrun in bitmap search.
3477         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
3478         word *words_end.
3480 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3482         doc: mention ‘restrict’ and C++
3483         * doc/gnulib-readme.texi (C99 features assumed): Document
3484         that ‘restrict’ should be avoided in C++ code.
3486 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
3488         selinux-at, selinux-h: port to SELinux 3.1
3489         The new release finally deprecated the typedef 'security_context_t',
3490         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
3491         Use the simpler 'char *' instead.
3492         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
3493         (lgetfilecon): Likewise.
3494         (fgetfilecon): Likewise.
3495         (map_to_failure): Likewise.
3496         (rpl_getfilecon): Likewise.
3497         (rpl_lgetfilecon): Likewise.
3498         (rpl_fgetfilecon): Likewise.
3499         * lib/se-selinux.in.h (security_context_t): Remove typedef.
3500         (getcon): Adjust type of context parameter.
3501         (freecon): Likewise.
3502         (getfscreatecon): Likewise.
3503         (setfscreatecon): Likewise.
3504         (matchpathcon): Likewise.
3505         (getfilecon): Likewise.
3506         (lgetfilecon): Likewise.
3507         (fgetfilecon): Likewise.
3508         (setfilecon): Likewise.
3509         (lsetfilecon): Likewise.
3510         (fsetfilecon): Likewise.
3511         (security_check_context): Likewise.
3512         (security_check_context_raw): Likewise.
3513         (setexeccon): Likewise.
3514         (security_compute_create): Likewise.
3515         * lib/selinux-at.c (getfileconat): Likewise.
3516         (lgetfileconat): Likewise.
3517         (setfileconat): Likewise.
3518         (lsetfileconat): Likewise.
3519         * lib/selinux-at.h: Likewise.
3521 2020-10-19  Bruno Haible  <bruno@clisp.org>
3523         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
3524         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
3525         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
3526         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
3527         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
3528         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
3529         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
3531 2020-10-18  Bruno Haible  <bruno@clisp.org>
3533         ssfmalloc: Add tests.
3534         * tests/test-ssfmalloc.c: New file.
3535         * modules/ssfmalloc-tests: New file.
3537         ssfmalloc: New module.
3538         * lib/ssfmalloc.h: New file.
3539         * lib/ssfmalloc-bitmap.h: New file.
3540         * modules/ssfmalloc: New file.
3542 2020-10-18  Bruno Haible  <bruno@clisp.org>
3544         wchar: Fix configure test result on some versions of AIX.
3545         Reported by Clément Chigot <clement.chigot@atos.net> in
3546         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
3547         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
3548         systems.
3550 2020-10-18  Bruno Haible  <bruno@clisp.org>
3552         time: Fix warning about asctime when asctime is not used.
3553         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
3554         invocation.
3556 2020-10-18  Bruno Haible  <bruno@clisp.org>
3558         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
3559         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
3560         '_GL_ATTRIBUTE_CONST'.
3561         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
3562         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
3563         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
3564         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
3565         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
3566         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
3567         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
3569 2020-10-18  Bruno Haible  <bruno@clisp.org>
3571         obstack: Fix a clang warning.
3572         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
3574 2020-10-16  Bruno Haible  <bruno@clisp.org>
3576         hash: Rename hash_delete to hash_remove.
3577         * lib/hash.h (hash_remove): Renamed from hash_delete.
3578         (hash_delete): New declaration.
3579         * lib/hash.c (hash_remove): Renamed from hash_delete.
3580         (hash_delete): New function.
3581         * tests/test-hash.c (main): Update.
3582         * lib/fts-cycle.c (leave_dir): Likewise.
3583         * NEWS: Mention the change.
3585 2020-10-16  Bruno Haible  <bruno@clisp.org>
3587         hash, xhash: Make usable from C++.
3588         * lib/hash.h: Add extern "C".
3590 2020-10-16  Bruno Haible  <bruno@clisp.org>
3592         hash, xhash: Move comments to the .h file.
3593         * lib/hash.c: Move comments meant for the user from here...
3594         * lib/xhash.c: ... and here...
3595         * lib/hash.h: ... to here.
3597 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
3599         Don't declare an intention to modify the return value of strerror.
3600         * tests/test-perror2.c (main): Assign the return value of strerror to a
3601         'const char *' variable.
3603 2020-10-11  Bruno Haible  <bruno@clisp.org>
3605         *printf: Avoid "expanded before it was required" warning.
3606         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
3607         AC_DEFUN_ONCE.
3609 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
3611         getprogname: Add support for OpenServer 6 and UnixWare 7.
3612         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
3613         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
3615 2020-10-11  Bruno Haible  <bruno@clisp.org>
3617         tests: Avoid a name clash on UnixWare.
3618         Reported by Tim Rice <tim@multitalents.net> in
3619         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
3620         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
3622 2020-10-11  Bruno Haible  <bruno@clisp.org>
3624         stdioext: Update comments regarding UnixWare.
3625         Reported by Tim Rice <tim@multitalents.net> in
3626         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
3627         * lib/fbufmode.c: Update comments.
3628         * lib/fflush.c: Likewise.
3629         * lib/fpending.c: Likewise.
3630         * lib/fpurge.c: Likewise.
3631         * lib/freadable.h: Likewise.
3632         * lib/freadable.c: Likewise.
3633         * lib/freadahead.c: Likewise.
3634         * lib/freading.h: Likewise.
3635         * lib/freading.c: Likewise.
3636         * lib/freadptr.c: Likewise.
3637         * lib/freadseek.c: Likewise.
3638         * lib/fseeko.c: Likewise.
3639         * lib/fseterr.c: Likewise.
3640         * lib/fwritable.h: Likewise.
3641         * lib/fwritable.c: Likewise.
3642         * lib/fwriting.h: Likewise.
3643         * lib/fwriting.c: Likewise.
3645 2020-10-11  Bruno Haible  <bruno@clisp.org>
3647         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
3648         Reported by Tim Rice <tim@multitalents.net> in
3649         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
3650         Uses the info from
3651         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
3652         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
3654 2020-10-11  Bruno Haible  <bruno@clisp.org>
3656         stdioext: Avoid compilation errors on UnixWare 7.
3657         Reported by Tim Rice <tim@multitalents.net> in
3658         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
3659         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
3660         * lib/fpurge.c: Likewise.
3661         * lib/freadable.h: Likewise.
3662         * lib/freading.h: Likewise.
3663         * lib/fwritable.h: Likewise.
3664         * lib/fwriting.h: Likewise.
3665         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
3666         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3667         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
3668         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
3669         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
3670         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
3672 2020-10-11  Bruno Haible  <bruno@clisp.org>
3674         stdioext: Update comments regarding Cygwin.
3675         * lib/fpending.c: Update comments.
3676         * lib/fpurge.c: Likewise.
3677         * lib/freadable.h: Likewise.
3678         * lib/freadable.c: Likewise.
3679         * lib/freading.h: Likewise.
3680         * lib/freading.c: Likewise.
3681         * lib/fwritable.h: Likewise.
3682         * lib/fwritable.c: Likewise.
3683         * lib/fwriting.h: Likewise.
3684         * lib/fwriting.c: Likewise.
3686 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
3688         Fix "warning: implicit declaration of function 'pthread_sigmask'".
3689         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
3690         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
3692 2020-10-10  Bruno Haible  <bruno@clisp.org>
3694         *-list, *-oset, *-omap: Avoid possible compiler warnings.
3695         Reported by Marc Nieper-Wißkirchen in
3696         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
3697         * lib/gl_anylinked_list2.h (gl_linked_iterator,
3698         gl_linked_iterator_from_to): Mark as 'pure'.
3699         (gl_linked_iterator_free): Mark as 'const'.
3700         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
3701         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
3702         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
3703         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
3704         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
3705         (gl_tree_iterator_free): Mark as 'const'.
3706         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
3707         'pure'.
3708         (gl_tree_iterator_free): Mark as 'const'.
3709         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
3710         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
3711         (gl_tree_iterator_free): Mark as 'const'.
3712         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
3713         compare_position_threshold): Mark as 'pure'.
3714         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
3715         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
3716         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
3717         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
3718         'pure'.
3719         (gl_array_iterator_free): Mark as 'const'.
3720         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
3721         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
3722         (gl_array_iterator_free): Mark as 'const'.
3723         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
3724         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
3725         gl_array_iterator_atleast): Mark as 'pure'.
3726         (gl_array_iterator_free): Mark as 'const'.
3727         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
3728         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
3729         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
3730         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
3731         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
3732         gl_carray_sortedlist_search): Mark as 'pure'.
3733         (gl_carray_iterator_free): Mark as 'const'.
3735 2020-10-10  Bruno Haible  <bruno@clisp.org>
3737         rbtree-list: Avoid possible compiler warnings.
3738         This mirrors the change of avltree-list on 2014-09-16.
3739         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
3740         declaration. Add cast to void for ignored value of check_invariants.
3742 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
3744         stack: New module.
3745         * MODULES.html.sh: Add entry for the stack module.
3746         * modules/stack: New file.
3747         * modules/stack-tests: New file.
3748         * lib/stack.h: New file.
3749         * tests/test-stack.c: New file.
3751 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3753         attribute: improve const, pure doc
3754         Problem reported by Marc Nieper-Wißkirchen in:
3755         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
3756         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
3757         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
3759 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3761         thread: pacify GCC on Solaris 10
3762         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
3763         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
3764         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
3765         where pthread_t is unsigned int.
3767 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3769         c-stack: avoid AS_IF
3770         Problem reported by Bruno Haible in:
3771         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
3772         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
3774         c-stack: pacify GCC 9.3.1 when using libsigsegv
3775         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
3777 2020-10-04  Bruno Haible  <bruno@clisp.org>
3779         localename: Fix a couple of "unused parameter" warnings.
3780         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
3781         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
3782         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
3783         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
3784         parameter list.
3786 2020-10-04  Bruno Haible  <bruno@clisp.org>
3788         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
3789         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
3790         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
3791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
3792         HAVE_SNPRINTF_TRUNCATION_C99.
3793         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
3794         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
3796 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3798         c-stack: streamline Solaris configuration
3799         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
3800         the code is used only if a test for sigaltstack worked
3801         in some other way.
3802         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
3803         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
3804         heuristic does not work).
3805         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
3806         we no longer require the libsigsegv module.
3807         (Depends-on): Depend on havelib, not libsigsegv.
3809         c-stack: stop using SIGSTKSZ
3810         It’s been proposed to stop making SIGSTKSZ an integer constant:
3811         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
3812         Also, using SIGSTKSZ in #if did not conform to current POSIX.
3813         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
3814         * lib/c-stack.c (SIGSTKSZ): Remove.
3815         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
3816         All uses changed.
3818         c-stack: fix libsigsegv typo
3819         Problem reported by Bruno Haible in:
3820         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
3821         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
3822         to be used only on Solaris (exactly where it is not needed!).
3824 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
3826         MODULES.html.sh: Fix typo.
3827         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
3829 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
3831         version-etc: pacify Oracle Studio 12.6
3832         Without this patch, it complains: "version-etc.h", line 64:
3833         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
3834         pedantic mode.
3835         * lib/version-etc.h (version_etc): Port to C89 macro rules.
3837 2020-09-27  Bruno Haible  <bruno@clisp.org>
3839         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
3840         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3841         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3842         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
3843         ourselves; don't use AC_DECL_SYS_SIGLIST.
3845 2020-09-27  Bruno Haible  <bruno@clisp.org>
3847         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
3848         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3849         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3850         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
3851         instead of _AC_COMPUTE_INT.
3853 2020-09-27  Bruno Haible  <bruno@clisp.org>
3855         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
3856         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3857         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3858         Based on a patch by Paul Eggert.
3859         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
3860         test STDC_HEADERS. Assume <stdlib.h> exists.
3861         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
3863 2020-09-27  Bruno Haible  <bruno@clisp.org>
3865         Enable testing of prereleases of Autoconf 2.70.
3866         Suggested by Paul Eggert in
3867         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
3868         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
3869         >= 2.70.
3870         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
3871         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
3872         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
3874 2020-09-27  Bruno Haible  <bruno@clisp.org>
3876         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
3877         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3878         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3879         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
3880         AC_PROG_CC, depending on the Autoconf version.
3882 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
3884         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
3885         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
3886         of AC_HELP_STRING.
3887         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
3889 2020-09-27  Bruno Haible  <bruno@clisp.org>
3891         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
3892         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3893         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3894         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
3896 2020-09-27  Bruno Haible  <bruno@clisp.org>
3898         extensions: Simplify last commit.
3899         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
3900         AC_GNU_SOURCE ever.
3902 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3904         extensions: require AC_GNU_SOURCE only for <=2.63
3905         Problem reported by Gavin Smith in:
3906         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
3907         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
3908         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
3909         shouldn’t be needed after that, and Autoconf 2.70 complains about
3910         it being obsolete.
3912 2020-09-26  Bruno Haible  <bruno@clisp.org>
3914         regex-tests: Make test more robust.
3915         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
3916         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
3918 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3920         regex-tests: fix possible Turkish false-alarm
3921         * modules/regex-tests (Depends-on): Add wctype-h.
3922         * tests/test-regex.c: Include wctype.h.
3923         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
3924         as the Turkish regex test assumes this.
3926         regex-tests: fix test and add debug output
3927         Perhaps this will fix the recent grep test failure reported at:
3928         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
3929         At least, the debug output should help narrow down the failure.
3930         * tests/test-regex.c: Include stdarg.h, stdio.h.
3931         (exit_status): New var.
3932         (report_error): New function.
3933         (main): Use it to report failures to stdout instead of merely
3934         exiting with some nonzero status.  The status info alone isn’t
3935         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
3936         regex before calling re_compile_pattern, fixing a portability bug.
3938         regex: no longer match glibc
3939         * config/srclist.txt: Comment out regex_internal.c for now.
3941 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3943         regex: fix ignore-case Turkish bug
3944         * lib/regex_internal.c (build_wcs_upper_buffer):
3945         Do not assume that converting single-byte character to upper
3946         yields a single-byte character.  This is not true for Turkish,
3947         where towupper (L'i') yields L'İ', which is not single-byte.
3948         * tests/test-regex.c (main): Test for this bug.
3950         regex: port to weird isascii platforms
3951         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
3953 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3955         dfa: make dfasupported a global function
3956         * lib/dfa.c (dfasupported): Rename, and make it global.
3957         Update caller.
3958         * lib/dfa.h (dfasupported): Add prototype.
3960 2020-09-20  Bruno Haible  <bruno@clisp.org>
3962         canonicalize: Add support for UNC file names on native Windows.
3963         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
3964         <https://savannah.gnu.org/bugs/?59079>.
3965         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
3966         extend the prefix to include the server.
3968 2020-09-20  Bruno Haible  <bruno@clisp.org>
3970         supersede: Fix test failures on native Windows.
3971         * lib/supersede.c (open_supersede): Handle non-regular files on native
3972         Windows like on Solaris.
3973         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
3975 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3977         test-stdalign: test Oracle Studio better
3978         * doc/posix-headers/stdalign.texi (stdalign.h):
3979         * tests/test-stdalign.c (main):
3980         Sun Studio Bug #2125432 seems to be fixed.
3982         c-stack: output diagnostic in single 'write'
3983         * lib/c-stack.c (die): In the typical case, use just one 'write'
3984         syscall to output the diagnostic, as this lessens interleaving.
3985         (die, c_stack_action): Assume C99.
3986         * modules/c-stack (Depends-on): Add c99, mempcpy.
3988         c-stack: improve checking if !libsigsegv
3989         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
3990         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
3991         unlikely pointer overflow.  Also, fix some obsolete code and typos.
3992         I found these problems while looking into this bug report:
3993         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
3994         * lib/c-stack.c: Include c-stack.h first, to test interface.
3995         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
3996         max_align_t, intprops.h for INT_ADD_WRAPV.
3997         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
3998         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
3999         for libsigsegv 2.8 and earlier since the bug should be fixed
4000         after that.
4001         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
4002         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
4003         Assume sprintf returns byte count; this assumption is safe now.
4004         (page_size): New static volatile variable, since sysconf isn’t
4005         documented to be async-signal-safe on Solaris.  This variable is
4006         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
4007         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
4008         SIGINFO_WORKS).
4009         (segv_handler): Use it if present.  Never report null pointer
4010         dereference as a stack overflow.  Check for (unlikely) unsigned
4011         and/or pointer overflow.
4012         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
4013         Rename cache variables to gl_cv_sys_stack_overflow_works
4014         and gl_cv_sys_xsi_stack_overflow_heuristic.
4015         All uses changed.
4016         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
4017         c-stack no longer uses STACK_DIRECTION.
4018         Do not check for unistd.h, since we depend on unistd.
4019         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
4020         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
4021         stdbool, stddef.
4023 2020-09-20  Bruno Haible  <bruno@clisp.org>
4025         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
4026         * m4/musl.m4: Revert 2020-09-19 patch.
4027         * m4/setlocale_null.m4: Likewise.
4028         * modules/setlocale-null: Likewise.
4030 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
4031             Bruno Haible  <bruno@clisp.org>
4033         relocatable-prog: Fix for multiple relocatable library directories.
4034         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
4035         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
4036         being attached to a single one.
4038 2020-09-19  Jim Meyering  <meyering@fb.com>
4040         test-verify.c: avoid -Wshadow warnings
4041         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
4042         (enum): Capitalize member names. Adjust uses.
4044 2020-09-19  Bruno Haible  <bruno@clisp.org>
4046         havelib: Avoid linking with libc.a on GNU systems.
4047         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
4048         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
4049         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
4050         dependency_libs value of a .la file, ignore '-lc' options on GNU
4051         systems.
4053 2020-09-19  Bruno Haible  <bruno@clisp.org>
4055         Fix recognition of musl libc on Alpine Linux 3.10.
4056         Reported by Jeffrey Walton <noloader@gmail.com> in
4057         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
4058         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
4059         (gl_MUSL_LIBC): Require it.
4060         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
4061         * modules/setlocale-null (Files): Add m4/musl.m4.
4063 2020-09-19  Bruno Haible  <bruno@clisp.org>
4065         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
4066         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
4067         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
4068         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
4069         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
4070         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
4071         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
4072         or <threads.h>.
4073         (ITEMS, MAX_RESULT_LEN): New macros.
4074         (nl_langinfo_unlocked): New function.
4075         (gl_get_nl_langinfo_lock): New declaration.
4076         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
4077         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
4078         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
4079         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
4080         REPLACE_NL_LANGINFO.
4081         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
4082         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
4083         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
4084         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
4085         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
4087 2020-09-18  Bruno Haible  <bruno@clisp.org>
4089         fsusage, getaddrinfo: Produce more regular configure output.
4090         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
4091         corresponding AC_MSG_RESULT.
4092         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
4094 2020-09-18  Bruno Haible  <bruno@clisp.org>
4096         Add back gl_SILENT.
4097         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
4099 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4101         c-stack-tests: fix -fsanitize=undefined false alarm
4102         * tests/test-c-stack2.sh: Skip the test-harness self-test
4103         if ‘gcc -fsanitize=undefined’ is in use.
4105 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
4107         signalblocking: simplify and remove gl_SILENT
4108         gl_SILENT was problematic because if a trap was sprung, stderr
4109         generated during the trap was lost.  Avoid the problem by
4110         removing the need for gl_SILENT.
4111         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
4112         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
4113         Simplify, avoiding the need for gl_SILENT while preserving the
4114         ability of the user to override the value of the cache variable,
4115         now ac_cv_func_sigprocmask.
4117 2020-09-17  Bruno Haible  <bruno@clisp.org>
4119         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
4120         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
4121         (gl_SILENT): Use 'exec', not a compound statement, to redirect
4122         AS_MESSAGE_FD.
4124 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
4126         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
4127         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
4128         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
4129         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
4130         Define to 0.
4131         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
4132         Do not use __builtin_mul_overflow_p.
4134         libc-config: port __THROW to Ubuntu 4
4135         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
4136         for GCC 3.3.  Problem reported by Jeffrey Walton in:
4137         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
4138         The GCC 3.3.4 documentation says the attribute should work, but
4139         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
4140         little point or desire to research this circa-2004 platform further,
4141         so just avoid the attribute there.
4143 2020-09-17  Jim Meyering  <meyering@fb.com>
4145         test-dfa-match.sh: port timeout work-around to newer Busybox
4146         * tests/test-dfa-match.sh: Update timeout -t portability test to
4147         accommodate Busybox 1.30.0 and newer.
4149 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
4151         fnmatch: adjust to match glibc fix
4152         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
4153         This does not affect Gnulib; it merely keeps Gnulib and glibc
4154         closer together, to help with any eventual merge, by incorporating
4155         a recent glibc patch.  The patch and the following commentary is
4156         by Andreas Schwab.
4157         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
4158         contains the index into the extra array, whereas wextra points
4159         into the extra array at this index, containing the length of the
4160         following collating sequence in the wide character representation.
4162 2020-09-16  Bruno Haible  <bruno@clisp.org>
4164         stat, fstat: Fix compilation error with old mingw headers.
4165         Reported by Eli Zaretskii <eliz@gnu.org> in
4166         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
4167         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
4168         define it.
4170 2020-09-16  Bruno Haible  <bruno@clisp.org>
4172         stat, fstat: Fix when compiling for versions older than Windows Vista.
4173         Reported by Eli Zaretskii <eliz@gnu.org> in
4174         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
4175         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
4176         that was originally set before we redefined it.
4177         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
4178         (gl_PREREQ_STAT): Require it.
4179         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
4181 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4183         dfa: remove dfa-heap-overrun workaround
4184         * lib/dfa.c (reorder_tokens): Go back to a single pass that
4185         both sets map[*] and does other things.  This reverts
4186         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
4187         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
4188         fixed the underlying problem.
4190 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4192         dfa: avoid use of uninitialized constraint
4193         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
4194         to zero here.
4195         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
4196         use of an uninitialized constraint by later code when ! (flags[i]
4197         & OPT_QUEUED) means merge_nfa_state was not called to initialize
4198         the constraint.  Problem found by running 'valgrind src/grep -E
4199         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
4201         dfa: assume C99 in reorder_tokens
4202         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
4204         dfa: fix dfa-heap-overrun failure
4205         * lib/dfa.c (reorder_tokens): When setting
4206         map[d->follows[i].elems[j].index], instead of incorrectly assuming
4207         that (i < d->follows[i].elems[j].index), use two loops, one to set
4208         the map array and the other to use it.  The incorrect assumption
4209         caused some elements to be missed, and this in turn caused grep's
4210         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
4211         with GCC.  I found this bug while investigating
4212         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
4213         and I think the bug also occurs on GNU/Linux but with more-subtle
4214         symptoms.  The bug predates the recent dfa.c changes; perhaps the
4215         recent changes make the bug more likely.
4217 2020-09-13  Bruno Haible  <bruno@clisp.org>
4219         parse-datetime: Make the build rule work with parallel 'make'.
4220         Reported by Daiki Ueno <ueno@gnu.org> in
4221         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
4222         * modules/parse-datetime (Makefile.am): Use a phony target and the
4223         general idiom for rules that produce multiple files.
4225 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
4227         getpass: Check for nonnull prompt argument while avoiding warnings.
4228         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
4229         (getpass) [!_WIN32]: Print prompt only if nonnull.
4231 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
4233         dfa: epsilon-closure tweaks (Bug#40634)
4234         Rename BACKWORD to BACKWARD consistently.
4235         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
4236         (addtok_mb): Redo slightly to make it act more like a state machine.
4237         Check depth only when it increases.
4238         (epsclosure): Let the switch test the tokens.
4239         (dfaanalyze): Cache tindex.  Simplify position loops.
4240         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
4241         only if it is not null, since we're testing that anyway.
4242         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
4244 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4246         dfa: use backward set in removal of epsilon closure
4247         When removing in epsilon closure, the code searched all nodes
4248         sequentially, and this was slow for some cases.  Build a backward
4249         set before search, and only check previous position with the set.
4250         Problem reported in <https://bugs.gnu.org/40634>.
4251         * lib/dfa.c (struct dfa): New member 'epsilon'.
4252         (addtok_mb): Check whether a pattern has epsilon node or not.
4253         (epsclosure): New arg BACKWORD; caller changed.  When removing
4254         epsilon node and reconnecting, check only previous positions.
4255         Treat BEG as if it were character.
4256         (dfaanalyze): Build backward set.
4258 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
4260         canonicalize: fix pointer indexing bugs
4261         Problem reported by Florian Weimer in:
4262         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
4263         * lib/canonicalize-lgpl.c (__realpath):
4264         * lib/canonicalize.c (canonicalize_filename_mode):
4265         Do not generate a pointer past the end of the array.
4266         * lib/canonicalize.c (canonicalize_filename_mode):
4267         Do not use a pointer after passing it to realloc.
4269 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
4271         tempname: help merge with glibc
4272         Inspired by draft patches by Adhemerval Zanella in:
4273         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
4274         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
4275         * lib/tempname.c: Include stdalign.h, time.h.
4276         If _LIBC, do not include random-bits.h.
4277         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
4278         (RANDOM_BITS): Remove, replacing with ...
4279         (random_bits): ... this new static function.  All uses changed.
4280         Add entropy each time if getrandom is not supported.
4281         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
4282         Assume 64-bit support a la C99.
4283         (try_tempname_len): Take advantage of ASLR when initializing
4284         random value.
4285         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
4287         getcwd: merge recent glibc changes
4288         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
4289         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
4291 2020-09-06  Bruno Haible  <bruno@clisp.org>
4293         attribute: Clarify which file to include.
4294         * modules/attribute (Include): Add "attribute.h".
4296 2020-09-06  Bruno Haible  <bruno@clisp.org>
4298         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
4299         * lib/pipe-filter-ii.c: Include <process.h>.
4300         * lib/pipe-filter-gi.c: Likewise.
4302 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4304         verify: avoid __builtin_assume
4305         Our latest attempt to use Clang’s __builtin_assume caused a crash
4306         in GNU Emacs that we spent quite some time tracking down as being
4307         caused by the switch to __builtin_assume.  It’s not known whether
4308         the crash is due is a Clang bug or a portability bug in GNU Emacs.
4309         For now, play it safe and avoid __builtin_assume.
4310         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
4311         (assume): Simplify by not trying to use Clang’s __builtin_assume.
4313 2020-09-05  Bruno Haible  <bruno@clisp.org>
4315         Fix several "warning: no previous prototype for function".
4316         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
4317         in front of the declaration of the lookup function in
4318         unicase/locale-languages.h.
4319         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
4320         unictype/bidi_byname.h.
4321         * modules/unictype/category-byname (Makefile.am): Likewise in
4322         unictype/categ_byname.h.
4323         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
4324         unictype/combiningclass_byname.h.
4325         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
4326         unictype/joininggroup_byname.h.
4327         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
4328         unictype/joiningtype_byname.h.
4329         * modules/unictype/property-byname (Makefile.am): Likewise in
4330         unictype/pr_byname.h.
4331         * modules/unictype/scripts (Makefile.am): Likewise in
4332         unictype/scripts_byname.h.
4333         * modules/uninorm/composition (Makefile.am): Likewise in
4334         uninorm/composition-table.h.
4336 2020-09-05  Bruno Haible  <bruno@clisp.org>
4338         select: Fix "warning: no previous prototype for function".
4339         * lib/select.c: Include <sys/select.h>.
4341 2020-09-05  Bruno Haible  <bruno@clisp.org>
4343         Use module 'c99' when needed for variadic macros with '...' syntax.
4344         * modules/crypto/sm3 (Depends-on): Add c99.
4346 2020-09-05  Bruno Haible  <bruno@clisp.org>
4348         Use module 'c99' when needed for subobject initializer syntax.
4349         * modules/tempname (Depends-on): Add c99.
4350         * modules/nstrftime-tests (Depends-on): Likewise.
4352 2020-09-05  Bruno Haible  <bruno@clisp.org>
4354         Use module 'c99' when needed for declaration-after-statement syntax.
4355         * modules/backup-rename (Depends-on): Add c99.
4356         * modules/backupfile (Depends-on): Likewise.
4357         * modules/bitset-tests (Depends-on): Likewise.
4358         * modules/bitsetv (Depends-on): Likewise.
4359         * modules/c-strtod (Depends-on): Likewise.
4360         * modules/c-strtold (Depends-on): Likewise.
4361         * modules/clean-temp (Depends-on): Likewise.
4362         * modules/copy-file (Depends-on): Likewise.
4363         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
4364         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
4365         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
4366         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
4367         * modules/crypto/md5-buffer (Depends-on): Likewise.
4368         * modules/crypto/md5-tests (Depends-on): Likewise.
4369         * modules/crypto/sha1-buffer (Depends-on): Likewise.
4370         * modules/crypto/sha1-tests (Depends-on): Likewise.
4371         * modules/crypto/sha256-buffer (Depends-on): Likewise.
4372         * modules/crypto/sha256-tests (Depends-on): Likewise.
4373         * modules/crypto/sha512-buffer (Depends-on): Likewise.
4374         * modules/crypto/sha512-tests (Depends-on): Likewise.
4375         * modules/diffseq (Depends-on): Likewise.
4376         * modules/fatal-signal (Depends-on): Likewise.
4377         * modules/fchmodat (Depends-on): Likewise.
4378         * modules/fstrcmp (Depends-on): Likewise.
4379         * modules/fsusage (Depends-on): Likewise.
4380         * modules/fts (Depends-on): Likewise.
4381         * modules/fts-tests (Depends-on): Likewise.
4382         * modules/getumask (Depends-on): Likewise.
4383         * modules/git-merge-changelog (Depends-on): Likewise.
4384         * modules/hash-map (Depends-on): Likewise.
4385         * modules/hash-set (Depends-on): Likewise.
4386         * modules/lchmod (Depends-on): Likewise.
4387         * modules/libgmp-tests (Depends-on): Likewise.
4388         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
4389         * modules/linkedhash-map (Depends-on): Likewise.
4390         * modules/linkedhash-set (Depends-on): Likewise.
4391         * modules/long-options (Depends-on): Likewise.
4392         * modules/mbrtoc32 (Depends-on): Likewise.
4393         * modules/memchr2-tests (Depends-on): Likewise.
4394         * modules/memmem-tests (Depends-on): Likewise.
4395         * modules/memrchr-tests (Depends-on): Likewise.
4396         * modules/mktime-internal (Depends-on): Likewise.
4397         * modules/nstrftime (Depends-on): Likewise.
4398         * modules/opendirat (Depends-on): Likewise.
4399         * modules/parse-datetime (Depends-on): Likewise.
4400         * modules/quotearg-simple-tests (Depends-on): Likewise.
4401         * modules/same (Depends-on): Likewise.
4402         * modules/supersede (Depends-on): Likewise.
4403         * modules/supersede-tests (Depends-on): Likewise.
4404         * modules/time_rz (Depends-on): Likewise.
4405         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
4406         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
4407         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
4408         * modules/xalloc (Depends-on): Likewise.
4409         * modules/xnanosleep (Depends-on): Likewise.
4411 2020-09-05  Bruno Haible  <bruno@clisp.org>
4413         Fix "warning: array initialized from parenthesized string constant".
4414         * tests/test-memmem.c (main): Remove parentheses around string constant.
4415         * tests/test-c-strcasestr.c (main): Likewise.
4416         * tests/test-strcasestr.c (main): Likewise.
4418 2020-09-05  Bruno Haible  <bruno@clisp.org>
4420         argmatch tests: Fix ISO C compliance warning.
4421         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
4422         invocation.
4424 2020-09-05  Bruno Haible  <bruno@clisp.org>
4426         uniname/uniname: Fix -Wshadow warning.
4427         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
4428         * modules/uniname/uniname (Depends-on): Add c99.
4430 2020-09-05  Bruno Haible  <bruno@clisp.org>
4432         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
4433         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
4434         argument to size_t.
4435         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
4436         n to size_t.
4438 2020-09-05  Bruno Haible  <bruno@clisp.org>
4440         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
4441         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
4442         u32_uctomb): Change type of last argument to ptrdiff_t.
4443         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
4444         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
4445         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
4446         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
4447         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
4449 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4451         manywarnings: remove -Wchkp and -Wabi from C++ too
4452         Suggested by Reuben Thomas in:
4453         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
4454         At some point somebody should merge the many other manywarnings-c.m4
4455         changes into manywarnings-c++.m4 too, e.g.,
4456         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
4457         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
4458         Remove -Wchkp, -Wabi.
4460 2020-08-30  Bruno Haible  <bruno@clisp.org>
4462         strerrorname_np: Add tests.
4463         * tests/test-strerrorname_np.c: New file.
4464         * modules/strerrorname_np-tests: New file.
4466         strerrorname_np: New module.
4467         * lib/string.in.h (strerrorname_np): New declaration.
4468         * lib/strerrorname_np.c: New file.
4469         * m4/strerrorname_np.m4: New file.
4470         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
4471         is declared.
4472         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
4473         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
4474         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
4475         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
4476         * modules/strerrorname_np: New file.
4477         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
4478         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
4479         the glibc 2.32 bug.
4481 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
4483         perror, strerror_r: remove unportable tests
4484         Problem reported by Florian Weimer in:
4485         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
4486         * tests/test-perror2.c (main):
4487         * tests/test-strerror_r.c (main): Omit unportable tests.
4489 2020-08-26  Bruno Haible  <bruno@clisp.org>
4491         stdint, wchar, wctype-h: Change configure message.
4492         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
4493         enough..." instead of "checking whether wint_t is too small...".
4495 2020-08-26  Bruno Haible  <bruno@clisp.org>
4497         time_rz: Change configure message.
4498         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
4499         near extrema..." instead of "checking whether localtime loops forever
4500         near extrema...".
4502 2020-08-26  Bruno Haible  <bruno@clisp.org>
4504         stdint: Change configure message.
4505         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
4506         without ISO C predefines..." instead of "checking whether stdint.h
4507         predates C++11...".
4509 2020-08-26  Bruno Haible  <bruno@clisp.org>
4511         socketlib: Change configure message.
4512         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
4513         instead of "checking if we need to call WSAStartup in winsock2.h and
4514         -lws2_32...".
4516 2020-08-26  Bruno Haible  <bruno@clisp.org>
4518         include_next: Change configure message.
4519         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
4520         code line length is unlimited..." instead of "checking whether system
4521         header files limit the line length...".
4523 2020-08-26  Bruno Haible  <bruno@clisp.org>
4525         getcwd: Change configure message.
4526         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
4527         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
4528         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
4530 2020-08-26  Bruno Haible  <bruno@clisp.org>
4532         chdir-long: Change configure message.
4533         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
4534         system supports file names of any length..." instead of "checking
4535         whether this system has an arbitrary file name length limit...".
4536         Set gl_cv_have_unlimited_file_name_length instead of
4537         gl_cv_have_arbitrary_file_name_length_limit.
4538         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
4540 2020-08-26  Bruno Haible  <bruno@clisp.org>
4542         ceill: Change configure message.
4543         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
4544         instead of "checking whether ceill() breaks with small values...".
4546 2020-08-26  Bruno Haible  <bruno@clisp.org>
4548         iconv: Change configure message.
4549         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
4550         with its POSIX signature..." instead of "checking for iconv
4551         declaration...". Remove K&R C support.
4553 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
4555         getcwd: help the merge back into glibc
4556         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
4557         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
4558         The idea is to make it easier for Gnulib lib/getcwd.c to match
4559         glibc io/getcwd-generic.c.
4560         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
4561         Include not-cancel.h.
4562         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
4563         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
4564         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
4565         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
4566         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
4567         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
4568         (__getcwd_generic): Rename from __getcwd.
4569         Use the abovementioned macros for consistency with glibc.
4570         (weak_alias): Remove.
4572 2020-08-25  Bruno Haible  <bruno@clisp.org>
4574         verify: Avoid warnings when assume(0) is used.
4575         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
4576         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
4577         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
4578         the constant 0.
4579         * tests/test-verify.c (f): New function.
4580         (state): New type.
4581         (test_assume_expressions, test_assume_optimization,
4582         test_assume_noreturn): New functions.
4584 2020-08-25  Bruno Haible  <bruno@clisp.org>
4586         fstrcmp: Clarification regarding NOTE_ORDERED.
4587         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
4589 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
4591         diffseq: new option NOTE_ORDERED
4592         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
4593         * NEWS: Mention this.
4594         * lib/diffseq.h (NOTE_ORDERED): New macro.
4595         (IF_LINT2): Remove; no longer needed.
4596         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
4597         subproblem and iterate to do the larger.
4599 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4601         sys_types: let Autoconf 2.70 do pid_t
4602         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
4603         only for Autoconf versions 2.69 and earlier, since 2.70
4604         will be fixed.
4606 2020-08-23  Bruno Haible  <bruno@clisp.org>
4608         tests: Don't assume that pid_t fits in an 'int'.
4609         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
4610         of 'int'.
4611         * tests/test-nonblocking-socket-main.c (main): Likewise.
4613         sys_types: Fix definition of pid_t on 64-bit MSVC.
4614         * m4/pid_t.m4: New file.
4615         * modules/sys_types (Files): Add it.
4616         * modules/dirent (Files): Likewise.
4617         * modules/fcntl-h (Files): Likewise.
4618         * modules/sched (Files): Likewise.
4619         * modules/signal-h (Files): Likewise.
4620         * modules/spawn (Files): Likewise.
4621         * modules/sys_stat (Files): Likewise.
4622         * modules/sys_wait (Files): Likewise.
4623         * modules/termios (Files): Likewise.
4624         * modules/unistd (Files): Likewise.
4626 2020-08-23  Bruno Haible  <bruno@clisp.org>
4628         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
4629         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
4630         program.
4632 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
4634         intprops: be consistent about +X vs X+0
4635         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
4637         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
4638         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
4639         is a bit-field, on older GCC or non-GCC compilers where we do
4640         things ourselves instead of using __builtin_mul_overflow.
4641         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
4642         to applying sizeof to a bit-field.
4643         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
4644         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
4646 2020-08-23  Bruno Haible  <bruno@clisp.org>
4648         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
4649         Reported by Jörg Sonnenberger <joerg@netbsd.org>
4650         via Thomas Klausner <tk@giga.or.at> in
4651         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
4652         * lib/supersede.c (open_supersede): When opening an existing non-regular
4653         file on Solaris, use O_CREAT although it should not be necessary.
4655 2020-08-23  Bruno Haible  <bruno@clisp.org>
4657         verify: Make assume work on bit field expressions (regr. 2020-08-22).
4658         Reported by Benno Schulenberg <bensberg@telfort.nl> in
4659         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
4660         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
4661         variable.
4663 2020-08-23  Bruno Haible  <bruno@clisp.org>
4665         libc-config: Improve comments.
4666         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
4667         cannot use clang's __diagnose_if__ here.
4669 2020-08-22  Bruno Haible  <bruno@clisp.org>
4671         verify: Do use __builtin_assume on clang.
4672         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
4673         variable in a statement expression.
4675 2020-08-22  Bruno Haible  <bruno@clisp.org>
4677         sig2str: Add more signals.
4678         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
4680 2020-08-22  Bruno Haible  <bruno@clisp.org>
4682         doc: Update for OpenBSD 6.0, 6.7.
4683         * doc/*/*.texi: Update.
4684         * m4/printf.m4: Update comments and cross-compilation guesses.
4685         * m4/ceill.m4: Update comments.
4686         * m4/getcwd-abort-bug.m4: Likewise.
4687         * m4/ilogb.m4: Likewise.
4688         * m4/ilogbf.m4: Likewise.
4689         * m4/langinfo_h.m4: Likewise.
4690         * m4/modf.m4: Likewise.
4691         * m4/modff.m4: Likewise.
4693 2020-08-22  Bruno Haible  <bruno@clisp.org>
4695         doc: Mention sig2str module.
4696         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
4698 2020-08-21  Bruno Haible  <bruno@clisp.org>
4700         sigdescr_np: Add tests.
4701         * tests/test-sigdescr_np.c: New file.
4702         * modules/sigdescr_np-tests: New file.
4704         sigdescr_np: New module.
4705         * lib/string.in.h (sigdescr_np): New declaration.
4706         * lib/sigdescr_np.c: New file.
4707         * m4/sigdescr_np.m4: New file.
4708         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
4709         declared.
4710         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
4711         HAVE_SIGDESCR_NP.
4712         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
4713         HAVE_SIGDESCR_NP.
4714         * modules/sigdescr_np: New file.
4715         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
4716         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
4718 2020-08-20  Bruno Haible  <bruno@clisp.org>
4720         sigabbrev_np: Add tests.
4721         * tests/test-sigabbrev_np.c: New file.
4722         * modules/sigabbrev_np-tests: New file.
4724         sigabbrev_np: New module.
4725         * lib/string.in.h (sigabbrev_np): New declaration.
4726         * lib/sigabbrev_np.c: New file.
4727         * m4/sigabbrev_np.m4: New file.
4728         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
4729         declared.
4730         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
4731         HAVE_SIGABBREV_NP.
4732         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
4733         HAVE_SIGABBREV_NP.
4734         * modules/sigabbrev_np: New file.
4735         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
4736         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
4738 2020-08-20  Bruno Haible  <bruno@clisp.org>
4740         stdalign tests: Skip test with AIX xlclang.
4741         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
4743 2020-08-20  Bruno Haible  <bruno@clisp.org>
4745         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
4746         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
4747         workaround as for GCC versions < 4.9.
4749 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4751         Sync up ProjectQuirks comments and documentation
4752         Transform the ProjectQuirks comments into a docstring so that it can
4753         be accessed from python as ProjectQuirks.__doc__ and harmonize
4754         descriptions with the documentation.
4755         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
4756         Transform comments into a docstring.
4757         * doc/vcs-to-changelog.texi: Sync up description with comments.
4759         Split ProjectQuirks out into its own file
4760         ProjectQuirks is used by external quirks files and importing it from
4761         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
4762         is cleaner to put it in its own file anyway.
4763         * build-aux/vcstocl/projectquirks.py: A new file...
4764         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
4765         we move ProjectQuirks and import the file.
4767 2020-08-19  Bruno Haible  <bruno@clisp.org>
4769         uchar: Fix compilation errors in C++ mode on macOS.
4770         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
4771         system header file before attempting to use 'char16_t' and 'char32_t'.
4773 2020-08-19  Bruno Haible  <bruno@clisp.org>
4775         ansi-c++-opt: Work around an autoconf macro reordering problem.
4776         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
4777         section.
4779 2020-08-19  Bruno Haible  <bruno@clisp.org>
4781         math C++ tests: Fix compilation error in with GCC 10.
4782         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
4783         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
4784         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4786 2020-08-19  Bruno Haible  <bruno@clisp.org>
4788         uchar: Fix compilation errors in C++ mode on OpenBSD.
4789         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
4790         CXX_HAS_UCHAR_TYPES is 1.
4791         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
4792         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
4793         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
4795 2020-08-19  Bruno Haible  <bruno@clisp.org>
4797         Fix compilation errors in C++ mode on OpenBSD.
4798         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
4799         OpenBSD with clang, use the approach without C preprocessor macro.
4801 2020-08-18  Bruno Haible  <bruno@clisp.org>
4803         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
4804         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
4805         AC_LANG_POP.
4807 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4809         verify: avoid __built_assume on Clang
4810         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
4811         Clang 9 incorrectly diagnoses arguments as having side effects
4812         even when they do not.  I guess Clang 9 considers any function
4813         call as if it had a side effect here.
4815         libc-config: avoid Clang’s __diagnose_if__
4816         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
4817         For now, do not use __diagnose_if__ here, as this fails
4818         on Fedora 31 with Clang 9.0.1, with diagnostic
4819         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
4820         size than length of destination buffer
4821         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
4822         for functions that are not called?
4824         careadlinkat: speedup for GCC 10 with GCC_LINT
4825         Inspired by a suggestion by Bruno Haible in:
4826         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
4827         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
4828         (readlink_stk): New function, with most of the old careadlinkat
4829         contents and with a new STACK_BUF arg.  Inline it in GCC 10
4830         if GCC_LINT.
4831         (careadlinkat): Use the new function for everything but the
4832         stack buffer.
4834         * build-aux/gcc-warning.spec: Update comments.
4836 2020-08-17  Bruno Haible  <bruno@clisp.org>
4838         Assume autoconf >= 2.64.
4839         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
4841 2020-08-17  Bruno Haible  <bruno@clisp.org>
4843         Revert autoupdate's revert.
4844         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
4846 2020-08-17  Bruno Haible  <bruno@clisp.org>
4848         uchar C++ tests: Fix build error on FreeBSD 12.
4849         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
4850         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
4851         <cuchar> does not exist.
4853 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4855         time_rz: remove unused functions
4856         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
4858         time_rz: fix issues with mktime_z failures
4859         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
4860         Use a cheaper tm_yday test for failed mktime.
4862 2020-08-16  Bruno Haible  <bruno@clisp.org>
4864         intprops test: Strengthen on clang.
4865         * tests/test-intprops.c (VERIFY): Use verify_stmt.
4867 2020-08-16  Bruno Haible  <bruno@clisp.org>
4869         nstrftime: Guide inlining also on clang.
4870         * lib/nstrftime.c (iso_week_days): Inline also on clang.
4872 2020-08-16  Bruno Haible  <bruno@clisp.org>
4874         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
4875         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
4877 2020-08-16  Bruno Haible  <bruno@clisp.org>
4879         log2l: Disable MSVC workaround on clang.
4880         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
4882 2020-08-16  Bruno Haible  <bruno@clisp.org>
4884         argp: Emit a warning also with clang.
4885         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
4886         clang.
4888 2020-08-16  Bruno Haible  <bruno@clisp.org>
4890         libc-config: Enable __REDIRECT macro also on clang.
4891         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
4892         __ASMNAME2): Define on clang like on GCC.
4894 2020-08-16  Bruno Haible  <bruno@clisp.org>
4896         regex: Use initializer shorthand syntax also with clang.
4897         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
4898         with clang.
4900 2020-08-16  Bruno Haible  <bruno@clisp.org>
4902         regex: Use space optimization also with clang.
4903         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
4904         with clang.
4906 2020-08-16  Bruno Haible  <bruno@clisp.org>
4908         Use _Static_assert and static_assert primitives when present on clang.
4909         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
4910         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
4911         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
4913 2020-08-16  Bruno Haible  <bruno@clisp.org>
4915         Use 'throw ()' for optimization in C++ mode also on clang.
4916         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
4917         * lib/getopt-cdefs.in.h (__THROW): Likewise.
4918         * lib/md5.h (__THROW): Likewise.
4920 2020-08-16  Bruno Haible  <bruno@clisp.org>
4922         absolute-header: Add support for clang.
4923         * modules/absolute-header (Makefile.am): Include '__clang__' in the
4924         HAVE_INCLUDE_NEXT expression.
4926 2020-08-16  Bruno Haible  <bruno@clisp.org>
4928         Fix "warning: implicitly declaring library function 'strcasecmp'".
4929         * lib/argp-help.c: Include <strings.h>.
4931 2020-08-16  Bruno Haible  <bruno@clisp.org>
4933         stdio: Don't break attribute 'scanf' on clang.
4934         * lib/stdio.in.h (scanf): Treat clang like GCC.
4936 2020-08-16  Bruno Haible  <bruno@clisp.org>
4938         Use __restrict also on clang.
4939         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
4940         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
4941         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
4943 2020-08-16  Bruno Haible  <bruno@clisp.org>
4945         pthread-spin: Use GCC built-ins also on clang.
4946         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4947         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
4948         also on clang.
4950 2020-08-16  Bruno Haible  <bruno@clisp.org>
4952         asyncsafe-spin tests: Update.
4953         * tests/test-asyncsafe-spin2.c: Update to match the change in
4954         lib/asyncsafe-spin.c from 2020-08-11.
4956 2020-08-16  Bruno Haible  <bruno@clisp.org>
4958         setenv: Use tree code also with clang.
4959         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
4961 2020-08-16  Bruno Haible  <bruno@clisp.org>
4963         math: Optimize signbit also on clang.
4964         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
4965         on clang.
4967 2020-08-16  Bruno Haible  <bruno@clisp.org>
4969         avltreehash-list, rbtreehash-list: Optimize also on clang.
4970         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
4971         __builtin_expect also on clang.
4973 2020-08-16  Bruno Haible  <bruno@clisp.org>
4975         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
4976         * lib/socket.c: Use WSASocketW, not WSASocketA.
4978         Fix "warning: format specifies type 'unsigned long'".
4979         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
4980         argument to match the format directive.
4982         Fix "warning: no case matching constant switch condition '0'".
4983         * tests/test-fcntl.c (check_flags): Add a 'default' case.
4985         Fix "warning: integer overflow in expression".
4986         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
4987         remove a 'long' overflow.
4989         Fix "warning: "getpagesize" redefined".
4990         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
4991         macro.
4993         Fix "warning: implicitly declaring library function 'strncasecmp'".
4994         * lib/strptime.c: Include <strings.h>.
4996         Fix "warning: 'snprintf' macro redefined".
4997         * lib/strerror_r.c (snprintf): Undefine before redefining.
4999         Fix "warning: address of array 'locale' will always evaluate to 'true'".
5000         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
5002         Fix "warning: '__stat64' macro redefined".
5003         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
5005         Fix "warning: 'format' attribute argument not supported: rpl_printf".
5006         * lib/stdio.in.h (printf): Treat clang like GCC.
5008         Fix "warning: attribute declaration must precede definition" with clang.
5009         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
5010         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
5011         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
5012         on non-glibc systems.
5013         * lib/netdb.in.h (gai_strerror): Likewise.
5014         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
5015         * lib/sys_stat.in.h (fstat): Likewise.
5016         * lib/utime.in.h (utime): Likewise.
5018         Fix undesired warnings.
5019         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
5020         clang.
5022 2020-08-16  Bruno Haible  <bruno@clisp.org>
5024         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
5025         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
5026         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
5027         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
5028         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
5030 2020-08-16  Bruno Haible  <bruno@clisp.org>
5032         Don't use Autoconf quadrigraphs.
5033         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
5034         Autoconf quadrigraph.
5035         * m4/free.m4 (gl_FUNC_FREE): Likewise.
5036         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
5037         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
5038         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
5039         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
5040         * m4/math_h.m4 (gl_MATH_H): Likewise.
5041         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
5043 2020-08-16  Bruno Haible  <bruno@clisp.org>
5045         Fix quoting of AC_LANG_PROGRAM arguments.
5046         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
5047         arguments through [[...]].
5048         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
5049         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
5050         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5051         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
5052         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
5053         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
5054         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
5055         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
5056         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
5057         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
5058         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
5059         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
5060         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5062 2020-08-16  Bruno Haible  <bruno@clisp.org>
5064         Assume autoconf >= 2.64.
5065         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
5066         * DEPENDENCIES: Require Autoconf 2.64 or newer.
5067         * NEWS: Mention the changed requirement.
5068         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
5069         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
5070         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
5071         variables.
5072         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5073         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
5074         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
5075         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
5076         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
5077         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
5078         Likewise.
5079         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
5080         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
5081         * m4/configmake.m4: Update comment.
5083 2020-08-16  Bruno Haible  <bruno@clisp.org>
5085         sys_ioctl: Simplify.
5086         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
5087         AC_INCLUDES_DEFAULT.
5089 2020-08-16  Bruno Haible  <bruno@clisp.org>
5091         Fix quoting of AC_LANG_SOURCE arguments.
5092         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
5093         GL_NOCRASH expansion.
5094         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
5095         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5096         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5097         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5098         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5100 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5102         nstrftime: be more predictable about errno
5103         This aligns nstrftime better with draft POSIX 202x strftime.
5104         * lib/nstrftime.c: Include errno.h.
5105         (width_add, __strftime_internal): Set errno on failure,
5106         and preserve it on success.  Check for mktime_z failure.
5107         * modules/nstrftime (Depends-on): Add errno.
5108         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
5109         * tests/test-nstrftime.c: Include intprops.h, limits.h.
5110         (errno_test): New test function.
5111         (main): Call it.
5113 2020-08-15  Bruno Haible  <bruno@clisp.org>
5115         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
5116         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
5117         from dependency analysis first.
5119 2020-08-15  Bruno Haible  <bruno@clisp.org>
5121         Determine asm output option and filename suffix for MSVC/clang.
5122         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
5123         clang-cl.
5125 2020-08-15  Bruno Haible  <bruno@clisp.org>
5127         doc: Update for MSVC/clang.
5128         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
5129         that MSVC 14 does not have.
5131 2020-08-15  Bruno Haible  <bruno@clisp.org>
5133         Revert autoupdate's revert.
5134         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
5136 2020-08-15  Bruno Haible  <bruno@clisp.org>
5138         frexpl: Fix configuration test result on MSVC.
5139         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
5140         zero.
5142 2020-08-15  Bruno Haible  <bruno@clisp.org>
5144         Support compiling without -loldnames on native Windows.
5145         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
5146         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
5147         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
5148         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
5149         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
5150         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
5151         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
5152         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
5153         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
5154         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
5155         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
5156         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
5157         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
5158         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
5159         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
5160         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
5161         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5162         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5163         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
5164         Likewise.
5165         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
5166         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
5167         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
5168         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
5169         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
5170         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
5171         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
5172         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
5173         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
5174         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
5175         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
5176         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
5177         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
5178         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
5179         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
5180         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
5181         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
5182         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
5183         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
5184         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5185         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
5186         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
5187         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5188         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5189         * m4/utimens.m4 (gl_UTIMENS): Likewise.
5190         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5191         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
5192         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
5193         test for getcwd.
5194         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
5195         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
5196         with GL_MDA_DEFINES.
5197         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
5198         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
5199         prefixed symbol.
5200         * lib/search.in.h (lfind, lsearch): Likewise.
5201         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
5202         Likewise.
5203         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
5204         * lib/string.in.h (memccpy, strdup): Likewise.
5205         * lib/sys_stat.in.h (chmod, umask): Likewise.
5206         * lib/time.in.h (tzset): Likewise.
5207         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
5208         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
5209         read, rmdir, swab, unlink, write): Likewise.
5210         * lib/utime.in.h (utime): Likewise.
5211         * lib/wchar.in.h (wcsdup): Likewise.
5212         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
5213         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
5214         rpl_-prefixed macro.
5215         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
5216         * lib/close.c (close_nothrow): On native Windows, use _close.
5217         * lib/creat.c (orig_creat): On native Windows, use _creat.
5218         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
5219         * lib/dup2.c (dup2_nothrow): Use _dup2.
5220         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
5221         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
5222         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
5223         * lib/open.c (orig_open): On native Windows, use _open.
5224         * lib/read.c (read_nothrow): Use _read.
5225         * lib/rmdir.c: On native Windows, use _rmdir.
5226         * lib/unlink.c: On native Windows, use _unlink.
5227         * lib/write.c (write_nothrow): Use _write.
5228         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
5229         undefined symbol.
5230         * lib/sys_socket.in.h (close): Likewise.
5231         * lib/sys_time.in.h (close): Likewise.
5232         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
5234 2020-08-15  Bruno Haible  <bruno@clisp.org>
5236         Fix "unknown pragma ignored" warnings with clang on native Windows.
5237         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
5238         * lib/cbrtf.c: Likewise.
5239         * lib/ceil.c: Likewise.
5240         * lib/floor.c: Likewise.
5241         * lib/fma.c: Likewise.
5242         * lib/fmod.c: Likewise.
5243         * lib/rint.c: Likewise.
5244         * lib/round.c: Likewise.
5245         * lib/trunc.c: Likewise.
5246         * tests/test-ceil2.c: Likewise.
5247         * tests/test-ceilf2.c: Likewise.
5248         * tests/test-floor2.c: Likewise.
5249         * tests/test-floorf2.c: Likewise.
5250         * tests/test-trunc2.c: Likewise.
5251         * tests/test-truncf2.c: Likewise.
5252         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5253         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5255 2020-08-15  Bruno Haible  <bruno@clisp.org>
5257         Fix compilation errors in C++ mode with clang on native Windows.
5258         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
5259         non-glibc systems.
5260         * lib/sched.in.h (sched_yield): Likewise.
5262 2020-08-14  Bruno Haible  <bruno@clisp.org>
5264         stdnoreturn: Work around problem with MSVC/clang.
5265         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
5266         system header after <stdnoreturn.h>.
5267         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
5269 2020-08-14  Bruno Haible  <bruno@clisp.org>
5271         utime-h: Generate an utime.h file always.
5272         * modules/utime-h (Makefile.am): Generate utime.h always.
5273         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
5274         GL_GENERATE_UTIME_H.
5276 2020-08-14  Bruno Haible  <bruno@clisp.org>
5278         mktime, mktime-internal: Remove obsolete code.
5279         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
5281 2020-08-14  Bruno Haible  <bruno@clisp.org>
5283         getcwd: Remove obsolete code.
5284         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
5285         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5287 2020-08-14  Bruno Haible  <bruno@clisp.org>
5289         tzset: Assume the function exists.
5290         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
5291         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
5292         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
5293         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
5294         HAVE_TZSET.
5295         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
5296         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
5298         nstrftime: Assume tzset exists.
5299         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
5300         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
5301         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
5303         mktime, mktime-internal: Assume tzset exists.
5304         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
5305         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
5307 2020-08-14  Bruno Haible  <bruno@clisp.org>
5309         strdup: Assume the function exists.
5310         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
5311         whether strdup exists.
5312         * modules/strdup (Files): Remove lib/strdup.c.
5313         (configure.ac): Don't compile strdup.c.
5314         * modules/strdup-posix (Depends-on, configure.ac): Don't test
5315         ac_cv_func_strdup.
5316         * doc/posix-functions/strdup.texi: Update.
5317         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
5318         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
5319         (Depends-on): Remove unistr/u8-strlen.
5321 2020-08-13  Bruno Haible  <bruno@clisp.org>
5323         sys_random: Work around an uClibc bug.
5324         Reported by akater <nuclearspace@gmail.com>
5325         via Stefan Kangas <stefan@marxist.se>
5326         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
5327         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
5328         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
5329         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
5330         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
5332 2020-08-12  Bruno Haible  <bruno@clisp.org>
5334         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
5335         Reported by Florian Weimer in
5336         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
5337         * lib/gen-uni-tables.c (output_predicate): Change the element type of
5338         the level3 array to 'unsigned int'.
5339         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
5340         * lib/unictype/categ_*.h: Regenerated.
5341         * lib/unictype/ctype_*.h: Regenerated.
5342         * lib/unictype/pr_*.h: Regenerated.
5343         * lib/unictype/sy_*.h: Regenerated.
5344         * lib/unicase/cased.h: Regenerated.
5345         * lib/unicase/ignorable.h: Regenerated.
5347 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5349         stdint: port intptr_t to more-recent MinGW
5350         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
5351         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
5352         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
5353         Apparently those two macros were removed in mingwrt-3.22
5354         dated 2016-07-14.
5356 2020-08-12  Bruno Haible  <bruno@clisp.org>
5358         thread-optim: Export function-like macros only.
5359         Suggested by Paul Eggert.
5360         * lib/thread-optim.h (gl_multithreaded): New macro.
5361         (IF_MT_DECL, IF_MT): Remove macros.
5362         * doc/multithread.texi (Multithreading Optimizations): Add a small
5363         example.
5364         * lib/fatal-signal.c: Update all uses.
5365         * lib/clean-temp.c: Likewise.
5366         * lib/localename.c: Likewise.
5367         * modules/localename (Depends-on): Add stdbool.
5369 2020-08-12  Bruno Haible  <bruno@clisp.org>
5371         Revert autoupdate's revert.
5372         * config/srclist.txt: Mark regex.h as needing sync with glibc.
5374 2020-08-11  Bruno Haible  <bruno@clisp.org>
5376         thread-optim: Fix a compiler warning.
5377         * lib/thread-optim.h (IF_MT_DECL): Define differently.
5379 2020-08-11  Bruno Haible  <bruno@clisp.org>
5381         Use __restrict also on clang.
5382         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
5383         (__restrict_arr): On clang, define like on GCC.
5384         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
5385         (_Restrict_arr_): Use _Restrict_ also on clang.
5386         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
5387         (_Restrict_arr_): Use _Restrict_ also on clang.
5389 2020-08-11  Bruno Haible  <bruno@clisp.org>
5391         Use flexible array syntax also on clang.
5392         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
5393         define like for GCC 3.
5395 2020-08-11  Bruno Haible  <bruno@clisp.org>
5397         fcntl: On native Windows, use _setmode, not setmode.
5398         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
5399         * lib/binary-io.h: Update comment.
5400         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
5401         * tests/test-dup2.c: Likewise.
5402         * tests/test-dup-safer.c: Likewise.
5403         * tests/test-fcntl.c: Likewise.
5405 2020-08-11  Bruno Haible  <bruno@clisp.org>
5407         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
5408         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
5409         * lib/spawn-pipe.c (create_pipe): Likewise.
5410         * tests/test-nonblocking-pipe-main.c (main): Likewise.
5411         * tests/test-nonblocking-socket-main.c (main): Likewise.
5412         * lib/wait-process.c: Update comment.
5413         * doc/posix-functions/fork.texi: Update.
5415 2020-08-11  Bruno Haible  <bruno@clisp.org>
5417         asyncsafe-spin: Use GCC built-ins also on clang.
5418         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
5419         the newer GCC built-ins also on clang.
5421 2020-08-11  Bruno Haible  <bruno@clisp.org>
5423         Use expression statements also on clang.
5424         * lib/cdefs.h (__extension__): Don't define to empty on clang.
5425         * lib/obstack.h (__extension__): Likewise.
5426         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
5427         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
5428         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
5429         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
5430         obstack_finish, obstack_free): Enable as optimized macros also on clang.
5431         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
5433 2020-08-10  Bruno Haible  <bruno@clisp.org>
5435         Use many __attribute__s with clang.
5436         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
5437         on clang.
5438         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
5439         New macros.
5440         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
5441         on clang.
5442         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
5443         also on older clang versions.
5444         (__attribute__): Don't define to empty on clang.
5445         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
5446         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
5447         (__attribute_const__): Use __attribute__ __const__ also on clang.
5448         (__attribute_used__): Use __attribute__ __used__ also on clang.
5449         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
5450         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
5451         clang.
5452         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
5453         clang.
5454         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
5455         also on clang.
5456         (__nonnull): Use __attribute__ __nonnull__ also on clang.
5457         (__attribute_warn_unused_result__): Use __attribute__
5458         __warn_unused_result__ also on clang.
5459         (__always_inline): Use __attribute__ __always_inline__ also on clang.
5460         (__attribute_artificial__): Use __attribute__ __artificial__ also on
5461         clang >= 7.
5462         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
5463         clang versions.
5464         (_Noreturn): Don't redefine on clang >= 3.5.
5465         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
5466         also on clang.
5467         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
5468         on clang.
5469         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5470         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5471         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
5472         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
5473         also on clang.
5474         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
5475         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
5476         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
5477         also on clang.
5478         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
5479         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
5480         __attribute__ __noreturn__ also on clang.
5481         * lib/obstack.h (__attribute_noreturn__): Likewise.
5482         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
5483         clang.
5484         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
5485         always_inline also on clang.
5486         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
5487         clang.
5489 2020-08-10  Bruno Haible  <bruno@clisp.org>
5491         c-ldtoastr tests: Fix test failure.
5492         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
5493         is longer than 'double'.
5495 2020-08-10  Bruno Haible  <bruno@clisp.org>
5497         Revert autoupdate's revert.
5498         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
5500 2020-08-09  Bruno Haible  <bruno@clisp.org>
5502         string: Fix build error in C++ mode with clang (regression from today).
5503         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
5504         parameters, one for GCC, one for clang.
5505         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
5506         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
5507         as return type.
5509 2020-08-09  Bruno Haible  <bruno@clisp.org>
5511         ftruncate: Use _chsize, not chsize.
5512         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
5513         * lib/ftruncate.c: Test HAVE__CHSIZE.
5514         (chsize_nothrow): Use _chsize, not chsize.
5516 2020-08-09  Bruno Haible  <bruno@clisp.org>
5518         Silence warnings from clang 10 with -Wimplicit-fallthrough.
5519         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
5520         clang >= 10.
5521         * lib/fnmatch.c (FALLTHROUGH): Likewise.
5522         * lib/fts.c (FALLTHROUGH): Likewise.
5523         * tests/macros.h (FALLTHROUGH): Likewise.
5524         * lib/regex_internal.h (FALLTHROUGH): Likewise.
5525         * config/srclist.txt: Mark it as needing sync with glibc.
5527 2020-08-09  Bruno Haible  <bruno@clisp.org>
5529         stdbool tests: Enable the stricter tests also on clang.
5530         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
5531         (e): Enable the address-to-bool conversion test also on clang.
5533 2020-08-09  Bruno Haible  <bruno@clisp.org>
5535         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
5536         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
5538 2020-08-09  Bruno Haible  <bruno@clisp.org>
5540         Use attribute __aligned__ with clang.
5541         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
5542         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
5544 2020-08-09  Bruno Haible  <bruno@clisp.org>
5546         Use __alignof__ with clang.
5547         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
5548         on clang.
5549         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
5550         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
5551         clang.
5552         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
5553         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
5554         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
5555         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
5557 2020-08-09  Bruno Haible  <bruno@clisp.org>
5559         ignore-value: Simplify on clang.
5560         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
5561         workaround.
5563 2020-08-09  Bruno Haible  <bruno@clisp.org>
5565         Use __typeof__ with clang.
5566         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
5567         "clang -std=gnu99".
5568         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
5569         * tests/test-stdint.c (verify_same_types): Enable the check also on
5570         clang.
5572 2020-08-09  Bruno Haible  <bruno@clisp.org>
5574         Add ability to emit user-defined warnings and errors with clang.
5575         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
5576         _GL_ATTRIBUTE_WARNING using an attribute for clang.
5577         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
5578         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
5579         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
5580         attribute for clang.
5582 2020-08-09  Bruno Haible  <bruno@clisp.org>
5584         intprops: Fix typo in comment.
5585         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
5587 2020-08-09  Bruno Haible  <bruno@clisp.org>
5589         Use __builtin_signbit* with clang.
5590         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
5591         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
5592         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
5593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
5594         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
5595         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
5596         not REPLACE_SIGNBIT_USING_GCC.
5598 2020-08-09  Bruno Haible  <bruno@clisp.org>
5600         Use __builtin_isnan with clang.
5601         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
5602         not __builtin_isnanf. Also on clang.
5603         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
5604         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
5605         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
5606         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
5607         built-in.
5608         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
5609         not __builtin_isnanl. Also on clang.
5610         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
5611         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
5612         * lib/math.in.h (__has_builtin): Remove macro.
5613         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
5614         __builtin_isnanf. Also on clang.
5615         (isnand, gl_isnan_d): With clang, use the GCC built-in.
5616         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
5617         __builtin_isnanl. Also on clang.
5618         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
5619         on clang.
5621 2020-08-09  Bruno Haible  <bruno@clisp.org>
5623         thread-optim: Fix logic error.
5624         Reported by Paul Eggert.
5625         * lib/thread-optim.h (IF_MT): Fix logic error.
5627 2020-08-08  Bruno Haible  <bruno@clisp.org>
5629         localename: Use module 'thread-optim'.
5630         * lib/localename.c: Include thread-optim.h.
5631         (struniq): Use IF_MT macro.
5632         * modules/localename (Depends-on): Add thread-optim.
5634         clean-temp: Use module 'thread-optim'.
5635         * lib/clean-temp.c: Include thread-optim.h.
5636         (register_temporary_file, unregister_temporary_file, create_temp_dir,
5637         register_temp_file, unregister_temp_file, register_temp_subdir,
5638         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
5639         close_temp, fclose_variant_temp): Use IF_MT macro.
5640         * modules/clean-temp (Depends-on): Add thread-optim.
5642         fatal-signal: Use module 'thread-optim'.
5643         * lib/fatal-signal.c: Include thread-optim.h.
5644         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
5645         macro.
5646         * modules/fatal-signal (Depends-on): Add thread-optim.
5648 2020-08-08  Bruno Haible  <bruno@clisp.org>
5650         New module 'thread-optim'.
5651         * lib/thread-optim.h: New file.
5652         * modules/thread-optim: New file.
5653         * doc/multithread.texi (Multithreading Optimizations): New section.
5655 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
5657         doc: more updates for glibc 2.32
5658         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
5659         * doc/posix-functions/fchmodat.texi: Update.
5661 2020-08-07  Bruno Haible  <bruno@clisp.org>
5663         doc: Update for glibc 2.32.
5664         * doc/glibc-functions/__libc_single_threaded.texi: New file.
5665         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
5666         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
5667         * doc/glibc-functions/sigabbrev_np.texi: New file.
5668         * doc/glibc-functions/sigdescr_np.texi: New file.
5669         * doc/glibc-functions/strerrordesc_np.texi: New file.
5670         * doc/glibc-functions/strerrorname_np.texi: New file.
5671         * doc/gnulib.texi: Include them.
5672         (Glibc sys/single_threaded.h): New section.
5673         * doc/pastposix-functions/h_errno.texi: Update.
5674         * doc/posix-functions/*.texi: Likewise.
5675         * doc/glibc-functions/*.texi: Likewise.
5677 2020-08-07  Bruno Haible  <bruno@clisp.org>
5679         alloca: No need to compile alloca.c with clang.
5680         * lib/alloca.c: Skip all code with clang.
5682         Use __builtin_alloca with clang.
5683         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
5685 2020-08-06  Bruno Haible  <bruno@clisp.org>
5687         Use __builtin_assume with clang.
5688         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
5689         (assume): Use __builtin_assume when available.
5691 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5693         libgmp: add <gmp/gmp.h> support
5694         * m4/libgmp.m4 (gl_LIBGMP):
5695         * modules/libgmp (configure.ac, Makefile.am):
5696         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
5697         ‘#include <gmp.h>’.
5699 2020-08-06  Bruno Haible  <bruno@clisp.org>
5701         Consider that clang defines __OPTIMIZE__ like GCC does.
5702         * lib/streq.h: Define the inline functions also on clang.
5703         * lib/c-strcaseeq.h: Likewise.
5704         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
5705         the GCC workaround to clang.
5707 2020-08-06  Bruno Haible  <bruno@clisp.org>
5709         safe-alloc: Remove unused code.
5710         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
5712 2020-08-06  Bruno Haible  <bruno@clisp.org>
5714         Use __builtin_expect with clang everywhere.
5715         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
5716         also on clang.
5718 2020-08-05  Bruno Haible  <bruno@clisp.org>
5720         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
5721         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
5722         built-in also on clang.
5723         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
5724         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
5726 2020-08-05  Bruno Haible  <bruno@clisp.org>
5728         Use __builtin_clz{,l,ll} with clang, also on Windows.
5729         * lib/integer_length.c: With clang, use the GCC built-in, not
5730         <intrin.h>.
5731         * lib/integer_length_l.c: Likewise.
5732         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
5733         also on clang.
5734         * lib/vasnprintf.c (divide): Likewise.
5736 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
5738         Update srclist.txt as per recent glibc changes
5739         * config/srclist.txt: Uncomment lines to reflect recent merges
5740         from Gnulib to glibc.
5742 2020-08-03  Bruno Haible  <bruno@clisp.org>
5744         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5745         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
5747 2020-08-03  Bruno Haible  <bruno@clisp.org>
5749         integer_length_ll: Optimize for MSVC in 64-bit mode.
5750         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5751         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5753 2020-08-03  Bruno Haible  <bruno@clisp.org>
5755         integer_length_ll: Optimize for MSVC in 32-bit mode.
5756         * lib/integer_length_l.c: Include <intrin.h>.
5757         (integer_length): Define as inline function, like in
5758         lib/integer_length.c.
5760 2020-08-03  Bruno Haible  <bruno@clisp.org>
5762         integer_length: Optimize for MSVC.
5763         * lib/integer_length.c: Include <intrin.h>.
5764         (integer_length): With MSVC, use the _BitScanReverse built-in.
5766 2020-08-03  Bruno Haible  <bruno@clisp.org>
5768         ffsll: Optimize for MSVC in 64-bit mode.
5769         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5770         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5771         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
5773 2020-08-03  Bruno Haible  <bruno@clisp.org>
5775         ffsll: Optimize for MSVC in 32-bit mode.
5776         * lib/ffsl.h: Include <intrin.h>.
5777         (ffs): Define as inline function, like in lib/ffs.c.
5779 2020-08-03  Bruno Haible  <bruno@clisp.org>
5781         ffs: Optimize for MSVC.
5782         * lib/ffs.c: Include <intrin.h>.
5783         (ffs): With MSVC, use the _BitScanForward built-in.
5785 2020-08-03  Bruno Haible  <bruno@clisp.org>
5787         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
5788         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
5789         variable.
5791 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
5793         fopen: Avoid undesired interactions with glibc headers.
5794         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
5795         __need_FILE, as the latter does not work with glibc.
5797 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
5799         fcntl: document some F_SETLK errno variations
5800         * doc/posix-functions/fcntl.texi (fcntl): Document
5801         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
5803 2020-08-02  Bruno Haible  <bruno@clisp.org>
5805         oset: Add an 'iterator_atleast' operation.
5806         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
5807         extracted from gl_array_search_atleast.
5808         (gl_array_search_atleast): Use it.
5809         (gl_array_iterator_atleast): New function.
5810         (gl_array_oset_implementation): Use it.
5811         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
5812         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
5813         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
5814         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
5815         member.
5816         (gl_oset_iterator_atleast): New function.
5817         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
5818         (gl_OSet::iterator): Add another auxiliary constructor.
5819         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
5820         New functions.
5821         (main): Test also gl_oset_iterator_atleast.
5822         * tests/test-avltree_oset.c (is_at_least): New function.
5823         (main): Test also gl_oset_iterator_atleast.
5824         * tests/test-rbtree_oset.c (is_at_least): New function.
5825         (main): Test also gl_oset_iterator_atleast.
5826         * tests/test-oset-c++.cc (is_at_most): New function.
5827         (main): Test also gl_OSet::begin_atleast.
5829 2020-08-02  Bruno Haible  <bruno@clisp.org>
5831         oset-c++, omap-c++: Remove restriction for search_atleast method.
5832         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
5833         a different type than the element.
5834         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
5835         a different type than the key.
5837 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
5839         gnumakefile: say ‘$(MAKE)’ not ‘make’
5840         * top/GNUmakefile (abort-due-to-no-makefile):
5841         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
5842         This change is backported from Autoconf.
5844 2020-08-01  Bruno Haible  <bruno@clisp.org>
5846         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5847         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
5848         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
5849         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
5850         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
5851         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
5853 2020-08-01  Bruno Haible  <bruno@clisp.org>
5855         libtextstyle-optional: Update tests.
5856         * modules/libtextstyle-optional-tests (configure.ac): Invoke
5857         gl_LIBTEXTSTYLE_OPTIONAL.
5859 2020-08-01  Bruno Haible  <bruno@clisp.org>
5861         parse-datetime: Fix wrong #line statements.
5862         * modules/parse-datetime (Makefile.am): Correct #line statements also in
5863         parse-datetime-gen.h.
5865 2020-08-01  Bruno Haible  <bruno@clisp.org>
5867         libtextstyle[-optional]: Allow requesting a minimum version.
5868         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
5869         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
5870         gl_LIBTEXTSTYLE_SEARCH): New macros.
5871         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
5872         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
5873         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
5874         * modules/libtextstyle-optional (configure.ac): Don't invoke
5875         gl_LIBTEXTSTYLE_OPTIONAL.
5876         * NEWS: Mention the changes.
5878 2020-07-31  Bruno Haible  <bruno@clisp.org>
5880         _GL_CMP: Improve documentation.
5881         Reported by Paul Eggert in
5882         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
5883         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
5884         passed.
5886 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5888         largefile: sync with Autoconf master
5889         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
5890         Avoid undefined behavior on platforms where off_t is 32 bits.
5891         See: https://bugs.debian.org/742780
5893         alloca: sync with Autoconf master
5894         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5895         Do not define if Autoconf 2.70 or later, since Autoconf master
5896         now matches us.
5898 2020-07-30  Bruno Haible  <bruno@clisp.org>
5900         unicodeio: Add comment.
5901         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
5902         different iconv behaviours.
5904 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5906         Work around some Oracle Studio attribute bugs
5907         These were discovered when building bleeding-edge Emacs with
5908         Oracle Studio.
5909         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
5910         Port to Oracle Studio 12.6, which mishandles __attribute__
5911         ((__cold__)) and __attribute__ ((__may_alias__)) even though
5912         __has_attribute says they work.
5914 2020-07-29  Bruno Haible  <bruno@clisp.org>
5916         unicodeio: Fix wrong result on musl libc.
5917         Reported by A. Wilcox <awilfox@adelielinux.org> in
5918         <https://www.openwall.com/lists/musl/2020/07/29/2>.
5919         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
5920         on musl libc.
5921         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
5922         * modules/unicodeio (Files): Add m4/musl.m4.
5924 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
5926         fsusage, regex, stat-size: remove Cray support
5927         As near as I can make out this is actually support for UNICOS/mp,
5928         last released 2005, and Cray hasn’t supported that for years.
5929         * config/srclist.txt: Comment out regex.h for now.
5930         * lib/fsusage.c (get_fs_usage):
5931         * lib/regex.h (re_comp, re_exec):
5932         * lib/stat-size.h (ST_NBLOCKSIZE):
5933         Don’t worry about _CRAY.
5935 2020-07-29  Bruno Haible  <bruno@clisp.org>
5937         parse-datetime: Fix compilation error with bison 3.7.
5938         * modules/parse-datetime (Makefile.am): Create a generated header file
5939         parse-datetime-gen.h in the source directory. Correct #include and
5940         #line statements during preprocessing.
5942 2020-07-28  Bruno Haible  <bruno@clisp.org>
5944         fopen-gnu: Create files correctly (regression from 2020-05-24).
5945         * lib/fopen.c (rpl_open): Pass a third argument to open().
5947 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
5949         xalloc-die: don’t depend on xalloc
5950         This removes a circular dependency, as xalloc depends on xalloc-die.
5951         * modules/xalloc-die (Files): Add lib/xalloc.h.
5952         (Depends-on): Remove xalloc.
5953         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
5955         dfa-tests: port to MSVC
5956         Problem reported by Gisle Vanem in:
5957         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
5958         Also, remove an unnecessary dependency on getprogname.
5959         * modules/dfa-tests (Depends-on): Remove getprogname.
5960         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
5961         (exit_status): New static var.
5962         (dfawarn): Set it instead of exiting.
5963         Do not declare as _Noreturn, to pacify MSVC.
5964         (main): Return exit_status.
5966 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
5968         argz: pacify MSVC
5969         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
5970         Problem reported by Gisle Vanem.
5972         libgmp: remove dependency on havelib
5973         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
5974         use the more-traditional AC_SEARCH_LIBS approach.
5975         This should work better with GNU Emacs configuration,
5976         which uses pkg-config instead of a havelib-style approach.
5977         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
5978         * modules/libgmp (Depends-on): Remove havelib.
5980         libgmp: remove HAVE_GMP, LIB_GMP
5981         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
5982         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
5984 2020-07-26  Bruno Haible  <bruno@clisp.org>
5986         inttypes: Remove support for AIX 4.
5987         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
5988         * m4/inttypes-pri.m4: Remove file.
5989         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
5990         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
5991         * modules/inttypes-incomplete (Makefile.am): Don't substitute
5992         PRI_MACROS_BROKEN.
5993         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
5995 2020-07-26  Bruno Haible  <bruno@clisp.org>
5997         gettimeofday: Remove workaround for Mac OS X 10.0.
5998         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
5999         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
6000         * lib/gettimeofday.c: Don't include localtime-buffer.h.
6001         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6002         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6003         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
6004         * modules/localtime-buffer: Remove file.
6005         * lib/localtime-buffer.h: Remove file.
6006         * lib/localtime-buffer.c: Remove file.
6007         * m4/localtime-buffer.m4: Remove file.
6008         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
6010 2020-07-26  Bruno Haible  <bruno@clisp.org>
6012         tzset: Remove workaround for Solaris 2.6.
6013         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
6014         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
6015         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
6016         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
6017         * lib/localtime-buffer.c: Likewise.
6018         * lib/localtime.c: Likewise.
6019         * lib/tzset.c: Don't include localtime-buffer.h.
6020         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
6021         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
6022         is 1.
6023         * modules/tzset (Depends-on): Remove localtime-buffer.
6025 2020-07-26  Bruno Haible  <bruno@clisp.org>
6027         expl: Simplify autoconf test.
6028         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
6029         with small values..." test into the "checking whether expl works..."
6030         test.
6032 2020-07-26  Bruno Haible  <bruno@clisp.org>
6034         alloca: Remove Cray-2 and Cray Y-MP support.
6035         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
6036         Enable also on Autoconf >= 2.69.
6037         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
6038         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
6039         i00afunc): Remove.
6041 2020-07-25  Bruno Haible  <bruno@clisp.org>
6043         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
6044         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
6046 2020-07-25  Bruno Haible  <bruno@clisp.org>
6048         sigprocmask: Small autoconf macro improvement.
6049         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
6050         user to override the value of gl_cv_func_sigprocmask.
6051         * m4/gnulib-common.m4 (gl_SILENT): New macro.
6053 2020-07-25  Bruno Haible  <bruno@clisp.org>
6055         Small autoconf macro improvements.
6056         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
6057         override the value of gl_cv_func_working_mktime.
6058         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
6059         compiler produces multi-arch binaries..." in the configure output.
6060         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
6061         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
6063 2020-07-25  Bruno Haible  <bruno@clisp.org>
6065         doc: Update for NetBSD 7.1, 8.0, 9.0.
6066         * doc/*/*.texi: Update.
6067         * m4/exp2l.m4: Update comments.
6068         * m4/expl.m4: Likewise.
6069         * m4/ilogb.m4: Likewise.
6070         * m4/ilogbf.m4: Likewise.
6071         * m4/log10l.m4: Likewise.
6072         * m4/logl.m4: Likewise.
6073         * m4/printf.m4: Likewise.
6074         * m4/rintl.m4: Likewise.
6075         * m4/wcwidth.m4: Likewise.
6077 2020-07-24  Bruno Haible  <bruno@clisp.org>
6079         doc: Update for Mac OS X 10.13.
6080         * doc/*/*.texi: Update.
6081         * m4/expm1l.m4: Update comments.
6082         * m4/getgroups.m4: Likewise.
6083         * m4/getlogin_r.m4: Likewise.
6084         * m4/linkat.m4: Likewise.
6085         * m4/printf.m4: Likewise.
6087 2020-07-24  Bruno Haible  <bruno@clisp.org>
6089         doc: Update for Cygwin 2.9.0.
6090         * doc/*/*.texi: Update.
6092 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6094         parse-datetime: modernize doc
6095         * doc/parse-datetime.texi: Use more-current examples.
6096         Don’t lead with 32-bit time_t, as it’s on its way out.
6097         Capitalize “Epoch” to be consistent with POSIX.
6099         timespec: remove dependence on ‘verify’
6100         * lib/timespec.h: Do not include verify.h; no longer needed.
6101         * modules/timespec (Depends-on): Remove ‘verify’.
6103         Optimize a few more three-valued comparisons
6104         * lib/timespec.h (timespec_cmp, timespec_sign):
6105         * lib/utimecmp.c (utimecmpat):
6106         Avoid conditional branches by using _GL_CMP.
6108         Fix _GL_CMP parenthesization typo
6109         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
6111 2020-07-24  Bruno Haible  <bruno@clisp.org>
6113         dfa: Revert breaking gawk.
6114         Reported by Arnold Robbins <arnold@skeeve.com>.
6115         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
6117 2020-07-23  Bruno Haible  <bruno@clisp.org>
6119         Optimize three-valued comparison between integers.
6120         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
6121         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
6122         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
6123         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
6124         * lib/dfa.c (compare): Likewise.
6125         * lib/fts.c (fts_compare_ino): Likewise.
6126         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
6127         * lib/mbscasecmp.c (mbscasecmp): Likewise.
6128         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
6129         * lib/memcasecmp.c (memcasecmp): Likewise.
6130         * lib/memcmp2.c (memcmp2): Likewise.
6131         * lib/savedir.c (direntry_cmp_inode): Likewise.
6132         * lib/strcasecmp.c (strcasecmp): Likewise.
6133         * lib/strncasecmp.c (strncasecmp): Likewise.
6134         * lib/unistr/u-cmp2.h (FUNC): Likewise.
6136 2020-07-23  Bruno Haible  <bruno@clisp.org>
6138         lchmod: Use /proc on Cygwin.
6139         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
6141 2020-07-23  Ken Brown  <kbrown@cornell.edu>
6143         fchmodat: Use /proc on Cygwin
6144         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
6146 2020-07-21  Bruno Haible  <bruno@clisp.org>
6148         aligned-malloc: Optionally use aligned_alloc.
6149         * lib/aligned-malloc.h: Verify the alignment.
6150         (aligned_malloc): Use aligned_alloc as an alternative.
6151         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
6152         * doc/posix-functions/aligned_alloc.texi: Mention the modules
6153         'aligned-malloc' and 'pagealign_alloc'.
6155 2020-07-21  Bruno Haible  <bruno@clisp.org>
6157         aligned-malloc: Add tests.
6158         * tests/test-aligned-malloc.c: New file.
6159         * modules/aligned-malloc-tests: New file.
6161         aligned-malloc: New module.
6162         * lib/aligned-malloc.h: New file.
6163         * m4/malloc-align.m4: New file.
6164         * modules/aligned-malloc: New file.
6165         * doc/posix-functions/posix_memalign.texi: Mention the new module.
6166         * doc/glibc-functions/memalign.texi: Likewise.
6168 2020-07-21  Bruno Haible  <bruno@clisp.org>
6170         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
6171         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
6172         sure PRIPTR_PREFIX is defined to "ll", not "l".
6174 2020-07-21  Bruno Haible  <bruno@clisp.org>
6176         printf-posix: Make an autoconf test more future-proof.
6177         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
6178         using uintptr_t.
6180 2020-07-20  Bruno Haible  <bruno@clisp.org>
6182         list, oset, omap: Relicense some of the container modules under LGPLv2+.
6183         * modules/list (License): Change to LGPLv2+.
6184         * modules/array-list (License): Likewise.
6185         * modules/carray-list (License): Likewise.
6186         * modules/linked-list (License): Likewise.
6187         * modules/avltree-list (License): Likewise.
6188         * modules/rbtree-list (License): Likewise.
6189         * modules/oset (License): Likewise.
6190         * modules/array-oset (License): Likewise.
6191         * modules/avltree-oset (License): Likewise.
6192         * modules/rbtree-oset (License): Likewise.
6193         * modules/omap (License): Likewise.
6194         * modules/array-omap (License): Likewise.
6195         * modules/avltree-omap (License): Likewise.
6196         * modules/rbtree-omap (License): Likewise.
6198 2020-07-20  Bruno Haible  <bruno@clisp.org>
6200         oset: Add an 'update' operation.
6201         * lib/gl_array_oset.c (gl_array_update): New function.
6202         (gl_array_oset_implementation): Use it.
6203         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
6204         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
6205         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
6206         extracted from gl_tree_nx_add_before.
6207         (gl_tree_nx_add_before): Invoke it.
6208         (gl_tree_add_node_after): New function, extracted from
6209         gl_tree_nx_add_after.
6210         (gl_tree_nx_add_after): Invoke it.
6211         (gl_tree_remove_node_no_free): New function, extracted from
6212         gl_tree_remove_node.
6213         (gl_tree_remove_node): Invoke it.
6214         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
6215         extracted from gl_tree_nx_add_before.
6216         (gl_tree_nx_add_before): Invoke it.
6217         (gl_tree_add_node_after): New function, extracted from
6218         gl_tree_nx_add_after.
6219         (gl_tree_nx_add_after): Invoke it.
6220         (gl_tree_remove_node_no_free): New function, extracted from
6221         gl_tree_remove_node.
6222         (gl_tree_remove_node): Invoke it.
6223         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
6224         from gl_tree_iterator_next.
6225         (gl_tree_iterator_next): Invoke it.
6226         (gl_tree_prev_node, gl_tree_update): New functions.
6227         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
6228         (gl_avltree_oset_implementation): Use gl_tree_update.
6229         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
6230         (gl_rbtree_oset_implementation): Use gl_tree_update.
6231         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
6232         (gl_oset_update): New function.
6233         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
6234         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
6235         * modules/rbtree-oset (configure.ac): Likewise.
6236         * tests/test-oset-update.h: New file.
6237         * tests/test-array_oset.c: Include test-oset-update.h.
6238         (main): Invoke test_update.
6239         * tests/test-avltree_oset.c: Likewise.
6240         * tests/test-rbtree_oset.c: Likewise.
6241         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
6242         * modules/avltree-oset-tests (Files): Likewise.
6243         * modules/rbtree-oset-tests (Files): Likewise.
6244         * tests/test-oset-c++.cc (action): New function.
6245         (main): Test the 'update' member function.
6247 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6249         md5, sha1, sha256, sha512: pacify Autoconf 2.70
6250         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
6251         shell if, so that the argument to AC_CHECK_HEADERS is
6252         a simple string that does not require shell evaluation.
6253         This fixes a warning generated by Autoconf 2.69b.
6255 2020-07-12  Bruno Haible  <bruno@clisp.org>
6257         libgmp: Avoid warning when --without-libgmp is used.
6258         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
6259         GCC >= 8, not for GCC >= 4.6.
6261 2020-07-12  Bruno Haible  <bruno@clisp.org>
6263         libgmp: Link to the correct shared library.
6264         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
6265         * modules/libgmp (Depends-on): Add havelib.
6266         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
6267         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
6269 2020-07-12  Bruno Haible  <bruno@clisp.org>
6271         libgmp tests: Add some safety checks.
6272         * modules/libgmp-tests (Depends-on): Add verify.
6273         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
6274         (main): Verify that gmp.h and libgmp versions match.
6276 2020-07-10  Bruno Haible  <bruno@clisp.org>
6278         unicodeio: Fix wrong result on NetBSD.
6279         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
6280         characters also on NetBSD.
6282 2020-07-09  Bruno Haible  <bruno@clisp.org>
6284         unicodeio: Fix wrong result on Solaris 11.
6285         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
6286         via Akim Demaille <akim.demaille@gmail.com> in
6287         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
6288         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
6289         characters on Solaris.
6290         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
6291         UTF-8 output or the specified fallback.
6293 2020-07-08  Bruno Haible  <bruno@clisp.org>
6295         unicodeio: Add tests.
6296         * tests/test-unicodeio.c: New file.
6297         * tests/test-unicodeio1.sh: New file.
6298         * tests/test-unicodeio2.sh: New file.
6299         * tests/test-unicodeio3.sh: New file.
6300         * modules/unicodeio-tests: New file.
6302 2020-07-08  Bruno Haible  <bruno@clisp.org>
6304         unicodeio: Document link requirements.
6305         * modules/unicodeio (Link): New section.
6307 2020-07-07  Bruno Haible  <bruno@clisp.org>
6309         doc: Remove support for some very old platforms.
6310         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
6311         * doc/posix-functions/memcpy.texi: Likewise.
6312         * doc/posix-functions/memmove.texi: Likewise.
6313         * doc/posix-functions/memset.texi: Likewise.
6314         * doc/posix-functions/getcwd.texi: Likewise.
6316         memchr: Remove support for some very old platforms.
6317         * m4/memchr-obsolete.m4: Remove file.
6318         * modules/memchr-obsolete: Remove file.
6319         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
6320         absent. Don't define HAVE_MEMCHR.
6321         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
6322         * modules/memchr (Depends-on): Remove memchr-obsolete.
6323         (configure.ac): Assume HAVE_MEMCHR is 1.
6324         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6325         HAVE_MEMCHR.
6326         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
6327         * doc/posix-functions/memchr.texi: Don't mention module
6328         'memchr-obsolete'.
6329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
6330         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
6331         * modules/strnlen (Depends-on): Remove memchr-obsolete.
6333         dup2: Remove support for some very old platforms.
6334         * m4/dup2-obsolete.m4: Remove file.
6335         * modules/dup2-obsolete: Remove file.
6336         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
6337         Don't define HAVE_DUP2.
6338         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
6339         * lib/dup2.c: Likewise.
6340         * modules/dup2 (Depends-on, configure.ac): Likewise.
6341         (Depends-on): Remove dup2-obsolete.
6342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
6343         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
6344         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
6346 2020-07-07  Bruno Haible  <bruno@clisp.org>
6348         canonicalize: Trim module dependencies.
6349         * lib/hash-triple.h: Group declarations.
6350         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
6351         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
6352         (STREQ): Remove macro.
6353         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
6354         * modules/hash-triple-simple: New file, based on modules/hash-triple.
6355         * modules/hash-triple (Files): Remove lib/hash-triple.h.
6356         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
6357         * modules/canonicalize (Depends-on): Remove hash-triple. Add
6358         hash-triple-simple.
6359         * modules/file-set (Depends-on): Likewise.
6361 2020-07-07  Bruno Haible  <bruno@clisp.org>
6363         Clarify dependencies to double-slash-root.
6364         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
6365         (Depends-on): Add double-slash-root.
6366         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
6367         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
6369 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6371         libgmp: new module
6372         The idea is to let programs simply include <gmp.h>, and
6373         so long as they live within the mini-gmp subset they need
6374         not worry about whether the GMP libraries are installed.
6375         * MODULES.html.sh: Mention it.
6376         * config/srclist.txt: Mention files copied from GMP source.
6377         * config/srclistvars.sh (GMP): New var.
6378         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
6379         * modules/libgmp-tests, tests/test-libgmp.c: New files.
6380         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
6382 2020-07-05  Bruno Haible  <bruno@clisp.org>
6384         mkancesdirs: Trim module dependencies.
6385         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
6386         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
6388 2020-07-05  Bruno Haible  <bruno@clisp.org>
6390         getprogname: Trim module dependencies.
6391         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
6392         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
6393         basename-lgpl.
6395 2020-07-05  Bruno Haible  <bruno@clisp.org>
6397         filenamecat-lgpl: Trim module dependencies.
6398         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
6399         dirname.h.
6400         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
6401         basename-lgpl, filename.
6403 2020-07-05  Bruno Haible  <bruno@clisp.org>
6405         backupfile, backup-rename: Trim module dependencies.
6406         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
6407         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
6408         basename-lgpl.
6409         * modules/backup-rename (Depends-on): Likewise.
6411 2020-07-05  Bruno Haible  <bruno@clisp.org>
6413         argp: Trim module dependencies.
6414         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
6415         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
6417 2020-07-05  Bruno Haible  <bruno@clisp.org>
6419         basename-lgpl: New module.
6420         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
6421         lib/basename-lgpl.c.
6422         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
6423         <stdbool.h>, filename.h.
6424         (last_component): Rename a local variable.
6425         * lib/dirname.h: Include basename-lgpl.h.
6426         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
6427         (last_component, base_len): Remove declarations.
6428         * modules/basename-lgpl: New file.
6429         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
6430         (Depends-on): Add basename-lgpl. Remove double-slash-root.
6431         (Makefile.am): Don't compile basename-lgpl.c.
6432         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
6433         not 'dirname'.
6435 2020-07-05  Bruno Haible  <bruno@clisp.org>
6437         dirname, dirname-lgpl: Simplify.
6438         * m4/dirname.m4: Remove file.
6439         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
6440         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
6441         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
6443 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
6445         tests: avoid shadowing warning
6446         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
6448 2020-07-05  Bruno Haible  <bruno@clisp.org>
6450         supersede: Add tests.
6451         * tests/test-supersede.c: New file.
6452         * tests/test-supersede-open.h: New file.
6453         * tests/test-supersede-fopen.h: New file.
6454         * modules/supersede-tests: New file.
6456         supersede: New module.
6457         * lib/supersede.h: New file.
6458         * lib/supersede.c: New file.
6459         * m4/supersede.m4: New file.
6460         * modules/supersede: New file.
6462 2020-07-05  Bruno Haible  <bruno@clisp.org>
6464         Add some copyright headers.
6465         * lib/dev-ino.h: Add copyright header.
6466         * lib/di-set.h: Likewise.
6467         * lib/fchown-stub.c: Likewise.
6468         * lib/file-set.h: Likewise.
6469         * lib/hash-triple.h: Likewise.
6470         * lib/idcache.h: Likewise.
6471         * lib/ino-map.h: Likewise.
6472         * lib/mkancesdirs.h: Likewise.
6473         * lib/scratch_buffer.h: Likewise.
6474         * lib/se-context.in.h: Likewise.
6475         * lib/stdopen.h: Likewise.
6476         * lib/userspec.h: Likewise.
6478 2020-07-04  Bruno Haible  <bruno@clisp.org>
6480         getrandom: Relicense under LGPLv2+.
6481         Paul Eggert's approval is in
6482         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
6483         * modules/getrandom (License): Change to LGPLv2+.
6485 2020-07-04  Bruno Haible  <bruno@clisp.org>
6487         getumask: Add tests.
6488         * tests/test-getumask.c: New file.
6489         * modules/getumask-tests: New file.
6491         getumask: New module.
6492         * lib/sys_stat.in.h (getumask): New declaration.
6493         * lib/getumask.c: New file.
6494         * m4/getumask.m4: New file.
6495         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
6496         declared.
6497         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
6498         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
6499         HAVE_GETUMASK.
6500         * modules/getumask: New file.
6501         * tests/test-sys_stat-c++.cc (getumask): Check signature.
6502         * doc/glibc-functions/getumask.texi: New file.
6503         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
6505 2020-07-04  Bruno Haible  <bruno@clisp.org>
6507         clean-temp: Add support for temporary files with given mode.
6508         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
6509         * lib/clean-temp.c (struct try_create_file_params): New type.
6510         (try_create_file): New function.
6511         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
6512         gen_tempname.
6514 2020-07-04  Bruno Haible  <bruno@clisp.org>
6516         clean-temp: Document limitations.
6517         * lib/clean-temp.h: Document limitations.
6519 2020-07-04  Bruno Haible  <bruno@clisp.org>
6521         clean-temp: Add support for temporary files with unpredictable names.
6522         * lib/clean-temp.h (gen_register_open_temp): New declaration.
6523         * lib/clean-temp.c: Include tempname.h.
6524         (gen_register_open_temp): New function.
6525         * modules/tempname (configure.ac): Define a module indicator.
6527 2020-07-04  Bruno Haible  <bruno@clisp.org>
6529         clean-temp: Add support for temporary files anywhere in the file system.
6530         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
6531         cleanup_temporary_file): New declarations.
6532         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
6533         variables.
6534         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
6535         (dir_cleanup_list): Renamed from cleanup_list.
6536         (cleanup_action): Process the file_cleanup_list as well.
6537         (do_init_clean_temp): New function.
6538         (clean_temp_once): New variable.
6539         (init_clean_temp): New function.
6540         (create_temp_dir): Invoke it.
6541         (register_temporary_file, unregister_temporary_file,
6542         cleanup_temporary_file): New functions.
6543         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
6544         argument.
6546 2020-07-04  Bruno Haible  <bruno@clisp.org>
6548         clean-temp: Improve comments.
6549         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
6550         fwriteerror_temp, close_stream_temp): Clarify intended use.
6551         * lib/clean-temp.c: Likewise.
6553 2020-07-04  Bruno Haible  <bruno@clisp.org>
6555         clean-temp: Make multithread-safe, part 2.
6556         * lib/fatal-signal.h: Include <signal.h>.
6557         (get_fatal_signal_set): New declaration.
6558         * lib/fatal-signal.c (get_fatal_signal_set): New function.
6559         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
6560         (struct closeable_fd): New type.
6561         (fatal_signal_set): New variable.
6562         (init_fatal_signal_set): New function.
6563         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
6564         (cleanup_action): Invoke asyncsafe_close instead of close.
6565         (create_temp_dir): Invoke init_fatal_signal_set.
6566         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
6567         element.
6568         (unregister_fd): Remove function.
6569         (close_temp): Cleanup descriptors list on the fly. Invoke
6570         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
6571         (fclose_variant_temp): New function.
6572         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
6573         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
6575 2020-07-04  Bruno Haible  <bruno@clisp.org>
6577         clean-temp: Make multithread-safe, part 1.
6578         * lib/clean-temp.c: Include glthread/lock.h.
6579         (cleanup_list_lock): New variable.
6580         (register_temp_file, unregister_temp_file, register_temp_subdir,
6581         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
6582         (create_temp_dir): Likewise. Don't free the old array.
6583         (descriptors_lock): New variable.
6584         (register_fd, unregister_fd): Use it.
6585         * modules/clean-temp (Depends-on): Add lock.
6587 2020-07-04  Bruno Haible  <bruno@clisp.org>
6589         fatal-signal: Make multithread-safe.
6590         * lib/fatal-signal.c (init_fatal_signals): Add comment.
6591         (do_init_fatal_signal_set): New function, extracted from
6592         init_fatal_signal_set.
6593         (fatal_signal_set_once): New variable.
6594         (init_fatal_signal_set): Use gl_once.
6596 2020-07-03  Bruno Haible  <bruno@clisp.org>
6598         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
6599         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
6600         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
6601         <bcrypt.h>.
6603 2020-07-03  Bruno Haible  <bruno@clisp.org>
6605         dfa tests: Follow common file naming conventions.
6606         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
6607         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
6608         * tests/test-dfa-invalid-char-class.sh: Renamed from
6609         tests/dfa-invalid-char-class.sh. Update.
6610         * modules/dfa-tests (Files, Makefile.am): Update.
6612 2020-07-03  Bruno Haible  <bruno@clisp.org>
6614         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
6615         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
6616         the GCC extended asm syntax also for the Sun Studio 12 compilers.
6618 2020-07-03  Bruno Haible  <bruno@clisp.org>
6620         asyncsafe-spin: Reduce code duplication.
6621         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
6622         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
6623         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
6625 2020-07-03  Bruno Haible  <bruno@clisp.org>
6627         lchmod: Simplify after 2020-02-22 change.
6628         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
6630 2020-07-03  Bruno Haible  <bruno@clisp.org>
6632         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
6633         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
6635 2020-07-03  Bruno Haible  <bruno@clisp.org>
6637         dfa: Make sure the compiler does not barf on 'inline'.
6638         * modules/dfa (configure.ac): Require AC_C_INLINE.
6640 2020-07-03  Bruno Haible  <bruno@clisp.org>
6642         bitset: Make sure the compiler does not barf on 'inline'.
6643         * modules/bitset (configure.ac): New section.
6645 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
6647         manywarnings: improve port to GCC 10.1
6648         * build-aux/gcc-warning.spec: Also list warnings that are default
6649         or are enabled by already-given flags.  This lets us speed up
6650         checking for attributes, and makes the generated compilation
6651         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
6652         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
6653         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
6654         to shell variables that may have long values.
6655         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
6656         consequences of other flags, to speed up checking and
6657         shorten commands.
6659         tests: pacify gcc -fanalyzer on zerosize_ptr
6660         * tests/test-memcasecmp.c (main):
6661         * tests/test-memchr.c (main):
6662         * tests/test-memchr2.c (main):
6663         * tests/test-memcmp.c (main):
6664         * tests/test-memmem.c (main):
6665         * tests/test-memrchr.c (main):
6666         * tests/unistr/test-chr.h (main):
6667         * tests/unistr/test-cmp.h (test_cmp):
6668         Check whether zerosize_ptr returns NULL before using it.
6669         This pacifies GCC 10.1’s new fanalyzer option, and matches
6670         other uses of zerosize_ptr.
6672 2020-07-01  Bruno Haible  <bruno@clisp.org>
6674         asyncsafe-spin: Add tests.
6675         * tests/test-asyncsafe-spin1.c: New file.
6676         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
6677         tests/test-pthread-spin.c.
6678         * modules/asyncsafe-spin-tests: New file.
6680 2020-07-01  Bruno Haible  <bruno@clisp.org>
6682         asyncsafe-spin: New module.
6683         * lib/asyncsafe-spin.h: New file.
6684         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
6685         * modules/asyncsafe-spin: New file.
6687 2020-07-01  Bruno Haible  <bruno@clisp.org>
6689         windows-spin: Fix race condition on multiprocessor systems.
6690         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
6692 2020-07-01  Bruno Haible  <bruno@clisp.org>
6694         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
6695         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
6696         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
6697         an implementation based on other GCC built-ins.
6699 2020-07-01  Bruno Haible  <bruno@clisp.org>
6701         pthread-spin: Optimize fallback for GCC versions >= 4.7.
6702         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
6703         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
6704         lock byte.
6706 2020-07-01  Bruno Haible  <bruno@clisp.org>
6708         pthread-spin: Add error checking.
6709         * lib/pthread-spin.c: Include <stdbool.h>.
6710         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
6711         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
6712         the unlocks.
6713         * modules/pthread-spin (Depends-on): Add stdbool.
6715 2020-07-01  Bruno Haible  <bruno@clisp.org>
6717         pthread-spin: Add tests.
6718         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
6719         * modules/pthread-spin-tests: New file.
6721 2020-07-01  Bruno Haible  <bruno@clisp.org>
6723         tests: Reduce code duplication.
6724         * tests/atomic-int-posix.h: New file, extracted from
6725         tests/test-pthread-mutex.c.
6726         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
6727         * tests/test-pthread-rwlock.c: Likewise.
6728         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
6729         * modules/pthread-rwlock-tests (Files): Likewise.
6731 2020-07-01  Bruno Haible  <bruno@clisp.org>
6733         tests: Refactor.
6734         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
6735         * tests/test-mtx.c: Include it. Remove the corresponding code.
6736         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
6738 2020-07-01  Bruno Haible  <bruno@clisp.org>
6740         tests: Refactor.
6741         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
6742         * tests/test-lock.c: Include it. Remove the corresponding code.
6743         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
6745 2020-06-29  Bruno Haible  <bruno@clisp.org>
6747         sys_socket: Don't define socklen_t if it is already defined on mingw.
6748         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
6749         <https://savannah.gnu.org/bugs/?57725>,
6750         by Rahul Das <bokul_4u@yahoo.com> in
6751         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
6752         and by Eli Zaretskii <eliz@gnu.org> in
6753         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
6754         * lib/sys_socket.in.h (socklen_t): Remove definition.
6756 2020-06-29  Bruno Haible  <bruno@clisp.org>
6758         alloca-opt: Fix warning on mingw.
6759         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
6760         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
6761         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
6762         whether alloca is defined.
6764 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
6766         getrandom: do not depend on ‘open’ on mingw
6767         Similarly for at-internal, getloadavg.  These modules do not call
6768         the ‘open’ function when they are compiled on mingw.  On mingw,
6769         this avoids having to compile open.c when building Emacs, which
6770         does its own thing with ‘open’.
6771         * modules/at-internal, modules/getloadavg, modules/getrandom:
6772         (Depends-on): Don’t depend on ‘open’ on mingw.
6773         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
6774         * modules/getloadavg (Depends-on):
6775         Depend on intprops, open, stdbool, stdlib only if compiling
6776         getloadavg.c.
6778 2020-06-28  Bruno Haible  <bruno@clisp.org>
6780         doc: Add a note about sigprocmask vs. pthread_sigmask.
6781         * doc/posix-functions/sigprocmask.texi: Add note.
6783 2020-06-28  Bruno Haible  <bruno@clisp.org>
6785         getrandom: Fix compilation errors on older versions of mingw.
6786         Reported by Eli Zaretskii <eliz@gnu.org> in
6787         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
6788         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
6789         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
6790         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
6791         BCryptGenRandom ourselves.
6793 2020-06-28  Bruno Haible  <bruno@clisp.org>
6795         clean-temp: Fix wrong errno in error message.
6796         * lib/clean-temp.c (create_temp_dir): Save errno around
6797         unblock_fatal_signals call.
6799 2020-06-27  Bruno Haible  <bruno@clisp.org>
6801         fatal-signal: Make multithread-safe.
6802         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
6804 2020-06-27  Bruno Haible  <bruno@clisp.org>
6806         clean-temp: Don't force deletion of temporary files on native Windows.
6807         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
6808         argument.
6809         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
6810         * NEWS: Mention the change.
6811         * lib/javacomp.c (write_temp_file): Update.
6813 2020-06-27  Bruno Haible  <bruno@clisp.org>
6815         fatal-signal: Make multithread-safe.
6816         * lib/fatal-signal.c: Include glthread/lock.h.
6817         (at_fatal_signal_lock): New variable.
6818         (at_fatal_signal): Use it.
6819         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
6820         (block_fatal_signals, unblock_fatal_signals): Use them.
6821         * modules/fatal-signal (Depends-on): Add lock.
6823 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
6825         getloadavg: don’t depend on fopen-gnu
6826         This is for Emacs, which does not need fopen-gnu for anything else,
6827         and which would need it only on a NetBSD platform where getloadavg
6828         does not work (does that even happen?).
6829         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
6830         * modules/getloadavg (Depends-on): Remove fopen-gnu.
6832         * tests/test-getloadavg.c (main): Fix typo.
6834 2020-06-27  Bruno Haible  <bruno@clisp.org>
6836         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
6837         * modules/tempname (Link): New section.
6838         * modules/mkdtemp (Link): Likewise.
6839         * modules/clean-temp (Link): Likewise.
6840         * modules/mkstemp (Link): Likewise.
6841         * modules/stdlib-safer (Link): Likewise.
6842         * modules/mkstemps (Link): Likewise.
6843         * modules/mkostemp (Link): Likewise.
6844         * modules/mkostemps (Link): Likewise.
6845         * modules/tmpfile (Link): Likewise.
6846         * modules/tmpfile-safer (Link): Likewise.
6847         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
6848         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
6849         $(LIB_GETRANDOM).
6850         * NEWS: Mention the changes.
6852 2020-06-27  Bruno Haible  <bruno@clisp.org>
6854         fopen-gnu: Simplify code.
6855         * lib/fopen.c: Include <stdbool.h>.
6856         (rpl_fopen): Use a single variable open_flags instead of
6857         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
6858         * modules/fopen (Depends-on): Add stdbool.
6860 2020-06-26  Bruno Haible  <bruno@clisp.org>
6862         canonicalize: Improve documentation.
6863         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
6864         return convention.
6866 2020-06-26  Bruno Haible  <bruno@clisp.org>
6868         xgetcwd: Improve documentation.
6869         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
6871 2020-06-26  Bruno Haible  <bruno@clisp.org>
6873         getcwd: Improve documentation.
6874         * lib/getcwd.c (__getcwd): Document the failure return convention.
6876 2020-06-26  Bruno Haible  <bruno@clisp.org>
6878         fchdir: Improve documentation.
6879         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
6880         convention.
6882 2020-06-26  Bruno Haible  <bruno@clisp.org>
6884         filenamecat-lgpl: Set errno upon failure.
6885         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
6886         return convention.
6887         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
6889 2020-06-26  Bruno Haible  <bruno@clisp.org>
6891         areadlink-with-size: Set errno upon failure.
6892         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
6893         fails.
6894         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
6896 2020-06-26  Bruno Haible  <bruno@clisp.org>
6898         copy-file: Shrink dependencies.
6899         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
6900         qcopy-acl.
6902 2020-06-26  Bruno Haible  <bruno@clisp.org>
6904         doc: Mention declaration fixes implemented by some modules.
6905         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
6906         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
6907         declaration appear in <unistd.h>.
6908         * doc/posix-functions/dup.texi: Likewise.
6909         * doc/posix-functions/dup2.texi: Likewise.
6910         * doc/posix-functions/gethostname.texi: Likewise.
6911         * doc/posix-functions/isatty.texi: Likewise.
6912         * doc/posix-functions/lseek.texi: Likewise.
6913         * doc/posix-functions/unlink.texi: Likewise.
6914         * doc/posix-functions/read.texi: Mention the module 'read'.
6915         * doc/posix-functions/write.texi: Mention the effects of the module
6916         'write'.
6918 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
6920         c-dtoastr, c-ldtoastr: new modules
6921         These modules provide the same functionality as the modules
6922         dtoastr and ldtoastr except for the formatting taking place in the
6923         C locale.
6924         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
6925         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
6926         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
6927         defined.  Use c_snprintf and c_strtod/c_strtold instead of
6928         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
6929         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
6930         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
6931         modules/c-ldtoastr-tests: New files.
6932         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
6933         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
6935 2020-06-21  Bruno Haible  <bruno@clisp.org>
6937         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
6938         * lib/tzset.c: Include <stdlib.h>, <string.h>.
6940 2020-06-16  Bruno Haible  <bruno@clisp.org>
6942         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
6943         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
6945 2020-06-16  Bruno Haible  <bruno@clisp.org>
6947         thread, thrd: Avoid a compiler warning.
6948         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
6950 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
6952         windows-thread: Avoid a compiler warning.
6953         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
6954         void.
6955         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
6957 2020-06-15  Bruno Haible  <bruno@clisp.org>
6959         unictype/joininggroup-name: Fix warning on 64-bit mingw.
6960         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
6961         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
6962         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
6963         first.
6965 2020-06-06  Bruno Haible  <bruno@clisp.org>
6967         calloc-gnu tests: Avoid a test failure with clang.
6968         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
6969         'volatile', to defeat compiler optimizations.
6971 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6973         getloadavg: fix double-increment bug
6974         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
6975         Linux without glibc, Android, Cygwin.  This fixes a bug I
6976         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
6977         Problem and fix reported by Semen Verchenko in:
6978         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
6980         tempname: use getrandom, not getentropy
6981         This removes a dependency, as getentropy depends on getrandom.
6982         * lib/tempname.c: Include sys/random.h instead of unistd.h.
6983         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
6984         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
6986 2020-06-01  Bruno Haible  <bruno@clisp.org>
6988         doc: New chapter 'Multithreading'.
6989         * doc/multithread.texi: New file.
6990         * doc/gnulib.texi: Include it.
6992 2020-06-01  Bruno Haible  <bruno@clisp.org>
6994         doc: Move 'Running self-tests under valgrind' section.
6995         * doc/gnulib.texi (Build Infrastructure Modules): Include
6996         valgrind-tests.texi here...
6997         (Miscellaneous Notes): ... not here.
6999 2020-06-01  Bruno Haible  <bruno@clisp.org>
7001         doc: Move 'Visual Studio Compatibility' section.
7002         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
7003         here...
7004         (Build Infrastructure Modules): ... not here.
7006 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
7008         doc: improve randomness discussion
7009         Inspired by comments from Jeffrey Walton in:
7010         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
7011         * doc/glibc-functions/getentropy.texi (getentropy):
7012         * doc/glibc-functions/getrandom.texi (getrandom):
7013         Improve discussion of problems with "random" data,
7014         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
7016 2020-06-01  Bruno Haible  <bruno@clisp.org>
7018         doc: Fix Texinfo syntax error.
7019         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
7021 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
7023         doc: Change '.' to '@.' where appropriate.
7024         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
7025         * doc/glibc-functions/fstatfs.texi: Likewise.
7026         * doc/glibc-functions/fts_children.texi: Likewise.
7027         * doc/glibc-functions/fts_read.texi: Likewise.
7028         * doc/glibc-functions/getdirentries.texi: Likewise.
7029         * doc/glibc-functions/mkostemp.texi: Likewise.
7030         * doc/glibc-functions/mkostemps.texi: Likewise.
7031         * doc/glibc-functions/mkstemps.texi: Likewise.
7032         * doc/glibc-functions/preadv.texi: Likewise.
7033         * doc/glibc-functions/pwritev.texi: Likewise.
7034         * doc/glibc-functions/sendfile.texi: Likewise.
7035         * doc/glibc-functions/statfs.texi: Likewise.
7036         * doc/gnulib-intro.texi: Likewise.
7037         * doc/gnulib-tool.texi: Likewise.
7038         * doc/intprops.texi: Likewise.
7039         * doc/lib-symbol-visibility.texi: Likewise.
7040         * doc/licenses-texi.texi: Likewise.
7041         * doc/pastposix-functions/bcmp.texi: Likewise.
7042         * doc/pastposix-functions/bcopy.texi: Likewise.
7043         * doc/pastposix-functions/bzero.texi: Likewise.
7044         * doc/pastposix-functions/ecvt.texi: Likewise.
7045         * doc/pastposix-functions/fcvt.texi: Likewise.
7046         * doc/pastposix-functions/ftime.texi: Likewise.
7047         * doc/pastposix-functions/gcvt.texi: Likewise.
7048         * doc/pastposix-functions/getwd.texi: Likewise.
7049         * doc/pastposix-functions/index.texi: Likewise.
7050         * doc/pastposix-functions/mktemp.texi: Likewise.
7051         * doc/pastposix-functions/rindex.texi: Likewise.
7052         * doc/pastposix-functions/wcswcs.texi: Likewise.
7053         * doc/posix-functions/aio_cancel.texi: Likewise.
7054         * doc/posix-functions/aio_error.texi: Likewise.
7055         * doc/posix-functions/aio_fsync.texi: Likewise.
7056         * doc/posix-functions/aio_read.texi: Likewise.
7057         * doc/posix-functions/aio_return.texi: Likewise.
7058         * doc/posix-functions/aio_suspend.texi: Likewise.
7059         * doc/posix-functions/aio_write.texi: Likewise.
7060         * doc/posix-functions/creat.texi: Likewise.
7061         * doc/posix-functions/ctime.texi: Likewise.
7062         * doc/posix-functions/daylight.texi: Likewise.
7063         * doc/posix-functions/fgetpos.texi: Likewise.
7064         * doc/posix-functions/fopen.texi: Likewise.
7065         * doc/posix-functions/freopen.texi: Likewise.
7066         * doc/posix-functions/fseeko.texi: Likewise.
7067         * doc/posix-functions/fsetpos.texi: Likewise.
7068         * doc/posix-functions/fstatat.texi: Likewise.
7069         * doc/posix-functions/fstatvfs.texi: Likewise.
7070         * doc/posix-functions/ftello.texi: Likewise.
7071         * doc/posix-functions/ftruncate.texi: Likewise.
7072         * doc/posix-functions/getrlimit.texi: Likewise.
7073         * doc/posix-functions/lio_listio.texi: Likewise.
7074         * doc/posix-functions/localtime.texi: Likewise.
7075         * doc/posix-functions/lseek.texi: Likewise.
7076         * doc/posix-functions/mkstemp.texi: Likewise.
7077         * doc/posix-functions/mktime.texi: Likewise.
7078         * doc/posix-functions/open.texi: Likewise.
7079         * doc/posix-functions/openat.texi: Likewise.
7080         * doc/posix-functions/opendir.texi: Likewise.
7081         * doc/posix-functions/pread.texi: Likewise.
7082         * doc/posix-functions/pwrite.texi: Likewise.
7083         * doc/posix-functions/readdir.texi: Likewise.
7084         * doc/posix-functions/readdir_r.texi: Likewise.
7085         * doc/posix-functions/scandir.texi: Likewise.
7086         * doc/posix-functions/seekdir.texi: Likewise.
7087         * doc/posix-functions/setrlimit.texi: Likewise.
7088         * doc/posix-functions/statvfs.texi: Likewise.
7089         * doc/posix-functions/strftime.texi: Likewise.
7090         * doc/posix-functions/telldir.texi: Likewise.
7091         * doc/posix-functions/timezone.texi: Likewise.
7092         * doc/posix-functions/tmpfile.texi: Likewise.
7093         * doc/posix-functions/truncate.texi: Likewise.
7094         * doc/posix-functions/tzname.texi: Likewise.
7095         * doc/posix-functions/wcsftime.texi: Likewise.
7096         * doc/windows-sockets.texi: Likewise.
7098 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
7100         getrandom-tests: do not assume GRND_RANDOM yields short read
7101         * tests/test-getrandom.c (main): Omit assertion that
7102         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
7103         when b’s size is 100000.  This assertion fails with Linux kernel
7104         5.6.13, as that kernel ignores the GRND_RANDOM flag.
7105         The separate blocking pool is going away in the Linux kernel, and
7106         they’ve added a flag GRND_INSECURE instead; see:
7107         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
7108         The assertion was iffy anyway; what’s to prevent a kernel from
7109         lazily filling a large buffer with random bytes?
7111         read-file-test: pacify --enable-gcc-warnings
7112         * tests/test-read-file.c (test_read_file): Now static.
7114         tempname: merge from glibc and coreutils
7115         Also, merge in Gnulib’s more-recent methods of making it easier
7116         to share between Gnulib and glibc, and fix a few randomness
7117         glitches.
7118         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
7119         (__set_errno): Remove; libc-config.h does that for us.
7120         Do not include <sys/time.h>.
7121         (__secure_getenv) [_LIBC]: New macro.
7122         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
7123         (RANDOM_BITS): Rewrite.
7124         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
7125         (random_value): New typedef.
7126         (try_file, try_dir, try_nocreate): Move up.
7127         (gen_tempname_len, try_tempname_len): New functions.
7128         (gen_tempname_len): Use a constant array rather than a switch.
7129         (try_tempname_len): Don’t assume string length fits in int.
7130         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
7131         has enough entropy (it’s a bit short).
7132         (__gen_tempname): Rewrite in terms of gen_tempname_len.
7133         (__try_tempname): Rewrite in terms of try_tempname_len.
7134         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
7135         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
7136         Add getentropy, libc-config.
7138 2020-05-31  Bruno Haible  <bruno@clisp.org>
7140         getrandom, getentropy: Mention the crypto/gc-random module.
7141         Suggested by Simon Josefsson in
7142         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
7143         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
7144         crypto/gc-random module.
7145         * doc/glibc-functions/getentropy.texi: Likewise.
7147 2020-05-31  Bruno Haible  <bruno@clisp.org>
7149         getentropy: Enhance tests.
7150         * tests/test-getentropy.c (main): Add one more test.
7151         * tests/test-unistd-c++.cc: Check the signature of getentropy.
7153 2020-05-31  Bruno Haible  <bruno@clisp.org>
7155         getentropy: Work around a macOS and Solaris problem.
7156         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
7157         'getentropy' module.
7158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7159         UNISTD_H_HAVE_SYS_RANDOM_H.
7160         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
7161         UNISTD_H_HAVE_SYS_RANDOM_H.
7162         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
7163         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
7164         problem. List more platforms.
7166 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
7168         fnmatch: merge from glibc
7169         Also, merge in Gnulib’s more-recent methods of making it easier
7170         to share between Gnulib and glibc.
7171         * lib/fnmatch.c: Reorder includes to match glibc better.
7172         Include libc-config.h instead of config.h.
7173         Include alloca.h only if _LIBC || HAVE_ALLOCA.
7174         Do not include "../locale/elem-hash.h" if _LIBC.
7175         Define macros for btowc, etc. if _LIBC.  All uses simplified.
7176         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
7177         Include intprops.h, since glibc has it now.
7178         (SIZE_MAX): Remove; use (size_t) -1 instead.
7179         Omit the "Comment out all this code" ifdef, since Gnulib
7180         has never really needed it.
7181         (STREQ): Remove; no longer used.
7182         (__libc_use_alloca, alloca, alloca_account): Define as
7183         needed if !_LIBC.
7184         (ISWCTYPE): Remove; all uses replaced by iswctype.
7185         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
7186         (internal_function): Remove.  All uses removed.
7187         (STRUCT): New macro.
7188         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
7189         (WMEMCMP): New macro.
7190         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
7191         and <locale/weightwc.h>.
7192         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
7193         __builtin_expect.  Check for integer overflow more
7194         systematically.  Account for alloca storage better when
7195         recursive.  Use strnlen instead of strlen for efficiency.
7196         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
7197         (struct STRUCT): New type.
7198         (FCT, EXT): New ENDS and ALLOCA_USED args.
7199         All callers changed.
7200         (FCT): Prefer __glibc_unlikely to __builtin_expect.
7201         Simplify by assuming WIDE_CHAR_SUPPORT.
7202         Copy _LIBC code from glibc without worrying Gnulib compatibility.
7203         Cast cold to UCHAR to avoid signedness warning.
7204         (END): Check for invalid pattern.
7205         (EXT): Improve alloca/malloc checking (taken from glibc),
7206         and improve it some more by using intprops.h and checking
7207         for integer overflow and using bool for booleans.
7208         * lib/libc-config.h (compat_symbol): New macro.
7209         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
7210         acceptable to non-GCC when a trailing semicolon is added.
7211         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
7212         libc-config, strnlen.  Remove alloca.
7214 2020-05-31  Bruno Haible  <bruno@clisp.org>
7216         getrandom: Doc and test tweaks.
7217         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
7218         it sets errno when failing.
7219         * tests/test-getrandom.c (main): Disable the high-quality check on those
7220         platforms on which it fails.
7221         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
7222         Cygwin to the list of platforms that don't have the function. Add a note
7223         about the quality of the result.
7224         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
7225         declaration; this is fixed by module 'getrandom'.
7227 2020-05-31  Bruno Haible  <bruno@clisp.org>
7229         getrandom: Add support for native Windows.
7230         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
7231         <wincrypt.h>.
7232         (CRYPT_VERIFY_CONTEXT): New macro.
7233         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
7234         'A'.
7235         (GetProcAddress): New macro.
7236         (BCryptGenRandomFuncType): New type.
7237         (BCryptGenRandomFunc, initialized): New variables.
7238         (initialize): New function.
7239         (getrandom): On native Windows, use <bcrypt.h> API when available, and
7240         <wincrypt.h> API as fallback.
7241         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
7242         * modules/getrandom (Link): New section.
7243         * modules/getentropy (Link): Likewise.
7244         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
7245         $(LIB_GETRANDOM).
7246         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
7247         $(LIB_GETRANDOM).
7248         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
7249         against $(LIB_GETRANDOM).
7250         * doc/glibc-functions/getrandom.texi: Mention the native Windows
7251         support.
7253 2020-05-31  Bruno Haible  <bruno@clisp.org>
7255         getrandom: Simplify the determination of the random number devices.
7256         Suggested by Paul Eggert in
7257         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
7258         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
7259         macros.
7260         * modules/getrandom (Depends-on): Remove crypto/gc-random.
7262 2020-05-31  Bruno Haible  <bruno@clisp.org>
7264         crypto/gc-random: Fix list of crypto devices for Solaris.
7265         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
7267 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
7269         list: fix GCC warnings
7270         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
7271         (gl_tree_next_node, gl_tree_node_nx_set_value)
7272         (gl_tree_previous_node, gl_tree_next_node):
7273         Mark unused arguments.
7274         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
7275         * lib/gl_anylinked_list2.h (gl_linked_node_value)
7276         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
7278         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
7279         the same variable name in nested scopes.
7281 2020-05-31  Bruno Haible  <bruno@clisp.org>
7283         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
7284         Reported by Akim Demaille in
7285         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
7286         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
7287         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
7288         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
7289         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
7290         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
7292 2020-05-30  Bruno Haible  <bruno@clisp.org>
7294         wmemchr: Relicense under LGPLv2+.
7295         * modules/wmemchr (License): Set to LGPLv2+.
7297 2020-05-30  Bruno Haible  <bruno@clisp.org>
7299         wmempcpy: New module.
7300         Reported by Paul Eggert in
7301         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
7302         * lib/wchar.in.h (wmempcpy): New declaration.
7303         * lib/wmempcpy.c: New file.
7304         * m4/wmempcpy.m4: New file.
7305         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
7306         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
7307         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
7308         HAVE_WMEMPCPY.
7309         * modules/wmempcpy: New file.
7310         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
7311         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
7312         * modules/mempcpy (Description): Fix typo.
7314 2020-05-30  Bruno Haible  <bruno@clisp.org>
7316         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
7317         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
7319 2020-05-30  Bruno Haible  <bruno@clisp.org>
7321         sys_random: Work around macOS bug.
7322         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
7323         <stdlib.h> before <sys/random.h>.
7324         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
7325         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
7326         first.
7327         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
7329 2020-05-30  Bruno Haible  <bruno@clisp.org>
7331         getrandom: Override incompatible system function on Solaris 11.
7332         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
7333         * lib/getrandom.c (getrandom): When the system has getrandom, just
7334         invoke it.
7335         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
7336         system's getrandom function's prototype is not the expected one.
7337         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
7338         REPLACE_GETRANDOM.
7339         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
7340         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
7341         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
7342         EAGAIN.
7343         * doc/glibc-functions/getrandom.texi: Mention the new module and the
7344         Solaris problem.
7346 2020-05-30  Bruno Haible  <bruno@clisp.org>
7348         sys_random: Add C++ tests.
7349         * tests/test-sys_random-c++.cc: New file.
7350         * modules/sys_random-c++-tests: New file.
7351         * modules/sys_random-tests (Depends-on): Depend on it.
7353         sys_random: Add tests.
7354         * tests/test-sys_random.c: New file.
7355         * modules/sys_random-tests: New file.
7357         sys_random: New module.
7358         * lib/sys_random.in.h: Use the common idioms for overridable header
7359         files.
7360         * m4/sys_random_h.m4: New file.
7361         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
7362         * modules/sys_random: New file.
7363         * modules/getrandom (Files): Remove lib/sys_random.in.h.
7364         (Depends-on): Add sys_random.
7365         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
7366         gl_UNISTD_MODULE_INDICATOR.
7367         (Makefile.am): Don't generate sys/random.h here.
7368         * doc/glibc-headers/sys_random.texi: New file.
7369         * doc/gnulib.texi: Include it.
7371 2020-05-30  Bruno Haible  <bruno@clisp.org>
7373         unistd: Remove conflicting declaration of getrandom().
7374         * lib/unistd.in.h (getrandom): Remove declaration.
7375         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
7376         declared.
7377         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
7378         HAVE_GETRANDOM.
7379         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
7380         HAVE_GETRANDOM.
7382 2020-05-30  Bruno Haible  <bruno@clisp.org>
7384         getrandom: Add tests.
7385         * tests/test-getrandom.c: New file.
7386         * modules/getrandom-tests: New file.
7388 2020-05-30  Bruno Haible  <bruno@clisp.org>
7390         crypto/gc-random: Fix link error on MSVC.
7391         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
7392         * modules/crypto/gc-random (Link): New section.
7393         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
7394         $(LIB_GC_RANDOM).
7396 2020-05-30  Bruno Haible  <bruno@clisp.org>
7398         Don't assume that UNICODE is not defined.
7399         Many Windows API functions are defined differently (redirecting to a
7400         function with suffix 'W') if the application defines the macro UNICODE
7401         than by default (redirecting to a function with suffix 'A').
7402         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
7403         variant with suffix 'A'.
7404         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
7405         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
7406         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
7407         * lib/getlogin.c (GetUserName): Likewise.
7408         * lib/getlogin_r.c (GetUserName): Likewise.
7409         * lib/gettimeofday.c (LoadLibrary): Likewise.
7410         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
7411         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
7412         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
7413         * lib/mountlist.c (GetDriveType): Likewise.
7414         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
7415         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
7416         Likewise.
7417         * lib/physmem.c (GetModuleHandle): Likewise.
7418         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
7419         PeekMessage, DispatchMessage): Likewise.
7420         * lib/progreloc.c (GetModuleFileName): Likewise.
7421         * lib/putenv.c (SetEnvironmentVariable): Likewise.
7422         * lib/read.c (GetNamedPipeHandleState): Likewise.
7423         * lib/readdir.c (FindNextFile): Likewise.
7424         * lib/relocatable.c (GetModuleFileName): Likewise.
7425         * lib/rename.c (MoveFileEx): Likewise.
7426         * lib/rewinddir.c (FindFirstFile): Likewise.
7427         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
7428         PeekMessage, DispatchMessage): Likewise.
7429         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
7430         * lib/socket.c (WSASocket): Likewise.
7431         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
7432         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
7433         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
7434         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
7435         * lib/tmpdir.c (GetTempPath): Likewise.
7436         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
7437         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
7438         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
7439         * lib/windows-cond.c (CreateEvent): Likewise.
7440         * lib/windows-rwlock.c (CreateEvent): Likewise.
7441         * lib/windows-timedmutex.c (CreateEvent): Likewise.
7442         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
7443         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
7444         * lib/write.c (GetNamedPipeHandleState): Likewise.
7446 2020-05-30  Bruno Haible  <bruno@clisp.org>
7448         physmem: Fix compilation errors on MSVC.
7449         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
7450         * modules/physmem (Depends-on): Add unistd.
7452 2020-05-29  Bruno Haible  <bruno@clisp.org>
7454         gnulib-tool: Fix link errors with a particular set of modules on mingw.
7455         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
7456         LDADD a second time, after the second occurrence of libtests.a.
7457         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
7459 2020-05-29  Bruno Haible  <bruno@clisp.org>
7461         fnmatch: Rely on more gnulib modules.
7462         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
7463         wmempcpy, mempcpy.
7464         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
7465         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
7466         HAVE_MEMPCPY are all 1.
7467         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
7468         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
7470 2020-05-29  Bruno Haible  <bruno@clisp.org>
7472         Avoid dynamic lookup of Windows API functions when possible.
7473         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
7474         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
7475         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
7476         (use_win32_p): Define differently.
7477         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
7478         CreateHardLinkFunc, initialized, initialize): Don't define in a build
7479         for Windows XP or higher.
7481 2020-05-29  Daiki Ueno  <ueno@gnu.org>
7483         read-file: disable buffering if RF_SENSITIVE is set
7484         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
7485         Suggested by Glenn Strauss.
7486         (fread_file): Suggest calling setvbuf before calling this
7487         function.  Suggested by Bruno Haible.
7489 2020-05-29  Bruno Haible  <bruno@clisp.org>
7491         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
7492         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
7493         program.
7494         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
7495         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
7496         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
7497         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
7499 2020-05-29  Bruno Haible  <bruno@clisp.org>
7501         Fix compilation error on native Windows (regression from 2020-05-28).
7502         Reported by Daiki Ueno.
7503         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
7504         macro when not using dynamic loading.
7505         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
7506         QueryFullProcessImageNameFunc): Likewise.
7507         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
7508         GetFinalPathNameByHandleFunc): Likewise.
7510 2020-05-29  Daiki Ueno  <ueno@gnu.org>
7512         fopen-gnu-tests: fix "\x" escape usage
7513         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
7515 2020-05-28  Bruno Haible  <bruno@clisp.org>
7517         Avoid dynamic loading of Windows API functions when possible.
7518         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
7519         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
7520         * lib/gettimeofday.c (GetProcAddress,
7521         GetSystemTimePreciseAsFileTimeFuncType,
7522         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
7523         define in a build for Windows 8 or higher.
7524         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
7525         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
7526         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
7527         in a build for Windows Vista or higher.
7528         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
7529         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
7530         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
7532 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
7534         explicit_bzero-tests: improve -Wmissing-declarations pacification
7535         * tests/test-explicit_bzero.c: Now noinline.
7536         Suggested by Bruno Haible in:
7537         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
7539 2020-05-28  Bruno Haible  <bruno@clisp.org>
7541         Fix build errors due to read-file changes (regression from 2020-05-27).
7542         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
7543         invocation.
7544         * tests/test-sameacls.c (main): Likewise.
7545         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
7546         read_binary_file.
7547         * tests/test-pipe-filter-ii1.c (main): Likewise.
7549 2020-05-28  Bruno Haible  <bruno@clisp.org>
7551         fts: Make more robust in multithreaded applications.
7552         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
7553         * modules/fts (Depends-on): Add 'open'.
7555 2020-05-28  Bruno Haible  <bruno@clisp.org>
7557         relocatable-prog: Make more robust in multithreaded applications.
7558         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
7559         relocatable-prog-wrapper.
7560         (find_executable): Pass an O_CLOEXEC flag to open().
7561         * modules/relocatable-prog (Depends-on): Add 'open'.
7563 2020-05-28  Bruno Haible  <bruno@clisp.org>
7565         getloadavg: Make more robust in multithreaded applications.
7566         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
7567         Simplify use of O_CLOEXEC.
7568         * modules/getloadavg (Depends-on): Add 'open'.
7570 2020-05-28  Bruno Haible  <bruno@clisp.org>
7572         vma-iter: Make more robust in multithreaded applications.
7573         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
7574         open().
7575         * modules/vma-iter (Depends-on): Add 'open'.
7577 2020-05-28  Bruno Haible  <bruno@clisp.org>
7579         truncate: Make more robust in multithreaded applications.
7580         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
7582 2020-05-28  Bruno Haible  <bruno@clisp.org>
7584         pagealign_alloc: Make more robust in multithreaded applications.
7585         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
7586         open().
7587         * modules/pagealign_alloc (Depends-on): Add 'open'.
7589 2020-05-28  Bruno Haible  <bruno@clisp.org>
7591         openat: Make more robust in multithreaded applications.
7592         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
7594 2020-05-28  Bruno Haible  <bruno@clisp.org>
7596         at-internal: Make more robust in multithreaded applications.
7597         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
7598         open().
7600 2020-05-28  Bruno Haible  <bruno@clisp.org>
7602         mountlist: Make more robust in multithreaded applications.
7603         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
7604         open().
7605         * modules/mountlist (Depends-on): Add 'open'.
7607 2020-05-28  Bruno Haible  <bruno@clisp.org>
7609         login_tty: Make more robust in multithreaded applications.
7610         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
7611         * modules/login_tty (Depends-on): Add 'open'.
7613 2020-05-28  Bruno Haible  <bruno@clisp.org>
7615         javacomp: Make more robust in multithreaded applications.
7616         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
7617         open().
7618         * modules/javacomp (Depends-on): Add 'open'.
7620 2020-05-28  Bruno Haible  <bruno@clisp.org>
7622         getprogname: Make more robust in multithreaded applications.
7623         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
7624         * modules/getprogname (Depends-on): Add 'open'.
7626 2020-05-28  Bruno Haible  <bruno@clisp.org>
7628         get_progname_of: Make more robust in multithreaded applications.
7629         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
7630         open().
7631         * modules/get_progname_of (Depends-on): Add 'open'.
7633 2020-05-28  Bruno Haible  <bruno@clisp.org>
7635         get_ppid_of: Make more robust in multithreaded applications.
7636         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
7637         * modules/get_ppid_of (Depends-on): Add 'open'.
7639 2020-05-28  Bruno Haible  <bruno@clisp.org>
7641         get-rusage-as: Make more robust in multithreaded applications.
7642         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
7643         flag to open().
7644         * modules/get-rusage-as (Depends-on): Add 'open'.
7646 2020-05-28  Bruno Haible  <bruno@clisp.org>
7648         crypto/gc: Make more robust in multithreaded applications.
7649         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
7650         * modules/crypto/gc (Depends-on): Add 'open'.
7652 2020-05-28  Bruno Haible  <bruno@clisp.org>
7654         copy-file: Make more robust in multithreaded applications.
7655         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
7656         open().
7658 2020-05-28  Bruno Haible  <bruno@clisp.org>
7660         chown: Make more robust in multithreaded applications.
7661         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
7663 2020-05-28  Bruno Haible  <bruno@clisp.org>
7665         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
7666         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
7668 2020-05-28  Daiki Ueno  <ueno@gnu.org>
7670         fopen-gnu: make 'b' flag can be used with 'e' on Windows
7671         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
7672         specified on Windows.
7673         * tests/test-fopen-gnu.c (DATA): New define.
7674         (main): Add test for reading binary files with an 'e' flag.
7676 2020-05-27  Bruno Haible  <bruno@clisp.org>
7678         Don't assume that UNICODE is not defined.
7679         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
7680         differently if the application defines the macro UNICODE.
7681         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
7682         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
7683         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
7684         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
7685         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
7687 2020-05-27  Bruno Haible  <bruno@clisp.org>
7689         Improve pattern for defining _WIN32_WINNT.
7690         Newer versions of the Windows API may not only add, but also remove API
7691         functions. Therefore, when the user is e.g. building for Windows 10, we
7692         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
7693         use of APIs that were present in Windows 8 but removed in Windows 10.
7694         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
7695         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
7696         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
7697         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7698         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
7700 2020-05-27  Bruno Haible  <bruno@clisp.org>
7702         javacomp: Make more robust in multithreaded applications.
7703         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
7704         * modules/javacomp (Depends-on): Add fopen-gnu.
7706 2020-05-27  Bruno Haible  <bruno@clisp.org>
7708         mountlist: Make more robust in multithreaded applications.
7709         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
7710         to fopen.
7711         * modules/mountlist (Depends-on): Add fopen-gnu.
7713 2020-05-27  Bruno Haible  <bruno@clisp.org>
7715         sethostname: Make more robust in multithreaded applications.
7716         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
7717         * modules/sethostname (Depends-on): Add fopen-gnu.
7719 2020-05-27  Bruno Haible  <bruno@clisp.org>
7721         readutmp: Make more robust in multithreaded applications.
7722         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
7723         * modules/readutmp (Depends-on): Add fopen-gnu.
7725 2020-05-27  Bruno Haible  <bruno@clisp.org>
7727         getpass: Make more robust in multithreaded applications.
7728         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
7729         * modules/getpass (Depends-on): Add fopen-gnu.
7731 2020-05-27  Bruno Haible  <bruno@clisp.org>
7733         getloadavg: Make more robust in multithreaded applications.
7734         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
7735         * modules/getloadavg (Depends-on): Add fopen-gnu.
7737 2020-05-27  Bruno Haible  <bruno@clisp.org>
7739         exclude: Make more robust in multithreaded applications.
7740         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
7741         * modules/exclude (Depends-on): Add fopen-gnu.
7743 2020-05-27  Bruno Haible  <bruno@clisp.org>
7745         bitset: Make more robust in multithreaded applications.
7746         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
7747         'e' flag to fopen.
7748         * modules/bitset (Depends-on): Add fopen-gnu.
7750 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7752         read-file: add RF_SENSITIVE flag
7753         * lib/read-file.h (RF_SENSITIVE): New define.
7754         * lib/read-file.c (fread_file, read_file): Take into account of
7755         RF_SENSITIVE flag.
7756         * modules/read-file (Depends-on): Add explicit_bzero.
7757         This adds an alternative behavior of those functions to explicitly
7758         clear the internal memory block when it becomes unused.  This is
7759         useful for reading sensitive information from a file.
7761 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7763         read-file: add flags to modify reading behavior
7764         * lib/read-file.h (RF_BINARY): New define.
7765         (fread_file, read_file): Take FLAGS argument.
7766         (read_binary_file): Remove.
7767         * lib/read-file.c (internal_read_file): Merge into ...
7768         (read_file): ... here.
7769         * modules/read-file-tests (Files): Add "tests/macros.h".
7770         * tests/test-read-file.c (main): Refactor using ASSERT macro.
7771         * NEWS: Mention this change.
7773 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
7775         doc/gnulib-intro.texi: add missing "to" in sentence
7776         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
7777         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
7778         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
7780 2020-05-26  Bruno Haible  <bruno@clisp.org>
7782         count-one-bits: Fix MSVC specific code.
7783         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7784         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
7785         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
7786         using GCC.
7787         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
7788         (__popcnt64): In 32-bit mode, define as an inline function.
7789         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
7791 2020-05-26  Bruno Haible  <bruno@clisp.org>
7793         argz: Avoid name clashes through argz.h.
7794         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7795         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
7796         * lib/argz.h: Don't use __ prefixed identifiers.
7797         (const): Remove definition.
7798         (argz_next): Remove inline definitions.
7800 2020-05-26  Daiki Ueno  <ueno@gnu.org>
7802         read-file: make use of fopen-gnu
7803         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
7804         (read_binary_file): Likewise.
7805         * modules/read-file (Depends-on): Add fopen-gnu.
7807 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7809         getentropy, getrandom: new modules
7810         * MODULES.html.sh (func_all_modules):
7811         * lib/unistd.in.h (getentropy, getrandom):
7812         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
7813         * modules/unistd (unistd.h):
7814         Add support for getentropy, getrandom.
7815         * doc/glibc-functions/getentropy.texi (getentropy):
7816         * doc/glibc-functions/getrandom.texi (getrandom):
7817         These are now fixed on some platforms.
7818         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
7819         * m4/getentropy.m4, m4/getrandom.m4:
7820         * modules/getentropy, modules/getentropy-tests:
7821         * modules/getrandom, modules/getrandom-tests:
7822         * tests/test-getentropy.c, tests/test-getrandom.c:
7823         New files.
7825 2020-05-25  Bruno Haible  <bruno@clisp.org>
7827         Add missing C99 dependencies.
7828         Reported by Paul Smith <psmith@gnu.org> in
7829         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
7830         * modules/assert (Depends-on): Add c99.
7831         * modules/filenamecat-lgpl (Depends-on): Likewise.
7832         * modules/libc-config (Depends-on): Likewise.
7833         * modules/mktime (Depends-on): Likewise.
7834         * modules/random_r (Depends-on): Likewise.
7835         * modules/regex (Depends-on): Likewise.
7836         * modules/scratch_buffer (Depends-on): Likewise.
7837         * modules/timespec-add (Depends-on): Likewise.
7838         * modules/timespec-sub (Depends-on): Likewise.
7839         * modules/verify (Depends-on): Likewise.
7841 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7843         explicit_bzero-tests: pacify -Wmissing-declarations
7844         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
7845         Now static.
7847 2020-05-24  Bruno Haible  <bruno@clisp.org>
7849         fopen-gnu: Add tests.
7850         * tests/test-fopen-gnu.c: New file.
7851         * modules/fopen-gnu-tests: New file.
7853         fopen-gnu: New module.
7854         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
7855         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
7856         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
7857         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
7858         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
7859         * modules/fopen-gnu: New file.
7860         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
7862 2020-05-24  Bruno Haible  <bruno@clisp.org>
7864         open, openat: Really support O_CLOEXEC.
7865         * lib/open.c (open): When have_cloexec is still undecided, do pass a
7866         O_CLOEXEC flag to orig_open.
7867         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
7868         pass a O_CLOEXEC flag to orig_openat.
7869         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
7870         * modules/open-tests (Depends-on): Add fcntl.
7871         * modules/openat-tests (Depends-on): Likewise.
7872         * modules/fcntl-safer-tests (Depends-on): Likewise.
7874 2020-05-24  Bruno Haible  <bruno@clisp.org>
7876         fopen: Fix the trailing slash workaround.
7877         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
7878         write access. Pass the right flags to open().
7879         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
7881 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7883         assure: new macro ‘affirm’
7884         * lib/assure.h: Include verify.h.
7885         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
7886         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
7887         and commentary by Bruno Haible in:
7888         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
7889         * modules/assure (Depends-on:): Add verify.
7891 2020-05-23  Bruno Haible  <bruno@clisp.org>
7893         calloc-gnu: Make test work in non-flat address spaces.
7894         Uses code by Paul Eggert.
7895         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
7896         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
7898 2020-05-23  Bruno Haible  <bruno@clisp.org>
7900         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
7901         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
7902         AC_RUN_IFELSE invocations.
7904 2020-05-23  Bruno Haible  <bruno@clisp.org>
7906         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
7907         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
7908         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
7909         don't have it.
7910         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7911         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
7912         don't have it.
7913         * lib/isnanf-nolibm.h (__has_builtin): New macro.
7914         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7915         it.
7916         * lib/isnanl-nolibm.h (__has_builtin): New macro.
7917         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7918         it.
7919         * lib/math.in.h (__has_builtin): New macro.
7920         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7921         it.
7922         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7923         it.
7924         (isnan): Don't use the builtins on clang versions that don't have
7925         __builtin_isnanf and __builtin_isnanl.
7927 2020-05-23  Bruno Haible  <bruno@clisp.org>
7929         calloc-gnu: Avoid wrong configure results with clang.
7930         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
7931         'volatile', to defeat compiler optimizations.
7933 2020-05-23  Bruno Haible  <bruno@clisp.org>
7935         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
7936         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
7937         'long double' values by reference, with values taken from a statically
7938         allocated array.
7940 2020-05-23  Bruno Haible  <bruno@clisp.org>
7942         findprog-in: Ignore directories.
7943         Reported by Frederick Eaton via Dmitry Goncharov in
7944         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7945         * lib/findprog-in.c (find_in_given_path): When the file found is a
7946         directory, set errno to EACCES and, during a PATH search, continue
7947         searching.
7948         * modules/findprog-in (Depends-on): Add sys_stat, stat.
7950 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7952         verify: document ‘assume’ better
7953         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
7955 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
7957         gendocs: Clarify licenses for templates.
7958         * doc/gendocs_template: Add a GNU All-Permissive license notice
7959         and bump Parent-Version.
7960         * doc/gendocs_template_min: Add a GNU All-Permissive license
7961         notice and copy the explanatory comment about the license notice
7962         at the bottom from gendocs_template.
7964 2020-05-21  Bruno Haible  <bruno@clisp.org>
7966         group-member: Relicense under LGPLv2+.
7967         Jim Meyering's approval is in
7968         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
7969         Paul Eggert's approval is in
7970         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
7971         Eric Blake's approval is in
7972         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
7973         * modules/group-member (License): Change to LGPLv2+.
7975 2020-05-21  Bruno Haible  <bruno@clisp.org>
7977         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
7978         Reported by Tim Rühsen in
7979         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7980         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
7982 2020-05-21  Bruno Haible  <bruno@clisp.org>
7984         regex: Avoid wrong configure results with "clang -fsanitize=leak".
7985         Reported by Tim Rühsen in
7986         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7987         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
7988         before returning with status 0.
7990 2020-05-21  Bruno Haible  <bruno@clisp.org>
7992         glob: Avoid wrong configure results with "clang -fsanitize=leak".
7993         Reported by Tim Rühsen in
7994         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7995         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
7997 2020-05-21  Bruno Haible  <bruno@clisp.org>
7999         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
8000         Reported by Tim Rühsen in
8001         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
8002         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
8003         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
8004         respectively.
8006 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
8008         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
8009         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
8011 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8013         ftoastr: fix ifndef typo
8014         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
8016 2020-05-19  Bruno Haible  <bruno@clisp.org>
8018         havelib: Tweak documentation.
8019         * doc/havelib.texi (Searching for Libraries): Fix typo.
8021 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8023         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
8024         This was needed earlier because modules had to import the main script,
8025         but that is no longer true.  Rename the script so that it is
8026         consistent with all other scripts in gnulib and uses hyphens.
8027         * build-aux/vcs_to_changelog.py: Rename to...
8028         * build-aux/vcs-to-changelog.py: ... this.
8029         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
8030         * modules/vcs-to-changelog: Likewise.
8032 2020-05-17  Bruno Haible  <bruno@clisp.org>
8034         Clarify intended usage of the license file modules.
8035         Reported by Asher Gordon <AsDaGo@posteo.net> in
8036         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
8037         * doc/licenses-texi.texi (License Texinfo sources): Mention the
8038         GNU AGPL. Explain the intended usage of the modules.
8039         * modules/fdl (Notice): Discourage use as a module.
8040         * modules/fdl-1.3 (Notice): Likewise.
8042 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
8044         hash: add hash_xinsert
8045         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
8047 2020-05-16  Bruno Haible  <bruno@clisp.org>
8049         findprog-lgpl: Fix link error (existing since 2008-09-02).
8050         * modules/findprog-lgpl (Makefile.am): Arrange to compile
8051         findprog-lgpl.c, not findprog.c.
8052         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
8053         XNMALLOC.
8055 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
8057         c-stack: pacify -Wunused-result when DEBUG
8058         Problem reported by Marc Nieper-Wißkirchen in:
8059         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
8060         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
8061         Explicitly ignore write failures.
8063 2020-05-13  Jim Meyering  <meyering@fb.com>
8065         announce-gen: improve a comment
8066         * build-aux/announce-gen: Improve comment.
8068 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
8070         xalloc: pacify -Wanalyzer-possible-null-argument
8071         Problem reported for GCC 10.1.0 by Bruno Haible in:
8072         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
8073         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
8074         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
8075         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
8077 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
8079         careadlinkat: fix GCC 10 workaround
8080         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
8081         Massage the code so that it’s closer to what it was before
8082         the GCC 10.1.0 workaround was introduced.  This fixes
8083         a loop when !buffer and the bug workaround is in effect.
8084         Remove unnecessary casts.  Defend in a different way
8085         against (buffer && !buffer_size), by adding at least 1
8086         to buf_size each time through the loop.
8088 2020-05-10  Bruno Haible  <bruno@clisp.org>
8090         doc: Mark HP-UX as unsupported.
8091         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
8093 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8095         careadlinkat: limit GCC workaround
8096         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
8097         10.1.0 and later, since the workaround is pretty bad and the GCC
8098         bug should get fixed.
8100 2020-05-10  Bruno Haible  <bruno@clisp.org>
8102         havelib: Enhance documentation.
8103         * doc/havelib.texi (Searching for Libraries): Mention the bad
8104         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
8106 2020-05-10  Bruno Haible  <bruno@clisp.org>
8108         attribute: Clarify list of attributes.
8109         * lib/attribute.h: Reorder the list of attributes, and group them by
8110         purpose.
8112 2020-05-10  Bruno Haible  <bruno@clisp.org>
8114         string: Fix compilation error in C++ mode.
8115         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
8116         _GL_WARN_ON_USE.
8117         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
8118         instead of _GL_WARN_ON_USE.
8120 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
8122         announce-gen: add support for dist-lzip
8123         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
8125 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
8127         manywarnings: port to GCC 10.1
8128         * build-aux/gcc-warning.spec:
8129         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
8130         Add GCC 10.1.0 warnings.
8132         careadlinkat: pacify -Wreturn-local-addr
8133         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
8134         Pacify gcc 10’s -Wreturn-local-addr option.
8135         Simplify some of the later code.
8137 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
8139         attribute: remove ATTRIBUTE_DEPRECATED
8140         * lib/attribute.h: Improve recently-added comments, mostly
8141         by shortening them (use active voice, etc.).
8142         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
8143         Problem reported by Bruno Haible in:
8144         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
8146 2020-05-09  Bruno Haible  <bruno@clisp.org>
8148         attribute: Add comments.
8149         * lib/attribute.h: Document each macro.
8151 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
8153         bitset: use the attribute module
8154         * modules/bitset: Depend on 'attribute'.
8155         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
8156         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
8157         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
8158         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
8160 2020-05-09  Bruno Haible  <bruno@clisp.org>
8162         c-stack: Fix warning when DEBUG is enabled.
8163         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
8164         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
8165         * lib/c-stack.c: Include <stdio.h>.
8167 2020-05-09  Bruno Haible  <bruno@clisp.org>
8169         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
8170         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
8171         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8172         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8173         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8174         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8175         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8176         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8177         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8178         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
8179         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8180         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8181         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8183 2020-05-09  Bruno Haible  <bruno@clisp.org>
8185         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
8186         Reported by Akim Demaille in
8187         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
8188         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
8189         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
8190         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
8192 2020-05-09  Bruno Haible  <bruno@clisp.org>
8194         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
8195         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
8196         that usually comes from m4/gnulib-common.m4.
8197         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
8199 2020-05-09  Bruno Haible  <bruno@clisp.org>
8201         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
8202         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
8203         that usually comes from m4/gnulib-common.m4.
8204         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
8205         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
8206         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
8208 2020-05-09  Bruno Haible  <bruno@clisp.org>
8210         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
8211         * lib/uchar.in.h (char16_t): Define as macro if
8212         GNULIB_OVERRIDES_CHAR16_T.
8213         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
8214         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
8215         (gl_UCHAR_H): Invoke them.
8216         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
8217         GNULIB_OVERRIDES_CHAR32_T.
8218         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
8219         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
8220         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
8221         GNULIB_OVERRIDES_CHAR32_T.
8223 2020-05-09  Bruno Haible  <bruno@clisp.org>
8225         Macro tweaks.
8226         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
8227         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
8229 2020-05-08  Bruno Haible  <bruno@clisp.org>
8231         c32rtomb: Avoid compilation failure on Haiku.
8232         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
8233         inline definitions.
8234         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
8236 2020-05-08  Bruno Haible  <bruno@clisp.org>
8238         mbrtoc32: Avoid compilation failure on Haiku.
8239         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
8240         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
8241         AC_CHECK_FUNCS_ONCE.
8242         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
8244 2020-05-08  Bruno Haible  <bruno@clisp.org>
8246         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
8247         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
8249 2020-05-08  Bruno Haible  <bruno@clisp.org>
8251         list: Update documentation.
8252         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
8253         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
8254         * doc/containers.texi (Container data types): Document the new list
8255         operations and their complexity.
8257 2020-05-08  Bruno Haible  <bruno@clisp.org>
8259         ignore-value tests: Use module 'attribute'.
8260         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
8261         * tests/test-ignore-value.c: Include attribute.h.
8262         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
8263         * modules/ignore-value-tests (Depends-on): Add attribute.
8265 2020-05-08  Bruno Haible  <bruno@clisp.org>
8267         uniname/uniname: Use module 'attribute'.
8268         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
8269         * lib/uniname/uninames.h: Regenerated.
8270         * lib/uniname/uniname.c: Include attribute.h.
8271         * modules/uniname/uniname (Depends-on): Add attribute.
8273 2020-05-08  Bruno Haible  <bruno@clisp.org>
8275         c32rtomb: Use module 'attribute'.
8276         * lib/c32rtomb.c: Include attribute.h.
8277         (FALLTHROUGH): Remove macro.
8278         * modules/c32rtomb (Depends-on): Add attribute.
8280 2020-05-08  Bruno Haible  <bruno@clisp.org>
8282         xsize: Use module 'attribute'.
8283         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
8284         * modules/xsize (Depends-on): Add attribute.
8286 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
8288         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
8290         * lib/attribute.h: Minor style fixes.
8292         Fix version-etc glitch on OpenIndiana
8293         Problem reported by Mats Erik Andersson in:
8294         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
8295         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
8296         that now clashes with gnulib-common.h.  All uses changed.
8298 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
8300         attribute: new module
8301         This simplifies use of GCC and C2X attributes like ‘deprecated’.
8302         * MODULES.html.sh: Add attribute.
8303         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
8304         * doc/gnulib.texi (Particular Modules): Add Attributes.
8305         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
8306         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
8307         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
8308         * lib/vasnprintf.c:
8309         Include attribute.h, and let it define FALLTHROUGH.
8310         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
8311         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
8312         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
8313         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
8314         This is a copy since Gawk doesn’t use Gnulib.
8315         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
8316         is incompatible with gl_COMMON_BODY’s.  All uses changed.
8317         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
8318         Keep the existing FALLTHROUGH definition since Glibc might use it,
8319         and it does no harm to Gnulib’s FALLTHROUGH.
8320         * lib/fts_.h, lib/inttostr.h:
8321         (__GNUC_PREREQ): Remove; no longer needed.
8322         (__attribute_warn_unused_result__): Remove.  All uses
8323         replaced by _GL_ATTRIBUTE_NODISCARD.
8324         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
8325         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
8326         __attribute__ ((__warn_unused_result__)), for forward
8327         compatibility to C2X.
8328         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
8329         _GL_ATTRIBUTE_NODISCARD.
8330         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
8331         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
8332         replaced by gl_COMMON_BODY’s implementation, which has a
8333         slightly different signature.
8334         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
8335         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
8336         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
8337         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
8338         No doubt all uses should be replaced, at some point.
8339         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
8340         (_Noreturn): Use it.
8341         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
8342         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
8343         (_GL_ATTRIBUTE_COLD)
8344         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
8345         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
8346         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
8347         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
8348         (_GL_ATTRIBUTE_MAYBE_UNUSED)
8349         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
8350         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
8351         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
8352         (_GL_ATTRIBUTE_RETURNS_NONNULL)
8353         (_GL_ATTRIBUTE_SENTINEL): New macros.
8354         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
8355         * modules/fnmatch, modules/freopen-safer, modules/fts:
8356         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
8357         * modules/quotearg, modules/savewd:
8358         * modules/unistdio/u16-u16-vasnprintf:
8359         * modules/unistdio/u16-vasnprintf:
8360         * modules/unistdio/u32-u32-vasnprintf:
8361         * modules/unistdio/u32-vasnprintf:
8362         * modules/unistdio/u8-u8-vasnprintf:
8363         * modules/unistdio/u8-vasnprintf:
8364         * modules/unistdio/ulc-vasnprintf:
8365         * modules/unistr/u8-uctomb, modules/vasnprintf:
8366         (Depends-on:): Add attribute module.
8368 2020-05-03  Bruno Haible  <bruno@clisp.org>
8370         bison: Fix today's commit.
8371         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
8373 2020-05-03  Bruno Haible  <bruno@clisp.org>
8375         list-c++: Add get_first, get_last, set_first, set_last operations.
8376         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
8377         set_first, set_last.
8378         * lib/gl_list.h: Tweak comments.
8380 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
8382         bison: rely on bison's %require to check a version requirement
8383         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
8384         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
8385         enough of not.
8386         So far it is the only know Yacc tool that supports '%require'.
8387         Other yaccs will actually even choke on seeing the -o option after the
8388         input file name.
8389         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
8391 2020-05-02  Bruno Haible  <bruno@clisp.org>
8393         list: Add get_first, get_last, set_first, set_last operations.
8394         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
8395         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
8396         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
8398 2020-05-02  Bruno Haible  <bruno@clisp.org>
8400         list: Remove redundant code for remove_first and remove_last operations.
8401         * lib/gl_list.h (struct gl_list_implementation): Remove fields
8402         remove_first, remove_last.
8403         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
8404         * lib/gl_array_list.c: Revert last change.
8405         * lib/gl_carray_list.c: Likewise.
8406         * lib/gl_anylinked_list2.h: Likewise.
8407         * lib/gl_linked_list.c: Likewise.
8408         * lib/gl_linkedhash_list.c: Likewise.
8409         * lib/gl_anytree_list2.h: Likewise.
8410         * lib/gl_avltree_list.c: Likewise.
8411         * lib/gl_avltreehash_list.c: Likewise.
8412         * lib/gl_rbtree_list.c: Likewise.
8413         * lib/gl_rbtreehash_list.c: Likewise.
8414         * lib/gl_sublist.c: Likewise.
8416 2020-05-02  Bruno Haible  <bruno@clisp.org>
8418         bison-i18n: Add support for cross-compilation.
8419         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
8420         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
8421         via Akim Demaille <akim@lrde.epita.fr>.
8422         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
8423         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
8424         Don't use bison's --print-localedir option when cross-compiling.
8425         Also, fix an error message and a comment.
8427 2020-05-01  Bruno Haible  <bruno@clisp.org>
8429         list: Add remove_first and remove_last operations.
8430         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
8431         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
8432         * lib/gl_list.h (struct gl_list_implementation): Add fields
8433         remove_first, remove_last.
8434         (gl_list_remove_first, gl_list_remove_last): New functions.
8435         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
8436         functions, based on gl_array_remove_at.
8437         (gl_array_list_implementation): Implement the new operations.
8438         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
8439         New functions, based on gl_carray_remove_at.
8440         (gl_carray_list_implementation): Implement the new operations.
8441         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
8442         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
8443         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
8444         new operations.
8445         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
8446         Likewise.
8447         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
8448         New functions, based on gl_tree_remove_at.
8449         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
8450         new operations.
8451         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
8452         Likewise.
8453         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
8454         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
8455         Likewise.
8456         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
8457         New functions, based on gl_sublist_remove_at.
8458         (gl_sublist_list_implementation): Implement the new operations.
8459         * lib/gl_list.hh (class gl_List): Add methods remove_first,
8460         remove_last.
8461         * tests/test-array_list.c (main): Test also gl_list_remove_first and
8462         gl_list_remove_last.
8463         * tests/test-avltree_list.c (main): Likewise.
8464         * tests/test-avltreehash_list.c (main): Likewise.
8465         * tests/test-carray_list.c (main): Likewise.
8466         * tests/test-linked_list.c (main): Likewise.
8467         * tests/test-linkedhash_list.c (main): Likewise.
8468         * tests/test-rbtree_list.c (main): Likewise.
8469         * tests/test-rbtreehash_list.c (main): Likewise.
8471 2020-05-01  Bruno Haible  <bruno@clisp.org>
8473         parse-datetime: Fix a build failure with an older bison version.
8474         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
8475         parse-datetime.tab.c if a suitable version of bison was not found.
8477 2020-05-01  Bruno Haible  <bruno@clisp.org>
8479         bison: New module.
8480         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
8481         m4/parse-datetime.m4.
8482         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
8483         * modules/bison: New file.
8484         * modules/parse-datetime (Files): Remove m4/bison.m4.
8485         (Depends-on): Add bison.
8487 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
8489         Update users.txt.
8490         * users.txt: Add poke.
8492 2020-04-28  Bruno Haible  <bruno@clisp.org>
8494         posix_spawn_file_actions_addfchdir tests: Enhance test.
8495         * tests/test-posix_spawn5.c: Include findprog.h.
8496         (test): New function, extracted from main.
8497         (main): Invoke it. Also, invoke it with a program name such as
8498         "bin/pwd".
8499         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
8500         findprog.
8502 2020-04-28  Bruno Haible  <bruno@clisp.org>
8504         posix_spawn_file_actions_addchdir tests: Enhance test.
8505         * tests/test-posix_spawn4.c: Include findprog.h.
8506         (test): New function, extracted from main.
8507         (main): Invoke it. Also, invoke it with a program name such as
8508         "bin/pwd".
8509         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
8510         findprog.
8512 2020-04-28  Bruno Haible  <bruno@clisp.org>
8514         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
8515         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
8516         access elements of the wrong union member.
8518 2020-04-27  Bruno Haible  <bruno@clisp.org>
8520         getdate: Remove deprecated module.
8521         * modules/getdate: Remove file.
8522         * doc/getdate.texi: Remove file.
8523         * lib/getdate.h: Remove file.
8524         * NEWS: Mention the removal.
8526 2020-04-27  Bruno Haible  <bruno@clisp.org>
8528         realloc: Remove deprecated module.
8529         * modules/realloc: Remove file.
8530         * NEWS: Mention the removal.
8532 2020-04-27  Bruno Haible  <bruno@clisp.org>
8534         calloc: Remove deprecated module.
8535         * modules/calloc: Remove file.
8536         * NEWS: Mention the removal.
8538 2020-04-27  Bruno Haible  <bruno@clisp.org>
8540         malloc: Remove deprecated module.
8541         * modules/malloc: Remove file.
8542         * NEWS: Mention the removal.
8544 2020-04-27  Bruno Haible  <bruno@clisp.org>
8546         fnmatch-posix: Remove deprecated module.
8547         * modules/fnmatch-posix: Remove file.
8548         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
8549         * NEWS: Mention the removal.
8551 2020-04-27  Bruno Haible  <bruno@clisp.org>
8553         pipe: Remove deprecated module.
8554         * modules/pipe: Remove file.
8555         * lib/pipe.h: Remove file.
8556         * NEWS: Mention the removal.
8558 2020-04-27  Bruno Haible  <bruno@clisp.org>
8560         getopt: Remove deprecated module.
8561         * modules/getopt: Remove file.
8562         * NEWS: Mention the removal.
8564 2020-04-27  Bruno Haible  <bruno@clisp.org>
8566         remove-dest-slash: Remove deprecated module.
8567         * modules/rename-dest-slash: Remove file.
8568         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
8569         Update.
8570         * NEWS: Mention the removal.
8572 2020-04-27  Bruno Haible  <bruno@clisp.org>
8574         unictype/bidicategory-*: Remove deprecated modules.
8575         * modules/unictype/bidicategory-all: Remove file.
8576         * modules/unictype/bidicategory-byname: Remove file.
8577         * modules/unictype/bidicategory-name: Remove file.
8578         * modules/unictype/bidicategory-of: Remove file.
8579         * modules/unictype/bidicategory-test: Remove file.
8580         * MODULES.html.sh (Unicode string functions): Update.
8581         * NEWS: Mention the removals.
8583 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8585         Tune fts for FTS_LOGICAL+FTS_NOSTAT
8586         From a suggestion by Askar Safin in:
8587         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
8588         * lib/fts.c (fts_build): If file types are known, optimize
8589         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
8590         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
8591         non-directories.
8593 2020-04-19  Bruno Haible  <bruno@clisp.org>
8595         vasnprintf: Add support for printing wide characters using escapes.
8596         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
8597         (wctomb_fallback): New function.
8598         (local_wctomb): New function.
8599         (local_wcrtomb): New function or macro.
8600         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
8601         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
8602         %lc.
8604 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
8606         fts: remove NOSTAT_LEAF_OPTIMIZATION
8607         It caused ‘find’ and ‘du’ to dump core, and it was useful
8608         only for obsolescent Linux filesystems anyway.  Problem reported in:
8609         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
8610         Quite possibly there is still a serious underlying fts bug with
8611         tight-loop-check and mutating file systems, but if so this patch
8612         should cause the bug to be triggered less often.
8613         * lib/fts.c (enum leaf_optimization): Remove
8614         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
8615         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
8616         (leaf_optimization): Remove special cases for ReiserFS and XFS.
8617         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
8618         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
8619         Remove.  All uses removed.
8621 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8623         explicit_bzero: Improve code style.
8624         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
8626 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8628         explicit_bzero: On native Windows, use SecureZeroMemory().
8629         * lib/explicit_bzero.c: Include <windows.h>.
8630         (explicit_bzero): On native Windows, use SecureZeroMemory.
8632 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8634         explicit_bzero: Use memset_s() when available.
8635         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
8636         (explicit_bzero): Use memset_s when available.
8637         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
8639 2020-04-13  Bastien Roucariès  <rouca@debian.org>
8641         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
8642         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
8643         free() that overwrite the memory with canaries.
8645 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
8647         bootstrap: recommend git submodule update --init
8648         Reported by Bruno Haible.
8649         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
8650         * build-aux/bootstrap: recommand "git submodule update --init"
8651         rather than "git submodule init".
8653 2020-04-12  Bruno Haible  <bruno@clisp.org>
8655         explicit_bzero: Add tests.
8656         * tests/test-explicit_bzero.c: New file.
8657         * modules/explicit_bzero-tests: New file.
8659 2020-04-11  Bruno Haible  <bruno@clisp.org>
8661         explicit_bzero: Relicense under LGPLv2+.
8662         Approved by Paul Eggert.
8663         * modules/explicit_bzero (License): Change to LGPLv2+.
8665 2020-04-10  Bruno Haible  <bruno@clisp.org>
8667         findprog, relocatable-prog: Ignore directories during PATH search.
8668         Reported by Frederick Eaton via Dmitry Goncharov in
8669         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
8671         * lib/findprog.c (find_in_path): When the file found in a PATH element
8672         is a directory, continue searching.
8673         * modules/findprog (Depends-on): Add sys_stat, stat.
8674         * modules/findprog-lgpl (Depends-on): Likewise.
8676         * lib/progreloc.c (maybe_executable): When the file found in a PATH
8677         element is a directory, continue searching.
8678         * lib/relocwrapper.c: Update comments.
8679         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
8680         (configure.ac-early): New section.
8682 2020-04-10  Bruno Haible  <bruno@clisp.org>
8684         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
8685         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8686         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
8687         * MODULES.html.sh: In a git-less tarball, use the date of the first
8688         ChangeLog entry.
8690 2020-04-04  Bruno Haible  <bruno@clisp.org>
8692         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
8693         * m4/gettext.m4: Fix comments regarding the gettext library.
8694         * m4/intl-thread-locale.m4: Likewise.
8695         * m4/intlmacosx.m4: Likewise.
8696         * m4/lcmessage.m4: Likewise.
8697         * m4/nls.m4: Likewise.
8698         * m4/po.m4: Likewise.
8699         * m4/progtest.m4: Likewise.
8701 2020-04-04  Jim Meyering  <meyering@fb.com>
8703         maint: remove a stray inter-word space in a 6x-repeated comment
8704         Induce the changes by running this:
8705           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
8706         * build-aux/announce-gen: Change "by  perl" to "by perl".
8707         * build-aux/gitlog-to-changelog: Likewise.
8708         * build-aux/prefix-gnulib-mk: Likewise.
8709         * build-aux/update-copyright: Likewise.
8710         * build-aux/useless-if-before-free: Likewise.
8711         * tests/test-update-copyright.sh: Likewise.
8713 2020-03-28  Bruno Haible  <bruno@clisp.org>
8715         Use module 'filename' instead of module 'dosname'.
8717         * lib/at-func.c: Include filename.h instead of dosname.h.
8718         * lib/unlinkat.c: Likewise.
8719         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
8720         * modules/areadlinkat-with-size (Depends-on): Likewise.
8721         * modules/faccessat (Depends-on): Likewise.
8722         * modules/fchmodat (Depends-on): Likewise.
8723         * modules/fchownat (Depends-on): Likewise.
8724         * modules/fstatat (Depends-on): Likewise.
8725         * modules/mkdirat (Depends-on): Likewise.
8726         * modules/mkfifoat (Depends-on): Likewise.
8727         * modules/readlinkat (Depends-on): Likewise.
8728         * modules/selinux-at (Depends-on): Likewise.
8729         * modules/symlinkat (Depends-on): Likewise.
8730         * modules/unlinkat (Depends-on): Likewise.
8731         * modules/utimensat (Depends-on): Likewise.
8733         * lib/at-func2.c: Include filename.h instead of dosname.h.
8734         * modules/linkat (Depends-on): Add filename. Remove dosname.
8735         * modules/renameatu (Depends-on): Likewise.
8737         * lib/canonicalize.c: Include filename.h instead of dosname.h.
8738         * lib/canonicalize-lgpl.c: Likewise.
8739         * modules/canonicalize (Depends-on): Add filename.
8740         * modules/canonicalize-lgpl (Depends-on): Likewise.
8742         * lib/dirname.h: Include filename.h instead of dosname.h.
8743         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
8745         * lib/fchdir.c: Include filename.h instead of dosname.h.
8746         * modules/fchdir (Depends-on): Add filename. Remove dosname.
8748         * lib/openat.c: Include filename.h instead of dosname.h.
8749         * modules/openat (Depends-on): Add filename. Remove dosname.
8751         * lib/rmdir.c: Include filename.h instead of dosname.h.
8752         * modules/rmdir (Depends-on): Add filename. Remove dosname.
8754         * lib/savewd.c: Include filename.h instead of dosname.h.
8755         * modules/savewd (Depends-on): Add filename. Remove dosname.
8757         * lib/unlink.c: Include filename.h instead of dosname.h.
8758         * modules/unlink (Depends-on): Add filename. Remove dosname.
8760         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
8761         * lib/relocwrapper.c: Update comments.
8763         * modules/lstat (Depends-on): Remove dosname.
8765 2020-03-28  Bruno Haible  <bruno@clisp.org>
8767         dosname: Redirect to 'filename'.
8768         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8769         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
8770         * lib/dosname.h: Remove all definitions. Just include filename.h.
8771         * modules/dosname (Status, Notice): Mark as deprecated.
8772         (Depends-on): Add 'filename'.
8774 2020-03-28  Bruno Haible  <bruno@clisp.org>
8776         dosname: Change IS_RELATIVE_FILE_NAME.
8777         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
8778         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
8779         * NEWS: Mention the change.
8781 2020-03-28  Bruno Haible  <bruno@clisp.org>
8783         filename: Copy some definitions from module 'dosname'.
8784         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
8785         (HAS_DEVICE): Document macro.
8786         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
8787         (IS_ABSOLUTE_FILE_NAME): Consider
8788         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
8789         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
8790         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
8791         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
8792         IS_PATH_WITH_DIR.
8793         (DllMain): Update.
8794         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
8795         IS_PATH_WITH_DIR.
8796         (find_executable): Update.
8797         * NEWS: Document the deprecations.
8799 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8801         getopt-posix: port __GETOPT_PREFIX to macOS
8802         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
8803         Define to work around a problem with asm on macOS (Bug#40205).
8805 2020-03-22  Bruno Haible  <bruno@clisp.org>
8807         MODULES.html.sh: Add support for reproducible builds.
8808         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8809         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
8810         * MODULES.html.sh: Print the date of the last gnulib commit, not the
8811         current date.
8813 2020-03-22  Bruno Haible  <bruno@clisp.org>
8815         Several modules: Depend on stat.
8816         * modules/acl-permissions (Depends-on): Add stat.
8817         * modules/canonicalize (Depends-on): Likewise.
8818         * modules/file-has-acl (Depends-on): Likewise.
8819         * modules/fstat (Depends-on): Likewise.
8820         * modules/fstatat (Depends-on): Likewise.
8821         * modules/glob (Depends-on): Likewise.
8822         * modules/javacomp (Depends-on): Likewise.
8823         * modules/linkat (Depends-on): Likewise.
8824         * modules/mkdir (Depends-on): Likewise.
8825         * modules/pt_chown (Depends-on): Likewise.
8826         * modules/ptsname_r (Depends-on): Likewise.
8827         * modules/readlinkat (Depends-on): Likewise.
8828         * modules/rename (Depends-on): Likewise.
8829         * modules/renameatu (Depends-on): Likewise.
8830         * modules/tmpdir (Depends-on): Likewise.
8831         * modules/utimens (Depends-on): Likewise.
8832         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
8833         * modules/same (Depends-on): Remove stat.
8835 2020-03-22  Bruno Haible  <bruno@clisp.org>
8837         acl-permissions: Improve autoconf macro.
8838         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
8839         more reliably.
8841 2020-03-22  Bruno Haible  <bruno@clisp.org>
8843         file-has-acl: Fix module description.
8844         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
8845         (Depends-on): Depend on acl-permissions unconditionally.
8847 2020-03-21  Bruno Haible  <bruno@clisp.org>
8849         unlink: Ensure errno also on native Windows.
8850         * modules/unlink (Depends-on): Add malloc-posix.
8852 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8854         unlink: fix malloc errno typo
8855         Problem reported by Tim Rühsen in:
8856         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
8857         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
8859 2020-03-16  Bruno Haible  <bruno@clisp.org>
8861         *printf-posix: Fix m4 error (regression from 2020-03-08).
8862         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
8863         brackets in AC_COMPILE_IFELSE invocation.
8865 2020-03-08  Bruno Haible  <bruno@clisp.org>
8867         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
8868         * modules/crypto/af_alg (Depends-on): Add fstat.
8869         * modules/renameatu (Depends-on): Likewise.
8870         * modules/same (Depends-on): Likewise.
8871         * modules/term-style-control (Depends-on): Likewise.
8873 2020-03-08  Bruno Haible  <bruno@clisp.org>
8875         *printf-posix: Document why it's overridden on some glibc systems.
8876         Reported by Adrian Bunk <bunk@stusta.de> in
8877         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
8878         * doc/posix-functions/*printf.texi: Document the problem with the %n
8879         directive on some glibc systems.
8880         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
8881         the cross-compilation guesses accordingly.
8883 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8885         open, openat: port to (O_RDWR | O_RDONLY) != 0
8886         Potential portability problem reported by Dan Gohman in:
8887         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
8888         * lib/open.c (open):
8889         * lib/openat.c (rpl_openat):
8890         Don’t assume O_RDONLY is disjoint from O_RDWR.
8892 2020-03-07  Bruno Haible  <bruno@clisp.org>
8894         openat: Fix theoretically possible issue on GNU/Hurd.
8895         Reported by Dan Gohman <sunfish@mozilla.com> in
8896         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
8897         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
8898         ignore the bits that are also set in O_RDONLY.
8900 2020-02-24  Bruno Haible  <bruno@clisp.org>
8902         getloadavg: Don't use /usr/local when cross-compiling on AIX.
8903         Reported by Jens Rehsack <sno@netbsd.org> in
8904         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
8905         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
8906         cross-compiling.
8908 2020-02-24  Bruno Haible  <bruno@clisp.org>
8910         fcntl: Add witness of gnulib override.
8911         Reported by Jens Rehsack <sno@netbsd.org> in
8912         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
8913         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
8914         macros.
8916 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
8918         Update users.txt.
8919         * users.txt: Add datamash, time.
8921 2020-02-23  Bruno Haible  <bruno@clisp.org>
8923         uni*/base: Use 'restrict'.
8924         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
8925         from lib/regex.h.
8926         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
8927         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
8928         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
8929         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
8930         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
8931         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
8932         '_UC_RESTRICT'.
8933         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
8934         u32_conv_to_encoding): Use '_UC_RESTRICT'.
8935         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
8936         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
8937         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
8938         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
8939         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
8940         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
8941         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
8942         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
8943         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
8944         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
8945         '_UC_RESTRICT'.
8946         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
8947         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
8948         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
8949         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
8950         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
8951         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
8952         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
8953         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
8955 2020-02-23  Bruno Haible  <bruno@clisp.org>
8957         glob, spawn: Use improved '_Restrict_' definition.
8958         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
8959         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
8961 2020-02-23  Bruno Haible  <bruno@clisp.org>
8963         crypto/gc: Use 'restrict'.
8964         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
8965         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
8967         crypto/hmac-*: Use 'restrict'.
8968         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
8969         'restrict'.
8970         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
8971         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
8972         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
8973         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
8975         crypto/sm3: Use 'restrict'.
8976         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
8977         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
8979         crypto/*-buffer: Use 'restrict'.
8980         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
8981         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
8983         crypto/sha512-buffer: Use 'restrict'.
8984         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
8985         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
8986         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
8988         crypto/sha256-buffer: Use 'restrict'.
8989         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
8990         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
8991         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
8993         crypto/sha1-buffer: Use 'restrict'.
8994         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
8995         'restrict'.
8996         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
8998         crypto/md5-buffer: Use 'restrict'.
8999         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
9000         'restrict'.
9001         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
9003         crypto/md4: Use 'restrict'.
9004         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
9005         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
9007         crypto/md2: Use 'restrict'.
9008         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
9009         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
9011         crypto/rijndael: Use 'restrict'.
9012         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
9013         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
9014         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
9016         crypto/arctwo: Use 'restrict'.
9017         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
9018         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
9020         crypto/arcfour: Use 'restrict'.
9021         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
9022         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
9024         careadlinkat: Use 'restrict'.
9025         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
9026         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
9027         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
9029         regex-quote: Use 'restrict'.
9030         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
9031         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
9033         system-quote: Use 'restrict'.
9034         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
9035         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
9037         sh-quote: Use 'restrict'.
9038         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
9039         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
9041         quotearg: Use 'restrict'.
9042         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
9043         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
9045         parse-datetime: Use 'restrict'.
9046         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
9047         'restrict'.
9048         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
9050         nstrftime: Use 'restrict'.
9051         * lib/strftime.h (nstrftime): Use 'restrict'.
9052         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
9054         mbstok_r: Use 'restrict'.
9055         * lib/string.in.h (mbstok_r): Use 'restrict'.
9057         xmemcoll: Use 'restrict'.
9058         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
9059         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
9061         memcoll: Use 'restrict'.
9062         * lib/memcoll.h (memcoll): Use 'restrict'.
9063         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
9065         vasnprintf: Use 'restrict'.
9066         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
9067         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
9069         c-vasnprintf: Use 'restrict'.
9070         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
9071         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
9073         c-vsnprintf: Use 'restrict'.
9074         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
9075         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
9077         c-snprintf: Use 'restrict'.
9078         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
9079         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
9081         astrxfrm: Use 'restrict'.
9082         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
9083         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
9085         amemxfrm: Use 'restrict'.
9086         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
9087         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
9089 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
9091         fchmodat, lchmod: simplify
9092         It appears that we may have overengineered lchmod and fchmodat,
9093         in that the code was prepared for some hypothetical platforms but
9094         was so complicated that it was hard to understand.  I attempted to
9095         improve the situation by simplifying the code when this
9096         simplification should not hurt on real platforms; we can re-add
9097         complexity later to port to platforms I didn’t know about.
9098         * lib/fchmodat.c (fchmodat):
9099         * lib/lchmod.c (lchmod):
9100         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
9101         around the /proc code that needs it.
9102         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
9103         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
9104         Do not include <config.h> twice.
9105         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
9106         lchmod on any known hosts.
9107         (lchmod): Do not defer to fchmodat, so that the lchmod module
9108         need not depend on the fchmodat module (which is a circular
9109         dependency).  Do not use openat, since ‘open’ suffices.
9110         Coalesce calls to lchmod/chmod.
9111         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
9112         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
9113         * modules/lchmod (Depends-on, configure.ac):
9114         * modules/sys_stat (Depends-on):
9115         Do not worry about replacing lchmod, since that shouldn’t happen.
9116         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
9117         Do not worry about whether lchmod works on non-symlinks,
9118         since every known lchmod works on non-symlinks.
9119         * modules/lchmod (Depends-on):
9120         Remove circular dependency on fchmodat.
9122 2020-02-22  Bruno Haible  <bruno@clisp.org>
9124         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
9125         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
9126         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
9128 2020-02-22  Bruno Haible  <bruno@clisp.org>
9130         Use 'restrict' in all POSIX function declarations.
9131         * lib/iconv.in.h (iconv): Use 'restrict'.
9132         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
9133         * lib/monetary.in.h (strfmon_l): Likewise.
9134         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
9135         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
9136         pthread_mutex_timedlock, pthread_rwlock_init,
9137         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
9138         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
9139         * lib/search.in.h (tdelete): Likewise.
9140         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
9141         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
9142         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
9143         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
9144         Likewise.
9145         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
9146         strtoull): Likewise.
9147         * lib/string.in.h (strncat): Likewise.
9148         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
9149         recvfrom): Likewise.
9150         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
9151         * lib/time.in.h (strftime): Likewise.
9152         * lib/unistd.in.h (readlink, readlinkat): Likewise.
9153         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
9154         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
9155         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
9156         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
9157         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
9158         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
9159         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9160         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9161         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9162         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9163         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9164         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9165         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9166         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9167         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
9168         other *_h.m4 files.
9169         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
9171 2020-02-22  Bruno Haible  <bruno@clisp.org>
9173         Update NEWS.
9174         * NEWS: Mention the last change.
9176 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
9178         chmodat, chownat: new modules
9179         These are split from fchmodat, fchownat.  GNU Emacs needs the
9180         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
9181         lchmodat.  Split the latter two into a new module chmodat.
9182         Similarly for fchownat.  This the same basic idea for why statat
9183         was split from fstatat on 2013-01-23.
9184         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
9185         Rename from FCHMODAT_INLINE.  All uses changed.
9186         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
9187         Rename from FCHOWNAT_INLINE.  All uses changed.
9188         * lib/openat.h:
9189         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
9190         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
9191         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
9192         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
9193         (configure.ac): Remove fchmodat module indicator.
9194         (Makefile.am): Omit chmodat.c.
9195         (Maintainer): Add self.
9196         * modules/fchownat: Similarly, but for chown.
9197         * tests/test-fchownat.c (BASE): Don't define if already defined.
9198         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
9200 2020-02-22  Bruno Haible  <bruno@clisp.org>
9202         users.txt: Add groff.
9203         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
9204         * users.txt: Add groff.
9206 2020-02-22  Bruno Haible  <bruno@clisp.org>
9208         gnulib-tool: Ensure copied files are writable.
9209         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
9210         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
9211         * gnulib-tool (func_ensure_writable): New function.
9212         (func_ln_s, func_hardlink, func_lookup_file, func_import,
9213         func_create_testdir, copy-file): Invoke it after copying a file.
9215 2020-02-22  Bruno Haible  <bruno@clisp.org>
9217         users.txt: Update.
9218         * users.txt: Update URLs to projects that have moved or switched to git.
9219         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
9220         over the summary view. Add gawk.
9222 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
9224         largefile: remove _DARWIN_USE_64_BIT_INODE
9225         It’s not needed in currently-supported macOS versions, and was
9226         problematic anyway in MacOS X 10.5 which was the only version that
9227         could use it.  Problem reported by Peter Eisentraut in:
9228         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
9229         * m4/largefile.m4 (AC_SYS_LARGEFILE):
9230         Don’t define _DARWIN_USE_64_BIT_INODE.
9231         This syncs with Autoconf master.
9233         Add ‘extern "C"’ to count-one-bits.h etc.
9234         This ports these .h files to C++.
9235         Problem reported by Simon Marchi in:
9236         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
9237         * lib/count-leading-zeros.h, lib/count-one-bits.h:
9238         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
9240 2020-02-19  Bruno Haible  <bruno@clisp.org>
9242         uninorm/decompose-internal: Avoid "no previous prototype" warning.
9243         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9244         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
9245         * lib/array-mergesort.h: Accept an optional macro definition
9246         STATIC_FROMTO.
9247         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
9249 2020-02-16  Bruno Haible  <bruno@clisp.org>
9251         fchmodat: Make more future-proof.
9252         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
9253         NEED_FCHMODAT_NONSYMLINK_FIX.
9254         (gl_PREREQ_FCHMODAT): New macro.
9255         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
9256         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
9257         without lchmod function.
9258         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
9260 2020-02-16  Bruno Haible  <bruno@clisp.org>
9262         lchmod: Make more future-proof.
9263         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
9264         (gl_PREREQ_LCHMOD): New macro.
9265         * lib/lchmod.c (orig_lchmod): New function.
9266         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
9267         Return EOPNOTSUPP only on Linux and on platforms without lchmod
9268         function.
9269         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
9271         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
9272         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
9274 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9276         xnanosleep: prefer pause, and get remaining time
9277         Problem reported by Vladimir Panteleev in:
9278         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
9279         * lib/xnanosleep.c: Include intprops.h, unistd.h.
9280         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
9281         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
9282         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
9283         * modules/xnanosleep (Depends-on): Add intprops, unistd.
9285 2020-02-16  Bruno Haible  <bruno@clisp.org>
9287         lchmod: Improve cross-compilation guess.
9288         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
9289         cross-compiling, guess depending on the platform.
9291 2020-02-16  Bruno Haible  <bruno@clisp.org>
9293         fstrcmp: Add API to clean up resources.
9294         Reported by Akim Demaille <akim@lrde.epita.fr> in
9295         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
9296         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
9297         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
9299 2020-02-14  Bruno Haible  <bruno@clisp.org>
9301         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
9302         Reported by Christian Biesinger in
9303         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
9304         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
9305         corresponding module is not enabled.
9306         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
9307         prototype if the corresponding module is not enabled.
9309 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
9311         fchmodat, lchmod: port to buggy Linux filesystems
9312         Problem reported by Florian Weimer in:
9313         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
9314         * lib/fchmodat.c (fchmodat):
9315         * lib/lchmod.c (lchmod):
9316         Don’t assume that chmod on the O_PATH-opened fd will do
9317         the right thing on a symbolic link.
9318         * lib/fchmodat.c (fchmodat):
9319         Don’t attempt to special-case
9320         any flag value other than AT_SYMLINK_NOFOLLOW.
9322 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
9324         lchmod: pacify Coverity CID 1491216
9325         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
9326         not complain about unreachable code at the ‘struct stat st;’
9327         declaration.
9329 2020-02-10  Bruno Haible  <bruno@clisp.org>
9331         copysignf: Fix link error on HP-UX with cc.
9332         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
9333         HP-UX, set COPYSIGNF_LIBM to -lm.
9335 2020-02-10  Bruno Haible  <bruno@clisp.org>
9337         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
9338         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
9339         with $(LIB_SEMAPHORE).
9340         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
9341         with $(LIB_SEMAPHORE).
9343 2020-02-10  Bruno Haible  <bruno@clisp.org>
9345         ptsname_r-tests: Avoid unused function warning.
9346         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
9348 2020-02-08  Bruno Haible  <bruno@clisp.org>
9350         lchmod: Add tests.
9351         * tests/test-lchmod.c: New file.
9352         * modules/lchmod-tests: New file.
9354 2020-02-08  Bruno Haible  <bruno@clisp.org>
9356         lchmod: Ensure declaration on HP-UX.
9357         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
9358         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
9360 2020-02-08  Bruno Haible  <bruno@clisp.org>
9362         fchmodat: Strengthen tests.
9363         * tests/test-fchmodat.c (BASE): New macro.
9364         (main): Use it, to avoid conflicts with other unit tests. Verify that
9365         fchmodat changed the file permission bits.
9367 2020-02-08  Bruno Haible  <bruno@clisp.org>
9369         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
9370         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
9371         '#undef __need_system_sys_stat_h'.
9373 2020-02-08  Bruno Haible  <bruno@clisp.org>
9375         fchmodat: Improve cross-compilation guesses.
9376         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
9377         cross-compiling, guess depending on the platform.
9378         * doc/posix-functions/fchmodat.texi: Clarify.
9380 2020-02-08  Bruno Haible  <bruno@clisp.org>
9382         Fix compilation errors in a testdir created with --with-c++-tests.
9383         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
9384         since it does not work any more with g++ >= 4.4.
9386 2020-02-08  Bruno Haible  <bruno@clisp.org>
9388         doc: Update for glibc 2.31.
9389         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
9390         * doc/gnulib.texi: Include it.
9391         * doc/pastposix-functions/h_errno.texi: Update.
9392         * doc/posix-functions/*.texi: Likewise.
9394 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
9396         mountlist: consider smb3 file systems as remote
9397         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
9398         "smb3" as remote.
9400 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9402         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
9403         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
9404         they act like chmod on non-symlinks.
9405         * NEWS:
9406         * doc/glibc-functions/lchmod.texi (lchmod):
9407         * doc/posix-functions/fchmodat.texi (fchmodat):
9408         Mention this.
9409         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
9410         config.h, and undef it after including sys/stat.h the first time.
9411         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
9412         sys/stat.h a second time after defining orig_fchmodat.
9413         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
9414         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
9415         * lib/lchmod.c: New file.
9416         * lib/sys_stat.in.h (fchmodat, lchmod):
9417         Support replacing these functions.
9418         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
9419         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
9420         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
9421         Test that lchmod works on non-symlinks.
9422         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
9423         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
9424         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
9425         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
9426         * modules/lchmod (Files): Add lib/lchmod.c.
9427         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
9428         (configure.ac): Compile lchmod.c if needed.
9429         (lib_SOURCES): Add lchmod.c.
9430         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
9431         and REPLACE_LCHMOD.
9432         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
9433         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
9435 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
9437         mountlist: Consider AFS filesystems as remote
9438         df --local relies on the ME_REMOTE macro to determine if a given
9439         mount entry should be considered "local".  There is special logic
9440         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
9441         kernel's kafs module or AuriStorFS is treated as a local mount.
9442         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
9443         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
9445 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9447         Port _Noreturn to older Clang
9448         Problem reported by Jeffery Walton in:
9449         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
9450         * lib/_Noreturn.h (_Noreturn):
9451         * m4/gnulib-common.m4 (gl_COMMON_BODY):
9452         Assume _Noreturn works in Clang 3.5 and later.
9453         It is documented to work in Clang 3.5:
9454         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
9455         and is not documented in Clang 3.4:
9456         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
9457         Apple sets __clang_version__ to a different value, so use
9458         __apple_build_version__ there.  See:
9459         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
9461 2020-02-04  Pádraig Brady  <P@draigBrady.com>
9463         test-canonicalize: avoid unused function warning
9464         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
9465         with the same guard as that used to protect usage of the null_ptr
9466         function, so that one doesn't get a -Wunused warning.
9467         * tests/test-canonicalize-lgpl.c: Likewise.
9469 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
9471         libc-config: port to Apple’s Clang variant
9472         * lib/libc-config.h (__glibc_clang_prereq):
9473         Port to Apple’s Clang variant, which uses a different
9474         numbering scheme for __clang_major__.
9476 2020-02-02  Bruno Haible  <bruno@clisp.org>
9478         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
9479         * doc/containers.texi: Document these new modules.
9481 2020-02-02  Bruno Haible  <bruno@clisp.org>
9483         omap-c++: Add tests.
9484         * tests/test-omap-c++.cc: New file.
9485         * modules/omap-c++-tests: New file.
9487         omap-c++: New module.
9488         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
9489         * modules/omap-c++: New file.
9491 2020-02-02  Bruno Haible  <bruno@clisp.org>
9493         map-c++: Add tests.
9494         * tests/test-map-c++.cc: New file.
9495         * modules/map-c++-tests: New file.
9497         map-c++: New module.
9498         * lib/gl_map.hh: New file, based on lib/gl_map.h.
9499         * modules/map-c++: New file.
9501 2020-02-02  Bruno Haible  <bruno@clisp.org>
9503         oset-c++: Add tests.
9504         * tests/test-oset-c++.cc: New file.
9505         * modules/oset-c++-tests: New file.
9507         oset-c++: New module.
9508         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
9509         * modules/oset-c++: New file.
9511 2020-02-02  Bruno Haible  <bruno@clisp.org>
9513         set-c++: Add tests.
9514         * tests/test-set-c++.cc: New file.
9515         * modules/set-c++-tests: New file.
9517         set-c++: New module.
9518         * lib/gl_set.hh: New file, based on lib/gl_set.h.
9519         * modules/set-c++: New file.
9521 2020-02-02  Bruno Haible  <bruno@clisp.org>
9523         list-c++: Add tests.
9524         * tests/test-list-c++.cc: New file.
9525         * modules/list-c++-tests: New file.
9527         list-c++: New module.
9528         * lib/gl_list.hh: New file, based on lib/gl_list.h.
9529         * modules/list-c++: New file.
9531 2020-02-02  Bruno Haible  <bruno@clisp.org>
9533         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
9534         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
9535         '_Noreturn'.
9536         * lib/sigpipe-die.h (sigpipe_die): Likewise.
9538 2020-02-02  Pádraig Brady  <P@draigBrady.com>
9540         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
9541         On x86_64 with glibc-2.30, gcc 9.2 is giving:
9542           error: argument 2 value '18446744073709551615'
9543           exceeds maximum object size 9223372036854775807
9544           [-Werror=alloc-size-larger-than=]
9545         The details of this restriction are discussed at:
9546         https://stackoverflow.com/q/42574890/4421
9547         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
9549 2020-02-02  Pádraig Brady  <P@draigBrady.com>
9551         sysctl.h: avoid including on glibc
9552         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
9553         * lib/physmem.c: Likewise.
9555 2020-02-02  Bruno Haible  <bruno@clisp.org>
9557         list, set, oset, map, omap: Avoid imperative voice in documentation.
9558         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
9559         in the specification of functions.
9560         * lib/gl_set.h: Likewise.
9561         * lib/gl_oset.h: Likewise.
9562         * lib/gl_map.h: Likewise.
9563         * lib/gl_omap.h: Likewise.
9564         * lib/gl_*.h: Likewise.
9566 2020-02-01  Bruno Haible  <bruno@clisp.org>
9568         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
9569         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
9570         does.
9572 2020-01-29  Bruno Haible  <bruno@clisp.org>
9574         array-map, hash-map, linkedhash-map: Fix module description.
9575         * modules/array-map (Description): Fix description.
9576         * modules/hash-map (Description): Likewise.
9577         * modules/linkedhash-map (Description): Likewise.
9579 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9581         dfa: do not depend on isblank
9582         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
9583         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
9584         * modules/dfa (Depends-on): Remove isblank.
9585         * modules/isblank: Add a module indicator, for lib/dfa.c.
9587         dfa: do not assume 64-bit int
9588         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
9589         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
9590         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
9591         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
9592         Fall back to 32-bit words.
9593         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
9594         of 4 64-bit args.  All uses changed.
9596 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9598         regex: remove limits-h dependency
9599         * modules/regex (Depends-on): Remove limits-h, since the
9600         code no longer depends on ULONG_WIDTH already being defined.
9602         regex: port to non-GCC pre-IEC-60559
9603         Problem reported by Arnold Robbins in:
9604         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
9605         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
9607 2020-01-25  Bruno Haible  <bruno@clisp.org>
9609         c32isxdigit: Add tests.
9610         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
9611         * tests/test-c32isxdigit.sh: New file.
9612         * modules/c32isxdigit-tests: New file.
9614         c32isxdigit: New module.
9615         * lib/c32isxdigit.c: New file.
9616         * modules/c32isxdigit: New file.
9617         * doc/posix-functions/iswxdigit.texi: Mention the new module.
9619 2020-01-25  Bruno Haible  <bruno@clisp.org>
9621         c32isupper: Add tests.
9622         * tests/test-c32isupper.c: New file.
9623         * tests/test-c32isupper.sh: New file.
9624         * modules/c32isupper-tests: New file.
9626         c32isupper: New module.
9627         * lib/c32isupper.c: New file.
9628         * modules/c32isupper: New file.
9629         * doc/posix-functions/iswupper.texi: Mention the new module.
9631 2020-01-25  Bruno Haible  <bruno@clisp.org>
9633         c32isspace: Add tests.
9634         * tests/test-c32isspace.c: New file.
9635         * tests/test-c32isspace.sh: New file.
9636         * modules/c32isspace-tests: New file.
9638         c32isspace: New module.
9639         * lib/c32isspace.c: New file.
9640         * modules/c32isspace: New file.
9641         * doc/posix-functions/iswspace.texi: Mention the new module.
9643 2020-01-25  Bruno Haible  <bruno@clisp.org>
9645         c32ispunct: Add tests.
9646         * tests/test-c32ispunct.c: New file.
9647         * tests/test-c32ispunct.sh: New file.
9648         * modules/c32ispunct-tests: New file.
9650         c32ispunct: New module.
9651         * lib/c32ispunct.c: New file.
9652         * modules/c32ispunct: New file.
9653         * doc/posix-functions/iswpunct.texi: Mention the new module.
9655 2020-01-25  Bruno Haible  <bruno@clisp.org>
9657         c32isprint: Add tests.
9658         * tests/test-c32isprint.c: New file.
9659         * tests/test-c32isprint.sh: New file.
9660         * modules/c32isprint-tests: New file.
9662         c32isprint: New module.
9663         * lib/c32isprint.c: New file.
9664         * modules/c32isprint: New file.
9665         * doc/posix-functions/iswprint.texi: Mention the new module.
9667 2020-01-25  Bruno Haible  <bruno@clisp.org>
9669         c32islower: Add tests.
9670         * tests/test-c32islower.c: New file.
9671         * tests/test-c32islower.sh: New file.
9672         * modules/c32islower-tests: New file.
9674         c32islower: New module.
9675         * lib/c32islower.c: New file.
9676         * modules/c32islower: New file.
9677         * doc/posix-functions/iswlower.texi: Mention the new module.
9679 2020-01-25  Bruno Haible  <bruno@clisp.org>
9681         c32isgraph: Add tests.
9682         * tests/test-c32isgraph.c: New file.
9683         * tests/test-c32isgraph.sh: New file.
9684         * modules/c32isgraph-tests: New file.
9686         c32isgraph: New module.
9687         * lib/c32isgraph.c: New file.
9688         * modules/c32isgraph: New file.
9689         * doc/posix-functions/iswgraph.texi: Mention the new module.
9691 2020-01-25  Bruno Haible  <bruno@clisp.org>
9693         c32isdigit: Add tests.
9694         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
9695         * tests/test-c32isdigit.sh: New file.
9696         * modules/c32isdigit-tests: New file.
9698         c32isdigit: New module.
9699         * lib/c32isdigit.c: New file.
9700         * modules/c32isdigit: New file.
9701         * doc/posix-functions/iswdigit.texi: Mention the new module.
9703 2020-01-25  Bruno Haible  <bruno@clisp.org>
9705         c32iscntrl: Add tests.
9706         * tests/test-c32iscntrl.c: New file.
9707         * tests/test-c32iscntrl.sh: New file.
9708         * modules/c32iscntrl-tests: New file.
9710         c32iscntrl: New module.
9711         * lib/c32iscntrl.c: New file.
9712         * modules/c32iscntrl: New file.
9713         * doc/posix-functions/iswcntrl.texi: Mention the new module.
9715 2020-01-25  Bruno Haible  <bruno@clisp.org>
9717         c32isblank: Add tests.
9718         * tests/test-c32isblank.c: New file.
9719         * tests/test-c32isblank.sh: New file.
9720         * modules/c32isblank-tests: New file.
9722         c32isblank: New module.
9723         * lib/c32isblank.c: New file.
9724         * modules/c32isblank: New file.
9725         * doc/posix-functions/iswblank.texi: Mention the new module.
9727 2020-01-25  Bruno Haible  <bruno@clisp.org>
9729         c32isalpha: Add tests.
9730         * tests/test-c32isalpha.c: New file.
9731         * tests/test-c32isalpha.sh: New file.
9732         * modules/c32isalpha-tests: New file.
9734         c32isalpha: New module.
9735         * lib/c32isalpha.c: New file.
9736         * modules/c32isalpha: New file.
9737         * doc/posix-functions/iswalpha.texi: Mention the new module.
9739 2020-01-25  Bruno Haible  <bruno@clisp.org>
9741         c32isalnum: Add tests.
9742         * tests/test-c32isalnum.c: New file.
9743         * tests/test-c32isalnum.sh: New file.
9744         * modules/c32isalnum-tests: New file.
9746         c32isalnum: New module.
9747         * lib/c32isalnum.c: New file.
9748         * lib/c32is-impl.h: New file.
9749         * modules/c32isalnum: New file.
9750         * doc/posix-functions/iswalnum.texi: Mention the new module.
9752 2020-01-25  Bruno Haible  <bruno@clisp.org>
9754         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
9755         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
9756         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
9757         c32isupper, c32isxdigit): New declarations.
9758         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
9759         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9760         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9761         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9762         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9763         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
9764         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9765         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9766         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9767         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9768         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
9769         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
9770         c32ispunct, c32isspace, c32isupper, c32isxdigit.
9772 2020-01-25  Bruno Haible  <bruno@clisp.org>
9774         mbchar, wctype: Use the corrected iswxdigit function.
9775         * modules/mbchar (Depends-on): Add iswxdigit.
9776         * modules/wctype (Depends-on): Likewise.
9778         iswxdigit: Add tests.
9779         * tests/test-iswxdigit.c: New file.
9780         * tests/test-iswxdigit.sh: New file.
9781         * modules/iswxdigit-tests: New file.
9783         iswxdigit: New module.
9784         * m4/iswxdigit.m4: New file.
9785         * lib/wctype.in.h (iswxdigit): Potentially override.
9786         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
9787         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
9788         * lib/iswxdigit.c: New file.
9789         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
9790         REPLACE_ISWXDIGIT.
9791         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
9792         REPLACE_ISWXDIGIT.
9793         * modules/iswxdigit: New file.
9794         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
9796 2020-01-25  Bruno Haible  <bruno@clisp.org>
9798         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
9799         Reported by John Donoghue <john.david.donoghue@gmail.com> in
9800         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
9801         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
9802         off_t on mingw, invoke _lseeki64 instead of lseek.
9804 2020-01-25  Bruno Haible  <bruno@clisp.org>
9806         iswdigit tests: Avoid test failure on Cygwin.
9807         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
9808         byte sequence, return 0.
9810         iswdigit: Fix test failure on native Windows.
9811         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
9813         mbchar, wctype: Use the corrected iswdigit function.
9814         * modules/mbchar (Depends-on): Add iswdigit.
9815         * modules/wctype (Depends-on): Likewise.
9817         iswdigit: Add tests.
9818         * tests/test-iswdigit.c: New file.
9819         * tests/test-iswdigit.sh: New file.
9820         * modules/iswdigit-tests: New file.
9822         iswdigit: New module.
9823         * m4/iswdigit.m4: New file.
9824         * lib/wctype.in.h (iswdigit): Potentially override.
9825         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
9826         * lib/iswdigit.c: New file.
9827         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
9828         REPLACE_ISWDIGIT.
9829         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
9830         REPLACE_ISWDIGIT.
9831         * modules/iswdigit: New file.
9832         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
9834 2020-01-25  Bruno Haible  <bruno@clisp.org>
9836         hard-locale tests: Make it easy to reuse the musl test.
9837         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
9838         * modules/hard-locale-tests (Files): Add it.
9839         (configure.ac): Invoke gl_MUSL_LIBC.
9841 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9843         regex: port to Gawk on nonstandard platforms
9844         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
9845         This is useful for Gawk, which does not use the Gnulib stdlib-h
9846         module.  Problem reported by Arnold Robbins in:
9847         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
9849 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9851         regex: fix bug with >=16 subexpressions
9852         * lib/regex_internal.h (struct re_backref_cache_entry):
9853         Use bitset_word_t as the type of eps_reachable_subexps_map,
9854         instead of unsigned short int.  This fixes a bug I introduced
9855         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
9856         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
9857         Remove unused member 'unused'.
9859         regex: simplify definition of BITSET_WORD_BITS
9860         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
9861         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
9862         * lib/regex_internal.h (BITSET_WORD_BITS):
9863         * modules/regex (Depends-on): Add limits-h.
9864         Simplify now that we can use ULONG_WIDTH.
9866 2020-01-20  Bruno Haible  <bruno@clisp.org>
9868         mbrtoc32: Add note about FreeBSD 12.
9869         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
9870         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
9871         affected.
9873 2020-01-20  Bruno Haible  <bruno@clisp.org>
9875         unistr/u8-uctomb: Fix warning.
9876         Reported by Andreas Schwab <schwab@suse.de> in
9877         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
9878         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
9879         (u8_uctomb): Add FALLTHROUGH markers.
9881 2020-01-20  Bruno Haible  <bruno@clisp.org>
9883         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
9884         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
9885         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
9886         (glthread_once): Use it.
9888 2020-01-19  Bruno Haible  <bruno@clisp.org>
9890         threadlib: Disable use of weak symbols on FreeBSD 11.
9891         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9892         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
9893         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
9894         against a bug in FreeBSD 11.
9896 2020-01-19  Bruno Haible  <bruno@clisp.org>
9898         iconv_open: Improve z/OS support.
9899         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
9900         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
9901         Remove mapping for EUC-TW.
9903 2020-01-18  Bruno Haible  <bruno@clisp.org>
9905         Rename ~~gnulib.m4 to zzgnulib.m4.
9906         Suggested by Paul Eggert.
9907         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
9908         * gnulib-tool (func_get_filelist): Update.
9909         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9911 2020-01-18  Bruno Haible  <bruno@clisp.org>
9913         doc: Update license notices.
9914         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
9915         reference to a section or to a "file as part of this distribution".
9917 2020-01-18  Bruno Haible  <bruno@clisp.org>
9919         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
9920         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9921         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
9922         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
9923         AC_EGREP_CPP.
9925 2020-01-18  Bruno Haible  <bruno@clisp.org>
9927         Ensure Automake does not drop ~~gnulib.m4.
9928         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
9929         * m4/gnulib-common.m4 (gl_COMMON): Require it.
9931 2020-01-18  Bruno Haible  <bruno@clisp.org>
9933         Fix major regression from 2020-01-10.
9934         Reported by Paul Eggert in
9935         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
9936         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9937         Don't AC_REQUIRE anything.
9938         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
9939         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
9940         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
9941         use ac_compile instead.
9942         (AC_CHECK_DECL): Remove override.
9943         * m4/~~gnulib.m4: New file.
9944         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
9945         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9947 2020-01-17  Bruno Haible  <bruno@clisp.org>
9948             Paul Eggert  <eggert@cs.ucla.edu>
9950         glob: Fix use-after-free bug.
9951         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9952         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
9953         * lib/glob.c (__glob): Delay freeing dirname until after the use of
9954         end_name.
9956 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9958         vcs-to-changelog: Fix parsing of fndecl without args.
9959         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
9960         for empty arguments.
9962 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9964         vcs-to-changelog: Add documentation.
9965         * doc/vcs-to-changelog.texi: New file.
9966         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
9967         section.
9969 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9971         vcs-to-changelog: Allow loading of custom quirks file.
9972         * build-aux/vcs_to_changelog.py: New commandline option -q.
9974 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9976         vcs-to-changelog: Fix formatting of ChangeLog output.
9977         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
9978         output.
9980 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9982         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
9983         Reported in
9984         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
9985         * build-aux/vcstocl/frontend_c.py: Remove shebang.
9987 2020-01-15  Simon Josefsson  <simon@josefsson.org>
9989         crypto/gc-pbkdf2: New module.
9990         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
9991         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
9992         * lib/gc-pbkdf2.c: New file.
9993         * lib/gc-pbkdf2-sha1.c: Use new interface.
9994         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
9995         * modules/crypto/gc-pbkdf2: New file.
9996         * modules/crypto/gc-pbkdf2-tests: New file.
9997         * tests/test-gc-pbkdf2.c: New file.
9999 2020-01-12  Bruno Haible  <bruno@clisp.org>
10001         c32stombs: Add tests.
10002         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
10003         * tests/test-c32stombs-1.sh: New file, based on
10004         tests/test-c32srtombs-1.sh.
10005         * tests/test-c32stombs-2.sh: New file, based on
10006         tests/test-c32srtombs-2.sh.
10007         * tests/test-c32stombs-3.sh: New file, based on
10008         tests/test-c32srtombs-3.sh.
10009         * tests/test-c32stombs-4.sh: New file, based on
10010         tests/test-c32srtombs-4.sh.
10011         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
10013         c32stombs: New module.
10014         * lib/uchar.in.h (c32stombs): New declaration.
10015         * lib/c32stombs.c: New file.
10016         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
10017         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
10018         * modules/c32stombs: New file.
10019         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
10020         * doc/posix-functions/wcstombs.texi: Mention the new module.
10022 2020-01-11  Jim Meyering  <meyering@fb.com>
10024         perl: require the "warnings" module
10025         * m4/perl.m4: Also "use warnings", so we reject the perl found
10026         on at least one IRIX 6.5 system. Reported by Bruno Haible in
10027         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
10029 2020-01-10  Bruno Haible  <bruno@clisp.org>
10031         Fix major regression from 2020-01-04.
10032         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
10033         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
10034         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
10035         AC_DEFUN_ONCE.
10036         (AC_CHECK_DECL): Invoke, not require, it.
10038 2020-01-10  Bruno Haible  <bruno@clisp.org>
10040         c32snrtombs: Add tests.
10041         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
10042         * tests/test-c32snrtombs-1.sh: New file, based on
10043         tests/test-wcsnrtombs1.sh.
10044         * tests/test-c32snrtombs-2.sh: New file, based on
10045         tests/test-wcsnrtombs2.sh.
10046         * tests/test-c32snrtombs-3.sh: New file, based on
10047         tests/test-wcsnrtombs3.sh.
10048         * tests/test-c32snrtombs-4.sh: New file, based on
10049         tests/test-wcsnrtombs4.sh.
10050         * modules/c32snrtombs-tests: New file, based on
10051         modules/wcsnrtombs-tests.
10053         c32snrtombs: New module.
10054         * lib/uchar.in.h (c32snrtombs): New declaration.
10055         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
10056         INTERNAL_STATE, WCRTOMB.
10057         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
10058         * lib/c32snrtombs.c: New file.
10059         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
10060         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
10061         * modules/c32snrtombs: New file.
10062         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
10063         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
10065 2020-01-09  Bruno Haible  <bruno@clisp.org>
10067         c32srtombs: Add tests.
10068         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
10069         * tests/test-c32srtombs-1.sh: New file, based on
10070         tests/test-wcsrtombs1.sh.
10071         * tests/test-c32srtombs-2.sh: New file, based on
10072         tests/test-wcsrtombs2.sh.
10073         * tests/test-c32srtombs-3.sh: New file, based on
10074         tests/test-wcsrtombs3.sh.
10075         * tests/test-c32srtombs-4.sh: New file, based on
10076         tests/test-wcsrtombs4.sh.
10077         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
10079         c32srtombs: New module.
10080         * lib/uchar.in.h (c32srtombs): New declaration.
10081         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
10082         INTERNAL_STATE, WCRTOMB.
10083         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
10084         * lib/c32srtombs.c: New file.
10085         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
10086         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
10087         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
10088         * modules/c32srtombs: New file.
10089         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
10090         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
10092 2020-01-08  Bruno Haible  <bruno@clisp.org>
10094         c32tob: Make consistent with mbrtoc32.
10095         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
10096         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
10097         use c32rtomb, not wctob.
10098         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
10099         (Depends-on): Add c32rtomb.
10100         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
10102 2020-01-08  Bruno Haible  <bruno@clisp.org>
10104         c32rtomb: Add tests.
10105         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
10106         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
10107         * tests/test-c32rtomb-w32.c: New file, based on
10108         tests/test-wcrtomb-w32.c.
10109         * tests/test-c32rtomb-w32-1.sh: New file, based on
10110         tests/test-wcrtomb-w32-1.sh.
10111         * tests/test-c32rtomb-w32-2.sh: New file, based on
10112         tests/test-wcrtomb-w32-2.sh.
10113         * tests/test-c32rtomb-w32-3.sh: New file, based on
10114         tests/test-wcrtomb-w32-3.sh.
10115         * tests/test-c32rtomb-w32-4.sh: New file, based on
10116         tests/test-wcrtomb-w32-4.sh.
10117         * tests/test-c32rtomb-w32-5.sh: New file, based on
10118         tests/test-wcrtomb-w32-5.sh.
10119         * tests/test-c32rtomb-w32-6.sh: New file, based on
10120         tests/test-wcrtomb-w32-6.sh.
10121         * tests/test-c32rtomb-w32-7.sh: New file, based on
10122         tests/test-wcrtomb-w32-7.sh.
10123         * modules/c32rtomb-tests: New file.
10125         c32rtomb: New module.
10126         * lib/uchar.in.h (c32rtomb): New declaration.
10127         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
10128         * m4/c32rtomb.m4: New file.
10129         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
10130         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
10131         REPLACE_C32RTOMB.
10132         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
10133         HAVE_C32RTOMB, REPLACE_C32RTOMB.
10134         * modules/c32rtomb: New file.
10135         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
10136         * doc/posix-functions/c32rtomb.texi: Document the new module.
10137         * doc/posix-functions/wcrtomb.texi: Mention the new module.
10139 2020-01-08  Bruno Haible  <bruno@clisp.org>
10141         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
10142         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
10143         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
10144         but is not working.
10145         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
10146         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
10147         differ, use the system's mbrtoc32, adding workarounds.
10148         * modules/mbrtoc32 (Depends-on): Add hard-locale.
10149         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
10150         Windows problem.
10151         * lib/btoc32.c: Include <stdio.h>, <string.h>.
10152         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
10153         use mbrtoc32, not btowc.
10154         * modules/btoc32 (Depends-on): Add mbrtoc32.
10155         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
10156         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
10157         * modules/mbsrtoc32s (Depends-on): Update conditions.
10158         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
10159         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
10160         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
10161         * modules/mbsnrtoc32s (Depends-on): Update conditions.
10162         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
10164 2020-01-07  Bruno Haible  <bruno@clisp.org>
10166         wcrtomb: Make multithread-safe, except possibly on IRIX.
10167         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
10168         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
10169         WCRTOMB_RETVAL_BUG.
10170         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
10171         wctomb only on IRIX.
10173 2020-01-05  Jim Meyering  <meyering@fb.com>
10175         tests: skip thread-using tests when threading is disabled
10176         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
10177         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
10178         of those, so they are skipped in this case.
10179         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
10180         * tests/test-setlocale_null-mt-all.c (main): Likewise.
10181         * tests/test-setlocale_null-mt-one.c (main): Likewise.
10183 2020-01-05  Bruno Haible  <bruno@clisp.org>
10185         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
10186         Reported by Jim Meyering in
10187         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
10188         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
10189         (GNULIB_defined_ptsname_r): New macro.
10190         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
10191         (main): Disable the NULL argument test if canonicalize_file_name does
10192         not come from gnulib.
10193         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
10194         (main): Disable the NULL argument test if canonicalize_file_name does
10195         not come from gnulib.
10196         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
10197         (test_errors): Disable the NULL argument test if ptsname_r does not come
10198         from gnulib.
10200 2020-01-04  Jim Meyering  <meyering@fb.com>
10202         update-copyright: reenable its always-skipped test
10203         * tests/test-update-copyright.sh: Restore the "-pi" options removed
10204         on 2019-06-15. Without those, an internal preliminary test would
10205         fail, causing this test always to be skipped.
10206         Verify that the test is now run and passes via this:
10207           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
10209 2020-01-05  Bruno Haible  <bruno@clisp.org>
10211         mbstoc32s: Add tests.
10212         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
10213         * tests/test-mbstoc32s-1.sh: New file, based on
10214         tests/test-mbsrtoc32s-1.sh.
10215         * tests/test-mbstoc32s-2.sh: New file, based on
10216         tests/test-mbsrtoc32s-2.sh.
10217         * tests/test-mbstoc32s-3.sh: New file, based on
10218         tests/test-mbsrtoc32s-3.sh.
10219         * tests/test-mbstoc32s-4.sh: New file, based on
10220         tests/test-mbsrtoc32s-4.sh.
10221         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
10223         mbstoc32s: New module.
10224         * lib/uchar.in.h (mbstoc32s): New declaration.
10225         * lib/mbstoc32s.c: New file.
10226         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
10227         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
10228         * modules/mbstoc32s: New file.
10229         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
10230         * doc/posix-functions/mbstowcs.texi: Mention the new module.
10232 2020-01-05  Bruno Haible  <bruno@clisp.org>
10234         Tweak recently added tests.
10235         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
10236         * tests/test-mbsrtoc32s.c: Likewise.
10237         * tests/test-mbsnrtoc32s.c: Likewise.
10239 2020-01-04  Bruno Haible  <bruno@clisp.org>
10241         mbsnrtoc32s: Add tests.
10242         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
10243         * tests/test-mbsnrtoc32s-1.sh: New file, based on
10244         tests/test-mbsnrtowcs1.sh.
10245         * tests/test-mbsnrtoc32s-2.sh: New file, based on
10246         tests/test-mbsnrtowcs2.sh.
10247         * tests/test-mbsnrtoc32s-3.sh: New file, based on
10248         tests/test-mbsnrtowcs3.sh.
10249         * tests/test-mbsnrtoc32s-4.sh: New file, based on
10250         tests/test-mbsnrtowcs4.sh.
10251         * modules/mbsnrtoc32s-tests: New file, based on
10252         modules/mbsnrtowcs-tests.
10254         mbsnrtoc32s: New module.
10255         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
10256         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
10257         INTERNAL_STATE, MBRTOWC.
10258         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
10259         * lib/mbsnrtoc32s.c: New file.
10260         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
10261         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
10262         * modules/mbsnrtoc32s: New file.
10263         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
10264         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
10266 2020-01-04  Bruno Haible  <bruno@clisp.org>
10268         mbsrtoc32s tests: Enhance test.
10269         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
10270         test strings for UTF-8 and GB18030.
10272 2020-01-04  Bruno Haible  <bruno@clisp.org>
10274         mbsrtoc32s: Fix bug.
10275         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
10276         that SMALL_WCHAR_T is defined.
10278 2020-01-04  Bruno Haible  <bruno@clisp.org>
10280         mbsrtoc32s: Add tests.
10281         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
10282         * tests/test-mbsrtoc32s-1.sh: New file, based on
10283         tests/test-mbsrtowcs1.sh.
10284         * tests/test-mbsrtoc32s-2.sh: New file, based on
10285         tests/test-mbsrtowcs2.sh.
10286         * tests/test-mbsrtoc32s-3.sh: New file, based on
10287         tests/test-mbsrtowcs3.sh.
10288         * tests/test-mbsrtoc32s-4.sh: New file, based on
10289         tests/test-mbsrtowcs4.sh.
10290         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
10292         mbsrtoc32s: New module.
10293         * lib/uchar.in.h (mbsrtoc32s): New declaration.
10294         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
10295         INTERNAL_STATE, MBRTOWC.
10296         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
10297         * lib/mbsrtoc32s.c: New file.
10298         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
10299         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
10300         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
10301         * modules/mbsrtoc32s: New file.
10302         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
10303         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
10305 2020-01-04  Bruno Haible  <bruno@clisp.org>
10307         mbrtowc, mbrtoc32: Tighten dependendies.
10308         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
10309         REPLACE_MBSTATE_T is 1.
10310         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
10311         REPLACE_MBSTATE_T is 0.
10312         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
10313         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
10314         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
10315         REPLACE_MBSTATE_T is 0.
10317 2020-01-04  Bruno Haible  <bruno@clisp.org>
10319         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
10320         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
10321         * modules/uchar (Files): Add stdint.m4.
10322         (Makefile.am): Substitute SMALL_WCHAR_T.
10323         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
10325 2020-01-04  Bruno Haible  <bruno@clisp.org>
10327         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
10328         Reported by Martin Storsjö <martin@martin.st> in
10329         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
10330         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
10331         New macros.
10332         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
10334 2020-01-04  Bruno Haible  <bruno@clisp.org>
10336         btoc32: Add tests.
10337         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
10338         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
10339         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
10340         * modules/btoc32-tests: New file, based on modules/btowc-tests.
10342         btoc32: New module.
10343         * lib/uchar.in.h (btoc32): New declaration.
10344         * lib/btoc32.c: New file.
10345         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
10346         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
10347         * modules/btoc32: New file.
10348         * tests/test-uchar-c++.cc: Test the signature of btoc32.
10349         * doc/posix-functions/btowc.texi: Mention the new module.
10351 2020-01-03  Bruno Haible  <bruno@clisp.org>
10353         uchar tests: Avoid compilation error with HP cc.
10354         * tests/test-uchar.c: Disable a test when HP cc is in use.
10356 2020-01-03  Bruno Haible  <bruno@clisp.org>
10358         mbrtoc32: Add tests.
10359         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
10360         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
10361         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
10362         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
10363         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
10364         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
10365         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
10366         * tests/test-mbrtoc32-w32-1.sh: New file, based on
10367         tests/test-mbrtowc-w32-1.sh.
10368         * tests/test-mbrtoc32-w32-2.sh: New file, based on
10369         tests/test-mbrtowc-w32-2.sh.
10370         * tests/test-mbrtoc32-w32-3.sh: New file, based on
10371         tests/test-mbrtowc-w32-3.sh.
10372         * tests/test-mbrtoc32-w32-4.sh: New file, based on
10373         tests/test-mbrtowc-w32-4.sh.
10374         * tests/test-mbrtoc32-w32-5.sh: New file, based on
10375         tests/test-mbrtowc-w32-5.sh.
10376         * tests/test-mbrtoc32-w32-6.sh: New file, based on
10377         tests/test-mbrtowc-w32-6.sh.
10378         * tests/test-mbrtoc32-w32-7.sh: New file, based on
10379         tests/test-mbrtowc-w32-7.sh.
10380         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
10382         mbrtoc32: New module.
10383         * lib/uchar.in.h (mbrtoc32): New declaration.
10384         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
10385         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
10386         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
10387         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
10388         REPLACE_MBRTOC32.
10389         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
10390         HAVE_MBRTOC32, REPLACE_MBRTOC32.
10391         * modules/mbrtoc32: New file, based on modules/mbrtowc.
10392         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
10393         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
10394         $(LIB_MBRTOWC).
10395         * doc/posix-functions/mbrtoc32.texi: Document the new module.
10396         * doc/posix-functions/mbrtowc.texi: Mention the new module.
10398 2020-01-03  Bruno Haible  <bruno@clisp.org>
10400         mbrtowc: Refactor to share code with mbrtoc32.
10401         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
10402         * lib/mbrtowc-impl-utf8.h: Likewise.
10403         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
10404         mbrtowc-impl.h.
10405         * modules/mbrtowc (Files): Add the new files.
10407 2020-01-03  Jim Meyering  <meyering@fb.com>
10409         doc: fix time.texi wording
10410         * doc/posix-headers/time.texi (time.h): Typo.
10412 2020-01-03  Bruno Haible  <bruno@clisp.org>
10414         mbrtowc: Refactor locale charset dispatching.
10415         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
10416         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
10417         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
10418         localcharset.h, streq.h.
10419         (enc_t): Remove type.
10420         (locale_enc): Remove function.
10421         (cached_locale_enc): Remove variable.
10422         (locale_enc_cached): Remove function.
10423         (mbrtowc): Invoke locale_encoding_classification.
10424         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
10425         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
10426         lc-charset-dispatch.c.
10427         (configure.ac): Arrange to compile lc-charset-dispatch.c.
10429 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
10431         doc: mention 32-bit time_t issue
10432         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10433         * doc/posix-headers/time.texi (time.h): Mention 2038.
10435 2020-01-03  Bruno Haible  <bruno@clisp.org>
10437         mbrtowc: Ensure the mbtowc_lock is unique.
10438         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
10439         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
10440         lib/setlocale_null.c.
10441         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
10442         glthread/lock.h. Include mbtowc-lock.h.
10443         (mbtowc_lock): Remove declaration.
10444         (mbrtowc): Use mbtowc_with_lock.
10445         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
10446         threads.h. Set LIB_MBRTOWC.
10447         (gl_PREREQ_MBTOWC_LOCK): New macro.
10448         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
10449         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
10450         (Depends-on): Remove lock.
10451         (configure.ac): Arrange to compile mbtowc-lock.c.
10452         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
10453         * modules/acl (Link): Likewise.
10454         * modules/argmatch (Link): Likewise.
10455         * modules/backup-rename (Link): Likewise.
10456         * modules/backupfile (Link): Likewise.
10457         * modules/closein (Link): Likewise.
10458         * modules/closeout (Link): Likewise.
10459         * modules/copy-file (Link): Likewise.
10460         * modules/csharpcomp (Link): Likewise.
10461         * modules/csharpexec (Link): Likewise.
10462         * modules/dfa (Link): Likewise.
10463         * modules/exclude (Link): Likewise.
10464         * modules/fnmatch (Link): Likewise.
10465         * modules/fnmatch-gnu (Link): Likewise.
10466         * modules/fnmatch-posix (Link): Likewise.
10467         * modules/glob (Link): Likewise.
10468         * modules/human (Link): Likewise.
10469         * modules/javacomp (Link): Likewise.
10470         * modules/javaexec (Link): Likewise.
10471         * modules/javaversion (Link): Likewise.
10472         * modules/mbfile (Link): Likewise.
10473         * modules/mbiter (Link): Likewise.
10474         * modules/mbmemcasecmp (Link): Likewise.
10475         * modules/mbmemcasecoll (Link): Likewise.
10476         * modules/mbrlen (Link): Likewise.
10477         * modules/mbscasecmp (Link): Likewise.
10478         * modules/mbscasestr (Link): Likewise.
10479         * modules/mbschr (Link): Likewise.
10480         * modules/mbscspn (Link): Likewise.
10481         * modules/mbsinit (Link): Likewise.
10482         * modules/mbslen (Link): Likewise.
10483         * modules/mbsncasecmp (Link): Likewise.
10484         * modules/mbsnlen (Link): Likewise.
10485         * modules/mbsnrtowcs (Link): Likewise.
10486         * modules/mbspbrk (Link): Likewise.
10487         * modules/mbspcasecmp (Link): Likewise.
10488         * modules/mbsrchr (Link): Likewise.
10489         * modules/mbsrtowcs (Link): Likewise.
10490         * modules/mbssep (Link): Likewise.
10491         * modules/mbsspn (Link): Likewise.
10492         * modules/mbsstr (Link): Likewise.
10493         * modules/mbstok_r (Link): Likewise.
10494         * modules/mbswidth (Link): Likewise.
10495         * modules/mbuiter (Link): Likewise.
10496         * modules/mkdir-p (Link): Likewise.
10497         * modules/propername (Link): Likewise.
10498         * modules/quote (Link): Likewise.
10499         * modules/quotearg (Link): Likewise.
10500         * modules/quotearg-simple (Link): Likewise.
10501         * modules/regex-quote (Link): Likewise.
10502         * modules/rpmatch (Link): Likewise.
10503         * modules/sh-quote (Link): Likewise.
10504         * modules/system-quote (Link): Likewise.
10505         * modules/trim (Link): Likewise.
10506         * modules/unistdio/ulc-asnprintf (Link): Likewise.
10507         * modules/unistdio/ulc-fprintf (Link): Likewise.
10508         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
10509         * modules/unistdio/ulc-vasprintf (Link): Likewise.
10510         * modules/unistdio/ulc-vfprintf (Link): Likewise.
10511         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
10512         * modules/unistdio/ulc-vsprintf (Link): Likewise.
10513         * modules/xfreopen (Link): Likewise.
10514         * modules/xmemcoll (Link): Likewise.
10515         * modules/yesno (Link): Likewise.
10516         * modules/regex (Link): Add $(LIB_MBRTOWC).
10517         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
10518         instead of $(LIBTHREAD).
10519         * modules/argmatch-tests (Makefile.am): Likewise.
10520         * modules/closein-tests (Makefile.am): Likewise.
10521         * modules/copy-file-tests (Makefile.am): Likewise.
10522         * modules/dfa-tests (Makefile.am): Likewise.
10523         * modules/fnmatch-tests (Makefile.am): Likewise.
10524         * modules/glob-tests (Makefile.am): Likewise.
10525         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10526         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10527         * modules/mbrtowc-tests (Makefile.am): Likewise.
10528         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10529         * modules/mbscasestr-tests (Makefile.am): Likewise.
10530         * modules/mbschr-tests (Makefile.am): Likewise.
10531         * modules/mbscspn-tests (Makefile.am): Likewise.
10532         * modules/mbsinit-tests (Makefile.am): Likewise.
10533         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10534         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10535         * modules/mbspbrk-tests (Makefile.am): Likewise.
10536         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10537         * modules/mbsrchr-tests (Makefile.am): Likewise.
10538         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10539         * modules/mbsspn-tests (Makefile.am): Likewise.
10540         * modules/mbsstr-tests (Makefile.am): Likewise.
10541         * modules/quotearg-simple-tests (Makefile.am): Likewise.
10542         * modules/quotearg-tests (Makefile.am): Likewise.
10543         * modules/readtokens-tests (Makefile.am): Likewise.
10544         * modules/sh-quote-tests (Makefile.am): Likewise.
10545         * modules/system-quote-tests (Makefile.am): Likewise.
10546         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
10547         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10548         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
10549         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
10550         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
10551         * modules/yesno-tests (Makefile.am): Likewise.
10552         * modules/exclude-tests (Makefile.am): Link the programs with
10553         $(LIB_MBRTOWC).
10554         * modules/regex-tests (Makefile.am): Likewise.
10555         * modules/regex-quote-tests (Makefile.am): Likewise.
10557 2020-01-03  Bruno Haible  <bruno@clisp.org>
10559         getopt-posix: Fix compilation failure in testdirs.
10560         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
10561         when the gnulib module 'getopt-posix' is enabled.
10562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
10563         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
10564         module indicator.
10565         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
10567 2020-01-03  Bruno Haible  <bruno@clisp.org>
10569         doc: Mention the 64-bit inode number problem.
10570         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
10571         64-bit inode number problem.
10572         * doc/posix-functions/stat.texi: Mention that this module fixes the
10573         64-bit inode number problem.
10574         * doc/posix-functions/lstat.texi: Likewise.
10575         * doc/posix-functions/fstat.texi: Likewise.
10576         * doc/posix-functions/readdir.texi: Add more details.
10577         * doc/posix-functions/readdir_r.texi: Likewise.
10579 2020-01-02  Bruno Haible  <bruno@clisp.org>
10581         wcrtomb: Add more tests.
10582         * tests/test-wcrtomb-w32.c: Include localcharset.h.
10583         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
10584         locale_charset() returns the expected value; otherwise, skip the test.
10585         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
10586         * tests/test-wcrtomb-w32-7.sh: Likewise.
10587         * modules/wcrtomb-tests (Files): Add these files.
10588         (Depends-on): Add localcharset.
10589         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
10591 2020-01-02  Bruno Haible  <bruno@clisp.org>
10593         mbrtowc: Add more tests.
10594         * tests/test-mbrtowc-w32.c: Include localcharset.h.
10595         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
10596         locale_charset() returns the expected value; otherwise, skip the test.
10597         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
10598         * tests/test-mbrtowc-w32-7.sh: Likewise.
10599         * modules/mbrtowc-tests (Files): Add these files.
10600         (Depends-on): Add localcharset.
10601         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
10603 2020-01-02  Bruno Haible  <bruno@clisp.org>
10605         mbrtowc: Fix test failures on MSVC (regression by previous commit).
10606         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
10607         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
10608         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
10609         MBRTOWC_STORES_INCOMPLETE_BUG.
10610         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
10612 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10614         doc: mention glibc bug 24269
10615         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
10616         Reformat slightly so that it looks nicer in the Grep manual.
10618 2020-01-02  Bruno Haible  <bruno@clisp.org>
10620         mbrtowc: Don't replace mbstate_t on MSVC.
10621         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
10622         a missing mbsinit function on native Windows.
10623         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
10624         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
10625         MSVC bug.
10626         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
10628 2020-01-02  Bruno Haible  <bruno@clisp.org>
10630         setlocale-null: Avoid crashing the MSVC linker.
10631         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
10632         MSVC.
10634 2020-01-02  Bruno Haible  <bruno@clisp.org>
10636         wchar: Make the HP-UX workaround work on HP-UX 11.31.
10637         * modules/wchar (Depends-on): Add inttypes-incomplete.
10638         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
10639         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
10640         of strtoimax.
10642 2020-01-02  Bruno Haible  <bruno@clisp.org>
10644         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
10645         * lib/mbrtowc.c: Include <stdint.h>.
10646         * modules/mbrtowc (Depends-on): Add stdint.
10648 2020-01-01  Pádraig Brady  <P@draigBrady.com>
10650         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
10651         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
10652         which will auto enable use of openssl, only for >= version 3,
10653         which is newly licensed under the Apache Software License.
10655 2020-01-01  Bruno Haible  <bruno@clisp.org>
10657         mbrtowc: Include function name in macro names.
10658         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
10659         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
10660         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
10661         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
10662         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
10663         C_LOCALE_MAYBE_EILSEQ.
10665 2020-01-01  Bruno Haible  <bruno@clisp.org>
10667         c32tob: New module.
10668         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
10669         (c32tob): New declaration.
10670         * lib/c32tob.c: New file.
10671         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
10672         macros.
10673         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
10674         * modules/uchar (Depends-on): Add snippet/c++defs.
10675         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
10676         uchar.h.
10677         * modules/c32tob: New file.
10678         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
10679         defined.
10680         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
10681         c32tob.
10682         * modules/uchar-c++-tests (Files): Add tests/signature.h.
10683         * doc/posix-functions/wctob.texi: Mention the new module.
10685 2020-01-01  Bruno Haible  <bruno@clisp.org>
10687         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
10688         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
10689         $(LIB_SETLOCALE).
10691 2020-01-01  Bruno Haible  <bruno@clisp.org>
10693         hard-locale tests: Fix a conflict with the C++ tests.
10694         * modules/hard-locale-tests (Makefile.am): Build a program named
10695         'current-locale', not 'locale'.
10697 2020-01-01  Bruno Haible  <bruno@clisp.org>
10699         doc: Update documentation about wchar_t.
10700         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
10701         wchar_t type.
10703 2020-01-01  Bruno Haible  <bruno@clisp.org>
10705         mbrtowc tests: Fix typos.
10706         * tests/test-mbrtowc.c (main): Fix typo.
10707         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
10709 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10711         maint: update copyright notices
10712         Before doing the following changes done by hand, I also ran ‘make
10713         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
10714         to do most of the copyright years automatically.  A few upstream
10715         sources are still in 2019 but these should eventually be changed
10716         automatically too.
10717         * build-aux/declared.sh (func_version):
10718         * build-aux/libtool-next-version (func_version):
10719         * build-aux/run-test (func_version):
10720         Update these notices by hand.  Put just the last year
10721         in output of programs, as per GNU coding standards.
10723 2019-12-31  Bruno Haible  <bruno@clisp.org>
10725         uchar: Add C++ tests.
10726         * tests/test-uchar-c++.cc: New file.
10727         * tests/test-uchar-c++2.cc: New file.
10728         * modules/uchar-c++-tests: New file.
10730         uchar: Add tests.
10731         * tests/test-uchar.c: New file.
10732         * modules/uchar-tests: New file.
10734         uchar: New module.
10735         * lib/uchar.in.h: New file.
10736         * m4/uchar.m4: New file.
10737         * modules/uchar: New file.
10738         * doc/posix-headers/uchar.texi: Mention the new module.
10740 2019-12-30  Jim Meyering  <meyering@fb.com>
10742         localeinfo: ->simple would be wrong for LC_ALL=C
10743         That would lead to using unnecessary and expensive code paths in dfa.c.
10744         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
10745         error that would have made grep many times slower in the C locale.
10746         With this change, and a file created like this:
10747           yes 00 | head -10000000 > in
10748         Running grep as follows becomes more than 40 times faster:
10749           LC_ALL=C grep -Fw 0 in
10751 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10753         doc: document trouble with back-references
10754         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
10756 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10758         doc: use “back-reference” for \1 etc.
10759         * doc/regex.texi: Consistently spell “back-reference” with
10760         a hyphen, since that’s how POSIX does it.
10762 2019-12-26  Jim Meyering  <meyering@fb.com>
10764         test-framework-sh: tighten an internal grep regexp
10765         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
10766         that helps test for a working printf.
10768 2019-12-26  Bruno Haible  <bruno@clisp.org>
10770         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
10771         Reported by Paul Eggert in
10772         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
10773         Simplification by Jim Meyering.
10774         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
10775         octal escape sequence in a UTF-8 locale.
10777 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
10779         mbrtowc: port better to narrow-wchar_t platforms
10780         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
10781         wchar_t is too narrow to represent all the Unicode characters,
10782         consider a byte sequence for an out-of-wchar_t-range character to
10783         be an encoding error.  This fixes grep’s surrogate-pair test
10784         failure on AIX 7.2.
10786 2019-12-24  Bruno Haible  <bruno@clisp.org>
10788         localcharset: Avoid referencing rpl_setlocale on native Windows.
10789         * lib/localcharset.c (setlocale): Undefine.
10791 2019-12-24  Bruno Haible  <bruno@clisp.org>
10793         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
10794         * m4/semaphore.m4: New file.
10795         * modules/lock-tests (Files): Add it.
10796         (configure.ac): Require gl_SEMAPHORE.
10797         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
10799 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
10801         strptime: fix typo in previous patch
10802         Problem and fix reported by Bruno Haible in:
10803         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
10804         * lib/strptime.c (day_of_the_week): Fix paren bug.
10806 2019-12-24  Bruno Haible  <bruno@clisp.org>
10808         setlocale-null: Make it easy to rely on the lock in another library.
10809         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
10810         defined.
10812 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10814         gethrxtime, mktime, nstrftime, strptime: tweak division performance
10815         Performanced analyzed by Bruno Haible in:
10816         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
10817         * config/srclist.txt: Do not sync mktime.c for now.
10818         * lib/mktime.c (shr, ydhms_diff):
10819         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
10820         * lib/strptime.c (day_of_the_week):
10821         * lib/xtime.h (xtime_sec):
10822         Redo with neither ‘%’ nor conditional branches.
10824 2019-12-23  Bruno Haible  <bruno@clisp.org>
10826         setlocale-null: Export the lock function also on non-Windows platforms.
10827         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
10828         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
10829         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
10830         * modules/setlocale-null (configure.ac): Invoke it.
10831         (Files): Add m4/visibility.m4.
10833 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10835         gethrxtime: fix rounding bug with negative args
10836         Problem reported by Bruno Haible in:
10837         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
10838         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
10839         with negative rounding.  Common platforms can compute / and % with
10840         a single instruction, so the simplified code should be shorter and
10841         faster on these platforms anyway.
10843 2019-12-22  Bruno Haible  <bruno@clisp.org>
10845         gethrxtime: remove incorrect overflow detection
10846         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
10847         integer overflow, as it didn’t suffice.  This reverts the xtime.h
10848         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
10849         cannot now see the need for anyway (even in cases where it works),
10850         as the patch is helpful only when the signs of S and NS disagree,
10851         and all callers pass nonnegative values for S and NS.
10853 2019-12-22  Bruno Haible  <bruno@clisp.org>
10855         setlocale-null: Add standalone include file.
10856         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
10857         * lib/locale.in.h: Include setlocale_null.h.
10858         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
10859         setlocale_null): Remove declarations.
10860         * lib/setlocale_null.c: Include setlocale_null.h.
10861         * lib/localename.c: Likewise.
10862         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
10863         (Depends-on): Add snippet/arg-nonnull.
10864         (Include): Allow either "setlocale_null.h" or <locale.h>.
10866 2019-12-22  Bruno Haible  <bruno@clisp.org>
10868         strfmon_l: Fix test failures on FreeBSD and Cygwin.
10869         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
10870         AC_RUN_IFELSE test.
10871         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
10872         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
10873         problem.
10875 2019-12-22  Bruno Haible  <bruno@clisp.org>
10877         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
10878         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
10879         unconditional AC_LIBOBJ.
10880         * modules/selinux-at: Likewise.
10881         * modules/xmemdup0: Likewise.
10882         * modules/xstrtoll: Likewise.
10884 2019-12-22  Bruno Haible  <bruno@clisp.org>
10886         longlong: Mark module obsolete.
10887         * modules/longlong (Status, Notice): New sections.
10889         stdint: Assume that the compiler supports 'long long'.
10890         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
10891         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
10892         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10893         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
10894         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10895         * modules/stdint (Files): Remove longlong.m4.
10896         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
10897         HAVE_UNSIGNED_LONG_LONG_INT.
10899         inttypes-incomplete: Assume that the compiler supports 'long long'.
10900         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
10901         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
10902         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10903         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
10904         HAVE_LONG_LONG_INT to be 1.
10905         * modules/inttypes-incomplete (Makefile.am): Don't substitute
10906         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
10908         malloca: Assume that the compiler supports 'long long'.
10909         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
10910         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
10911         * modules/malloca (Files): Remove longlong.m4.
10912         * modules/relocatable-prog-wrapper (Files): Likewise.
10914         atoll: Assume that the compiler supports 'long long'.
10915         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
10916         * modules/atoll (Files): Remove longlong.m4.
10918         strtoll: Assume that the compiler supports 'long long'.
10919         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
10920         * modules/strtoll (Files): Remove longlong.m4.
10922         strtoull: Assume that the compiler supports 'long long'.
10923         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
10924         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10925         * modules/strtoull (Files): Remove longlong.m4.
10927         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
10928         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
10929         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10930         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
10931         AC_TYPE_LONG_LONG_INT.
10932         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
10933         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10934         * modules/strtoimax (Files): Remove longlong.m4.
10935         * modules/strtoumax (Files): Likewise.
10937         xstrtoll: Assume that the compiler supports 'long long'.
10938         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
10939         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
10941         vasnprintf: Assume that the compiler supports 'long long'.
10942         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
10943         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
10944         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10945         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
10946         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
10947         require AC_TYPE_LONG_LONG_INT.
10948         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10949         gl_PREREQ_VASNPRINTF): Likewise.
10950         * modules/vasnprintf (Files): Remove longlong.m4.
10951         * modules/c-vasnprintf (Files): Likewise.
10952         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10953         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10954         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10955         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10956         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10957         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10958         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10960         gethrxtime: Assume that the compiler supports 'long long'.
10961         * lib/xtime.h (xtime_t): Define to 'long long int' always.
10962         (XTIME_PRECISION): Define to 1000000000 always.
10963         (xtime_make, xtime_sec): Optimize accordingly.
10964         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
10965         * modules/gethrxtime (Files): Remove longlong.m4.
10967         integer_length*: Assume that the compiler supports 'long long'.
10968         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
10969         * modules/integer_length (Files): Remove longlong.m4.
10970         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10971         * modules/integer_length_l (Files): Remove longlong.m4.
10972         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10973         * modules/integer_length_ll (Files): Remove longlong.m4.
10974         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10976         count-one-bits: Assume that the compiler supports 'long long'.
10977         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
10978         * m4/count-one-bits.m4: Remove file.
10979         * modules/count-one-bits (Files): Remove it.
10980         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
10981         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
10982         unconditionally.
10984         count-trailing-zeros: Assume that the compiler supports 'long long'.
10985         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
10986         unconditionally.
10987         * m4/count-trailing-zeros.m4: Remove file.
10988         * modules/count-trailing-zeros (Files): Remove it.
10989         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
10990         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
10991         unconditionally.
10993         count-leading-zeros: Assume that the compiler supports 'long long'.
10994         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
10995         unconditionally.
10996         * m4/count-leading-zeros.m4: Remove file.
10997         * modules/count-leading-zeros (Files): Remove it.
10998         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
10999         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
11000         unconditionally.
11002 2019-12-22  Bruno Haible  <bruno@clisp.org>
11004         localcharset: Update support for OpenBSD.
11005         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
11007 2019-12-21  Bruno Haible  <bruno@clisp.org>
11009         pthread_sigmask: Avoid test failure on NetBSD 8.0.
11010         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
11011         NetBSD.
11012         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
11014 2019-12-21  Bruno Haible  <bruno@clisp.org>
11016         threadlib: Improve code structure.
11017         * m4/threadlib.m4: Reorder macros. Add comments.
11019 2019-12-21  Bruno Haible  <bruno@clisp.org>
11021         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
11022         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
11023         here from m4/threads.m4).
11024         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
11025         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
11026         (gl_STDTHREADLIB): New macro.
11027         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
11028         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
11030 2019-12-21  Bruno Haible  <bruno@clisp.org>
11032         sched_yield: Don't depend on threadlib and yield.
11033         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
11034         LIB_SCHED_YIELD.
11035         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
11036         m4/yield.m4).
11037         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
11038         gl_THREADLIB and gl_YIELD.
11039         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
11040         based on $(LIB_SCHED_YIELD).
11041         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
11042         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
11043         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
11044         (Depends-on): Remove threadlib.
11045         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
11046         * modules/threads-h (Files): Remove m4/yield.m4.
11047         * modules/pthread-cond-tests (Makefile.am): Link the programs against
11048         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
11049         * modules/pthread-mutex-tests (Makefile.am): Likewise.
11050         * modules/pthread-once-tests (Makefile.am): Likewise.
11051         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
11052         * modules/pthread-tss-tests (Makefile.am): Likewise.
11054 2019-12-21  Bruno Haible  <bruno@clisp.org>
11056         threads-h: Don't depend on threadlib.
11057         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
11058         not gl_THREADLIB_EARLY.
11060 2019-12-21  Bruno Haible  <bruno@clisp.org>
11062         nl_langinfo tests: Fix link error (regression from 2019-12-18).
11063         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
11064         with $(LIB_SETLOCALE).
11066 2019-12-21  Bruno Haible  <bruno@clisp.org>
11068         threadlib: Remove unused dependency (left over from 2019-07-06).
11069         * modules/threadlib (Depends-on): Remove havelib.
11071 2019-12-21  Bruno Haible  <bruno@clisp.org>
11073         New convention for multithread-safety tests.
11074         * tests/test-setlocale_null-mt-one.c: Renamed from
11075         tests/test-setlocale_null-one.c.
11076         * tests/test-setlocale_null-mt-all.c: Renamed from
11077         tests/test-setlocale_null-all.c.
11078         * modules/setlocale-null-tests (Files, Makefile.am): Update.
11080 2019-12-21  Bruno Haible  <bruno@clisp.org>
11082         quotearg tests: Fix conflict with hard-locale tests.
11083         * tests/testlocale: Renamed from tests/locale.
11084         * modules/quotearg-tests (Files): Update.
11085         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
11087 2019-12-21  Bruno Haible  <bruno@clisp.org>
11089         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
11090         Reported by Daniel Richard G. in
11091         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
11092         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
11093         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
11094         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
11095         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
11096         alternative to PTHREAD_RWLOCK_INITIALIZER.
11097         * lib/glthread/lock.c: Likewise.
11099 2019-12-21  Bruno Haible  <bruno@clisp.org>
11101         memcmp tests: Work around the clang bug.
11102         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
11103         the clang optimization.
11105 2019-12-20  Bruno Haible  <bruno@clisp.org>
11107         localcharset: Add support for z/OS encoding names.
11108         * lib/localcharset.h: Mention which encodings are used as locale
11109         encodings on z/OS.
11111 2019-12-20  Bruno Haible  <bruno@clisp.org>
11113         iconv_open: Add support for z/OS encoding names.
11114         Reported by Daniel Richard G. in
11115         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
11116         * lib/iconv_open-zos.gperf: New file.
11117         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
11118         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
11119         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
11120         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
11121         * doc/posix-functions/iconv_open.texi: Mention z/OS.
11123 2019-12-20  Bruno Haible  <bruno@clisp.org>
11125         doc: Document the problem of the per-thread locale functions on z/OS.
11126         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
11127         * doc/posix-functions/newlocale.texi: Likewise.
11128         * doc/posix-functions/duplocale.texi: Likewise.
11129         * doc/posix-functions/freelocale.texi: Likewise.
11131 2019-12-20  Bruno Haible  <bruno@clisp.org>
11133         localename, gettext: Fix host_os value for z/OS.
11134         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
11135         cross-configuration code.
11137 2019-12-19  Jim Meyering  <meyering@fb.com>
11139         nstrftime: avoid a shadowing warning
11140         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
11141         to avoid shadowing an "i" declared hundreds of lines above.
11143 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
11145         dfa: struct dfamust now uses flexible array
11146         * lib/dfa.c: Include flexmember.h.
11147         (dfamust, dfamustfree): Adjust to struct dfamust change.
11148         This saves a call to malloc+free.
11149         * lib/dfa.h (struct dfamust): Make the final member a
11150         flexible array member.
11151         * modules/dfa (Depends-on): Add flexmember.
11153         dfa: fast->small for array elements
11154         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
11155         since this type is used in arrays.  This change is more for
11156         documentation than for any practical effect, since the two types
11157         are the same on all known platforms.
11159 2019-12-19  Bruno Haible  <bruno@clisp.org>
11161         iconv tests: Test canonicalized, not system-dependent, encoding names.
11162         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
11163         * modules/iconv-tests (Depends-on): Add iconv_open.
11165 2019-12-18  Bruno Haible  <bruno@clisp.org>
11167         localename: Fix test failure on AIX 7.2.
11168         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
11169         locales on AIX.
11170         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
11171         locales on AIX.
11173 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
11175         Improve port of AC_C_RESTRICT to Oracle C++
11176         Problem reported by Christian Biesinger in:
11177         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
11178         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
11179         Oracle Developer Studio C++ 12.5 or later.
11181 2019-12-18  Bruno Haible  <bruno@clisp.org>
11183         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
11184         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
11186 2019-12-18  Bruno Haible  <bruno@clisp.org>
11188         localename: Ensure multithread-safety in future changes.
11189         * lib/localename.c (setlocale): Reference the system's setlocale().
11190         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
11191         (gl_locale_name_posix): Likewise.
11192         * modules/localename (Depends-on): Add setlocale-null.
11194 2019-12-18  Bruno Haible  <bruno@clisp.org>
11196         setlocale-null: Make API more useful.
11197         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
11198         callers changed.
11199         (setlocale_null): New declaration.
11200         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
11201         extracted from setlocale_null_unlocked.
11202         (setlocale_null_unlocked): Invoke it.
11203         (setlocale_null_r): Renamed from setlocale_null.
11204         (setlocale_null): New function, extracted from setlocale_mtsafe in
11205         setlocale.c.
11206         * lib/setlocale.c: Don't include <errno.h>.
11207         (setlocale_mtsafe): Invoke setlocale_null.
11208         * lib/setlocale-lock.c: Update comments.
11209         * doc/posix-functions/setlocale.texi: Mention both functions.
11211 2019-12-18  Bruno Haible  <bruno@clisp.org>
11213         localename: Optimize code for native Windows.
11214         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
11215         category (not allowed here).
11217 2019-12-18  Bruno Haible  <bruno@clisp.org>
11219         setlocale: Make calls with NULL argument multithread-safe.
11220         * lib/setlocale.c: Include <errno.h>.
11221         (setlocale_mtsafe): New function.
11222         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
11223         (setlocale_improved): Renamed from rpl_setlocale.
11224         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
11225         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
11226         LIB_SETLOCALE.
11227         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
11228         (Link): New section.
11229         * tests/locale.c: Undefine setlocale.
11230         * tests/test-setlocale_null-one.c: Likewise.
11231         * tests/test-setlocale_null-all.c: Likewise.
11232         * modules/setlocale-tests (Makefile.am): Link the test programs with
11233         $(LIB_SETLOCALE).
11234         * modules/astrxfrm-tests (Makefile.am): Likewise.
11235         * modules/btowc-tests (Makefile.am): Likewise.
11236         * modules/c-ctype-tests (Makefile.am): Likewise.
11237         * modules/c-snprintf-tests (Makefile.am): Likewise.
11238         * modules/c-strcase-tests (Makefile.am): Likewise.
11239         * modules/c-vasprintf-tests (Makefile.am): Likewise.
11240         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
11241         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
11242         * modules/dfa-tests (Makefile.am): Likewise.
11243         * modules/duplocale-tests (Makefile.am): Likewise.
11244         * modules/hard-locale-tests (Makefile.am): Likewise.
11245         * modules/localcharset-tests (Makefile.am): Likewise.
11246         * modules/localename-tests (Makefile.am): Likewise.
11247         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
11248         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
11249         * modules/mbrtowc-tests (Makefile.am): Likewise.
11250         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11251         * modules/mbscasestr-tests (Makefile.am): Likewise.
11252         * modules/mbschr-tests (Makefile.am): Likewise.
11253         * modules/mbscspn-tests (Makefile.am): Likewise.
11254         * modules/mbsinit-tests (Makefile.am): Likewise.
11255         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11256         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
11257         * modules/mbspbrk-tests (Makefile.am): Likewise.
11258         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11259         * modules/mbsrchr-tests (Makefile.am): Likewise.
11260         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
11261         * modules/mbsspn-tests (Makefile.am): Likewise.
11262         * modules/mbsstr-tests (Makefile.am): Likewise.
11263         * modules/nl_langinfo-tests (Makefile.am): Likewise.
11264         * modules/quotearg-tests (Makefile.am): Likewise.
11265         * modules/regex-tests (Makefile.am): Likewise.
11266         * modules/strfmon_l-tests (Makefile.am): Likewise.
11267         * modules/strtod-tests (Makefile.am): Likewise.
11268         * modules/strtold-tests (Makefile.am): Likewise.
11269         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
11270         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
11271         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
11272         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
11273         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
11274         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
11275         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
11276         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11277         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
11278         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
11279         * modules/wcrtomb-tests (Makefile.am): Likewise.
11280         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
11281         * modules/wcsrtombs-tests (Makefile.am): Likewise.
11282         * modules/wcwidth-tests (Makefile.am): Likewise.
11283         * doc/posix-functions/setlocale.texi: Mention that the multithread-
11284         safety fix is also available in module 'setlocale'.
11286 2019-12-18  Bruno Haible  <bruno@clisp.org>
11288         hard-locale: Make multithread-safe.
11289         * lib/hard-locale.h (hard_locale): Move documentation to here.
11290         * lib/hard-locale.c: Don't include <stdlib.h>.
11291         (GLIBC_VERSION): Remove macro.
11292         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
11293         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
11294         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
11295         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
11296         (Link): New section.
11297         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
11298         $(LIB_HARD_LOCALE).
11300 2019-12-18  Bruno Haible  <bruno@clisp.org>
11302         hard-locale: Avoid test failure on Haiku.
11303         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
11305 2019-12-18  Bruno Haible  <bruno@clisp.org>
11307         setlocale-null: Handle NULL result from setlocale.
11308         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
11309         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
11310         from setlocale or _wsetlocale.
11312 2019-12-18  Bruno Haible  <bruno@clisp.org>
11314         hard-locale: Add test.
11315         * tests/test-hard-locale.c: New file.
11316         * tests/locale.c: New file.
11317         * modules/hard-locale-tests: New file.
11319 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11321         dfa: do not match invalid UTF-8
11322         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
11323         from 5 to 9 tokens; this is needed due to the changes to
11324         add_utf8_anychar.
11325         (charclass_index): 2nd arg is now pointer-to-const.
11326         (add_utf8_anychar): Match only valid UTF-8 byte sequences
11327         instead of allowing overlong encodings or surrogate halves.
11329         dfa: simplify charclass by assuming C99
11330         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
11331         (charclass_word): Now always uint_fast64_t.
11332         (CHARCLASS_PAIR): Remove.
11333         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
11335         fts: tune via calloc
11336         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
11338         dfa: tune via xzalloc
11339         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
11341 2019-12-17  Bruno Haible  <bruno@clisp.org>
11343         localcharset: Fix multithread-safety bug on Windows and OS/2.
11344         * lib/localcharset.h (locale_charset): Clarify when the result becomes
11345         invalid.
11346         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
11347         assemble the result.
11349 2019-12-17  Bruno Haible  <bruno@clisp.org>
11351         localcharset: Optimize code for native Windows.
11352         * lib/localcharset.c (locale_charset): Don't bother calling
11353         setlocale (LC_ALL, NULL) since we're not interested in its result.
11355 2019-12-17  Bruno Haible  <bruno@clisp.org>
11357         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
11358         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
11359         setlocale.
11360         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
11361         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
11362         * modules/nl_langinfo (Depends-on): Add setlocale-null.
11364 2019-12-17  Bruno Haible  <bruno@clisp.org>
11366         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
11367         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
11368         stack-allocated buffer to assemble each result and different static
11369         buffers to return it.
11370         * tests/test-nl_langinfo-mt.c: New file.
11371         * modules/nl_langinfo-tests (Files): Add it.
11372         (Depends-on): Add thread, nanosleep.
11373         (Makefile.am): Build test-nl_langinfo-mt test.
11375 2019-12-17  Bruno Haible  <bruno@clisp.org>
11377         langinfo: Document more details.
11378         * doc/posix-headers/langinfo.texi: List platform details.
11379         * doc/posix-functions/nl_langinfo.texi: Likewise.
11381 2019-12-17  Bruno Haible  <bruno@clisp.org>
11383         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
11384         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
11385         and Martin Storsjö <martin@martin.st>
11386         in <https://savannah.gnu.org/bugs/?57406>.
11387         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
11388         mingw.
11390 2019-12-17  Bruno Haible  <bruno@clisp.org>
11392         glob: Avoid warning on mingw.
11393         Reported by Christian Biesinger <cbiesinger@google.com> in
11394         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
11395         * lib/glob.c (__stat64): Undefine first.
11397 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11399         xalloc: tune xzalloc for fresh allocations
11400         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
11401         because when the memory is freshly allocated from the OS via sbrk
11402         or mmap, calloc can avoid doing the memset.
11404         dfa: new function dfacopysyntax
11405         * lib/dfa.c (struct dfa): Move syntax member later so
11406         that dfacopysyntax can easily clear earlier members.
11407         (dfacopysyntax): New function, used by Gawk.
11409 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
11411         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
11412         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
11413         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
11414         if not already defined.
11416         dfa: remove one dependency on MB_CUR_MAX
11417         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
11419         dfa: remove struct lexer_state.cur_mb_len
11420         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
11421         as it’s not needed and the code is simpler without it.
11422         All uses removed.
11424 2019-12-16  Bruno Haible  <bruno@clisp.org>
11426         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
11427         Reported by Arnold Robbins <arnold@skeeve.com>.
11428         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
11429         copied from lib/glthread/lock.h.
11430         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
11431         (setlocale_null_with_lock): If pthread_in_use() is false, use
11432         setlocale_null_unlocked directly.
11433         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
11434         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
11435         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
11436         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
11437         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
11438         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
11440 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
11442         dfa: make dfasyntax thread-safe
11443         Problem reported by Bruno Haible in:
11444         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
11445         * lib/dfa.c: Do not include locale.h.
11446         (struct dfa): Remove simple_locale member.
11447         All uses replaced by localeinfo.simple.
11448         (using_simple_locale): Remove; now present (with some
11449         changes) in localeinfo.c.
11450         (dfasyntax): No need to initialize removed member.
11452         localeinfo: record whether locale is simple
11453         * lib/localeinfo.c (using_simple_locale): New function,
11454         copied here from lib/dfa.c but with a change: it uses
11455         strcoll for its heuristic, instead of using setlocale.
11456         This lets it be thread-safe.
11457         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
11459 2019-12-15  Bruno Haible  <bruno@clisp.org>
11461         duplocale: Fix multithread-safety bug on AIX.
11462         * lib/duplocale.c: Don't include <stdlib.h>.
11463         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
11464         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
11465         Set LIB_DUPLOCALE.
11466         * modules/duplocale (Depends-on): Add setlocale-null.
11467         (Link): New section.
11468         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
11469         $(LIB_DUPLOCALE).
11471 2019-12-15  Bruno Haible  <bruno@clisp.org>
11473         setlocale-null: Add tests.
11474         * tests/test-setlocale_null.c: New file.
11475         * tests/test-setlocale_null-one.c: New file.
11476         * tests/test-setlocale_null-all.c: New file.
11477         * modules/setlocale-null-tests: New file.
11479         setlocale-null: New module.
11480         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
11481         setlocale_null): New declarations.
11482         * lib/setlocale_null.c: New file.
11483         * lib/setlocale-lock.c: New file.
11484         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
11485         * m4/setlocale_null.m4: New file.
11486         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
11487         GNULIB_SETLOCALE_NULL.
11488         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
11489         * modules/setlocale-null: New file.
11490         * doc/posix-functions/setlocale.texi: Mention the new module.
11492 2019-12-15  Bruno Haible  <bruno@clisp.org>
11494         lock tests: Skip test when no multithreading is enabled.
11495         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
11497 2019-12-14  Bruno Haible  <bruno@clisp.org>
11499         locale, duplocale, localename: Fix last patch.
11500         Reported by Daniel Richard G. in
11501         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
11502         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
11503         Don't define if locale_t does not exist.
11505 2019-12-13  Bruno Haible  <bruno@clisp.org>
11507         locale, duplocale, localename: Fix errors if locale_t does not exist.
11508         Reported by Daniel Richard G. in
11509         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
11510         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
11511         macros.
11512         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
11513         HAVE_NEWLOCALE.
11514         * tests/test-localename.c: Likewise.
11515         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
11516         HAVE_DUPLOCALE.
11517         * tests/test-locale-c++.cc: Likewise.
11519 2019-12-13  Bruno Haible  <bruno@clisp.org>
11521         wcstok: Fix test failure on HP-UX.
11522         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
11523         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
11525 2019-12-12  Bruno Haible  <bruno@clisp.org>
11527         strtod, strtold tests: Avoid test failure on AIX 7.2.
11528         * tests/test-strtod1.c (main): Allow implementations in which ',' and
11529         '.' both are radix characters.
11530         * tests/test-strtold1.c (main): Likewise.
11532 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
11534         dfa: prefer ptrdiff_t for API, too
11535         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
11536         but do this only for internal use for now.
11537         * NEWS: Mention the API change.
11538         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
11539         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
11540         values known to be nonnegative.
11541         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
11542         Prefer idx_t or ptrdiff_t to size_t for API.
11543         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
11544         Prefer ptrdiff_t to size_t for API.
11546         stdalign: port to xlclang 16.01
11547         Problem reportd by Bruno Haible in:
11548         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
11549         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
11550         ((__aligned__ (...))) with xlclang, as a top-level
11551         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
11552         xlclang version 16.01.0000.0001; the alignment directive is ignored.
11554 2019-12-12  Bruno Haible  <bruno@clisp.org>
11556         duplocale: Fix test failure on AIX 7.2 with xlclang.
11557         * lib/duplocale.c: Include <stdlib.h>.
11558         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
11559         value.
11561 2019-12-12  Bruno Haible  <bruno@clisp.org>
11563         stddef: Document the AIX xlc issue.
11564         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
11566 2019-12-12  Bruno Haible  <bruno@clisp.org>
11568         duplocale: Don't attempt to override if locale_t does not exist.
11569         Reported by Daniel Richard G. in
11570         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
11571         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
11572         HAVE_DUPLOCALE to 0.
11574 2019-12-12  Bruno Haible  <bruno@clisp.org>
11576         wcwidth: Avoid test failure on AIX 7.2.
11577         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
11578         negative.
11579         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
11581 2019-12-12  Bruno Haible  <bruno@clisp.org>
11583         ilogbl: Work around Cygwin bug.
11584         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
11585         correct.
11586         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
11588 2019-12-12  Bruno Haible  <bruno@clisp.org>
11590         strtold: Work around Cygwin bug.
11591         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
11592         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
11593         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
11594         STRTOLD_HAS_UNDERFLOW_BUG is defined.
11595         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
11597 2019-12-12  Bruno Haible  <bruno@clisp.org>
11599         strtold: Fix autoconf test.
11600         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
11602 2019-12-11  Bruno Haible  <bruno@clisp.org>
11604         fsync tests: Skip test that is known to fail.
11605         * doc/posix-functions/fsync.texi: Update list of platforms.
11606         * tests/test-fsync.c (main): Skip test with read-only file descriptors
11607         that is known to fail on AIX and Cygwin.
11609 2019-12-11  Bruno Haible  <bruno@clisp.org>
11611         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
11612         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
11613         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
11614         HAVE_GETADDRINFO as a C macro.
11615         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
11616         declare as replacement functions.
11617         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
11618         define as no-op overrides.
11619         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
11620         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
11621         * modules/getaddrinfo (Depends-on, configure.ac): Test
11622         REPLACE_GETADDRINFO.
11623         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
11624         problem.
11625         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
11626         convention problems.
11628 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
11630         dfa: prefer signed integers for internals
11631         Signed integers can be checked more easily for integer overflow.
11632         * lib/dfa.c (position, struct lexer_state, struct parser_state)
11633         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
11634         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
11635         (nsubtoks, copytoks, closure, alloc_position_set, delete)
11636         (replace, state_index, epsclosure, charclass_context)
11637         (state_separate_contexts, merge_nfa_state, dfaoptimize)
11638         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
11639         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
11640         (comsubs, inboth, allocmust):
11641         Prefer a signed to an unsigned integer when calculating indexes,
11642         unless the integer is part of the external API (a bigger deal,
11643         and to be done later).
11645         dfa: fix index overflow
11646         * lib/dfa.c (compare): Avoid integer overflow when analyzing
11647         very large regular expressions.
11649         dfa: update commentary for previous change
11650         * NEWS: Mention the change.
11651         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
11653 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11655         dfa: separate parse and compile phase
11656         ‘dfamust’ must be called after parsing and before tokens are
11657         reordered, but both are executed in the compilation phase.
11658         Token reordering was introduced in Gnulib commit
11659         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
11660         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
11661         * lib/dfa.c (dfaparse): Change it to global function.
11662         (dfacomp): If first argument is NULL, skip parse.
11663         * lib/dfa.h: (dfaparse): Add a prototype.
11665 2019-12-11  Bruno Haible  <bruno@clisp.org>
11667         unistd tests: Fix link error on MSVC.
11668         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
11669         $(LIB_GETLOGIN).
11671 2019-12-11  Bruno Haible  <bruno@clisp.org>
11673         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
11674         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
11675         and POSIX substitutes are supported in C++ mode.
11676         * NEWS: Likewise.
11678 2019-12-11  Bruno Haible  <bruno@clisp.org>
11680         stddef: Fix compilation error in C++ mode on MSVC.
11681         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
11682         instead, include <cstddef>.
11684 2019-12-11  Bruno Haible  <bruno@clisp.org>
11686         unistd: Fix compilation error in C++ mode on MSVC.
11687         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
11688         does not have <unistd.h>.
11690 2019-12-11  Bruno Haible  <bruno@clisp.org>
11692         locale: Fix compilation error in C++ mode on MSVC.
11693         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
11694         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
11695         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
11696         int_n_sep_by_space): Define as macros on MSVC.
11698 2019-12-11  Bruno Haible  <bruno@clisp.org>
11700         wchar: Fix compilation error in C++ mode on MSVC.
11701         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
11703 2019-12-11  Bruno Haible  <bruno@clisp.org>
11705         pthread-thread: Fix compilation error in C++ mode on MSVC.
11706         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
11707         _GL_CXXALIAS_RPL invocation.
11709 2019-12-08  Bruno Haible  <bruno@clisp.org>
11711         Fix compilation errors in C++ mode on Haiku.
11712         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
11713         non-glibc systems.
11714         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
11715         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11716         posix_spawnattr_setschedparam): Likewise.
11717         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
11718         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11719         * lib/unistd.in.h (usleep): Likewise.
11721 2019-12-08  Bruno Haible  <bruno@clisp.org>
11723         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
11724         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
11725         * modules/fseeko (configure.ac-early): Require it instead of
11726         AC_FUNC_FSEEKO.
11727         * modules/ftello (configure.ac-early): Likewise.
11728         * modules/fflush (configure.ac-early): Likewise.
11730 2019-12-08  Bruno Haible  <bruno@clisp.org>
11732         Fix compilation error in C++ mode on HP-UX 11.
11733         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
11734         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
11736 2019-12-08  Bruno Haible  <bruno@clisp.org>
11738         Fix compilation errors on HP-UX 11/ia64.
11739         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
11740         _GL_FUNCDECL_SYS.
11742 2019-12-08  Bruno Haible  <bruno@clisp.org>
11744         Fix compilation error in C++ mode on OpenBSD.
11745         * lib/signal.in.h (signal): Declare on OpenBSD.
11747 2019-12-08  Bruno Haible  <bruno@clisp.org>
11749         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
11750         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
11751         instead of #error.
11753 2019-12-08  Bruno Haible  <bruno@clisp.org>
11755         Fix compilation errors in C++ mode on FreeBSD.
11756         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
11757         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
11758         * lib/threads.in.h (thrd_exit): Likewise.
11759         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
11761 2019-12-08  Bruno Haible  <bruno@clisp.org>
11763         Fix compilation errors in C++ mode on macOS and FreeBSD.
11764         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
11765         or FreeBSD with clang, use the approach without C preprocessor macro.
11767 2019-12-07  Bruno Haible  <bruno@clisp.org>
11769         Fix compilation errors in C++ mode on AIX with xlclang++.
11770         Reported by Christian Biesinger <cbiesinger@google.com> in
11771         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11772         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
11774 2019-12-07  Bruno Haible  <bruno@clisp.org>
11776         Document compilation error in C++ mode on NetBSD 8.0.
11777         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
11779 2019-12-07  Bruno Haible  <bruno@clisp.org>
11781         Fix compilation errors in C++ mode on Solaris 10.
11782         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
11783         to non-empty on Solaris with a non-GCC compiler.
11784         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
11786 2019-12-07  Bruno Haible  <bruno@clisp.org>
11788         Reword NEWS entry.
11789         * NEWS: Reword the latest NEWS entry.
11791 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
11793         Move xstrtol_fatal to a new xstrtol-error module.
11794         * lib/xstrtol.h: Stop including <getopt.h>.
11795         (xstrtol_fatal): Move ...
11796         * lib/xstrtol-error.h: ... here.  New file.
11797         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
11798         * tests/test-xstrtol.c: Likewise.
11799         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
11800         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
11801         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
11802         * modules/xstrtol-error: New file.
11803         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
11804         * MODULES.html.sh: Add xstrtol-error.
11805         * NEWS: Document the change.
11807 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
11809         nstrftime: better width support for %N, %z
11810         * lib/nstrftime.c (width_add, width_add1, width_cpy):
11811         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
11812         a new WIDTH parameter.
11813         (add, add1, cpy): Use these macros.
11814         (width_add): Do not treat digits == 0 as a special case,
11815         do not pad if padding is ‘-’, and do not use a negative width.
11816         (__strftime_internal): Redo formatting of nanoseconds and numeric
11817         timezones to avoid buffer misuse in unusual cases, and so that
11818         widths make more sense.  Add support for widths greater than 9 to
11819         the %N format; they are zero filled on the right.
11820         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
11822 2019-12-05  Bruno Haible  <bruno@clisp.org>
11824         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
11825         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
11826         set REPLACE_ISFINITE to 1.
11827         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
11828         REPLACE_ISINF to 1.
11829         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
11830         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
11831         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11832         * lib/threads.in.h (call_once): Likewise.
11833         * lib/iconv.in.h (iconv): Likewise.
11835 2019-12-05  Bruno Haible  <bruno@clisp.org>
11837         wchar: Add more C++ tests.
11838         Reported by Christian Biesinger <cbiesinger@google.com> in
11839         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11840         * tests/test-wchar-c++3.cc: New file.
11841         * modules/wchar-c++-tests (Files): Add it.
11842         (Makefile.am): Compile it.
11844 2019-12-05  Bruno Haible  <bruno@clisp.org>
11846         Add more C++ tests.
11848         assert-h: Add C++ tests.
11849         * tests/test-assert-h-c++.cc: New file.
11850         * tests/test-assert-h-c++2.cc: New file.
11851         * modules/assert-h-c++-tests: New file.
11852         * modules/assert-h-tests: New file.
11854         ctype: Add C++ tests.
11855         * tests/test-ctype-c++.cc: New file.
11856         * tests/test-ctype-c++2.cc: New file.
11857         * modules/ctype-c++-tests: New file.
11858         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
11860         errno: Add C++ tests.
11861         * tests/test-errno-c++.cc: New file.
11862         * tests/test-errno-c++2.cc: New file.
11863         * modules/errno-c++-tests: New file.
11864         * modules/errno-tests (Depends-on): Add errno-c++-tests.
11866         float: Add C++ tests.
11867         * tests/test-float-c++.cc: New file.
11868         * tests/test-float-c++2.cc: New file.
11869         * modules/float-c++-tests: New file.
11870         * modules/float-tests (Depends-on): Add float-c++-tests.
11872         inttypes: Add more C++ tests.
11873         * tests/test-inttypes-c++2.cc: New file.
11874         * modules/inttypes-c++-tests (Files): Add it.
11875         (Makefile.am): Compile it.
11877         limits-h: Add C++ tests.
11878         * tests/test-limits-h-c++.cc: New file.
11879         * tests/test-limits-h-c++2.cc: New file.
11880         * modules/limits-h-c++-tests: New file.
11881         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
11883         stdarg: Add C++ tests.
11884         * tests/test-stdarg-c++.cc: New file.
11885         * tests/test-stdarg-c++2.cc: New file.
11886         * modules/stdarg-c++-tests: New file.
11887         * modules/stdarg-tests: New file.
11889         stdbool: Add C++ tests.
11890         * tests/test-stdbool-c++.cc: New file.
11891         * tests/test-stdbool-c++2.cc: New file.
11892         * modules/stdbool-c++-tests: New file.
11893         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
11895         stddef: Add C++ tests.
11896         * tests/test-stddef-c++.cc: New file.
11897         * tests/test-stddef-c++2.cc: New file.
11898         * modules/stddef-c++-tests: New file.
11899         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
11901         stdint: Add C++ tests.
11902         * tests/test-stdint-c++.cc: New file.
11903         * tests/test-stdint-c++2.cc: New file.
11904         * modules/stdint-c++-tests: New file.
11905         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
11907         wchar: Add more C++ tests.
11908         * tests/test-wchar-c++2.cc: New file.
11909         * modules/wchar-c++-tests (Files): Add it.
11910         (Makefile.am): Compile it.
11912         wctype-h: Add more C++ tests.
11913         * tests/test-wctype-h-c++2.cc: New file.
11914         * modules/wctype-h-c++-tests (Files): Add it.
11915         (Makefile.am): Compile it.
11917 2019-12-04  Bruno Haible  <bruno@clisp.org>
11919         Fix compilation errors in C++ mode with xlclang++ on AIX.
11920         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
11921         C++ mode on AIX.
11922         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
11923         without C preprocessor macro.
11924         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
11925         _GL_CXXALIAS_SYS.
11926         * lib/threads.in.h (thrd_exit): Likewise.
11928 2019-12-04  Bruno Haible  <bruno@clisp.org>
11930         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
11931         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
11932         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
11934 2019-12-04  Bruno Haible  <bruno@clisp.org>
11936         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
11937         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
11938         _GL_CXXALIASWARN invocation on non-glibc systems.
11939         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
11940         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
11941         iswctype, towlower, towupper): Likewise.
11943 2019-12-03  Bruno Haible  <bruno@clisp.org>
11945         Avoid hassles caused by [[noreturn]] in C++.
11946         Reported by Christian Biesinger <cbiesinger@google.com> in
11947         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
11948         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
11949         * lib/_Noreturn.h: Likewise.
11951 2019-12-02  Bruno Haible  <bruno@clisp.org>
11953         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
11954         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
11955         LIBMULTITHREAD.
11956         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
11957         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
11958         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
11959         gl_THREADLIB.
11960         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
11962 2019-12-02  Bruno Haible  <bruno@clisp.org>
11964         Fix some more link errors with --enable-threads=isoc.
11965         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
11966         * modules/pthread-rwlock (Depends-on): Likewise.
11968 2019-12-02  Bruno Haible  <bruno@clisp.org>
11970         Fix link errors with --enable-threads=posix on AIX.
11971         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
11972         program with $(LIBTHREAD).
11973         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
11974         program with $(LIBTHREAD).
11976 2019-12-02  Bruno Haible  <bruno@clisp.org>
11978         Fix link errors with --enable-threads=posix on AIX.
11979         * modules/mbrtowc (Link): New section.
11980         * modules/acl (Link): Likewise.
11981         * modules/argmatch (Link): Likewise.
11982         * modules/backup-rename (Link): Likewise.
11983         * modules/backupfile (Link): Likewise.
11984         * modules/closein (Link): Likewise.
11985         * modules/closeout (Link): Likewise.
11986         * modules/copy-file (Link): Likewise.
11987         * modules/csharpcomp (Link): Likewise.
11988         * modules/csharpexec (Link): Likewise.
11989         * modules/dfa (Link): Likewise.
11990         * modules/exclude (Link): Likewise.
11991         * modules/fnmatch (Link): Likewise.
11992         * modules/fnmatch-gnu (Link): Likewise.
11993         * modules/fnmatch-posix (Link): Likewise.
11994         * modules/glob (Link): Likewise.
11995         * modules/human (Link): Likewise.
11996         * modules/javacomp (Link): Likewise.
11997         * modules/javaexec (Link): Likewise.
11998         * modules/javaversion (Link): Likewise.
11999         * modules/mbfile (Link): Likewise.
12000         * modules/mbiter (Link): Likewise.
12001         * modules/mbmemcasecmp (Link): Likewise.
12002         * modules/mbmemcasecoll (Link): Likewise.
12003         * modules/mbrlen (Link): Likewise.
12004         * modules/mbscasecmp (Link): Likewise.
12005         * modules/mbscasestr (Link): Likewise.
12006         * modules/mbschr (Link): Likewise.
12007         * modules/mbscspn (Link): Likewise.
12008         * modules/mbsinit (Link): Likewise.
12009         * modules/mbslen (Link): Likewise.
12010         * modules/mbsncasecmp (Link): Likewise.
12011         * modules/mbsnlen (Link): Likewise.
12012         * modules/mbsnrtowcs (Link): Likewise.
12013         * modules/mbspbrk (Link): Likewise.
12014         * modules/mbspcasecmp (Link): Likewise.
12015         * modules/mbsrchr (Link): Likewise.
12016         * modules/mbsrtowcs (Link): Likewise.
12017         * modules/mbssep (Link): Likewise.
12018         * modules/mbsspn (Link): Likewise.
12019         * modules/mbsstr (Link): Likewise.
12020         * modules/mbstok_r (Link): Likewise.
12021         * modules/mbswidth (Link): Likewise.
12022         * modules/mbuiter (Link): Likewise.
12023         * modules/mkdir-p (Link): Likewise.
12024         * modules/propername (Link): Likewise.
12025         * modules/quote (Link): Likewise.
12026         * modules/quotearg (Link): Likewise.
12027         * modules/quotearg-simple (Link): Likewise.
12028         * modules/regex-quote (Link): Likewise.
12029         * modules/rpmatch (Link): Likewise.
12030         * modules/sh-quote (Link): Likewise.
12031         * modules/system-quote (Link): Likewise.
12032         * modules/trim (Link): Likewise.
12033         * modules/unistdio/ulc-asnprintf (Link): Likewise.
12034         * modules/unistdio/ulc-fprintf (Link): Likewise.
12035         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
12036         * modules/unistdio/ulc-vasprintf (Link): Likewise.
12037         * modules/unistdio/ulc-vfprintf (Link): Likewise.
12038         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
12039         * modules/unistdio/ulc-vsprintf (Link): Likewise.
12040         * modules/xfreopen (Link): Likewise.
12041         * modules/xmemcoll (Link): Likewise.
12042         * modules/yesno (Link): Likewise.
12043         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
12044         * modules/argmatch-tests (Makefile.am): Likewise.
12045         * modules/closein-tests (Makefile.am): Likewise.
12046         * modules/copy-file-tests (Makefile.am): Likewise.
12047         * modules/dfa-tests (Makefile.am): Likewise.
12048         * modules/fnmatch-tests (Makefile.am): Likewise.
12049         * modules/glob-tests (Makefile.am): Likewise.
12050         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
12051         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
12052         * modules/mbrtowc-tests (Makefile.am): Likewise.
12053         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12054         * modules/mbscasestr-tests (Makefile.am): Likewise.
12055         * modules/mbschr-tests (Makefile.am): Likewise.
12056         * modules/mbscspn-tests (Makefile.am): Likewise.
12057         * modules/mbsinit-tests (Makefile.am): Likewise.
12058         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12059         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
12060         * modules/mbspbrk-tests (Makefile.am): Likewise.
12061         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12062         * modules/mbsrchr-tests (Makefile.am): Likewise.
12063         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
12064         * modules/mbsspn-tests (Makefile.am): Likewise.
12065         * modules/mbsstr-tests (Makefile.am): Likewise.
12066         * modules/quotearg-tests (Makefile.am): Likewise.
12067         * modules/quotearg-simple-tests (Makefile.am): Likewise.
12068         * modules/readtokens-tests (Makefile.am): Likewise.
12069         * modules/regex-quote-tests (Makefile.am): Likewise.
12070         * modules/sh-quote-tests (Makefile.am): Likewise.
12071         * modules/system-quote-tests (Makefile.am): Likewise.
12072         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
12073         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12074         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
12075         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
12076         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
12077         * modules/yesno-tests (Makefile.am): Likewise.
12079 2019-12-02  Bruno Haible  <bruno@clisp.org>
12081         Simplify link sections.
12082         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
12083         * modules/lock (Link): Likewise.
12084         * modules/cond (Link): Likewise.
12085         * modules/tls (Link): Likewise.
12086         * modules/yield (Link): Likewise.
12087         * modules/regex (Link): Likewise.
12088         * modules/localename (Link): Likewise.
12089         * modules/unicase/locale-language (Link): Likewise.
12090         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
12092 2019-12-02  Bruno Haible  <bruno@clisp.org>
12094         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
12095         * tests/test-thread_self.c (main): Disable test on AIX.
12097 2019-12-01  Bruno Haible  <bruno@clisp.org>
12099         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
12100         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
12101         gl_THREADLIB_EARLY_BODY.
12102         (gl_THREADLIB_EARLY_BODY): Invoke it.
12103         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
12104         (gl_THREADLIB_BODY): Invoke it.
12105         (gl_PTHREADLIB): New macro.
12106         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
12107         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
12108         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
12109         * modules/pthread-h (Files): Add threadlib.m4.
12110         (Depends-on): Remove threadlib.
12111         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
12112         and _THREAD_SAFE here.
12113         (Link): Use LIBPTHREAD, not LIBTHREAD.
12114         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
12115         LIBMULTITHREAD.
12116         * modules/pthread-once (Link): Likewise.
12117         * modules/pthread-mutex (Link): Likewise.
12118         * modules/pthread-rwlock (Link): Likewise.
12119         * modules/pthread-cond (Link): Likewise.
12120         * modules/pthread-tss (Link): Likewise.
12121         * modules/pthread-spin (Link): Likewise.
12122         * modules/pthread (Link): Likewise.
12123         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
12124         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
12125         * modules/pthread-once-tests (test_pthread_once1_LDADD,
12126         test_pthread_once2_LDADD): Likewise.
12127         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
12128         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
12129         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
12130         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
12132 2019-12-01  Bruno Haible  <bruno@clisp.org>
12134         cond: State linking requirements.
12135         * modules/cond (Link): New section.
12137 2019-12-01  Bruno Haible  <bruno@clisp.org>
12139         threadlib: Remove unnecessary file (left over from 2019-07-06).
12140         * modules/threadlib (Files): Remove config.rpath.
12142 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
12144         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
12145         Reported by Dagobert Michelsen <dam@opencsw.org> in
12146         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
12147         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
12148         list of strings instead of one string.
12149         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
12150         * pygnulib/GLImport.py (execute): Likewise.
12152 2019-11-27  Bruno Haible  <bruno@clisp.org>
12154         openpty, forkpty: Fix build error on Solaris 11.4.
12155         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
12156         also in <termios.h>.
12157         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
12158         of the function also in <termios.h>.
12159         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
12160         * doc/glibc-functions/forkpty.texi: Likewise.
12162 2019-11-27  Bruno Haible  <bruno@clisp.org>
12164         New options --enable-threads=isoc and --enable-threads=isoc+posix.
12165         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
12166         --enable-threads=isoc and --enable-threads=isoc+posix.
12167         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
12168         When both the ISO C and the POSIX threads API are available, choose
12169         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
12170         --enable-threads=isoc+posix was specified. When only the ISO C threads
12171         API is available and --enable-threads=iso was specified, choose
12172         USE_ISOC_THREADS.
12173         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
12174         USE_ISOC_AND_POSIX_THREADS.
12175         * lib/glthread/lock.c: Likewise.
12176         * lib/glthread/cond.h: Likewise.
12177         * lib/glthread/cond.c: Likewise.
12178         * lib/glthread/tls.h: Likewise.
12179         * lib/glthread/tls.c: Likewise.
12180         * lib/glthread/yield.h: Likewise.
12181         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
12182         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
12183         * lib/glthread/thread.c: Likewise.
12184         * lib/glthread/threadlib.c: Likewise.
12185         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
12186         USE_ISOC_AND_POSIX_THREADS.
12187         * tests/test-cond.c: Consider USE_ISOC_THREADS and
12188         USE_ISOC_AND_POSIX_THREADS.
12189         * tests/test-tls.c: Likewise.
12190         * tests/test-thread_create.c (main): Likewise.
12191         * tests/test-pthread-cond.c: Likewise.
12192         * tests/test-pthread-mutex.c: Likewise.
12193         * tests/test-pthread-once2.c: Likewise.
12194         * tests/test-pthread-rwlock.c: Likewise.
12195         * tests/test-pthread-tss.c: Likewise.
12196         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
12197         USE_POSIX_THREADS.
12199 2019-11-24  Bruno Haible  <bruno@clisp.org>
12201         mbrtowc: Modernize autoconf test.
12202         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
12203         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
12204         try a UTF-8 locale.
12205         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
12207 2019-11-24  Bruno Haible  <bruno@clisp.org>
12209         Fix errors in C++ mode on mingw.
12210         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
12211         instead of _GL_CXXALIAS_SYS.
12212         * lib/signal.in.h (pthread_sigmask): Likewise.
12213         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
12214         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12215         Likewise.
12216         * lib/wchar.in.h (btowc): Likewise.
12218 2019-11-24  Bruno Haible  <bruno@clisp.org>
12220         sys_time: Fix errors in C++ mode on mingw.
12221         * lib/sys_time.in.h (timeval): Restore the redirection
12222         '#define timeval rpl_timeval', for when the symbol timeval is being used
12223         outside the 'gnulib' namespace.
12224         * lib/sys_select.in.h (select): In C++, write 'timeval', not
12225         'struct timeval'.
12227 2019-11-24  Bruno Haible  <bruno@clisp.org>
12229         iswctype: Fix errors in C++ mode on mingw.
12230         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
12231         is 1.
12232         * lib/iswctype.c (iswctype): Add another implementation, for the
12233         GNULIB_defined_wint_t case.
12234         * modules/iswctype (configure.ac): Compile iswctype.c also if
12235         GNULIB_OVERRIDES_WINT_T is 1.
12237 2019-11-24  Bruno Haible  <bruno@clisp.org>
12239         windows-timedmutex: Fix errors in C++ mode on mingw.
12240         * lib/windows-timedmutex.h: Add closing brace.
12242 2019-11-24  Bruno Haible  <bruno@clisp.org>
12244         Fix errors in C++ mode on Cygwin.
12245         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
12246         _GL_CXXALIAS_SYS.
12248 2019-11-24  Bruno Haible  <bruno@clisp.org>
12250         time_r: Fix for mingw (regression from 2019-11-16).
12251         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
12252         AC_LINK_IFELSE test only if the function does not appear to exist.
12254 2019-11-24  Bruno Haible  <bruno@clisp.org>
12256         wcstok: Add tests.
12257         * tests/test-wcstok.c: New file.
12258         * modules/wcstok-tests: New file.
12260 2019-11-24  Bruno Haible  <bruno@clisp.org>
12262         wcstok: Work around wrong signature on native Windows.
12263         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
12264         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
12265         REPLACE_WCSTOK.
12266         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
12267         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
12268         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
12269         * doc/posix-functions/wcstok.texi: Mention the problem.
12271 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
12273         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
12274         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
12275         remove workaround for GCC bug 91450 as the bug should be fixed
12276         there too.
12278 2019-11-21  Bruno Haible  <bruno@clisp.org>
12280         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
12281         Reported by Christian Biesinger <cbiesinger@google.com> in
12282         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
12283         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
12284         non-glibc systems.
12285         * lib/locale.in.h (localeconv, setlocale): Likewise.
12286         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
12287         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
12288         rint, round, trunc): Likewise.
12289         * lib/monetary.in.h (strfmon_l): Likewise.
12290         * lib/pthread.in.h (pthread_mutexattr_getrobust,
12291         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
12292         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
12293         pthread_spin_destroy): Likewise.
12294         * lib/signal.in.h (raise, signal): Likewise.
12295         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
12296         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
12297         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
12298         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
12299         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
12300         Likewise.
12301         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
12302         Likewise.
12303         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
12304         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
12305         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
12306         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
12307         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
12308         wcsftime): Likewise.
12309         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
12311 2019-11-21  Bruno Haible  <bruno@clisp.org>
12313         Fix various errors in _GL_CXXALIAS_SYS invocations.
12314         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
12315         _GL_CXXALIAS_SYS.
12316         * lib/pthread.in.h (pthread_mutexattr_gettype,
12317         pthread_mutexattr_getrobust): Likewise.
12318         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
12319         * lib/sys_socket.in.h (recv, send): Likewise.
12320         * lib/unistd.in.h (getdtablesize): Likewise.
12321         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
12322         'struct timeval'.
12324 2019-11-21  Bruno Haible  <bruno@clisp.org>
12326         math tests: Update after 2019-08-28 change.
12327         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
12328         return type of 'bool', not 'int'.
12330 2019-11-21  Bruno Haible  <bruno@clisp.org>
12332         pthread-spin: Fix errors in C++ mode.
12333         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
12334         functions as nonexistent when <pthread.h> exists but does not define
12335         the pthread_spinlock_t type.
12337 2019-11-21  Bruno Haible  <bruno@clisp.org>
12339         pthread-mutex: Fix errors in C++ mode.
12340         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
12341         pthread_mutexattr_getrobust exists. If not, define
12342         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
12343         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
12344         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
12345         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
12346         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
12347         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
12348         definition.
12350 2019-11-19  Bruno Haible  <bruno@clisp.org>
12352         threads-h tests: Fix typo.
12353         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
12355 2019-11-19  Bruno Haible  <bruno@clisp.org>
12357         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
12358         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
12359         to 'const pthread_attr_t *'.
12360         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
12361         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
12363 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12365         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
12366         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
12367         work around GCC bug 91450 as the bug should be fixed there.
12369 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12371         glob: get closer to glibc glob.c
12372         Omit differences from glibc when the differences don’t matter.
12373         * lib/glob.c [_LIBC]: Include shlib-compat.h.
12374         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
12375         (glob_lstat): New function.
12376         (glob_in_dir): Use it.
12377         (GLOB_ATTRIBUTE): Define to empty if not already defined.
12378         Use changed.
12380 2019-11-18  Bruno Haible  <bruno@clisp.org>
12382         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
12383         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
12384         UINTPTR_MAX): Consider _WIN64.
12385         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
12386         a pointer.
12388 2019-11-18  Bruno Haible  <bruno@clisp.org>
12390         stdint: Fix value of WINT_MAX when we override wint_t.
12391         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
12392         when GNULIB_OVERRIDES_WINT_T is 1.
12394 2019-11-18  Bruno Haible  <bruno@clisp.org>
12396         vcs-to-changelog: New module.
12397         * modules/vcs-to-changelog: New file.
12398         * MODULES.html.sh (func_all_modules): Add it.
12400 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
12402         vcs-to-changelog: New script to generate ChangeLog-like output.
12403         Discussion:
12404         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
12405         * build-aux/vcs_to_changelog.py: New file.
12406         * build-aux/vcstocl/frontend_c.py: New file.
12407         * build-aux/vcstocl/misc_util.py: New file.
12408         * build-aux/vcstocl/vcs_git.py: New file.
12410 2019-11-18  Bruno Haible  <bruno@clisp.org>
12412         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
12413         Reported by Keith Marshall <keith@users.osdn.me> in
12414         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
12415         and <https://osdn.net/projects/mingw/ticket/39677>.
12416         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
12417         already been defined by mingw's <crtdefs.h>.
12419 2019-11-18  Bruno Haible  <bruno@clisp.org>
12421         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
12422         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
12423         conditionally enabled.
12425 2019-11-18  Bruno Haible  <bruno@clisp.org>
12427         gc: Mirror libgcrypt.m4 from libgcrypt.
12428         * config/srclistvars.sh (LIBGCRYPT): New variable.
12429         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
12431 2019-11-17  Bruno Haible  <bruno@clisp.org>
12433         locale, localename: Improve z/OS support.
12434         Reported by Daniel Richard G. in
12435         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
12436         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
12437         gl_LOCALE_H.
12438         (gl_LOCALE_H): Require it.
12439         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
12440         defined, don't even check for newlocale, duplocale, freelocale.
12441         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
12442         locale_t is not defined.
12444 2019-11-17  Bruno Haible  <bruno@clisp.org>
12446         havelib: Make libdirstems processing more flexible.
12447         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
12448         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
12449         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
12450         patch from 2017-02-19).
12451         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
12452         libdirs, even when the first one exists as a directory.
12454 2019-11-17  Bruno Haible  <bruno@clisp.org>
12456         havelib: Match the bitness when searching for libraries.
12457         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
12458         acl_is_expected_elfclass.
12459         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
12460         file exists, in ELF, also test whether it has the ELF class that
12461         corresponds to the host's bitness.
12463 2019-11-17  Bruno Haible  <bruno@clisp.org>
12465         host-cpu-c-abi: Add support for unknown CPUs.
12466         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
12467         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
12468         32-bit or 64-bit.
12470 2019-11-17  Bruno Haible  <bruno@clisp.org>
12472         havelib: Remove redundant code.
12473         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
12474         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
12476 2019-11-17  Bruno Haible  <bruno@clisp.org>
12478         havelib: Fix a bug in dependency processing.
12479         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
12480         of .la files, don't overwrite the value of additional_libdir for the
12481         next rounds.
12483 2019-11-16  Bruno Haible  <bruno@clisp.org>
12485         wctype-h: When overriding wint_t, override also the related functions.
12486         Reported by Christian Biesinger <cbiesinger@google.com> in
12487         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
12488         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
12489         REPLACE_ISWCNTRL to 1.
12490         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
12491         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
12492         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
12493         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
12494         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
12495         on mingw.
12496         * doc/posix-headers/wctype.texi: Likewise.
12498 2019-11-16  Bruno Haible  <bruno@clisp.org>
12500         time_r: Fix for mingw.
12501         Reported by Christian Biesinger <cbiesinger@google.com> in
12502         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
12503         * lib/time.in.h: On mingw, include <unistd.h>.
12504         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
12505         <time.h>. Test for localtime_r in a way that works when it is defined
12506         as an inline function.
12508 2019-11-13  Bruno Haible  <bruno@clisp.org>
12510         havelib: Revert last change.
12511         * build-aux/config.rpath: Revert last change. We can add msys2 support
12512         when it has been added to libtool.m4 upstream.
12514 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
12516         config: add msys support
12517         Requested by Arnold Robbins in:
12518         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
12519         He also requested a change to config.guess, which I’ll forward
12520         upstream.
12521         * build-aux/ar-lib (func_file_conv):
12522         * build-aux/compile (func_file_conv):
12523         * build-aux/config.rpath (wl, with_gnu_ld)
12524         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
12525         Treat msys like cygwin.
12527 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
12529         regex: now back in sync with glibc
12530         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
12531         regexec.c got merged into glibc and are now copies again.
12533 2019-10-27  Bruno Haible  <bruno@clisp.org>
12535         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
12536         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
12537         statement.
12538         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
12539         32-bit CPUs.
12541 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12543         timespec-add, timespec-sub: simplify
12544         * lib/timespec-add.c (timespec_add):
12545         * lib/timespec-sub.c (timespec_sub):
12546         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
12547         work on unsigned integers.
12549 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12551         nstrftime: speed up integer overflow checking
12552         * lib/nstrftime.c: Include intprops.h.
12553         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
12554         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
12555         instead of doing it by hand.
12556         * modules/nstrftime (Depends-on): Add intprops.
12558         Port better to GCC under macOS
12559         Work around macOS header that has ‘#define __has_builtin(x) 0’
12560         when compiled by GCC.  Apple really, really doesn’t want you to
12561         use GCC, apparently.  Rroblem reported by Akim Demaille in:
12562         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
12563         The fix is to not trust __has_builtin when being compiled by
12564         recent-enough GCC.
12565         * lib/intprops.h (__has_builtin)
12566         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
12567         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
12568         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
12569         Remove.  All uses removed.
12570         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
12571         directly, if defined and if not newer GCC.
12572         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
12573         New macro, that use __has_builtin directly, if defined and if
12574         not newer GCC.
12575         (assume): Use them.
12577 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
12579         maintainer-makefile: update rule for argmatch.
12580         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
12582 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
12584         bitset: let freeing functions accept NULL.
12585         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
12586         given NULL.
12587         * lib/bitset.h: Document that.
12588         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
12590 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
12592         inttypes: use more-robust test for int range
12593         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
12594         Problem reported by Dagobert Michelsen in:
12595         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
12596         * lib/inttypes.in.h: Rely only on limits.h when checking
12597         int range.
12599 2019-10-15  Bruno Haible  <bruno@clisp.org>
12601         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
12602         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
12603         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
12604         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
12605         term_ostream_set_hyperlink): New functions.
12606         (term_styled_ostream_get_hyperlink_ref,
12607         term_styled_ostream_get_hyperlink_id,
12608         term_styled_ostream_set_hyperlink): New function aliases.
12610 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
12612         update-copyright: use en dashes in .texi ranges
12613         * build-aux/update-copyright: Match year ranges like "1998--2019",
12614         which are used in the Autoconf manual.  Also, update ranges in
12615         .tex, .texi, and .texinfo files to use en dashes instead of
12616         hyphens.
12618 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12620         * config/srclist.txt: Remove posix/regex_internal.c for now.
12622 2019-10-13  Bruno Haible  <bruno@clisp.org>
12624         git-version-gen: Allow 'snapshot' as .tarball-version contents.
12625         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
12626         contents to the empty string.
12628 2019-10-12  Bruno Haible  <bruno@clisp.org>
12630         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
12631         * tests/test-intprops.c (main): Disable two more tests when using
12632         HP-UX cc.
12634 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12636         Simplify and regularize regex use of ‘assert’
12637         Also, tell GCC about the asserts even when compiling without
12638         debugging, to give it further optimization opportunities.
12639         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
12640         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
12641         (parse_expression, parse_bracket_exp):
12642         * lib/regex_internal.c (build_wcs_buffer)
12643         (build_wcs_upper_buffer, re_string_reconstruct)
12644         (re_string_context_at):
12645         * lib/regexec.c (re_search_stub, re_copy_regs)
12646         (re_search_internal, prune_impossible_nodes, check_matching)
12647         (check_halt_state_context, set_regs, sift_states_backward)
12648         (build_sifted_states, transit_state_mb, transit_state_bkref)
12649         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
12650         (match_ctx_add_subtop):
12651         Use it instead of plain ‘assert’.
12653 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
12655         regex: omit debug assignment when not debugging
12656         * lib/regexec.c (re_search_internal) [!DEBUG]:
12657         Remove unnecessary assignment.
12659         regex: tell compiler there’s at most 256 arcs out
12660         Partly this is to help the reader (and maybe help GCC);
12661         partly this is to pacify Coverity.
12662         * lib/regex_internal.h: Include verify.h.
12663         * lib/regexec.c (group_nodes_into_DFAstates):
12664         Tell the compiler that ndests cannot exceed SBC_MAX.
12665         * modules/regex (Depends-on): Add ‘verify’.
12667         regex: simplify by assuming C99
12668         * config/srclist.txt: Comment out regex_internal.h and regexec.c
12669         temporarily.
12670         * lib/regex_internal.h (lock_define, re_match_context_t):
12671         Simplify by assuming C99 macros and const.
12672         * lib/regexec.c (re_search_internal): Simplify by assuming C99
12673         initializers.  Remove unnecessary assignment, as mctx is now
12674         safely initialized earlier.
12676         regex: avoid copying of uninitialized storage
12677         * config/srclist.txt: Comment out regcomp.c temporarily.
12678         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
12679         Initialize even when not checking for lint, as the behavior is
12680         arguably undefined otherwise and Coverity warns about it.
12682 2019-10-06  Bruno Haible  <bruno@clisp.org>
12684         access tests: Fix test failure when run as root.
12685         * tests/test-access.c: Include root-uid.h.
12686         (geteuid): Define fallback.
12687         (main): Don't expect that writing to a read-only file would fail when
12688         running as root. Also, remove the created files at the end.
12689         * modules/access-tests (Depends-on): Add root-uid.
12690         (configure.ac): Test whether geteuid exists.
12692 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
12694         users.txt: add GNU nano
12695         Nano has been making use of gnulib since March 2017, version 2.8.0.
12697 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12699         bootstrap: simplify debugging of wget failures
12700         Problem reported by Tim Rühsen in:
12701         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
12702         * build-aux/bootstrap (po_download_command_format):
12703         Invoke wget with -nv instead of -q, to make debugging easier.
12705 2019-09-29  Bruno Haible  <bruno@clisp.org>
12707         avltree-list: Fix compilation warning (introduced on 2014-09-16).
12708         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
12709         'const' attribute.
12711 2019-09-29  Bruno Haible  <bruno@clisp.org>
12713         fbufmode: Fix compilation error on glibc >= 2.28 systems.
12714         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
12716 2019-09-28  Bruno Haible  <bruno@clisp.org>
12718         Update comments that refer to POSIX.
12719         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
12720         sentence about trailing slashes.
12721         * lib/fflush.c: Clarify the reasoning.
12722         * tests/test-fflush2.c: Cite the relevant sentence.
12724 2019-09-28  Bruno Haible  <bruno@clisp.org>
12726         access: Document limitations on Windows.
12727         Suggested by Zaretskii <eliz@gnu.org>.
12728         * doc/posix-functions/access.texi: Mention two limitations on Windows.
12730 2019-09-28  Bruno Haible  <bruno@clisp.org>
12732         findprog-in: Fix comment.
12733         Reported by Eli Zaretskii <eliz@gnu.org>.
12734         * lib/findprog.h (find_in_given_path): Extend description of EACCES
12735         condition.
12736         * lib/stat.c (rpl_stat): Fix typo in comment.
12737         * lib/utime.c (_gl_utimens_windows): Likewise.
12739 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12741         Update URLs and associated text
12742         (Thanks to Bruno Haible for proofreading this patch.)
12743         Prefer https: to http: in URLs where either will do, for the usual
12744         security reasons.  I also updated broken and/or moved URLs
12745         discovered during the process. In a few places I had to resort to
12746         archive.org, since I didn't find the originals elsewhere.
12748 2019-09-15  Paul Smith  <psmith@gnu.org>
12749             Bruno Haible  <bruno@clisp.org>
12751         findprog-in: Set errno when the search fails.
12752         * lib/findprog-in.c: Include <errno.h>.
12753         (find_in_given_path): Set errno before returning NULL.
12754         * lib/findprog.h (find_in_given_path): Update comment accordingly.
12755         Define the term "slash".
12757 2019-09-15  Bruno Haible  <bruno@clisp.org>
12759         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
12760         * modules/findprog (Depends-on): Add access.
12761         * modules/findprog-lgpl (Depends-on): Likewise.
12762         * modules/findprog-in (Depends-on): Likewise.
12764 2019-09-15  Bruno Haible  <bruno@clisp.org>
12766         access: Add tests.
12767         * tests/test-access.c: New file.
12768         * modules/access-tests: New file.
12770         access: New module.
12771         * lib/unistd.in.h (access): New declaration.
12772         * lib/access.c: New file.
12773         * m4/access.m4: New file.
12774         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
12775         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
12776         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
12777         REPLACE_ACCESS.
12778         * modules/access: New file.
12779         * tests/test-unistd-c++.cc (access): Check signature.
12780         * doc/posix-functions/access.texi: Mention the new module.
12782 2019-09-15  Bruno Haible  <bruno@clisp.org>
12784         fcntl-h: Fix compilation error of creat.c on MSVC.
12785         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
12786         defined.
12788 2019-09-15  Bruno Haible  <bruno@clisp.org>
12790         creat: Add tests.
12791         * tests/test-creat.c: New file, based on tests/test-open.h.
12792         * modules/creat-tests: New file.
12794         creat: New module.
12795         * lib/fcntl.in.h (creat): New declaration.
12796         * lib/creat.c: New file, based on lib/open.c.
12797         * m4/creat.m4: New file.
12798         * m4/open-slash.m4: New file, extracted from m4/open.m4.
12799         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
12800         Invoke gl_OPEN_TRAILING_SLASH_BUG.
12801         * modules/open (Files): Add m4/open-slash.m4.
12802         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
12803         REPLACE_CREAT.
12804         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
12805         * modules/creat: New file.
12806         * tests/test-fcntl-h-c++.cc (creat): Check signature.
12807         * doc/posix-functions/creat.texi: Mention the new module.
12809 2019-09-15  Bruno Haible  <bruno@clisp.org>
12811         open tests: Enhance test.
12812         * tests/test-open.h (test_open): Test the creation of an executable
12813         regular file. Also improve initial cleanup.
12815 2019-09-15  Bruno Haible  <bruno@clisp.org>
12817         intprops tests: Avoid build failure with HP-UX cc.
12818         * tests/test-intprops.c: Disable a check that makes HP cc choke with
12819         "error 4018: Macro param too large after substitution - use -H option.".
12821 2019-09-14  Bruno Haible  <bruno@clisp.org>
12823         Make autoconf tests work with -Werror=implicit-function-declaration.
12824         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
12825         towupper() declaration.
12826         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
12827         declaration.
12829 2019-09-14  Bruno Haible  <bruno@clisp.org>
12831         findprog-in: Better mimic the system on native Windows.
12832         Reported by Paul Smith <psmith@gnu.org>.
12833         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
12834         non-empty suffixes when the file name already contains a '.'.
12836 2019-09-10  Bruno Haible  <bruno@clisp.org>
12838         wctob: Fix autoconf test.
12839         Based on patch by Florian Weimer <fweimer@redhat.com>.
12840         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
12842 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
12844         xhash: provide hash_xinitialize.
12845         Suggested by Egor Pugin <egor.pugin@gmail.com>
12846         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
12847         * modules/xhash, lib/xhash.c: New.
12848         * lib/hash.h (hash_xinitialize): New.
12850 2019-09-09  Bruno Haible  <bruno@clisp.org>
12852         findprog-in: Make exec optimization optional.
12853         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
12854         (find_in_given_path): Add optimize_for_exec parameter.
12855         * lib/findprog-in.c (find_in_given_path): Likewise.
12857 2019-09-08  Bruno Haible  <bruno@clisp.org>
12859         Add option to assume the best, not the worst, when cross-compiling.
12860         Suggested by Jonas Termansen <sortie@maxsi.org>.
12861         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
12862         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
12863         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
12864         lt_cv_sys_argz_works.
12865         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
12866         ac_cv_func_calloc_0_nonnull.
12867         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
12868         --enable-cross-guesses for gl_cv_func_realpath_works.
12869         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
12870         gl_cv_func_cbrtl_ieee.
12871         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
12872         gl_cv_func_ceil_ieee.
12873         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
12874         gl_cv_func_ceilf_ieee.
12875         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
12876         gl_cv_func_ceill_ieee.
12877         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
12878         ac_cv_func_chown_works.
12879         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
12880         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
12881         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
12882         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
12883         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
12884         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
12885         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
12886         gl_cv_func_expl_works.
12887         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
12888         gl_cv_func_expm1_ieee.
12889         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
12890         gl_cv_func_expm1l_works.
12891         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
12892         gl_cv_func_open_directory_works.
12893         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
12894         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
12895         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
12896         gl_cv_func_fchownat_empty_filename_works.
12897         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
12898         gl_cv_func_fdopendir_works.
12899         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
12900         gl_cv_func_floor_ieee.
12901         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
12902         gl_cv_func_floorf_ieee.
12903         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
12904         gl_cv_func_fma_works.
12905         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
12906         gl_cv_func_fmaf_works.
12907         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
12908         gl_cv_func_fmal_works.
12909         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
12910         gl_cv_func_fmod_ieee.
12911         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
12912         gl_cv_func_fmodf_ieee.
12913         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
12914         gl_cv_func_fmodl_ieee.
12915         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
12916         gl_cv_func_fpurge_works.
12917         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
12918         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
12919         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
12920         gl_cv_func_getcwd_null.
12921         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
12922         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
12923         gl_cv_func_working_getdelim.
12924         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12925         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
12926         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12927         gl_cv_func_getgroups_works.
12928         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
12929         am_cv_func_working_getline.
12930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
12931         for gl_cv_func_getopt_gnu.
12932         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
12933         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
12934         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
12935         gl_cv_func_hypot_ieee.
12936         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
12937         gl_cv_func_hypotf_ieee.
12938         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
12939         gl_cv_func_hypotl_ieee.
12940         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
12941         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
12942         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
12943         gl_cv_func_link_works.
12944         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
12945         gl_cv_func_linkat_slash.
12946         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
12947         gl_cv_func_log_ieee.
12948         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
12949         gl_cv_func_logf_ieee.
12950         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
12951         gl_cv_func_logl_works.
12952         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
12953         gl_cv_func_log10_ieee.
12954         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
12955         gl_cv_func_log10f_ieee.
12956         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
12957         gl_cv_func_log10l_works.
12958         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
12959         gl_cv_func_log1p_ieee.
12960         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
12961         gl_cv_func_log1pf_ieee.
12962         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
12963         gl_cv_func_log1pl_ieee.
12964         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
12965         gl_cv_func_log2_ieee.
12966         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
12967         gl_cv_func_log2f_ieee.
12968         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
12969         --enable-cross-guesses for
12970         gl_cv_func_lstat_dereferences_slashed_symlink.
12971         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
12972         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12973         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
12974         gl_cv_C_locale_sans_EILSEQ.
12975         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
12976         gl_cv_func_memchr_works.
12977         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
12978         gl_cv_func_memmem_works_always.
12979         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
12980         gl_cv_func_memmem_works_fast.
12981         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
12982         gl_cv_func_mkdir_trailing_slash_works,
12983         gl_cv_func_mkdir_trailing_dot_works.
12984         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
12985         gl_cv_func_mkfifo_works.
12986         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
12987         gl_cv_func_mknod_works.
12988         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
12989         gl_cv_func_working_mkstemp.
12990         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
12991         gl_cv_func_working_mktime.
12992         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
12993         gl_cv_func_modf_ieee.
12994         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
12995         gl_cv_func_modff_ieee.
12996         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
12997         gl_cv_func_modfl_ieee.
12998         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
12999         gl_cv_func_nanosleep.
13000         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
13001         gl_cv_func_perror_works.
13002         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
13003         gl_cv_func_printf_sizes_c99.
13004         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
13005         gl_cv_func_printf_infinite.
13006         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
13007         gl_cv_func_printf_infinite_long_double.
13008         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
13009         gl_cv_func_printf_directive_a.
13010         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
13011         gl_cv_func_printf_directive_f.
13012         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
13013         gl_cv_func_printf_flag_zero.
13014         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
13015         gl_cv_func_printf_enomem.
13016         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
13017         gl_cv_func_snprintf_truncation_c99.
13018         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
13019         gl_cv_func_snprintf_retval_c99.
13020         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
13021         gl_cv_func_snprintf_directive_n.
13022         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
13023         gl_cv_func_vsnprintf_zerosize_c99.
13024         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
13025         gl_cv_func_pselect_detects_ebadf.
13026         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
13027         Obey --enable-cross-guesses for
13028         gl_cv_pthread_rwlock_rdlock_prefer_writer.
13029         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
13030         gl_cv_func_ptsname_sets_errno.
13031         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
13032         gl_cv_func_svid_putenv.
13033         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
13034         gl_cv_func_readlink_works.
13035         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
13036         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
13037         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
13038         gl_cv_func_re_compile_pattern_working.
13039         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
13040         gl_cv_func_remainder_ieee.
13041         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
13042         gl_cv_func_remainderf_ieee.
13043         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
13044         gl_cv_func_remainderl_ieee.
13045         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
13046         gl_cv_func_rintl_works.
13047         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
13048         gl_cv_func_rmdir_works.
13049         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
13050         gl_cv_func_round_ieee.
13051         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
13052         gl_cv_func_roundf_ieee.
13053         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
13054         gl_cv_func_roundl_ieee.
13055         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
13056         gl_cv_func_select_detects_ebadf.
13057         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
13058         gl_cv_func_setenv_works.
13059         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
13060         gl_cv_func_unsetenv_works.
13061         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
13062         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
13063         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
13064         gl_cv_func_sleep_works.
13065         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
13066         gl_cv_func_stat_file_slash.
13067         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
13068         gl_cv_func_stpncpy.
13069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
13070         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
13071         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
13072         gl_cv_func_strcasestr_linear.
13073         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
13074         gl_cv_func_working_strerror.
13075         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
13076         gl_cv_func_strerror_0_works.
13077         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
13078         --enable-cross-guesses for gl_cv_func_strerror_r_works.
13079         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
13080         gl_cv_func_strstr_works_always.
13081         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
13082         gl_cv_func_strstr_linear.
13083         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
13084         gl_cv_func_strtod_works.
13085         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
13086         gl_cv_func_strtold_works.
13087         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
13088         gl_cv_func_symlink_works.
13089         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
13090         gl_cv_func_symlinkat_works.
13091         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
13092         gl_cv_func_trunc_ieee.
13093         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
13094         gl_cv_func_truncf_ieee.
13095         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
13096         gl_cv_func_truncl_ieee.
13097         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
13098         gl_cv_func_tzset_clobber.
13099         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
13100         gl_cv_func_ungetc_works.
13101         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
13102         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
13103         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
13104         gl_cv_func_usleep_works.
13105         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
13106         gl_cv_func_futimesat_works.
13107         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
13108         gl_cv_func_working_utimes.
13109         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
13110         gl_cv_func_wcwidth_works.
13111         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
13112         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
13113         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
13114         links for testing. Obey --enable-cross-guesses for
13115         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
13116         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
13118 2019-09-08  Bruno Haible  <bruno@clisp.org>
13120         Clarify that cross-compilation guesses are guesses.
13121         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
13122         cross-compiling.
13124 2019-09-08  Bruno Haible  <bruno@clisp.org>
13126         chown: Fix configure output (regression from 2019-03-23).
13127         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
13128         gl_cv_func_chown_follows_symlink variable.
13130 2019-09-08  Bruno Haible  <bruno@clisp.org>
13132         findprog-in: New module.
13133         Suggested by Paul Smith <psmith@gnu.org>.
13134         * lib/findprog.h (find_in_given_path): New declaration.
13135         * lib/findprog-in.c: New file, based on lib/findprog.c.
13136         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
13137         * modules/findprog-in: New file.
13139 2019-09-08  Bruno Haible  <bruno@clisp.org>
13141         findprog: Remove unused dependency.
13142         * modules/findprog (Depends-on): Remove strdup.
13144 2019-09-08  Bruno Haible  <bruno@clisp.org>
13146         findprog: Remove test that is obsolete since 2006-04-24.
13147         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
13149 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
13151         bitset: style changes
13152         * lib/bitset/vector.c (vbitset_resize): Factor computation.
13153         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
13154         xzalloc to xcalloc.
13155         Suggested by Paul Eggert.
13157 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
13159         bitset: check memory allocation
13160         Reported by 江 祖铭 (Zu-Ming Jiang).
13161         With help from Paul Eggert.
13162         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
13163         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
13164         instead of realloc.
13165         When shrinking, accept failures.
13166         * lib/bitset/vector.c (vbitset_resize): Likewise.
13168 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
13170         scratch_buffer: sync from glibc
13171         * config/srclist.txt: Add the scratch_buffer source
13172         code from glibc, since these should be in sync.
13173         Autoupdate.
13175 2019-09-07  Bruno Haible  <bruno@clisp.org>
13177         doc: Update for glibc 2.30.
13178         * doc/glibc-functions/gettid.texi: New file.
13179         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
13180         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
13181         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
13182         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
13183         * doc/glibc-functions/sem_clockwait.texi: New file.
13184         * doc/glibc-functions/tgkill.texi: New file.
13185         * doc/glibc-functions/twalk_r.texi: New file.
13186         * doc/gnulib.texi: Include them.
13187         (Glibc semaphore.h): New section.
13188         * doc/pastposix-functions/h_errno.texi: Update.
13189         * doc/posix-functions/*.texi: Likewise.
13191 2019-09-06  Bruno Haible  <bruno@clisp.org>
13193         symlink tests: Avoid test failure on Linux with Lustre file system.
13194         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
13195         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
13196         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
13198 2019-09-01  Bruno Haible  <bruno@clisp.org>
13200         gitsub.sh: Add support for shallow-cloning of subdirectories.
13201         * top/gitsub.sh (func_usage): Document allowed git options with
13202         'git pull'.
13203         (func_pull): Accept GIT_OPTIONS argument.
13204         (pull): Parse git options before complaining about too many arguments.
13205         Pass the git options to func_pull.
13207 2019-08-29  Bruno Haible  <bruno@clisp.org>
13209         lock: Fix cross-compilation guesses.
13210         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
13211         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
13212         platforms.
13214 2019-08-28  Bruno Haible  <bruno@clisp.org>
13216         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
13217         Reported by Martin Storsjö <martin@martin.st> in
13218         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
13219         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
13220         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
13221         files from GCC 6 or newer, use an override through '#define', because
13222         the inline definitions in the platform's <cmath> cannot be overridden
13223         in another way.
13225 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
13227         Revert macOS INT_MULTIPLY_WRAPV patch
13228         Problem reported by Bruno Haible in:
13229         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
13230         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
13231         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
13232         Go back to working around the Clang bug on macOS.
13234 2019-08-27  Bruno Haible  <bruno@clisp.org>
13236         libtool-next-version: Fix error output.
13237         * build-aux/libtool-next-version (func_fatal_error): Fix the program
13238         name.
13240 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
13242         Speed up INT_MULTIPLY_WRAPV on macOS
13243         Assume that __builtin_mul_overflow works OK with Clang on macOS.
13244         Mattias Engdegård says it’s safe to assume the relevant library
13245         is always available there.
13246         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
13247         New temporary internal macro.
13248         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
13249         No need to work around the Clang bug on macOS.
13251 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
13253         intprops.h, verify.h: port better to clang
13254         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
13255         with Clang.  Problem reported privately by Mattias Engdegård.
13256         Also, insulate intprops.h and verify.h better against each other’s
13257         definitions of __has_builtin on non-Clang hosts.
13258         * lib/intprops.h (__has_builtin): Define a temporary substitute
13259         if __has_builtin is not already defined.
13260         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
13261         New temporary internal macros.
13262         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
13263         Now two separate macros, replacing the old
13264         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
13265         __builtin_mul_overflow is like the rest.  All uses changed.
13266         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
13267         Adjust to above changes.
13268         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
13269         longer relevant.  All uses changed.
13270         * lib/verify.h (__has_builtin): Treat like intprops.h,
13271         so that the two .h files do not collide with each other.
13272         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
13273         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
13275 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13277         intprops: say why not Clang __builtin_add_overflow
13278         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
13279         Mention Clang in comment, responding to a query from
13280         Mattias Engdegård.
13282 2019-08-24  Bruno Haible  <bruno@clisp.org>
13284         doc: Document most of the files outside of modules.
13285         * doc/gnulib.texi (Build Infrastructure Files,
13286         Release Management Files): New chapters.
13288 2019-08-24  Bruno Haible  <bruno@clisp.org>
13290         bootstrap: Keep in sync with the 'gettext' module.
13291         Reported by Assaf Gordon in
13292         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
13293         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
13294         * build-aux/po/remove-potcdate.sin: Likewise.
13296 2019-08-24  Bruno Haible  <bruno@clisp.org>
13298         crypto/gc-sha512: Add tests.
13299         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
13300         * modules/crypto/gc-sha512-tests: New file.
13302         crypto/gc-sha256: Add tests.
13303         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
13304         * modules/crypto/gc-sha256-tests: New file.
13306         crypto/gc-sha256, crypto/gc-sha512: New modules.
13307         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
13308         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
13309         (MAX_DIGEST_SIZE): Set to 64.
13310         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
13311         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
13312         (gc_sha256, gc_sha512): New functions.
13313         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
13314         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
13315         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
13317 2019-08-24  Bruno Haible  <bruno@clisp.org>
13319         crypto/gc-sha1 tests: Improve output when the test fails.
13320         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
13321         output.
13323 2019-08-24  Bruno Haible  <bruno@clisp.org>
13325         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
13326         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
13327         LIBGCRYPT_HAS_MD_SM3.
13328         * lib/gc-libgcrypt.c: Include sm3.h.
13329         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
13330         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
13331         implementation if libgcrypt does not support SM3.
13333 2019-08-24  Bruno Haible  <bruno@clisp.org>
13335         crypto/gc-md2: Optimize and clarify code.
13336         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
13337         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
13338         is not needed.
13340 2019-08-24  Bruno Haible  <bruno@clisp.org>
13342         crypto/gc-md2: Add comment.
13343         * lib/gc-libgcrypt.c: Add comment.
13345 2019-08-24  Bruno Haible  <bruno@clisp.org>
13347         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
13348         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
13349         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
13350         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
13351         variable.
13353 2019-08-24  Bruno Haible  <bruno@clisp.org>
13355         crypto/gc: Fix link error with --with-libgcrypt.
13356         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
13357         AC_LIB_HAVE_LINKFLAGS invocation.
13359 2019-08-24  Bruno Haible  <bruno@clisp.org>
13361         crypto/gc: Access the module indicators correctly.
13362         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
13363         * lib/gc-libgcrypt.c: Likewise.
13365 2019-08-24  Bruno Haible  <bruno@clisp.org>
13367         crypto/gc: Fix configuration with --with-libgcrypt.
13368         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
13369         * modules/crypto/gc (Files): Add it.
13370         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
13372 2019-08-24  Bruno Haible  <bruno@clisp.org>
13374         Remove unused file.
13375         * m4/stat-macros.m4: Remove file.
13377 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13379         New strip-trailing-space option for srclist-update
13380         * config/srclist-update (fixfile): Support new option.
13381         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
13382         Use it.
13384 2019-08-20  Eric Blake  <eblake@redhat.com>
13386         accept4: Support SOCK_NONBLOCK, if defined
13387         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
13389         accept4: Fix compilation when native accept4() exists.
13390         Reported by Richard W.M. Jones <rjones@redhat.com> in
13391         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
13392         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
13394 2019-08-18  Bruno Haible  <bruno@clisp.org>
13396         Defeat -flto GCC optimization in math autoconf tests.
13397         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
13398         at <https://savannah.gnu.org/bugs/?56109>.
13399         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
13400         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
13401         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13402         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13403         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13404         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
13405         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13406         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
13407         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
13408         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13409         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13410         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13412 2019-08-17  Bruno Haible  <bruno@clisp.org>
13414         windows-spin: Implement declared functions.
13415         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
13416         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
13417         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
13418         name.
13420 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
13422         intprops: port to Oracle Developer Studio 12.6
13423         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
13424         typos that were in a section not compiled by GCC.
13426 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13428         intprops: support uchar, ushort _WRAPV dests
13429         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
13430         when __builtin_add_overflow etc. and _Generic are not used.
13431         (_GL_INT_OP_WRAPV): Use it to support destinations that
13432         are unsigned char or unsigned short, even in compilers
13433         that lack __typeof__ and are not C11-compatible.
13435         intprops: pacify picky GCC
13436         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
13437         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
13438         possibly-incorrect result.
13439         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
13440         about (A) used as a boolean, when A is an expression like 3 * 4.
13442         intprops: support unsigned *_WRAPV results
13443         Add support for unsigned, unsigned long, and unsigned long long
13444         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
13445         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
13446         bug with unsigned inputs reported by Eli Zaretskii in:
13447         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
13448         * config/srclist.txt: Break the glibc connection for intprops.h
13449         temporarily, while more testing is done in Gnulib-using apps.
13450         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
13451         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
13452         Support unsigned results no narrower than unsigned int.  Report
13453         overflow correctly if some arguments are unsigned.
13454         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
13455         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
13456         the right thing with narrow args.
13457         (_GL_INT_OP_CALC1): Remove.  All callers removed.
13458         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
13459         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
13460         * tests/test-intprops.c: Check for bugs and test new behavior.
13462 2019-08-14  Bruno Haible  <bruno@clisp.org>
13464         get_progname_of: New module.
13465         * lib/get_progname_of.h: New file.
13466         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
13467         * lib/getprogname.c (getprogname): Tweak coding style.
13468         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
13469         * modules/get_progname_of: New file.
13471 2019-08-14  Bruno Haible  <bruno@clisp.org>
13473         get_ppid_of: New module.
13474         * lib/get_ppid_of.h: New file.
13475         * lib/get_ppid_of.c: New file.
13476         * modules/get_ppid_of: New file.
13478 2019-08-13  Bruno Haible  <bruno@clisp.org>
13480         libtextstyle-optional tests: Support the NO_COLOR environment variable.
13481         * tests/test-libtextstyle.c (main): Do not emit styling when the
13482         environment variable NO_COLOR is set.
13484 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13486         verify: improve diagnostic quality in recent GCC
13487         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
13488         useful line number containing the top-level caller of the macro.
13489         So, bring back the older way of issuing a diagnostic containing
13490         the top-level call’s arg, so that it is easier to diagnose
13491         ‘verify’ failures with recent GCC.
13492         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
13493         Bring back DIAGNOSTIC arg.  All callers changed.
13494         (verify): Just use _GL_VERIFY.
13496 2019-08-11  Bruno Haible  <bruno@clisp.org>
13498         localcharset: Add more aliases for OS/2.
13499         Based on patch by KO Myung-Hun <komh78@gmail.com> in
13500         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
13501         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
13503 2019-08-10  Eric Blake  <eblake@redhat.com>
13505         configmake: Update advice on usage.
13506         * modules/configmake (Include): No longer necessary to include
13507         last, since configmake.h itself worries about collision avoidance.
13509 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
13511         parse-datetime: fix 'T' military timezone handling
13512         * lib/parse-datetime.y (zone):
13513         follow-up to the previous commit: the 'T' case is handled outside the
13514         conversion table (used as either military timezone UTC-7 or ISO8601
13515         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
13516         timezone letters.
13518 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13520         parse-datetime: fix military timezone letters
13521         Problem and trivial fix reported by Neil Hoggarth in:
13522         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
13523         * lib/parse-datetime.y (military_table):
13524         Do it the right way, not the RFC 822 way.
13526 2019-08-08  Eric Blake  <eblake@redhat.com>
13528         configmake: Avoid namespace pollution issue on mingw.
13529         * modules/configmake (Makefile.am): If the project uses
13530         <winsock2.h>, include that header before defining DATADIR.
13532 2019-07-28  Bruno Haible  <bruno@clisp.org>
13534         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
13535         * tests/test-mbrtowc.c (main): Fix expected value of wc.
13537 2019-07-24  Bruno Haible  <bruno@clisp.org>
13539         pthread-h: Fix definitions of types and macros on mingw.
13540         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
13541         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
13542         not in use.
13543         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
13544         'pthread-once' is not in use.
13545         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
13546         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
13547         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
13548         in use.
13549         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
13550         Define also when module 'pthread-rwlock' is not in use.
13551         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
13552         also when module 'pthread-cond' is not in use.
13553         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
13554         'pthread-tss' is not in use.
13555         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
13556         use.
13558 2019-07-24  Simon Josefsson  <simon@josefsson.org>
13560         crypto/gc: Cope with libgcrypt without SM3.
13561         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
13563 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
13565         backupfile: fix resource leak on memory failure
13566         Problem found by Coverity (CID 1484214).
13567         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
13569 2019-07-22  Bruno Haible  <bruno@clisp.org>
13571         Avoid missing-declarations warning in various tests.
13572         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
13573         test6, test_optional, test7, test8, test9, test10, test11, test12,
13574         test13, test14, test15, test_fun): Declare static.
13575         * tests/test-cnd.c (test_cnd_wait): Likewise.
13576         * tests/test-cond.c (test_cond): Likewise.
13578 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
13580         pthread tests: Avoid missing-declarations warning.
13581         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
13583 2019-07-19  Bruno Haible  <bruno@clisp.org>
13585         parse-datetime: Avoid warnings from bison versions >= 3.3.
13586         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
13587         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
13589 2019-07-19  Bruno Haible  <bruno@clisp.org>
13591         parse-datetime: Require Bison 2.4 or newer.
13592         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
13593         Code taken from gettext's intl.m4.
13594         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
13595         of YACC.
13597 2019-07-19  Bruno Haible  <bruno@clisp.org>
13599         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
13600         * lib/areadlink-with-size.c: Include <string.h>.
13601         * lib/areadlinkat-with-size.c: Likewise.
13602         * lib/xgethostname.c: Likewise.
13603         * lib/xgetdomainname.c: Likewise.
13605 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
13607         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
13608         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
13609         "%pure-parser".  The former is available since Bison 2.3b (2008),
13610         while the latter is marked as obsolete since version 3.4 (May 2019).
13612 2019-07-16  Bruno Haible  <bruno@clisp.org>
13614         update-copyright: Make it work again (regression from 2019-06-15).
13615         Reported by Brian C. Lane <bcl@redhat.com>.
13616         * build-aux/update-copyright: Add back the -0777, -p, -i options.
13618 2019-07-14  Bruno Haible  <bruno@clisp.org>
13620         doc: Update info about <pthread.h>.
13621         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
13622         of 'pthread'.
13624 2019-07-14  Bruno Haible  <bruno@clisp.org>
13626         pthread_sigmask tests: Use new multithread modules.
13627         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
13628         glthread/thread.h.
13629         (main_thread, killer_thread): Change type to pthread_t.
13630         (main): Update accordingly.
13631         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
13632         thread.
13634 2019-07-14  Bruno Haible  <bruno@clisp.org>
13636         pthread-tss: Add tests.
13637         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
13638         tests/test-tss.c.
13639         * modules/pthread-tss-tests: New file.
13641 2019-07-14  Bruno Haible  <bruno@clisp.org>
13643         pthread-cond: Add tests.
13644         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
13645         tests/test-cnd.c.
13646         * modules/pthread-cond-tests: New file.
13648 2019-07-14  Bruno Haible  <bruno@clisp.org>
13650         pthread-rwlock: Add tests.
13651         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
13652         * modules/pthread-rwlock-tests: New file.
13654 2019-07-14  Bruno Haible  <bruno@clisp.org>
13656         pthread-mutex: Add tests.
13657         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
13658         tests/test-mtx.c.
13659         * modules/pthread-mutex-tests: New file.
13661 2019-07-14  Bruno Haible  <bruno@clisp.org>
13663         pthread-once: Add tests.
13664         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
13665         tests/test-call_once.c.
13666         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
13667         tests/test-mtx.c.
13668         * modules/pthread-once-tests: New file.
13670 2019-07-14  Bruno Haible  <bruno@clisp.org>
13672         pthread-thread: Add tests.
13673         * tests/test-pthread-thread.c: New file, based on
13674         tests/test-thread_create.c and tests/test-thrd_create.c.
13675         * modules/pthread-thread-tests: New file.
13677 2019-07-14  Bruno Haible  <bruno@clisp.org>
13679         pthread: Turn into a convenience module.
13680         * lib/pthread.in.h: Remove declarations for extern inline functions.
13681         * lib/pthread.c: Remove file.
13682         * modules/pthread (Files): Remove it.
13683         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
13684         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
13685         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
13686         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
13687         GNULIB_PTHREAD.
13688         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
13690 2019-07-14  Bruno Haible  <bruno@clisp.org>
13692         pthread-spin: New module.
13693         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
13694         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
13695         inline definitions.
13696         * lib/pthread-spin.c: New file.
13697         * m4/pthread-spin.m4: New file.
13698         * modules/pthread-spin: New file.
13699         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
13700         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
13701         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
13702         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
13703         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
13705 2019-07-14  Bruno Haible  <bruno@clisp.org>
13707         pthread-tss: New module.
13708         * lib/pthread-tss.c: New file.
13709         * m4/pthread-tss.m4: New file.
13710         * modules/pthread-tss: New file.
13711         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
13712         * doc/posix-functions/pthread_setspecific.texi: Likewise.
13713         * doc/posix-functions/pthread_getspecific.texi: Likewise.
13714         * doc/posix-functions/pthread_key_delete.texi: Likewise.
13716 2019-07-14  Bruno Haible  <bruno@clisp.org>
13718         pthread-cond: New module.
13719         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
13720         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
13721         * lib/pthread-cond.c: New file.
13722         * m4/pthread-cond.m4: New file.
13723         * modules/pthread-cond: New file.
13724         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
13725         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
13726         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
13727         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
13728         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
13729         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
13730         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
13731         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
13733 2019-07-14  Bruno Haible  <bruno@clisp.org>
13735         pthread-rwlock: New module.
13736         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
13737         * m4/pthread-rwlock.m4: New file.
13738         * modules/pthread-rwlock: New file.
13739         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
13740         and the Android problem.
13741         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
13742         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
13743         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
13744         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
13745         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
13746         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
13747         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
13748         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
13749         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
13750         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
13752 2019-07-14  Bruno Haible  <bruno@clisp.org>
13754         pthread-mutex: New module.
13755         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
13756         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
13757         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
13758         pthread_mutex_unlock): Remove inline definitions.
13759         * lib/pthread-mutex.c: New file.
13760         * m4/pthread-mutex.m4: New file.
13761         * modules/pthread-mutex: New file.
13762         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
13763         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
13764         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
13765         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
13766         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13767         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13768         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
13769         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
13770         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
13771         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
13772         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
13773         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
13775 2019-07-14  Bruno Haible  <bruno@clisp.org>
13777         pthread-once: New module.
13778         * lib/pthread-once.c: New file.
13779         * m4/pthread-once.m4: New file.
13780         * modules/pthread-once: New file.
13781         * doc/posix-functions/pthread_once.texi: Mention the new module.
13783 2019-07-14  Bruno Haible  <bruno@clisp.org>
13785         pthread-thread: New module.
13786         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
13787         inline definitions.
13788         * lib/pthread-thread.c: New file.
13789         * m4/pthread-thread.m4: New file.
13790         * modules/pthread-thread: New file.
13791         * doc/posix-functions/pthread_create.texi: Mention the new module.
13792         * doc/posix-functions/pthread_attr_init.texi: Likewise.
13793         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
13794         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
13795         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
13796         * doc/posix-functions/pthread_self.texi: Likewise.
13797         * doc/posix-functions/pthread_equal.texi: Likewise.
13798         * doc/posix-functions/pthread_detach.texi: Likewise.
13799         * doc/posix-functions/pthread_join.texi: Likewise.
13800         * doc/posix-functions/pthread_exit.texi: Likewise.
13802 2019-07-14  Bruno Haible  <bruno@clisp.org>
13804         pthread-h: Prepare for adding new modules.
13805         * lib/pthread.in.h: Define the types and macros for each of the
13806         facilities separately.
13807         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
13808         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13809         HAVE_PTHREAD_PROCESS_SHARED.
13810         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
13811         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13812         HAVE_PTHREAD_PROCESS_SHARED.
13813         * modules/pthread-h (Makefile.am): Substitute
13814         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
13815         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
13817 2019-07-14  Bruno Haible  <bruno@clisp.org>
13819         pthread-h: Add declarations of essential pthread functions.
13820         * lib/pthread.in.h: Include snippets.
13821         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
13822         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
13823         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
13824         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
13825         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
13826         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
13827         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
13828         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
13829         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
13830         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
13831         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
13832         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
13833         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
13834         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
13835         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
13836         pthread_key_create, pthread_setspecific, pthread_getspecific,
13837         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
13838         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
13839         declarations.
13840         (pthread_mutex_timedlock): Move declaration.
13841         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
13842         declared.
13843         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
13844         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
13845         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
13846         HAVE_* and REPLACE_* variables for the new functions.
13847         * modules/pthread-h (Depends-on): Add snippet/c++defs,
13848         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
13849         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
13850         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
13851         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
13852         variables for the new functions. Split the sed script, to avoid the
13853         limit of 99 commands of HP-UX sed.
13854         * tests/test-pthread-c++.cc: Check the signature of the new functions.
13856 2019-07-14  Bruno Haible  <bruno@clisp.org>
13858         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
13859         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
13860         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
13861         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
13862         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
13863         * modules/pthread-h (Depends-on): Add threadlib.
13864         (Link): Change to $(LIBTHREAD).
13865         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
13866         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
13868 2019-07-14  Bruno Haible  <bruno@clisp.org>
13870         pthread-h: Add C++ tests.
13871         * tests/test-pthread-c++.cc: New file.
13872         * modules/pthread-h-c++-tests: New file.
13874 2019-07-14  Bruno Haible  <bruno@clisp.org>
13876         pthread-h: Add tests.
13877         * tests/test-pthread.c: New file.
13878         * modules/pthread-h-tests: New file.
13880 2019-07-14  Bruno Haible  <bruno@clisp.org>
13882         pthread-h: New module.
13883         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
13884         is 1.
13885         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
13886         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
13887         <pthread.h> pollutes the namespace; instead, prepare for generating a
13888         pthread.h always. Substitute HAVE_PTHREAD_H here.
13889         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
13890         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
13891         * modules/pthread-h: New file, based on modules/pthread.
13892         * modules/pthread: Rely on 'pthread-h'.
13893         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
13894         Update.
13895         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
13896         pthread.
13898 2019-07-14  Bruno Haible  <bruno@clisp.org>
13900         sched_yield: New module.
13901         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
13902         (sched_yield): New declaration.
13903         * lib/sched_yield.c: New file.
13904         * m4/sched_yield.m4: New file.
13905         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
13906         provide a replacement sched.h always. Test whether sched_yield is
13907         declared.
13908         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
13909         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
13910         (Makefile.am): Provide a replacement sched.h always. Substitute
13911         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
13912         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
13913         * modules/sched_yield: New file.
13914         * doc/posix-functions/sched_yield.texi: Mention the new module.
13916 2019-07-14  Bruno Haible  <bruno@clisp.org>
13918         windows-spin: New module.
13919         * lib/windows-spin.h: New file.
13920         * lib/windows-spin.c: New file.
13921         * modules/windows-spin: New file.
13923 2019-07-14  Bruno Haible  <bruno@clisp.org>
13925         windows-timedrwlock: New module.
13926         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
13927         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
13928         windows-cond.c.
13929         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
13930         redefinition conflict with windows-timedrwlock.h.
13931         * modules/windows-timedrwlock: New file.
13933 2019-07-14  Bruno Haible  <bruno@clisp.org>
13935         windows-rwlock: New module.
13936         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
13937         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
13938         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
13939         windows-initguard.h.
13940         (gl_rwlock_t): Define using glwthread_rwlock_t.
13941         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
13942         (glthread_rwlock_init): Define using glwthread_rwlock_init.
13943         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
13944         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
13945         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
13946         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
13947         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
13948         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
13949         glthread_rwlock_destroy_func): Remove declarations.
13950         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
13951         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
13952         gl_waitqueue_notify_all, glthread_rwlock_init_func,
13953         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
13954         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
13955         functions.
13956         * modules/windows-rwlock: New file.
13957         * modules/lock (Depends-on): Add windows-rwlock.
13959 2019-07-14  Bruno Haible  <bruno@clisp.org>
13961         windows-thread: Add support for creating a thread in detached state.
13962         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
13963         (glwthread_thread_create): Add attr argument.
13964         * lib/windows-thread.c (glwthread_thread_create): Likewise.
13965         * lib/glthread/thread.h (glthread_create): Update.
13966         * lib/thrd.c (thrd_create): Update.
13968 2019-07-14  Bruno Haible  <bruno@clisp.org>
13970         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
13971         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
13972         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
13973         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
13974         * lib/windows-mutex.h: Update.
13975         * lib/windows-recmutex.h: Likewise.
13976         * lib/windows-timedmutex.h: Likewise.
13977         * lib/windows-timedrecmutex.h: Likewise.
13978         * lib/windows-cond.h: Likewise.
13979         * lib/glthread/lock.h: Likewise.
13980         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
13981         lib/windows-spinlock.h.
13982         * modules/windows-recmutex (Files): Likewise.
13983         * modules/windows-timedmutex (Files): Likewise.
13984         * modules/windows-timedrecmutex (Files): Likewise.
13985         * modules/windows-cond (Files): Likewise.
13986         * modules/threads-h (Files): Likewise.
13988 2019-07-14  Bruno Haible  <bruno@clisp.org>
13990         doc: Fix info about pthread API in HP-UX.
13991         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
13993 2019-07-14  Bruno Haible  <bruno@clisp.org>
13995         threads-h: Fix generation of threads.h.
13996         * modules/threads-h (Makefile.am): Insert the required header file
13997         snippets.
13999 2019-07-09  Bruno Haible  <bruno@clisp.org>
14001         striconveh test: Fix a compilation failure when iconv is not available.
14002         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14003         * tests/test-striconveh.c (main): Move iconv_close invocations inside
14004         HAVE_ICONV.
14006 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
14008         argmatch: adjust columns for help2man.
14009         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
14010         requires column 20 or more, return 20.
14012 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14014         areadlink-with-size: avoid realloc when size==0
14015         * lib/areadlink-with-size.c (areadlink_with_size):
14016         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
14017         Reallocate at the end to the actual size, to avoid memory waste,
14018         as suggested by Bruno Haible.  But when the guessed size is zero -
14019         useful when the size is unknown - do the initial small readlink
14020         into the stack, to avoid that realloc in the usual case.
14022 2019-07-06  Pádraig Brady  <P@draigBrady.com>
14024         areadlink-with-size: guess a buffer size with 0 size
14025         The size is usually taken from st_size, which can be zero,
14026         resulting in inefficient operation.
14027         Instead let zero select an initial memory allocation
14028         of 128 bytes, which most symlinks fit within.
14029         * lib/areadlink-with-size.c (areadlink_with_size):
14030         Start with a 128 byte buffer, for SIZE == 0.
14031         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
14033 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
14035         Replace manually crafted hex regexes with [:xdigit:]
14036         * build-aux/gitlog-to-changelog (parse_amend_file)
14037         (git_dir_option):
14038         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
14039         This patch is backported from Emacs (Bug#36167).
14041 2019-07-06  Bruno Haible  <bruno@clisp.org>
14043         error: Fix documentation.
14044         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
14045         module provides.
14046         * doc/glibc-functions/error_message_count.texi: Likewise.
14047         * doc/glibc-functions/error_one_per_line.texi: Likewise.
14048         * doc/glibc-functions/error_print_progname.texi: Likewise.
14050 2019-07-06  Bruno Haible  <bruno@clisp.org>
14052         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
14053         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
14054         and older is unsupported.
14055         * doc/**/*.texi: Update.
14057 2019-07-06  Bruno Haible  <bruno@clisp.org>
14059         doc: Remove documentation of Linux libc5 as a supported platform.
14060         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
14061         to Linux libc5.
14062         * doc/posix-functions/iswalpha.texi: Likewise.
14063         * doc/posix-functions/iswblank.texi: Likewise.
14064         * doc/posix-functions/iswcntrl.texi: Likewise.
14065         * doc/posix-functions/iswdigit.texi: Likewise.
14066         * doc/posix-functions/iswgraph.texi: Likewise.
14067         * doc/posix-functions/iswlower.texi: Likewise.
14068         * doc/posix-functions/iswprint.texi: Likewise.
14069         * doc/posix-functions/iswpunct.texi: Likewise.
14070         * doc/posix-functions/iswspace.texi: Likewise.
14071         * doc/posix-functions/iswupper.texi: Likewise.
14072         * doc/posix-functions/iswxdigit.texi: Likewise.
14073         * doc/posix-functions/snprintf.texi: Likewise.
14074         * doc/posix-functions/vsnprintf.texi: Likewise.
14076 2019-07-06  Bruno Haible  <bruno@clisp.org>
14078         doc: Remove documentation of Tandem/NSK as a supported platform.
14079         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
14080         Tandem/NSK.
14081         * doc/**/*.texi: Update.
14083 2019-07-06  Bruno Haible  <bruno@clisp.org>
14085         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
14086         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
14087         and older is unsupported.
14088         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
14089         Mac OS X 10.4 and older.
14090         * doc/posix-functions/asinl.texi: Likewise.
14091         * doc/posix-functions/atanl.texi: Likewise.
14092         * doc/posix-functions/cosl.texi: Likewise.
14093         * doc/posix-functions/expl.texi: Likewise.
14094         * doc/posix-functions/frexpl.texi: Likewise.
14095         * doc/posix-functions/gettimeofday.texi: Likewise.
14096         * doc/posix-functions/logl.texi: Likewise.
14097         * doc/posix-functions/mkstemp.texi: Likewise.
14098         * doc/posix-functions/sinl.texi: Likewise.
14099         * doc/posix-functions/sqrtl.texi: Likewise.
14100         * doc/posix-functions/tanl.texi: Likewise.
14101         * doc/posix-functions/wcswidth.texi: Likewise.
14102         * doc/**/*.texi: Update.
14104 2019-07-06  Bruno Haible  <bruno@clisp.org>
14106         doc: Remove documentation of AIX 4 as a supported platform.
14107         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
14108         unsupported.
14109         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
14110         workarounds.
14111         * doc/posix-functions/strnlen.texi: Likewise.
14112         * doc/posix-headers/inttypes.texi: Likewise.
14113         * doc/**/*.texi: Update.
14115 2019-07-06  Bruno Haible  <bruno@clisp.org>
14117         doc: Remove documentation of HP-UX 10 as a supported platform.
14118         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
14119         unsupported.
14120         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
14121         workarounds.
14122         * doc/posix-functions/gmtime_r.texi: Likewise.
14123         * doc/posix-functions/localtime_r.texi: Likewise.
14124         * doc/posix-functions/mkstemp.texi: Likewise.
14125         * doc/**/*.texi: Update.
14127 2019-07-06  Bruno Haible  <bruno@clisp.org>
14129         doc: Remove documentation of Interix 3.5 as a supported platform.
14130         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
14131         unsupported.
14132         * doc/posix-functions/select.texi: Don't mention Interix specific
14133         workarounds.
14134         * doc/posix-headers/signal.texi: Likewise.
14135         * doc/**/*.texi: Update.
14137 2019-07-06  Bruno Haible  <bruno@clisp.org>
14139         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
14140         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
14141         unsupported.
14142         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
14143         workarounds.
14144         * doc/posix-functions/nl_langinfo.texi: Likewise.
14145         * doc/posix-functions/remainder.texi: Likewise.
14146         * doc/posix-functions/towlower.texi: Likewise.
14147         * doc/posix-functions/towupper.texi: Likewise.
14148         * doc/posix-functions/vsnprintf.texi: Likewise.
14149         * doc/posix-functions/wcscat.texi: Likewise.
14150         * doc/posix-functions/wcschr.texi: Likewise.
14151         * doc/posix-functions/wcscmp.texi: Likewise.
14152         * doc/posix-functions/wcscpy.texi: Likewise.
14153         * doc/posix-functions/wcscspn.texi: Likewise.
14154         * doc/posix-functions/wcslen.texi: Likewise.
14155         * doc/posix-functions/wcsncat.texi: Likewise.
14156         * doc/posix-functions/wcsncmp.texi: Likewise.
14157         * doc/posix-functions/wcsncpy.texi: Likewise.
14158         * doc/posix-functions/wcspbrk.texi: Likewise.
14159         * doc/posix-functions/wcsrchr.texi: Likewise.
14160         * doc/posix-functions/wcsspn.texi: Likewise.
14161         * doc/posix-headers/langinfo.texi: Likewise.
14162         * doc/posix-headers/signal.texi: Likewise.
14163         * doc/posix-headers/wchar.texi: Likewise.
14164         * doc/posix-headers/wctype.texi: Likewise.
14165         * doc/**/*.texi: Update.
14167 2019-07-05  Bruno Haible  <bruno@clisp.org>
14169         doc: Remove documentation of OSF/1 as supported platform.
14170         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
14171         unsupported.
14172         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
14173         workarounds.
14174         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
14175         * doc/glibc-functions/ptsname_r.texi: Likewise.
14176         * doc/posix-functions/ceil.texi: Likewise.
14177         * doc/posix-functions/ceilf.texi: Likewise.
14178         * doc/posix-functions/ceill.texi: Likewise.
14179         * doc/posix-functions/fchdir.texi: Likewise.
14180         * doc/posix-functions/floor.texi: Likewise.
14181         * doc/posix-functions/floorf.texi: Likewise.
14182         * doc/posix-functions/fmod.texi: Likewise.
14183         * doc/posix-functions/fmodf.texi: Likewise.
14184         * doc/posix-functions/fmodl.texi: Likewise.
14185         * doc/posix-functions/log.texi: Likewise.
14186         * doc/posix-functions/logf.texi: Likewise.
14187         * doc/posix-functions/logl.texi: Likewise.
14188         * doc/posix-functions/log10.texi: Likewise.
14189         * doc/posix-functions/log10f.texi: Likewise.
14190         * doc/posix-functions/log10l.texi: Likewise.
14191         * doc/posix-functions/log2.texi: Likewise.
14192         * doc/posix-functions/log2f.texi: Likewise.
14193         * doc/posix-functions/log2l.texi: Likewise.
14194         * doc/posix-functions/mbrtowc.texi: Likewise.
14195         * doc/posix-functions/recv.texi: Likewise.
14196         * doc/posix-functions/recvfrom.texi: Likewise.
14197         * doc/posix-functions/remainder.texi: Likewise.
14198         * doc/posix-functions/remainderf.texi: Likewise.
14199         * doc/posix-functions/remainderl.texi: Likewise.
14200         * doc/posix-functions/round.texi: Likewise.
14201         * doc/posix-functions/roundf.texi: Likewise.
14202         * doc/posix-functions/roundl.texi: Likewise.
14203         * doc/posix-functions/send.texi: Likewise.
14204         * doc/posix-functions/sendto.texi: Likewise.
14205         * doc/posix-functions/setenv.texi: Likewise.
14206         * doc/posix-functions/snprintf.texi: Likewise.
14207         * doc/posix-functions/tcgetsid.texi: Likewise.
14208         * doc/posix-functions/trunc.texi: Likewise.
14209         * doc/posix-functions/truncf.texi: Likewise.
14210         * doc/posix-functions/truncl.texi: Likewise.
14211         * doc/posix-functions/ttyname_r.texi: Likewise.
14212         * doc/posix-functions/unsetenv.texi: Likewise.
14213         * doc/posix-functions/wcsrtombs.texi: Likewise.
14214         * doc/posix-headers/sys_select.texi: Likewise.
14215         * doc/posix-headers/wchar.texi: Likewise.
14216         * doc/posix-headers/wctype.texi: Likewise.
14217         * doc/**/*.texi: Update.
14219 2019-07-05  Bruno Haible  <bruno@clisp.org>
14221         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
14222         * doc/**/*.texi: Update.
14224 2019-07-05  Bruno Haible  <bruno@clisp.org>
14226         doc: Remove documentation of Solaris 8 and older as supported platforms.
14227         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
14228         unsupported.
14229         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
14230         workarounds.
14231         * doc/posix-functions/memcmp.texi: Likewise.
14232         * doc/posix-functions/rename.texi: Likewise.
14233         * doc/posix-functions/tzset.texi: Likewise.
14234         * doc/posix-headers/wctype.texi: Likewise.
14235         * doc/**/*.texi: Update.
14237 2019-07-05  Bruno Haible  <bruno@clisp.org>
14239         doc: Remove documentation of Interix 3.5 as a supported platform.
14240         * doc/**/*.texi: Update.
14242 2019-07-05  Bruno Haible  <bruno@clisp.org>
14244         doc: Remove documentation of BeOS as a supported platform.
14245         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
14246         unsupported.
14247         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
14248         * doc/posix-functions/getdelim.texi: Likewise.
14249         * doc/**/*.texi: Update.
14251 2019-07-05  Bruno Haible  <bruno@clisp.org>
14253         thread, lock, cond, tls: Remove support for Pth threads.
14254         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
14255         --enable-threads=pth any more.
14256         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
14257         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
14258         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
14259         threads and ISO C11 threads.
14260         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
14261         * lib/glthread/lock.h: Likewise.
14262         * lib/glthread/lock.c: Likewise.
14263         * lib/glthread/cond.h: Likewise.
14264         * lib/glthread/cond.c: Likewise.
14265         * lib/glthread/tls.h: Likewise.
14266         * lib/glthread/tls.c: Likewise.
14267         * lib/glthread/yield.h: Likewise.
14268         * lib/regex_internal.h: Likewise.
14269         * tests/test-thread_create.c: Likewise.
14270         * tests/test-lock.c: Likewise.
14271         * tests/test-cond.c: Likewise.
14272         * tests/test-tls.c: Likewise.
14273         * tests/test-rwlock1.c: Don't include glthread/yield.h.
14274         (main): Sleep without calling gl_thread_yield.
14276 2019-07-05  Bruno Haible  <bruno@clisp.org>
14278         thread, lock, cond, tls: Remove support for old Solaris threads.
14279         Solaris >= 2.5.1 has POSIX threads.
14280         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
14281         --enable-threads=solaris any more.
14282         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
14283         * lib/glthread/thread.c: Update comment.
14284         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
14285         * lib/glthread/lock.h: Likewise.
14286         * lib/glthread/lock.c: Likewise.
14287         * lib/glthread/cond.h: Likewise.
14288         * lib/glthread/cond.c: Likewise.
14289         * lib/glthread/tls.h: Likewise.
14290         * lib/glthread/tls.c: Likewise.
14291         * lib/glthread/yield.h: Likewise.
14292         * lib/regex_internal.h: Likewise.
14293         * tests/test-thread_create.c: Likewise.
14294         * tests/test-lock.c: Likewise.
14295         * tests/test-cond.c: Likewise.
14296         * tests/test-tls.c: Likewise.
14298 2019-07-05  Bruno Haible  <bruno@clisp.org>
14300         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
14301         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
14302         needed size is equal to the allocated size.
14303         * lib/getcwd.c (__getcwd): Likewise.
14305 2019-07-05  Bruno Haible  <bruno@clisp.org>
14307         xgetdomainname: Don't return an excessive memory allocation.
14308         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
14309         before returning it.
14311 2019-07-05  Bruno Haible  <bruno@clisp.org>
14313         xgethostname: Don't return an excessive memory allocation.
14314         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
14315         returning it.
14317 2019-07-05  Bruno Haible  <bruno@clisp.org>
14319         areadlinkat-with-size: Don't return an excessive memory allocation.
14320         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
14321         before returning it.
14323 2019-07-05  Bruno Haible  <bruno@clisp.org>
14325         areadlink-with-size: Don't return an excessive memory allocation.
14326         Reported by Andreas Dilger <adilger@whamcloud.com>.
14327         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
14328         before returning it.
14330 2019-07-03  Bruno Haible  <bruno@clisp.org>
14332         renameatu: Fix test failure on MSVC.
14333         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
14334         empty string.
14336 2019-07-03  Bruno Haible  <bruno@clisp.org>
14338         mbrtowc: Fix invalid use of mbtowc() on MSVC.
14339         * lib/mbrtowc.c: Include glthread/lock.h.
14340         (mbtowc_lock): New variable.
14341         (mbrtowc): Treat UTF-8 encoding without locking. For the other
14342         encodings, explicitly reset the internal state of mbtowc, and protect
14343         this through a lock.
14344         * modules/mbrtowc (Depends-on): Add lock.
14346 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
14348         argmatch: don't define _ in the header.
14349         Reported by Jim Meyering.
14350         * lib/argmatch.h (N_, _): Don't define.
14351         Use gettext instead.
14352         * lib/argmatch.h (_): Define.
14353         * tests/test-argmatch.c (N_): Define.
14355 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
14357         verify: document ‘assume’ better
14358         * lib/verify.h: Reword doc (Bug#36370).
14360 2019-07-02  Bruno Haible  <bruno@clisp.org>
14362         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
14363         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
14364         "CPutf8".
14365         * lib/nl_langinfo.c (ctype_codeset): Likewise.
14367 2019-07-02  Bruno Haible  <bruno@clisp.org>
14369         getcwd: Fix crash when invoked with size = 0 on MSVC.
14370         * lib/getcwd.c: Include msvc-inval.h.
14371         (getcwd_nothrow): New function/macro.
14372         (getcwd_system): New macro.
14373         (__getcwd): Use it instead of getcwd.
14374         * modules/getcwd (Depends-on): Add msvc-inval.
14375         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
14377 2019-07-02  Bruno Haible  <bruno@clisp.org>
14379         nonblocking-pipe tests: Fix test failure on MSVC.
14380         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
14381         native Windows.
14383 2019-07-02  Bruno Haible  <bruno@clisp.org>
14385         usleep: Implement with millisecond resolution on native Windows.
14386         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
14387         * doc/pastposix-functions/usleep.texi: Update accordingly.
14389 2019-07-02  Bruno Haible  <bruno@clisp.org>
14391         lstat tests: Fix test failure on MSVC.
14392         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
14393         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
14395 2019-07-02  Bruno Haible  <bruno@clisp.org>
14397         stat tests: Fix test failure on MSVC.
14398         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
14399         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
14401 2019-07-02  Bruno Haible  <bruno@clisp.org>
14403         getaddrinfo tests: Fix test failure on MSVC.
14404         * tests/test-getaddrinfo.c: Include sockets.h.
14405         (main): Invoke gl_sockets_startup.
14406         * modules/getaddrinfo-tests (Depends-on): Add sockets.
14408 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
14410         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
14411         * lib/poll.c: Call Windows native select() with Windows native timeval.
14413 2019-06-30  Bruno Haible  <bruno@clisp.org>
14415         argmatch: Fix compilation errors.
14416         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
14417         * tests/test-argmatch.c (main): Update after last-minute function names
14418         change.
14420 2019-06-30  Bruno Haible  <bruno@clisp.org>
14422         Include <stdlib.h> when needed.
14423         * lib/cnd.c: Include <stdlib.h>, needed for abort().
14424         * lib/fcntl.c: Likewise.
14425         * lib/mbscasestr.c: Likewise.
14426         * lib/mbssep.c: Likewise.
14427         * lib/mbsstr.c: Likewise.
14428         * lib/openat.c: Include <stdlib.h>, needed for free().
14429         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
14430         abort().
14432 2019-06-30  Bruno Haible  <bruno@clisp.org>
14434         Include <stdlib.h> when needed.
14435         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
14436         * lib/faccessat.c: Likewise.
14437         * lib/fchmodat.c: Likewise.
14438         * lib/fchownat.c: Likewise.
14439         * lib/fstatat.c: Likewise.
14440         * lib/mkfifoat.c: Likewise.
14441         * lib/mknodat.c: Likewise.
14442         * lib/readlinkat.c: Likewise.
14443         * lib/symlinkat.c: Likewise.
14444         * lib/utimensat.c: Likewise.
14445         * lib/mkdirat.c: Likewise. Include also the specification header.
14447 2019-06-30  Bruno Haible  <bruno@clisp.org>
14449         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
14450         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
14451         from gl_PREREQ_SYS_H_SOCKET.
14452         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
14453         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
14454         gl_PREREQ_SYS_H_WS2TCPIP.
14455         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
14456         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
14457         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
14459 2019-06-30  Bruno Haible  <bruno@clisp.org>
14461         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
14462         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
14463         REPLACE_INET_NTOP to 1 always.
14464         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
14465         REPLACE_INET_PTON to 1 always.
14467 2019-06-30  Bruno Haible  <bruno@clisp.org>
14469         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
14470         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
14471         not REPLACE_INET_NTOP.
14473 2019-06-30  Bruno Haible  <bruno@clisp.org>
14475         poll: Add comment.
14476         * lib/poll.c: Add comment about WSAPoll.
14478 2019-06-30  Bruno Haible  <bruno@clisp.org>
14480         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
14481         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
14482         * lib/poll.in.h: Include <winsock2.h>.
14483         (POLL*, pollfd): Override on native Windows.
14484         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14485         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
14486         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14488 2019-06-28  Bruno Haible  <bruno@clisp.org>
14490         accept4: Fix compilation error on OpenIndiana.
14491         Reported by Michal Nowak <mnowak@startmail.com>
14492         via Mark H Weaver <mhw@netris.org>.
14493         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
14494         whether it exists as a function.
14496 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
14498         strverscmp: sync from glibc
14499         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
14500         comments, include libc-config.h, define __strverscmp to be
14501         strverscmp, and don’t assume types line uint8_t and int8_t that
14502         that C99 doesn’t guarantee.
14503         [!_LIBC]: Include libc-config.h; define __strverscmp.
14504         Include stdint.h.
14505         (__strverscmp): Assume C99.  Use uint_least8_t
14506         and int_least8_t instead of unsigned char and signed char.
14507         * modules/strverscmp (Depends-on): Add libc-config, stdint.
14509 2019-06-25  Bruno Haible  <bruno@clisp.org>
14511         tss tests: Add tests for destructors and races.
14512         * tests/test-tss.c (worker_thread): Fix typo in debug message.
14513         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
14514         functions.
14515         (main): Invoke them.
14516         * modules/tls-tests (Depends-on): Add mtx.
14518 2019-06-25  Bruno Haible  <bruno@clisp.org>
14520         tls tests: Add tests for destructors and races.
14521         * tests/test-tls.c: Include glthread/lock.h.
14522         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
14523         functions.
14524         (main): Invoke them.
14525         * modules/tls-tests (Depends-on): Add lock.
14527 2019-06-25  Bruno Haible  <bruno@clisp.org>
14529         windows-tls: Implement TLS key destructors for native Windows.
14530         * lib/windows-tls.h (glwthread_tls_process_destructors): New
14531         declaration.
14532         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
14533         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
14534         (dtor_table_init_once, dtor_table_lock: New variables.
14535         (struct dtor): New type.
14536         (dtor_table, dtors_count, dtors_used, dtors_allocated,
14537         dtor_processing_threads): New variables.
14538         (dtor_table_initialize, dtor_table_ensure_initialized,
14539         dtor_table_shrink_used, glwthread_tls_process_destructors): New
14540         functions.
14541         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
14542         handle non-NULL destructors.
14543         * modules/windows-tls (Depends-on): Add windows-once.
14544         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
14545         Use the functions declared in windows-tls.h.
14546         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
14547         GLWTHREAD_DESTRUCTOR_ITERATIONS.
14548         * lib/windows-thread.c: Include windows-tls.h.
14549         (wrapper_func, glwthread_thread_exit): Invoke
14550         glwthread_tls_process_destructors.
14551         * modules/windows-thread (Depends-on): Add windows-tls.
14553 2019-06-25  Bruno Haible  <bruno@clisp.org>
14555         threadlib: Avoid autoconf warning "was expanded before it was required".
14556         * modules/threadlib (configure.ac): Require gl_THREADLIB.
14558 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
14560         argmatch: remove duplicate const qualifier
14561         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
14563 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14565         unistd: stddef.h and sys/types.h namespace cleanup
14566         * lib/unistd.in.h [__GLIBC__]:
14567         Do not include stddef.h or sys/types.h.
14568         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
14569         supposed to declare off_t and ssize_t.  Problem found when looking
14570         at why @GNULIB_PWRITE@ was different from the newly-added
14571         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
14573 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
14575         maintainer-makefile: restore portability to non-GNU awks
14576         Reported by Tim Rühsen.
14577         * top/maint.mk (AWK): New variable.  Use it.
14578         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
14580 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14582         Document setvbuf _IOLBF problem
14583         * doc/posix-functions/setvbuf.texi (setvbuf):
14584         Document MS-Windows portability problem with _IOLBF.
14586         Document lseek SEEK_DATA/SEEK_HOLE
14587         * doc/posix-functions/lseek.texi (lseek):
14588         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
14590 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
14592         argmatch: put all the docs member last.
14593         Reported by Bruno Haible.
14594         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
14595         member before the docs done.
14596         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
14598 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
14600         argmatch: add support to generate the usage message.
14601         * lib/argmatch.c: Move some #includes and gettext support to...
14602         * lib/argmatch.h: here.
14603         (ARGMATCH_DEFINE_GROUP): New macro.
14604         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
14605         (argmatch_backup_group): New.
14606         (CHECK): New.
14607         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
14608         argmatch_backup_argument and argmatch_backup_usage.
14609         * modules/argmatch: We depend on c99.
14610         * doc/argmatch.texi (Recognizing Option Arguments): New.
14611         * doc/gnulib.texi: Use it.
14613 2019-06-21  Bruno Haible  <bruno@clisp.org>
14615         thrd: Add comment.
14616         * lib/thrd.c (pthread_main_func): Add comment.
14618 2019-06-21  Bruno Haible  <bruno@clisp.org>
14620         threads-h: Define 'thread_local' if and only if it actually works.
14621         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
14622         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
14623         Oracle Solaris Studio C. Compile a simple program, to see whether
14624         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
14625         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
14626         * lib/threads.in.h (thread_local): Undefine if it does not work.
14627         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
14628         (Link): Mention LIBTHREADLOCAL.
14629         * tests/test-threads.c: Don't check that thread_local is defined.
14630         * tests/test-thread_local.c: New file.
14631         * modules/threads-h-tests (Files): Add it and macros.h.
14632         (Depends-on): Add thrd and stdint.
14633         (configure.ac): Test whether 'alarm' is declared.
14634         (Makefile.am): Arrange to build and link test-thread_local.
14635         * doc/posix-headers/threads.texi: Mention the platforms that don't
14636         support 'thread_local'.
14638 2019-06-20  Bruno Haible  <bruno@clisp.org>
14640         threads-h: Simplify link dependencies.
14641         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
14642         Don't set LTLIBSTDTHREAD.
14643         * modules/thrd (Link): Simplify accordingly.
14644         * modules/mtx (Link): Likewise.
14645         * modules/cnd (Link): Likewise.
14646         * modules/tss (Link): Likewise.
14647         * modules/threads (Link): Likewise.
14649 2019-06-20  Bruno Haible  <bruno@clisp.org>
14651         threads-h: Fix link error on FreeBSD 11.
14652         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
14653         also with -lpthread.
14655 2019-06-20  Bruno Haible  <bruno@clisp.org>
14657         threadlib: Fix typo (regression from today).
14658         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
14660 2019-06-20  Bruno Haible  <bruno@clisp.org>
14662         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
14663         * lib/windows-thread.c: Include <errno.h>.
14664         * lib/windows-tls.c: Likewise.
14666 2019-06-20  Bruno Haible  <bruno@clisp.org>
14668         tss tests: Small improvement.
14669         * tests/test-tss.c (test_tss): Pass a different id to each thread.
14671 2019-06-20  Bruno Haible  <bruno@clisp.org>
14673         threads: New module.
14674         * modules/threads: New file.
14676 2019-06-20  Bruno Haible  <bruno@clisp.org>
14678         tss: Add tests.
14679         * tests/test-tss.c: New file, based on tests/test-tls.c.
14680         * modules/tss-tests: New file.
14682 2019-06-20  Bruno Haible  <bruno@clisp.org>
14684         cnd: Add tests.
14685         * tests/test-cnd.c: New file, based on tests/test-cond.c.
14686         * modules/cnd-tests: New file.
14688 2019-06-20  Bruno Haible  <bruno@clisp.org>
14690         mtx: Add tests.
14691         * tests/test-mtx.c: New file, based on tests/test-lock.c.
14692         * tests/test-call_once.c: New file, based on tests/test-once.c.
14693         * modules/mtx-tests: New file.
14695 2019-06-20  Bruno Haible  <bruno@clisp.org>
14697         thrd: Add tests.
14698         * tests/test-thrd_create.c: New file, based on
14699         tests/test-thread_create.c.
14700         * tests/test-thrd_current.c: New file, based on
14701         tests/test-thread_self.c.
14702         * modules/thrd-tests: New file.
14704 2019-06-20  Bruno Haible  <bruno@clisp.org>
14706         tss: New module.
14707         * lib/tss.c: New file.
14708         * modules/tss: New file.
14709         * doc/posix-functions/tss_create.texi: Mention the new module.
14710         * doc/posix-functions/tss_set.texi: Likewise.
14711         * doc/posix-functions/tss_get.texi: Likewise.
14712         * doc/posix-functions/tss_delete.texi: Likewise.
14714 2019-06-20  Bruno Haible  <bruno@clisp.org>
14716         cnd: New module.
14717         * lib/cnd.c: New file.
14718         * modules/cnd: New file.
14719         * doc/posix-functions/cnd_init.texi: Mention the new module.
14720         * doc/posix-functions/cnd_wait.texi: Likewise.
14721         * doc/posix-functions/cnd_timedwait.texi: Likewise.
14722         * doc/posix-functions/cnd_signal.texi: Likewise.
14723         * doc/posix-functions/cnd_broadcast.texi: Likewise.
14724         * doc/posix-functions/cnd_destroy.texi: Likewise.
14726 2019-06-20  Bruno Haible  <bruno@clisp.org>
14728         mtx: New module.
14729         * lib/mtx.c: New file.
14730         * modules/mtx: New file.
14731         * doc/posix-functions/call_once.texi: Mention the new module.
14732         * doc/posix-functions/mtx_init.texi: Likewise.
14733         * doc/posix-functions/mtx_lock.texi: Likewise.
14734         * doc/posix-functions/mtx_trylock.texi: Likewise.
14735         * doc/posix-functions/mtx_timedlock.texi: Likewise.
14736         * doc/posix-functions/mtx_unlock.texi: Likewise.
14737         * doc/posix-functions/mtx_destroy.texi: Likewise.
14739 2019-06-20  Bruno Haible  <bruno@clisp.org>
14741         thrd: New module.
14742         * lib/thrd.c: New file.
14743         * m4/thrd.m4: New file.
14744         * modules/thrd: New file.
14745         * doc/posix-functions/thrd_current.texi: Mention the new module.
14746         * doc/posix-functions/thrd_detach.texi: Likewise.
14747         * doc/posix-functions/thrd_equal.texi: Likewise.
14748         * doc/posix-functions/thrd_exit.texi: Likewise.
14749         * doc/posix-functions/thrd_sleep.texi: Likewise.
14750         * doc/posix-functions/thrd_yield.texi: Likewise.
14751         * doc/posix-functions/thrd_create.texi: Mention the new module and the
14752         AIX bug.
14753         * doc/posix-functions/thrd_join.texi: Mention the new module and the
14754         AIX and Solaris bugs.
14756 2019-06-20  Bruno Haible  <bruno@clisp.org>
14758         threads-h: Add tests.
14759         * tests/test-threads.c: New file.
14760         * modules/threads-h-tests: New file.
14761         * tests/test-threads-c++.cc: New file.
14762         * modules/threads-h-c++-tests: New file.
14764 2019-06-20  Bruno Haible  <bruno@clisp.org>
14766         threads-h: New module.
14767         * lib/threads.in.h: New file.
14768         * m4/threads.m4: New file.
14769         * m4/yield.m4 (gl_YIELD): Update comment.
14770         * modules/threads-h: New file.
14771         * modules/yields (configure.ac): Use AC_REQUIRE.
14772         * doc/posix-headers/threads.texi: Mention the new module and the AIX
14773         bugs.
14775 2019-06-20  Bruno Haible  <bruno@clisp.org>
14777         windows-thread: New module.
14778         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
14779         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
14780         * lib/glthread/thread.h: Include windows-thread.h.
14781         (gl_thread_t): Define using glwthread_thread_t.
14782         (glthread_create): Define using glwthread_thread_create.
14783         (glthread_join): Define using glwthread_thread_join.
14784         (gl_thread_self): Define using glwthread_thread_self.
14785         (gl_thread_exit): Define using glwthread_thread_exit.
14786         (glthread_create_func, glthread_join_func, gl_thread_self_func,
14787         gl_thread_exit_func): Remove declarations.
14788         * lib/glthread/thread.c (self_key): Remove variable.
14789         (do_init_self_key, init_self_key): Remove functions.
14790         (struct gl_thread_struct): Remove type.
14791         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
14792         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
14793         functions.
14794         * modules/windows-thread: New file.
14795         * modules/thread (Depends-on): Add windows-thread.
14797 2019-06-20  Bruno Haible  <bruno@clisp.org>
14799         windows-tls: New module.
14800         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
14801         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
14802         * lib/glthread/tls.h: Include windows-tls.h.
14803         (gl_tls_key_t): Define using glwthread_tls_key_t.
14804         * modules/windows-tls: New file.
14805         * modules/tls (Depends-on): Add windows-tls.
14807 2019-06-20  Bruno Haible  <bruno@clisp.org>
14809         windows-cond: New module.
14810         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
14811         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
14812         * lib/glthread/cond.h: Include windows-cond.h.
14813         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
14814         (gl_cond_t): Define using glwthread_cond_t.
14815         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
14816         (glthread_cond_init): Define using glwthread_cond_init.
14817         (glthread_cond_wait): Define using glwthread_cond_wait.
14818         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
14819         (glthread_cond_signal): Define using glwthread_cond_signal.
14820         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
14821         (glthread_cond_destroy): Define using glwthread_cond_destroy.
14822         (glthread_cond_init_func, glthread_cond_wait_func,
14823         glthread_cond_timedwait_func, glthread_cond_signal_func,
14824         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14825         declarations.
14826         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
14827         types.
14828         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
14829         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
14830         glthread_cond_init_func, glthread_cond_wait_func,
14831         glthread_cond_timedwait_func, glthread_cond_signal_func,
14832         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14833         functions.
14834         * modules/windows-cond: New file.
14835         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
14837 2019-06-20  Bruno Haible  <bruno@clisp.org>
14839         windows-timedrecmutex: New module.
14840         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
14841         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
14842         * modules/windows-timedrecmutex: New file.
14844 2019-06-20  Bruno Haible  <bruno@clisp.org>
14846         windows-timedmutex: New module.
14847         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
14848         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
14849         * modules/windows-timedmutex: New file.
14851 2019-06-20  Bruno Haible  <bruno@clisp.org>
14853         windows-recmutex: New module.
14854         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
14855         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
14856         * lib/glthread/lock.h: Include windows-recmutex.h.
14857         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
14858         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
14859         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
14860         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
14861         (glthread_recursive_lock_unlock): Define using
14862         glwthread_recmutex_unlock.
14863         (glthread_recursive_lock_destroy): Define using
14864         glwthread_recmutex_destroy.
14865         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
14866         glthread_recursive_lock_unlock_func,
14867         glthread_recursive_lock_destroy_func): Remove declarations.
14868         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
14869         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
14870         glthread_recursive_lock_destroy_func): Remove functions.
14871         * modules/windows-recmutex: New file.
14872         * modules/lock (Depends-on): Add windows-recmutex.
14874 2019-06-20  Bruno Haible  <bruno@clisp.org>
14876         windows-mutex: New module.
14877         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
14878         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
14879         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
14880         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
14881         (gl_spinlock_t): Remove type.
14882         (gl_lock_t): Define using glwthread_mutex_t.
14883         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
14884         (glthread_lock_init): Define using glwthread_mutex_init.
14885         (glthread_lock_lock): Define using glwthread_mutex_lock.
14886         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
14887         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
14888         (glthread_lock_init_func, glthread_lock_lock_func,
14889         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14890         declarations.
14891         Use glwthread_spinlock_t instead of gl_spinlock_t.
14892         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
14893         GLWTHREAD_SPINLOCK_INIT.
14894         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
14895         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14896         functions.
14897         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
14898         gl_spinlock_t.
14899         * modules/windows-mutex: New file.
14900         * modules/lock (Depends-on): Add windows-mutex.
14902 2019-06-20  Bruno Haible  <bruno@clisp.org>
14904         windows-once: New module.
14905         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
14906         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
14907         * lib/glthread/lock.h: Include windows-once.h.
14908         (gl_once_t): Define using glwthread_once_t.
14909         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
14910         (glthread_once): Define using glwthread_once.
14911         (glthread_once_func): Remove declaration.
14912         * lib/glthread/lock.c (glthread_once_func): Remove function.
14913         * modules/windows-once: New file.
14914         * modules/lock (Depends-on): Add windows-once.
14916 2019-06-20  Bruno Haible  <bruno@clisp.org>
14918         lock, cond: Avoid possible counter wraparound on Windows.
14919         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
14920         field of the guard unchanged if it was already positive.
14921         (glthread_rwlock_rdlock_func): Likewise.
14922         (glthread_rwlock_wrlock_func): Likewise.
14923         (glthread_recursive_lock_lock_func): Likewise.
14924         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
14925         (glthread_cond_timedwait_func): Likewise.
14927 2019-06-20  Bruno Haible  <bruno@clisp.org>
14929         cond: Make glthread_cond_timedwait more reliable on Windows.
14930         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
14931         condition variable before looking at the current time.
14933 2019-06-20  Bruno Haible  <bruno@clisp.org>
14935         pthread_mutex_timedlock: New module.
14936         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
14937         new declaration.
14938         * lib/pthread_mutex_timedlock.c: New file.
14939         * m4/pthread_mutex_timedlock.m4: New file.
14940         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
14941         whether pthread_mutex_timedlock is declared.
14942         (gl_PTHREAD_MODULE_INDICATOR): New macro.
14943         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14944         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14945         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
14946         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14947         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14948         * modules/pthread_mutex_timedlock: New file.
14949         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
14950         module.
14952 2019-06-20  Bruno Haible  <bruno@clisp.org>
14954         thread, lock, cond, tls: Recognize C11 multithreaded applications.
14955         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
14956         * lib/glthread/thread.h (c11_threads_in_use): New macro.
14957         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14958         * lib/glthread/lock.h (c11_threads_in_use): New macro.
14959         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14960         * lib/glthread/cond.h (c11_threads_in_use): New macro.
14961         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14962         * lib/glthread/tls.h (c11_threads_in_use): New macro.
14963         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14965 2019-06-20  Bruno Haible  <bruno@clisp.org>
14967         tls tests: Small improvements.
14968         * tests/test-tls.c: Include <stdint.h>.
14969         (worker_thread): Avoid gcc warning on 64-bit mingw.
14970         (test_tls): Pass a different id to each thread.
14971         * modules/tls-tests (Depends-on): Add stdint.
14973 2019-06-20  Bruno Haible  <bruno@clisp.org>
14975         cond tests: Simplify.
14976         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
14978 2019-06-20  Bruno Haible  <bruno@clisp.org>
14980         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
14981         * tests/test-lock.c (test_once): Don't reference fire_signal if
14982         !ENABLE_LOCKING.
14984 2019-06-19  Bruno Haible  <bruno@clisp.org>
14986         nanosleep: Relicense under LGPLv2+.
14987         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
14988         * modules/nanosleep (License): Change to LGPLv2+.
14990 2019-06-19  Bruno Haible  <bruno@clisp.org>
14992         Reorder pieces of header in perl scripts.
14993         The desired order is
14994         - Prologue part 1 (2 lines with #!)
14995         - Program short description
14996         - Copyright and license notice
14997         - Written-by notice
14998         - Program short description (optional)
14999         - Program long description (optional)
15000         - Prologue part 2
15001         - Time stamp
15002         - Code
15003         Reported by Paul Eggert.
15004         * build-aux/announce-gen: Reorder header.
15005         * build-aux/gitlog-to-changelog: Likewise.
15006         * build-aux/useless-if-before-free: Likewise.
15007         * build-aux/prefix-gnulib-mk: Add copyright notice and short
15008         description.
15009         * build-aux/update-copyright: Likewise. Add short description. Bump
15010         time-stamp-line-limit to 200.
15012 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
15014         verify-tests: work around xlc bug
15015         Problem reported by Bruno Haible in:
15016         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
15017         * tests/test-verify.c (item): Move the arithmetic inside the
15018         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
15020 2019-06-16  Bruno Haible  <bruno@clisp.org>
15022         Restore Emacs time-stamp hook applicability.
15023         Reported by Darshit Shah <darnir@gnu.org>.
15024         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
15025         * build-aux/announce-gen: Likewise.
15026         * build-aux/gitlog-to-changelog: Likewise.
15027         * build-aux/prefix-gnulib-mk: Likewise.
15028         * build-aux/update-copyright: Likewise.
15030 2019-06-15  Bruno Haible  <bruno@clisp.org>
15032         Fix scripts to have valid executable format on Alpine Linux.
15033         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
15034         Idea by Paul Eggert.
15035         * build-aux/useless-if-before-free: Use a prologue that starts with
15036         '#!/bin/sh'.
15037         * build-aux/announce-gen: Likewise.
15038         * build-aux/gitlog-to-changelog: Likewise.
15039         * build-aux/prefix-gnulib-mk: Likewise.
15040         * build-aux/update-copyright: Likewise.
15041         * tests/test-update-copyright.sh: Update test program accordingly.
15043 2019-06-10  Bruno Haible  <bruno@clisp.org>
15045         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
15046         Reported by Nikita Ermakov <arei@altlinux.org> in
15047         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
15048         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
15049         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
15051 2019-06-10  Bruno Haible  <bruno@clisp.org>
15053         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
15054         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
15055         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
15056         a copy of the path argument.
15057         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
15058         it.
15060 2019-06-10  Bruno Haible  <bruno@clisp.org>
15062         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
15063         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
15064         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
15065         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
15066         a copy of the path argument.
15067         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
15068         it.
15070 2019-06-10  Bruno Haible  <bruno@clisp.org>
15072         posix_spawn_file_actions_addfchdir: Add tests.
15073         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
15074         * tests/test-posix_spawn5.c: New file.
15075         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
15077 2019-06-10  Bruno Haible  <bruno@clisp.org>
15079         posix_spawn_file_actions_addfchdir: New module.
15080         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
15081         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
15082         union member 'fchdir_action'.
15083         * lib/spawn_faction_addfchdir.c: New file.
15084         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
15085         * m4/posix_spawn_faction_addfchdir.m4: New file.
15086         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
15087         'posix_spawn_file_actions_addfchdir' is present and whether
15088         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
15089         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
15090         posix_spawn_file_actions_addfchdir is declared.
15091         (gl_SPAWN_H_DEFAULTS): Initialize
15092         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
15093         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
15094         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
15095         * modules/spawn (Makefile.am): Substitute
15096         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
15097         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
15098         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
15099         * modules/posix_spawn_file_actions_addfchdir: New file.
15100         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
15101         signature.
15102         * doc/posix-functions/posix_spawn.texi: Mention the new module.
15103         * doc/posix-functions/posix_spawnp.texi: Likewise.
15104         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
15105         Likewise.
15107 2019-06-10  Bruno Haible  <bruno@clisp.org>
15109         doc: Document existence of posix_spawn_file_actions_addchdir module.
15110         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
15111         the posix_spawn_file_actions_addchdir module.
15113 2019-06-10  Bruno Haible  <bruno@clisp.org>
15115         posix_spawn-internal: Fix module description.
15116         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
15117         from here...
15118         * modules/posix_spawnp (configure.ac): ... and here...
15119         * modules/posix_spawn-internal (configure.ac): ... to here.
15121 2019-06-10  Bruno Haible  <bruno@clisp.org>
15123         doc: Update and improve documentation of glibc functions.
15124         This is a series of commits that
15125         - updates the documentation to the state of glibc 2.29,
15126         - adds references to Linux man pages and glibc documentation,
15127         - marks Linux specific functions as such.
15128         These are the commits:
15129         doc: Update after removal of crypt functions from glibc 2.28.
15130         doc: Remove mention of function vm86 (does not exist on x86_64).
15131         doc: Remove mention of functions that are gone from glibc.
15132         doc: Mention that glibc no longer provides h_errno.
15133         doc: Mention the availability of specific functions in glibc versions.
15134         doc: Mention eaccess.
15135         doc: Add references to Linux man pages.
15136         doc: Add references to glibc documentation.
15137         doc: Mention inotify_* functions.
15138         doc: Mention ppoll.
15139         doc: Mention sched_getcpu.
15140         doc: Mention sync_file_range.
15141         doc: Mention epoll_pwait.
15142         doc: Mention eventfd, eventfd_read, eventfd_write.
15143         doc: Mention signalfd.
15144         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
15145         doc: Mention epoll_create1.
15146         doc: Mention getauxval.
15147         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
15148         doc: Mention nextdown, nextup.
15149         doc: Mention more ISO TS 18661-1 <math.h> functions.
15150         doc: Mention ISO TS 18661-1 <fenv.h> functions.
15151         doc: Mention getrandom, getentropy.
15152         doc: Mention strfromf, strfromd, strfroml.
15153         doc: Mention preadv2, pwritev2.
15154         doc: Mention copy_file_range.
15155         doc: Mention memfd_create.
15156         doc: Mention mlock2.
15157         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
15158         doc: Mention more ISO TS 18661-1 <math.h> functions.
15159         doc: Mention renameat2.
15160         doc: Mention statx.
15161         doc: Mention the ISO C11 multithreading header and functions.
15162         doc: Mention getcpu.
15163         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
15164         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
15165         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
15166         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
15167         doc: Some glibc functions also exist on Solaris 11.
15168         doc: Some glibc functions also exist on Solaris 11.4.
15169         doc: Some glibc functions also exist on FreeBSD.
15170         doc: Some glibc functions also exist on BeOS.
15171         doc: Some glibc functions also exist on Haiku.
15172         doc: Mark functions which exist only on Linux.
15173         doc: Mark functions which exist only on Linux and illumos.
15175 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
15177         copy-file: fix typo
15178         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
15180         copy-file-range: simplify into a stub
15181         Based on a comment by Florian Weimer in:
15182         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
15183         It turns out that Emacs (which will use this module) won’t need an
15184         emulation and I suspect other programs won’t either, because these
15185         programs will need to fall back on read+write anyway.  Perhaps I
15186         am wrong and other programs will be able to use an emulation; if
15187         so, this patch can be reverted.
15188         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
15189         Just call it copy_file_range.
15190         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
15191         Check via AC_LINK_IFELSE.
15192         * modules/copy-file-range (Depends-on): Remove modules no longer used.
15194 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
15196         copy-file: prefer copy_file_range
15197         * lib/copy-file.c: Do not include xalloc.h.
15198         (qcopy_file_preserving): Allocate a buffer only if
15199         copy_file_range does not suffice.  If the allocation fails
15200         don't give up; just use a small stack-based buffer.
15201         Prefer copy_file_range if it works.
15202         * modules/copy-file (Depends-on): Add copy-file-range.
15203         Remove xalloc.
15205         copy-file-range: new module
15206         * MODULES.html.sh: Add copy-file-range.
15207         * lib/copy-file-range.c, m4/copy-file-range.m4:
15208         * modules/copy-file-range: New files.
15209         * lib/unistd.in.h (copy_file_range): Declare.
15210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
15211         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
15212         * modules/unistd (unistd.h): Substitute them.
15214 2019-05-28  Bruno Haible  <bruno@clisp.org>
15216         binary-io: Attempted use of O_BINARY on consoles no longer fails.
15217         Reported by KO Myung-Hun <komh78@gmail.com> in
15218         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
15219         * lib/binary-io.h (__gl_setmode_check): Remove function.
15220         (set_binary_mode): Declare as notinline on DJGPP and EMX.
15221         * lib/binary-io.c (__gl_setmode_check): Remove function.
15222         (set_binary_mode): Define here on DJGPP and EMX. Inline
15223         __gl_setmode_check. In case of a tty, don't return an error code.
15225 2019-05-28  James Youngman  <jay@gnu.org>
15227         dirent-safer: Make opendir_safer usable from C++.
15228         * lib/dirent-safer.h: use extern "C".
15230 2019-05-28  James Youngman  <jay@gnu.org>
15232         canonicalize: Make canonicalize_filename_mode usable from C++.
15233         * lib/canonicalize.h: use extern "C".
15235 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
15237         prefix-gnulib-mk: Fix CPPFLAGS migration.
15238         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
15239         _a part of the library name.
15241 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15243         flexmember: update comments again
15244         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
15246         flexmember: update comment
15247         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
15249 2019-05-20  Bruno Haible  <bruno@clisp.org>
15251         setlocale: Improve fallback on macOS.
15252         * lib/setlocale.c (search): Optimize away a redundant strcmp()
15253         invocation.
15254         (locales_with_principal_territory): New array.
15255         (langcmp, get_main_locale_with_same_language): New functions.
15256         (locales_with_principal_language): New array.
15257         (terrcmp, get_main_locale_with_same_territory): New functions.
15258         (rpl_setlocale): When setlocale_single failed, try again with a locale
15259         that is more likely to exist. Don't warn if the environment variable
15260         SETLOCALE_VERBOSE is not set.
15262 2019-05-19  Bruno Haible  <bruno@clisp.org>
15264         localename: Fix default on macOS.
15265         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
15266         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
15267         (gl_locale_name_environ, gl_locale_name_default): Remove code for
15268         HAVE_CFLOCALECOPYCURRENT.
15269         * lib/localename.h (gl_locale_name_default): Update.
15271 2019-05-19  Karl Berry  <karl@freefriends.org>
15273         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
15274         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
15275         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
15277 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
15279         maintainer-makefile: catch uses of $< in non-implicit rules
15280         * top/maint.mk (sc_prohibit_magic_number_exit): New.
15282 2019-05-18  Bruno Haible  <bruno@clisp.org>
15284         threadlib: Provide an easy way to avoid mingw's winpthreads library.
15285         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
15286         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
15287         gl_use_threads accordingly.
15289 2019-05-18  Bruno Haible  <bruno@clisp.org>
15291         pthread_sigmask: Fix compilation error with --enable-threads=windows.
15292         Reported by Tim Rühsen in
15293         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
15294         and Michele Locati in
15295         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
15296         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
15297         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
15298         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
15299         in use and regardless which threads API is chosen.
15301 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
15303         close-stream, closein, closeout: simplify
15304         I noticed this opportunity for simplification while drafting a
15305         new, related module that I haven’t had time to finish yet.
15306         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
15307         * modules/close-stream (Files): Remove m4/close-stream.m4.
15308         (configure.ac): Omit gl_CLOSE_STREAM.
15309         * modules/closein (Files): Remove m4/closein.m4
15310         (configure.ac): Omit gl_CLOSEIN.
15311         * modules/closeout (Files): Remove m4/closeout.m4.
15312         (configure.ac): Omit gl_CLOSEOUT.
15314 2019-05-12  Bruno Haible  <bruno@clisp.org>
15316         libtool-next-version: New program.
15317         * build-aux/libtool-next-version: New file.
15319 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
15320             Bruno Haible  <bruno@clisp.org>
15322         version-etc: Ease translation.
15323         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
15324         URLs and formatting newlines out of translatable string.
15326 2019-05-11  Bruno Haible  <bruno@clisp.org>
15328         gnupload: Explain how to create symlinks.
15329         * build-aux/gnupload (usage): Add an example that creates symlinks.
15331 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15333         fpucw: port to gcc -pedantic
15334         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
15335         Use __extension__ if using ({ ... }).
15337         crypto/af_alg: port to strict C compilers
15338         * lib/af_alg.c: Include af_alg.h regardless, so that the
15339         compilation unit is nonempty.
15341 2019-05-10  Bruno Haible  <bruno@clisp.org>
15343         base64: Avoid false positive warning from Coverity.
15344         Reported by Kamil Dudka <kdudka@redhat.com>.
15345         Idea by Paul Eggert.
15346         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
15347         '& 0x3f' to the array index expressions. This convinces Coverity that
15348         there is no out-of-bounds array reference, regardless of the input.
15350 2019-05-09  Bruno Haible  <bruno@clisp.org>
15352         gettext: Update to gettext 0.20.
15353         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
15354         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
15355         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
15356         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
15357         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
15358         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
15359         (configure.ac): Request infrastructure compatible with gettext 0.20.
15360         * m4/glibc2.m4: Remove file.
15361         * m4/intdiv0.m4: Remove file.
15362         * m4/intl.m4: Remove file.
15363         * m4/intldir.m4: Remove file.
15364         * m4/intmax.m4: Remove file.
15365         * m4/printf-posix.m4: Remove file.
15366         * m4/uintmax_t.m4: Remove file.
15367         * m4/gettext.m4: Update from gettext 0.20.
15368         * m4/po.m4: Likewise.
15370 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
15372         verify: remove verify_true
15373         * NEWS: Mention this.
15374         * lib/verify.h (verify_true): Remove.
15375         * tests/test-verify.c (item): Test verify_expr, not verify_true.
15377         Support C2X and C++17 static_assert
15378         C2X and C++17 finally added support for a simple, single-argument
15379         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
15380         doing back in 2005.  Implement static_assert on older platforms.
15381         The only remaining advantage of ‘verify’ is a shorter name.
15382         * doc/posix-headers/assert.texi (assert.h):
15383         * doc/verify.texi (Compile-time Assertions):
15384         Modernize for C2X and C++17.
15385         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
15386         New macros.
15387         (_GL_HAVE__STATIC_ASSERT): Remove.
15388         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
15389         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
15390         string.  All callers changed.
15391         (_GL_VERIFY): Require 3 or more args, of which only the first 2
15392         are used.  All callers changed.
15393         (_Static_assert): Allow either 1 or 2 args, and define if
15394         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
15395         !_GL_HAVE__STATIC_ASSERT.
15396         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
15397         of defining if !_GL_HAVE_STATIC_ASSERT.
15398         (verify_expr, verify): Don’t bother trying to copy the expression
15399         into the diagnostic, since 1-argument static_assert doesn’t.
15400         (verify): Prefer 1-argument _Static_assert if it works.
15401         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
15403 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15405         Fix _GL_HAVE__STATIC_ASSERT typo
15406         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
15407         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
15409 2019-05-05  Bruno Haible  <bruno@clisp.org>
15411         wcwidth: Ensure width 1, not 2, for ambiguous characters.
15412         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
15413         via Akim Demaille <akim.demaille@gmail.com>.
15414         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
15415         en_US.UTF-8 locale, since that is more likely to be present than an
15416         fr_FR.UTF-8 locale.
15417         * tests/test-wcwidth.c (main): Check the width of U+2202.
15418         * doc/posix-functions/wcwidth.texi: Mention the issue.
15420 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15422         Port manywarnings to GCC 9
15423         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
15424         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
15425         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
15426         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
15427         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
15428         --help=warnings output.
15429         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
15430         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
15431         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
15433 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
15435         Sync lib/mktime-internal.h from glibc
15436         * config/srclist.txt: Add entry for lib/mktime-internal.h.
15437         * lib/mktime-internal.h: Autoupdate.
15439 2019-04-28  Bruno Haible  <bruno@clisp.org>
15441         tls tests: Prevent that the test takes too long.
15442         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
15443         (main): Let the test fail if it takes more than 10 minutes.
15444         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
15446 2019-04-27  Bruno Haible  <bruno@clisp.org>
15448         lock tests: Prevent that the test takes too long.
15449         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
15450         (main): Let the test fail if it takes more than 10 minutes.
15451         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
15453 2019-04-27  Bruno Haible  <bruno@clisp.org>
15455         localename: Fix crash on mingw (regression from 2018-11-23).
15456         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
15457         locale name that is null.
15459 2019-04-27  Bruno Haible  <bruno@clisp.org>
15461         Fix gcc warnings on 64-bit mode mingw.
15462         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
15463         * lib/gl_array_list.c: Likewise.
15464         * lib/gl_array_map.c: Likewise.
15465         * lib/gl_array_set.c: Likewise.
15466         * lib/gl_carray_list.c: Likewise.
15467         * lib/gl_sublist.c: Likewise.
15468         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
15469         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
15470         * lib/gl_hash_map.c (uintptr_t): Likewise.
15471         * lib/gl_hash_set.c (uintptr_t): Likewise.
15472         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
15473         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
15474         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
15475         * lib/iconv.c (uintptr_t): Likewise.
15476         * lib/iconv_close.c (uintptr_t): Likewise.
15477         * tests/test-lock.c: Include <stdint.h>.
15478         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
15479         'long'.
15480         * modules/clean-temp (Depends-on): Add stdint.
15481         * modules/array-list (Depends-on): Likewise.
15482         * modules/array-map (Depends-on): Likewise.
15483         * modules/array-set (Depends-on): Likewise.
15484         * modules/carray-list (Depends-on): Likewise.
15485         * modules/sublist (Depends-on): Likewise.
15486         * modules/lock-tests (Depends-on): Likewise.
15488 2019-04-27  Bruno Haible  <bruno@clisp.org>
15490         error: Tweak indentation.
15491         * lib/error.c: Correct indentation.
15493 2019-04-27  Bruno Haible  <bruno@clisp.org>
15495         term-style-control: Fix gcc warning on mingw.
15496         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
15497         of i.
15499 2019-04-26  Bruno Haible  <bruno@clisp.org>
15501         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
15502         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
15504 2019-04-26  Bruno Haible  <bruno@clisp.org>
15506         relocatable-prog: Fix gcc warning on mingw.
15507         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
15508         on EMX.
15510 2019-04-02  Bruno Haible  <bruno@clisp.org>
15512         gitsub.sh: New file.
15513         * top/gitsub.sh: New file.
15515 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
15517         argmatch: use void* for raw memory pointers
15518         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
15519         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
15520         to "values", keep char* for strings.
15522 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
15524         prefix-gnulib-mk: fix the support for gnulib-po
15525         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
15526         Don't touch HAVE_* variables.
15527         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
15529 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
15531         di-set: allow free with 'ino_map' being NULL.
15532         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
15533         is NULL.  Bug introduced in commit 3703dbbe88dd.
15534         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
15535         as a test.
15537 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
15539         * lib/str-two-way.h: Fix comment typo.
15541 2019-04-13  Bruno Haible  <bruno@clisp.org>
15543         x-to-1: Restore ability to use original calling convention.
15544         * build-aux/x-to-1.in: Add comments. Accept the original form of
15545         HELP2MAN argument as well as the form expected since 2012-12-12.
15547 2019-04-13  Bruno Haible  <bruno@clisp.org>
15549         x-to-1: Avoid failure due to missing perl modules.
15550         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
15551         needs are installed.
15553 2019-04-13  Bruno Haible  <bruno@clisp.org>
15555         openmp-init: New module.
15556         * modules/openmp-init: New file.
15557         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
15558         the changes from 2019-04-09.
15560 2019-04-12  Bruno Haible  <bruno@clisp.org>
15562         signbit: Fix compilation error when gnulib's math.h exists twice.
15563         * lib/math.in.h (GNULIB_defined_signbit): New macro.
15565 2019-04-12  Bruno Haible  <bruno@clisp.org>
15567         openmp: Fix compilation error on platforms without OpenMP.
15568         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
15570 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
15572         mountlist: make parsing /proc/self/mountinfo more robust
15573         Cater for the following issues with mountinfo parsing (the first
15574         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
15575         in <https://bugs.gnu.org/35137>).
15576         1. The fields source, target, mntroot and fstype may contain characters
15577         like '\r'; sscanf(3) fails to read such values with the %s format
15578         specifier because it would stop at such characters.
15579         Example: "mount -t tmpfs tmpfs /foo^Mbar".
15580         The only true separator in that file is the ' ' character.
15581         2. The source field may be an empty string, which happens e.g. with
15582         "mount -t tmpfs '' /target".
15583         3. The fstype field may contain mangled characters as well which need
15584         unescaping.
15585         * lib/mountlist.c (terminate_at_blank): Add utility function.
15586         (read_file_system_list): In the block trying to read the mountinfo file,
15587         avoid using sscanf(3) with %s format; instead, parse the above fields
15588         separated by spaces one by one.
15589         This also handles the case when the source field is an empty string.
15590         Unescape the fstype field.
15592 2019-04-09  Bruno Haible  <bruno@clisp.org>
15594         openmp: Add workaround for 32-bit programs on AIX.
15595         * lib/omp.in.h: New file.
15596         * lib/omp-init.c: New file, based on lib/nproc.c.
15597         * m4/omp_h.m4: New file.
15598         * modules/openmp (Files): Add them.
15599         (Depends-on): Add include_next, c-ctype, setenv.
15600         (configure.ac): Invoke gl_OMP_H.
15601         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
15602         (Include): Mention <omp.h>.
15604 2019-04-09  Bruno Haible  <bruno@clisp.org>
15606         nproc: Fix return value for privileged processes.
15607         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
15608         getpid().
15610 2019-04-07  Bruno Haible  <bruno@clisp.org>
15612         Add copyright notices in several files.
15613         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
15614         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
15615         * lib/libunistring.valgrind: Likewise.
15616         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
15617         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
15618         * lib/memchr.valgrind: Likewise.
15619         * lib/memchr2.valgrind: Likewise.
15620         * lib/rawmemchr.valgrind: Likewise.
15621         * lib/relocatable.valgrind: Likewise.
15622         * lib/strchrnul.valgrind: Likewise.
15624 2019-03-25  Bruno Haible  <bruno@clisp.org>
15626         term-style-control tests: Fix link error.
15627         Reported by Tom G. Christensen in
15628         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
15629         * modules/term-style-control-tests (Makefile.am): Link
15630         test-term-style-control-hello and test-term-style-control-yes against
15631         LIBINTL.
15633 2019-03-24  Bruno Haible  <bruno@clisp.org>
15635         term-style-control: Add tests.
15636         * tests/test-term-style-control-hello.c: New file.
15637         * tests/test-term-style-control-yes.c: New file.
15638         * modules/term-style-control-tests: New file.
15640         term-style-control: New module.
15641         * lib/term-style-control.h: New file, based on libtextstyle's
15642         term-ostream.oo.h and term-ostream.oo.c.
15643         * lib/term-style-control.c: New file, based on libtextstyle's
15644         term-ostream.oo.c.
15645         * modules/term-style-control: New file.
15647 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15649         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
15650         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
15651         C++98 appears to be supported by Clang, but not by GCC nor ICC.
15653 2019-03-23  Bruno Haible  <bruno@clisp.org>
15655         Support cross-compilation to musl libc.
15656         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
15657         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
15658         musl libc.
15659         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15660         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
15661         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15662         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15663         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15664         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
15665         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15666         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
15667         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15668         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
15669         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
15670         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
15671         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15672         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15673         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
15674         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15675         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15676         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15677         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
15678         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15679         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15680         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15681         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
15682         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15683         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
15684         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15685         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15686         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15687         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
15688         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
15689         * m4/log.m4 (gl_FUNC_LOG): Likewise.
15690         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15691         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
15692         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
15693         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15694         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
15695         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
15696         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
15697         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
15698         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
15699         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
15700         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
15701         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
15702         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15703         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
15704         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15705         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15706         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
15707         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
15708         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
15709         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
15710         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
15711         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
15712         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
15713         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15714         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
15715         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15716         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15717         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15718         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
15719         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15720         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15721         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15722         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
15723         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15724         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15725         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15726         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
15727         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15728         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
15729         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15730         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15731         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15732         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15733         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
15734         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15735         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15738 2019-03-23  Bruno Haible  <bruno@clisp.org>
15740         posix_spawn_file_actions_*: Document musl libc bugs.
15741         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
15742         the bug.
15743         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
15744         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
15745         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
15746         cross-compiling to a musl system, guess no.
15747         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
15748         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
15750 2019-03-23  Bruno Haible  <bruno@clisp.org>
15752         futimens: Document musl libc bug.
15753         * doc/posix-functions/futimens.texi: Mention the bug.
15754         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
15755         cross-compiling, guess no on glibc and musl systems.
15757 2019-03-23  Bruno Haible  <bruno@clisp.org>
15759         Clarify that cross-compilation guesses are guesses.
15760         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
15761         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
15762         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
15763         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
15764         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
15765         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
15766         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
15767         gl_cv_glob_lists_symlinks.
15768         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
15769         'guessing ' to ac_cv_func_malloc_0_nonnull.
15770         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
15771         'guessing ' to ac_cv_func_realloc_0_nonnull.
15772         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
15773         'guessing ' to gl_cv_func_poll.
15774         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
15775         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
15776         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
15778 2019-03-23  Bruno Haible  <bruno@clisp.org>
15780         strtold: Fix typo.
15781         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
15783 2019-03-23  Bruno Haible  <bruno@clisp.org>
15785         noreturn: In C++ mode with clang, use _Noreturn as fallback.
15786         Reported by Akim Demaille.
15787         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
15788         [[noreturn]] would not work, use _Noreturn instead.
15790 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15792         libtextstyle-optional: Fix compiler warnings.
15793         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
15794         as unused.
15796 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15798         bitset: fix memory leaks
15799         Reported by Bruno Haible.
15800         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
15801         * lib/bitset/vector.c (vbitset_free): New.
15802         (vbitset_vtable): Use it.
15804 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15806         bitset: minor changes
15807         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
15808         * lib/bitset/table.c: Formatting changes.
15809         Remove useless braces.
15810         Prefer using else in cascades of if/else-if with returns.
15811         * lib/bitset/vector.c: Reduce scopes.
15813 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15815         bitset: expose bitset_resize
15816         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
15817         * tests/test-bitset.c (check_attributes): Check bitset_resize.
15818         (main): Use a variable bitset as reference, since fixed does not support resize.
15820 2019-03-19  Bruno Haible  <bruno@clisp.org>
15822         doc: Document the 'stdnoreturn' and 'noreturn' modules.
15823         Reported by Akim Demaille.
15824         * doc/noreturn.texi: New file.
15825         * doc/gnulib.texi: Include it.
15827 2019-03-19  Bruno Haible  <bruno@clisp.org>
15829         doc: Document how to use 'static inline'.
15830         * doc/static-inline.texi: New file.
15831         * doc/gnulib.texi: Include it.
15833 2019-03-19  Bruno Haible  <bruno@clisp.org>
15835         libtextstyle-optional: Add tests.
15836         * tests/test-libtextstyle.c: New file, based on libtextstyle's
15837         adhoc-tests/hello.c.
15838         * tests/test-libtextstyle-default.css: New file, copied from
15839         libtextstyle's adhoc-tests/hello-default.css.
15840         * modules/libtextstyle-optional-tests: New file.
15842         libtextstyle-optional: New module.
15843         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
15844         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
15845         * modules/libtextstyle-optional: New file.
15847 2019-03-19  Bruno Haible  <bruno@clisp.org>
15849         c-stack: Make signal handlers more reliable.
15850         * lib/c-stack.c (progname): New variable.
15851         (die): Use it.
15852         (c_stack_action): Initialize it.
15853         (segv_handler): Save and restore errno.
15855 2019-03-19  Bruno Haible  <bruno@clisp.org>
15857         Help making signal handlers more reliable.
15858         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
15859         _GL_ASYNC_SAFE into config.h.
15860         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
15861         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
15862         argument.
15863         * lib/fatal-signal.c (action_t, uninstall_handlers,
15864         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
15865         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
15866         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
15867         _GL_ASYNC_SAFE.
15868         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
15869         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
15871 2019-03-18  Bruno Haible  <bruno@clisp.org>
15873         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
15874         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
15875         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
15877 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15879         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
15880         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
15881         GCC 4.8.
15883 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
15885         fts: minor simplification
15886         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
15888 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15890         bitset, timevar: Depend on c99.
15891         Reported by Bruno Haible.
15892         * modules/bitset, modules/timevar (Depends-on): Add c99.
15894 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15896         bitset: a bit (...) more tests
15897         * tests/test-bitset.c (check_attributes): Check zero and ones.
15899 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15901         bitset: fix overflows.
15902         Reported by Bruno Haible.
15903         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
15904         * lib/bitset/table.c (tbitset_test): last_bit is the position of
15905         the bit in the array of bitset_word, so be sure to take its modulo
15906         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
15907         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
15909 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
15911         bitset: style changes.
15912         * lib/bitset/table.c: Use NULL, not 0, for pointers.
15913         Formatting changes.
15914         (tbitset_list): Reduce scopes.
15916 2019-03-16  Bruno Haible  <bruno@clisp.org>
15918         fatal-signal: Pass the signal number to the action.
15919         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
15920         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
15921         (fatal_signal_handler): Pass the signal number to the action.
15922         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
15923         signal number as parameter.
15924         (create_temp_dir): Update.
15925         * lib/wait-process.c (cleanup_slaves_action): New function.
15926         (register_slave_subprocess): Update at_fatal_signal invocation.
15927         * NEWS: Mention the change.
15929 2019-03-16  Bruno Haible  <bruno@clisp.org>
15931         fatal-signal: Add function that lists the fatal signals.
15932         * lib/fatal-signal.h (get_fatal_signals): New declaration.
15933         * lib/fatal-signal.c (get_fatal_signals): New function.
15935 2019-03-14  Bruno Haible  <bruno@clisp.org>
15937         isatty: Make it return true in Cygwin consoles on native Windows.
15938         * lib/isatty.c: Include <string.h>.
15939         (GetProcAddress): New macro.
15940         (GetNamedPipeClientProcessIdFuncType): New type.
15941         (GetNamedPipeClientProcessIdFunc): New variable.
15942         (QueryFullProcessImageNameFuncType): New type.
15943         (QueryFullProcessImageNameFunc): New variable.
15944         (initialized): New variable.
15945         (initialize): New function.
15946         (IsCygwinConsoleHandle): New function.
15947         (isatty): Invoke it.
15948         * doc/posix-functions/isatty.texi: Mention the issue.
15950 2019-03-14  Bruno Haible  <bruno@clisp.org>
15952         all: Update URLs to msdn.microsoft.com.
15953         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
15954         was moved to docs.microsoft.com.
15956 2019-03-13  Bruno Haible  <bruno@clisp.org>
15958         gnulib-tool: Clarify the coding style.
15959         Suggested by Pavel Raiskup <praiskup@redhat.com>.
15960         * gnulib-tool: Add comment about coding style.
15962 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
15964         strtod: fix clash with strtold
15965         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
15966         * lib/strtod.c (compute_minus_zero, minus_zero):
15967         Simplify by remving the macro / external variable,
15968         and having just a function.  User changed.  This avoids
15969         the need for an external variable that might clash.
15971 2019-03-10  Bruno Haible  <bruno@clisp.org>
15973         alloca-opt: Fix conflict mingw's new <alloca.h> file.
15974         Reported by Eli Zaretskii <eliz@gnu.org>.
15975         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
15976         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
15977         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
15979 2019-03-10  Bruno Haible  <bruno@clisp.org>
15981         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
15982         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
15983         is in use.
15984         * tests/test-printf-posix2.c: Likewise.
15986 2019-03-10  Bruno Haible  <bruno@clisp.org>
15988         uninorm tests: Free allocated memory.
15989         * tests/uninorm/test-u32-normalize-big.h
15990         (struct normalization_test_file): Remove 'const' from allocated member.
15991         (free_normalization_test_file): New declaration.
15992         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
15993         memory.
15994         (free_normalization_test_file): New function.
15995         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
15996         'struct normalization_test_file' contents.
15997         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
15998         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
15999         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
16001 2019-03-10  Bruno Haible  <bruno@clisp.org>
16003         di-set: Fix memory leak.
16004         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
16005         not free().
16007 2019-03-10  Bruno Haible  <bruno@clisp.org>
16009         tests: Free allocated memory.
16010         Reported by <deltatau@protonmail.com> via Assaf Gordon.
16011         * tests/test-astrxfrm.c (main): Free allocated memory.
16012         * tests/test-bitset.c (compare, check_attributes): Free allocated
16013         bitsets.
16014         * tests/test-filenamecat.c (main): Free allocated memory.
16015         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
16016         * tests/test-freadptr.c (main): Likewise.
16017         * tests/test-freadptr2.c (main): Free allocated memory.
16018         * tests/test-freadseek.c (main): Likewise.
16019         * tests/test-gc-arcfour.c (main): Close allocated context.
16020         * tests/test-gc-arctwo.c (main): Likewise.
16021         * tests/test-gc-des.c (main): Close all allocated contexts.
16022         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
16023         * tests/test-pipe-filter-ii1.c (main): Likewise.
16024         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
16025         allocated file actions.
16026         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
16027         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
16028         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
16029         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
16030         * tests/test-strfmon_l.c (main): Free allocated locales.
16031         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
16032         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
16033         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
16034         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
16035         * tests/unistr/test-chr.h (main): Free input32.
16036         * tests/unistr/test-strchr.h (test_strchr): Likewise.
16038 2019-03-10  Bruno Haible  <bruno@clisp.org>
16040         tests: Prepare for using valgrind.
16041         * tests/*.sh: Invoke all test programs through ${CHECKER}.
16042         * tests/*/*.sh: Likewise.
16043         * tests/test-freadptr.c (main): Update accordingly.
16044         * tests/test-freadseek.c (main): Likewise.
16046 2019-03-09  Bruno Haible  <bruno@clisp.org>
16048         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
16049         * lib/get-rusage-as.c (get_rusage_as): When compiled by
16050         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
16051         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
16052         before exiting.
16054 2019-03-09  Jim Meyering  <meyering@fb.com>
16056         test-userspec.c: don't print NULL
16057         * tests/test-userspec.c (main): A test release of gcc,
16058         9.0.1 20190310, warned that this test would attempt to
16059         print a NULL pointer via a %s printf format.  Fix that
16060         and remove the unnecessary preceding "!diag" conjunct.
16061         Also add a comment.
16063 2019-03-03  Bruno Haible  <bruno@clisp.org>
16065         getloadavg: Write NULL for the null pointer.
16066         Reported by Michal Privoznik <mprivozn@redhat.com>.
16067         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
16069 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
16071         alloca, tsearch-tests: Write NULL for the null pointer.
16072         * lib/alloca.c (i00afunc): Write NULL instead of 0.
16073         * tests/test-tsearch.c (mangle_tree): Likewise.
16075 2019-03-09  Bruno Haible  <bruno@clisp.org>
16077         strfmon_l: Fix -fsanitize=address finding.
16078         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
16079         <string.h>.
16080         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
16081         (directive_t, directives_t): New types.
16082         (fmon_parse): New function.
16083         (rpl_strfmon_l): Don't call va_arg more often than needed for the
16084         format string. Consume 'long double' arguments in places where the
16085         format string indicates so.
16086         * modules/strfmon_l (Depends-on): Add 'stdbool'.
16088 2019-03-09  Bruno Haible  <bruno@clisp.org>
16090         crypto/des: Fix undefined behaviour.
16091         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
16092         shift operations on 'int'.
16094 2019-03-09  Bruno Haible  <bruno@clisp.org>
16096         Fix undefined behaviour.
16097         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
16098         'unsigned int', to avoid shift operations on 'int'.
16099         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
16100         * tests/test-count-leading-zeros.c (main): Use a random number that has
16101         as many bits as TYPE, not only 2*15 or 2*31 bits.
16102         * tests/test-count-trailing-zeros.c (main): Likewise.
16103         * tests/test-count-one-bits.c (main): Likewise.
16104         * tests/test-memmem.c: Don't include "null-ptr.h".
16105         (main): Use zerosize_ptr() instead of null_ptr().
16106         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
16108 2019-03-08  Bruno Haible  <bruno@clisp.org>
16110         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
16111         Reported by Jeffrey Walton <noloader@gmail.com>.
16112         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
16113         invoke memset with a zero size.
16114         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
16115         Likewise.
16116         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
16117         Adjust accordingly.
16119 2019-03-08  Bruno Haible  <bruno@clisp.org>
16121         unistr/*, uniconv/*: Fix undefined behaviour.
16122         Reported by Jeffrey Walton <noloader@gmail.com>.
16123         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
16124         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
16125         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
16126         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
16128 2019-03-08  Bruno Haible  <bruno@clisp.org>
16130         unistr/u8-cmp: Fix undefined behaviour.
16131         Reported by Jeffrey Walton <noloader@gmail.com>.
16132         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
16134 2019-03-08  Bruno Haible  <bruno@clisp.org>
16136         unictype/numeric: Fix undefined behaviour.
16137         Reported by Jeffrey Walton <noloader@gmail.com>.
16138         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
16139         on shift overflow, caught by "gcc -fsanitize=undefined".
16140         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
16141         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
16142         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
16144 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
16146         git-version-gen: fix --version copyright year
16147         * build-aux/git-version-gen, build-aux/move-if-change (version):
16148         --version output copyright year is now taken from script year,
16149         so that it no longer needs to be updated by hand.
16151 2019-03-04  Bruno Haible  <bruno@clisp.org>
16153         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
16154         This approach supports relocatable installation of shared libraries
16155         which depend on other shared libraries from the same package.
16156         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
16157         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
16158         wrapper around the original LIBTOOL.
16159         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
16160         token '@loader_path' instead of '$ORIGIN'.
16161         * build-aux/libtool-reloc: New file.
16162         * modules/relocatable-prog (Files): Add it.
16163         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
16164         the recent changes. Document the need to set the *_LDFLAGS of libraries.
16165         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
16166         Makefile.am, not in configure.ac.
16168 2019-03-04  Bruno Haible  <bruno@clisp.org>
16170         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
16171         * build-aux/install-reloc: Revert change.
16172         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
16174 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16176         nstrftime: support the ‘+’ flag
16177         * lib/nstrftime.c (add, __strftime_internal):
16178         Add support for the ‘+’ flag introduced in POSIX.1-2017.
16179         (__strftime_internal): New arg ‘width’.  All uses changed.
16180         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
16182 2019-02-24  Bruno Haible  <bruno@clisp.org>
16184         relocatable-prog: Improve verbose output.
16185         * build-aux/install-reloc (func_verbose): Escape characters that would
16186         be interpreted by the shell.
16188 2019-02-24  Bruno Haible  <bruno@clisp.org>
16190         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
16191         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
16192         "sys/stat.h".
16193         * lib/lstat.c: Likewise.
16194         * lib/fstat.c: Likewise.
16195         * lib/fstatat.c: Likewise.
16197 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
16199         long-options: add parse_gnu_standard_options_only
16200         Discussed in https://bugs.gnu.org/33468 .
16202         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
16203         (parse_gnu_standard_options_only): Add function to process
16204         the GNU default options --help and --version and fail for
16205         any other unknown long or short option. See
16206         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
16207         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
16208         * modules/long-options (depends-on): Add stdbool, exitfail.
16209         * top/maint.mk (sc_prohibit_long_options_without_use): Update
16210         syntax-check rule, add new function name.
16212 2019-02-23  Bruno Haible  <bruno@clisp.org>
16214         relocatable-prog: Update documentation.
16215         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
16216         the recent changes.
16218 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
16220         nstrftime: tweak arg order
16221         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
16222         All callers changed.  Suggested by TAMUKI Shoichi in:
16223         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
16225 2019-02-23  Bruno Haible  <bruno@clisp.org>
16227         relocatable-prog: Use wrapper-free installation also on Mac OS X.
16228         Reported by Paul Smith <psmith@gnu.org>.
16229         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
16230         (func_relativize): New function, from gnulib-tool.
16231         Handle mode 'macosx' through invocations of 'otool' and
16232         'install_name_tool'.
16233         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
16234         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
16235         'install-reloc' invocation with mode 'macosx'.
16237 2019-02-23  Bruno Haible  <bruno@clisp.org>
16239         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
16240         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
16241         Hurd with glibc >= 2.27.
16243 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
16245         nstrftime: merge glibc strftime changes
16246         This incorporates:
16247         2019-02-11 Fix a few whitespace arrangement inconsistencies
16248         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
16249         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
16250         2019-01-11 strftime: use the "L_" macro with character literals
16251         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
16252         callers changed.  Default width of %Ey is now 2.  This is needed
16253         for proper handling of Japanese dates starting on 2019-05-01.
16255 2019-02-19  Bruno Haible  <bruno@clisp.org>
16257         relocatable-prog: Use $ORIGIN trick on more platforms.
16258         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
16259         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
16260         Solaris >= 10, Haiku. But don't use it on Android.
16261         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
16262         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
16264 2019-02-19  Bruno Haible  <bruno@clisp.org>
16266         progreloc: Speed up executable lookup on various platforms.
16267         * lib/progreloc.c: Include <errno.h>.
16268         (safe_read, full_read): New functions.
16269         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
16270         prefer the information from the /proc file system to a PATH search.
16272 2019-02-19  Bruno Haible  <bruno@clisp.org>
16274         progreloc: Simplify code for Android.
16275         * lib/progreloc.c (executable_fd): Don't define on Android.
16276         (maybe_executable, find_executable): Don't use executable_fd on Android.
16278 2019-02-15  Bruno Haible  <bruno@clisp.org>
16280         gnulib-tool: Support --import with just a few tests, not --with-tests.
16281         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
16282         'inctests' when generating files; use 'inctests' only for computing the
16283         transitive closure.
16285 2019-02-14  Bruno Haible  <bruno@clisp.org>
16287         gnulib-tool: Improve handling of multiple --local-dir options.
16288         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
16289         options work.
16290         * gnulib-tool (func_path_prepend): Remove function.
16291         (func_path_foreach): Make IFS handling more robust.
16292         (local_gnulib_path): Collect --local-dir values using func_path_append,
16293         not func_path_prepend.
16294         (func_determine_path_separator): Make IFS handling more robust.
16295         (func_lookup_file_cb): New function.
16296         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
16297         func_lookup_local_file. Apply the patches in the reverse order of their
16298         origin in $local_gnulib_path.
16299         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
16300         * NEWS: Mention that the first --local-dir option is the one with
16301         highest priority.
16303 2019-02-10  Bruno Haible  <bruno@clisp.org>
16305         libtextstyle: New module.
16306         * m4/libtextstyle.m4: New file.
16307         * modules/libtextstyle: New file.
16309 2019-02-05  Bruno Haible  <bruno@clisp.org>
16311         declared.sh: Fix bug with variables of pointer type.
16312         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
16313         before the symbol to be omitted if the preceding character is a '*'.
16315 2019-02-04  Bruno Haible  <bruno@clisp.org>
16317         Add script for running tests under valgrind.
16318         * build-aux/run-test: New file, from GNU libunistring.
16319         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
16320         as well.
16322 2019-02-04  Bruno Haible  <bruno@clisp.org>
16324         declared.sh: Fix --version output.
16325         * build-aux/declared.sh (func_version): Update package name.
16327 2019-02-03  Bruno Haible  <bruno@clisp.org>
16329         Add script for determining the set of symbols to export from a library.
16330         * build-aux/declared.sh: New file, from GNU libunistring.
16331         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
16332         Mention it.
16334 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16336         vla: add commentary about VLA_ELEMS
16337         * lib/vla.h (VLA_ELEMS): Add commentary,
16338         some inspired by Bruno Haible’s proposal in:
16339         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
16341         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
16342         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
16343         assume the C99 signatures for strtod and strtold.  Programs that
16344         require stricter adherence to C99 should also use the strtod and
16345         strtold modules as needed, and we no longer need the
16346         HAVE_C99_STRTOLD macro.
16347         * NEWS: Mention this.
16348         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
16349         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
16350         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
16351         (Files): Remove m4/c-strtod.m4.
16352         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
16353         exists.
16355 2019-02-02  Bruno Haible  <bruno@clisp.org>
16357         fma: Improve code style.
16358         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
16360 2019-02-02  Colin Watson  <cjwatson@debian.org>
16362         *-map tests: Fix compilation error.
16363         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
16364         * tests/test-hash_map.c: Likewise.
16365         * tests/test-linkedhash_map.c: Likewise.
16367 2019-01-31  Bruno Haible  <bruno@clisp.org>
16369         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
16370         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
16371         GNULIB_defined_strtold_function): New macros.
16372         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
16373         (STRTOD): Ignore HAVE_C99_STRTOLD.
16374         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
16375         deemed buggy. But do use it on platforms where uselocale exists and is
16376         usable.
16377         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
16378         deemed buggy. On platforms where uselocale exists and is usable, use
16379         uselocale and strtod/strtold.
16380         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
16381         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
16382         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
16383         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
16384         (Depends-on): Add strtod.
16385         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
16386         (Depends-on): Add strtold.
16388 2019-01-31  Bruno Haible  <bruno@clisp.org>
16390         strtod, strtold: Use the locale's decimal point.
16391         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
16392         (decimal_point_char): New function, copied from lib/vasnprintf.c.
16393         (parse_number): Add a radixchar argument. Use it instead of '.'.
16394         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
16395         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
16396         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
16397         * tests/test-strtod1.c: New file.
16398         * tests/test-strtod1.sh: New file.
16399         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
16400         locale-fr.m4 and its dependencies.
16401         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
16402         (Makefile.am): Arrange to compile test-strtod1.c and run
16403         test-strtod1.sh.
16404         * tests/test-strtold1.c: New file.
16405         * tests/test-strtold1.sh: New file.
16406         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
16407         locale-fr.m4 and its dependencies.
16408         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
16409         (Makefile.am): Arrange to compile test-strtold1.c and run
16410         test-strtold1.sh.
16412 2019-01-31  Bruno Haible  <bruno@clisp.org>
16414         strtod, strtold tests: Simplify tests.
16415         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
16416         * tests/test-strtold.c (main): Likewise.
16418 2019-01-31  Bruno Haible  <bruno@clisp.org>
16420         strtod, strtold: Avoid unnecessary rounding errors.
16421         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
16422         decimal to DOUBLE conversion.
16424 2019-01-31  Bruno Haible  <bruno@clisp.org>
16426         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
16427         * lib/strtod.c (STRTOD): When there is an extra character after the
16428         exponent marker 'p', reparse the number.
16429         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
16430         * doc/posix-functions/strtold.texi: Likewise.
16432 2019-01-29  Bruno Haible  <bruno@clisp.org>
16434         strtold: Add tests.
16435         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
16436         * modules/strtold-tests: New file.
16438 2019-01-29  Bruno Haible  <bruno@clisp.org>
16440         strtold: New module.
16441         * lib/stdlib.in.h (strtold): New declaration.
16442         * lib/strtold.c: New file.
16443         * lib/strtod.c: Consider USE_LONG_DOUBLE.
16444         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
16445         USE_LDEXP): New macros.
16446         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
16447         USE_LONG_DOUBLE.
16448         (underlying_strtod): Remove function. Replace with some macros.
16449         Re-add the code for a missing underlying function that was removed on
16450         2013-02-19.
16451         * m4/strtold.m4: New file.
16452         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
16453         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
16454         REPLACE_STRTOLD.
16455         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
16456         REPLACE_STRTOLD.
16457         * modules/strtold: New file.
16458         * doc/posix-functions/strtold.texi: Document the new module.
16460 2019-01-29  Bruno Haible  <bruno@clisp.org>
16462         strtod: Fix compilation error on IRIX 6.5.
16463         * modules/strtod (Depends-on): Add 'math'.
16465 2019-01-28  Bruno Haible  <bruno@clisp.org>
16467         Fix build error when building a shared libunistring on Android.
16468         * tests/uninorm/test-nfc.c (n): Don't define on Android.
16469         (main): Add 'volatile', to defeat a GCC optimization that would
16470         eliminate the reference.
16471         * tests/uninorm/test-nfd.c (n): Don't define on Android.
16472         (main): Add 'volatile', to defeat a GCC optimization that would
16473         eliminate the reference.
16474         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
16475         (main): Add 'volatile', to defeat a GCC optimization that would
16476         eliminate the reference.
16477         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
16478         (main): Add 'volatile', to defeat a GCC optimization that would
16479         eliminate the reference.
16481 2019-01-27  Bruno Haible  <bruno@clisp.org>
16483         Avoid build errors due to wrong references between modules.
16484         * lib/uninorm/canonical-decomposition.c: Include
16485         "uninorm/decomposition-table.h", not "decomposition-table.h".
16486         * lib/uninorm/decomposition.c: Likewise.
16487         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
16488         not "decompose-internal.h".
16489         * lib/uninorm/u16-normalize.c: Likewise.
16490         * lib/uninorm/u32-normalize.c: Likewise.
16491         * lib/uninorm/uninorm-filter.c: Likewise.
16492         * lib/uninorm/nfkc.c: Likewise.
16493         * lib/uninorm/nfkd.c: Likewise.
16494         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
16495         "caseprop.h".
16496         * lib/unicase/u8-ct-totitle.c: Likewise.
16497         * lib/unicase/u8-prefix-context.c: Likewise.
16498         * lib/unicase/u8-suffix-context.c: Likewise.
16499         * lib/unicase/u16-casemap.c: Likewise.
16500         * lib/unicase/u16-ct-totitle.c: Likewise.
16501         * lib/unicase/u16-prefix-context.c: Likewise.
16502         * lib/unicase/u16-suffix-context.c: Likewise.
16503         * lib/unicase/u32-casemap.c: Likewise.
16504         * lib/unicase/u32-ct-totitle.c: Likewise.
16505         * lib/unicase/u32-prefix-context.c: Likewise.
16506         * lib/unicase/u32-suffix-context.c: Likewise.
16507         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
16508         "unicasemap.h".
16509         * lib/unicase/u8-toupper.c: Likewise.
16510         * lib/unicase/u8-ct-tolower.c: Likewise.
16511         * lib/unicase/u8-ct-toupper.c: Likewise.
16512         * lib/unicase/u16-tolower.c: Likewise.
16513         * lib/unicase/u16-toupper.c: Likewise.
16514         * lib/unicase/u16-ct-tolower.c: Likewise.
16515         * lib/unicase/u16-ct-toupper.c: Likewise.
16516         * lib/unicase/u32-tolower.c: Likewise.
16517         * lib/unicase/u32-toupper.c: Likewise.
16518         * lib/unicase/u32-ct-tolower.c: Likewise.
16519         * lib/unicase/u32-ct-toupper.c: Likewise.
16520         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
16521         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
16522         * lib/unicase/u16-ct-casefold.c: Likewise.
16523         * lib/unicase/u32-ct-casefold.c: Likewise.
16525 2019-01-27  Bruno Haible  <bruno@clisp.org>
16527         gperf: Fix error when this module is required by some test module.
16528         * modules/gperf (Applicability): Set to 'all'.
16530 2019-01-27  Bruno Haible  <bruno@clisp.org>
16532         tmpfile: Add support for Android.
16533         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
16534         works.
16535         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
16536         Android.
16537         * modules/tmpfile (Depends-on): Add 'stdbool'.
16538         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
16539         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
16541 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
16543         bitsetv: allow free on NULL.
16544         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
16546 2019-01-27  Bruno Haible  <bruno@clisp.org>
16548         test-framework-sh: Improve maintainability.
16549         * tests/init.sh: Clarify what belongs together. Reorder definitions.
16551 2019-01-27  Bruno Haible  <bruno@clisp.org>
16553         tests: Don't assume that /tmp exists.
16554         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
16555         * tests/test-copy-acl-1.sh: Likewise.
16556         * tests/test-file-has-acl-1.sh: Likewise.
16557         * tests/test-copy-file-1.sh: Likewise.
16559 2019-01-27  Bruno Haible  <bruno@clisp.org>
16561         tests: Accommodate a shell that is not in /bin/sh.
16562         * tests/init.sh (setup_): Set srcdir and builddir.
16563         (BOURNE_SHELL): New variable.
16564         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
16565         * modules/file-has-acl-tests (Depends-on): Likewise.
16566         * modules/copy-file-tests (Depends-on): Likewise.
16567         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
16568         scripts through $BOURNE_SHELL.
16569         * tests/test-set-mode-acl-2.sh: Likewise.
16570         * tests/test-copy-acl-1.sh: Likewise.
16571         * tests/test-copy-acl-2.sh: Likewise.
16572         * tests/test-file-has-acl-1.sh: Likewise.
16573         * tests/test-file-has-acl-2.sh: Likewise.
16574         * tests/test-copy-file-1.sh: Likewise.
16575         * tests/test-copy-file-2.sh: Likewise.
16576         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
16577         invoker.
16578         * tests/test-copy-acl.sh (builddir): Likewise.
16579         * tests/test-file-has-acl.sh (builddir): Likewise.
16580         * tests/test-copy-file.sh (builddir): Likewise.
16581         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
16582         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
16583         * tests/test-vc-list-files-git.sh: Likewise.
16585 2019-01-27  Bruno Haible  <bruno@clisp.org>
16587         tests: Fix some "unused variable" warnings.
16588         * tests/test-fts.c (fts_dealloc): Remove unused variable.
16589         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
16590         * tests/test-striconveh.c (main): Move some variable into the
16591         '#if HAVE_ICONV'.
16592         * tests/test-striconveha.c (main): Likewise.
16593         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16594         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16595         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16596         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
16597         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
16598         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
16599         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16600         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16601         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16602         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
16603         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
16604         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
16605         * tests/test-tsearch.c (main): Move some variable into the
16606         '#if HAVE_INITSTATE'.
16608 2019-01-27  Bruno Haible  <bruno@clisp.org>
16610         unigbrk/uc-grapheme-breaks: Fix build failure.
16611         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
16612         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
16614 2019-01-27  Bruno Haible  <bruno@clisp.org>
16616         mountlist: Merge two .m4 files.
16617         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
16618         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
16619         * m4/ls-mntd-fs.m4: Remove file.
16620         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
16622 2019-01-27  Bruno Haible  <bruno@clisp.org>
16624         tests: Enable Linux specific tests on Android.
16625         * tests/test-flock.c (main): Treat Android like Linux.
16626         * tests/test-openat-safer.c (main): Likewise.
16628 2019-01-27  Bruno Haible  <bruno@clisp.org>
16630         relocatable-prog: Use Linux code on Android.
16631         * lib/progreloc.c: Treat Android like Linux.
16633 2019-01-26  Bruno Haible  <bruno@clisp.org>
16635         getloadavg: Add support for Android.
16636         * lib/getloadavg.c: Treat Android like Linux.
16638 2019-01-26  Bruno Haible  <bruno@clisp.org>
16640         vma-iter: Add support for Android.
16641         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
16642         * lib/vma-iter.c: Treat Android like Linux.
16643         * lib/get-rusage-data.c (get_rusage_data): Likewise.
16645 2019-01-26  Bruno Haible  <bruno@clisp.org>
16647         fts: Optimize on Android.
16648         * lib/fts.c: Treat Android like Linux.
16650 2019-01-26  Bruno Haible  <bruno@clisp.org>
16652         fts: Add support for Android.
16653         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
16654         defined by this module and the ones in libc.
16655         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
16657 2019-01-26  Bruno Haible  <bruno@clisp.org>
16659         mountlist: Use Linux code on Android.
16660         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
16661         (unescape_tab, read_file_system_list): Enable Linux code on Android
16662         as well.
16663         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
16664         and endmntent.
16665         * modules/mountlist (Depends-on): Add 'getline'.
16667 2019-01-26  Bruno Haible  <bruno@clisp.org>
16669         localename tests: Fix test failure on Android.
16670         * modules/localename-tests (Depends-on): Add 'setlocale'.
16672 2019-01-26  Bruno Haible  <bruno@clisp.org>
16674         mountlist: Port better to Android.
16675         * lib/mountlist.c (MOUNTED): Redefine on Android.
16676         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
16677         Android.
16679 2019-01-26  Bruno Haible  <bruno@clisp.org>
16681         striconveh: Fix use of uninitialized iconv_t.
16682         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
16683         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
16684         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
16686 2019-01-26  Bruno Haible  <bruno@clisp.org>
16688         nonblocking-socket-tests: Fix test failure on Android 4.3.
16689         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
16690         also on Android.
16692 2019-01-26  Bruno Haible  <bruno@clisp.org>
16694         sh-filename: Add support for Android 4.3.
16695         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
16697 2019-01-26  Bruno Haible  <bruno@clisp.org>
16699         ptsname_r: Work around bug on Android 4.3.
16700         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
16701         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
16702         correct.
16703         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
16704         is defined, just fix the return value.
16705         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
16706         The behaviour of musl libc is nothing to be "fixed", since it is
16707         compliant with the next POSIX standard.
16709 2019-01-26  Bruno Haible  <bruno@clisp.org>
16711         ttyname_r: Work around bug on Android 4.3.
16712         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
16713         * lib/ttyname_r.c (ttyname_r): Implement for Android.
16714         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
16715         * doc/posix-functions/ttyname.texi: Likewise.
16717 2019-01-25  Bruno Haible  <bruno@clisp.org>
16719         getprogname: Port to Android 4.3.
16720         * lib/getprogname.c (getprogname): On Android, take only the last
16721         component of __progname.
16723 2019-01-25  Bruno Haible  <bruno@clisp.org>
16725         wcrtomb: Work around bug on Android 4.3.
16726         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
16727         the C locale.
16728         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
16729         which does not have the 'wctomb' function.
16730         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
16731         * tests/test-wcrtomb.c (main): Accept argument '5'.
16732         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
16734 2019-01-25  Bruno Haible  <bruno@clisp.org>
16736         setlocale: Work around bug on Android 4.3.
16737         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
16738         the "C" locale.
16739         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
16740         * doc/posix-functions/setlocale.texi: Mention the Android bug.
16742 2019-01-24  Bruno Haible  <bruno@clisp.org>
16744         memchr: Work around bug on Android <= 5.0.
16745         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
16746         * doc/posix-functions/memchr.texi: Mention the Android bug.
16748 2019-01-24  Bruno Haible  <bruno@clisp.org>
16750         random: Fix compilation error on Android 4.3.
16751         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
16752         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
16753         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
16754         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
16755         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
16757         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16758         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
16759         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16760         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
16761         REPLACE_INITSTATE, REPLACE_SETSTATE.
16762         * doc/posix-functions/random.texi: Correct the description of the
16763         situation on Android.
16764         * doc/posix-functions/srandom.texi: Likewise.
16765         * doc/posix-functions/rand.texi: Likewise.
16766         * doc/posix-functions/srand.texi: Likewise.
16768 2019-01-24  Bruno Haible  <bruno@clisp.org>
16770         mbtowc: Fix compilation error on Android 4.3.
16771         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
16772         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
16773         HAVE_MBTOWC.
16774         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
16775         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
16776         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
16777         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
16778         * doc/posix-functions/mbtowc.texi: Mention the change.
16780 2019-01-24  Bruno Haible  <bruno@clisp.org>
16782         fdatasync: Fix compilation error on Android 4.3.
16783         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
16784         test whether fdatasync() exists.
16786 2019-01-24  Bruno Haible  <bruno@clisp.org>
16788         unlinkat: Fix compilation error on Android 4.3.
16789         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
16790         also on Android.
16791         * doc/posix-functions/unlinkat.texi: Mention the issue.
16793 2019-01-24  Bruno Haible  <bruno@clisp.org>
16795         renameat: Fix compilation error on Android 4.3.
16796         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
16797         * doc/posix-functions/renameat.texi: Mention the issue.
16799 2019-01-24  Bruno Haible  <bruno@clisp.org>
16801         fchownat: Fix compilation error on Android 4.3.
16802         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
16803         use.
16804         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
16805         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
16806         * doc/posix-functions/fchownat.texi: Mention the issue.
16808 2019-01-23  Bruno Haible  <bruno@clisp.org>
16810         gnulib-tool: Support running testdirs on Android.
16811         * build-aux/test-driver.diff: New file.
16812         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
16813         build-aux/test-driver after running automake.
16815 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16817         relocatable-prog: avoid warnings from Automake
16818         * modules/relocatable-prog: Don't declare PHONY dependencies in
16819         Automake conditionals.
16821 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16823         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
16824         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
16826 2019-01-23  Bruno Haible  <bruno@clisp.org>
16828         threadlib: Revert commit from 2018-06-25. We now have a better fix.
16829         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
16830         preceding -Wl,--as-needed option. Don't check whether the linker
16831         supports --as-needed/--no-as-needed and --push-state/--pop-state.
16833 2019-01-23  Bruno Haible  <bruno@clisp.org>
16835         thread: Force linking with -lpthread, even when --as-needed is in use.
16836         Reported by Richard W.M. Jones <rjones@redhat.com> in
16837         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
16838         * lib/glthread/thread.h (pthread_create): Don't declare weak.
16840 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
16841             Bruno Haible  <bruno@clisp.org>
16843         relocatable: avoid compiler warnings (-Wshadow)
16844         * lib/relocatable.c (compute_curr_prefix): Rename local variables
16845         to avoid name collisions with global variables.
16847 2019-01-22  Bruno Haible  <bruno@clisp.org>
16849         vasnprintf: Don't use %n on Android.
16850         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
16851         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
16852         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
16854 2019-01-22  Bruno Haible  <bruno@clisp.org>
16856         *printf: Support cross-compilation to Android.
16857         * m4/printf.m4: Add cross-compilation guesses for Android.
16859 2019-01-21  Bruno Haible  <bruno@clisp.org>
16861         diacrit: Mark deprecated.
16862         * modules/diacrit (Status, Notice): Mark as deprecated.
16863         * NEWS: Mention it.
16865 2019-01-20  Bruno Haible  <bruno@clisp.org>
16867         rintl: Override broken implementation on NetBSD.
16868         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
16869         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
16870         REPLACE_RINTL.
16871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
16872         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
16873         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
16874         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
16876 2019-01-20  Bruno Haible  <bruno@clisp.org>
16878         log10l: Work around inaccurate implementation on NetBSD.
16879         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
16880         * lib/log10l.c: Comment out too simplistic override.
16881         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
16883 2019-01-20  Bruno Haible  <bruno@clisp.org>
16885         logl: Work around inaccurate implementation on NetBSD.
16886         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
16887         * lib/logl.c: Comment out unused code.
16888         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
16890 2019-01-20  Bruno Haible  <bruno@clisp.org>
16892         expm1l: Work around inaccurate implementation on NetBSD.
16893         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
16894         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
16895         REPLACE_EXPM1L.
16896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
16897         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
16898         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
16899         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
16901 2019-01-20  Bruno Haible  <bruno@clisp.org>
16903         expl: Work around inaccurate implementation on NetBSD.
16904         * lib/math.in.h (expl): Test also REPLACE_EXPL.
16905         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
16906         REPLACE_EXPL.
16907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
16908         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
16909         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
16910         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
16912 2019-01-20  Bruno Haible  <bruno@clisp.org>
16914         exp2l: Work around inaccurate implementation on NetBSD.
16915         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
16916         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
16918 2019-01-20  Bruno Haible  <bruno@clisp.org>
16920         floor, floorl: Avoid autoconf warnings.
16921         * modules/floor (configure.ac): Use AC_REQUIRE.
16922         * modules/floorl (configure.ac): Likewise.
16924 2019-01-20  Bruno Haible  <bruno@clisp.org>
16926         Defeat current GCC optimizations in math autoconf tests.
16927         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
16928         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16929         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16930         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16931         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
16932         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
16933         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16934         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16935         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
16936         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
16937         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16938         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
16939         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
16940         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
16941         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
16942         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16943         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
16944         * m4/log.m4 (gl_FUNC_LOG): Likewise.
16945         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
16946         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
16947         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
16948         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
16949         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
16950         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
16951         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
16952         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
16953         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
16954         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
16955         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
16956         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
16957         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
16958         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
16959         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16960         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16961         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16962         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16963         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16964         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16966 2019-01-19  Pádraig Brady  <P@draigBrady.com>
16968         gettext: support disabling use of VLAs
16969         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
16971 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16973         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
16974         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
16976 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16978         fcntl: Fix syntax error (regression from 2018-10-05).
16979         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
16981 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16983         relocatable: improve documentation.
16984         * doc/relocatable-maint.texi (Supporting Relocation): For
16985         substitutions performed by config.status, we need more variables
16986         (for instance datarootdir defaults to '${prefix}/share' so we need
16987         prefix).
16989 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16991         backup: update dependencies
16992         * modules/backup-rename (Depends-on): It now depends on opendirat
16993         instead of opendir.  It also uses stdint, and xalloc-oversized.
16994         But no longer dirfd.
16995         * modules/backupfile (Depends-on): Add xalloc-oversized.
16997 2019-01-13  Bruno Haible  <bruno@clisp.org>
16999         getcwd: Fix test failure when building on a Linux 9p file system.
17000         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
17001         EINVAL from mkdir like ENAMETOOLONG.
17002         * tests/test-getcwd.c (test_long_name): Likewise.
17004 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
17006         Fix typos found by codespell.
17007         * lib/*.[hc]: Fix typos in comments.
17008         * pygnulib/*.py: Fix typos in error messages and comments.
17010 2019-01-12  Bruno Haible  <bruno@clisp.org>
17012         doc: Fix documentation about container data types.
17013         Reported by Werner Lemberg <wl@gnu.org>.
17014         * doc/containers.texi (Container data types): Fix typo.
17016 2019-01-10  Bruno Haible  <bruno@clisp.org>
17018         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
17019         Reported by Reuben Thomas <rrt@sc3d.org>.
17020         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
17022 2019-01-06  Bruno Haible  <bruno@clisp.org>
17024         maintainer-makefile: Make the configure.ac section optional.
17025         * top/maint.mk (GREP, SED): Define if not defined.
17027 2019-01-06  Bruno Haible  <bruno@clisp.org>
17029         localename: Assume setlocale function.
17030         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
17031         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
17033 2019-01-06  Bruno Haible  <bruno@clisp.org>
17035         doc: Add documentation about container data types.
17036         * doc/containers.texi: New file.
17037         * doc/gnulib.texi (Particular Modules): Include it.
17039 2019-01-06  Bruno Haible  <bruno@clisp.org>
17041         doc: Update documentation about 'progname' module.
17042         * doc/progname.texi: Rename from doc/error.texi. Change node name and
17043         title. Rewrite.
17044         * doc/gnulib.texi (Particular Modules): Update.
17046 2019-01-06  Bruno Haible  <bruno@clisp.org>
17048         doc: Document the xstdopen and *-safer modules.
17049         * doc/xstdopen.texi: New file.
17050         * doc/gnulib.texi (Particular Modules): Include it.
17052 2019-01-06  Bruno Haible  <bruno@clisp.org>
17054         xstdopen: Add tests.
17055         * tests/test-xstdopen.c: New file.
17056         * tests/test-xstdopen.sh: New file.
17057         * modules/xstdopen-tests: New file.
17059         xstdopen: New module.
17060         * lib/xstdopen.h: New file.
17061         * lib/xstdopen.c: New file.
17062         * modules/xstdopen: New file.
17064 2019-01-06  Bruno Haible  <bruno@clisp.org>
17066         stdopen: Fix compilation error with IRIX cc.
17067         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
17069 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
17071         xfreopen need not include stdio--.h
17072         * lib/xfreopen.c: Do not include stdio--.h.
17074         xfreopen need not depend on freopen-safer
17075         * modules/xfreopen (Depends-on):
17076         Depend on freopen, not freopen-safer.
17078         stdopen: modernize and simplify
17079         * lib/stdopen.c: Update copyright date
17080         Do not include sys/types.h; no longer needed these days.
17081         (stdopen): Use C99-style decl in loop.  Return int errno
17082         value, rather than just a bool.  Do not worry about fd mismatches,
17083         since the caller cares only if 0, 1, 2 are occupied.
17084         * lib/stdopen.h: No need to include <stdbool.h>.
17085         * m4/stdopen.m4: Remove.
17086         * modules/stdopen: New file.
17088         stdopen: copy from last use in coreutils
17089         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
17090         New files, taken from their last commit in coreutils
17091         2007-07-23T12:35:58Z!jim@meyering.net
17092         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
17094 2019-01-05  Bruno Haible  <bruno@clisp.org>
17096         argp: Don't pass an invalid argument to dgettext().
17097         Reported by He X <xw897002528@gmail.com>.
17098         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
17099         dgettext().
17101 2019-01-05  Bruno Haible  <bruno@clisp.org>
17103         argp: Don't pass an invalid argument to dgettext().
17104         Reported by He X <xw897002528@gmail.com>.
17105         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
17106         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
17107         dgettext().
17109 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17111         stdioext: port to newer 32-bit Android
17112         Problem reported by Tom Yan in:
17113         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
17114         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
17115         (fp_) [__ANDROID__]: Use it.
17117 2019-01-04  Bruno Haible  <bruno@clisp.org>
17119         lock: Fix link error with --enable-threads=pth.
17120         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
17121         Mark as weak.
17123 2019-01-04  Bruno Haible  <bruno@clisp.org>
17125         Fix link errors in unit tests.
17126         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17127         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
17128         * modules/array-map-tests (Makefile.am): Link test-array_map against
17129         libintl.
17130         * modules/array-set-tests (Makefile.am): Link test-array_set against
17131         libintl.
17132         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
17133         libintl.
17134         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
17135         libintl.
17136         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
17137         against libintl.
17138         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
17139         against libintl.
17141 2019-01-04  Bruno Haible  <bruno@clisp.org>
17143         Fix incorrect 'Link' sections.
17144         * modules/regex (Link): Mention the link requirement of module 'lock'.
17145         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
17147 2019-01-04  Bruno Haible  <bruno@clisp.org>
17149         Fix some 'Link' sections.
17150         * modules/c-stack (Link): Add link directive from the 'gettext-h'
17151         dependency.
17152         * modules/getaddrinfo (Link): Likewise.
17154 2019-01-04  Bruno Haible  <bruno@clisp.org>
17156         Remove redundant 'Link' sections.
17157         * modules/canon-host (Link): Remove section.
17158         * modules/timevar (Link): Likewise.
17160 2019-01-04  Bruno Haible  <bruno@clisp.org>
17162         Remove incorrect 'Link' sections.
17163         * modules/acl (Link): Remove section. Use combined 'Link' sections from
17164         the dependencies instead.
17165         * modules/crypto/md5 (Link): Likewise.
17166         * modules/crypto/sha1 (Link): Likewise.
17167         * modules/crypto/sha256 (Link): Likewise.
17168         * modules/crypto/sha512 (Link): Likewise.
17169         * modules/faccessat (Link): Likewise.
17170         * modules/fdutimensat (Link): Likewise.
17171         * modules/iconv_open-utf (Link): Likewise.
17172         * modules/propername (Link): Likewise.
17173         * modules/qacl (Link): Likewise.
17174         * modules/unicodeio (Link): Likewise.
17175         * modules/utimecmp (Link): Likewise.
17176         * modules/utimensat (Link): Likewise.
17177         * modules/xstriconv (Link): Likewise.
17178         * modules/xstriconveh (Link): Likewise.
17180 2019-01-04  Bruno Haible  <bruno@clisp.org>
17182         gnulib-tool: New option --extract-recursive-link-directive.
17183         * gnulib-tool (func_usage): Document the new options
17184         --extract-recursive-dependencies, --extract-recursive-link-directive.
17185         (func_verify_module): Document output variables.
17186         (func_get_dependencies_recursively): New function.
17187         (func_get_link_directive_recursively): New function.
17188         Use them to implement the new options
17189         --extract-recursive-dependencies, --extract-recursive-link-directive.
17190         * doc/gnulib-tool.texi (Link-time requirements): New section.
17192 2019-01-04  Bruno Haible  <bruno@clisp.org>
17194         Clarify meaning of 'Link' section in module description.
17195         * doc/gnulib.texi (Module description): Clarify the meaning of the
17196         'Link' section versus the one of the dependencies.
17197         * NEWS: Mention the change.
17199 2019-01-04  Bruno Haible  <bruno@clisp.org>
17201         pselect: Fix module description.
17202         * modules/pselect (Link): Put one link option per line.
17204 2019-01-04  Bruno Haible  <bruno@clisp.org>
17206         cosl: Fix module description.
17207         * modules/cosl (Link): Fix typo.
17208         * modules/mathl (configure.ac): Likewise.
17210 2019-01-04  Bruno Haible  <bruno@clisp.org>
17212         c-xvasprintf: Fix module dependencies.
17213         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
17215 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
17217         bootstrap: die when some submodules are not initialized
17218         * build-aux/bootstrap: Make sure all submodules are initialized.
17220 2019-01-04  Bruno Haible  <bruno@clisp.org>
17222         bitsetv: Fix module dependencies.
17223         * lib/bitsetv.c: Include xalloc.h.
17224         * modules/bitsetv (Depends-on): Add 'xalloc'.
17226 2019-01-04  Bruno Haible  <bruno@clisp.org>
17228         xmemdup0: Remove redundant code.
17229         * lib/xmemdup0.h (xalloc_die): Remove declaration.
17231 2019-01-04  Bruno Haible  <bruno@clisp.org>
17233         backupfile: Fix module dependencies.
17234         * modules/backupfile (Depends-on): Add 'xalloc'.
17236 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17238         bitset, crypto/gc: fix conflicts with Solaris 11
17239         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
17240         avoid clash with Solaris 11 <sys/bitset.h>.
17241         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
17242         with Solaris 11 <xorg/gc.h>.
17244 2019-01-04  Bruno Haible  <bruno@clisp.org>
17246         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
17247         Reported by Andy Fiddaman <andy@omniosce.org>.
17248         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
17250 2019-01-03  Eric Blake  <eblake@redhat.com>
17252         maintainer-makefile: fix typo in previous patch
17253         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
17254         of Roman's work.
17256 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
17258         maintainer-makefile: prefer $(GREP) over grep
17259         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
17260         defined.
17261         * top/maint.mk: Use it everywhere.
17263         maintainer-makefile: split long argument lines
17264         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
17265         it would be too long for exec limits on BSD.
17267 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17269         mkfifo: bring back HAVE_MKFIFO macro
17270         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
17271         Problem reported by Andrew Janke in:
17272         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
17274 2018-12-21  Bruno Haible  <bruno@clisp.org>
17276         Assume Autoconf >= 2.63.
17277         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
17278         versions < 2.60.
17280 2018-12-21  Bruno Haible  <bruno@clisp.org>
17282         memcmp: Mention the clang bug.
17283         * tests/test-memcmp.c: Add comment about a known test failure.
17284         * doc/posix-functions/memcmp.texi: Mention the clang bug.
17286 2018-12-20  Jim Meyering  <meyering@fb.com>
17288         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
17289         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
17290           echo '123-x'|LC_ALL=C grep -E '.\bx'
17291         The goal is to revert the first, but reverting it requires to restore
17292         the function deleted in the second. I ran this to restore the deleted
17293         function:
17294           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
17295             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
17296             | patch -R -p1
17297         * lib/dfa.c (charclass_context): Restore deleted function.
17298         Reverting the primary commit removes this change:
17299         dfa: Simplify a building state
17300         * lib/dfa.c (build_state): Simplify a building state.
17302 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17304         version-etc: allow zero authors
17305         * lib/version-etc.c (version_etc_arn): If no authors are given,
17306         omit authorship info instead of dumping core.
17308 2018-12-19  Bruno Haible  <bruno@clisp.org>
17310         lchown tests: Be more permissive regarding errno values.
17311         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
17312         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
17313         alternative to ENOSYS.
17314         * modules/lchown-tests (Depends-on): Add 'errno'.
17315         * modules/fchownat-tests (Depends-on): Likewise.
17317 2018-12-18  Bruno Haible  <bruno@clisp.org>
17319         duplocale: Avoid test failure on AIX 7.
17320         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
17321         (configure.ac): Invoke gt_FUNC_USELOCALE.
17322         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
17323         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
17324         works.
17326 2018-12-18  Bruno Haible  <bruno@clisp.org>
17328         localename: Fix test failure on AIX 7.
17329         Reported by Assaf Gordon in
17330         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
17331         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
17332         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
17333         instead of ac_cv_func_uselocale.
17334         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
17335         HAVE_USELOCALE.
17336         * lib/localename-table.h: Likewise.
17337         * lib/localename-table.c: Likewise.
17338         * tests/test-localename.c: Likewise.
17339         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
17341 2018-12-18  Bruno Haible  <bruno@clisp.org>
17343         localename: Update comments regarding Cygwin.
17344         * lib/localename.c: Update comment.
17345         * doc/posix-functions/uselocale.texi: Update platforms list.
17346         * doc/posix-functions/newlocale.texi: Likewise.
17347         * doc/posix-functions/duplocale.texi: Likewise.
17348         * doc/posix-functions/freelocale.texi: Likewise.
17350 2018-12-16  Bruno Haible  <bruno@clisp.org>
17352         c-stack: Fix for Linux/sparc.
17353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
17354         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
17356 2018-12-16  Bruno Haible  <bruno@clisp.org>
17358         localename: Avoid test failure on some glibc systems.
17359         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
17360         Unset environment variables that might disturb the first setlocale call,
17361         and verify that this setlocale call succeeds.
17363 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
17365         random: Fix build error on native Windows (regression from 2018-06-21).
17366         * lib/random.c (__srandom, __initstate, __setstate, __random,
17367         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
17368         to the symbols without '__' prefix.
17370 2018-12-16  Bruno Haible  <bruno@clisp.org>
17372         obstack, libc-config: Support HP-UX cc in C99 mode.
17373         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
17374         compiler, even when in C99 mode.
17375         * lib/cdefs.h (__flexarr): Likewise.
17376         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
17378 2018-12-16  Bruno Haible  <bruno@clisp.org>
17380         localename: Fix test failure on OpenBSD >= 6.2.
17381         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
17382         locale system. Define HAVE_FAKE_LOCALES in this case.
17383         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
17384         HAVE_USELOCALE.
17385         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
17386         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
17387         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
17388         platforms list.
17389         * doc/posix-functions/newlocale.texi: Likewise.
17390         * doc/posix-functions/duplocale.texi: Update platforms list.
17391         * doc/posix-functions/freelocale.texi: Likewise.
17393 2018-12-16  Bruno Haible  <bruno@clisp.org>
17395         duplocale tests: Re-enable the test on platforms without <monetary.h>.
17396         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
17397         of the test, on platforms without <monetary.h>.
17399 2018-12-16  Bruno Haible  <bruno@clisp.org>
17401         localename: Update comments.
17402         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
17404 2018-12-15  Jim Meyering  <meyering@fb.com>
17406         regex: fix indentation
17407         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
17409 2018-12-15  Bruno Haible  <bruno@clisp.org>
17411         openat-safer tests: Avoid test failure on NetBSD 8.
17412         * tests/test-openat-safer.c (main): Execute a Linux specific test only
17413         on Linux.
17415 2018-12-15  Jim Meyering  <meyering@fb.com>
17417         regex: work around a bug in glibc-2.27 and prior
17418         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
17419         assertion for /0|()0|\1|0/.
17420         * tests/test-regex.c (main): Add the same test here.
17422 2018-12-15  Bruno Haible  <bruno@clisp.org>
17424         localename: Fix use of uninitialized shell variable.
17425         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
17426         gt_cv_locale_solaris114 always before use. Remove assignment without
17427         effect.
17429 2018-12-15  Bruno Haible  <bruno@clisp.org>
17431         dfa tests: Avoid test failure on Alpine Linux.
17432         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
17433         command found on Alpine Linux.
17435 2018-12-15  Jim Meyering  <meyering@fb.com>
17437         dfa: avoid new warnings from gcc
17438         These would prevent building with -Werror and a Dec snapshot of gcc.
17439         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
17440         Rename each inner instance to "p".
17441         (charclass_context): Remove unused static function.
17443 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
17445         mkdir-p: improve diagnostic for FUSE mounts
17446         Problem reported by Niklas Hambüchen in:
17447         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
17448         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
17449         errno to mkdir errno if the stat errno is likely more interesting.
17451 2018-12-14  Bruno Haible  <bruno@clisp.org>
17453         hash-map: Add tests.
17454         * tests/test-hash_map.c: New file.
17455         * modules/hash-map-tests: New file.
17457         linkedhash-map: Add tests.
17458         * tests/test-linkedhash_map.c: New file.
17459         * modules/linkedhash-map-tests: New file.
17461         array-map: Add tests.
17462         * tests/test-array_map.c: New file.
17463         * modules/array-map-tests: New file.
17465         xmap: New module.
17466         * lib/gl_xmap.h: New file.
17467         * lib/gl_xmap.c: New file.
17468         * modules/xmap: New file.
17470         hash-map: New module.
17471         * lib/gl_hash_map.h: New file.
17472         * lib/gl_hash_map.c: New file.
17473         * modules/hash-map: New file.
17475         linkedhash-map: New module.
17476         * lib/gl_linkedhash_map.h: New file.
17477         * lib/gl_linkedhash_map.c: New file.
17478         * lib/gl_anyhash1.h: Update comments.
17479         * lib/gl_anyhash2.h: Likewise.
17480         * modules/linkedhash-map: New file.
17482         array-map: New module.
17483         * lib/gl_array_map.h: New file.
17484         * lib/gl_array_map.c: New file.
17485         * modules/array-map: New file.
17487         map: New module.
17488         * lib/gl_map.h: New file.
17489         * lib/gl_map.c: New file.
17490         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
17491         conflict with gl_map.h.
17492         * modules/map: New file.
17494 2018-12-13  Bruno Haible  <bruno@clisp.org>
17496         select tests: Avoid test failure on Cygwin.
17497         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
17499 2018-12-13  Bruno Haible  <bruno@clisp.org>
17501         localtime-buffer: Avoid endless recursion in localtime and gmtime.
17502         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
17504 2018-12-13  Bruno Haible  <bruno@clisp.org>
17506         localeconv tests: Avoid test failure on Cygwin.
17507         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
17508         'mon_grouping' tests.
17510 2018-12-11  Bruno Haible  <bruno@clisp.org>
17512         omap: Don't dispose the old value when the function returns it.
17513         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
17514         here.
17515         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
17516         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
17517         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
17518         here.
17520         array-omap, avltree-omap, rbtree-omap: Tweak style.
17521         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
17522         false.
17523         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
17525         rbtree-omap: Add tests.
17526         * tests/test-rbtree_omap.c: New file.
17527         * modules/rbtree-omap-tests: New file.
17529         avltree-omap: Add tests.
17530         * tests/test-avltree_omap.c: New file.
17531         * modules/avltree-omap-tests: New file.
17533         array-omap: Add tests.
17534         * tests/test-array_omap.c: New file.
17535         * modules/array-omap-tests: New file.
17537         xomap: New module.
17538         * lib/gl_xomap.h: New file.
17539         * lib/gl_xomap.c: New file.
17540         * modules/xomap: New file.
17542         rbtree-omap: New module.
17543         * lib/gl_rbtree_omap.h: New file.
17544         * lib/gl_rbtree_omap.c: New file.
17545         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
17546         Parameterize.
17547         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
17548         * modules/rbtree-omap: New file.
17549         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
17550         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
17552         avltree-omap: New module.
17553         * lib/gl_avltree_omap.h: New file.
17554         * lib/gl_avltree_omap.c: New file.
17555         * lib/gl_avltree_ordered.h: Code moved to here from
17556         lib/gl_avltree_oset.c. Parameterize.
17557         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
17558         * lib/gl_anytree_omap.h: New file.
17559         * modules/avltree-omap: New file.
17560         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
17561         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
17563         array-omap: New module.
17564         * lib/gl_array_omap.h: New file.
17565         * lib/gl_array_omap.c: New file.
17566         * modules/array-omap: New file.
17568         omap: New module.
17569         * lib/gl_omap.h: New file.
17570         * lib/gl_omap.c: New file.
17571         * modules/omap: New file.
17573 2018-12-11  Bruno Haible  <bruno@clisp.org>
17575         hash-set, linkedhash-set: Reduce code duplication.
17576         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
17577         lib/gl_anyhash_set1.h.
17578         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
17579         lib/gl_anyhash_set2.h. Parameterize.
17580         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
17581         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
17582         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
17583         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
17584         * lib/gl_rbtreehash_list.c: Likewise.
17585         * lib/gl_linkedhash_list.c: Likewise.
17586         (hash_resize_after_add): Remove function.
17587         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
17588         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
17589         * gl_hash_set.c: Likewise.
17590         * modules/avltreehash-list (Files, Makefile.am): Update file list.
17591         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
17592         * modules/linkedhash-list (Files, Makefile.am): Likewise.
17593         * modules/linkedhash-set (Files, Makefile.am): Likewise.
17594         * modules/hash-set (Files, Makefile.am): Likewise.
17596 2018-12-11  Bruno Haible  <bruno@clisp.org>
17598         array-set: Optimize.
17599         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
17600         outside the loop, not inside the loop.
17602 2018-12-11  Bruno Haible  <bruno@clisp.org>
17604         times: Fix tests.
17605         * tests/test-times.c (doublecmp): Implement a total order.
17607 2018-12-11  Bruno Haible  <bruno@clisp.org>
17609         array-set, linkedhash-set, hash-set: Fix tests.
17610         * tests/test-array_set.c (cmp_objects_in_array): New function.
17611         (check_equals): Use it.
17612         * tests/test-hash_set.c: Likewise.
17613         * tests/test-linkedhash_set.c: Likewise.
17615 2018-12-08  Bruno Haible  <bruno@clisp.org>
17617         Fix comments.
17618         * lib/gl_list.h (gl_list_free): Clarify what it does.
17619         * lib/gl_oset.h (gl_oset_free): Likewise.
17620         * lib/gl_set.h (gl_set_free): Likewise.
17621         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
17622         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
17623         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
17624         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
17626 2018-12-03  Bruno Haible  <bruno@clisp.org>
17628         hash-set: Add tests.
17629         * tests/test-hash_set.c: New file.
17630         * modules/hash-set-tests: New file.
17632         linkedhash-set: Add tests.
17633         * tests/test-linkedhash_set.c: New file.
17634         * modules/linkedhash-set-tests: New file.
17636         array-set: Add tests.
17637         * tests/test-array_set.c: New file.
17638         * modules/array-set-tests: New file.
17640         xset: New module.
17641         * lib/gl_xset.h: New file.
17642         * lib/gl_xset.c: New file.
17643         * modules/xset: New file.
17645         hash-set: New module.
17646         * lib/gl_hash_set.h: New file.
17647         * lib/gl_hash_set.c: New file.
17648         * modules/hash-set: New file.
17650         linkedhash-set: New module.
17651         * lib/gl_linkedhash_set.h: New file.
17652         * lib/gl_linkedhash_set.c: New file.
17653         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
17654         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
17655         * lib/gl_anyhash_primes.h: New file, extracted from
17656         lib/gl_anyhash_list2.h.
17657         * lib/gl_anyhash_list2.h: Include it.
17658         (primes, next_prime): Remove definitions.
17659         * modules/linkedhash-set: New file.
17660         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
17661         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17662         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
17663         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17664         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
17665         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17667         array-set: New module.
17668         * lib/gl_array_set.h: New file.
17669         * lib/gl_array_set.c: New file.
17670         * modules/array-set: New file.
17672         set: New module.
17673         * lib/gl_set.h: New file.
17674         * lib/gl_set.c: New file.
17675         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
17676         gl_set.h.
17677         * modules/set: New file.
17679 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
17681         bison: don't force the Yacc mode
17682         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
17683         errors when Bison features are used in the grammar file.  Some of
17684         these features (such as %expect) were flagged non-yacc recently.  Most
17685         of the time, -y is actually used to please Automake's ylwrap which
17686         expects the output to be y.tab.c.
17687         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
17689 2018-12-01  Bruno Haible  <bruno@clisp.org>
17691         gnupload: Document short options.
17692         * build-aux/gnupload (usage): Document the short options.
17694 2018-11-28  Ben Elliston  <bje@gnu.org>
17696         gnupload: Support option -h as alias of --help.
17697         * build-aux/gnupload: Support -h.
17699 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
17701         memrchr: port better to clang
17702         * lib/memrchr.c (__memrchr): Cast to void * instead of to
17703         longword *, to pacify clang -Wcast-align (Bug#33544).
17705 2018-11-29  Eric Blake  <eblake@redhat.com>
17707         docs: mention printf %m considerations
17708         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
17709         is not portable, and is easy enough to work around.
17710         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
17711         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
17712         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
17713         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17714         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17715         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17716         * doc/posix-functions/printf.texi (printf): Likewise.
17717         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17718         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17719         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
17720         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17721         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17722         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17723         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17724         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17725         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17726         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
17727         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17728         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17730 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
17732         bitset: rename ebitset/expandable.* as tbitset/table.*
17733         See
17734         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
17735         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
17736         * lib/bitset/table.h, lib/bitset/table.c: these.
17737         Rename all the ebitset* symbols as tbitset*.
17738         Adjust dependencies.
17740 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17742         bitset: check the operations
17743         * tests/test-bitset.c (bitset_random): New.
17744         Use it.
17745         * lib/bitset/expandable.c (ebitset_not): Fix typo.
17747 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17749         bitset: properly use false/true instead of 0/1 for Booleans
17750         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
17751         0/1, as Booleans.
17753 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17755         bitset: rename BITSET_VARRAY as BITSET_VECTOR
17756         For consistency with the name of the file.
17757         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
17758         * lib/bitset/stats.c, lib/bitset/vector.c
17759         (BITSET_VARRAY): Rename as...
17760         (BITSET_VECTOR): this.
17762 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17764         strerror_r-posix: memmove, not memcpy
17765         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
17766         since the source and destination might overlap in the call
17767         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
17768         Simplify.
17770 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17772         bitsetv: new module
17773         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
17775 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17777         bitset: add tests and doc
17778         First stabs at providing a documentation and test for the bitset
17779         module.
17780         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
17782 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17784         bitset: new module
17785         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
17786         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
17787         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
17788         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
17789         * lib/bitset/vector.h, modules/bitset:
17790         New.
17792 2018-11-23  Bruno Haible  <bruno@clisp.org>
17794         localename: Fix gettext test failures on mingw.
17795         * lib/localename.c (gl_locale_name_posix): Convert the result of
17796         gl_locale_name_environ to XPG syntax.
17798 2018-11-23  Karl Berry  <karl@freefriends.org>
17800         * config/srclistvars.txt,
17801         * config/srclist.txt: remove all gettext references;
17802         the gettext maintainers will sync as needed.
17804 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
17806         mktime: add libc-config dependency
17807         I missed this when we synced from glibc.
17808         * modules/mktime (Depends-on): Add libc-config.
17810 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
17812         longlong: fix comment typo
17813         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
17815 2018-11-11  Bruno Haible  <bruno@clisp.org>
17817         havelib: Remove the need to include asm-underscore.m4.
17818         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
17819         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
17820         gl_HOST_CPU_C_ABI.
17821         * modules/havelib (Files): Add host-cpu-c-abi.m4.
17822         (Depends-on): Remove host-cpu-c-abi.
17824 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17826         parse-datetime: simplify test for mktime failure
17827         * lib/parse-datetime.y (mktime_ok): Simplify.
17828         Remove args TZ and T; no longer needed.  Callers changed.
17830         posixtm: simplify test for mktime failure
17831         * lib/posixtm.c (posixtime): Simplify.
17833         nstrftime: simplify test for mktime failure
17834         * lib/nstrftime.c (__strftime_internal): Simplify.
17836 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17838         gnulib-common.m4: port _Noreturn to C++
17839         Problem reported by Akim Demaille in:
17840         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
17841         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
17842         Merge adjustments from _Noreturn.h and from glibc into the non-C++
17843         version.
17844         * lib/_Noreturn.h: Match gnulib-common.
17846 2018-10-30  Bruno Haible  <bruno@clisp.org>
17848         gnu-make: Fix for NetBSD 8 'make'.
17849         Reported by Reuben Thomas in
17850         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
17851         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
17852         output, ignoring exit codes.
17854 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
17856         maintainer-makefile: fix syntax-check rule for "same.h"
17857         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
17858         for 'same_nameat', too.
17860 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17862         havelib: fix nested ‘configure’ chatter
17863         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
17864         AC_CACHE_CHECK calls, which resulted in confusing output like
17865         “checking for the common suffixes of directories in the library
17866         search path... checking for 64-bit host... no lib,lib”.
17868         backupfile: tweak for better code
17869         * lib/backupfile.c: Sort include directives, and remove
17870         unnecessary <limits.h> include.
17871         (FALLTHROUGH): New macro, copied from other modules.
17872         (backupfile_internal): Use it to avoid code duplication.
17873         This lets GCC 8.2.1 generate better code by inlining the
17874         call to check_extension.
17876 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17878         backupfile: new dir_fd args
17879         New module opendirat with code taken from fts.
17880         Use this module to let backupfile use a directory file descriptor.
17881         * NEWS: Document the incompatible change.
17882         * lib/backup-find.c (find_backup_file_name):
17883         * lib/backup-rename.c (backup_file_rename):
17884         New arg DIR_FD.
17885         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
17886         (SIZE_MAX): Remove.
17887         Include opendirat.h rather than dirent--.h.
17888         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
17889         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
17890         (backupfile_internal): New arg DIR_FD.  All callers changed.
17891         * lib/fts.c: Include opendirat.h.
17892         (opendirat): Move to opendirat.c.
17893         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
17894         * modules/backupfile (Depends-on): Remove dirfd, opendir.
17895         Add opendirat.
17896         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
17897         Add opendirat.
17899 2018-10-23  Bruno Haible  <bruno@clisp.org>
17901         localename: Simplify support for per-thread locales on Solaris 11.4.
17902         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
17903         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
17904         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
17905         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
17906         specific code.
17907         * lib/localename-table.h: Update comments.
17908         * lib/localename-table.c: Update comments.
17909         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
17910         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
17911         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
17912         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
17913         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
17914         HAVE_NAMELESS_LOCALES here.
17915         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
17916         m4/intlsolaris.m4.
17917         * modules/gettext (Files): Likewise.
17919 2018-10-22  Bruno Haible  <bruno@clisp.org>
17921         std-gnu11: Support Autoconf versions < 2.64.
17922         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
17923         when _AC_DO_LIMIT does not exist.
17925 2018-10-22  Bruno Haible  <bruno@clisp.org>
17927         Assume Autoconf >= 2.63.
17928         * DEPENDENCIES: Mention the requirement.
17930         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
17931         (func_get_filelist): Don't list m4/onceonly.m4 any more.
17932         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
17933         * m4/onceonly.m4: Remove file.
17935         * m4/openmp.m4: Remove file.
17936         * modules/openmp (Files): Remove m4/openmp.m4.
17938         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
17939         htmldir, dvidir, pdfdir, psdir, localedir.
17940         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
17942         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
17943         Autoconf < 2.60.
17944         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
17945         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
17947         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
17948         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
17949         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
17951         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
17952         exists.
17953         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
17955         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
17956         Autoconf < 2.61.
17958         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
17959         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
17960         Autoconf >= 2.52.
17962         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
17963         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
17964         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
17966 2018-10-22  Bruno Haible  <bruno@clisp.org>
17968         Assume Automake >= 1.11.
17969         * m4/configmake.m4: Update comments.
17970         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
17971         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
17972         of 'eval'.
17973         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
17974         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
17975         requires Automake >= 1.11.
17977 2018-10-22  Bruno Haible  <bruno@clisp.org>
17979         localename: Fix typo in comment.
17980         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
17982 2018-10-22  Bruno Haible  <bruno@clisp.org>
17984         Fix failure of 'gnulib-tool --create-testdir' with all modules.
17985         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
17987 2018-10-21  Bruno Haible  <bruno@clisp.org>
17989         locale: Ease integration with GNU libintl.
17990         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
17991         GNULIB_defined_freelocale): New macros.
17993 2018-10-21  Bruno Haible  <bruno@clisp.org>
17995         localename: Fine-tune support for per-thread locales on Solaris 11.4.
17996         * lib/localename-table.h: New file, extracted from lib/localename.c.
17997         * lib/localename-table.c: Likewise.
17998         * lib/localename.c: Include localename-table.h.
17999         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
18000         locale_hash_function instead of pointer_hash.
18001         * modules/localename (Files): Add lib/localename-table.h,
18002         lib/localename-table.c.
18003         (lib_SOURCES): Add localename-table.c.
18004         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
18005         for Solaris 11.4 locale system only on Solaris. Test for it
18006         independently whether getlocalename_l exists.
18007         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
18008         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
18009         HAVE_NAMELESS_LOCALES.
18010         * modules/gettext (Files): Add m4/intlsolaris.m4.
18012 2018-10-21  Bruno Haible  <bruno@clisp.org>
18014         Small update from gettext.
18015         * m4/intl.m4: Update from gettext:
18016         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
18017         mode on AIX.
18018         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
18019         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
18021 2018-10-16  Bruno Haible  <bruno@clisp.org>
18023         mountlist: Remove support for Cray with UNICOS 9.
18024         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
18025         MOUNTED_LISTMNTENT.
18026         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
18028 2018-10-16  Bruno Haible  <bruno@clisp.org>
18030         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
18031         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
18032         STAT_STATFS2_FS_DATA.
18033         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
18034         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
18035         MOUNTED_GETMNT.
18036         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
18037         * lib/getloadavg.c (decstation): Remove definition and case.
18038         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
18039         * lib/getgroups.c: Likewise.
18040         * doc/posix-functions/getgroups.texi: Likewise.
18041         * lib/time.in.h: Update comments.
18043 2018-10-16  Bruno Haible  <bruno@clisp.org>
18045         getloadavg: Remove support for ConvexOS.
18046         * lib/getloadavg.c: Remove convex case.
18048 2018-10-16  Bruno Haible  <bruno@clisp.org>
18050         getloadavg: Remove support for Sony NEWS.
18051         * lib/getloadavg.c: Remove sony_news case.
18053 2018-10-16  Bruno Haible  <bruno@clisp.org>
18055         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
18056         * lib/fsusage.c: Remove _SEQUENT_ case.
18057         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
18058         * lib/mountlist.c: Don't test for MNTTABNAME.
18059         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
18060         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
18061         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
18062         * lib/stat-size.h: Don't mention the Sequent bug.
18063         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
18065 2018-10-16  Bruno Haible  <bruno@clisp.org>
18067         fsusage: Remove support for AIX 3.
18068         * lib/fsusage.c: Remove code for AIX 3.
18069         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
18071 2018-10-16  Bruno Haible  <bruno@clisp.org>
18073         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
18074         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
18075         * lib/fsusage.c: Remove code for AIX PS/2.
18076         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
18077         * lib/getloadavg.c: Likewise.
18079 2018-10-16  Bruno Haible  <bruno@clisp.org>
18081         getloadavg: Remove support for HP-UX on m68k.
18082         * lib/getloadavg.c: Remove hp9000s300 case.
18084 2018-10-16  Bruno Haible  <bruno@clisp.org>
18086         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
18087         * lib/fsusage.c: Remove DOLPHIN case.
18088         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
18089         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
18091 2018-10-16  Bruno Haible  <bruno@clisp.org>
18093         getloadavg: Remove support for Alliant FX/2800.
18094         * lib/getloadavg.c: Remove alliant case.
18096 2018-10-16  Bruno Haible  <bruno@clisp.org>
18098         getloadavg: Remove support for tek4300.
18099         * lib/getloadavg.c: Remove tek4300 case.
18101 2018-10-16  Bruno Haible  <bruno@clisp.org>
18103         getloadavg: Remove support for Ardent.
18104         * lib/getloadavg.c: Remove ardent case.
18106 2018-10-16  Bruno Haible  <bruno@clisp.org>
18108         mountlist: Remove support for SVR2.
18109         Reported by Andrew Borodin <aborodin@vmail.ru> in
18110         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
18111         * lib/mountlist.c: Remove MOUNTED_FREAD case.
18112         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
18113         MOUNTED_FREAD.
18115 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
18117         libc-config: merge from glibc
18118         * lib/cdefs.h (__glibc_has_attribute): New macro.
18120         regex: depend on libc-config
18121         * modules/regex (Depends-on): Add libc-config.
18122         This is needed after the recent autoupdate from glibc.
18124 2018-10-14  Bruno Haible  <bruno@clisp.org>
18126         localename: Add support for per-thread locales on Solaris 11.4.
18127         * lib/locale.in.h (newlocale, freelocale): New declarations.
18128         (duplocale): Declare also when the 'localename' module requests it.
18129         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
18130         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
18131         (struniq): Update.
18132         (struct locale_categories_names, struct locale_hash_node): New types.
18133         (LOCALE_HASH_TABLE_SIZE): New constant.
18134         (locale_hash_table, locale_lock): New variables.
18135         (pointer_hash, get_locale_t_name): New functions.
18136         (newlocale, duplocale, freelocale): New overridden functions.
18137         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
18138         * m4/intlsolaris.m4: New file.
18139         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
18140         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
18141         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
18142         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
18143         declared.
18144         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
18145         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
18146         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
18147         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
18148         * modules/localename (Files): Add intlsolaris.m4.
18149         (Depends-on): Add 'locale'.
18150         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
18151         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
18152         the signatures.
18154 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
18156         timevar: use gethrxtime to get wall clock time
18157         clock_gettime is not portable.  gethrxtime takes the best available
18158         option to get the wall clock time, including clock_gettime (monotonic
18159         clock), and gettime (non monotonic).
18160         Also, using xtime_t instead of float preserves the precision.
18161         Suggested by Bruno Haible.
18162         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
18163         * modules/timevar (Depends-on): We need gethrxtime.
18164         We no longer use times().
18165         (Link): Update.
18166         * lib/timevar.h (timevar_time_def): Use xtime_t.
18167         * lib/timevar.c (set_to_current_time): Use gethrxtime.
18168         (timevar_print): Instead of checking whether the timings themselves
18169         are large enough for the timevar to be printed, check the percentages.
18171 2018-10-14  Bruno Haible  <bruno@clisp.org>
18173         wcsnrtombs: Work around Solaris 11.4 bug.
18174         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
18175         macro.
18176         (gl_FUNC_WCSNRTOMBS): Invoke it.
18177         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
18179 2018-10-14  Bruno Haible  <bruno@clisp.org>
18181         mbsnrtowcs: Work around Solaris 11.4 bug.
18182         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
18183         macro.
18184         (gl_FUNC_MBSNRTOWCS): Invoke it.
18185         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
18187 2018-10-14  Bruno Haible  <bruno@clisp.org>
18189         doc: Update for Solaris 11.4.
18190         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
18191         mention Solaris 11.4.
18192         * m4/printf.m4: Update comments about Solaris.
18193         * m4/log.m4: Likewise.
18194         * m4/log10.m4: Likewise.
18195         * m4/logb.m4: Likewise.
18196         * m4/logbf.m4: Likewise.
18197         * m4/logbl.m4: Likewise.
18198         * m4/rename.m4: Likewise.
18199         * m4/wcrtomb.m4: Likewise.
18200         * m4/hostent.m4: Likewise.
18201         * m4/servent.m4: Likewise.
18203 2018-10-14  Bruno Haible  <bruno@clisp.org>
18205         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
18206         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
18207         pointer.
18208         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
18209         pointer.
18210         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
18211         pointer.
18212         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
18213         pointer.
18214         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
18215         pointer.
18217 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
18219         bootstrap: fix wget command for po files.
18220         * build-aux/bootstrap (po_download_command_format): Fix comment,
18221         and adjust callers.
18223 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
18225         timevar: improve the output format
18226         Suggested by Bruno Haible.
18227         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
18228         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
18229         wall, since its resolution is much higher.
18231 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
18233         timevar: expect that getrusage is available.
18234         Don't keep both times and getrusage as backend: both are guaranteed by
18235         gnulib, a single one suffices.  Using getrusage is open to possibly
18236         tracking other types of resources in the future.
18237         * modules/timevar (Depends-on): Add getrusage.
18238         (configure.ac): Remove gl_TIMEVAR.
18239         (Files): Remove m4/timevar.m4.
18240         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
18241         * lib/timevar.h (timevar_enabled): Clarify documentation.
18242         * lib/timevar.c: Remove all the code about times.
18243         Remove all the CPP guards about getrusage: expect it to be present
18244         (courtesy of gnulib).
18246 2018-10-12  Bruno Haible  <bruno@clisp.org>
18248         mountlist: Improve support for Solaris in 64-bit mode.
18249         Reported by David Wood <David.Wood@deshaw.com> in
18250         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
18251         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
18252         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
18253         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
18255 2018-10-12  Bruno Haible  <bruno@clisp.org>
18257         mountlist: Add support for Minix.
18258         Reported by Assaf Gordon in
18259         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
18260         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
18261         AC_CHECK_FUNCS to check for 'getmntinfo'.
18262         * lib/mountlist.c: Update comments.
18264 2018-10-12  Bruno Haible  <bruno@clisp.org>
18266         Make better use of Autoconf.
18267         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
18268         * m4/manywarnings.m4: Likewise.
18269         * m4/manywarnings-c++.m4: Likewise.
18270         * m4/socklen.m4: Likewise.
18271         * m4/sockpfaf.m4: Likewise.
18272         * m4/stdarg.m4: Likewise.
18273         * m4/visibility.m4: Likewise.
18274         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
18275         indentation.
18276         * m4/ls-mntd-fs.m4: Likewise.
18278 2018-10-11  Bruno Haible  <bruno@clisp.org>
18280         mountlist: Modernize platform lists.
18281         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
18282         platforms, deemphasizing the obsolete ones.
18283         * lib/mountlist.c: Likewise.
18285 2018-10-11  Bruno Haible  <bruno@clisp.org>
18287         getprogname: Add support for 32-bit programs on HP-UX.
18288         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
18289         try the similar functions 32-bit programs on 64-bit HP-UX.
18291 2018-10-11  Bruno Haible  <bruno@clisp.org>
18293         getprogname: Work around program name truncation when possible.
18294         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
18295         possibly use pst_cmd instead.
18297 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18299         fts: cleanup after FTS_NOATIME removal
18300         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
18301         (FTS_STOP): Shrink to minimal values.  We don’t need to
18302         worry about binary compatibility in Gnulib, and the old way
18303         of doing things had a hole in the user options that caused
18304         FTS_OPTIONMASK to not work as desired.
18306 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
18308         fts: remove FTS_NOATIME
18309         This reverts commit da4d6974013c822af1498941e32db774b2031765.
18310         We cannot guarantee that O_NOATIME works: e.g. openat fails
18311         with EPERM if the effective user ID of the caller does not match
18312         the owner of the file and the caller is not privileged.
18313         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
18314         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
18315         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
18316         (FTS_OPTIONMASK): Adjust.
18317         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
18318         (fd_ring_check): Likewise.
18320 2018-10-08  Bruno Haible  <bruno@clisp.org>
18322         csharpcomp*, csharpexec*: Remove support for pnet.
18323         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
18324         HAVE_CSCC.
18325         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
18326         Don't test HAVE_CSCC.
18327         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
18328         (compile_csharp_class): Don't invoke it.
18329         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
18330         HAVE_ILRUN.
18331         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
18332         Don't test HAVE_ILRUN.
18333         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
18334         (execute_csharp_program): Don't invoke it.
18335         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
18336         any more.
18338 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
18340         renameatu: prefer renameat2 to syscall
18341         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
18342         Use renameat2 instead of syscall (Bug#32796).
18343         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
18345 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
18347         bootstrap, gnulib-tool: use https instead of insecure rsync
18348         * build-aux/bootstrap (download_po_files, po_download_command_format):
18349         Don't try using rsync; always use wget over https to fetch PO files.
18350         * gnulib-tool (func_import): Likewise.
18351         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18353 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
18355         bootstrap, gnulib-tool: correct the translations wget command
18356         * build-aux/bootstrap (po_download_command_format2): Restrict
18357         recursion to a single level.
18358         * gnulib-tool (func_import): Likewise.
18359         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18361 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
18363         doc: the gnulib snapshots are not maintained
18364         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
18366 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
18368         timevar: add to lib_SOURCES
18369         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
18371 2018-10-07  Bruno Haible  <bruno@clisp.org>
18373         dirent: Update documentation.
18374         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
18376 2018-10-05  Bruno Haible  <bruno@clisp.org>
18378         strpbrk: Make it possible to namespace the defined symbol.
18379         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
18381 2018-10-05  Bruno Haible  <bruno@clisp.org>
18383         strcspn: Make it possible to namespace the defined symbol.
18384         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
18386 2018-10-05  Bruno Haible  <bruno@clisp.org>
18388         raise: Make it possible to namespace the defined symbol.
18389         * lib/raise.c (raise): Undefine only after the replacement function has
18390         been defined.
18391         (raise): Renamed from rpl_raise.
18392         (raise_nothrow): Move to the end of the compilation unit.
18394 2018-10-05  Bruno Haible  <bruno@clisp.org>
18396         memcmp: Make it possible to namespace the defined symbol.
18397         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
18399 2018-10-05  Bruno Haible  <bruno@clisp.org>
18401         explicit_bzero: Make it possible to namespace the defined symbol.
18402         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
18403         glibc.
18405 2018-10-05  Bruno Haible  <bruno@clisp.org>
18407         mkdir-p: Depend on 'mkdir'.
18408         * modules/mkdir-p (Depends-on): Add 'mkdir'.
18410 2018-10-05  Bruno Haible  <bruno@clisp.org>
18412         tempname: Depend on 'mkdir'.
18413         Reported by Maarten Bosmans <mkbosmans@gmail.com>
18414         at <https://savannah.gnu.org/bugs/?33379>.
18415         * modules/tempname (Depends-on): Add 'mkdir'.
18417 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
18419         timevar: rely on gnulib modules for time portability.
18420         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
18421         * m4/timevar.m4: Don't check for clock_t and struct tms,
18422         guaranteed by gnulib.
18423         * lib/timevar.h: Use extern "C" protection.
18424         Include <stdio.h> for FILE.
18425         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
18426         they are guaranteed by gnulib.
18427         Remove uses of clock as (now useless) fallback.
18429 2018-10-04  Bruno Haible  <bruno@clisp.org>
18431         sh-filename: New module.
18432         * m4/sh-filename.m4: New file.
18433         * modules/sh-filename: New file.
18434         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
18435         "/bin/sh".
18436         * tests/test-posix_spawn1.c (main): Likewise.
18437         * tests/test-posix_spawn2.c (main): Likewise.
18438         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
18439         is_envjavac_gcj43): Likewise.
18440         * lib/javaexec.c (execute_java_class): Likewise.
18441         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
18442         * modules/posix_spawnp-tests (Depends-on): Likewise.
18443         * modules/javacomp (Depends-on): Likewise.
18444         * modules/javaexec (Depends-on): Likewise.
18446 2018-10-04  Bruno Haible  <bruno@clisp.org>
18448         spawn-pipe tests: Avoid test failure on native Windows.
18449         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
18450         that fd 2 is closed.
18452 2018-10-04  Bruno Haible  <bruno@clisp.org>
18454         fcntl: Make it possible to namespace the defined symbol.
18455         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
18456         been defined.
18457         (fcntl): Renamed from rpl_fcntl.
18458         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
18459         from fcntl.
18460         (klibc_fcntl): Move to the end of the compilation unit.
18462 2018-10-02  Bruno Haible  <bruno@clisp.org>
18464         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
18465         * tests/test-vasnprintf.c (test_function): Change the test added on
18466         2018-09-23 to check only the 18 most significant digits.
18468         vasnprintf tests: Avoid test failure on Cygwin.
18469         * tests/test-vasnprintf.c (test_function): Change the test added on
18470         2018-09-23 to check only the 42 most significant digits.
18472 2018-10-01  Bruno Haible  <bruno@clisp.org>
18474         mkostemp, mkostemps: Update documentation.
18475         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
18476         * doc/glibc-functions/mkostemps.texi: Likewise.
18478 2018-10-01  Tom Tromey  <tom@tromey.com>
18480         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
18481         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
18482         on OS X.
18484 2018-09-30  Pádraig Brady  <P@draigBrady.com>
18486         hmac-*: refactor to remove repetitive code
18487         * lib/hmac.c: A new parameterized single implementation.
18488         * lib/hmac-md5.c: Define parameters and include implementation.
18489         * lib/hmac-sha1.c: Likewise.
18490         * lib/hmac-sha256.c: Likewise.
18491         * lib/hmac-sha512.c: Likewise.
18492         * modules/crypto/hmac-md5: Reference the new implementation file.
18493         * modules/crypto/hmac-sha1: Likewise.
18494         * modules/crypto/hmac-sha256: Likewise.
18495         * modules/crypto/hmac-sha512: Likewise.
18496         * tests/test-hmac-md5.c: Refactor common code to a single function.
18497         * tests/test-hmac-sha1.c: Likewise.
18498         * tests/test-hmac-sha256.c: Likewise.
18499         * tests/test-hmac-sha512.c: Likewise.
18501 2018-09-30  Zhang Qing  <zhangqingl@126.com>
18503         hmac-sha512: fix hash for keys > blocksize (128 bytes)
18504         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
18505         key length to that output by sha512, not the blocksize.
18506         Otherwise uninitialized data from the stack
18507         is used when computing the hash.
18508         * tests/test-hmac-sha512.c: Add a shortened key test case.
18509         Reported at https://github.com/coreutils/gnulib/pull/5
18511 2018-09-30  Bruno Haible  <bruno@clisp.org>
18513         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
18514         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
18515         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
18516         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
18517         'unsigned int' before comparison with an unsigned value.
18519 2018-09-30  Bruno Haible  <bruno@clisp.org>
18521         grantpt: Remove unnecessary dependency.
18522         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
18524 2018-09-30  Bruno Haible  <bruno@clisp.org>
18526         timevar: Small tweaks.
18527         * lib/timevar.h: Fix comments. Add parameter names to function
18528         declarations.
18529         * lib/timevar.c: Include timevar.h immediately after config.h.
18530         * lib/timevar.def: Fix comments.
18531         * modules/timevar (Maintainer): List Akim Demaille.
18533 2018-09-30  Bruno Haible  <bruno@clisp.org>
18535         timevar: Include documentation in gnulib manual.
18536         * doc/timevar.texi: Change node and section name to 'Profiling of
18537         program phases'.
18538         In the code snippets, tweak the #includes and use GNU coding style.
18539         * doc/gnulib.texi: Include timevar.texi.
18541 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
18543         timevar: import from Bison.
18544         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
18545         New files.
18546         * lib/timevar.def: New file.
18547         * doc/timevar.texi: New file.
18549 2018-09-26  Bruno Haible  <bruno@clisp.org>
18551         javacomp-script, javacomp: Add preliminary support for Java 12..17.
18552         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
18553         * lib/javacomp.c (default_target_version): Likewise.
18555 2018-09-26  Bruno Haible  <bruno@clisp.org>
18557         javacomp-script, javacomp: Add support for Java 11.
18558         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
18559         target-version 11.
18560         * lib/javaversion.h: Update comments.
18561         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
18562         source_version_index, get_goodcode_snippet, get_failcode_snippet,
18563         TARGET_VERSION_BOUND, target_version_index,
18564         corresponding_classfile_version): Accept source_version 11 and
18565         target_version 11.
18566         * lib/javacomp.h: Update comments accordingly.
18568 2018-09-23  Bruno Haible  <bruno@clisp.org>
18570         vasnprintf: Fix heap memory overrun bug.
18571         Reported by Ben Pfaff <blp@cs.stanford.edu> in
18572         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
18573         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
18574         memory.
18575         * tests/test-vasnprintf.c (test_function): Add another test.
18577 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18579         maint: mktime.c now shared with glibc
18580         * config/srclist.txt: intprops.h, timegm.c and mktime.c
18581         are now the same in Gnulib and glibc.
18583         mktime: fix _LIBC typo
18584         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
18586 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18588         dfa: optimization for state merge
18589         * lib/dfa.c (merge2): New function.
18590         (merge_nfa_state): Use it.
18592 2018-09-18  Jim Meyering  <meyering@fb.com>
18594         dfa: trivial comment fix: s/is/if/
18595         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
18597 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18599         dfa: use more-informative function name
18600         * lib/dfa.c (maybe_disable_superset_dfa):
18601         Rename from dfautf8noss.  Use change.
18603         dfa: tweak allocation performance
18604         * lib/dfa.c (merge_nfa_state, dfaoptimize):
18605         Prefer ptrdiff_t for indexes some more.
18606         Use char for flags, as it’s wide enough.
18607         Allocate queue and flags together, with one malloc call.
18608         No need to use xnmalloc since the multiplication and
18609         addition cannot overflow (it’s already been checked by
18610         earlier allocation).  Prefer memset to open-coding.
18612         dfa: prune states as we go
18613         * lib/dfa.c (prune): Remove.
18614         dfa: reorder enum for efficiency
18615         (merge_nfa_state): Prune as we go instead of at the end.
18616         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
18618         * lib/dfa.c (END): Now -1 again.  Reorder other elements
18619         of the enumeration to make it easier for GCC to generate
18620         efficient code by using fewer comparisons to check for
18621         ranges of values.
18622         (atom): Take advantage of the reordering.
18624 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
18626         dfa: optimize alternation in NFA
18627         Even when similar states exist in alternation, the DFA treats them
18628         as separate items, which may complicate the transition in NFA and
18629         cause slowdown.  This change assembles the states into one.  For
18630         example, ab|ac is changed into a(b|c).  This change speeds-up
18631         matching for many branched patterns.  For example, grep speeds up
18632         more than 30× in:
18634           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
18635           time -p env LC_ALL=C grep -vf in in
18637         * lib/dfa.c (prune): New function.
18638         (merge_nfa_state): New function.  It merges similar NFA states.
18639         (dfaoptimize): New function.  It seeks merged and removed nodes.
18640         (dfaanalyze): Call new function.
18641         (dfautf8noss): Change name from dfaoptimize because of addition of new
18642         function.
18643         (dfacomp): Update caller.
18645         dfa: simplify initial state
18646         Simplifying the initial state enables easier optimization of the NFA.
18647         * lib/dfa.c (enum token): Add new element BEG.
18648         (prtok): Adjust due to adding element BEG.
18649         (dfaparse): Put BEG at a head of tokens.
18650         (state_index): Adjust due to adding element BEG.
18651         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
18652         build initial state.
18653         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
18655 2018-09-18  Bruno Haible  <bruno@clisp.org>
18657         file-has-acl: Fix test failure on Cygwin 2.9.
18658         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
18659         * lib/acl-internal.h: Likewise.
18660         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
18661         * lib/acl-internal.c: Update comments regarding Cygwin.
18662         * lib/acl_entries.c: Likewise.
18663         * lib/file-has-acl.c: Likewise.
18664         (file_has_acl): For Cygwin, use a different way to determine whether
18665         the "default" ACL of a directory is nontrivial.
18666         * lib/get-permissions.c: Update comments regarding Cygwin.
18667         * lib/set-permissions.c: Likewise.
18669 2018-09-18  Bruno Haible  <bruno@clisp.org>
18671         stat-time tests: Fix test failure on Cygwin.
18672         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
18674 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18676         doc: OS X 10.11 lacked ns time functions
18677         According to <https://github.com/zeromq/libzmq/issues/2175>,
18678         nanosecond-resolution timestamp functions were introduced
18679         in macOS 10.12, so document the last version (OS X 10.11)
18680         where they were absent.
18682         gettime: nanotime never existed
18683         Problem reported by Bruno Haible in:
18684         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
18685         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
18686         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
18688 2018-09-18  Bruno Haible  <bruno@clisp.org>
18690         doc: Update statement about target platforms.
18691         Reported by Simon Sobisch.
18692         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
18693         restrictions on MSVC versions.
18695 2018-09-18  Bruno Haible  <bruno@clisp.org>
18697         posix_spawn tests: Fix link error on 64-bit Cygwin.
18698         * tests/test-posix_spawn1.c (environ): Remove declaration.
18699         * tests/test-posix_spawn2.c (environ): Likewise.
18700         * tests/test-posix_spawn3.c (environ): Likewise.
18701         * tests/test-posix_spawn4.c (environ): Likewise.
18702         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
18703         * modules/posix_spawnp-tests (Depends-on): Likewise.
18705 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18707         timespec: new function current_timespec
18708         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
18709         and don’t worry about it failing on a CLOCK_REALTIME arg.
18710         POSIX requires it to succeed and I don’t know of any
18711         counterexamples where the fallbacks would work.
18712         (current_timespec): New function, taken from Emacs.  It is more
18713         convenient than gettime, and can help register allocation.
18714         * lib/timespec.h: Include arg-nonnull.h.
18715         (current_timespec): New declaration.
18716         (gettime, settime): Declare args to be nonnull.
18717         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
18719 2018-09-16  Bruno Haible  <bruno@clisp.org>
18721         setlocale: Improve locale handling on macOS 10.12 or newer.
18722         * lib/setlocale.c: Include header files for CoreFoundation. Declare
18723         gl_locale_name_canonicalize.
18724         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
18725         and LC_MESSAGES.
18726         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
18728 2018-09-16  Bruno Haible  <bruno@clisp.org>
18730         Update list of locale names with scripts on macOS.
18731         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
18732         match Mac OS X 10.13 and recent glibc.
18734 2018-09-16  Bruno Haible  <bruno@clisp.org>
18736         gettext: Use newer macOS APIs when possible.
18737         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
18738         CFLocaleCopyPreferredLanguages.
18740 2018-09-16  Bruno Haible  <bruno@clisp.org>
18742         localename: Revisit macOS specific code.
18743         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
18744         Fix comments about Mac OS X versions.
18746 2018-09-15  Bruno Haible  <bruno@clisp.org>
18748         setlocale: Improve support for locales not supported by libc.
18749         Reported by Dapeng Gao <peter@dpgao.cc> at
18750         <https://savannah.gnu.org/bugs/?54479>.
18751         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
18752         (libintl_setlocale): Use a more error-tolerant strategy when the locale
18753         to be set is not supported by libc: Emit warnings instead of failing.
18755 2018-09-15  Bruno Haible  <bruno@clisp.org>
18757         strstr, strcasestr: Add workaround against glibc-2.28 bug.
18758         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
18759         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
18760         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
18761         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
18762         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
18763         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
18764         * doc/glibc-functions/strcasestr.texi: Likewise.
18766 2018-09-14  Bruno Haible  <bruno@clisp.org>
18768         doc: Fix bottom of top-level page.
18769         Reported by Akim Demaille <akim.demaille@gmail.com> in
18770         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
18771         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
18772         mode.
18773         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
18774         accordingly.
18776 2018-09-12  Bruno Haible  <bruno@clisp.org>
18778         Add test case from a recent glibc bug.
18779         * tests/test-strstr.c (main): Add test of long needle.
18780         * tests/test-strcasestr.c (main): Likewise.
18781         * tests/test-c-strstr.c (main): Likewise.
18782         * tests/test-c-strcasestr.c (main): Likewise.
18783         * tests/test-memmem.c (main): Likewise.
18785 2018-09-12  Bruno Haible  <bruno@clisp.org>
18787         Apply Eric Blake's improvements from 2011-02-25 to more tests.
18788         * tests/test-c-strstr.c (main): Add the same tests here as well.
18790 2018-09-12  Bruno Haible  <bruno@clisp.org>
18792         Apply Jim Meyering's fix from 2015-01-11 to more tests.
18793         * tests/test-memmem.c (main): Free haystack.
18794         * tests/test-strcasestr.c (main): Likewise.
18795         * tests/test-c-strcasestr.c (main): Likewise.
18797 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
18799         xstrtol: fix missing-TYPE_SIGNED typo
18800         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
18802 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18804         timespec: fix resolution confusion
18805         In normal usage, clock resolution is given in seconds, but the
18806         code was mistakenly using inverse seconds and calling it
18807         “resolution”.  Fix this, partly by renaming two identifiers.
18808         The old names will be kept for a bit, to ease transition.
18809         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
18810         New constants, replacing TIMESPEC_RESOLUTION and
18811         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
18812         All uses changed.
18814 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
18816         mktime: simplify in prep for glibc merge
18817         * lib/mktime.c, lib/timegm.c [_LIBC]:
18818         Include mktime-internal.h (a small file just for glibc)
18819         instead of using a typedef.
18821 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
18823         intprops: minor clarification of code
18824         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
18825         Use _GL_INT_CONVERT rather than reinventing it.
18827 2018-09-07  Bruno Haible  <bruno@clisp.org>
18829         Fix a comment.
18830         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
18832 2018-09-07  Bruno Haible  <bruno@clisp.org>
18834         posix_spawn_file_actions_addchdir: Add tests.
18835         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
18836         * tests/test-posix_spawn4.c: New file.
18837         * modules/posix_spawn_file_actions_addchdir-tests: New file.
18839 2018-09-07  Bruno Haible  <bruno@clisp.org>
18841         posix_spawn_file_actions_addchdir: New module.
18842         Suggested by Eric Blake in
18843         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
18844         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
18845         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
18846         union member 'chdir_action'.
18847         * lib/spawn_faction_addchdir.c: New file.
18848         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
18849         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
18850         HAVE_WORKING_POSIX_SPAWN.
18851         * lib/spawn_faction_adddup2.c: Likewise.
18852         * lib/spawn_faction_addopen.c: Likewise.
18853         * m4/posix_spawn_faction_addchdir.m4: New file.
18854         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
18855         'posix_spawn_file_actions_addchdir' is present and whether
18856         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
18857         instead of HAVE_WORKING_POSIX_SPAWN.
18858         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
18859         posix_spawn_file_actions_addchdir is declared.
18860         (gl_SPAWN_H_DEFAULTS): Initialize
18861         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18862         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18863         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18864         * modules/spawn (Makefile.am): Substitute
18865         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18866         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18867         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18868         * modules/posix_spawn_file_actions_addchdir: New file.
18869         * modules/posix_spawn_file_actions_addclose (Depends-on,
18870         configure.ac): Test also REPLACE_POSIX_SPAWN.
18871         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
18872         configure.ac): Likewise.
18873         * modules/posix_spawn_file_actions_addopen (Depends-on,
18874         configure.ac): Likewise.
18875         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
18876         signature.
18877         * doc/posix-functions/posix_spawn.texi: Mention the new module.
18878         * doc/posix-functions/posix_spawnp.texi: Likewise.
18880 2018-09-06  Bruno Haible  <bruno@clisp.org>
18882         stddef: Override max_align_t on NetBSD 8.0/x86.
18883         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
18884         the value of __alignof__ (max_align_t).
18885         * doc/posix-headers/stddef.texi: Mention the issue.
18887 2018-09-06  Bruno Haible  <bruno@clisp.org>
18889         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
18890         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
18891         system fcntl.
18892         * doc/posix-functions/fcntl.texi: Document the issue.
18894 2018-09-06  Bruno Haible  <bruno@clisp.org>
18896         count-trailing-zeros tests: Rely on limits-h module.
18897         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
18898         definition.
18899         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
18901 2018-09-06  Bruno Haible  <bruno@clisp.org>
18903         count-leading-zeros tests: Rely on limits-h module.
18904         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
18905         definition.
18906         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
18908 2018-09-06  Bruno Haible  <bruno@clisp.org>
18910         count-one-bits tests: Rely on limits-h module.
18911         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
18912         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
18914 2018-09-06  Bruno Haible  <bruno@clisp.org>
18916         xstrtoll: Rely on limits-h module.
18917         * lib/xstrtol.c: Don't include intprops.h.
18918         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18919         * modules/xstrtol (Depends-on): Remove 'intprops'.
18920         * modules/xstrtoll (Depends-on): Add 'limits-h'.
18922 2018-09-06  Bruno Haible  <bruno@clisp.org>
18924         strtoll, strtoull: Rely on limits-h module.
18925         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
18926         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18927         * modules/strtoll (Depends-on): Add limits-h.
18928         * modules/strtoull (Depends-on): Likewise.
18930 2018-09-06  Bruno Haible  <bruno@clisp.org>
18932         intprops tests: Fix compilation error with pre-C99 compiler.
18933         * tests/test-intprops.c (verify_stmt): New macro.
18934         (VERIFY, main): Use it.
18936 2018-09-06  Bruno Haible  <bruno@clisp.org>
18938         limits-h: Provide numerical limits macros.
18939         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
18940         IRIX and for GCC.
18941         (WORD_BIT, LONG_BIT): Define.
18942         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
18943         <limits.h> does not define LLONG_MAX or WORD_BIT.
18944         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
18945         TYPE_MAXIMUM): New macros, from intprops.h.
18946         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
18947         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
18948         provides.
18950 2018-09-05  Bruno Haible  <bruno@clisp.org>
18952         fcntl: Don't access nonexistent optional argument.
18953         Reported by Frank Busse <f.busse@imperial.ac.uk> in
18954         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
18955         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
18956         don't consume an argument. For actions that take an 'int' argument,
18957         consume an 'int' argument.
18959 2018-09-05  Eric Blake  <eblake@redhat.com>
18961         doc: mention environ pitfall
18962         * doc/posix-functions/environ.texi (environ): Assigning NULL to
18963         environ is a glibc extension.
18965 2018-09-03  Bruno Haible  <bruno@clisp.org>
18967         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
18968         Reported by Antoine Luong <antoine.luong@c-s.fr> in
18969         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
18970         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
18971         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
18972         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
18974 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18976         mktime: fix unlikely race+overflow bug
18977         Problem reported by Alexandre Oliva in:
18978         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
18979         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
18980         to avoid an unlikely race if the compiler delays a load and
18981         if this cascades into a signed integer overflow.
18983 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18985         mktime, timegm: simplify glibc time64_t
18986         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
18987         Now long int, not time_t, since long int is the longstanding type
18988         for this in glibc and there is no need to change it even if time_t
18989         becomes 64 bits - even int would do, though this would be a change
18990         to the glibc generated code.  When this change is merged into
18991         glibc, it should simplify the time_t vs time64_t situation.
18993         mktime, timegm: simplify merge to glibc
18994         Move code around to make a merge to glibc easier to audit.
18995         This should not change behavior.
18996         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
18997         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
18998         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
18999         simplify later conditionals; default the others to zero.  In uses
19000         of these conditionals, explicitly spell out how _LIBC affects
19001         things, so it’s easier to review from a glibc viewpoint.
19002         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
19003         compartmentalize tzset issues.  Move system-dependent tzsettish
19004         code here from mktime.
19005         (mktime): Move tzsettish code to my_tzset, and move
19006         localtime_offset to within mktime so that it doesn’t
19007         need a separate ifdef.
19009 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
19011         intprops: avoid evaluation of some expressions
19012         This makes EXPR_SIGNED (e) easier to use, as it no longer
19013         evaluates the expression E.  Formerly, E was required to be free
19014         of side effects.
19015         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
19016         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
19017         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
19019 2018-08-23  Bruno Haible  <bruno@clisp.org>
19021         getcwd: Add cross-compilation guesses.
19022         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
19023         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
19024         Based on a patch by Paul Eggert.
19025         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
19026         guesses for all GNU systems.
19028 2018-08-19  Bruno Haible  <bruno@clisp.org>
19030         glob-h: Formalize side effects from other modules.
19031         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
19032         * m4/glob.m4 (gl_GLOB): Invoke it.
19034         fnmatch-h: Formalize side effects from other modules.
19035         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
19036         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
19038         limits-h: Formalize side effects from other modules.
19039         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
19040         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
19042 2018-08-19  Bruno Haible  <bruno@clisp.org>
19044         getpass: Move declaration to <unistd.h>.
19045         * lib/unistd.in.h (getpass): New declaration.
19046         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
19047         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
19048         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
19049         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
19050         On glibc systems, don't set REPLACE_GETPASS to 1.
19051         * modules/getpass (Depends-on): Add 'unistd'.
19052         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
19053         (Include): Specify <unistd.h> instead of "getpass.h".
19054         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
19055         (configure.ac): Sync with the configure.ac section of modules/getpass.
19056         (Include): Specify <unistd.h> instead of "getpass.h".
19057         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
19058         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
19059         REPLACE_GETPASS.
19060         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
19061         REPLACE_GETPASS.
19062         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
19063         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
19064         and musl.
19065         * NEWS: Mention the change.
19067 2018-08-19  Bruno Haible  <bruno@clisp.org>
19069         glob: Fix over-optimization due to attribute __nonnull__.
19070         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
19072 2018-08-19  Bruno Haible  <bruno@clisp.org>
19074         glob: Fix another compilation error when glob.h is not replaced.
19075         Reported by Reuben Thomas <rrt@sc3d.org> in
19076         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
19077         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
19078         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
19080 2018-08-18  Bruno Haible  <bruno@clisp.org>
19082         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
19083         Reported by Reuben Thomas <rrt@sc3d.org> in
19084         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
19085         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
19086         in config.h.
19088 2018-08-18  Bruno Haible  <bruno@clisp.org>
19090         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
19091         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
19092         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
19093         Solution proposed by Eli Zaretskii.
19094         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
19095         * lib/gettimeofday.c (GetProcAddress): Likewise.
19096         * lib/link.c (GetProcAddress): Likewise.
19097         * lib/physmem.c (GetProcAddress): Likewise.
19098         * lib/poll.c (GetProcAddress): Likewise.
19099         * lib/select.c (GetProcAddress): Likewise.
19100         * lib/stat-w32.c (GetProcAddress): Likewise.
19102 2018-08-18  Bruno Haible  <bruno@clisp.org>
19104         glob: Fix another compilation error when glob.h is not replaced.
19105         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
19106         * lib/globfree.c: Include <libc-config.h>.
19108 2018-08-18  Bruno Haible  <bruno@clisp.org>
19110         glob: Fix compilation error when glob.h is not replaced.
19111         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
19112         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
19113         * lib/glob_pattern_p.c: Include <libc-config.h>.
19114         * modules/glob (Depends-on): Add libc-config.
19116 2018-08-18  Bruno Haible  <bruno@clisp.org>
19118         scratch_buffer: Add tests.
19119         * tests/test-scratch-buffer.c: New file.
19120         * modules/scratch_buffer-tests: New file.
19122 2018-08-18  Bruno Haible  <bruno@clisp.org>
19124         scratch_buffer: Fix include file.
19125         Reported by Reuben Thomas <rrt@sc3d.org> in
19126         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
19127         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
19128         double-inclusion guard.
19130 2018-08-18  Bruno Haible  <bruno@clisp.org>
19132         glob-h: Revert Paul Eggert's revert.
19133         * m4/glob_h.m4: Revert to previous state.
19134         * modules/glob-h: Likewise.
19136 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19138         glob-h: always build glob.h
19139         This works around a problem reported by Reuben Thomas in:
19140         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
19141         This workaround always builds glob.h, even on platforms that
19142         do not need it; perhaps this could be improved someday.
19143         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
19144         is always created now.
19145         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
19147 2018-08-13  Bruno Haible  <bruno@clisp.org>
19149         monetary: Simplify m4 code.
19150         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
19151         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
19153 2018-08-13  Bruno Haible  <bruno@clisp.org>
19155         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
19156         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
19157         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
19158         and by Paul J. Lucas <paul@lucasmail.org> in
19159         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
19160         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
19162 2018-08-11  Bruno Haible  <bruno@clisp.org>
19164         setlocale: Trivial simplification.
19165         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
19167 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
19169         verify: port 'assume' to traditional tools
19170         * lib/verify.h (assume): Port better to Oracle Studio 12.6
19171         and other tools that use /*NOTREACHED*/ comments.
19173 2018-08-10  Bruno Haible  <bruno@clisp.org>
19175         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
19176         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19177         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
19178         'fnmatch-gnu' is in use.
19180 2018-08-07  Bruno Haible  <bruno@clisp.org>
19182         glob-h: Add tests.
19183         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
19184         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
19185         tests/test-glob-h.c.
19186         * modules/glob-h-tests: New file.
19187         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
19188         conditions.
19189         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
19190         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
19192 2018-08-07  Bruno Haible  <bruno@clisp.org>
19194         glob-h: New module.
19195         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
19196         replacements.
19197         * lib/glob.c: Include <config.h>.
19198         * m4/glob_h.m4: New file.
19199         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
19200         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
19201         REPLACE_GLOB_PATTERN_P as appropriate.
19202         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
19203         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
19204         * modules/glob-h: New file.
19205         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
19206         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
19207         lstat, sys_stat. Change conditions.
19208         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
19209         REPLACE_GLOB_PATTERN_P. Set module indicator.
19210         (Makefile.am): Remove code that is moved to glob-h.
19211         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
19212         * modules/posixcheck (Depends-on): Add glob-h.
19214 2018-08-06  Bruno Haible  <bruno@clisp.org>
19216         Force generation of substitute .h file when C++ support is enabled.
19217         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
19218         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
19219         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
19220         FNMATCH_H to non-empty.
19221         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
19222         ICONV_H to non-empty.
19223         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
19224         MONETARY_H to non-empty.
19225         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
19226         non-empty.
19228 2018-08-06  Bruno Haible  <bruno@clisp.org>
19230         fnmatch-h: Fix test compilation error on mingw (regression from today).
19231         * lib/fnmatch.in.h: Fix conditions.
19233 2018-08-06  Bruno Haible  <bruno@clisp.org>
19235         sys_resource: Relicense under LGPLv2+.
19236         John Malmberg's approval is in
19237         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
19238         * modules/sys_resource (License): Change to LGPLv2+.
19240 2018-08-06  Bruno Haible  <bruno@clisp.org>
19242         fnmatch-h: Add tests.
19243         * tests/test-fnmatch-h.c: New file.
19244         * modules/fnmatch-h-tests: New file.
19245         * tests/test-fnmatch-h-c++.cc: New file.
19246         * modules/fnmatch-h-c++-tests: New file.
19248 2018-08-06  Bruno Haible  <bruno@clisp.org>
19250         fnmatch-h: New module.
19251         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
19252         replacements.
19253         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
19254         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
19255         'posixcheck' warning.
19256         * m4/fnmatch_h.m4: New file.
19257         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
19258         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
19259         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
19260         as appropriate.
19261         * modules/fnmatch-h: New file.
19262         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
19263         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
19264         conditions.
19265         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
19266         indicator.
19267         (Makefile.am): Remove code that is moved to fnmatch-h.
19268         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
19269         REPLACE_FNMATCH.
19270         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
19271         * modules/posixcheck (Depends-on): Add fnmatch-h.
19273 2018-08-06  Bruno Haible  <bruno@clisp.org>
19275         Enable more C++ tests.
19276         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
19277         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
19278         * modules/strings-tests (Depends-on): Add strings-c++-tests.
19279         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
19280         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
19282 2018-08-06  Bruno Haible  <bruno@clisp.org>
19284         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
19285         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
19286         getopt.h.
19287         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
19289 2018-08-05  Bruno Haible  <bruno@clisp.org>
19291         utime-h: Generate header file when module 'posixcheck' is in use.
19292         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
19293         UTIME_H to non-empty.
19295 2018-08-05  Bruno Haible  <bruno@clisp.org>
19297         monetary: Generate header file when module 'posixcheck' is in use.
19298         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
19299         use, set MONETARY_H to non-empty.
19301 2018-08-05  Bruno Haible  <bruno@clisp.org>
19303         iconv-h: Generate header file when module 'posixcheck' is in use.
19304         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
19305         set ICONV_H to non-empty.
19307 2018-08-05  Bruno Haible  <bruno@clisp.org>
19309         Optimize the "checking whether ... is declared without a macro" checks.
19310         Suggested by Paul Eggert in
19311         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
19312         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
19313         Gnulib module 'posixcheck' is not in use.
19315 2018-08-05  Bruno Haible  <bruno@clisp.org>
19317         iconv-h: Enable 'posixcheck' warnings.
19318         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
19319         iconv_open.
19320         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
19322 2018-08-05  Bruno Haible  <bruno@clisp.org>
19324         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
19325         * m4/extern-inline.m4: Add more comments.
19326         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
19327         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
19328         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
19330 2018-08-04  Bruno Haible  <bruno@clisp.org>
19332         New module 'posixcheck'.
19333         * modules/posixcheck: New file.
19334         * m4/posixcheck.m4: New file.
19335         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
19336         (Which modules?): Reference it.
19338 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
19340         dfa: fix memory leak
19341         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
19343 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19345         ieee754-h: new module
19346         It looks like Emacs can use this for some NaN processing.
19347         Emacs uses it only on double NaNs so it should be safe.
19348         * MODULES.html.sh (func_all_modules): Add ieee754-h.
19349         * config/srclist.txt: Mention ieee754.h in a comment.
19350         * doc/glibc-headers/ieee754.texi (ieee754.h):
19351         Gnulib now has a substitute that should work
19352         except for long double and for non-IEEE platforms.
19353         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
19354         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
19356 2018-07-27  Bruno Haible  <bruno@clisp.org>
19358         iswcntrl: Mention minor problem on macOS.
19359         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
19361 2018-07-26  Colin Watson  <cjwatson@debian.org>
19363         bootstrap, gnulib-tool: fix translations rsync
19364         Previously, we created files such as $pobase/Makefile.in.in and then the
19365         subsequent rsync would immediately delete them.
19366         * build-aux/bootstrap (po_download_command_format): Avoid deleting
19367         non-.po files in target directory when rsyncing translations.
19368         * gnulib-tool (func_import): Likewise.
19369         * pygnulib/GLImport.py (GLImport.execute): Likewise.
19371 2018-07-25  Jim Meyering  <meyering@fb.com>
19373         bootstrap: reinstate definition fo gnulib_mk.
19374         That variable is used at least by cppi.
19375         * build-aux/bootstrap (gnulib_mk): Restore definition.
19376         This reverts the deletion from v0.1-1844-gc66dba9ba.
19378 2018-07-23  Bruno Haible  <bruno@clisp.org>
19380         doc: For module names, use texinfo markup @code{} or @samp{}.
19381         * doc/alloca.texi: Mark gnulib module names with @code.
19382         * doc/alloca-opt.texi: Likewise.
19383         * doc/quote.texi: Likewise.
19384         * doc/posix-functions/freopen.texi: Likewise.
19385         * doc/posix-functions/open.texi: Likewise.
19386         * doc/posix-functions/readlink.texi: Likewise.
19387         * doc/posix-functions/readlinkat.texi: Likewise.
19388         * doc/posix-functions/stdout.texi: Likewise.
19389         * doc/posix-functions/stderr.texi: Likewise.
19390         * doc/posix-functions/unlink.texi: Likewise.
19391         * doc/posix-functions/unlinkat.texi: Likewise.
19392         * doc/posix-functions/utime.texi: Likewise.
19393         * doc/posix-functions/utimensat.texi: Likewise.
19394         * doc/posix-functions/utimes.texi: Likewise.
19395         * doc/posix-headers/stdint.texi: Likewise.
19396         * doc/glibc-functions/futimesat.texi: Likewise.
19397         * doc/glibc-functions/lutimes.texi: Likewise.
19398         * doc/glibc-functions/memmem.texi: Likewise.
19400 2018-07-23  Werner LEMBERG  <wl@gnu.org>
19402         doc: Avoid some overfull lines in the TeX output.
19403         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
19404         @example.
19405         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
19406         newline before the long URL.
19407         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
19408         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
19409         Add line breaks in code snippets.
19411 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
19413         hard-locale: simplify by removing hard-locale.m4
19414         * m4/hard-locale.m4: Remove.
19415         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
19416         (configure.ac): Do not call gl_HARD_LOCALE.
19418         gnulib-tool: limit line length for git send-email
19419         * gnulib-tool (func_import): Break actioncmd log line
19420         into multiple lines.
19422 2018-07-16  Bruno Haible  <bruno@clisp.org>
19424         ffs: Ensure declaration on mingw.
19425         Reported by Daniel P. Berrangé <berrange@redhat.com>
19426         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
19427         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
19428         also declared.
19430 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
19432         regex-tests: add dependency
19433         * modules/regex-tests (Depends-on): Add gettext-h.
19434         This is needed given the recent changes to regex,
19435         which no longer depends on gettext-h.
19437 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19439         regex: now in sync with glibc
19440         * config/srclist.txt: Gnulib and glibc regex code
19441         are synchronized again.
19443 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
19445         renameatu: rename from renameat2
19446         It's looking like Glibc will add a renameat2 function
19447         that is incompatible with Gnulib renameat2; see:
19448         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
19449         To help avoid future confusion, rename renameat2 to something else.
19450         Use the name 'renameatu', as the Gnulib function is close to the
19451         Glibc function.  Perhaps someday there will also be a renameat2
19452         Gnulib module, which mimicks the future glibc renameat2, but that
19453         can wait as nobody seems to need such a module now.
19454         * NEWS: Mention this.
19455         * lib/renameatu.c: Rename from lib/renameat2.c.
19456         * lib/renameatu.h: Rename from lib/renameat2.h.
19457         * modules/renameatu: Rename from modules/renameat2.
19458         * modules/renameatu-tests: Rename from modules/renameat2-tests.
19459         All uses of "renameat2" in identifiers or file name
19460         changed to "renameatu", except for two instances in
19461         lib/renameatu.c that deal with the Linux kernel's
19462         renameat2 syscall.
19464 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19466         gnulib-tool: minor tweaks for --gnu-make
19467         * gnulib-tool: Do not allow --gnu-make in test modes,
19468         since they all require automake.
19469         (func_emit_lib_Makefile_am): Don’t emit automake comment
19470         if --gnu-make.
19472         regex: work around conditional-dependencies glitch
19473         * modules/regex (Depends-on): Add langinfo.
19474         Without this change, I had problems building an experimental
19475         version of GNU Emacs.  The symptom of the bug was a message
19476         ‘./configure: line 12726: test: =: unary operator expected’.
19477         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
19478         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
19479         was unset.  Although gl_FUNC_NL_LANGINFO has
19480         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
19481         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
19482         --conditional-dependencies sometimes arranges for the
19483         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
19484         code.  Since the regex code includes <langinfo.h> it should be
19485         depending on the langinfo module anyway, and this happens to work
19486         around the bug, so install that as a workaround for now.  To
19487         reproduce the original problem, run the following shell script on
19488         the version of Gnulib just before this patch was installed.
19489                 rm -fr foo
19490                 mkdir foo
19491                 cat >foo/configure.ac <<'EOF'
19492                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
19493                 gl_EARLY
19494                 gl_INIT
19495                 AC_OUTPUT
19496                 EOF
19497                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
19498                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
19499                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
19500                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
19501                 cd foo
19502                 aclocal -I m4
19503                 autoconf
19504                 ./configure --with-included-regex
19506 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19508         wchar: fix bug when checking for ‘inline’
19509         I discovered this when looking into using the regex module
19510         with Emacs.
19511         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
19512         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
19513         conftest1.c and conftest2.c but these files were not created.
19514         As far as I can see, this check never worked and nobody reported
19515         it until now, which is a bit worrisome.
19517 2018-06-30  Jim Meyering  <meyering@fb.com>
19519         bootstrap: s/--option val/--option=val/
19520         * build-aux/bootstrap (gnulib_tool_options): Change the
19521         spelling of "--option val" pairs to "--option=val", for
19522         aesthetics, and also so that this file no longer triggers
19523         a common help2man syntax-check warning when copied into
19524         projects like grep, gzip, etc.
19526 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
19528         manywarnings: omit -Wswitch-default
19529         This should make things more consistent, as we already ignore
19530         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
19531         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
19532         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
19533         Add -Wswitch-default.
19534         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
19535         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19536         Remove -Wswitch-default.
19538         regex: revert most trimming
19539         Problems reported by Bruno Haible in:
19540         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
19541         * modules/regex (Depends-on): Add lock, memcmp, memmove,
19542         and wctype back in.  lock because regex users shouldn’t
19543         need to know that regex needs locking, and the rest because
19544         gnulib-tool should ordinarily ignore them anyway.
19546 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
19548         regex: trim module dependencies
19549         * modules/regex (Depends-on): Remove gettext-h and lock,
19550         since the regex code should work OK without these modules,
19551         and Emacs uses it that way.  Also remove memcmp, memmove,
19552         and wctype, as these modules are obsolete and should not be
19553         needed any more.
19555 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
19557         regex: glibc does not use intprops.h
19558         Maybe we can talk glibc into using intprops.h someday, but
19559         now doesn’t seem to be a good time.
19560         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
19561         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
19562         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
19564 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
19566         regex: port to recently proposed glibc regex merge
19567         This patch is inspired by Adhemerval Zanella's recent proposal
19568         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
19569         to merge glibc and Gnulib regex.  It aims to simplify the merge on
19570         the glibc side, without keeping Gnulib portable.
19571         * lib/regex.h: Fix a problem with glibc installed-header checking,
19572         as follows:
19573         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
19574         (_Restrict_arr_): Prefer __restrict_arr if defined,
19575         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
19576         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
19577         (build_wcs_upper_buffer, build_upper_buffer)
19578         (re_string_translate_buffer, re_string_context_at):
19579         Move decls here from lib/regex_internal.h, for glibc internal tests.
19580         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
19581         glibc BZ #18496.
19582         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
19583         -Wunused-value.
19584         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
19585         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
19586         (bitset_mask): Now static inline, and without any __attribute__
19587         ((unused)) decoration, for glibc internal tests.
19589 2018-06-25  Bruno Haible  <bruno@clisp.org>
19591         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
19592         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
19593         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
19594         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
19595         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
19596         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
19597         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
19598         / -lthread / -lpth does not get optimized away by a preceding
19599         --as-needed option.
19601 2018-06-25  Bruno Haible  <bruno@clisp.org>
19603         Continue to use spaces for indentation, not tabs.
19604         * MODULES.html.sh: Untabify.
19605         * doc/regex.texi: Likewise.
19606         * lib/acl-internal.c: Likewise.
19607         * lib/dfa.c: Likewise.
19608         * lib/exclude.c: Likewise.
19609         * lib/exclude.h: Likewise.
19610         * lib/get-permissions.c: Likewise.
19611         * lib/gettimeofday.c: Likewise.
19612         * lib/parse-datetime.y: Likewise.
19613         * lib/pselect.c: Likewise.
19614         * lib/set-permissions.c: Likewise.
19615         * lib/time.in.h: Likewise.
19616         * m4/canonicalize.m4: Likewise.
19617         * m4/gc.m4: Likewise.
19618         * m4/gnulib-common.m4: Likewise.
19619         * m4/pthread_sigmask.m4: Likewise.
19620         * m4/vararrays.m4: Likewise.
19621         * tests/test-digest.h: Likewise.
19622         * tests/test-fcntl-h.c: Likewise.
19623         * tests/test-timespec.c: Likewise.
19624         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
19626 2018-06-25  Bruno Haible  <bruno@clisp.org>
19628         manywarnings: Don't enable -Wjump-misses-init warnings by default.
19629         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
19630         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
19631         -Wjump-misses-init.
19633 2018-06-25  Jim Meyering  <meyering@fb.com>
19635         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
19636         * lib/acl-internal.h (free_permission_context): Remove that
19637         attribute directive.  Otherwise, it would provoke this from GCC 9:
19638         lib/acl-internal.h:300:3: error: 'const' attribute on function \
19639           returning 'void' [-Werror=attributes]
19641 2018-06-24  Jim Meyering  <meyering@fb.com>
19643         parse-datetime: accommodate gcc-4.8.5
19644         Bruno Haible reported the build failure in
19645         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
19646         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
19647         on declaration of new local.
19649 2018-06-24  Bruno Haible  <bruno@clisp.org>
19651         af_alg: Fail in continuable manner on Linux/powerpc64le.
19652         Reported by Assaf Gordon <assafgordon@gmail.com>
19653         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
19654         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
19655         byte send() as the first round.
19657 2018-06-24  Bruno Haible  <bruno@clisp.org>
19659         af_alg: Fix state of stream after sendfile() succeeds.
19660         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
19661         the stream is correctly positioned afterwards.
19662         * modules/crypto/af_alg (Depends-on): Add fflush.
19663         * tests/test-digest.h (test_digest_on_files): Verify that after the
19664         operation the stream is positioned at end of file.
19666 2018-06-24  Jim Meyering  <meyering@fb.com>
19668         canon-host: take GCC9's advice rather than ignoring warning
19669         Pádraig Brady suggested not to ignore this GCC9 advice.
19670         * lib/canon-host.c: Undo preceding change.
19671         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
19673         parse-datetime.y: avoid spurious GCC 9 warning
19674         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
19675         a function local prior to the first "goto fail".  The prior use would
19676         evoke this:
19677         parse-datetime.y: In function 'parse_datetime2':
19678         parse-datetime.y:1791:19: error: jump skips variable initialization \
19679           [-Werror=jump-misses-init]
19680         parse-datetime.y:2385:2: note: label 'fail' defined here
19681         parse-datetime.y:188:43: note: '({anonymous})' declared here
19682         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
19684         canon-host.c: avoid spurious GCC 9 warning
19685         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
19687         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
19688         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
19689         * m4/manywarnings.m4: Remove them.
19690         Otherwise, building coreutils, I would see this:
19691         cc1: error: deprecated command line option '-Wchkp' [-Werror]
19692         cc1: error: -Wabi won't warn about anything [-Werror=abi]
19693         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
19694           which is also used by default
19695         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
19697 2018-06-24  Bruno Haible  <bruno@clisp.org>
19699         af_alg tests: Add another test.
19700         * tests/test-digest.h (test_digest_on_files): Also check a large file
19701         with a skipped header.
19702         * tests/test-md5.c: Include macros.h.
19703         * tests/test-sha1.c: Likewise.
19704         * tests/test-sha256.c: Likewise.
19705         * tests/test-sha512.c: Likewise.
19706         * modules/crypto/md5-tests (Files): Add tests/macros.h.
19707         * modules/crypto/sha1-tests (Files): Likewise.
19708         * modules/crypto/sha256-tests (Files): Likewise.
19709         * modules/crypto/sha512-tests (Files): Likewise.
19711 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19713         maint: clarify comments about sticky EOF
19714         * lib/af_alg.c: Be more direct that we can't
19715         assume stickiness of EOF for portability reasons.
19716         * lib/md5.c: Clarify that this isn't just a glibc issue.
19717         * lib/sha1.c: Likewise.
19718         * lib/sha256.c: Likewise.
19719         * lib/sha512.c: Likewise.
19721 2018-06-24  Bruno Haible  <bruno@clisp.org>
19723         af_alg: Comment and style improvements.
19724         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
19725         (afalg_buffer, afalg_stream): Improve comments.
19727 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19729         af_alg: disable kernel hash functions by default
19730         All the kernel routines were seen to be significantly slower
19731         with these relatively recent components on an i3-2310M system:
19732           kernel-4.10.6-200.fc25.x86_64
19733           openssl-1.0.2m-1.fc25.x86_64
19734         sha1 was nearly twice as slow in the kernel for example.
19735         Further considerations why this should not be the default, at:
19736         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
19738         * m4/af_alg.m4: Require --with-linux-crypto to enable.
19739         * m4/gl-openssl.m4: Tweak accordingly.
19741 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19743         af_alg: avoid hangs when reading from streams
19744         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
19745         and thus avoid doing a fread() when feof() is set.
19746         * lib/md5.c: Ensure feof() is called before fread().
19747         * lib/sha1.c: Likewise.
19748         * lib/sha256.c: Likewise.
19749         * lib/sha512.c: Likewise.
19751 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19753         af_alg: fix error handling when hash not returned
19754         * lib/af_alg.c (afalg_stream): Handle the case where we've
19755         successfully written data to the kernel in the read/write loop,
19756         but the kernel doesn't respond with the hash.
19758 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19760         libc-config: merge from glibc
19761         * lib/cdefs.h (__inline, __restrict):
19762         Copy from current glibc.  This fixes glibc bug 17721,
19763         which Gnulib had already fixed in a different way.
19764         (__nonnull): Lessen the distance from glibc by using the
19765         glibc definition inside an ‘#ifndef __nonnull’.
19766         (__attribute_nonstring__): New macro, copied from
19767         current glibc.
19768         * lib/libc-config.h (__attribute_nonstring__): New undef.
19769         (__restrict): Remove; workaround no longer needed.
19770         Keep the __inline workaround, though, as it uses HAVE___INLINE to
19771         support more compilers than the glibc __inline can.
19773 2018-06-24  Bruno Haible  <bruno@clisp.org>
19775         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
19776         * lib/mbrtowc.c (enc_t): New enum type.
19777         (locale_enc, locale_enc_cached): New functions.
19778         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
19779         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
19780         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
19781         instead.
19782         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
19783         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
19784         * modules/wcwidth (configure.ac): Invoke it.
19786 2018-06-24  Bruno Haible  <bruno@clisp.org>
19788         wchar-single: Fix test failure in wcwidth tests.
19789         * tests/test-wcwidth.c (main): If the wchar-single module is present,
19790         skip the tests in the C locale.
19792 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19794         crypto: mention --without-linux-crypto in --with-openssl --help
19795         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
19796         routines take precedence in --with-openssl help output.
19798 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19800         wchar-single: a new module to enable optimizations in wchar replacements
19801         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
19802         GNULIB_WCHAR_SINGLE is enabled.
19803         * lib/wcwidth.c (wcwidth): Likewise.
19805 2018-06-23  Bruno Haible  <bruno@clisp.org>
19807         libc-config: Fix conflict with FreeBSD include files.
19808         * lib/cdefs.h (__nonnull): Remove definition.
19809         * lib/libc-config.h (__nonnull): Remove undefinition.
19811 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19813         random_r: do not crash if state is unaligned
19814         Problem reported by Bruce Korb in:
19815         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
19816         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
19817         with 'cc -O2 -xmemalign=8s'.
19818         * lib/random_r.c: Include string.h, for memcpy.
19819         (get_int32, set_int32): New functions.
19820         (__srandom_r, __initstate_r, __setstate_r, __random_r):
19821         Use them to avoid assumption that state pointer is aligned.
19822         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
19823         * tests/test-random_r.c (test_failed): New function.
19824         (main): Use it, to test for alignment bugs.
19826         random_r: omit unnecessary include
19827         * lib/random_r.c: Do not include limits.h.
19829         random, random_r: merge from glibc
19830         * lib/random.c, lib/random_r.c:
19831         Include libc-config.h if !_LIBC, not config.h unilaterally.
19832         * lib/random.c:
19833         Do not include stdint.h or time.h; not needed.
19834         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
19835         (unsafe_state): Rename from generator.  All uses changed.
19836         Use C99-style initializers.
19837         (__random, __srandom, __initstate, __setstate): Rename from
19838         non-underscored version, but define it to non-underscored version
19839         on Gnulib.  Add a lock.
19840         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
19841         Likewise.
19842         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
19843         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
19844         (__srandom_r): Use int32_t instead of long int where int32_t will do.
19845         (__random_r): Use uint32 to fix glibc bug 17343.
19846         * modules/random, modules/random_r (Depends-on): Add libc-config.
19847         Depend on stdint only if $HAVE_RANDOM = 0.
19849 2018-06-19  Jim Meyering  <meyering@fb.com>
19851         README-release: also run any check-very-expensive tests
19852         * top/README-release: Adjust instructions so they run the
19853         check-very-expensive tests when there is such a target.
19855 2018-06-18  Bruno Haible  <bruno@clisp.org>
19857         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
19858         * m4/pthread_rwlock_rdlock.m4: Add comment.
19859         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
19860         are reader-preferring in glibc.
19861         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
19862         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
19864 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19866         crypto: use byteswap
19867         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
19868         * lib/sm3.c: Include <byteswap.h>.
19869         (SWAP): Use its macros rather than reinventing the wheel.
19870         * modules/crypto/md4, modules/crypto/md5-buffer:
19871         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
19872         * modules/crypto/sha512-buffer, modules/crypto/sm3:
19873         (Depends-on): Add byteswap.
19875 2018-06-17  Pádraig Brady  <P@draigBrady.com>
19877         gendocs.sh: fix support for legacy --texi2html
19878         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
19879         to the default makeinfo invocation.
19880         Reported by Bruce Korb
19882 2018-06-17  Bruno Haible  <bruno@clisp.org>
19884         gettext po infrastructure: Update from current gettext git.
19885         Reported by Akim Demaille <akim@lrde.epita.fr>.
19886         * build-aux/po/Makefile.in.in: Update from current gettext git.
19887         * build-aux/po/remove-potcdate.sin: Likewise.
19888         * config/srclist.txt: Temporarily disable sync for these files.
19890 2018-06-17  Bruno Haible  <bruno@clisp.org>
19892         getloadavg: Return 0 on Windows without Cygwin.
19893         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
19895 2018-06-17  Paul Smith  <psmith@gnu.org>
19897         getloadavg: Allow building on Windows without Cygwin
19898         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
19899         * m4/getloadavg.m4: Check for unistd.h.
19901 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
19903         Port crypto/af_alg to GCC 4.8.4
19904         Problem reported by Peter Simons in:
19905         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
19906         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
19908 2018-05-27  Colin Watson  <cjwatson@debian.org>
19910         bootstrap: document source fetching in --help
19911         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
19913 2018-04-09  Colin Watson  <cjwatson@debian.org>
19915         bootstrap: allow non-submodule control of gnulib
19916         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
19917         bootstrap.conf when fetching gnulib using "git clone" or via
19918         GNULIB_SRCDIR.
19920 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19922         crypto: omit stream ops Emacs doesn’t need
19923         * lib/md5.c (md5_stream):
19924         * lib/sha1.c (sha1_stream):
19925         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
19926         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19927         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
19928         defined.  Emacs needs this, as it does not use the stream
19929         operations and doesn’t need all the af_alg stuff we’ve recently
19930         added.  Perhaps a similar change is needed to the other crypto
19931         modules, but this patch changes only those needed for Emacs.
19932         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
19933         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
19934         New modules, used by Emacs.
19935         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19936         * modules/crypto/sha512: Rewrite to depend on the new modules.
19938 2018-05-20  Pádraig Brady  <P@draigBrady.com>
19940         fts: avoid a memory leak edge case
19941         * lib/fts.c (fts_open): Set an appropriate fts_level
19942         so that an immediate fts_close() will free the allocation.
19943         * tests/test-fts.c (fts_dealloc): Add a test case which
19944         will trigger under valgrind or address sanitizer.
19945         Fixes https://bugs.gnu.org/31439
19947 2018-05-20  Bruno Haible  <bruno@clisp.org>
19949         wcwidth tests: Fix link error.
19950         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
19951         $(LIBUNISTRING).
19953 2018-05-20  Bruno Haible  <bruno@clisp.org>
19955         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
19956         * modules/regex (Files): Add m4/glibc21.m4.
19958 2018-05-20  Bruno Haible  <bruno@clisp.org>
19960         localcharset: Optimize.
19961         * lib/localcharset.c (alias_table): Comment out no-op mappings for
19962         platforms where these don't matter. This reduces the table size,
19963         which in turn reduces the lookup time.
19965 2018-05-19  Bruno Haible  <bruno@clisp.org>
19967         localcharset: Map the locale encodings found in newer OSes.
19968         * lib/localcharset.c (alias_table): Add mapping for locale encodings
19969         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
19970         IRIX 6.5, Minix 3.3.
19971         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
19973 2018-05-19  Bruno Haible  <bruno@clisp.org>
19975         localcharset: Move mapping tables into the code. Use a binary search.
19976         * lib/localcharset.h: Document the GNU canonical names for character
19977         encodings here.
19978         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
19979         relocatable.h, configmake.h.
19980         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
19981         macros.
19982         (charset_aliases): Remove variable.
19983         (get_charset_aliases): Remove function.
19984         (struct table_entry): New type.
19985         (alias_table, locale_table): New constants.
19986         (locale_charset): Use the alias_table or locale_table to get the
19987         canonicalized encoding name.
19988         * lib/config.charset: Remove file.
19989         * lib/ref-add.sin: Remove file.
19990         * lib/ref-del.sin: Remove file.
19991         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
19992         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
19993         * modules/localcharset (Notice): Remove.
19994         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
19995         glibc21.m4.
19996         (Depends-on): Remove configmake.
19997         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
19998         (Makefile.am): Simplify.
19999         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
20001 2018-05-19  Bruno Haible  <bruno@clisp.org>
20003         localcharset: Add a manual test.
20004         * tests/test-localcharset.c: New file.
20005         * modules/localcharset-tests: New file.
20007 2018-05-19  Bruno Haible  <bruno@clisp.org>
20009         localcharset: Remove support for obsolete platforms.
20010         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
20011         Mac OS X 10.2. Comment out dubious entry for Solaris.
20013 2018-05-19  Jim Meyering  <meyering@fb.com>
20015         gnupload: adjust comment
20016         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
20017         more likely we'll remove the just-added code in a year or two.
20019 2018-05-19  Bruno Haible  <bruno@clisp.org>
20021         gnupload: Fix "gpg-agent is not available in this session" error.
20022         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
20024 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20026         crypto/af_alg: fix --help
20027         * m4/af_alg.m4: Avoid spurious newline in --help output.
20029 2018-05-13  Bruno Haible  <bruno@clisp.org>
20031         nl_langinfo: Fix compilation error on Android.
20032         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
20033         INT_CURR_SYMBOL, etc. only if these items are defined.
20035 2018-05-13  Bruno Haible  <bruno@clisp.org>
20037         truncate: Fix compilation error on Android.
20038         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
20039         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
20040         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
20041         HAVE_TRUNCATE.
20042         * modules/truncate: Likewise.
20043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
20044         not HAVE_TRUNCATE.
20045         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
20046         HAVE_TRUNCATE.
20047         * doc/posix-functions/truncate.texi: Mention the issue.
20049 2018-05-13  Bruno Haible  <bruno@clisp.org>
20051         pthread: Fix compilation error on Android.
20052         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
20053         recursive inclusion of this file.
20055 2018-05-13  Bruno Haible  <bruno@clisp.org>
20057         posix_spawn: Fix compilation error on Android.
20058         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
20059         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
20060         (posix_spawn_file_actions_t): Consider also the case
20061         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
20063 2018-05-13  Bruno Haible  <bruno@clisp.org>
20065         tsearch: Move from K&R C to ANSI C.
20066         * lib/tsearch.c (tfind): Convert definition to ANSI C.
20068 2018-05-13  Bruno Haible  <bruno@clisp.org>
20070         tsearch: Fix compilation error on Android.
20071         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
20072         is 0.
20073         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
20074         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
20075         GNULIB_defined_tsearch is true.
20076         (twalk): Define only if GNULIB_defined_twalk is true.
20077         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
20078         is 0.
20079         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
20080         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
20081         * modules/search (Makefile.am): Substitute HAVE_TWALK.
20083 2018-05-13  Bruno Haible  <bruno@clisp.org>
20085         imaxdiv: Fix compilation error on Android.
20086         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
20087         is not defined.
20088         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
20089         HAVE_DECL_IMAXDIV, is 0.
20090         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
20091         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
20093 2018-05-13  Bruno Haible  <bruno@clisp.org>
20095         Support selective inclusion mechanism of recent mingw.org header files.
20096         Reported by Eli Zaretskii <eliz@gnu.org>.
20097         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
20098         __need_ssize_t, or __need_time_t is defined, just include the system's
20099         <sys/types.h>.
20100         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
20101         include the system's <locale.h>.
20103 2018-05-13  Bruno Haible  <bruno@clisp.org>
20105         Avoid compilation error due to 'mmap' on Android.
20106         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
20107         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
20108         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
20109         Undefine on Android.
20111 2018-05-13  Bruno Haible  <bruno@clisp.org>
20113         Add cross-compilation guesses for Linux systems without glibc.
20114         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
20115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
20116         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20117         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20118         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
20119         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
20120         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20121         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
20122         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
20123         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
20124         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20125         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20126         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
20127         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20128         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20129         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
20130         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20131         * m4/utimens.m4 (gl_UTIMENS): Likewise.
20133 2018-05-13  Bruno Haible  <bruno@clisp.org>
20135         getpagesize: Fix compilation error on Android.
20136         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
20137         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
20138         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
20139         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
20140         HAVE_GETPAGESIZE accordingly.
20141         * modules/getcwd (Files): Add m4/getpagesize.m4.
20143 2018-05-13  Bruno Haible  <bruno@clisp.org>
20145         tcgetsid: Fix compilation error on Android.
20146         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
20147         AC_CHECK_FUNC.
20149 2018-05-13  Bruno Haible  <bruno@clisp.org>
20151         getpass: Fix configure test for Android.
20152         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
20153         AC_CHECK_FUNC.
20155 2018-05-13  Bruno Haible  <bruno@clisp.org>
20157         ffs: Fix compilation error on Android.
20158         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
20160 2018-05-13  Bruno Haible  <bruno@clisp.org>
20162         mkfifo: Fix compilation error on Android.
20163         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
20164         AC_CHECK_FUNC.
20166 2018-05-13  Bruno Haible  <bruno@clisp.org>
20168         c-strtod: Fix configure test for Android.
20169         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
20170         AC_CHECK_FUNC.
20172 2018-05-13  Bruno Haible  <bruno@clisp.org>
20174         random: Fix compilation error on Android.
20175         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
20176         AC_CHECK_FUNC.
20178 2018-05-13  Bruno Haible  <bruno@clisp.org>
20180         grantpt: Fix compilation error on Android.
20181         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
20182         AC_CHECK_FUNC.
20184 2018-05-13  Bruno Haible  <bruno@clisp.org>
20186         stdioext: Fix compilation errors with newer Android headers.
20187         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
20188         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
20189         fallbacks for Android.
20190         * lib/fpending.c: Update comments.
20191         * lib/fpurge.c: Likewise.
20192         * lib/freadable.h: Likewise.
20193         * lib/freadable.c: Likewise.
20194         * lib/freadahead.c: Likewise.
20195         * lib/freading.h: Likewise.
20196         * lib/freadptr.c: Likewise.
20197         * lib/fseterr.c: Likewise.
20198         * lib/fwritable.h: Likewise.
20199         * lib/fwritable.c: Likewise.
20200         * lib/fwriting.h: Likewise.
20201         * lib/fwriting.c: Likewise.
20203 2018-05-13  Bruno Haible  <bruno@clisp.org>
20205         doc: Add info about Android versions 2.0 to 8.1.
20206         * doc/**/*.texi: Add info about functions in all released versions of
20207         Bionic.
20209 2018-05-12  Bruno Haible  <bruno@clisp.org>
20211         fseeko: On mingw, don't use the hidden function _fseeki64.
20212         Reported by Eli Zaretskii <eliz@gnu.org>.
20213         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
20214         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
20216 2018-05-12  Bruno Haible  <bruno@clisp.org>
20218         glob: Choose 'dirent_type' in a way that works better on mingw.
20219         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
20220         * lib/glob.c (dirent_type): Define as uint_fast32_t.
20222 2018-05-12  Bruno Haible  <bruno@clisp.org>
20224         execute, spawn-pipe: Avoid warning about redefining 'close'.
20225         Reported by Eli Zaretskii <eliz@gnu.org>.
20226         * lib/execute.c: Undefine 'close' before redefining it.
20227         * lib/spawn-pipe.c: Likewise.
20229 2018-05-12  Bruno Haible  <bruno@clisp.org>
20231         nanosleep: Avoid test failure on mingw when it has nanosleep.
20232         Reported by Eli Zaretskii <eliz@gnu.org>.
20233         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
20234         If it does not exist, use a simpler test program that does not call
20235         alarm().
20237 2018-05-10  Bruno Haible  <bruno@clisp.org>
20239         lock, cond, thread, tls: Use a different symbol as libpthread witness.
20240         Reported by Devin Hussey <husseydevin@gmail.com>.
20241         Based on a patch by Paul Eggert.
20242         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
20243         as witness of libpthread.
20244         * lib/glthread/cond.h (pthread_in_use): Likewise.
20245         * lib/glthread/thread.h (pthread_in_use): Likewise.
20246         * lib/glthread/tls.h (pthread_in_use): Likewise.
20248 2018-05-10  Bruno Haible  <bruno@clisp.org>
20250         cond tests: Fix compilation error on Solaris.
20251         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
20252         macro.
20254 2018-05-10  Bruno Haible  <bruno@clisp.org>
20256         doc: Add partial info about Android 4.3.
20257         * doc/*-functions/*.texi: Add info about functions that were added
20258         to Bionic between Android 4.3 and Android 9.0.
20260 2018-05-10  Bruno Haible  <bruno@clisp.org>
20262         doc: Add info about Android 9.0.
20263         * doc/**/*.texi: Add info about functions and headers in Bionic from
20264         Android 9.0.
20266 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
20268         af_alg: fix my typo in afalg_buffer
20269         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
20270         (afalg_stream): Simplify and avoid the need for a runtime test
20271         at the end.
20273         af_alg: recover better from crypto failures
20274         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
20275         input stream is seekable, by repositioning the stream back to
20276         where it was, possibly by just calling sendfile with an offset
20277         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
20278         cases, which lets our callers try again with user-mode code.
20279         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
20280         instead of on fflush and lseek.
20282         af_alg: distiguish I/O errors better
20283         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
20284         not -EIO, if it’s OK for the caller to try again with user-mode code.
20285         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
20286         some other error number) if fflush fails, as the caller should not
20287         try again that case.
20289         af_alg: avoid gotos
20290         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
20291         gotos, as they were a source of unreliability and made the code a
20292         bit harder to follow.
20294         af_alg: don’t leak file descriptors into children
20295         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
20296         This code should be compiled only on recent GNU/Linux platforms
20297         so we shouldn’t have to also depend on the accept4 module.
20299         af_alg: coalesce socket creation
20300         * lib/af_alg.c (alg_socket): New function.
20301         (afalg_buffer, afalg_stream): Use it.  This avoids some
20302         code duplication and gotos.
20304         af_alg: fix file descriptor leak
20305         * lib/af_alg.c (afalg_stream): Close leak.
20307         af_alg: Pacify --enable-gcc-warnings on GCC 8
20308         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
20309         and checking to pacify gcc -Wjump-misses-init on GCC 8.
20311 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20313         af_alg: Pacify --enable-gcc-warnings
20314         Problem reported by Assaf Gordon in:
20315         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
20316         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
20317         gcc -Wjump-misses-init.
20318         * lib/sha512.c (shaxxx_stream): Now static.
20320 2018-05-06  Bruno Haible  <bruno@clisp.org>
20322         af_alg: Add ability to use Linux kernel crypto API on data in memory.
20323         * lib/af_alg.h (afalg_buffer): New declaration.
20324         * lib/af_alg.c (afalg_buffer): New function.
20326 2018-05-06  Bruno Haible  <bruno@clisp.org>
20328         af_alg: Avoid warnings.
20329         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
20330         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
20332 2018-05-06  Bruno Haible  <bruno@clisp.org>
20334         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
20335         * tests/bench-digest.h: New file.
20336         * tests/bench-md5.c: New file.
20337         * tests/bench-sha1.c: New file.
20338         * tests/bench-sha224.c: New file.
20339         * tests/bench-sha256.c: New file.
20340         * tests/bench-sha384.c: New file.
20341         * tests/bench-sha512.c: New file.
20342         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
20343         tests/bench-digest.h.
20344         (Depends-on): Add getrusage, gettimeofday.
20345         (Makefile.am): Add variables to build bench-md5.
20346         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
20347         tests/bench-digest.h.
20348         (Depends-on): Add getrusage, gettimeofday.
20349         (Makefile.am): Add variables to build bench-sha1.
20350         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
20351         tests/bench-sha256.c, tests/bench-digest.h.
20352         (Depends-on): Add getrusage, gettimeofday.
20353         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
20354         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
20355         tests/bench-sha512.c, tests/bench-digest.h.
20356         (Depends-on): Add getrusage, gettimeofday.
20357         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
20359 2018-05-06  Bruno Haible  <bruno@clisp.org>
20361         af_alg: Fix a resource leak.
20362         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
20363         New local variable 'result'.
20365 2018-05-06  Bruno Haible  <bruno@clisp.org>
20367         af_alg: Fix bug with streams that are not at position 0.
20368         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
20369         assume that the stream is positioned at position 0.
20370         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
20371         of the stream.
20372         * lib/md5.h (md5_stream): Likewise.
20373         * lib/sha1.h (sha1_stream): Likewise.
20374         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
20375         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
20376         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
20378         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
20379         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
20380         stream that is not positioned at the beginning.
20382 2018-05-06  Bruno Haible  <bruno@clisp.org>
20384         af_alg: Add configure option to enable/disable use of Linux crypto API.
20385         Suggested by Assaf Gordon <assafgordon@gmail.com>.
20386         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
20387         USE_LINUX_CRYPTO_API.
20388         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
20389         * lib/af_alg.c: Likewise.
20391 2018-05-06  Bruno Haible  <bruno@clisp.org>
20393         Followup to 'af_alg: New module.'.
20394         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
20395         * modules/crypto/sha1 (Depends-on): Likewise.
20396         * modules/crypto/sha256 (Depends-on): Likewise.
20397         * modules/crypto/sha512 (Depends-on): Likewise.
20399 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20401         crypto/{md5,sha1,sha256,sha512}: simplify
20402         * lib/md5.c (md5_stream):
20403         * lib/sha1.c (sha1_stream):
20404         * lib/sha256.c (shaxxx_stream):
20405         Simplify, partly by assuming C99.
20406         * lib/sha256.c (shaxxx_stream):
20407         New function, which implements both sha256 and sha224.
20408         Simplify, partly by assuming C99.
20409         (sha256_stream, sha224_stream):
20410         Use it to avoid code duplication, removing a FIXME.
20411         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
20412         Likewise.
20414         af_alg: Improve comments.
20415         * lib/af_alg.h: Use imperatives and tighten up wording.
20417 2018-05-05  Bruno Haible  <bruno@clisp.org>
20419         af_alg: Improve comments.
20420         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
20422 2018-05-05  Bruno Haible  <bruno@clisp.org>
20424         af_alg: New module.
20425         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
20426         * lib/af_alg.c: Include "af_alg.h" before the other header files.
20427         * lib/md5.c: Include "af_alg.h" unconditionally.
20428         (md5_stream): Invoke afalg_stream unconditionally.
20429         * lib/sha1.c: Include "af_alg.h" unconditionally.
20430         (sha1_stream): Invoke afalg_stream unconditionally.
20431         * lib/sha256.c: Include "af_alg.h" unconditionally.
20432         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
20433         * lib/sha512.c: Include "af_alg.h" unconditionally.
20434         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
20435         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
20436         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
20437         * modules/crypto/af_alg: New file.
20438         * modules/crypto/md5 (Files): Remove files that are now in the
20439         'crypto/af_alg' module.
20440         (Depends-on): Add crypto/af_alg.
20441         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20442         (Makefile.am): Don't mention af_alg.c here.
20443         * modules/crypto/sha1 (Files): Remove files that are now in the
20444         'crypto/af_alg' module.
20445         (Depends-on): Add crypto/af_alg.
20446         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20447         (Makefile.am): Don't mention af_alg.c here.
20448         * modules/crypto/sha256 (Files): Remove files that are now in the
20449         'crypto/af_alg' module.
20450         (Depends-on): Add crypto/af_alg.
20451         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20452         (Makefile.am): Don't mention af_alg.c here.
20453         * modules/crypto/sha512 (Files): Remove files that are now in the
20454         'crypto/af_alg' module.
20455         (Depends-on): Add crypto/af_alg.
20456         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
20457         (Makefile.am): Don't mention af_alg.c here.
20459 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20461         crypto tests: pacify GCC
20462         * tests/test-digest.h (test_digest_on_files):
20463         Don’t assume digest size fits in int (!).
20465         af_alg: minor style improvements
20466         * lib/af_alg.c (afalg_stream): Prefer C99 style
20467         decl-after-statement, since we’re already assuming C99.  Clarify
20468         by strengthening the bind test and omit unnecessary assignment.
20470 2018-05-05  Bruno Haible  <bruno@clisp.org>
20472         af_alg: Fix bug on empty files.
20473         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
20474         stream is empty.
20476 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20478         sys-limits.h: new file for crypto and safe I/O
20479         * lib/af_alg.c: Include sys-limits.h.
20480         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
20481         (afalg_stream): Also reject negative sizes for sendfile; they
20482         should not happen and the code is a bit cleaner and faster this way.
20483         * lib/safe-read.c: Include sys-limits.h.
20484         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
20485         * lib/sys-limits.h: New file, with values and commentary derived
20486         from the old safe-read.c and from GNU Emacs sysdep.c.
20487         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
20488         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
20489         Add lib/sys-limits.h to Files section.
20491 2018-05-05  Bruno Haible  <bruno@clisp.org>
20493         af_alg: Improve function signature.
20494         * lib/af_alg.h (afalg_stream): Swap second and third argument.
20495         * lib/af_alg.c (afalg_stream): Likewise.
20496         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
20498 2018-05-05  Bruno Haible  <bruno@clisp.org>
20500         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
20501         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
20502         * modules/crypto/sha1 (Depends-on): Likewise.
20503         * modules/crypto/sha256 (Depends-on): Likewise.
20504         * modules/crypto/sha512 (Depends-on): Likewise.
20506 2018-05-05  Bruno Haible  <bruno@clisp.org>
20508         crypto/{md5,sha1,sha256,sha512}: Fix module description.
20509         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
20510         * modules/crypto/sha1 (Depends-on): Likewise.
20511         * modules/crypto/sha256 (Depends-on): Likewise.
20512         * modules/crypto/sha512 (Depends-on): Likewise.
20514 2018-05-05  Bruno Haible  <bruno@clisp.org>
20516         af_alg: Add documentation.
20517         * lib/af_alg.h: Add comments.
20519 2018-05-05  Bruno Haible  <bruno@clisp.org>
20521         sha512: Add tests.
20522         * tests/test-sha512.c: New file.
20523         * modules/crypto/sha512-tests: New file.
20525 2018-05-05  Bruno Haible  <bruno@clisp.org>
20527         sha256: Add tests.
20528         * tests/test-sha256.c: New file.
20529         * modules/crypto/sha256-tests: New file.
20531 2018-05-05  Bruno Haible  <bruno@clisp.org>
20533         sha1 tests: Add test for sha1_stream.
20534         * tests/test-sha1.c: Include test-digest.h.
20535         (main): Invoke test_digest_on_files on 'sha1_stream'.
20536         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
20538 2018-05-05  Bruno Haible  <bruno@clisp.org>
20540         md5 tests: Add test for md5_stream.
20541         * tests/test-digest.h: New file.
20542         * tests/test-md5.c: Include test-digest.h.
20543         (main): Invoke test_digest_on_files on 'md5_stream'.
20544         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
20546 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20548         md5sum: Use AF_ALG when available.
20549         * lib/md5.c: Include af_alg.h.
20550         (md5_stream): Use afalg_stream when available.
20551         * modules/crypto/md5 (Files): Add the af_alg files.
20552         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20553         (Makefile.am): Add af_alg.c.
20555 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20557         sha512sum: Use AF_ALG when available.
20558         * lib/sha512.c: Include af_alg.h.
20559         (sha512_stream, sha384_stream): Use afalg_stream when available.
20560         * modules/crypto/sha512 (Files): Add the af_alg files.
20561         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20562         (Makefile.am): Add af_alg.c.
20564 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20566         sha256sum: Use AF_ALG when available.
20567         * lib/sha256.c: Include af_alg.h.
20568         (sha256_stream, sha224_stream): Use afalg_stream when available.
20569         * modules/crypto/sha256 (Files): Add the af_alg files.
20570         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20571         (Makefile.am): Add af_alg.c.
20573 2018-04-28  Matteo Croce  <mcroce@redhat.com>
20575         sha1sum: Use AF_ALG when available.
20576         * lib/af_alg.h: New file.
20577         * lib/af_alg.c: New file.
20578         * lib/sha1.c: Include af_alg.h.
20579         (sha1_stream): Use afalg_stream when available.
20580         * m4/linux-if-alg.m4: New file.
20581         * modules/crypto/sha1 (Files): Add the new files.
20582         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
20583         (Makefile.am): Add af_alg.c.
20585 2018-05-05  Bruno Haible  <bruno@clisp.org>
20587         all: Replace more http URLs by https URLs.
20588         * lib/localename.c: Use https: URL.
20589         * lib/timespec.h: Likewise.
20591 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
20593         maint: port more modules to GCC 8
20594         * lib/dirname.h (base_name):
20595         * lib/exclude.h (new_exclude):
20596         * lib/xstrndup.h (xstrndup):
20597         Add malloc attribute.
20598         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
20599         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
20600         This pacifies GCC 8.
20601         * m4/gnulib-common.m4 (gl_COMMON_BODY):
20602         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
20604 2018-05-03  Bruno Haible  <bruno@clisp.org>
20606         Simplify code. Drop support for Borland C++ on Windows.
20607         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
20608         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
20609         'defined _WIN32'.
20610         * lib/canonicalize-lgpl.c: Likewise.
20611         * lib/classpath.c: Likewise.
20612         * lib/clean-temp.c: Likewise.
20613         * lib/csharpexec.c: Likewise.
20614         * lib/ctime.c: Likewise.
20615         * lib/dosname.h: Likewise.
20616         * lib/dup2.c: Likewise.
20617         * lib/errno.in.h: Likewise.
20618         * lib/error.c: Likewise.
20619         * lib/euidaccess.c: Likewise.
20620         * lib/execute.c: Likewise.
20621         * lib/fcntl.in.h: Likewise.
20622         * lib/fcntl.c: Likewise.
20623         * lib/filename.h: Likewise.
20624         * lib/findprog.c: Likewise.
20625         * lib/flock.c: Likewise.
20626         * lib/fopen.c: Likewise.
20627         * lib/freopen.c: Likewise.
20628         * lib/fstat.c: Likewise.
20629         * lib/fsync.c: Likewise.
20630         * lib/gc-gnulib.c: Likewise.
20631         * lib/get-rusage-data.c: Likewise.
20632         * lib/getaddrinfo.c: Likewise.
20633         * lib/getdelim.c: Likewise.
20634         * lib/getdtablesize.c: Likewise.
20635         * lib/gethostname.c: Likewise.
20636         * lib/getlogin.c: Likewise.
20637         * lib/getlogin_r.c: Likewise.
20638         * lib/getopt.c: Likewise.
20639         * lib/getpagesize.c: Likewise.
20640         * lib/getpass.c: Likewise.
20641         * lib/getrusage.c: Likewise.
20642         * lib/gettimeofday.c: Likewise.
20643         * lib/glob.c: Likewise.
20644         * lib/inttypes.in.h: Likewise.
20645         * lib/isapipe.c: Likewise.
20646         * lib/javaexec.c: Likewise.
20647         * lib/link.c: Likewise.
20648         * lib/localcharset.c: Likewise.
20649         * lib/localename.h: Likewise.
20650         * lib/localename.c: Likewise.
20651         * lib/localtime.c: Likewise.
20652         * lib/lseek.c: Likewise.
20653         * lib/mbsinit.c: Likewise.
20654         * lib/mkdir.c: Likewise.
20655         * lib/msvc-nothrow.h: Likewise.
20656         * lib/nanosleep.c: Likewise.
20657         * lib/nl_langinfo.c: Likewise.
20658         * lib/nonblocking.c: Likewise.
20659         * lib/nproc.c: Likewise.
20660         * lib/open.c: Likewise.
20661         * lib/openpty.c: Likewise.
20662         * lib/pathmax.h: Likewise.
20663         * lib/pipe-filter-aux.c: Likewise.
20664         * lib/pipe-filter-gi.c: Likewise.
20665         * lib/pipe-filter-ii.c: Likewise.
20666         * lib/pipe.c: Likewise.
20667         * lib/pipe2.c: Likewise.
20668         * lib/poll.c: Likewise.
20669         * lib/popen.c: Likewise.
20670         * lib/posix_openpt.c: Likewise.
20671         * lib/printf-parse.c: Likewise.
20672         * lib/progreloc.c: Likewise.
20673         * lib/putenv.c: Likewise.
20674         * lib/read.c: Likewise.
20675         * lib/relocatable.c: Likewise.
20676         * lib/rename.c: Likewise.
20677         * lib/same-inode.h: Likewise.
20678         * lib/secure_getenv.c: Likewise.
20679         * lib/select.c: Likewise.
20680         * lib/sethostname.c: Likewise.
20681         * lib/setlocale.c: Likewise.
20682         * lib/sigaction.c: Likewise.
20683         * lib/sigprocmask.c: Likewise.
20684         * lib/sleep.c: Likewise.
20685         * lib/spawn-pipe.h: Likewise.
20686         * lib/spawn-pipe.c: Likewise.
20687         * lib/spawni.c: Likewise.
20688         * lib/stat-time.h: Likewise.
20689         * lib/stat-w32.c: Likewise.
20690         * lib/stat.c: Likewise.
20691         * lib/stdio.in.h: Likewise.
20692         * lib/stdio-impl.h: Likewise.
20693         * lib/stdio-read.c: Likewise.
20694         * lib/stdio-write.c: Likewise.
20695         * lib/stdlib.in.h: Likewise.
20696         * lib/strerror_r.c: Likewise.
20697         * lib/strftime-fixes.c: Likewise.
20698         * lib/sys_stat.in.h: Likewise.
20699         * lib/sys_types.in.h: Likewise.
20700         * lib/sys_wait.in.h : Likewise.
20701         * lib/system-quote.h: Likewise.
20702         * lib/system-quote.c: Likewise.
20703         * lib/tmpdir.c: Likewise.
20704         * lib/tzset.c: Likewise.
20705         * lib/uname.c: Likewise.
20706         * lib/unistd.in.h: Likewise.
20707         * lib/utime.in.h: Likewise.
20708         * lib/utime.c: Likewise.
20709         * lib/utimecmp.c: Likewise.
20710         * lib/utimens.c: Likewise.
20711         * lib/vasnprintf.c: Likewise.
20712         * lib/vma-iter.h: Likewise.
20713         * lib/vma-iter.c: Likewise.
20714         * lib/wait-process.c: Likewise.
20715         * lib/wcsftime.c: Likewise.
20716         * lib/wctype.in.h: Likewise.
20717         * lib/write.c: Likewise.
20718         * tests/nap.h: Likewise.
20719         * tests/test-cloexec.c: Likewise.
20720         * tests/test-dup-safer.c: Likewise.
20721         * tests/test-dup2.c: Likewise.
20722         * tests/test-dup3.c: Likewise.
20723         * tests/test-fcntl.c: Likewise.
20724         * tests/test-get-rusage-data.c: Likewise.
20725         * tests/test-getaddrinfo.c: Likewise.
20726         * tests/test-getlogin.h: Likewise.
20727         * tests/test-isatty.c: Likewise.
20728         * tests/test-localename.c: Likewise.
20729         * tests/test-mbrtowc-w32.c: Likewise.
20730         * tests/test-nonblocking.c: Likewise.
20731         * tests/test-nonblocking-pipe-main.c: Likewise.
20732         * tests/test-nonblocking-socket-main.c: Likewise.
20733         * tests/test-nonblocking-socket.h: Likewise.
20734         * tests/test-pipe.c: Likewise.
20735         * tests/test-pipe2.c: Likewise.
20736         * tests/test-poll.c: Likewise.
20737         * tests/test-pthread_sigmask1.c: Likewise.
20738         * tests/test-select.h: Likewise.
20739         * tests/test-sethostname2.c: Likewise.
20740         * tests/test-sigprocmask.c: Likewise.
20741         * tests/test-spawn-pipe-child.c: Likewise.
20742         * tests/test-stat-time.c: Likewise.
20743         * tests/test-system-quote-main.c: Likewise.
20744         * tests/test-utimens-common.h: Likewise.
20745         * tests/test-wcrtomb-w32.c: Likewise.
20746         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
20747         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20748         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
20749         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
20750         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
20751         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20752         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20753         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20754         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20755         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20756         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
20757         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
20758         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
20759         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20760         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
20761         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20763 2018-05-02  Bruno Haible  <bruno@clisp.org>
20765         localename: Fix test failures on mingw.
20766         * lib/localename.c (gl_locale_name_thread): Remove code specific to
20767         native Windows.
20768         (gl_locale_name_posix): Move code specific to native Windows here.
20769         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
20770         Accept result without charset suffix, as it appears on mingw.
20772 2018-04-28  Paul Smith  <psmith@gnu.org>
20774         bootstrap: Avoid gnulib operations if not needed
20775         * build-aux/bootstrap: Remove unused variable gnulib_mk.
20776         Set $gnulib_extra_files early so it can be overridden in .conf.
20777         Remove redundant --import flag from $gnulib_tool_options.
20778         Set $use_gnulib to false if no gnulib modules or files are needed.
20779         If $use_gnulib is false, don't do anything related to gnulib.
20780         A lot of this is just whitespace (indentation) changes.
20782 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
20784         manywarnings: port to GCC 8.0
20785         * build-aux/gcc-warning.spec: Add -Wcatch-value,
20786         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
20787         fact that the GCC help message now mentions operands for
20788         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
20789         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
20790         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
20791         and -Wunused-const-variable.
20792         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
20793         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
20794         -Wmissing-attributes, -Wmultistatement-macros,
20795         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
20796         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
20798 2018-04-24  Bruno Haible  <bruno@clisp.org>
20800         sys_socket: Make SO_REUSEPORT available across platforms.
20801         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20802         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
20803         * doc/posix-headers/sys_socket.texi: Mention the issue.
20804         * tests/test-poll.c (SO_REUSEPORT): Remove.
20805         * tests/test-select.h: Include <sys/socket.h>.
20806         (SO_REUSEPORT): Remove.
20807         * modules/select-tests (Depends-on): Add 'sys_socket'.
20809 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
20811         localcharset: short-circuit the search for an alias on a Mac
20812         * lib/localcharset.c (get_charset_aliases): Add a tautological
20813         UTF-8 entry to speed up the search for this case.
20814         Most machines default to a UTF-8 locale nowadays, so begin the
20815         list of aliases with a dummy UTF-8 entry so it will be found
20816         immediately and a time-consuming search through the rest of
20817         the list is avoided.
20819 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
20821         fts: add comment
20822         * lib/fts.c (fts_build): Explain why ==, not >.
20823         See remark by Bernhard Voelker in:
20824         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
20826         fts: fix bug in find across filesystems
20827         This fixes a bug I introduced last summer.
20828         Problem reported by Kamil Dudka in:
20829         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
20830         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
20831         (leaf_optimization):
20832         New arg for file descriptor.  All callers changed.
20833         (fts_build): Check for whether inodes should be sorted
20834         before closing the directory.
20836 2018-04-07  Bruno Haible  <bruno@clisp.org>
20838         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
20839         Reported by Genki Sky <sky@genki.is>.
20840         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
20841         version 0.9.10 or newer.
20842         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
20843         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
20844         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
20845         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
20846         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
20848 2018-04-07  Bruno Haible  <bruno@clisp.org>
20850         execute: Update comment.
20851         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
20853 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20855         fts: treat CIFS like NFS
20856         Problem reported by Kamil Dudka in:
20857         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
20858         * lib/fts.c (S_MAGIC_CIFS): New macro.
20859         (dirent_inode_sort_may_be_useful, leaf_optimization):
20860         Treat CIFS like NFS.
20862 2018-03-28  Bruno Haible  <bruno@clisp.org>
20864         c-stack: Fix possible build failure on some platforms.
20865         * lib/c-stack.c (die): Define whenever this function is referenced.
20867 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
20869         time_rz: fix workaround for Mac OS X 10.6 infloop
20870         Problems reported by Charles A. Roelli (Bug#27736#117).
20871         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
20872         Also, discard output, which clutters the 'configure' log.
20874 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
20876         havelib: port to Solaris 10 /bin/sh
20877         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
20878         instead of '! test EXPR'.
20880 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
20882         time_rz: work around Mac OS X 10.6 infloop
20883         * doc/posix-functions/localtime.texi:
20884         * doc/posix-functions/localtime_r.texi: Mention the bug.
20885         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
20886         better to fix localtime and localtime_r instead, but that would be
20887         more work and is not needed to fix the Emacs problem.
20888         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
20890 2018-03-24  Jim Meyering  <meyering@fb.com>
20892         test-version-etc.sh: don't use diff directly: use init.sh's compare
20893         We'd rather not sacrifice readable "diff -u" output even for
20894         "diff -c" output (not supported by busybox) or for even less
20895         readable ed-style "diff" output.  So use init.sh's compare function
20896         * tests/test-version-etc.sh: Source init.sh and add "." to path.
20897         Remove "./" from invocation of test-version-etc, so we use path.
20898         And s/diff/compare/.
20899         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
20900         to get init.sh.
20901         Prompted by Eric Blake's comments in
20902         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
20904 2018-03-24  Bruno Haible  <bruno@clisp.org>
20906         javacomp-script, javacomp: Add support for Java 10.
20907         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
20908         target-version 10.
20909         * lib/javaversion.h: Update comments.
20910         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20911         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20912         TARGET_VERSION_BOUND, target_version_index,
20913         corresponding_classfile_version): Accept source_version 10 and
20914         target_version 10.
20915         * lib/javacomp.h: Update comments accordingly.
20917 2018-03-24  Bruno Haible  <bruno@clisp.org>
20919         javacomp-script, javacomp: Update comments.
20920         * m4/javacomp.m4: Update comments regarding gcj.
20921         * lib/javacomp.h: Likewise.
20923 2018-03-24  Bruno Haible  <bruno@clisp.org>
20925         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
20926         * lib/javaversion.h: Update comments.
20927         * lib/javacomp.h: Likewise.
20928         * lib/javacomp.c (default_target_version, source_version_index,
20929         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
20930         "1.9".
20931         (TARGET_VERSION_BOUND): Bump to 9.
20932         (target_version_index, corresponding_classfile_version): Recognize "9"
20933         instead of "1.9".
20934         (get_source_version_for_javac): New function.
20935         (is_envjavac_nongcj_usable, is_javac_usable): Add
20936         source_version_for_javac argument.
20937         (compile_java_class): Determine and pass source_version_for_javac.
20938         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
20939         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
20940         appropriate.
20942 2018-03-23  Jim Meyering  <meyering@fb.com>
20944         test-version-etc.sh: port to diff without -c
20945         * tests/test-version-etc.sh: Don't use diff's -c option.
20946         This caused spurious test failure on Alpine Linux, which
20947         uses busybox's diff. Reported by Assaf Gordon in
20948         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
20950 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
20952         c-stack: port to recent GCC build
20953         Problem reported by The Fireplace (Bug#30913).
20954         * lib/c-stack.c (die): Define only if used.
20956 2018-03-20  Bruno Haible  <bruno@clisp.org>
20958         euidaccess: Port to native Windows.
20959         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
20960         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
20962 2018-03-19  Bruno Haible  <bruno@clisp.org>
20964         javacomp: Add support for Java 7, 8, 9.
20965         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20966         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20967         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
20968         and target_version 1,7, 1.8, 1.9.
20969         * lib/javacomp.h: Update comments accordingly.
20971 2018-03-19  Bruno Haible  <bruno@clisp.org>
20973         javacomp-script: Add support for Java 9.
20974         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
20975         target-version 1.9.
20977 2018-03-16  Bruno Haible  <bruno@clisp.org>
20979         glob: Don't compile replacements on recent glibc systems.
20980         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
20981         REPLACE_GLOB is 0, include the system's <glob.h> and use
20982         _GL_CXXALIAS_SYS.
20983         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
20984         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
20985         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
20986         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
20987         Remove snippet/warn-on-use.
20988         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
20989         (Makefile.am): Create glob.h always. Update list of substitutions in
20990         glob.h. Don't depend on $(WARN_ON_USE_H).
20992 2018-03-16  Bruno Haible  <bruno@clisp.org>
20994         glob: Fix link error on native Windows.
20995         * modules/glob (Depends-on): Add 'lstat'.
20997 2018-03-15  Bruno Haible  <bruno@clisp.org>
20999         glob: Fix compilation error in C++ mode.
21000         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
21002 2018-03-15  Bruno Haible  <bruno@clisp.org>
21004         host-cpu-c-abi: Support for RISC-V CPU.
21005         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
21006         riscv32 and riscv64 ABIs.
21007         References:
21008         https://github.com/riscv/riscv-toolchain-conventions
21009         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
21010         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
21012 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
21014         fflush: be more paranoid about libio.h change
21015         Suggested by Eli Zaretskii in:
21016         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
21017         * lib/fbufmode.c (fbufmode):
21018         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
21019         (disable_seek_optimization, rpl_fflush):
21020         * lib/fpending.c (__fpending):
21021         * lib/fpurge.c (fpurge):
21022         * lib/freadable.c (freadable):
21023         * lib/freadahead.c (freadahead):
21024         * lib/freading.c (freading):
21025         * lib/freadptr.c (freadptr):
21026         * lib/freadseek.c (freadptrinc):
21027         * lib/fseeko.c (fseeko):
21028         * lib/fseterr.c (fseterr):
21029         * lib/fwritable.c (fwritable):
21030         * lib/fwriting.c (fwriting):
21031         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
21033 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
21035         maint: write-file-hooks -> before-save-hook
21036         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
21037         it's time to use the recommended replacement.
21038         Problem reported by Glenn Morris in:
21039         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
21040         * build-aux/announce-gen, build-aux/bootstrap:
21041         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
21042         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
21043         * build-aux/gnu-web-doc-update, build-aux/gnupload:
21044         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
21045         * build-aux/update-copyright, build-aux/useless-if-before-free:
21046         * build-aux/vc-list-files:
21047         Update hook usage for files where Gnulib is the canonical source.
21049 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
21051         binary-io: pacify gcc -Wunused-parameter
21052         Problem reported by Reuben Thomas in:
21053         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
21054         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
21055         Use _GL_UNUSED where appropriate.
21057         fflush: adjust to glibc 2.28 libio.h removal
21058         Problem reported by Daniel P. Berrangé in:
21059         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
21060         * lib/fbufmode.c (fbufmode):
21061         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
21062         (disable_seek_optimization, rpl_fflush):
21063         * lib/fpending.c (__fpending):
21064         * lib/fpurge.c (fpurge):
21065         * lib/freadable.c (freadable):
21066         * lib/freadahead.c (freadahead):
21067         * lib/freading.c (freading):
21068         * lib/freadptr.c (freadptr):
21069         * lib/freadseek.c (freadptrinc):
21070         * lib/fseeko.c (fseeko):
21071         * lib/fseterr.c (fseterr):
21072         * lib/fwritable.c (fwritable):
21073         * lib/fwriting.c (fwriting):
21074         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
21075         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
21076         Define if not already defined.
21078 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
21080         environ: fix link error on 32-bit Cygwin
21081         Problem reported for GNU Emacs by Ken Brown in:
21082         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
21083         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
21085 2018-02-24  Bruno Haible  <bruno@clisp.org>
21087         mbrtowc tests: Fix regression on glibc.
21088         Reported by Bernhard Voelker.
21089         * tests/test-mbrtowc.c (main): Fix expected value of wc.
21091 2018-02-24  Bruno Haible  <bruno@clisp.org>
21093         striconveha, uniconv/*: Avoid test failures on musl libc.
21094         * tests/iconvsupport.c: New file.
21095         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
21096         does not support the ISO-2022-JP-2 encoding.
21097         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
21098         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21099         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21100         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21101         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21102         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21103         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
21104         (Makefile.am): Link test-striconveha with iconvsupport.o.
21105         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
21106         tests/iconvsupport.c.
21107         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
21108         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
21109         tests/iconvsupport.c.
21110         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
21111         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
21112         tests/iconvsupport.c.
21113         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
21114         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
21115         tests/iconvsupport.c.
21116         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
21117         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
21118         tests/iconvsupport.c.
21119         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
21120         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
21121         tests/iconvsupport.c.
21122         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
21124 2018-02-24  Bruno Haible  <bruno@clisp.org>
21126         localename: Add support for musl libc.
21127         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
21128         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
21129         on Linux platforms which define NL_LOCALE_NAME.
21131 2018-02-24  Bruno Haible  <bruno@clisp.org>
21133         mbrtowc tests: Don't make assumptions about the charset the C locale.
21134         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
21135         particular mapping in the C locale.
21137 2018-02-24  Bruno Haible  <bruno@clisp.org>
21139         ptsname_r: Don't expect that this function sets errno.
21140         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
21141         from ptsname_r().
21142         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
21144 2018-02-23  Bruno Haible  <bruno@clisp.org>
21146         xmalloca: pacify gcc -Wbad-function-cast
21147         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
21149 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
21151         nl_langinfo: pacify gcc -Wunused-function
21152         * lib/nl_langinfo.c (ctype_codeset): Do not define if
21153         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
21154         this case.  Without this change, I got a diagnostic when building
21155         coreutils on Fedora 27 with gcc 7.3.1 20180130.
21157         same: pacify gcc -Wunused-variable
21158         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
21159         Omit unused variable.
21161         malloca: pacify gcc -Wbad-function-cast
21162         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
21163         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
21164         To pacify GCC, I had to cast alloca’s result to some type other
21165         than void * before casting that to uintptr_t.
21167 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
21169         utimecmp: new function utimecmpat
21170         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
21171         Do not include utimens.h.
21172         (utimecmpat): New function, generalizing utimecmp.
21173         (utimecmp): Now a thin layer around utimecmpat.
21174         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
21175         utimensat instead of on lstat and utimens.
21177         same: new function same_nameat
21178         * lib/same.c: Include fcntl.h.
21179         * lib/same.c (same_nameat): New function, generalizing same_name.
21180         (same_name): Now a thin layer around same_nameat.
21181         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
21182         * modules/same (Depends-on): Depend on fstatat, openat.
21184 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
21186         warnings: Add support for Objective C.
21187         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
21188         macro.
21190 2018-02-17  Bruno Haible  <bruno@clisp.org>
21192         lock: Fix test-once1 crash on FreeBSD11.
21193         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
21194         'pthread_create', not 'pthread_cancel'.
21196 2018-02-17  Bruno Haible  <bruno@clisp.org>
21198         lock: Add test of gl_once.
21199         * tests/test-once.c: New file.
21200         * modules/lock-tests (Files): Add it.
21201         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
21203 2018-02-17  Bruno Haible  <bruno@clisp.org>
21205         thread: Fix compilation error on IRIX.
21206         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
21207         needed; include it outside the C++ extern "C" {} block.
21208         * doc/posix-headers/pthread.texi: Mention the problem with
21209         pthread_atfork on IRIX.
21211 2018-02-04  Bruno Haible  <bruno@clisp.org>
21213         nl_langinfo: Override the system's nl_langinfo() when needed.
21214         Reported by Jim Meyering.
21215         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
21216         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
21218 2018-02-04  Bruno Haible  <bruno@clisp.org>
21220         signal-h, monetary, strings: Fix build failure in some cases.
21221         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21222         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
21223         as delimiter in sed command, not '|'.
21224         * modules/monetary (Makefile.am): Likewise.
21225         * modules/strings (Makefile.am): Likewise.
21227 2018-02-03  Jim Meyering  <meyering@fb.com>
21229         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
21230         * top/maint.mk (sc_file_system): Don't complain about
21231         "/proc/filesystems".
21233 2018-02-03  Bruno Haible  <bruno@clisp.org>
21235         stdlib: Fix compilation error on OpenIndiana.
21236         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
21237         <sys/time.h>.
21238         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21239         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
21241 2018-02-03  Bruno Haible  <bruno@clisp.org>
21243         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
21244         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
21245         and use $EGREP instead of 'grep -E'.
21246         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
21247         'grep -E'.
21249 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
21251         malloca: Add a compile-time verification.
21252         * lib/malloca.c (small_t): Verify that it is wide enough.
21253         * modules/malloca (Depends-on): Add verify.
21255 2018-02-02  Bruno Haible  <bruno@clisp.org>
21257         malloca: Add an argument check.
21258         Suggested by Paul Eggert.
21259         * lib/malloca.c (freea): Check against an invalid argument.
21261 2018-02-02  Bruno Haible  <bruno@clisp.org>
21263         localename: Add support for OpenIndiana.
21264         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
21265         Solaris 11 variants with uselocale() but without getlocalename_l().
21267 2018-02-02  Bruno Haible  <bruno@clisp.org>
21269         malloca, xmalloca: Make multithread-safe.
21270         Reported by Florian Weimer <fweimer@redhat.com>.
21271         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
21272         * lib/malloca.h (malloca): In the stack allocation case, return a
21273         pointer that is a multiple of 2 * sa_alignment_max.
21274         (sa_increment): Remove enum item.
21275         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
21276         a pointer that is a multiple of 2 * sa_alignment_max.
21277         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
21278         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
21279         HASH_TABLE_SIZE, mmalloca_results): Remove.
21280         (small_t): New type.
21281         (mmalloca, free): Rewritten.
21282         * lib/malloca.valgrind: Remove file.
21283         * modules/malloca (Files): Remove it.
21284         (Depends-on): Remove verify.
21286 2018-01-31  Bruno Haible  <bruno@clisp.org>
21288         environ: Fix link error on 64-bit Cygwin.
21289         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
21290         __declspec(dllimport) attribute.
21291         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
21293 2018-01-30  Bruno Haible  <bruno@clisp.org>
21295         get-rusage-data: Add support for Minix 3.
21296         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
21298 2018-01-30  Bruno Haible  <bruno@clisp.org>
21300         vma-iter: Add support for Minix 3.
21301         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
21302         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
21304 2018-01-27  Bruno Haible  <bruno@clisp.org>
21306         Fix malfunction of socket functions on HP-UX in 64-bit mode.
21307         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
21308         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
21309         _HPUX_ALT_XOPEN_SOCKET_API.
21310         * modules/accept (Depends-on): Add 'extensions'.
21311         * modules/getpeername (Depends-on): Likewise.
21312         * modules/getsockname (Depends-on): Likewise.
21313         * modules/getsockopt (Depends-on): Likewise.
21314         * modules/recvfrom (Depends-on): Likewise.
21315         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
21316         * doc/posix-functions/getpeername.texi: Likewise.
21317         * doc/posix-functions/getsockname.texi: Likewise.
21318         * doc/posix-functions/getsockopt.texi: Likewise.
21319         * doc/posix-functions/recvfrom.texi: Likewise.
21321 2018-01-27  Bruno Haible  <bruno@clisp.org>
21323         getsockname tests: More tests.
21324         * tests/test-getsockname.c (open_server_socket): New function, mostly
21325         copied from test-poll.c.
21326         (main): Check that getsockname fills in addr.
21327         * modules/getsockname-tests (Depends-on): Add the necessary
21328         dependencies.
21329         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
21331 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
21333         manywarnings: fix maintainer comment
21334         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
21335         it does not mistakenly think that ‘-1)’ is an option.
21337 2018-01-26  Bruno Haible  <bruno@clisp.org>
21339         langinfo: Fix last commit.
21340         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21341         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
21343 2018-01-24  Bruno Haible  <bruno@clisp.org>
21345         langinfo, nl_langinfo: Add support for alternative month names.
21346         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
21347         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
21348         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
21349         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
21350         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
21351         * doc/posix-functions/nl_langinfo.texi: Likewise.
21353 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21355         Merge strftime.c changes from glibc
21356         This incorporates:
21357         2017-11-14 [BZ #10871] Implement alternative month names
21358         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
21359         2017-06-20 Use locale_t, not __locale_t, throughout glibc
21360         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
21361         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
21362         Use locale_t, not __locale_t.
21363         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
21364         (__strftime_internal): Add support for alternate months.
21366 2018-01-23  Bruno Haible  <bruno@clisp.org>
21368         doc: Mention another prerequisite for using Gnulib.
21369         Reported at <https://stackoverflow.com/questions/48378214/>.
21370         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
21371         AC_CONFIG_HEADERS.
21373 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
21375         build: GuixSD doesn't have /bin/bash
21376         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
21378 2018-01-21  Bruno Haible  <bruno@clisp.org>
21380         Avoid test failures on Microsoft Windows Subsystem for Linux.
21381         * tests/test-fcntl.c (main): Allow a different errno.
21382         * tests/test-rename.h (test_rename): Likewise.
21383         * tests/test-renameat.c (main): Likewise.
21384         * tests/test-renameat2.c (main): Likewise.
21386 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
21388         filenamecat: make base a suffix of result
21389         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
21390         (mfile_name_concat): Always make BASE a suffix of the result, as
21391         cp expects this.  To implement this, separate with '.' instead of
21392         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
21393         * tests/test-filenamecat.c (main): Adjust tests to match
21394         current behavior.  Check that BASE_IN_RESULT points to
21395         a copy of BASE and is a suffix of the resultk, and that DIR
21396         is a prefix of the result that is no longer than the prefix
21397         indicated by BASE_IN_RESULT.
21399 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
21401         update-copyright: Handle use of ©
21402         * build-aux/update-copyright ($circle_c_re): Update regex to
21403         handle use of © in headers.
21405 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
21407         Fix -Wundef warning in user-included header lib/cdefs.h.
21408         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
21410 2018-01-04  Bruno Haible  <bruno@clisp.org>
21412         pthread_sigmask: Avoid compilation error on mingw.
21413         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21414         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
21415         macro.
21417 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
21419         test-framework-sh: ‘ps -ef’, not ‘ps ef’
21420         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
21421         Suggested by Bob Proulx (Bug#29968).
21422         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
21424 2018-01-02  Eric Blake  <eblake@redhat.com>
21426         stat-time: silence -Wunused-parameter regression
21427         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
21428         Prefer attribute over cast-to-void.
21429         (stat_time_normalize): Mark st as potentially unused.
21431 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
21433         test-framework-sh: avoid netstat
21434         Problem reported by Kristýna Streitová (Bug#29947).
21435         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
21436         deprecated on SuSE and it's not that important anyway.
21438 2018-01-01  Jim Meyering  <meyering@fb.com>
21440         update-copyright: add code to handle more special cases
21441         After running "make update-copyright" this year, five files
21442         required additional manual changes.  Automate those adjustments
21443         for next year.
21444         * Makefile (_year_and_prev): Define.
21445         (update-copyright): Add perl commands to induce this year's post-
21446         update-copyright adjustments.
21448 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21450         version-etc: new year
21451         * build-aux/gendocs.sh (version):
21452         * doc/gendocs_template:
21453         * doc/gendocs_template_min:
21454         * doc/gnulib.texi:
21455         * lib/version-etc.c (COPYRIGHT_YEAR):
21456         Update copyright dates by hand in templates and the like.
21458         maint: fix 'make update-copyright'
21459         * Makefile (update-copyright): Adjust to 2016-11-23 change
21460         to config/srclist-update, which changed the format of srclist.txt.
21462 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21464         chdir-safer: remove this module
21465         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
21466         * NEWS: Document removal.
21467         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
21468         * modules/chdir-safer: Remove these files.
21470 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
21472         Add cross-compilation results for GNU/Hurd.
21473         * m4/calloc.m4: Add GNU/Hurd guess.
21474         * m4/cbrtl.m4: Likewise.
21475         * m4/ceil.m4: Likewise.
21476         * m4/ceilf.m4: Likewise.
21477         * m4/ceill.m4: Likewise.
21478         * m4/chown.m4: Likewise.
21479         * m4/duplocale.m4: Likewise.
21480         * m4/exp2l.m4: Likewise.
21481         * m4/expm1.m4: Likewise.
21482         * m4/fchdir.m4: Likewise.
21483         * m4/floor.m4: Likewise.
21484         * m4/floorf.m4: Likewise.
21485         * m4/fmod.m4: Likewise.
21486         * m4/fmodf.m4: Likewise.
21487         * m4/fmodl.m4: Likewise.
21488         * m4/getcwd.m4: Likewise.
21489         * m4/getgroups.m4: Likewise.
21490         * m4/gettimeofday.m4: Likewise.
21491         * m4/hypot.m4: Likewise.
21492         * m4/hypotf.m4: Likewise.
21493         * m4/hypotl.m4: Likewise.
21494         * m4/link-follow.m4: Likewise.
21495         * m4/link.m4: Likewise.
21496         * m4/linkat.m4: Likewise.
21497         * m4/log.m4: Likewise.
21498         * m4/log10.m4: Likewise.
21499         * m4/log10f.m4: Likewise.
21500         * m4/log1p.m4: Likewise.
21501         * m4/log1pf.m4: Likewise.
21502         * m4/log1pl.m4: Likewise.
21503         * m4/log2.m4: Likewise.
21504         * m4/log2f.m4: Likewise.
21505         * m4/logf.m4: Likewise.
21506         * m4/lstat.m4: Likewise.
21507         * m4/malloc.m4: Likewise.
21508         * m4/mbrlen.m4: Likewise.
21509         * m4/mbrtowc.m4: Likewise.
21510         * m4/mkdir.m4: Likewise.
21511         * m4/mkfifo.m4: Likewise.
21512         * m4/mknod.m4: Likewise.
21513         * m4/mkstemp.m4: Likewise.
21514         * m4/modf.m4: Likewise.
21515         * m4/modff.m4: Likewise.
21516         * m4/modfl.m4: Likewise.
21517         * m4/printf.m4: Likewise.
21518         * m4/pselect.m4: Likewise.
21519         * m4/ptsname.m4: Likewise.
21520         * m4/putenv.m4: Likewise.
21521         * m4/readlink.m4: Likewise.
21522         * m4/realloc.m4: Likewise.
21523         * m4/remainder.m4: Likewise.
21524         * m4/remainderf.m4: Likewise.
21525         * m4/remainderl.m4: Likewise.
21526         * m4/rmdir.m4: Likewise.
21527         * m4/round.m4: Likewise.
21528         * m4/roundf.m4: Likewise.
21529         * m4/roundl.m4: Likewise.
21530         * m4/select.m4: Likewise.
21531         * m4/setenv.m4: Likewise.
21532         * m4/signbit.m4: Likewise.
21533         * m4/sleep.m4: Likewise.
21534         * m4/stat.m4: Likewise.
21535         * m4/strerror.m4: Likewise.
21536         * m4/strtok_r.m4: Likewise.
21537         * m4/symlink.m4: Likewise.
21538         * m4/symlinkat.m4: Likewise.
21539         * m4/trunc.m4: Likewise.
21540         * m4/truncf.m4: Likewise.
21541         * m4/truncl.m4: Likewise.
21542         * m4/tzset.m4: Likewise.
21543         * m4/ungetc.m4: Likewise.
21544         * m4/usleep.m4: Likewise.
21545         * m4/wcwidth.m4: Likewise.
21547 2017-12-28  Bruno Haible  <bruno@clisp.org>
21549         gnulib-tool: Make --conditional-dependencies work better.
21550         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
21551         * gnulib-tool (Options): Don't reject the combination of
21552         --conditional-dependencies with --with-tests.
21553         (func_emit_autoconf_snippets): Add argument referenceable_modules.
21554         Don't reference $modules.
21555         (func_import, func_create_testdir): Pass it.
21557 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21559         regex: use re_malloc etc. consistently
21560         Problem and original patch reported by Arnold Robbins in:
21561         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
21562         * lib/regcomp.c (re_comp):
21563         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
21564         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
21566 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
21567             Paul Eggert  <eggert@cs.ucla.edu>
21569         glob: Silence warning about void pointer arithmetic.
21570         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
21571         arithmetic.
21573 2017-12-15  Bruno Haible  <bruno@clisp.org>
21575         spawn-pipe: Silence a clang warning.
21576         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
21577         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
21578         in this file.
21580 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
21582         explicit_bzero: port to macOS + Clang 9.0.0
21583         Problem reported by Marcus Johnson (Bug#29658).
21584         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
21585         Don’t use asm.
21587 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
21589         doc: Improve explanation of supporting relocatable libraries.
21590         * doc/relocatable-maint.texi (Supporting Relocation): Explain
21591         properly how to build the relocatable module for
21592         libraries. (Method and example code from Bruno Haible.)
21594 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
21596         doc: Use better texinfo tags in a few cases.
21597         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
21598         instead of @samp in a few places.
21600 2017-12-11  Bruno Haible  <bruno@clisp.org>
21602         unistr/base: Update comment.
21603         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
21605 2017-12-10  Pádraig Brady  <P@draigBrady.com>
21607         test-faccessat.c: unlink temp file to avoid subsequent test failure
21608         * tests/test-faccessat.c: Remove the file to avoid failure
21609         to open the file on subsequent runs due to being created
21610         with no permissions.
21612 2017-12-10  Bruno Haible  <bruno@clisp.org>
21614         doc: New sect. "Modifying the build rules of a Gnulib import directory".
21615         * doc/gnulib-tool.texi (Modified build rules): New node.
21617 2017-12-10  Bruno Haible  <bruno@clisp.org>
21619         doc: Tweak wording.
21620         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
21621         "binaries".
21623 2017-12-05  Sam Steingold  <sds@gnu.org>
21624             Bruno Haible  <bruno@clisp.org>
21626         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
21627         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
21628         AC_EGREP_CPP pattern.
21630 2017-12-03  Bruno Haible  <bruno@clisp.org>
21632         all: Replace more http URLs by https URLs.
21633         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
21634         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
21635         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
21636         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
21638 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
21640         Port better to CentOS 5
21641         Problems reported by Tom G. Christensen in:
21642         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
21643         * doc/glibc-functions/strverscmp.texi (strverscmp):
21644         Document strverscmp bug with glibc 2.9 and earlier.
21645         * doc/posix-functions/tzset.texi (tzset):
21646         Document that TZ with angle brackets is POSIX-2001 and later.
21647         * tests/test-nstrftime.c: Include unistd.h.
21648         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
21649         (TZ): Use it to skip tests with angle brackets in TZ,
21650         for older systems.
21652         stat: add missing module dependencies
21653         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
21654         Add stat-time.
21656 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
21658         stat: fix compilation failure on macOS Sierra
21659         Reported by Marius Schamschula <mschamschula@gmail.com> in:
21660         https://savannah.gnu.org/bugs/?52546
21661         * lib/stat.c: Add missing include of stat-time.h.
21663 2017-11-28  Jim Meyering  <meyering@fb.com>
21665         test-faccessat.c: correct BASE definition to avoid parallel test failure
21666         * tests/test-faccessat.c (BASE): Define using this file's name, not
21667         that of test-lstat.c.  Using the latter caused this test to fail
21668         sometimes when run concurrently with test-lstat.
21670 2017-11-27  Daiki Ueno  <ueno@gnu.org>
21672         unicase: fix VPATH build
21673         * modules/unicase/special-casing (Makefile.am): Ensure that the
21674         base directory is created when generating
21675         unicase/special-casing.h.
21677 2017-11-27  Daiki Ueno  <ueno@gnu.org>
21679         libunistring: update to Unicode 9.0.0
21680         * lib/gen-uni-tables.c (fill_properties): Recognize
21681         Sentence_Terminal and Prepended_Concatenation_Mark.
21682         (is_property_default_ignorable_code_point): Exclude U+08E2.
21683         (fill_arabicshaping): Allow missing whitespace when parsing;
21684         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
21685         (output_blocks): Increase the element size of the level1 table to
21686         accommodate more blocks.
21687         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
21688         Update each class according to the standard.
21689         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
21690         E_Base_GAZ characters.
21691         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
21692         Glue_After_Zwj, and E_Base_GAZ characters.
21693         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
21694         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
21695         enum value.
21696         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
21697         value.
21698         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
21699         LBP_ZWJ, LBP_EB, and LBP_EM.
21700         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
21701         enum value.
21702         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
21703         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
21704         declaration.
21705         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
21706         (uniwbrk_table): Implement WB14.
21707         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
21708         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
21709         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
21710         uc-is-grapheme-break.
21711         * modules/unigbrk/uc-grapheme-breaks: New module.
21712         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
21713         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
21714         enum value.
21715         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
21716         * lib/unigbrk/u-grapheme-breaks.h: New file.
21717         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
21718         u-grapheme-breaks.h instead of uc_is_grapheme_break.
21719         * lib/unigbrk/uc-grapheme-breaks.c: New file.
21720         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
21721         29.
21722         * tests/unigbrk/test-uc-gbrk-prop.c
21723         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21724         GBP_GAZ, and GBP_EBG.
21725         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
21726         * tests/unigbrk/test-uc-is-grapheme-break.c
21727         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21728         GBP_GAZ, and GBP_EBG.
21729         (main): Skip unsupported rules involving 3 or more characters,
21730         namely GB10, GB12, and GB13.
21731         * lib/uniwidth/width.c (nonspacing_table_data): Update.
21732         * all generated files under lib/uni* and tests/uni*: Regenerate.
21733         * all the affected modules: Bump version.
21735 2017-11-26  Bruno Haible  <bruno@clisp.org>
21737         strfmon_l: Fix compilation error with glibc 2.5.
21738         Reported by Tom G. Christensen <tgc@jupiterrise.com>
21739         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
21740         * lib/monetary.in.h: Include also <locale.h>.
21742 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21744         posixtm: remove PDS_LEADING_YEAR
21745         This changes the API slightly, in a hopefully-innocuous way.
21746         Without this change the code had undefined behavior when a
21747         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
21748         Problem reported by Pádraig Brady in:
21749         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
21750         * NEWS: Mention this.
21751         * lib/posixtm.c (posix_time_parse): Treat the absence of
21752         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
21753         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
21754         present, but define it as zero, for compatibility with existing
21755         source code).  All other PDS_* values moved up.
21756         * tests/test-posixtm.c (LY): New macro.
21757         (T): Use it.  Do not expect a particular numeric encoding
21758         for PDS_CENTURY etc.
21760 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
21762         stat: work around Solaris bug with tv_nsec < 0
21763         * doc/posix-functions/fstat.texi (fstat):
21764         * doc/posix-functions/fstatat.texi (fstatat):
21765         * doc/posix-functions/lstat.texi (lstat):
21766         * doc/posix-functions/stat.texi (stat):
21767         Mention Solaris 11 bug.
21768         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
21769         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
21770         * lib/lstat.c (rpl_lstat):
21771         * lib/stat.c (rpl_stat):
21772         Normalize resulting timestamps.
21773         * lib/fstatat.c (normal_fstatat): New function.
21774         (rpl_fstatat): Use it.
21775         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
21776         (stat_time_normalize): New function.
21777         * m4/fstat.m4 (gl_FUNC_FSTAT):
21778         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
21779         * m4/lstat.m4 (gl_FUNC_LSTAT):
21780         * m4/stat.m4 (gl_FUNC_STAT):
21781         Replace on Solaris.
21782         * modules/fstat (Depends-on):
21783         * modules/fstatat (Depends-on):
21784         Add stat-time.
21785         * modules/stat-time (Depends-on): Add errno, intprops.
21787 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
21789         regex: merge from glibc
21790         * lib/regcomp.c (init_word_char): Add comments.
21792 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21794         regex: merge from glibc
21795         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
21796         * lib/regex_internal.h (internal_function): Remove.
21797         All uses removed.
21799 2017-11-20  Bruno Haible  <bruno@clisp.org>
21801         crypto/gc-sm3: Fix buffer overrun.
21802         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
21803         Reported by Coverity.
21805 2017-11-12  Jim Meyering  <meyering@fb.com>
21807         maint: shorten https://lists.gnu.org/archive/html/... links
21808         Each /archive/html/ part can be replace with /r/.
21809         Run this to induce the change:
21810         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
21811         * ChangeLog: Perform that substitution.
21812         * Makefile: Likewise.
21813         * STATUS-libposix: Likewise.
21814         * build-aux/bootstrap: Likewise.
21815         * doc/maintain.texi: Likewise.
21816         * gnulib-tool: Likewise.
21817         * lib/allocator.h: Likewise.
21818         * lib/argp-ba.c: Likewise.
21819         * lib/argp-pv.c: Likewise.
21820         * lib/canon-host.c: Likewise.
21821         * lib/canonicalize-lgpl.c: Likewise.
21822         * lib/float.in.h: Likewise.
21823         * lib/fstat.c: Likewise.
21824         * lib/getdelim.c: Likewise.
21825         * lib/getprogname.c: Likewise.
21826         * lib/glthread/thread.h: Likewise.
21827         * lib/intprops.h: Likewise.
21828         * lib/mbsrtowcs-state.c: Likewise.
21829         * lib/safe-read.c: Likewise.
21830         * lib/signal.in.h: Likewise.
21831         * lib/stat.c: Likewise.
21832         * lib/stdbool.in.h: Likewise.
21833         * lib/stdio-impl.h: Likewise.
21834         * lib/stdio.in.h: Likewise.
21835         * lib/sysexits.in.h: Likewise.
21836         * lib/timespec.h: Likewise.
21837         * lib/wcsrtombs-state.c: Likewise.
21838         * m4/alloca.m4: Likewise.
21839         * m4/extern-inline.m4: Likewise.
21840         * m4/fstatat.m4: Likewise.
21841         * m4/gnulib-common.m4: Likewise.
21842         * m4/lib-ignore.m4: Likewise.
21843         * m4/printf.m4: Likewise.
21844         * m4/regex.m4: Likewise.
21845         * m4/stat-size.m4: Likewise.
21846         * m4/std-gnu11.m4: Likewise.
21847         * m4/stdbool.m4: Likewise.
21848         * m4/sys_types_h.m4: Likewise.
21849         * m4/threadlib.m4: Likewise.
21850         * m4/vararrays.m4: Likewise.
21851         * pygnulib/GLImport.py: Likewise.
21852         * tests/test-exp.h: Likewise.
21853         * tests/test-exp2.h: Likewise.
21854         * tests/test-expm1.h: Likewise.
21855         * tests/test-fflush2.c: Likewise.
21856         * tests/test-getopt_long.h: Likewise.
21857         * tests/test-intprops.c: Likewise.
21858         * tests/test-log.h: Likewise.
21859         * tests/test-log10.h: Likewise.
21860         * tests/test-log1p.h: Likewise.
21861         * tests/test-log2.h: Likewise.
21862         * tests/test-printf-posix.h: Likewise.
21863         * tests/test-regex.c: Likewise.
21864         * tests/test-snprintf-posix.h: Likewise.
21865         * tests/test-sprintf-posix.h: Likewise.
21866         * tests/test-stdalign.c: Likewise.
21867         * tests/test-stdbool.c: Likewise.
21868         * tests/test-vasnprintf-posix.c: Likewise.
21869         * tests/test-vasprintf-posix.c: Likewise.
21870         * top/maint.mk: Likewise.
21872 2017-11-12  Bruno Haible  <bruno@clisp.org>
21874         faccessat: Make the last change more robust.
21875         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
21876         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
21878 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21880         faccessat: port to macOS (Bug#29231)
21881         macOS faccessat has the same bug that lstat does: if the file
21882         name ends in '/' it ignores the trailing slash.
21883         Problem reported for Emacs by Vincent Zhang.
21884         * doc/posix-functions/faccessat.texi (faccessat): Document this.
21885         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
21886         around the initial includes.  Include errno.h, string.h, sys/stat.h.
21887         (orig_faccessat) [HAVE_FACCESSAT]: New function.
21888         Include "unistd.h" after defining it.
21889         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
21890         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
21891         Handle in the usual way.
21892         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
21893         lstat dereferences symlinks, since faccessat is likely to
21894         have the same problem.
21895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
21896         * modules/faccessat (Depends-on): Add fstatat.
21897         Depend if REPLACE_FACCESSAT is 1, too.
21898         (configure.ac): Link if REPLACE_FACCESSAT is 1.
21899         * modules/faccessat-tests (Depends-on): Add symlink.
21900         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
21901         * tests/test-faccessat.c (main): Test for the bug.
21903 2017-11-11  Bruno Haible  <bruno@clisp.org>
21905         getprogname: Fix compilation error on IRIX.
21906         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
21907         'namesize'.
21909 2017-11-11  Bruno Haible  <bruno@clisp.org>
21911         year2038: Tweak last patch.
21912         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
21914 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21916         year2038: be more insistent about 64-bit time_t
21917         Applications requiring access to arbitrary files should not be
21918         built with 32-bit time_t on hosts that have 64-bit timestamps,
21919         as this can lead to real trouble at runtime.
21920         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
21921         Check on all systems, not just MinGW.  Use a heuristic involving
21922         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
21923         output a failure or just a warning, to make it more likely that
21924         builders will select 64-bit time_t.
21926 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21928         havelib: fix typo in previous change
21929         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
21931         Don’t use AC_EGREP_CPP if affected by CFLAGS
21932         * m4/float_h.m4 (gl_FLOAT_H):
21933         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
21934         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
21935         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
21936         * m4/year2038.m4 (gl_YEAR2038):
21937         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
21938         likely to be affected by the choice of CFLAGS, since CFLAGS are
21939         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
21940         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
21942         fstatat: pacify GCC on unusual platform
21943         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
21944         Omit, as it’s unused in this case.
21946 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21948         timespec: prefer ‘assume’ to ‘assure’
21949         This avoids some runtime tests.  The rest of the module makes
21950         similar assumptions and there is little point to testing here.
21951         * lib/timespec.h: Include verify.h instead of assure.h.
21952         (timespec_cmp): Use ‘assume’, not ‘assure’.
21953         Also, remove an unnecessary cast to ‘int’, as lots of other
21954         code in this module now causes -Wconversion to complain, and
21955         this is a problem with -Wconversion not with the code.
21957         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
21959         Port recent gnulib-tool change to Dash
21960         * gnulib-tool (func_create_testdir): Don't assume that the shell
21961         retokenizes after expanding "$@" inside the call to
21962         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
21964 2017-10-27  Jim Meyering  <meyering@fb.com>
21966         timespec.h: use "assure" to avoid a spurious warning
21967         * lib/timespec.h: Include "assure.h" and use it to help
21968         gcc7's -Wstrict-overflow avoid a false positive warning
21969         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
21970         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
21971         * modules/timespec (Depends-on): Add assure.
21973 2017-10-29  Bruno Haible  <bruno@clisp.org>
21975         Avoid several test failures with traditional locales on Haiku.
21976         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
21977         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
21978         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
21979         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
21980         LOCALE_ZH_CN=none.
21982 2017-10-29  Bruno Haible  <bruno@clisp.org>
21984         strerror_r-posix: Fix behaviour and test failure on Haiku.
21985         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
21986         are positive. Work around return value 0 instead of ERANGE on Haiku.
21987         For unknown error numbers, use a format string consistent with perror().
21988         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
21989         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
21990         are positive.
21992 2017-10-29  Bruno Haible  <bruno@clisp.org>
21994         get-rusage-data: Avoid crash on Haiku.
21995         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
21997 2017-10-29  Bruno Haible  <bruno@clisp.org>
21999         get-rusage-as: Avoid crash on Haiku.
22000         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
22002 2017-10-29  Bruno Haible  <bruno@clisp.org>
22004         ilogbl: Ensure replacement on Haiku.
22005         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
22006         REPLACE_ILOGBL if ilogbl does not work.
22007         (gl_FUNC_ILOGBL_WORKS): New macro.
22008         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
22009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
22010         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
22011         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
22012         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
22014 2017-10-29  Bruno Haible  <bruno@clisp.org>
22016         expl: Ensure replacement on Haiku.
22017         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
22018         zero.
22019         * doc/posix-functions/expl.texi: Mention the Haiku problem.
22021 2017-10-29  Bruno Haible  <bruno@clisp.org>
22023         math: Fix test failure on Haiku.
22024         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
22025         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
22026         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
22027         * doc/posix-headers/math.texi: Mention the Haiku problem.
22029 2017-10-29  Bruno Haible  <bruno@clisp.org>
22031         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
22032         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
22033         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
22035 2017-10-29  Bruno Haible  <bruno@clisp.org>
22037         crypto/*: Verify that the header file is self-contained.
22038         * tests/test-gc-*.c: Include the module's header file immediately after
22039         <config.h>.
22040         * tests/test-hmac-*.c: Likewise.
22041         * tests/test-arcfour.c: Likewise.
22042         * tests/test-arctwo.c: Likewise.
22043         * tests/test-des.c: Likewise.
22044         * tests/test-md2.c: Likewise.
22045         * tests/test-md4.c: Likewise.
22046         * tests/test-md5.c: Likewise.
22047         * tests/test-rijndael.c: Likewise.
22048         * tests/test-sha1.c: Likewise.
22049         * tests/test-sm3.c: Likewise.
22051 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
22052             Bruno Haible  <bruno@clisp.org>
22054         crypto/gc: fix build failure with -Werror=suggest-attribute=const
22055         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
22057 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
22059         New module: crypto/gc-sm3
22060         * lib/gc.h: Declare SM3-related stuffs.
22061         * lib/gc-gnulib.c: Support sm3 in internal functions.
22062         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
22063         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
22064         * modules/crypto/gc-sm3: Define gc-sm3 module.
22065         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
22066         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
22067         * MODULES.html.sh: List gc-sm3 module.
22069 2017-10-29  Bruno Haible  <bruno@clisp.org>
22071         random, random_r: Mention different prototypes on Haiku.
22072         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
22073         * doc/glibc-functions/random_r.texi: Likewise.
22074         * doc/glibc-functions/initstate_r.texi: Likewise.
22075         * doc/glibc-functions/setstate_r.texi: Likewise.
22077 2017-10-28  Bruno Haible  <bruno@clisp.org>
22079         posix_spawn: Avoid spurious message in configure output.
22080         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
22081         'cmp' command.
22083 2017-10-28  Bruno Haible  <bruno@clisp.org>
22085         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
22086         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
22087         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
22089 2017-10-28  Bruno Haible  <bruno@clisp.org>
22091         ioctl: Override non-POSIX declaration on Haiku.
22092         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
22093         * lib/sys_ioctl.in.h: Add comment about Haiku.
22094         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
22095         * doc/glibc-headers/sys_ioctl.texi: Likewise.
22097 2017-10-28  Bruno Haible  <bruno@clisp.org>
22099         crypto/sm3: Add overview documentation to the .h file.
22100         * lib/sm3.h: Add comments.
22102 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
22104         New module: crypto/sm3
22105         This new module can be used to compute SM3 message digest of files or
22106         memory blocks according to the specification GM/T 004-2012
22107         Cryptographic Hash Algorithm SM3, published by State Cryptography
22108         Administration, China.
22109         The official SM3 cryptographic hash algorithm specification is
22110         available at
22111         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
22112         * lib/sm3.h: Declare the APIs of sm3 module.
22113         * lib/sm3.c: Implement SM3 hash algorithm.
22114         * m4/sm3.m4: m4 file for sm3 module.
22115         * modules/crypto/sm3: Define sm3 module.
22116         * tests/test-sm3.c: Implement SM3 test case.
22117         * modules/crypto/sm3-tests: Define sm3 test module.
22118         * MODULES.html.sh: List sm3 module.
22120 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
22122         gc-libgcrypt: fix undefined enum type in switch statement
22123         Resolve the following build failure:
22124         lib/gc-libgcrypt.c: In function 'gc_hash_open':
22125         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
22126         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
22127              case 0:
22128              ^~~~
22129         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
22130         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
22132 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
22134         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
22135         Resolve the following build failure:
22136         lib/gc-libgcrypt.c: In function 'gc_hash_read':
22137         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
22138         in signedness [-Werror=pointer-sign]
22139             digest = gcry_md_read (ctx->gch, 0);
22140                    ^
22141         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
22143 2017-10-26  Bruno Haible  <bruno@clisp.org>
22145         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
22146         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
22147         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
22149 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22151         glob: fix another heap buffer overflow
22152         Problem reported by Tim Rühsen in:
22153         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
22154         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
22156 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
22158         quotearg: pacify compiler re unsigned
22159         * lib/quotearg.c (quotearg_n_options):
22160         Rewrite to avoid diagnostic from overly-picky compiler.
22161         Problem reported by Sami Kerola in:
22162         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
22164         glob: fix heap buffer overflow
22165         * lib/glob.c (glob): Fix off-by-one error introduced into
22166         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
22167         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
22168         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
22169         Fix suggested by Bruno Haible.
22171 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
22173         glob: pacify fuzzer for mempcpy
22174         Problem reported by Tim Rühsen in:
22175         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
22176         * lib/glob.c (glob): Do not pass NULL to mempcpy.
22178 2017-10-12  Bruno Haible  <bruno@clisp.org>
22180         doc: Fix syntax error (regression from 2017-10-03).
22181         * doc/posix-functions/strncpy.texi: Fix syntax error.
22183 2017-10-12  Bruno Haible  <bruno@clisp.org>
22185         doc: Update for Solaris 11.3.
22186         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
22187         mention Solaris 11.3.
22188         * m4/log2.m4: Fix comments.
22189         * m4/log2f.m4: Likewise.
22190         * m4/printf.m4: Update comments.
22191         * m4/rename.m4: Likewise.
22192         * m4/strncat.m4: Likewise.
22194         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
22196 2017-10-10  Bruno Haible  <bruno@clisp.org>
22198         doc: Improve doc about ioctl.
22199         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
22200         prototype.
22202 2017-10-09  Bruno Haible  <bruno@clisp.org>
22204         wcwidth: Don't use obsolete syntax of 'test'.
22205         Reported by Eric Blake.
22206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
22207         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
22209 2017-10-09  Bruno Haible  <bruno@clisp.org>
22211         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
22212         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
22213         and Daniel P. Berrange <berrange@redhat.com>.
22214         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
22215         on glibc systems. The getopt-pfx-core.h file declares exactly what
22216         unistd.h needs, nothing more.
22218 2017-10-08  Bruno Haible  <bruno@clisp.org>
22220         vma-iter: Improve support for FreeBSD.
22221         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
22222         vma_iterate.
22223         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
22225 2017-10-08  Bruno Haible  <bruno@clisp.org>
22227         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
22228         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
22230 2017-10-07  KO Myung-Hun  <komh@chollian.net>
22232         test-framework-sh: Fix 'invalid path dir' error.
22233         On OS/2, a path separator is ';' not ':'. And ':' is used as a
22234         separator between a drive letter and directory parts.
22235         As a result, an absolute path such as x:/path/to/dir on OS/2 is
22236         treated as an invalid path dir.
22237         * tests/init.sh (PATH_SEPARATOR): Set at startup.
22238         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
22239         instead of hard coded ':'.
22241 2017-10-07  Bruno Haible  <bruno@clisp.org>
22243         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
22244         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
22245         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
22246         (rof_open): On Linux, do multiple read() calls and make sure
22247         MIN_LEFTOVER bytes are left when read() returns.
22249 2017-10-07  Bruno Haible  <bruno@clisp.org>
22251         vma-iter: Improve support for GNU/Hurd.
22252         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
22253         API, not the /proc file system.
22255 2017-10-07  Bruno Haible  <bruno@clisp.org>
22257         test-framework-sh: Don't require bash on Windows and OS/2.
22258         Reported by KO Myung-Hun.
22259         * tests/test-init.sh: Use 'shopt' only when running in bash.
22261 2017-10-06  KO Myung-Hun  <komh@chollian.net>
22263         wcwidth: check a macro version of wcwidth () as well
22264         * lib/wchar.in.h: Revert commit from 2016-01-14.
22265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
22267 2017-10-06  Bruno Haible  <bruno@clisp.org>
22269         getopt-posix: Clarify copyright header.
22270         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
22271         * lib/getopt-pfx-core.h: Likewise.
22272         * lib/getopt-pfx-ext.h: Likewise.
22273         * lib/getopt-cdefs.in.h: Likewise.
22275 2017-10-03  Bruno Haible  <bruno@clisp.org>
22277         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
22278         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
22279         gl_HOST_CPU_C_ABI.
22281 2017-10-03  Bruno Haible  <bruno@clisp.org>
22283         doc: warn about misuse of strncpy and wcsncpy.
22284         * doc/posix-functions/strcpy.texi: Describe requirements on prior
22285         memory allocation.
22286         * doc/posix-functions/wcscpy.texi: Likewise.
22287         * doc/posix-functions/strncpy.texi: Describe what this function is not
22288         useful for.
22289         * doc/posix-functions/wcsncpy.texi: Likewise.
22291 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
22293         fsuage: fix typo in previous change
22294         * lib/fsusage.c: Remove stray include of full-read.h.
22295         Problem reported by Sam Steingold for macOS (Bug#28669).
22297 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
22299         fsusage: remove SVR2 support
22300         SVR2 was obsolete by 1986 and is no longer supported by anybody,
22301         and its code was getting in the way of use of this module by
22302         Emacs, which has its own ‘read’ function anyway.
22303         * lib/fsusage.c: Do not include sys/filsys.h.
22304         (get_fs_usage): Remove SVR2-specific code.
22305         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
22306         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
22307         * modules/fsusage (Depends-on): Do not depend on full-read.
22309         Simplify autoupdate of licenses
22310         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
22311         place.
22313 2017-10-01  Bruno Haible  <bruno@clisp.org>
22315         vma-iter: Add support for GNU/Hurd.
22316         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
22317         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
22319 2017-09-30  Bruno Haible  <bruno@clisp.org>
22321         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
22322         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
22323         fail when module 'largefile' is in use.
22324         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
22325         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
22326         Don't test HAVE_SYS_PROCFS_H.
22328 2017-09-30  Bruno Haible  <bruno@clisp.org>
22330         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
22331         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
22332         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
22333         * modules/havelib (Depends-on): Add host-cpu-c-abi.
22335 2017-09-30  Bruno Haible  <bruno@clisp.org>
22337         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
22338         * lib/uniname/uniname.c (unicode_name_character): Add braces around
22339         scope of local variables.
22341 2017-09-28  Bruno Haible  <bruno@clisp.org>
22343         string: code style
22344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
22345         substitutable variables.
22346         * modules/string (Makefile.am): Likewise.
22348 2017-09-26  Bruno Haible  <bruno@clisp.org>
22350         uniname/uniname-tests: Tighten code.
22351         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
22352         local variables into one.
22354 2017-09-26  Bruno Haible  <bruno@clisp.org>
22356         vma-iter: Improvements for Linux and BSD platforms.
22357         - Add support for DragonFly BSD.
22358         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
22359         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
22360         Read the entire file into memory in a single system call.
22361         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
22362         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
22364 2017-09-26  Bruno Haible  <bruno@clisp.org>
22366         vma-iter: Provide the protection flags on FreeBSD.
22367         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
22368         skip three fields between the addresses and the protection flags.
22370 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
22372         glob: remove bogus extern decl
22373         * lib/glob.c (__glob_pattern_type): Remove now-spurious
22374         extern declaration.  Problem reported by Adhemerval Zanella in:
22375         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
22377 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
22379         uniname/uniname-tests: integer overflow fix
22380         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
22381         Check for integer overflow.
22383         duplocale-tests: fix unlikely crash
22384         * tests/test-duplocale.c (get_locale_dependent_values):
22385         Don’t crash with absurdly long month names.
22387         maint: fix overflow checking in nap.h
22388         * modules/chown-tests:
22389         * modules/fchownat-tests, modules/fdutimensat-tests:
22390         * modules/futimens-tests, modules/lchown-tests:
22391         * modules/stat-time-tests, modules/utime-tests:
22392         * modules/utimens-tests, modules/utimensat-tests:
22393         Depend on intprops.
22394         * tests/nap.h: Include intprops.h.
22395         (diff_timespec): Handle overflow properly.
22397         sys_types: update URL
22398         * m4/sys_types_h.m4: Use https: URL.
22400         parse-datetime: fix dependency
22401         * modules/parse-datetime (Depends-on): Depend
22402         on nstrftime, not strftime.
22404         parse-datetime, posixtm: avoid uninit access
22405         * lib/parse-datetime.y (parse_datetime2):
22406         * lib/posixtm.c (posixtime):
22407         Do not access uninitialized storage, even though the resulting
22408         value is never used.
22410 2017-09-25  Bruno Haible  <bruno@clisp.org>
22412         vma-iter: Improvements for BSD platforms.
22413         - Add support for GNU/kFreeBSD.
22414         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
22415         - Speed up on OpenBSD.
22416         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
22417         (vma_iterate_bsd): New function.
22418         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
22419         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
22420         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
22421         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
22423 2017-09-23  Bruno Haible  <bruno@clisp.org>
22425         strfmon_l: New module.
22426         * modules/strfmon_l: New file.
22427         * lib/strfmon_l.c: New file.
22428         * m4/strfmon_l.m4: New file.
22429         * doc/posix-functions/strfmon_l.texi: Mention the new module.
22430         * modules/strfmon_l-tests: New file.
22431         * tests/test-strfmon_l.c: New file.
22433         monetary: New module.
22434         * modules/monetary: New file.
22435         * lib/monetary.in.h: New file.
22436         * m4/monetary_h.m4: New file.
22437         * doc/posix-headers/monetary.texi: Mention the new module.
22438         * modules/monetary-tests: New file.
22439         * tests/test-monetary.c: New file.
22440         * modules/monetary-c++-tests: New file.
22441         * tests/test-monetary-c++.cc: New file.
22442         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
22444 2017-09-23  Bruno Haible  <bruno@clisp.org>
22446         duplocale tests: Fix test crash on Linux/x86.
22447         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
22448         locale from the current thread before freeing it.
22450 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
22452         mktime: port to OpenVMS
22453         Problem reported by John E. Malmberg in:
22454         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
22455         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
22457 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
22459         manywarnings: port to GCC on 64-bit MS-Windows
22460         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
22461         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
22462         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
22464 2017-09-13  Bruno Haible  <bruno@clisp.org>
22466         all: Replace many more http URLs by https URLs. Update stale URLs.
22467         * users.txt: Remove mention of 'newts'.
22468         * lib/localename.c: Update comment about LANG_SOTHO.
22470 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22472         all: Replace many http URLs by https URLs.
22474 2017-09-12  Bruno Haible  <bruno@clisp.org>
22476         doc: Prefer https URLs where possible.
22477         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
22478         * doc/ld-output-def.texi: Remove unavailable URL.
22480 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22482         maintainer-makefile: FTP -> HTTPS
22483         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
22484         of FTP, which is planned to be decommissioned on 2017-11-01.
22486 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22488         libc-config: Fix __GNUC_PREREQ macro.
22489         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
22490         __GNUC_MINOR.
22492 2017-09-09  Bruno Haible  <bruno@clisp.org>
22494         gnulib-tool: Simplify commit from 2015-08-20.
22495         * gnulib-tool (func_add_or_update): Remove local variable
22496         is_binary_file.
22498 2017-09-08  Bruno Haible  <bruno@clisp.org>
22500         stddef: Avoid conflict with system-defined max_align_t.
22501         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
22502         Reported by Werner Lemberg <wl@gnu.org> in
22503         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
22504         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
22505         (max_align_t): Define as a macro.
22506         (GNULIB_defined_max_align_t): New macro. Guards against multiple
22507         definitions of rpl_max_align_t in different copies of gnulib-generated
22508         <stddef.h>.
22510 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
22512         libc-config: port to MSVC
22513         Problems reported by Gisle Vanem in:
22514         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
22515         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
22516         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
22517         * m4/__inline.m4: New file.
22518         * modules/libc-config (Files): Add it.
22519         (Depends-on): Use it.
22521         glob: Use enum for __glob_pattern_type result
22522         From a patch proposed by Adhemerval Zanella in:
22523         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
22524         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
22525         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
22526         * lib/glob_internal.h (__glob_pattern_type):
22527         * lib/glob.c (glob):
22528         * lib/glob_pattern_p.c (__glob_pattern_p):
22529         Use them.
22531         glob: fix for use in glibc
22532         Problem reported by Adhemerval Zanella in:
22533         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
22534         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
22535         Do not redefine if _LIBC.
22537 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22539         glob: fix bugs with long login names
22540         Problem reported by Adhemerval Zanella in:
22541         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
22542         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
22543         (glob): Use the same scratch buffer for both getlogin_r and
22544         getpwnam_r.  Don’t require preallocation of the login name.  This
22545         simplifies storage allocation, and corrects the handling of
22546         long login names.
22548 2017-09-02  Bruno Haible  <bruno@clisp.org>
22550         dirent: Update doc.
22551         * doc/posix-headers/dirent.texi: More concrete list of platforms.
22553 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22555         glob: fix getpwnam_r errno typo
22556         * lib/glob.c (glob): Fix longstanding misuse of errno after
22557         getpwnam_r, which returns an error number rather than setting
22558         errno.
22560         glob: fix typo in recent change
22561         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
22562         Fix recently-introduced typo.
22564 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22566         glob: don't save and restore errno unnecessarily
22567         * lib/glob.c (glob): Don't save and restore errno
22568         merely because we have getpwnam_r.
22570         glob: don't assume getpwnam_r
22571         * lib/glob.c (glob): Port recent patches to platforms
22572         lacking getpwnam_r.
22574         scratch_buffer: don’t use private glibc API
22575         Suggested by Florian Weimer in:
22576         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
22577         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
22578         * lib/scratch_buffer_grow.c: Rename to
22579         lib/malloc/scratch_buffer_grow.c.
22580         * lib/scratch_buffer_grow_preserve.c: Rename to
22581         lib/malloc/scratch_buffer_grow_preserve.c.
22582         * lib/scratch_buffer_set_array_size.c: Rename to
22583         lib/malloc/scratch_buffer_set_array_size.c.
22584         * lib/scratch_buffer.h: New file.
22585         * modules/scratch_buffer (Files, Makefile.am):
22586         Adjust to source-file renaming.
22588 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22590         glob: use scratch_buffer instead of extend_alloca
22591         Much of the lib/glob.c part of this patch comes from a glibc patch
22592         proposed by Adhemerval Zanella in:
22593         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
22594         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
22595         included via glob.h, does this for us now.
22596         (__set_errno): Remove, as libc-config does this for us now.
22597         Include <scratch_buffer.h>.
22598         (GETPW_R_SIZE_MAX): Remove.
22599         (glob): Use struct scratch_buffer instead of extend_alloca.
22600         * lib/glob.in.h: Include libc-config.h rather than
22601         including <sys/cdefs.h> conditionally.
22602         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
22603         (__glibc_unlikely, __restrict, weak_alias):
22604         Remove, as libc-config does this for us now.
22605         * m4/glob.m4 (gl_PREREQ_GLOB):
22606         Remove sys/cdefs.h tests; no longer needed.
22607         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
22608         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
22610         scratch_buffer: new module
22611         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
22612         * lib/scratch_buffer_grow_preserve.c:
22613         * lib/scratch_buffer_set_array_size.c:
22614         New files, copied from glibc with very minor changes that can be
22615         copied back.
22616         * modules/scratch_buffer: New file.
22618         libc-config: new module
22619         * MODULES.html.sh: Add libc-config.
22620         * lib/cdefs.h: New file, copied from the GNU C Library with very
22621         minor changes that can be copied back.
22622         * lib/libc-config.h, modules/libc-config: New files.
22624 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22626         glob: match dangling symlinks
22627         This fixes a bug I inadvertently introduced to Gnulib when I
22628         merged glibc glob back into gnulib on 2007-10-16.  This fix is
22629         inspired by a patch proposed for glibc by Adhemerval Zanella in:
22630         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
22631         * doc/posix-functions/glob.texi: Update list of affected platforms.
22632         * lib/glob.c (__lstat64): New macro.
22633         (is_dir): New function.
22634         (glob, glob_in_dir): Match symlinks even if they are dangling.
22635         (link_stat, link_exists_p): Remove.  All uses removed.
22636         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
22637         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
22638         * modules/glob-tests (Depends-on): Add symlink.
22639         * tests/test-glob.c: Include errno.h, unistd.h.
22640         (BASE): New macro.
22641         (main): Test dangling symlinks, if symlinks are supported.
22643         glob, backupfile: inode 0 is a valid inode number
22644         * doc/posix-functions/readdir.texi (readdir):
22645         * doc/posix-headers/dirent.texi (dirent.h):
22646         Document more readdir portability issues.
22647         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
22648         (numbered_backup): Don’t treat inode 0 any differently from
22649         other inode values.
22650         * lib/glob.c (struct readdir_result): Remove skip_entry member.
22651         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
22652         All uses removed.
22653         * modules/glob (Depends-on): Remove d-ino.
22655         glob: simplify symlink detection
22656         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
22657         uint8_t, as C99 does not require uint8_t.
22658         (struct readdir_result): Use it.  Do not define skip_entry unless
22659         it is needed; this saves a byte on platforms lacking d_ino.
22660         (readdir_result_type, readdir_result_skip_entry):
22661         New functions, replacing ...
22662         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
22663         ... these functions, which were removed.  This makes the callers
22664         easier to read.  All callers changed.
22665         (D_INO_TO_RESULT): Now empty if there is no d_ino.
22667 2017-08-30  Pádraig Brady  <P@draigBrady.com>
22669         fts-tests: tag as a longrunning-test so not included by default
22670         * modules/fts-tests: This test takes about 20s on current systems,
22671         and uses about 285M of space on ext4.
22673 2017-08-30  Pádraig Brady  <P@draigBrady.com>
22675         renameat2: fix compilation on alpine linux
22676         * m4/renameat.m4: Check for <linux/fs.h> presence.
22677         * lib/renameat2.h: Only include <linux/fs.h> if present.
22678         Reported by Assaf Gordon on Alpine Linux.
22680 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22682         glob: try to port recent changes to MS-Windows
22683         Problem reported by Bruno Haible in:
22684         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
22685         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
22686         * lib/glob.in.h (__glob_pattern_p): ... to here.
22688 2017-08-24  Eric Blake  <eblake@redhat.com>
22690         warnings: fix compilation with old autoconf
22691         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
22692         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
22693         AC_DEFUN.
22694         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
22695         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
22697 2017-08-24  Bruno Haible  <bruno@clisp.org>
22699         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
22700         * modules/glob (Depends-on): Add c99.
22702 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22704         glob: fix typo that broke platforms lacking d_ino
22705         This typo also hurt performance on GNU/Linux and similar hosts.
22706         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
22707         in previous change.
22709 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22711         glob: merge from glibc with Zanella glob changes
22712         Merge glob from glibc, with changes for glob proposed
22713         by Adhemerval Zanella in the thread starting here:
22714         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
22715         plus some fixes for this merge.
22716         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
22717         New files, ported from glibc.
22718         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
22719         with __restrict.
22720         (__size_t): Remove.  All uses replaced by size_t.
22721         (size_t): Define by defining __need_size_t and including <stddef.h>.
22722         This should work even in non-glibc platforms, where any name
22723         pollution is OK.
22724         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
22725         (struct stat64): Don’t worry about __GLOB_GNULIB.
22726         (glob, globfree, glob_pattern_p): Remove macros for
22727         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
22728         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
22729         but set errno.
22730         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
22731         removed since the glibc behavior works on null pointers.
22732         Do not include stdio.h; old SunOS is irrelevant now.
22733         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
22734         Include glob_internal.h.
22735         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
22736         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
22737         worked only coincidentally.
22738         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
22739         Remove macros; now done in glob.in.h.
22740         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
22741         (glob): Properly initialize glob structure with
22742         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
22743         Remove old code using SHELL since Bash no longer
22744         uses this.
22745         (glob, prefix_array): Separate MS code better.
22746         (glob, glob_in_dir): Use C99 decls before statements when glibc
22747         does.
22748         (glob_in_dir): Remove old Amiga and VMS code.
22749         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
22750         separate files.
22751         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
22752         (__glibc_unlikely):
22753         Move here from glob.c.
22754         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
22755         (weak_alias): New macro.
22756         (__size_t): Remove.  All uses replaced by size_t.
22757         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
22758         * modules/glob (Files): Add +lib/glob_internal.h,
22759         lib/glob_pattern_p.c, lib/globfree.c.
22760         (Depends-on): Remove snippet/arg-nonnull.
22762 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22764         glob: port to clang's Undefined Sanitizer
22765         Problem reported by Tim Rühsen in:
22766         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
22767         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
22768         (glob_in_dir): Do not rely on undefined behavior in accessing
22769         struct members beyond their bounds.  Use a flexible array member
22770         instead.
22772 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22774         vc-list-files: port to Solaris 10
22775         * build-aux/vc-list-files: Don't assume test -e works.
22777 2017-08-21  Karl Berry  <karl@freefriends.org>
22779         * doc/posix-functions/srandom.texi (srandom): typo }.
22781 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22783         git-version-gen: port to Solaris 10
22784         Problem reported by Dagobert Michelsen in:
22785         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
22786         * build-aux/git-version-gen (v_from_git):
22787         Use expr instead of shell substitution.
22789 2017-08-19  Bruno Haible  <bruno@clisp.org>
22791         host-cpu-c-abi: Improve detection of MIPS ABI.
22792         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
22793         _MIPS_SIM.
22795 2017-08-17  Bruno Haible  <bruno@clisp.org>
22797         hypot tests: Fix test failure on FreeBSD 11.0/x86.
22798         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
22800 2017-08-17  Bruno Haible  <bruno@clisp.org>
22802         float: Fix LDBL_MIN value on FreeBSD/x86.
22803         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
22805 2017-08-17  Bruno Haible  <bruno@clisp.org>
22807         random: Fix test compilation failure on Cygwin 1.5.25.
22808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
22809         HAVE_DECL_SETSTATE.
22810         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
22811         declared.
22812         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
22813         HAVE_DECL_SETSTATE.
22814         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
22815         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
22816         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
22817         * doc/posix-functions/random.texi: Likewise.
22818         * doc/posix-functions/setstate.texi: Likewise.
22819         * doc/posix-functions/srandom.texi: Likewise.
22821 2017-08-16  Bruno Haible  <bruno@clisp.org>
22823         stdnoreturn: Fix test compilation failure on Cygwin.
22824         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
22825         <stdnoreturn.h> replacement.
22826         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
22827         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
22829 2017-08-16  Bruno Haible  <bruno@clisp.org>
22831         thread: Fix conflict with pthread_sigmask module.
22832         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
22833         it's defined as a macro.
22834         * modules/thread (Depends-on): Add pthread_sigmask.
22836 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22838         rename: port better to NetBSD
22839         * doc/posix-functions/rename.texi (rename): NetBSD 7
22840         does not have the link-count bug.
22841         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
22842         broken merely because rename ("a", "b") removes "a" when the two
22843         names are hard links to the same file.
22845 2017-08-16  Bruno Haible  <bruno@clisp.org>
22847         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
22848         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
22849         the target file names with '$(srcdir)/'.
22850         * modules/unicase/locale-language (Makefile.am): Likewise.
22851         * modules/unicase/special-casing (Makefile.am): Likewise.
22852         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
22853         * modules/unictype/category-byname (Makefile.am): Likewise.
22854         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
22855         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
22856         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
22857         * modules/unictype/property-byname (Makefile.am): Likewise.
22858         * modules/unictype/scripts (Makefile.am): Likewise.
22859         * modules/uninorm/composition (Makefile.am): Likewise.
22861 2017-08-16  Bruno Haible  <bruno@clisp.org>
22863         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
22864         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
22865         value for OpenBSD.
22867 2017-08-16  Bruno Haible  <bruno@clisp.org>
22869         rename, renameat: Update doc regarding NetBSD.
22870         * doc/posix-functions/rename.texi: Clarify that when using
22871         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
22872         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
22873         version.
22875 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22877         renameat2: port better to macOS
22878         * lib/renameat2.c (renameat2): Use renameatx_np if available.
22880         futimens: don’t assume struct timespec layout
22881         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
22882         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
22883         * tests/test-fdutimensat.c (main):
22884         * tests/test-futimens.h (test_futimens):
22885         * tests/test-lutimens.h (test_lutimens):
22886         * tests/test-utimens.h (test_utimens):
22887         * tests/test-utimensat.c (main):
22888         Don’t assume that struct timespec is a two-member structure in
22889         tv_sec, tv_nsec order.  Although this is true on all platforms we
22890         know about, POSIX does not guarantee it.
22892         rename: document+test NetBSD rename
22893         Test failure reported by Bruno Haible in:
22894         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
22895         This is an area where NetBSD is better-behaved than POSIX,
22896         so allow the NetBSD behavior in tests.
22897         * doc/posix-functions/rename.texi:
22898         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
22899         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
22901 2017-08-15  Bruno Haible  <bruno@clisp.org>
22903         renameat: Ensure declaration in <stdio.h> on NetBSD.
22904         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
22905         * doc/posix-functions/renameat.texi: Mention this problem.
22907 2017-08-15  Bruno Haible  <bruno@clisp.org>
22909         duplocale: Work around NetBSD 7.0 bug.
22910         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
22911         * lib/duplocale.c: Add comment about NetBSD problem.
22912         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
22914 2017-08-15  Bruno Haible  <bruno@clisp.org>
22916         duplocale tests: Verify use with *_l functions.
22917         * modules/duplocale-tests (configure.ac): Test for uselocale and
22918         some *_l functions.
22919         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
22920         from main.
22921         (get_locale_dependent_values_from, test_with_locale_parameter): New
22922         functions.
22923         (main): Test both test_with_uselocale and test_with_locale_parameter.
22925 2017-08-15  Bruno Haible  <bruno@clisp.org>
22927         extensions: Enable NetBSD specific extensions.
22928         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
22930 2017-08-14  Bruno Haible  <bruno@clisp.org>
22932         open, openat: Update doc about O_CLOEXEC.
22933         * doc/posix-functions/open.texi: More concrete list of platforms.
22934         * doc/posix-functions/openat.texi: Likewise.
22936 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22938         open: support O_CLOEXEC
22939         * NEWS, doc/posix-functions/open.texi:
22940         * doc/posix-functions/openat.texi: Document this.
22941         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
22942         (GNULIB_defined_O_CLOEXEC): New symbol.
22943         * lib/open.c: Include cloexec.h.
22944         (open): Support O_CLOEXEC.
22945         * lib/openat.c: Include cloexec.h.
22946         (rpl_openat): Support O_CLOEXEC.
22947         * lib/popen-safer.c: Do not include cloexec.h.
22948         (open_noinherit): Remove.
22949         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
22950         * lib/save-cwd.c: Do not include cloexec.h.
22951         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
22952         * m4/open-cloexec.m4: New file.
22953         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
22954         Replace 'open' if O_CLOEXEC is not present.
22955         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
22956         Replace 'openat' if O_CLOEXEC is not present.
22957         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
22958         * modules/open (Files): Add m4/open-cloexec.m4.
22959         (Depends-on): Depend on cloexec if replacing 'open'.
22960         * modules/openat (Files): Add m4/open-cloexec.m4.
22961         (Depends-on): Depend on cloexec if replacing openat.
22962         * modules/popen-safer (Depends-on): Remove cloexec.
22963         * modules/save-cwd (Depends-on): Remove cloexec, and add
22964         fd-safer-flag and 'open'.
22966 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
22968         reallocarray: minor fixes
22969         * doc/glibc-functions/reallocarray.texi: Update version numbers.
22970         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
22971         * modules/reallocarray (License): Change from GPL to LGPL.
22972         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
22973         Indent properly and don't use tabs.
22975 2017-08-13  Darshit Shah  <darnir@gnu.org>
22977         reallocarray: New module
22978         reallocarray is a new function in glibc 2.26 to safely allocate an array
22979         of memory locations with integer overflow protection.
22980         * MODULES.html.sh: Add reallocarray.
22981         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
22982         * lib/reallocarray.c: New file to implement module reallocarray.
22983         * lib/stdlib.in.h: Add function declarations for reallocarray.
22984         * m4/reallocarray.m4: New file.
22985         * m4/stdlib_h.m4: Declare reallocarray.
22986         * modules/reallocarray: New file.
22987         * modules/reallocarray-test: New file.
22988         * modules/stdlib: Coerce stdlib.h to export reallocarray.
22989         * tests/test-reallocarray.c: New test.
22991 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22993         dirent-safer: fix cloexec race
22994         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
22995         (opendir_safer): Use F_DUPFD_CLOEXEC.
22996         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
22997         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
22998         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
22999         instead of dup_safer.
23001         fts: fix cloexec races
23002         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
23003         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
23004         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
23005         (fd_ring_check): Set cloexec flag on new file descriptors.
23006         (fts_build, fd_ring_check): While we’re at it, make sure the
23007         resulting file descriptor is not 0, 1, or 2, since that is easy.
23009 2017-08-11  Bruno Haible  <bruno@clisp.org>
23011         fts tests: Fix link error.
23012         Reported by Tom G. Christensen in
23013         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
23014         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
23016 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23018         fts: port recent changes to CentOS 6
23019         Problem reported by Tom G. Christensen in:
23020         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
23021         * lib/fts.c (fsword): New type.
23022         (struct dev_type, filesystem_type): Use it.
23023         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
23024         Also, check for f_type only if fstatfs and sys/vfs.h work.
23026 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23028         tempname: do not depend on secure_getenv
23029         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
23030         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
23031         * modules/tempname (Depends-on): Remove secure_getenv.
23033 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
23035         extensions: add _OPENBSD_SOURCE
23036         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
23038 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
23039             Bruno Haible  <bruno@clisp.org>
23041         manywarnings: Add support for C++.
23042         * build-aux/g++-warning.spec: New file.
23043         * m4/manywarnings-c++.m4: New file.
23044         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
23045         redirects to manywarnings-c++.m4.
23046         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
23048 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23050         git-version-gen: another fix for tags with "-"
23051         * build-aux/git-version-gen: Improve fix for tags containing "-".
23052         Suggested by Markus Armbruster in:
23053         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
23055 2017-08-06  Bruno Haible  <bruno@clisp.org>
23057         warnings, manywarnings: Add support for multiple languages, not just C.
23058         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
23059         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
23060         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
23061         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
23062         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
23063         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
23064         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
23065         of the current language. If C++ is the current language, modify
23066         WARN_CXXFLAGS instead of WARN_CFLAGS.
23067         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
23068         gl_MANYWARN_ALL_GCC.
23069         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
23071 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
23073         git-version-gen: Fix for tags containing '-'
23075         Really old versions of git-describe (before v1.5.0, Feb 2007)
23076         don't have the number of commits in their long format output,
23077         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
23078         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
23079         recognizes both patterns, and normalizes the old format to the new one.
23081         Unfortunately, this normalization code gets confused when the tag
23082         contains '-'.  Reproducer:
23084             $ git-tag -m test v0.2-rc1
23085             $ build-aux/git-version-gen .tarball-version; echo
23086             build-aux/git-version-gen: WARNING: git rev-list failed
23087             UNKNOWN
23089         We take exact tag "v0.2-rc1" for the old format, extract the presumed
23090         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
23091         commits since tha tag.  Fails, because tag "v0.2" does not exist.
23093         * git-version-gen: We could perhaps drop support for versions from
23094         more than a decade ago.  But tightening the pattern match is easy
23095         enough, so do that.  Still breaks when you use version tags ending in
23096         something matching -g????, but you arguably get what you deserve then.
23098 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
23100         valgrind-tests: use ls, and cache
23101         * m4/valgrind-tests.m4: Test ls, not bash.
23102         Problem reported by Reuben Thomas.
23103         Also, cache the result so that it can be overridden.
23105 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
23107         manywarnings: port to 64-bit GCC builds of Emacs
23108         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
23109         object size rather than hardwiring 2147483647.  This is needed to
23110         build GNU Emacs, which has one conditional (and used
23111         only-in-theory) call to malloc with a literal greater than
23112         2147483647.
23114 2017-08-04  Bruno Haible  <bruno@clisp.org>
23116         Relax the license of some modules with no runtime code.
23117         * modules/std-gnu11 (License): Set to 'unlimited'.
23118         * modules/c99 (License): Likewise.
23119         Reported by Reuben Thomas <rrt@sc3d.org>.
23120         * modules/d-ino (License): Set to 'LGPL'.
23121         * modules/host-os (License): Likewise.
23122         * modules/longlong (License): Likewise.
23124 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
23126         renameat2: port to RHEL 7 + NFS
23127         * lib/renameat2.c (renameat2) [SYS_renameat2]:
23128         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
23129         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
23131 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
23133         renameat2: port to non-renameat platforms
23134         Problem reported for MSVC-2015 by Gisle Vanem in:
23135         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
23136         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
23137         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
23139 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
23141         manywarnings: port to 32-bit GCC bug
23142         Problem reported by Pino Toscano in:
23143         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
23144         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
23145         not 2**63 - 1, to work around the following GCC bug:
23146         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
23148 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
23150         backupfile: new function to validate backup suffix
23151         * lib/backupfile.c (set_simple_backup_suffix): New function.
23152         (backupfile_internal): Use it.
23154         canonicalize: fix EOVERFLOW commentary
23155         Problem reported by Bruno Haible in:
23156         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
23157         * lib/canonicalize.c (canonicalize_filename_mode):
23158         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
23160         Don't interpret EOVERFLOW to mean nonexistence
23161         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
23162         may be EOVERFLOW; this is likely more useful than reporting the
23163         stat errno.
23164         * lib/glob.c (link_stat): Rename from link_exists2_p and
23165         return -1/0 instead of 0/1.  Caller changed.
23166         * lib/glob.c (link_exists_p):
23167         * lib/renameat2.c (rename_noreplace, renameat2):
23168         * lib/tempname.c (try_nocreate):
23169         If errno == EOVERFLOW then the directory entry exists, so do not
23170         act as if it does not exist.
23172         backup-rename: new module
23173         It is like backupfile, except it avoids some race conditions,
23174         and it does not output to stderr or exit.
23175         * MODULES.html.sh: Add backup-rename.
23176         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
23177         * modules/backup-rename: New files.
23178         * lib/backupfile.c: Turn this into an internals file, which
23179         contains code common to backupfile and backup_rename.  Include
23180         backupfile-internal.h instead of backupfile.h.  Do not include
23181         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
23182         renameat2.h and fcntl.h.
23183         (BACKUP_NOMEM): New constant.
23184         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
23185         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
23186         (backupfile_internal): Rename from find_backup_file_name.
23187         Support new arg RENAME.
23188         (backup_args, backup_types, get_version, xget_version):
23189         Move to lib/backup-find.c.
23190         * lib/backupfile.h (backup_file_rename): New decl.
23191         * modules/backupfile (Files): Add lib/backup-internal.h,
23192         lib/backup-find.c.
23193         (Depends-on): Add dirfd, fcntl, renameat2.
23194         (lib_SOURCES): Add backup-find.c.
23196         renameat2: port better to older Solaris
23197         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
23198         Add goto to use a label, to silence picky compilers.
23200         fts-tests: port to gcc -Wwrite-strings
23201         * tests/test-fts.c (base, base_d): New static vars.
23202         (argv, remove_tree, main): Use them.
23204 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
23206         relocatable-lib{,-lgpl}: improve documentation
23207         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
23208         Various other updates.
23210 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
23211             Bruno Haible  <bruno@clisp.org>
23213         relocatable-lib{,-lgpl}: add Valgrind suppressions
23214         * lib/relocatable.valgrind: New file.
23215         * modules/relocatable-lib (Files): Add relocatable.valgrind.
23216         * modules/relocatable-lib-lgpl: Likewise.
23218 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
23220         relocatable: Make the license on the sources the GPL.
23221         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
23222         LGPL, which was a special case so that the relocatable source files
23223         could be used without gnulib-tool, to GPL. They can still be used under
23224         the LGPL, using the --lgpl option to gnulib-tool.
23226 2017-07-30  Bruno Haible  <bruno@clisp.org>
23228         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
23229         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
23230         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
23231         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
23232         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
23234 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
23236         faccessat: document AT_SYMLINK_NOFOLLOW issue
23237         * doc/posix-functions/faccessat.texi: Modernize platform list.
23238         Document AT_SYMLINK_NOFOLLOW limitation.
23240         renameat2: port to Solaris 10
23241         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
23242         with AT_SYMLINK_NOFOLLOW (which is not portable).
23243         (renameat): Undef before using, to avoid endless recursion when
23244         the replacement renameat calls renameat2 which calls the
23245         replacement renameat.
23246         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
23247         * modules/renameat2 (Depends-on): Remove faccessat.
23248         * modules/renameat-tests (test_renameat_LDADD):
23249         * modules/renameat2-tests (test_renameat2_LDADD):
23250         Remove $(LIB_EACCESS).
23252         renameat2: new module
23253         Although the Linux syscall renameat2 is not in glibc (yet?), it is
23254         useful to have access to its RENAME_NOREPLACE flag.
23255         * MODULES.html.sh (func_all_modules): Add renameat2.
23256         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
23257         * modules/renameat2-tests, tests/test-renameat2.c: New files.
23258         * lib/renameat.c (renameat): Move most of the implementation
23259         to renameat2, and just call renameat2.
23260         * modules/renameat (Files): Remove lib/at-func2.c.
23261         (Depends-on): Depend only on renameat2.
23262         (Include): Remove <fcntl.h>.
23263         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
23264         since renameat (via renameat2) might use faccessat.
23266 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
23268         vc-list-files: Adjust the script to support git worktrees
23269         * build-aux/vc-list-files: Require existence, not directory.
23271 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
23273         doc: bring MODULES.html.sh up to date
23274         Somehow a few months ago we stopped updating MODULES.html.sh.
23275         I don’t recall explicitly deciding this, so I updated it now.
23276         Alternatively I suppose we could remove it.
23277         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
23278         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
23279         truncate, utime, utime-h, windows-stat-inodes,
23280         windows-stat-override, windows-stat-timespec, year2038.  Sort.
23282 2017-07-26  Jim Meyering  <meyering@fb.com>
23284         fprintftime: fix build-break caused by recent renaming
23285         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
23286         "strftime.c".
23287         * modules/fprintftime: Depend directly on nstrftime.
23289 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
23291         regex: work with GCC7's -Werror=implicit-fallthrough=
23292         * lib/regex_internal.h (FALLTHROUGH): New macro.
23293         * lib/regcomp.c (peek_token_bracket, parse_expression):
23294         * lib/regexec.c (check_node_accept): Use it.
23296 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
23298         fts: simplify fts_build
23299         * lib/fts.c (fts_build): Simplify, and be lazier about
23300         calling leaf_optimization.
23302         fts: three levels of leaf optimization
23303         * lib/fts.c (enum leaf_optimization): New type with three values.
23304         (S_MAGIC_AFS): New macro.  Sort them.
23305         (leaf_optimization): Rename from leaf_optimization_applies, and
23306         return enum leaf_optimization instead of bool.  All uses changed.
23307         Add cases for unknown type and for AFS.
23308         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
23310         fts: cache dirent_inode_sort_may_be_useful too
23311         * lib/fts.c (struct dev_type): New struct.
23312         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
23313         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
23314         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
23315         Now takes FTSENT const *, not int.  All uses changed.  Use
23316         filesystem_type to cache.
23317         (link_count_optimize_ok): Remove.  Caller changed to use
23318         leaf_optimization_applies, which now uses shared cache.
23320         fts: introduce MIN_DIR_NLINK
23321         * lib/fts.c (MIN_DIR_NLINK): New constant.
23322         Use it instead of 2, whenever we are talking about link counts.
23324         fts: nlink_t signedness fixups
23325         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
23326         so that root need not be a special case later.
23327         (fts_read): Remove now-redundant test for fts_level.
23328         Do not assume that nlink_t is signed.
23329         (fts_build): Remove useless decrement of nlinks.
23330         (fts_stat): Avoid unlikely signed integer overflow later, if
23331         nlink_t is signed.
23333         fts-tests: new module
23334         * modules/fts-tests, tests/test-fts.c: New files.
23336 2017-07-23  Bruno Haible  <bruno@clisp.org>
23338         Rename module 'strftime' to 'nstrftime'.
23339         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
23340         * lib/nstrftime.c: Renamed from lib/strftime.c.
23341         * modules/nstrftime: Renamed from modules/strftime.
23342         (Files, Makefile.am): Update.
23343         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
23344         Fix comment.
23345         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
23346         (Files, Makefile.am): Update.
23347         * modules/strftime: New file, an obsolete indirection.
23348         * doc/posix-functions/strftime.texi: Update reference.
23349         * config/srclist.txt: Update info.
23350         * NEWS: Mention the change.
23352 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
23354         malloca: Silence a warning from clang's memory sanitizer.
23355         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
23356         (freea): Use it.
23358 2017-07-18  Bruno Haible  <bruno@clisp.org>
23360         host-cpu-c-abi: Fix detection of MIPS ABI.
23361         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
23362         ABI, not the CPU instruction set.
23364 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
23366         explicit_bzero: new module
23367         The explicit_bzero function has been added to glibc.
23368         This module is intended to supports its use in GNU programs.
23369         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
23370         * m4/explicit_bzero.m4, modules/explicit_bzero:
23371         New files.
23372         * doc/gnulib.texi (Glibc string.h): Link to new doc.
23373         * lib/string.in.h (explicit_bzero): Declare.
23374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
23375         * modules/string (string.h): Substitute its vars.
23377 2017-07-16  Bruno Haible  <bruno@clisp.org>
23379         threadlib: Support static linking.
23380         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
23381         set gl_cv_have_weak to 'no'.
23383 2017-07-16  Bruno Haible  <bruno@clisp.org>
23385         unicase/locale-language: Fix link dependencies.
23386         * modules/unicase/locale-language (Link): New section.
23387         * modules/unicase/locale-language-tests (Makefile.am): Link
23388         test-locale-language program with $(LIBTHREAD).
23390 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
23392         sys_socket: Add support for OpenVMS.
23393         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
23394         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
23396 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
23398         sys_resource: Add support for OpenVMS.
23399         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
23400         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
23402 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
23403             Bruno Haible  <bruno@clisp.org>
23405         math: Add support for OpenVMS.
23406         * lib/math.in.h [__VMS]: Include <fp.h>.
23407         * doc/posix-headers/math.texi: Mention OpenVMS issues.
23409 2017-07-15  Bruno Haible  <bruno@clisp.org>
23411         getdtablesize: Add minimal support for OpenVMS.
23412         Reported by John E. Malmberg <wb8tyw@qsl.net>.
23413         * modules/getdtablesize (Description): Fix.
23414         * lib/getdtablesize.c: Fix comment.
23415         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
23416         getdtablesize() function, even though the test fails.
23417         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
23418         limitation on OpenVMS.
23420 2017-07-13  Bruno Haible  <bruno@clisp.org>
23422         Revisit cross-compilation guesses.
23423         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
23425 2017-07-13  Bruno Haible  <bruno@clisp.org>
23427         Improve cross-compilation guesses for native Windows.
23428         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
23429         Windows.
23430         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
23431         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
23432         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23433         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
23434         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
23435         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
23436         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
23437         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23438         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23439         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
23440         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23441         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
23442         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
23443         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
23444         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
23445         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23446         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
23447         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
23448         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23449         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
23450         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
23451         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23452         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
23453         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
23454         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
23455         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
23456         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
23457         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
23458         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23459         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
23460         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23461         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
23462         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
23463         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
23464         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
23465         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
23466         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
23467         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23468         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23469         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23470         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23471         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23472         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
23473         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
23474         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
23475         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
23476         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
23477         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
23478         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
23479         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
23480         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
23481         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
23482         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
23483         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
23484         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
23485         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
23486         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
23487         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
23488         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
23489         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
23490         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23491         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
23492         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
23493         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
23494         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
23495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23496         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
23497         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23498         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
23499         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
23500         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
23501         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
23502         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23503         * m4/regex.m4 (gl_REGEX): Likewise.
23504         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
23505         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
23506         gl_FUNC_REMAINDERF_WORKS): Likewise.
23507         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
23508         gl_FUNC_REMAINDERL_WORKS): Likewise.
23509         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23510         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23511         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23512         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
23513         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23514         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
23515         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23516         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23517         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
23518         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23519         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
23520         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
23521         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23522         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23523         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23524         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23525         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23526         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23527         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23528         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
23529         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
23530         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23531         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23532         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23533         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23534         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23535         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23536         Likewise.
23537         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23538         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
23539         Windows. Enable also on Autoconf 2.70.
23540         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23541         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23542         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23543         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
23544         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23545         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
23546         for native Windows.
23547         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23548         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
23550 2017-07-13  Bruno Haible  <bruno@clisp.org>
23552         Improve cross-compilation guesses for native Windows.
23553         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
23554         Windows.
23555         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
23556         memchr.m4.
23557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23559 2017-07-13  Bruno Haible  <bruno@clisp.org>
23561         Improve cross-compilation guesses for native Windows.
23562         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
23563         native Windows.
23564         (gl_FUNC_FFLUSH): Update accordingly.
23565         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
23566         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
23568 2017-07-11  Bruno Haible  <bruno@clisp.org>
23570         More systematic m4 quoting and indentation.
23571         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
23572         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23573         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
23574         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23575         * m4/host-os.m4 (gl_HOST_OS): Likewise.
23576         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
23577         gl_WINSIZE_IN_PTEM): Likewise.
23578         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
23579         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23580         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
23581         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
23582         Correct indentation.
23583         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
23584         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23585         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
23586         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23587         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
23588         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23590 2017-07-10  Bruno Haible  <bruno@clisp.org>
23592         round, roundf: Avoid compiler warning in configure test.
23593         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
23594         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
23596 2017-07-10  Bruno Haible  <bruno@clisp.org>
23598         getlogin tests: Avoid #ifdefs when sharing code between modules.
23599         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
23600         * modules/getlogin-tests (Files): Likewise. Remove
23601         tests/test-getlogin_r.c.
23602         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
23603         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
23604         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
23605         getlogin().
23607 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
23609         getlogin: don’t assume one name per uid
23610         Problem reported by Wolfgang F. Muthmann (Bug#27640).
23611         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
23612         (ttyname): Remove test.
23613         * modules/getlogin_r-tests (ttyname): Remove test.
23614         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
23615         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
23616         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
23617         getlogin rather than getlogin_r.  This avoids code duplication.
23618         (main): Use isatty and fstat rather than ttyname and stat.
23619         Use getpwnam instead of getpwuid, to be portable to test platforms
23620         that have multiple login names for the same uid.
23622 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
23623             Bruno Haible  <bruno@clisp.org>
23625         glob: Fix more memory leaks.
23626         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
23627         returning.
23628         Reported by Tim Rühsen.
23630 2017-07-10  Bruno Haible  <bruno@clisp.org>
23632         Make sure $host and $host_os are defined when used.
23633         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
23634         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
23635         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
23636         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23637         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23638         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
23639         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
23640         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
23641         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23642         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
23643         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
23644         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
23645         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
23646         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
23647         m4_ifdef block.
23649 2017-07-09  Bruno Haible  <bruno@clisp.org>
23651         *printf: Fix cross-compilation guess for Solaris.
23652         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
23653         2010-12-21.
23655 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23656             Bruno Haible  <bruno@clisp.org>
23658         vasnprintf: port to macOS 10.13
23659         Problem reported by comex in:
23660         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
23661         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
23663 2017-07-06  Bruno Haible  <bruno@clisp.org>
23665         imaxdiv tests: Fix logic.
23666         * tests/test-imaxdiv.c (main): Use == instead of =.
23667         Reported by Coverity.
23669 2017-07-06  Bruno Haible  <bruno@clisp.org>
23671         uninorm/filter: Fix use-after-free bug.
23672         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
23673         sortbuf == filter->sortbuf invariant.
23674         Reported by Coverity.
23676 2017-07-06  Bruno Haible  <bruno@clisp.org>
23678         glob: Fix more memory leaks.
23679         * lib/glob.c (glob): Free dirname before returning.
23680         Reported by Coverity and Tim Rühsen.
23682 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23684         parse-datetime: fix uninit var bug
23685         Reported by Bruno Haible in:
23686         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
23687         * lib/parse-datetime.y (parse_datetime2): Do not use
23688         uninitialized.
23690 2017-07-05  Bruno Haible  <bruno@clisp.org>
23692         doc: Update for MSVC 14.
23693         * doc/posix-headers/*.texi: Add info about MSVC 14.
23694         * doc/posix-functions/*.texi: Likewise.
23695         * doc/pastposix-functions/*.texi: Likewise.
23696         * doc/glibc-headers/*.texi: Likewise.
23697         * doc/glibc-functions/*.texi: Likewise.
23699 2017-07-05  Bruno Haible  <bruno@clisp.org>
23701         sched: Fix build failure on native Windows (regression from 2017-06-19).
23702         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
23704 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
23706         stdioext: Port to OpenVMS.
23707         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
23708         * lib/fpending.c (fpending): Remove non-working VMS specific code.
23709         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
23710         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
23711         * lib/fpurge.c (fpurge): Likewise.
23712         * lib/freadable.c (freadable): Likewise.
23713         * lib/freadahead.c (freadahead): Likewise.
23714         * lib/freading.c (freading): Likewise.
23715         * lib/freadptr.c (freadptr): Likewise.
23716         * lib/freadseek.c (freadseek): Likewise.
23717         * lib/fseeko.c (fseeko): Likewise.
23718         * lib/fseterr.c (fseterr): Likewise.
23719         * lib/fwritable.c (fwriteable): Likewise.
23720         * lib/fwriting.c (fwriting): Likewise.
23722 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
23724         glob: Declare variables at the very start of their scope.
23725         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
23726         its separate scope, so the functions will compile on Haiku.
23728 2017-07-01  Bruno Haible  <bruno@clisp.org>
23730         logbl: Work around a glibc bug on PowerPC64LE.
23731         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
23732         numbers.
23733         * doc/posix-functions/logbl.texi: Update.
23735 2017-06-29  Bruno Haible  <bruno@clisp.org>
23737         stat, fstat: Compile stat-w32.c only on platforms that need it.
23738         Suggested by Paul Eggert.
23739         * modules/stat (configure.ac): Request stat-w32.o only on native
23740         Windows.
23741         * modules/fstat (configure.ac): Likewise.
23743 2017-06-25  Bruno Haible  <bruno@clisp.org>
23745         stat: Improve last change.
23746         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
23748 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
23750         stat: port to xlc 12.01
23751         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
23752         12.01 complains "Compilation unit is empty."
23754 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
23756         xalloc-oversized: port to icc
23757         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
23758         __builtin_mul_overflow if ICC is defined, as this results in
23759         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
23760         20170213.
23762 2017-06-19  Bruno Haible  <bruno@clisp.org>
23764         classpath: Avoid including config.h twice, as it produces warnings.
23765         Reported by John E. Malmberg <wb8tyw@gmail.com>.
23766         * lib/classpath.h: Conditionalize the include of config.h.
23768 2017-06-19  Bruno Haible  <bruno@clisp.org>
23769             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
23771         sched: Fix compilation failure on OpenVMS.
23772         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
23773         test whether <pthread.h> exists and defines struct sched_param.
23774         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
23776 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
23778         diffseq: port to GCC 7 with --enable-gcc-warnings
23779         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
23780         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
23781         not complain about big_snake being defined but not used.
23783 2017-06-15  Bruno Haible  <bruno@clisp.org>
23785         gettext-h: Update theoretical condition for use of variable size arrays.
23786         Reported by Paul Eggert.
23787         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
23788         to include the theoretical condition for availability of variable size
23789         arrays, if we could trust the value of __STDC_VERSION__.
23791 2017-06-12  Bruno Haible  <bruno@clisp.org>
23793         Relicense some modules under LGPLv2+.
23794         Daiki Ueno's approval is in
23795         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
23796         * modules/uniwidth/base (License): Change to LGPLv2+.
23797         * modules/uniwidth/width (License): Likewise.
23799 2017-06-11  Bruno Haible  <bruno@clisp.org>
23801         localename: Fix test failure on DragonFly BSD.
23802         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
23803         like FreeBSD.
23805 2017-06-11  Bruno Haible  <bruno@clisp.org>
23807         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
23808         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
23809         * lib/float.in.h: Likewise.
23810         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
23812 2017-06-11  Bruno Haible  <bruno@clisp.org>
23814         gnulib-tool: Clean up after autotools.
23815         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
23816         useless directory left over by the Autotools.
23818 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
23820         getopt-posix: port to glibc 2.25.90
23821         Problem reported by Daniel P. Berrange in:
23822         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
23823         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
23824         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
23825         #undef if __GETOPT_PREFIX is defined.
23827 2017-06-11  Bruno Haible  <bruno@clisp.org>
23829         strtod-obsolete: Fix license.
23830         * modules/strtod-obsolete (License): Change to LGPL.
23832 2017-06-10  Jim Meyering  <meyering@fb.com>
23834         maint: update to work with GCC7's -Werror=implicit-fallthrough=
23835         * lib/savewd.c (FALLTHROUGH): Define.
23836         (savewd_save, savewd_restore): Use this, rather than a comment,
23837         whenever one switch case falls through into the next.
23839 2017-06-08  Bruno Haible  <bruno@clisp.org>
23841         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
23842         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
23843         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
23844         case.
23846 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
23848         doc: remove robots, add prereqs
23849         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
23850         builds.  Simon's robot site does not seem to be up, so remove
23851         mentions of it for now.
23853 2017-06-08  Bruno Haible  <bruno@clisp.org>
23855         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
23856         * gnulib-tool (func_symlink_target): New function, extracted from
23857         func_symlink.
23858         (func_symlink, func_symlink_if_changed): Use it.
23860 2017-06-08  Bruno Haible  <bruno@clisp.org>
23862         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
23863         * gnulib-tool (func_ln_s): Determine cp_src correctly.
23865 2017-06-07  Bruno Haible  <bruno@clisp.org>
23867         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
23868         Reported by John E. Malmberg <wb8tyw@gmail.com> in
23869         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
23870         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
23871         override, pass 2 arguments to getcwd, not 3.
23873 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
23875         same-inode: port better to VMS 8.2 and later
23876         Problem reported by John E. Malmberg in:
23877         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
23878         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
23879         Use the usual POSIX definition.
23880         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
23882 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23884         error: fix POSIX violation for va_end
23885         Problem reported by Bruno Haible in:
23886         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
23887         * lib/error.c (error_tail): Do not call va_end here.
23888         (error, error_at_line): Call it here instead.
23890 2017-05-28  Bruno Haible  <bruno@clisp.org>
23892         c-strtod: Make it usable in C++ mode.
23893         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
23895 2017-05-25  Jim Meyering  <meyering@fb.com>
23897         quotearg: fix compilation failure due to FALLTHROUGH misuse
23898         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
23899         macro back to /* fall through */ comment.  The macro can apply only
23900         to a following case statement.  Reported by Assaf Gordon.
23902 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
23904         intprops: port to recent icc
23905         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
23906         but does not support __builtin_add_overflow etc.
23907         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
23908         Define to 0.
23910 2017-05-23  Karl Berry  <karl@freefriends.org>
23912         * config/srclist.txt (iconv.m4): sync broken, comment out
23913         until (hopefully) the next gettext release.
23915 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
23917         Remove repeated words in comments.
23919 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
23921         fallthrough: reinstate a FALLTHROUGH instance in quotearg
23922         quotearg.c: Reinstate this instance which is significant
23923         when the if branch is not taken.
23925 2017-05-21  Bruno Haible  <bruno@clisp.org>
23927         gnulib-tool: Add options to create hard links.
23928         * gnulib-tool (func_usage): Document options --hardlink,
23929         --local-hardlink, --more-hardlinks.
23930         (func_symlink): Renamed from func_ln.
23931         (func_symlink_if_changed): Renamed from func_ln_if_changed.
23932         (func_hardlink): New function.
23933         (copymode, lcopymode): New variables.
23934         (symbolic, lsymbolic): Remove variables.
23935         (Options): Implement options --hardlink, --local-hardlink,
23936         --more-hardlinks.
23937         (func_should_link): Renamed from func_should_symlink. Set copyaction.
23938         (func_add_file, func_update_file): Update invocation of
23939         func_should_link. Invoke func_hardlink when appropriate.
23940         (func_import): Update comments.
23941         (func_create_testdir): Update invocation of func_should_link. Invoke
23942         func_hardlink when appropriate.
23943         Finally, invoke 'git update-index --refresh' to mitigate the effects of
23944         the hard links on git.
23946 2017-05-20  Bruno Haible  <bruno@clisp.org>
23948         argp: Simplify bit manipulation.
23949         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
23950         on a signed integer type.
23952 2017-05-20  Bruno Haible  <bruno@clisp.org>
23954         Avoid wrong configure results with gcc -fsanitize=address.
23955         This completes the work done on 2016-02-06 on this topic.
23956         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
23957         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23958         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23959         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23960         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
23961         returning.
23962         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
23963         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
23964         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23965         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23966         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23967         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
23968         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
23969         free allocated memory before returning.
23970         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23971         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
23972         objects before returning.
23973         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
23974         returning.
23976 2017-05-20  Bruno Haible  <bruno@clisp.org>
23978         gnulib-tool: Don't create hard links between gnulib and its testdirs.
23979         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
23981 2017-05-20  Bruno Haible  <bruno@clisp.org>
23983         argp, tsearch tests: Fix file list.
23984         * modules/argp-tests (Files): Add tests/macros.h.
23985         * modules/tsearch-tests (Files): Likewise.
23987 2017-05-20  Bruno Haible  <bruno@clisp.org>
23989         getopt-posix tests: Remove redundant include.
23990         * tests/test-getopt.h: Don't include "macros.h". It's already included
23991         by tests/test-getopt-main.h.
23993 2017-05-19  Jim Meyering  <meyering@fb.com>
23995         dfa: two small simplifications
23996         * lib/dfa.c (build_state): Avoid repeating longer expressions.
23998 2017-05-18  Jim Meyering  <meyering@fb.com>
24000         fallthrough: update for GCC 7/8
24001         * lib/quotearg.c (FALLTHROUGH): New macro.
24002         Use it whenever one switch case falls through into the next,
24003         replacing "/* Fall through */" comments.  This exposed one
24004         instance of an unwarranted "fall through" comment: unwarranted
24005         because it preceded a "goto" label not a case statement.
24006         * lib/freopen-safer.c (freopen_safer): Likewise.
24007         * lib/fts.c (leaf_optimization_applies): Likewise.
24008         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
24009         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
24010         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
24011         tests/macros.h for the definition.
24012         * tests/test-argp.c (group1_parser): Likewise.
24013         * tests/test-getopt.h (getopt_loop): Likewise.
24015 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24017         argp: fix shift bug
24018         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
24019         behavior on shift overflow, caught by gcc -fsanitize=undefined.
24021         argp: fix pointer-subtraction bug
24022         * lib/argp-help.c (hol_append): Don’t subtract pointers to
24023         different arrays, as this can run afoul of -fcheck-pointer-bounds.
24024         See the thread containing Bruno Haible’s report in:
24025         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
24027 2017-05-19  Bruno Haible  <bruno@clisp.org>
24029         printf-posix tests: Avoid test failure with "gcc --coverage".
24030         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
24031         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
24032         than 5000000.
24033         * tests/test-fprintf-posix2.c (main): Likewise.
24035 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24037         closeout: don’t close stderr when sanitizing
24038         * NEWS: Document this.
24039         * lib/closeout.c (__has_feature): New macro, if not already defined.
24040         (SANITIZE_ADDRESS): New constant.
24041         (close_stdout): Don’t close stderr if sanitizing addresses.
24043 2017-05-19  Bruno Haible  <bruno@clisp.org>
24045         get-rusage-data tests: Avoid failure on Linux/glibc.
24046         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
24047         on glibc systems.
24049 2017-05-18  Bruno Haible  <bruno@clisp.org>
24051         localename: Include necessary header files on Cygwin.
24052         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
24053         where NL_LOCALE_NAME is defined.
24055 2017-05-18  Bruno Haible  <bruno@clisp.org>
24057         gettext: Update macros from gettext git.
24058         * m4/intldir.m4: Require Autoconf >= 2.60.
24059         * m4/progtest.m4: Fix typos in copyright notice.
24061 2017-05-18  Bruno Haible  <bruno@clisp.org>
24063         copy-file tests: Fix link error (regression from 2017-05-01).
24064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24065         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
24066         $(LIB_CLOCK_GETTIME).
24068 2017-05-18  Bruno Haible  <bruno@clisp.org>
24070         unicase/special-casing: Fix incompatibility with gperf-3.0.4
24071         (regression from 2017-02-13).
24072         * lib/unicase/special-casing.in.h: Renamed from
24073         lib/unicase/special-casing.h.
24074         * modules/unicase/special-casing (Files): Add
24075         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
24076         (Makefile.am): Add rule for generating unicase/special-casing.h.
24077         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
24078         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
24079         not "special-casing.h".
24080         * lib/unicase/u*.c: Likewise.
24082 2017-05-17  Bruno Haible  <bruno@clisp.org>
24084         README: Don't ask people to read a TeXinfo file.
24085         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
24086         * README: Tell people how to read the HTML formatted manual.
24088 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
24090         parse-datetime: Fix memleak
24091         * lib/parse-datetime.y (parse_datetime2): Cleanup on
24092         localtime_rz() failure.
24094 2017-05-16  Bruno Haible  <bruno@clisp.org>
24096         javacomp: Fix handle leak.
24097         Found by Coverity.
24098         * lib/javacomp.c (get_classfile_version): Close fd before returning.
24100 2017-05-16  Bruno Haible  <bruno@clisp.org>
24102         relocate: Make it easier to reclaim allocated memory.
24103         * lib/relocatable.h (relocate2): New declaration/macro.
24104         * lib/relocatable.c (relocate2): New function.
24105         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
24106         relocate2 function.
24107         * lib/localcharset.c (relocate2): Define fallback.
24108         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
24109         allocated memory.
24110         * lib/javaversion.c (relocate2): Define fallback.
24111         (javaexec_version): Invoke relocate2 instead of relocate. Free the
24112         allocated memory.
24114 2017-05-16  Bruno Haible  <bruno@clisp.org>
24116         relocate: Simplify EMX specific code.
24117         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
24118         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
24120 2017-05-16  Bruno Haible  <bruno@clisp.org>
24122         sigpipe tests: Fix file list.
24123         * modules/sigpipe-tests (Files): Add tests/macros.h.
24125 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
24127         manywarnings: update for GCC 7
24128         * build-aux/gcc-warning.spec:
24129         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
24130         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
24131         requires a non-comment fallthrough attribute.  This is a bit
24132         cleaner than the comment versions.
24133         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
24134         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
24135         Use it whenever one switch case falls through into the next.
24136         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
24137         Use FALLTHROUGH macro.
24139 2017-05-15  Bruno Haible  <bruno@clisp.org>
24141         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
24142         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
24143         @ALLOCA@, not @LTALLOCA@.
24145 2017-05-15  Bruno Haible  <bruno@clisp.org>
24147         sys_select: Avoid "was expanded before it was required" warning.
24148         * modules/sys_select (configure.ac): Require, not invoke,
24149         gl_HEADER_SYS_SELECT.
24151 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
24153         gnulib-tool: improve GNU Make debugging
24154         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
24155         Report autoconf diagnostics when it fails, in the output makefile.
24157 2017-05-14  Bruno Haible  <bruno@clisp.org>
24159         stat-time tests: Improve comment.
24160         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
24162 2017-05-14  Bruno Haible  <bruno@clisp.org>
24164         same-inode: Adapt for windows-stat-inodes.
24165         * lib/same-inode.h: Include <sys/types.h>.
24166         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
24167         * modules/same-inode (Depends-on): Add sys_types.
24169 2017-05-14  Bruno Haible  <bruno@clisp.org>
24171         windows-stat-inodes: New module.
24172         * m4/windows-stat-inodes.m4: New file.
24173         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
24174         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
24175         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
24176         (_GL_WINDOWS_STAT_INODES): New macro.
24177         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
24178         (GetFileInformationByHandleExFunc): New variable.
24179         (initialize): Initialize it.
24180         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
24181         st_ino appropriately.
24182         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
24183         a fallback, because it does not provide st_dev and st_ino values.
24184         * modules/fstat (Depends-on): Add 'verify'.
24185         * modules/windows-stat-inodes: New file.
24186         * doc/windows-stat-inodes.texi: New file.
24187         * doc/gnulib.texi: Include it.
24188         * doc/posix-headers/sys_stat.texi: Mention the new module.
24190 2017-05-14  Bruno Haible  <bruno@clisp.org>
24192         stat-time tests: Workaround for native Windows.
24193         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
24194         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
24195         New variables.
24196         (initialize_filenames): New function.
24197         (main): Invoke it.
24198         (cleanup, prepare_test): Update.
24200 2017-05-14  Bruno Haible  <bruno@clisp.org>
24202         stat-time: Adapt for windows-stat-timespec.
24203         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
24204         entire st_ctim field.
24206 2017-05-13  Jim Meyering  <meyering@fb.com>
24208         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
24209         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
24210         file that uses the assume macro, claiming that verify.h is unused.
24212 2017-05-13  Bruno Haible  <bruno@clisp.org>
24214         Use symbolic values for _WIN32_WINNT.
24215         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
24216         * lib/sethostname.c (_WIN32_WINNT): Likewise.
24218 2017-05-13  Bruno Haible  <bruno@clisp.org>
24220         year2038: New module.
24221         * m4/year2038.m4: New file.
24222         * modules/year2038: New file.
24223         * doc/year2038.texi: New file.
24224         * doc/gnulib.texi: Include it.
24226 2017-05-13  Bruno Haible  <bruno@clisp.org>
24228         largefile: Simplify.
24229         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
24230         of _GL_WINDOWS_64_BIT_ST_SIZE.
24232 2017-05-13  Bruno Haible  <bruno@clisp.org>
24234         largefile: Improve and document.
24235         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
24236         the mingw headers already define 'stat' appropriately.
24237         * modules/largefile (Description): Clarify.
24238         * doc/largefile.texi: New file.
24239         * doc/gnulib.texi: Include it.
24240         * doc/posix-headers/sys_types.texi: Update.
24242 2017-05-13  Bruno Haible  <bruno@clisp.org>
24244         truncate: New module.
24245         * lib/unistd.in.h (truncate): New declaration.
24246         * lib/truncate.c: New file.
24247         * m4/truncate.m4: New file.
24248         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
24249         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
24250         REPLACE_TRUNCATE.
24251         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
24252         HAVE_TRUNCATE, REPLACE_TRUNCATE.
24253         * modules/truncate: New file.
24254         * tests/test-unistd-c++.cc (truncate): Test signature.
24255         * doc/posix-functions/truncate.texi: Mention the new module.
24257         * tests/test-truncate.c: New file.
24258         * modules/truncate-tests: New file.
24260 2017-05-13  Bruno Haible  <bruno@clisp.org>
24262         windows-stat-timespec: New module.
24263         * modules/windows-stat-timespec: New file.
24264         * m4/windows-stat-timespec.m4: New file.
24265         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
24266         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
24267         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
24268         fields st_atim, st_mtim, st_ctim.
24269         (st_atime, st_mtime, st_ctime): Define as macros.
24270         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
24271         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
24272         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
24273         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
24274         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
24275         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
24276         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
24277         FILETIME to 'struct timespec', not 'time_t'.
24278         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
24279         FILETIME to 'struct timespec', not 'time_t'.
24280         * lib/stat-time.h (STAT_TIMESPEC): Define also if
24281         _GL_WINDOWS_STAT_TIMESPEC.
24282         * doc/windows-stat-timespec.texi: New file.
24283         * doc/gnulib.texi: Include it.
24285 2017-05-13  Bruno Haible  <bruno@clisp.org>
24287         windows-stat-override: New module.
24288         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
24289         definition. Define GNULIB_defined_struct_stat.
24290         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
24291         link error if this symbol is used and the corresponding module is not
24292         in use.
24293         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
24294         GNULIB_OVERRIDES_STRUCT_STAT.
24295         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24296         GNULIB_OVERRIDES_STRUCT_STAT.
24297         * modules/sys_stat (Makefile.am): Substitute
24298         GNULIB_OVERRIDES_STRUCT_STAT.
24299         * modules/windows-stat-override: New file.
24301 2017-05-13  Bruno Haible  <bruno@clisp.org>
24303         fstat: Fix module dependency conditions.
24304         * modules/fstat (Depends-on): Fix typo.
24306 2017-05-13  Bruno Haible  <bruno@clisp.org>
24308         stat, fstat: Complete removal of old native Windows code.
24309         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
24310         * lib/fstat.c: Likewise.
24311         * lib/stat-w32.c: Likewise.
24313 2017-05-13  Bruno Haible  <bruno@clisp.org>
24315         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
24316         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
24318 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
24320         getopt-posix: port to mingw
24321         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
24322         Problem reported by Daniel P. Berrage in:
24323         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
24325 2017-05-11  Bruno Haible  <bruno@clisp.org>
24327         gettimeofday: Increase precision on mingw.
24328         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
24329         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
24330         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
24331         GetSystemTimePreciseAsFileTime based implementation always.
24332         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
24333         mingw.
24335 2017-05-11  Bruno Haible  <bruno@clisp.org>
24337         poll: Fix confusion between SOCKETs and FDs on native Windows.
24338         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
24339         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
24341 2017-05-11  Bruno Haible  <bruno@clisp.org>
24343         doc: Clarify doc about socket functions on native Windows.
24344         This reworks doc that was added on 2008-09-29.
24345         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
24346         clearer wording.
24347         * doc/posix-functions/accept.texi: Use clearer wording.
24348         * doc/posix-functions/bind.texi: Likewise.
24349         * doc/posix-functions/connect.texi: Likewise.
24350         * doc/posix-functions/getpeername.texi: Likewise.
24351         * doc/posix-functions/getsockname.texi: Likewise.
24352         * doc/posix-functions/getsockopt.texi: Likewise.
24353         * doc/posix-functions/ioctl.texi: Likewise.
24354         * doc/posix-functions/listen.texi: Likewise.
24355         * doc/posix-functions/recv.texi: Likewise.
24356         * doc/posix-functions/recvfrom.texi: Likewise.
24357         * doc/posix-functions/send.texi: Likewise.
24358         * doc/posix-functions/sendto.texi: Likewise.
24359         * doc/posix-functions/setsockopt.texi: Likewise.
24360         * doc/posix-functions/shutdown.texi: Likewise.
24361         * doc/posix-functions/socket.texi: Likewise.
24363 2017-05-10  Bruno Haible  <bruno@clisp.org>
24365         poll: Fix link error on native Windows.
24366         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
24368 2017-05-10  Bruno Haible  <bruno@clisp.org>
24370         time: Fix missing initialization of HAVE_TIMEZONE_T.
24371         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
24372         here...
24373         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
24374         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
24375         gl_HEADER_SYS_TIME_H_DEFAULTS.
24376         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
24377         (configure.ac): Remove useless quoting.
24379 2017-05-10  Bruno Haible  <bruno@clisp.org>
24381         Implement a way to opt out from MSVC support, part 2.
24382         * modules/msvc-inval (Include): Document recommended idiom.
24383         * modules/msvc-nothrow (Include): Likewise.
24385         Implement a way to opt out from MSVC support.
24386         This is useful for Emacs.
24387         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
24388         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
24389         * lib/error.c: Likewise.
24390         * lib/fcntl.c: Likewise.
24391         * lib/flock.c: Likewise.
24392         * lib/fstat.c: Likewise.
24393         * lib/fsync.c: Likewise.
24394         * lib/ioctl.c: Likewise.
24395         * lib/isapipe.c: Likewise.
24396         * lib/lseek.c: Likewise.
24397         * lib/nonblocking.c: Likewise.
24398         * lib/poll.c: Likewise.
24399         * lib/select.c: Likewise.
24400         * lib/sockets.h: Likewise.
24401         * lib/sockets.c: Likewise.
24402         * lib/stdio-read.c: Likewise.
24403         * lib/stdio-write.c: Likewise.
24404         * lib/utimens.c: Likewise.
24405         * lib/w32sock.h: Likewise.
24406         * lib/w32spawn.h: Likewise.
24407         * tests/test-cloexec.c: Likewise.
24408         * tests/test-dup-safer.c: Likewise.
24409         * tests/test-dup2.c: Likewise.
24410         * tests/test-dup3.c: Likewise.
24411         * tests/test-fcntl.c: Likewise.
24412         * tests/test-pipe.c: Likewise.
24413         * tests/test-pipe2.c: Likewise.
24414         * lib/ftruncate.c: Likewise.
24415         (chsize_nothrow): Renamed from chsize.
24416         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
24417         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
24418         * lib/close.c: Likewise.
24419         * lib/dup.c: Likewise.
24420         * lib/fclose.c: Likewise.
24421         * lib/raise.c: Likewise.
24422         * tests/test-fgetc.c: Likewise.
24423         * tests/test-fputc.c: Likewise.
24424         * tests/test-fread.c: Likewise.
24425         * tests/test-fwrite.c: Likewise.
24426         * lib/getdtablesize.c: Likewise.
24427         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
24428         * lib/isatty.c: Don't include msvc-inval.h if
24429         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
24430         Include <io.h> as an alternative to msvc-nothrow.h.
24431         * lib/read.c: Likewise.
24432         * lib/write.c: Likewise.
24433         * lib/dup2.c: Likewise.
24434         (dup2_nothrow): New function.
24435         (ms_windows_dup2): Use it.
24436         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
24437         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
24438         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
24439         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
24440         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
24441         * m4/read.m4 (gl_FUNC_READ): Likewise.
24442         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
24443         * doc/windows-without-msvc.texi: New file.
24444         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
24445         section.
24447 2017-05-10  Bruno Haible  <bruno@clisp.org>
24449         wait-process: Adjust native Windows support.
24450         * lib/wait-process.c: Use the usual condition for recognizing a native
24451         Windows platform.
24453 2017-05-10  Bruno Haible  <bruno@clisp.org>
24455         doc: New chapter "Native Windows Support".
24456         * doc/gnulib.texi (Native Windows Support): New chapter.
24457         * doc/windows-libtool.texi: Small wording changes.
24458         * doc/windows-sockets.texi: Small wording and formatting changes.
24460 2017-05-10  Bruno Haible  <bruno@clisp.org>
24462         doc: Move section "Library version handling".
24463         * doc/gnulib.texi: Move section "Library version handling"
24464         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
24466 2017-05-10  Bruno Haible  <bruno@clisp.org>
24468         doc: Move section "Running self-tests under valgrind".
24469         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
24470         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
24472 2017-05-10  Bruno Haible  <bruno@clisp.org>
24474         doc: New chapter "Build Infrastructure Modules".
24475         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
24477 2017-05-10  Bruno Haible  <bruno@clisp.org>
24479         Prepare for reordering sections in the manual.
24480         * doc/gnulib.texi: Move several sections to separate files. Include
24481         these files.
24482         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
24483         * doc/obsolete.texi: Likewise.
24484         * doc/extra-tests.texi: Likewise.
24485         * doc/transversal.texi: Likewise.
24486         * doc/namespace.texi: Likewise.
24487         * doc/check-version.texi: Likewise.
24488         * doc/windows-sockets.texi: Likewise.
24489         * doc/windows-libtool.texi: Likewise.
24490         * doc/licenses-texi.texi: Likewise.
24491         * doc/build-automation.texi: Likewise.
24492         * doc/c-locale.texi: Likewise.
24494 2017-05-10  Bruno Haible  <bruno@clisp.org>
24496         Fix instructions how to update manual on www.gnu.org.
24497         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
24499 2017-05-09  Bruno Haible  <bruno@clisp.org>
24501         tzset: Expand comment about TZ problem on native Windows.
24502         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
24503         Paul Eggert.
24504         * lib/ctime.c (rpl_ctime): Likewise.
24505         * lib/localtime.c (rpl_localtime): Likewise.
24506         * lib/mktime.c (mktime): Likewise.
24507         * lib/strftime-fixes.c (rpl_strftime): Likewise.
24508         * lib/wcsftime.c (rpl_wcsftime): Likewise.
24510 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
24512         intprops: don’t depend on ‘verify’
24513         Problem reported by Ævar Arnfjörð Bjarmason in:
24514         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
24515         * lib/intprops.h: Do not include verify.h, and move compile-time
24516         checks from here ...
24517         * tests/test-intprops.c (main): ... to here, if they’re not here
24518         already.  Check widths of other standard integer types.
24519         * modules/intprops (Depends-on): Remove ‘verify’.
24521 2017-05-07  Bruno Haible  <bruno@clisp.org>
24523         utimens: On native Windows, support 100ns resolution also if fd < 0.
24524         * lib/utime.in.h: Include <time.h>.
24525         (_gl_utimens_windows): New declaration.
24526         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
24527         (utime): Invoke it.
24528         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
24529         instead of utime.
24530         * modules/utime (Depends-on): Add 'time'.
24532 2017-05-07  Bruno Haible  <bruno@clisp.org>
24534         utimens: Improve error code on native Windows.
24535         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
24536         error code EACCES, not EINVAL.
24538 2017-05-07  Bruno Haible  <bruno@clisp.org>
24540         utime: Handle more Windows error codes.
24541         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
24542         Based on explanations by Billy O'Neal.
24544 2017-05-05  Bruno Haible  <bruno@clisp.org>
24546         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
24547         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
24548         union.
24549         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
24550         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
24551         value of cipher->IV.
24553 2017-05-05  Bruno Haible  <bruno@clisp.org>
24555         wctype-h-c++-tests: Update.
24556         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
24558 2017-05-05  Bruno Haible  <bruno@clisp.org>
24560         wchar-c++-tests: Update.
24561         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
24563 2017-05-05  Bruno Haible  <bruno@clisp.org>
24565         utime-h-c++-tests: New module.
24566         * tests/test-utime-h-c++.cc: New file.
24567         (utime): Declare, missing since 2017-04-30.
24568         * modules/utime-h-c++-tests: New file.
24570 2017-05-05  Bruno Haible  <bruno@clisp.org>
24572         unistd-c++-tests: Update.
24573         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
24574         (read): Declare, missing since 2011-04-15.
24575         (sethostname): Declare, missing since 2011-12-03.
24577 2017-05-05  Bruno Haible  <bruno@clisp.org>
24579         time-c++-tests: Update.
24580         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
24581         (localtime, gmtime): Declare, missing since 2017-04-30.
24582         (ctime): Declare, missing since 2017-04-30.
24583         (strftime): Declare, missing since 2017-04-30.
24584         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
24585         2015-07-24.
24587 2017-05-05  Bruno Haible  <bruno@clisp.org>
24589         sys_resource-c++-tests: New module.
24590         * tests/test-sys_resource-c++.cc: New file.
24591         (getrusage): Declare, missing since 2012-04-13.
24592         * modules/sys_resource-c++-tests: New file.
24594 2017-05-05  Bruno Haible  <bruno@clisp.org>
24596         strings-c++-tests: New module.
24597         * tests/test-strings-c++.cc: New file.
24598         (ffs): Declare, missing since 2011-07-12.
24599         * modules/strings-c++-tests: New file.
24601 2017-05-05  Bruno Haible  <bruno@clisp.org>
24603         string-c++-tests: Update.
24604         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
24605         (ffsll): Declare, missing since 2011-07-15.
24607 2017-05-05  Bruno Haible  <bruno@clisp.org>
24609         stdlib-c++-tests: Update.
24610         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
24611         2011-10-18.
24612         (ptsname_r): Declare, missing since 2011-11-07.
24613         (qsort_r): Declare, missing since 2014-08-29.
24614         (random, srandom, initstate, setstate): Declare, missing since
24615         2012-01-14.
24616         (secure_getenv): Declare, missing since 2013-02-05.
24618 2017-05-05  Bruno Haible  <bruno@clisp.org>
24620         stdio-c++-tests: Update.
24621         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
24623 2017-05-05  Bruno Haible  <bruno@clisp.org>
24625         signal-h-c++-tests: Update.
24626         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
24628 2017-05-05  Bruno Haible  <bruno@clisp.org>
24630         math-c++-tests: Update.
24631         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
24632         (fma): Declare, missing since 2011-10-17.
24633         (fmal): Declare, missing since 2011-10-17.
24635 2017-05-05  Bruno Haible  <bruno@clisp.org>
24637         locale-c++-tests: Update.
24638         * tests/test-locale-c++.cc (localeconv): Declare, missing since
24639         2012-03-25.
24641 2017-05-05  Bruno Haible  <bruno@clisp.org>
24643         inttypes-c++-tests: New module.
24644         * tests/test-inttypes-c++.cc: New file.
24645         (strtoimax): Declare, missing since 2012-01-05.
24646         (strtoumax): Declare, missing since 2012-01-05.
24647         * modules/inttypes-c++-tests: New file.
24649 2017-05-05  Bruno Haible  <bruno@clisp.org>
24651         dirent-c++-tests: Update.
24652         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
24653         (rewinddir): Declare, missing since 2011-09-13.
24654         (dirfd): Declare, missing since 2010-03-08.
24656 2017-05-04  Bruno Haible  <bruno@clisp.org>
24658         argp: Fix mistake in 2017-04-23 commit.
24659         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
24660         assume that strerror_r returns 'int', not 'char *'.
24662 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
24664         argp: Fix typo.
24665         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
24667 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24669         utimens: port to Emacs + MS-Windows
24670         Skip the new MS-Windows-specific code if Emacs.
24671         * lib/utimens.c [EMACS_CONFIGUATION]:
24672         Avoid new MS-Windows-specific code.
24673         (USE_SETFILETIME): New macro.
24674         (fdutimens): Use it.
24676 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24678         tzset: update doc for TZ problems on MS-Windows
24679         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
24680         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
24681         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
24682         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
24683         * doc/posix-functions/wcsftime.texi:
24684         Mention some issues with TZ under MS-Windows.
24686 2017-05-01  Bruno Haible  <bruno@clisp.org>
24688         copy-file: Fix build error on mingw.
24689         * modules/copy-file (Depends-on): Add 'close'.
24691 2017-05-01  Bruno Haible  <bruno@clisp.org>
24693         tzset: Work around TZ problem on native Windows.
24694         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
24695         Windows, set REPLACE_TZSET to 1.
24696         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
24697         invoke '_tzset' instead of 'tzset'.
24698         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
24700         * modules/time_rz (Depends-on): Add tzset.
24701         * lib/time_rz.c (tzset): Remove fallback definition.
24702         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
24704 2017-05-01  Bruno Haible  <bruno@clisp.org>
24706         mktime: Fix dependencies.
24707         * modules/mktime (Depends-on): Add 'time'.
24709 2017-05-01  Bruno Haible  <bruno@clisp.org>
24711         New module 'localtime-buffer', split off from module 'gettimeofday'.
24712         * lib/localtime-buffer.h: New file.
24713         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
24714         * lib/time.in.h (tzset): New declaration.
24715         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
24716         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
24717         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
24718         moved to lib/localtime-buffer.c or lib/tzset.c.
24719         * m4/localtime-buffer.m4: New file.
24720         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
24721         HAVE_TZSET, REPLACE_TZSET.
24722         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
24723         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
24724         gl_LOCALTIME_BUFFER_NEEDED.
24725         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
24726         since 2007-01-18.
24727         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
24728         tzset.
24729         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
24730         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
24731         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
24732         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
24733         * modules/localtime-buffer: New file.
24734         * modules/time (Depends-on): Remove 'gettimeofday'.
24735         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
24736         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
24737         * modules/tzset (Description): Enable hyperlink to POSIX spec.
24738         (Files): Add lib/tzset.c.
24739         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
24740         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
24741         gl_TIME_MODULE_INDICATOR.
24742         * modules/gettimeofday (Depends-on): Add localtime-buffer.
24744 2017-05-01  Bruno Haible  <bruno@clisp.org>
24746         copy-file: Preserve sub-second time stamps.
24747         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
24748         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
24749         transport the time stamps from the original file to the destination
24750         file.
24751         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
24752         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
24753         utime-h.
24755 2017-05-01  Bruno Haible  <bruno@clisp.org>
24757         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
24758         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
24759         also on MSVC.
24760         Reported by Eli Zaretskii <eliz@gnu.org>.
24762 2017-05-01  Bruno Haible  <bruno@clisp.org>
24764         wchar: Fix compilation error with the original mingw.org mingw.
24765         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24766         <stddef.h> instead.
24767         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
24768         gl_WCTYPE_H.
24769         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
24770         gl_TYPE_WINT_T_PREREQ instead.
24771         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
24772         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
24773         Reported by Eli Zaretskii <eliz@gnu.org>.
24775 2017-04-30  Bruno Haible  <bruno@clisp.org>
24777         utimecmp: Add support for native Windows.
24778         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
24780 2017-04-30  Bruno Haible  <bruno@clisp.org>
24782         utimens: Add support for native Windows.
24783         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
24784         (fdutimens): Provide a native Windows implementation, like utime.c with
24785         added tv_nsec support.
24786         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
24787         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
24789 2017-04-30  Bruno Haible  <bruno@clisp.org>
24791         wcsftime: New module.
24792         * lib/wchar.in.h (wcsftime): New declaration.
24793         * lib/wcsftime.c: New file.
24794         * m4/wcsftime.m4: New file.
24795         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
24796         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
24797         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24798         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
24799         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24800         * modules/wcsftime: New file.
24801         * doc/posix-functions/wcsftime.texi: Mention the new module.
24803 2017-04-30  Bruno Haible  <bruno@clisp.org>
24805         strftime-fixes: New module.
24806         * lib/time.in.h (strftime): New declaration.
24807         * lib/strftime-fixes.c: New file.
24808         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
24809         (gl_FUNC_STRFTIME): Remove macro.
24810         * m4/strftime-fixes.m4: New file.
24811         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
24812         REPLACE_STRFTIME.
24813         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
24814         REPLACE_STRFTIME.
24815         * modules/strftime-fixes: New file.
24816         * doc/posix-functions/strftime.texi: Mention the new module.
24818 2017-04-30  Bruno Haible  <bruno@clisp.org>
24820         mktime: Work around TZ problem on native Windows.
24821         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
24822         from the native Windows workaround.
24823         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
24824         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
24825         'guessing no'.
24826         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
24827         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
24828         NEED_MKTIME_WINDOWS.
24829         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
24830         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
24831         NEED_MKTIME_INTERNAL.
24832         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
24833         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
24834         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
24835         not REPLACE_MKTIME.
24836         * doc/posix-functions/mktime.texi: Mention the native Windows
24837         workaround.
24839 2017-04-30  Bruno Haible  <bruno@clisp.org>
24841         localtime: New module.
24842         * lib/time.in.h (localtime): Declare also if requested by module
24843         'localtime'.
24844         * lib/localtime.c: New file.
24845         * m4/localtime.m4: New file.
24846         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
24847         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
24848         * modules/localtime: New file.
24849         * doc/posix-functions/localtime.texi: Mention the new module.
24851 2017-04-30  Bruno Haible  <bruno@clisp.org>
24853         ctime: New module.
24854         * lib/time.in.h (ctime): New declaration.
24855         * lib/ctime.c: New file.
24856         * m4/ctime.m4: New file.
24857         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
24858         REPLACE_CTIME.
24859         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
24860         * modules/ctime: New file.
24861         * doc/posix-functions/ctime.texi: Mention the new module.
24863 2017-04-30  Bruno Haible  <bruno@clisp.org>
24865         gettimeofday: Provide higher resolution on native Windows.
24866         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
24867         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
24868         (initialize): Initialize it.
24869         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
24870         'struct timeval'. Don't use _ftime().
24871         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
24872         <sys/timeb.h> and _ftime.
24874 2017-04-30  Bruno Haible  <bruno@clisp.org>
24876         Document the problem with the Cygwin environment variable TZ.
24877         * doc/posix-functions/tzset.texi: Add note about TZ.
24878         * doc/posix-functions/ctime.texi: Likewise.
24879         * doc/posix-functions/localtime.texi: Likewise.
24880         * doc/posix-functions/mktime.texi: Likewise.
24881         * doc/posix-functions/strftime.texi: Likewise.
24882         * doc/posix-functions/wcsftime.texi: Likewise.
24883         * doc/pastposix-functions/ftime.texi: Likewise.
24885 2017-04-30  Bruno Haible  <bruno@clisp.org>
24887         utime-tests: New module.
24888         * tests/test-utime.c: New file, based on tests/test-utimens.h.
24889         * tests/test-utimens-common.h: Include <sys/stat.h>.
24890         * modules/utime-tests: New file.
24892 2017-04-29  Bruno Haible  <bruno@clisp.org>
24894         utime: New module.
24895         * lib/utime.in.h: Add comment for snippets.
24896         (utime): New declaration.
24897         * lib/utime.c: New file.
24898         * m4/utime.m4: New file.
24899         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
24900         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
24901         REPLACE_UTIME.
24902         * modules/utime-h (Depends-on): Add snippets.
24903         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
24904         Insert snippets.
24905         * modules/utime: New file.
24906         * doc/posix-functions/utime.texi: Mention the new module.
24908 2017-04-29  Bruno Haible  <bruno@clisp.org>
24910         utime-h: Modernize handling of 'struct utimbuf'.
24911         * lib/utime.in.h: Include next <utime.h> if it exists.
24912         (utimbuf): Define to _utimbuf on native Windows.
24913         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
24914         Set UTIME_H on native Windows.
24915         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
24916         * modules/utime-h (Depends-on): Add include_next.
24917         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
24918         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
24920         * lib/utimens.c (utimbuf): Remove fallback definition.
24921         * m4/utimens.m4 (gl_UTIMENS): Don't require
24922         gl_CHECK_TYPE_STRUCT_UTIMBUF.
24923         * m4/utimbuf.m4: Remove file.
24924         * modules/utimens (Files): Remove m4/utimbuf.m4.
24926 2017-04-29  Bruno Haible  <bruno@clisp.org>
24928         Make use of module 'utime-h'.
24929         * modules/copy-file (Depends-on): Add utime-h.
24930         * lib/copy-file.c: Assume that <utime.h> exists.
24931         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
24933         * modules/utimens (Depends-on): Add utime-h.
24934         * lib/utimens.c: Assume that <utime.h> exists.
24936 2017-04-29  Bruno Haible  <bruno@clisp.org>
24938         utime-h: New module.
24939         * m4/utime_h.m4: New file.
24940         * lib/utime.in.h: New file.
24941         * modules/utime-h: New file.
24942         * doc/posix-headers/utime.texi: Mention the new module.
24944         * tests/test-utime-h.c: New file.
24945         * modules/utime-h-tests: New file.
24947 2017-04-30  Bruno Haible  <bruno@clisp.org>
24949         Fix a few typos.
24950         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
24951         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
24952         * doc/posix-functions/fstat.texi: Fix a plural typo.
24953         * doc/posix-functions/stat.texi: Likewise.
24954         * m4/include_next.m4: Update comments.
24956 2017-04-29  Bruno Haible  <bruno@clisp.org>
24958         error: Fix mistake in 2017-04-23 commit.
24959         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
24960         assume that strerror_r returns 'int', not 'char *'.
24962 2017-04-29  Bruno Haible  <bruno@clisp.org>
24964         stat: Fix time_t values and other problems on native Windows platforms.
24965         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
24966         implementations of stat().
24967         * lib/stat.c: Include filename.h instead of dosname.h. Include
24968         malloca.h, stat-w32.h.
24969         (is_unc_root): New function.
24970         (rpl_stat): New implementation for native Windows. Remove
24971         REPLACE_FUNC_STAT_DIR code.
24972         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
24973         Don't define REPLACE_FUNC_STAT_DIR.
24974         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
24975         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24976         (Depends-on): Remove dosname. Add filename, malloca.
24977         (configure.ac): Also compile lib/stat-w32.c.
24979 2017-04-29  Bruno Haible  <bruno@clisp.org>
24981         fstat: Fix time_t values on native Windows platforms.
24982         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
24983         * lib/stat-w32.h: New file.
24984         * lib/stat-w32.c: New file.
24985         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
24986         stat-w32.h instead.
24987         (fstat_nothrow): Remove function.
24988         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
24989         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
24990         always.
24991         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
24992         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24993         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
24994         (configure.ac): Also compile lib/stat-w32.c.
24996 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
24998         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
24999         Problem reported by Assaf Gordon and Gavin Smith in:
25000         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
25001         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
25002         #define this, too.
25004 2017-04-29  Bruno Haible  <bruno@clisp.org>
25006         strerror_r-posix: Fixes for MSVC 14.
25007         * lib/strerror_r.c: Include <stdarg.h>.
25008         (strerror_r): Provide error messages for errno values 100...140.
25009         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
25011 2017-04-28  Bruno Haible  <bruno@clisp.org>
25013         noreturn: New module.
25014         * lib/noreturn.h: New file.
25015         * modules/noreturn: New file.
25016         * tests/test-noreturn.c: New file.
25017         * modules/noreturn-tests: New file.
25018         * tests/test-noreturn-c++.cc: New file.
25019         * modules/noreturn-c++-tests: New file.
25021 2017-04-27  Bruno Haible  <bruno@clisp.org>
25023         wctype-h: Fix compilation error with the original mingw.org mingw.
25024         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
25025         HAVE_CRTDEFS_H.
25026         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
25027         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
25028         <stddef.h> instead.
25029         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
25031 2017-04-26  Pádraig Brady  <P@draigBrady.com>
25033         nap.h: Fix compilation on non windows platforms
25034         * tests/nap.h: Move misplaced endif.
25036 2017-04-26  Pádraig Brady  <P@draigBrady.com>
25037         and Paul Eggert  <eggert@cs.ucla.edu>
25039         time_rz: fix heap buffer overflow vulnerability
25040         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
25041         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
25042         whether there is enough buffer space available, thus avoiding
25043         the problematic promotion of signed to unsigned causing an invalid
25044         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
25045         the start of the buffer.
25046         * tests/test-parse-datetime.c (main): Add a test case written by
25047         Paul Eggert, which overwrites enough of the heap so that
25048         standard glibc will fail with "free(): invalid pointer"
25049         without the patch applied.
25051 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
25053         xalloc: add missing integer overflow check
25054         * lib/xalloc.h (x2nrealloc): Also check for multiplication
25055         overflow when P is null.
25057 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
25059         parse-datetime: make it standalone
25060         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
25061         (_GL_ATTRIBUTE_FORMAT): New macro.
25062         These are needed to get './gnulib-tool --test parse-datetime' to work.
25064 2017-04-23  Bruno Haible  <bruno@clisp.org>
25066         nap.h: Port to native Windows.
25067         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
25068         use nap_fd instead. On native Windows, close and reopen nap_fd.
25069         (nap_works): Don't compare the ctimes, because on native Windows, these
25070         are the creation times.
25071         (nap): Update.
25073 2017-04-23  Bruno Haible  <bruno@clisp.org>
25075         nap.h: Fix logic.
25076         * tests/nap.h (nap): Avoid signed integer overflow in loop.
25078 2017-04-23  Bruno Haible  <bruno@clisp.org>
25080         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
25081         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
25082         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
25083         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
25084         * lib/argp-help.c (__argp_failure): Likewise.
25086 2017-04-23  Bruno Haible  <bruno@clisp.org>
25088         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
25089         * m4/strerror_r.m4: Revert changes since 2016-10-16.
25090         * lib/strerror_r.c: Likewise.
25092 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
25094         Target a C99 subset, not a C89 subset
25095         For many years Gnulib has targeted C89 and has resisted using C99
25096         features, as some Gnulib-using programs still wanted to target
25097         C89.  As this no longer seems to be the case, relax the porting
25098         requirements to allow some C99 features.  This is merely a change
25099         to the documentation, to give other Gnulib developers a chance to
25100         weigh in on the topic.
25101         * doc/extern-inline.texi (extern inline):
25102         * doc/gnulib-readme.texi (Portability guidelines):
25103         * doc/gnulib-tool.texi (Initial import):
25104         * doc/gnulib.texi (Header files):
25105         Modernize to talk about C99 and C11 instead of C89 and C99.
25106         * doc/gnulib-readme.texi (Portability guidelines):
25107         Now a section, not merely a subsection, so that it
25108         can be split up.  Modernize a bit.
25109         (C language versions, C99 features assumed)
25110         (C99 features avoided):
25111         New sections.
25113 2017-04-23  Bruno Haible  <bruno@clisp.org>
25115         doc: New section "Modules that modify the way other modules work".
25116         * doc/gnulib.texi (Modules that modify the way other modules work): New
25117         section.
25119 2017-04-23  Bruno Haible  <bruno@clisp.org>
25121         stat-time: Update comments.
25122         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
25123         * tests/test-utimens-common.h: Add reference regarding st_ctime on
25124         Windows.
25126 2017-04-01  Bruno Haible  <bruno@clisp.org>
25128         glob: Fix more memory leaks.
25129         * lib/glob.c (glob): Free allocated memory before returning.
25130         Reported by Coverity via Tim Rühsen.
25132 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
25134         poll: improve fast check for out-of-range NFD
25135         * lib/poll.c: Do not include intprops.h.
25136         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
25137         * modules/poll (Depends-on): Remove intprops.
25139         ftoastr: cite a newer paper
25140         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
25141         instead of Loitsch 2010.
25143 2017-04-22  Bruno Haible  <bruno@clisp.org>
25145         poll: Enable argument check also in the Windows implementation.
25146         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
25147         Reported by Paul Eggert.
25149 2017-04-22  Bruno Haible  <bruno@clisp.org>
25151         getlogin_r: Work around bug in Mac OS X 10.12.
25152         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
25153         bug.
25154         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
25155         given size minus 1, call getlogin_r a second time, on a larger buffer.
25156         * modules/getlogin_r (Depends-on): Add malloca.
25157         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
25159 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
25161         parse-datetime: fix %z and prefer signed int
25162         %z problem reported by Pádraig Brady in:
25163         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
25164         While fixing it, I decided to prefer signed ints to size_t, as
25165         they are less error-prone (e.g., ubsan catches overflow).
25166         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
25167         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
25168         counts, since signed integers make for better debugging.
25169         (date): Don’t assume %z works in printf formats.
25170         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
25171         sizes of buffers known to be small, e.g., because we’re using snprintf.
25172         (parse_datetime2): Simplify call to debug_mktime_not_ok.
25174 2017-04-22  Bruno Haible  <bruno@clisp.org>
25176         *printf: Work around rounding bug on Mac OS X.
25177         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
25178         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
25179         Mac OS X and FreeBSD.
25180         * doc/glibc-functions/*printf.texi: Likewise.
25182 2017-04-22  Bruno Haible  <bruno@clisp.org>
25184         vasnprintf tests: Avoid warnings.
25185         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
25186         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
25187         test.
25189 2017-04-22  Bruno Haible  <bruno@clisp.org>
25191         sys_file tests: Avoid warning.
25192         * tests/test-sys_file.c (main): Add a default clause to the switch
25193         statement.
25195 2017-04-22  Bruno Haible  <bruno@clisp.org>
25197         sethostname: Update doc.
25198         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
25199         Mac OS X.
25201 2017-04-22  Bruno Haible  <bruno@clisp.org>
25203         quotearg tests: Avoid warnings.
25204         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
25205         false.
25207 2017-04-22  Bruno Haible  <bruno@clisp.org>
25209         poll: Enable argument check.
25210         * lib/poll.c: Include intprops.h.
25211         (poll): Check value of nfd correctly.
25212         * modules/poll (Depends-on): Add intprops.
25214 2017-04-22  Bruno Haible  <bruno@clisp.org>
25216         get-rusage-data: Avoid warnings on Mac OS X.
25217         * lib/get-rusage-data.c: On Mac OS X, don't define
25218         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
25219         (get_rusage_data) [Mac OS X]: Just return 0.
25221 2017-04-22  Bruno Haible  <bruno@clisp.org>
25223         xbinary-io: Fix build error.
25224         * modules/xbinary-io (Depends-on): Add gettext-h.
25225         * lib/xbinary-io.c: Include gettext.h and define _().
25226         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
25227         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
25229 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
25231         parse-datetime: overflow and debug cleanups
25232         This long patch was triggered by this bug report from Ruediger Meier:
25233         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
25234         I fixed the bug he noted, then found some others nearby, and then
25235         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
25236         up some of the code to follow GNU standards while I was at it.
25237         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
25238         use c_isdigit.
25239         (EPOCH_YEAR): Remove; unused.
25240         (TM_YEAR_BASE): Now an enum rather than a macro.
25241         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
25242         time zone offset, since timezones now are in terms of seconds and
25243         not minutes.
25244         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
25245         appropriate.  Verify that intmax_t is wide enough.
25246         (time_overflow, time_zone_str): New functions, used to deal
25247         more reliably with overflow.
25248         (dbg_printf): Add printf attribute, to help catch integer width errors.
25249         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
25250         (%union, to_hour, yylex, parse_datetime2):
25251         Use intmax_t instead of long int and/or long_time_t.
25252         All uses changed.
25253         (DBGBUFSIZE): Move earlier.
25254         (relative_time, set_hhmmss, parser_control):
25255         Just use int for nanoseconds and for time zones; that’s wide enough.
25256         (parser_control): Use bool for members like year_seen that can
25257         be booleans instead of counters.  All uses changed.
25258         Remove debug_default_input_timezone; no longer needed.
25259         All uses removed.
25260         (apply_relative_time): Return a bool overflow flag.
25261         All uses changed to check for overflow.
25262         (apply_relative_time, zone, date, relunit, relunit_snumber)
25263         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
25264         Check for integer overflow portably.
25265         (str_days): Use just int for N, as it’s wide enough.
25266         Prefer 2D char arrays to arrays of char * when it looks like
25267         2D is a win on typical platforms.
25268         Prefer snprintf to strncpy/strncat, for simplicity;
25269         all buffers are smaller than INT_MAX so this is safe.
25270         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
25271         (debug_print_current_time): Don’t assume tv_nsec is of type long,
25272         as this is not true on x32.  Output "." before any nanoseconds.
25273         (debug_print_current_time, parse_datetime2):
25274         Output local zones using a more-consistent format.
25275         (debug_print_current_time, date, parse_datetime2):
25276         (main) [TEST]:
25277         Don’t assume time_t is the same width as long.
25278         (print_rel_part): New function, replacing ...
25279         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
25280         (debug_print_relative_time): Use bool for boolean.
25281         (local_zone): dsts_seen now counts only tDST instances.
25282         (date): Fix printf of size_t to use %z.  Do not assume numeric
25283         tokens have negative values merely because the context suggests
25284         a syntax with "-" separating tokens.
25285         (time_zone_hhmm): Return bool success indicator, which checks for
25286         overflow.  Store result into PC->time_zone instead.  All callers
25287         changed.
25288         (tm_year_str): New function.  Return a bool success indicator and
25289         store the result into a buffer.  All callers changed.  Output the
25290         numerically correct string even if adding 1900 to the year would
25291         overflow.
25292         (to_tm_year): New function, replacing the old to_year.  All
25293         callers changed.
25294         (tm_diff): Sync with glibc.
25295         (lookup_word): Use to_uchar instead of doing it by hand.
25296         (TZBUFSIZE): Now local to the only function that needs it.
25297         (debug_strfdatetime): Simplify now that time zones are int seconds.
25298         (debug_strfdate): Work even if tm_year + 1900 would overflow.
25299         (get_effective_timezone): Remove.  All uses removed.
25300         (parse_datetime2): Use fprintf in pieces instead of snprintfing
25301         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
25302         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
25303         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
25304         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
25305         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
25306         * modules/parse-datetime (Depends-on): Add inttypes.
25308 2017-04-21  Bruno Haible  <bruno@clisp.org>
25310         gettext-h: Avoid -Wundef warning.
25311         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
25312         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
25313         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
25315 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
25317         error: Avoid "function declaration isn't a prototype" warning.
25318         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
25320 2017-04-21  Bruno Haible  <bruno@clisp.org>
25322         vasnprintf: Fix for MSVC 14.
25323         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
25324         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
25325         of !HAVE_SNPRINTF_RETVAL_C99.
25327 2017-04-21  Bruno Haible  <bruno@clisp.org>
25329         mbrtowc tests: Fix test failures on MSVC 14.
25330         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
25331         behaviour for invalid input.
25333 2017-04-21  Bruno Haible  <bruno@clisp.org>
25335         mbsinit: Fix for MSVC 14.
25336         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
25337         implementation that is in sync with mbrtowc.c. On other platforms, use
25338         an adequate ad-hoc implementation.
25340 2017-04-21  Bruno Haible  <bruno@clisp.org>
25342         Fix test-mbrtowc5.sh failure on native Windows.
25343         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
25344         "C".
25346 2017-04-21  Bruno Haible  <bruno@clisp.org>
25348         Avoid accidental use of native Windows APIs on Cygwin.
25349         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
25350         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
25351         * lib/localename.c (WINDOWS_NATIVE): Likewise.
25353 2017-04-20  Bruno Haible  <bruno@clisp.org>
25355         Remove red warnings from the generated MODULES.html.
25356         * modules/fcntl (Description): Disambiguate function references.
25357         * modules/getcwd-lgpl (Description): Likewise.
25358         * modules/hostent (Description): Likewise.
25359         * modules/servent (Description): Likewise.
25360         * modules/tempname (Description): Likewise.
25362 2017-04-20  Bruno Haible  <bruno@clisp.org>
25364         verify tests: Fix spurious failure with parallel make.
25365         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
25366         EXTRA_PROGRAMS.
25367         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
25368         * tests/test-verify-try.c: New file.
25369         * modules/verify-tests (Files): Add it.
25370         (EXTRA_PROGRAMS): Add test-verify-try.
25371         (MOSTLYCLEANFILES): Update accordingly.
25372         Reported by Adam James Stewart <ajstewart@anl.gov>.
25374 2017-04-18  Bruno Haible  <bruno@clisp.org>
25376         vma-iter: Fix compilation error on Solaris 7.
25377         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
25378         like on IRIX, OSF/1.
25379         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25381 2017-04-18  Bruno Haible  <bruno@clisp.org>
25383         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
25384         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
25385         included.
25386         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
25387         <sys/procfs.h>.
25388         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
25389         <sys/procfs.h> cannot be included.
25390         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25392 2017-04-18  Bruno Haible  <bruno@clisp.org>
25394         getopt-gnu: Add comments.
25395         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
25396         * modules/getopt-gnu (configure.ac): Likewise.
25398 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
25400         regex: port better to Solaris 10
25401         Solaris 10 <locale.h> includes <libintl.h>, which #defines
25402         gettext, and this causes a double #define.
25403         Problem reported by Gavin Smith in:
25404         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
25405         * lib/regex_internal.h (gettext): #undef before #defining.
25407 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
25409         intprops: improve comments
25410         * lib/intprops.h: Improve and shorten commentary.
25411         For the record, if we ever run into a pedantic compiler that
25412         behaves differently from GCC when converting an out-of-range value
25413         to a signed integer, we can work around the problem with something
25414         like the following code, where UCT is the signed counterpart of T
25415         (UCT is sometimes narrower than UT) and all callers are changed
25416         accordingly:
25417         #if __SUNPRO_C <= 0x5120
25418         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
25419            ((t) ((ut) (a) op (ut) (b)))
25420         #else
25421         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
25422            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
25423             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
25424                + TYPE_MINIMUM (t)) \
25425             : (t) (uct) ((ut) (a) op (ut) (b)))
25426         #endif
25428 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
25430         intprops: try to avoid tickling similar bugs
25431         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
25432         needs to be the same width as T; it can be wider.
25433         Change callers so that UT is at least as wide as unsigned int,
25434         as I suspect that this is less likely to run into compiler bugs.
25436         intprops: port to Oracle Studio 12.3 x86
25437         Problem reported by Gavin Smith in:
25438         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
25439         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
25440         Convert unsigned to signed via the usual rather than the standard way,
25441         to avoid a compiler bug in Oracle Studio 12.3 x86.
25443 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
25445         getopt: prefer - to _ in new file names
25446         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
25447         * lib/getopt-core.h: Rename from lib/getopt_core.h.
25448         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
25449         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
25450         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
25451         All uses changed.
25453         getopt: port recent getopt changes to macOS
25454         Problem reported by Harald Maier (Bug#26398).
25455         The macOS C compiler uses __nonnull for its own purposes and that
25456         clashes with glibc's __nonnull.
25457         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
25458         * lib/getopt_cdefs.in.h (__nonnull): Remove.
25459         * lib/getopt_core.h (getopt):
25460         * lib/getopt_ext.h (getopt_long, getopt_long_only):
25461         Use _GL_ARG_NONNULL, not __nonnull.
25462         * lib/unistd.in.h: Move snippet hooks to before where the getopt
25463         .h files are included, so that _GL_ARG_NONNULL is defined in time.
25464         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
25465         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
25467 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
25469         getopt-gnu: omit some duplicate code
25470         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
25471         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
25472         gnulib-tool already does this.
25473         * modules/getopt-gnu (configure.ac): Omit code duplicated from
25474         getopt-posix, which we depend on.
25476         getopt-posix: use angle-bracket include
25477         * lib/getopt1.c: Include <config.h>, not "config.h".
25479 2017-04-06  Zack Weinberg  <zackw@panix.com>
25481         getopt: annotate files with relationship to glibc
25483         As the final act in this patchset, adjust the message at the top of
25484         each file to indicate which files are synced with glibc.  (This has
25485         already been done for most of the headers.)
25487         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
25488         Mention in top-of-file boilerplate that these files are shared
25489         between glibc and gnulib.
25492         getopt: split up getopt.in.h and eliminate __need_getopt
25494         Over in glibc, all of the __need macros are being phased out in favor
25495         of small headers that declare only the necessary components, as this
25496         is much simpler and less prone to bugs.  As getopt is shared with
25497         glibc, gnulib needs to do the same for __need_getopt.
25499         __need_getopt is misnamed; what it really means is "we want only the
25500         getopt features specified in POSIX, not the GNU extensions".  glibc
25501         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
25502         these files can be shared verbatim with gnulib.  The portability
25503         wrapper, on the other hand, they have renounced altogether; glibc's
25504         getopt.h will no longer be shared with gnulib at all.  In exchange,
25505         certain glibc-specific quirks (having to do with __posix_getopt) no
25506         longer need appear in gnulib's headers at all.
25508         This patch merges getopt_core.h and getopt_ext.h from glibc, and
25509         splits up the current gnulib-side portability wrapper into three
25510         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
25511         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
25512         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
25513         unistd.in.h just use them.  All new files are clearly marked with
25514         whether they are shared with glibc.
25516         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
25517         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
25518         with glibc, and ...
25519         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
25520         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
25521         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
25522         instead of defining __need_getopt and including the full getopt.h.
25524         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
25525         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
25526         * modules/getopt-posix (Files): Add new headers and sort list.
25527         (Depends-on): No longer need snippet/arg-nonnull.
25528         (Makefile.am): Generate getopt_cdefs.h.
25531         getopt: better handling of ambiguous options
25533         glibc's getopt uses alloca to construct a linked list of possibilities
25534         for an "ambiguous" long option.  In gnulib, malloc should be used
25535         instead.  Providing for both cases complicates things a fair bit.
25537         This patch rewrites ambiguous-option handling to use a boolean vector
25538         instead of a linked list.  There is then only one allocation that
25539         might need freeing; in glibc it can honor __libc_use_alloca as usual,
25540         and in gnulib we define __libc_use_alloca to always be false, so we
25541         don't need ifdefs in the middle of the function.  This should also be
25542         slightly more efficient in the normal case of long options being fully
25543         spelled out -- I think most people aren't even aware they _can_
25544         sometimes abbreviate long options.
25546         One interesting consequence is that the list of possibilities is now
25547         printed in exactly the order they appear in the list of long options,
25548         instead of the first possibility being shuffled to the end.
25550         (The patch looks bigger than it really is because there's a fair bit
25551         of reindentation and code rearrangement.)
25553         * lib/getopt.c: When used standalone, define __libc_use_alloca
25554         as always false and alloca to abort if called.
25555         (process_long_option): Rewrite handling of ambiguous long options
25556         to use a single boolean vector, not a linked list; use
25557         __libc_use_alloca to decide whether to allocate this using alloca.
25560         getopt: refactor long-option handling
25562         There were two copies of the bulk of the code to handle long options.
25563         Now there is only one.
25565         This change temporarily removes the logic to avoid using alloca when
25566         standalone; the next patch in the series will restore it.
25568         * lib/getopt.c (process_long_option): New function split out
25569         from _getopt_internal_r.
25570         (_getopt_internal_r): Replace both copies of the long-option
25571         processing code with calls to process_long_option.
25574         getopt: tidy up _getopt_initialize a bit
25576         _getopt_data.__posixly_correct is completely redundant to
25577         _getopt_data.__ordering, and some work that logically belongs in
25578         _getopt_initialize was being done by _getopt_internal_r, making the
25579         code harder to understand.
25581         As a side effect, getenv will no longer be called if the first
25582         character of the options string is '+' or '-', which is probably a
25583         Good Thing.  (Perhaps we should have a flag character that
25584         specifically asks for the permutation behavior?)
25586         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
25587         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
25588         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
25591         getopt: merge from glibc: repetition reduction
25593         The definitions of the entry point functions 'getopt' and
25594         '__posix_getopt' can be made substantially less repetitive with a
25595         helper macro.
25597         While I was merging the const-correctness changes from gnulib into
25598         glibc I noticed there are still some unnecessary casts in
25599         _getopt_internal_r.
25601         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
25602         a macro.  Consistently cast 'argv' to 'char **' when calling
25603         _getopt_internal.
25604         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
25607         getopt: clean up error reporting
25609         getopt can print a whole bunch of error messages, and when used
25610         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
25611         cancellation point and getopt isn't, and also applying fprintf to a
25612         stream in wide-character mode is not allowed.  So every single error
25613         reporting case has an #ifdef _LIBC block in which it calls internal
25614         libc functions instead.  The counterpart patch series in glibc makes
25615         it possible to simplify all of that down to a set of #defines at the
25616         top of the file; core code is written as if it is safe to just call
25617         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
25618         call any *other* stdio functions.)
25620         * lib/getopt.c: When _LIBC is defined, define fprintf to
25621         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
25622         to _IO_funlockfile.  When neither _LIBC nor
25623         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
25624         funlockfile as no-ops.
25625         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
25626         standalone error-printing code can now be used for libc as well.
25627         Add an flockfile/funlockfile pair around one case where the error
25628         message is printed in several chunks.  Don't use fputc.
25631         getopt: fix fencepost error in ambiguous-W-option handling
25633         getopt_long contains an undocumented (AFAICT) feature in which, if you
25634         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
25635         treated as equivalent to '--foo'.  This is implemented with a partial
25636         second copy of the code for handling long options, and that code
25637         increments optind one too many times when recovering from an ambiguous
25638         abbreviated option, which can cause the main loop to walk past the end
25639         of argv and crash.
25641         I discovered this while writing a test case that tries to exercise all
25642         of getopt's error reporting paths; I wouldn't be surprised to learn
25643         that this feature is never used by real applications.
25645         * lib/getopt.c (_getopt_internal_r): Don't increment
25646         d->optind a second time when reporting ambiguous -W options.
25649         getopt: clean up getopt.c and getopt1.c file headers
25651         In getopt.c, there is no need to include wchar.h at all, and it is
25652         safe nowadays to assume that stdlib.h does declare getenv (several
25653         other gnulib modules make this assumption).
25655         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
25656         by using "" inclusions consistently, and there is no actual need to
25657         include stdlib.h (except in the #ifdef TEST block, where it should be
25658         unconditional), nor to provide a backup definition of NULL at all.
25660         * lib/getopt1.c: Simplify #ifdeffage at top of file.
25661         Move inclusion of stdlib.h to #ifdef TEST block and make
25662         unconditional.  Do not define NULL.
25663         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
25664         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
25665         * modules/getopt-gnu, modules/getopt-posix: Don't call
25666         gl_PREREQ_GETENV.
25669         getopt: harmonize comments with glibc
25671         The comments explaining how the behavior of 'getopt' varies depending
25672         on whether it's the standalone version and whether there are special
25673         characters at the beginning of the options string were inconsistent
25674         between gnulib and glibc, and also out of sync with the code.
25676         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
25679         getopt: remove USE_NONOPTION_FLAGS
25681         getopt includes code to parse an environment variable named
25682         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
25683         in decimal); but all of it has been #ifdefed out since 2001, with no
25684         official way to turn it back on.
25686         According to commentary in glibc's config.h.in, bash version 2.0
25687         set this environment variable to indicate argv elements that were
25688         the result of glob expansion and therefore should not be treated
25689         as options, but the feature was "disabled later" because "it
25690         caused problems".  According to bash's CHANGES file, "later" was
25691         release 2.01; it gives no more detail about what the problems
25692         were.
25694         Version 2.0 of bash was released on the last day of 1996, and version
25695         2.01 in June of 1997.  Twenty years later, I think it is safe to
25696         assume that this environment variable isn't coming back.
25698         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
25699         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
25700         __libc_argc and __libc_argv externs, which were only used by
25701         #ifdef USE_NONOPTION_FLAGS blocks.
25704         getopt: tabify, in preparation for merge with glibc
25706         glibc sticks to the GNU default of indenting with a mix of
25707         8-column tabs and spaces; make the gnulib copy match.
25709         getopt.h is not included because it is *not* going to be merged in its
25710         present form.
25712         * getopt.c, getopt1.c, getopt_int.h: Tabify.
25714 2017-04-02  Bruno Haible  <bruno@clisp.org>
25716         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
25717         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
25718         like it was done in modules/relocatable-lib on 2011-05-21 and in
25719         modules/relocatable-prog on 2011-08-15.
25720         Reported by Reuben Thomas <rrt@sc3d.org>.
25722 2017-03-31  Bruno Haible  <bruno@clisp.org>
25724         glob: Fix invalid free() call.
25725         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
25726         static storage to home_dir.
25727         Reported by Coverity via Tim Rühsen.
25729 2017-03-31  Bruno Haible  <bruno@clisp.org>
25731         glob: Fix memory leaks.
25732         * lib/glob.c (glob): Free allocated memory before returning.
25733         Reported by Coverity via Tim Rühsen.
25735 2017-03-31  Bruno Haible  <bruno@clisp.org>
25737         md5, sha1, sha256, sha512: Add comments regarding correctness.
25738         * lib/md5.h (buflen): Add comments regarding range.
25739         * lib/sha1.h (buflen): Likewise.
25740         * lib/sha256.h (buflen): Likewise.
25741         * lib/sha512.h (buflen): Likewise.
25742         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
25743         * lib/sha1.c (sha1_process_bytes): Likewise.
25744         * lib/sha256.c (sha256_process_bytes): Likewise.
25745         * lib/sha512.c (sha512_process_bytes): Likewise.
25746         Reported by Coverity via Tim Rühsen.
25748 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25750         getopt: merge from glibc
25751         This does not change anything substantial; it merely simplifies
25752         hypothetical merges back to glibc.
25753         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
25754         Change copyright notice to match what is in glibc.
25755         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
25756         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
25757         __open_memstream rather than open_memstream and __glibc_likely
25758         instead of __builtin_expect.
25759         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
25761 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25763         dfa: make [0-9] faster in non-C locales
25764         Problem reported by John P. Linderman (Bug#26193).
25765         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
25766         If both ends of the range are ASCII digits, do not worry about
25767         multi-character collating sequences and the like.  Be consistent
25768         about using isalpha as a precondition for setbit_case_fold_c.
25770 2017-03-19  Bruno Haible  <bruno@clisp.org>
25772         lock: Fix compilation error with HP-UX IA64 cc.
25773         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
25774         weak on non-glibc platforms.
25776 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25778         stdalign: tweak version# and test for HP-UX IA64
25779         Problems reported by Bruno Haible in:
25780         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
25781         * lib/stdalign.in.h (_Alignas):
25782         * m4/stdalign.m4 (gl_STDALIGN_H):
25783         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
25784         used octal (as that is how they document it), but it is decimal in
25785         practice now and the ancient implementations no longer matter.
25786         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
25788 2017-03-19  Bruno Haible  <bruno@clisp.org>
25790         vma-iter: Add support for Solaris.
25791         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
25792         approach.
25793         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
25794         * lib/get-rusage-as.c: Update comment about Solaris.
25795         * lib/get-rusage-data.c: Likewise.
25797 2017-03-19  Bruno Haible  <bruno@clisp.org>
25799         vma-iter: Prefer HP-UX specific API on HP-UX.
25800         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
25801         * lib/vma-iter.h: Update.
25802         Just in case HP-UX ever implements mquery().
25804 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
25806         stdalign: restore previous behavior for HP-UX IA64
25807         See Bruno Haible's email in:
25808         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25809         which cites p 150 of a manual saying that 'aligned' works on Itanium.
25810         * lib/stdalign.in.h (_Alignas):
25811         Assume the '061200' applies to Itanium, not to PA-RISC.
25812         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
25814 2017-03-17  Bruno Haible  <bruno@clisp.org>
25816         stat-time, timespec: Support use of the header files in C++ mode.
25817         * lib/stat-time.h: Add "C" linkage declaration.
25818         * lib/timespec.h: Likewise.
25820 2017-03-17  Bruno Haible  <bruno@clisp.org>
25822         stdalign: Make it work with HP-UX cc.
25823         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
25824         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
25825         for HP-UX cc.
25827 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
25829         flexmember: try to detect HP-UX 11.31 cc bug
25830         Problem reported by Bruno Haible in:
25831         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25832         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25833         Attempt to detect bug in HP-UX 11.31 cc.
25835 2017-03-16  Bruno Haible  <bruno@clisp.org>
25837         stdint: Fix test compilation failure with HP-UX 11 cc.
25838         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
25839         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
25840         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
25841         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
25843 2017-03-14  Bruno Haible  <bruno@clisp.org>
25845         gnulib-tool: Don't produce a tests directory with only snippet .h files.
25846         * gnulib-tool (func_modules_transitive_closure_separately): If
25847         testsrelated_modules ends up with no "real" modules, aside from
25848         modules with applicability 'all', set it to empty.
25850 2017-03-14  Bruno Haible  <bruno@clisp.org>
25852         vma-iter: Add support for HP-UX.
25853         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
25854         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
25855         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
25856         * lib/get-rusage-as.c: Update comment about HP-UX.
25857         * lib/get-rusage-data.c: Likewise.
25858         (get_rusage_data): Use get_rusage_data_via_setrlimit.
25860 2017-03-14  Bruno Haible  <bruno@clisp.org>
25862         limits-h: Make it work with HP-UX cc.
25863         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
25864         defined.
25866 2017-03-14  Bruno Haible  <bruno@clisp.org>
25868         Fix test failures on DragonFlyBSD.
25869         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
25870         * tests/test-select.h (test_bad_fd): Likewise.
25871         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
25873 2017-03-14  Bruno Haible  <bruno@clisp.org>
25875         freadahead: Silence warning on DragonFlyBSD.
25876         * lib/freadahead.c (__sreadahead): Declare ourselves.
25878 2017-03-14  Bruno Haible  <bruno@clisp.org>
25880         vma-iter: Add comment about AIX.
25881         * lib/vma-iter.c: Add comment about why this module is not implemented
25882         on AIX.
25884 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25886         snippets: move unadjusted snippet sources to lib
25887         Problem reported by Michal Privoznik in:
25888         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
25889         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
25890         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
25891         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
25892         * lib/unused-parameter.h: Rename from
25893         build-aux/snippet/unused-parameter.h.
25894         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
25895         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
25896         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
25897         * modules/snippet/c++defs (Files:, CXXDEFS_H):
25898         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
25899         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
25900         Adjust to file renamings.
25902 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
25904         gnulib-tool: don't automatically distribute files from top/
25905         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
25906         not distribute top/README-release by default, don't distribute files
25907         from top/ unconditionally.
25908         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
25909         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
25911 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25913         gnulib-tool: fix typo in comment output
25914         * gnulib-tool (func_import): Fix typo with previous change.
25916         snippets: work around GNU Make 3.82 VPATH
25917         When using 'gnulib-tool --gnu-make' on Emacs, and building
25918         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
25919         an out-of-source (VPATH) build failed because the sans-copyright
25920         snippet file was not built before the file that used it.
25921         Presumably this is some sort of VPATH thing.  Work around the
25922         problem by using the original snippet, i.e., don’t bother to
25923         remove its copyright notice.
25924         * modules/snippet/_Noreturn, modules/snippet/link-warning:
25925         Don’t assume Automake in comments.  Omit long-incorrect comment.
25926         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
25927         (MOSTLYCLEANFILES):
25928         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
25929         (MOSTLYCLEANFILES):
25930         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
25931         (MOSTLYCLEANFILES):
25932         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
25933         (MOSTLYCLEANFILES):
25934         Remove.
25935         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
25936         * modules/snippet/c++defs (CXXDEFS_H):
25937         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
25938         * modules/snippet/warn-on-use (WARN_ON_USE_H):
25939         Don’t bother to remove the copyright notice; just use the
25940         original snippet as-is.
25942 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25944         gnulib-tool: minor --gnu-make fixups
25945         * gnulib-tool (func_emit_lib_Makefile_am):
25946         Remove useless code that was a blind alley during implementation.
25947         Problem reported by Thien-Thi Nguyen in:
25948         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
25949         (func_import): Note the "--gnu-make" option in the output comment.
25951 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
25953         gnulib-tool: new option --gnu-make
25954         This is for applications like GNU Emacs that use GNU Make
25955         features instead of Automake.
25956         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
25957         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
25958         Do not assume Automake.
25959         * gnulib-tool (func_determine_path_separator)
25960         (func_modules_transitive_closure, func_update_file)
25961         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
25962         (func_import): Add support for --gnu-make.
25964 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25966         gnulib-common.m4: avoid aclocal.m4 bloat
25967         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
25968         Hide AM_PROG_AR from aclocal, so that aclocal does not
25969         install irrelevant macro definitions into aclocal.m4.
25971 2017-03-10  Bruno Haible  <bruno@clisp.org>
25973         vma-iter: Let callers know about error.
25974         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
25975         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
25977 2017-03-05  Bruno Haible  <bruno@clisp.org>
25979         Fix value of LD for 64-bit compilers on AIX.
25980         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
25981         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
25983 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
25985         dtotimespec: simplify
25986         * lib/dtotimespec.c (dtotimespec): Simplify.
25988 2017-03-04  Bruno Haible  <bruno@clisp.org>
25990         test-calloc-gnu: Reenable test also for GCC 7.
25991         * tests/test-calloc-gnu.c (eight): New function.
25992         (main): Don't skip test; use eight() instead.
25994 2017-03-04  Jim Meyering  <meyering@fb.com>
25996         test-calloc-gnu: port to GCC7
25997         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
25998         that attempts to calloc more than SIZE_MAX bytes, because GCC7
25999         and newer would detect that at compilation time.
26001 2017-03-04  Bruno Haible  <bruno@clisp.org>
26003         tests: Avoid compiler warning about uses of null_ptr.
26004         * tests/null-ptr.h: New file.
26005         * tests/test-canonicalize.c: Include null-ptr.h.
26006         (null_ptr): Remove function.
26007         * tests/test-canonicalize-lgpl.c: Likewise.
26008         * tests/test-memmem.c: Likewise.
26009         * tests/test-ptsname_r.c: Likewise.
26010         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
26011         * modules/canonicalize-lgpl-tests: Likewise.
26012         * modules/memmem-tests: Likewise.
26013         * modules/ptsname_r-tests: Likewise.
26014         Reported by Jim Meyering.
26016 2017-03-03  Bruno Haible  <bruno@clisp.org>
26018         doc: Mention Mac OS X deficiencies regarding semaphores.
26019         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
26020         * doc/posix-functions/sem_destroy.texi: Likewise.
26021         * doc/posix-functions/sem_getvalue.texi: Likewise.
26023 2017-03-03  Bruno Haible  <bruno@clisp.org>
26025         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
26026         Reported by Assaf Gordon <assafgordon@gmail.com> via
26027         Pádraig Brady <P@draigBrady.com>.
26028         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
26029         semaphores.
26030         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
26031         (atomic_int_semaphore): New macro.
26033 2017-02-28  Bruno Haible  <bruno@clisp.org>
26035         perror tests: Tweak for z/OS.
26036         Reported by Daniel Richard G. <skunk@iskunk.org>.
26037         * tests/test-perror.sh: Don't fail z/OS style perror output.
26039 2017-02-26  Bruno Haible  <bruno@clisp.org>
26041         nproc: Refactor large function.
26042         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
26043         from num_processors.
26044         (num_processors): In this function, only deal with OMP.
26046 2017-02-26  Pádraig Brady  <P@draigBrady.com>
26048         nproc: adjust handling of OpenMP environment variables
26049         to match the return value from omp_get_num_threads(), i.e.:
26050          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
26051          - Treat 0 as an invalid value and ignore
26052         Also remove the call to omp_get_num_threads() because
26053         it's ineffective without the omp pragmas in place.
26054         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
26055         so that it can be ignored.
26056         (num_processors): Honor OMP_THREAD_LIMIT even without
26057         OMP_NUM_THREADS being set.  Also fix a typo in the environment
26058         variable being checked, from the previous recent commit.
26060 2017-02-26  Pádraig Brady  <P@draigBrady.com>
26062         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
26063         * lib/nproc.c (parse_omp_threads): A new function refactored
26064         from num_processors() to support parsing both of the
26065         above environment variables.
26066         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
26067         to accurately reflect the current OpenMP nesting level.
26068         Also support the OMP_THREAD_LIMIT environment variable
26069         to limit the max value determined from OMP_NUM_THREADS.
26070         * modules/nproc: Depend on minmax header.
26071         Suggested by Oliver Heimlich.
26073 2017-02-25  Bruno Haible  <bruno@clisp.org>
26075         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
26076         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
26078 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26080         ftoastr: port to -Wdouble-promotion
26081         Work around -Wdouble-promotion false alarm in recent GCCs.
26082         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
26083         (ftoastr_snprintf, FTOASTR): Use it.
26085 2017-02-21  Bruno Haible  <bruno@clisp.org>
26087         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
26088         Reported by Rene Saavedra <rennes@openmailbox.org> in
26089         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
26090         * lib/glthread/lock.h: On glibc systems without
26091         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
26092         implementation of rwlocks.
26093         * lib/glthread/lock.c: Likewise.
26095 2017-02-20  Bruno Haible  <bruno@clisp.org>
26097         lock tests: Fix build failure on z/OS.
26098         Reported by Daniel Richard G. <skunk@iskunk.org>.
26099         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
26100         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
26101         exist.
26103 2017-02-19  Bruno Haible  <bruno@clisp.org>
26105         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
26106         This helps when CC=clang.
26107         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
26108         of /usr/bin/gcc.
26110         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
26111         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
26113 2017-02-19  Bruno Haible  <bruno@clisp.org>
26115         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
26116         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
26117         --with-tests --single-configure is specified.
26119 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
26121         users.txt: Update links, use HTTPS where possible
26122         * users.txt: Updated to HTTPS where possible,
26123         fixed some links to new locations.
26125 2017-02-16  Bruno Haible  <bruno@clisp.org>
26127         xbinary-io: Fix inlining.
26128         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
26130 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26132         xbinary-io: rename from xsetmode
26133         This patch is taken from suggestions by Bruno Haible in:
26134         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
26135         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
26136         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
26137         not ENOTTY, when it is an inappropriate device.
26138         * lib/binary-io.h (SET_BINARY): Resurrect.
26139         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
26140         (xset_binary_mode_error): Rename from xsetmode_error.
26141         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
26142         (xset_binary_mode): Rename from xsetmode.
26143         All uses changed.
26144         * modules/xbinary-io: Rename from modules/xsetmode.
26145         Update file names.
26146         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
26147         * NEWS: Update to match revised behavior.
26149 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
26151         tests: Adjust to recent SET_BINARY change
26152         * tests/test-binary-io.c (main):
26153         * tests/test-binary-io.sh: Remove test for SET_BINARY.
26154         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
26155         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
26156         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
26158         xsetmode: new module
26159         This is to fix a problem noted by Eric Blake.
26160         Code was using xfreopen to change files to binary mode, but this
26161         fails for stdout when in append mode.  Such code should use
26162         xsetmode instead.
26163         * NEWS: Document incompatible changes to binary-io module.
26164         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
26165         New function.
26166         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
26167         (set_binary_mode): New function, which also checks for tty.
26168         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
26170 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
26172         headers: fix begin-end typos
26173         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
26174         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
26176         selinux-h: port to PGI 16.10
26177         * lib/se-selinux.in.h: Don't assume that include_next skips over
26178         duplicate -I DIR options.
26180         argp: port to PGI 16.10
26181         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
26183 2017-02-13  Darshit Shah  <darnir@gnu.org>
26185         unicase: Update function protoype to match definition.
26186         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
26187         uses 'size_t' as the datatype for the 'len' parameter in the functions
26188         it generates. Update the prototype specified here to match the newly
26189         generated function.
26191 2017-02-12  Bruno Haible  <bruno@clisp.org>
26193         times test: Avoid gcc warnings on Linux/x32.
26194         * tests/test-times.c (main): Really cast printf arguments from clock_t
26195         to 'long int'.
26197 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
26199         glob: port better to emscripten
26200         Problem reported by Bruno Haible in:
26201         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
26202         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
26204 2017-02-11  Bruno Haible  <bruno@clisp.org>
26206         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
26207         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
26208         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
26209         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
26210         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
26211         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
26212         Distinguish hppa64 from hppa.
26214 2017-02-10  Bruno Haible  <bruno@clisp.org>
26216         search: Don't assume that tsearch() exists if 'VISIT' is defined.
26217         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
26218         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
26219         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
26221 2017-02-09  Bruno Haible  <bruno@clisp.org>
26223         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
26224         * doc/gnulib.texi (Libtool and Windows): Recommend
26225         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
26226         Reported by Reuben Thomas <rrt@sc3d.org>.
26228 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
26230         stddef-tests: port to SIZE_MAX <= INT_MAX
26231         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
26232         Do not assume that INT_MAX < SIZE_MAX.
26234 2017-02-01  Bruno Haible  <bruno@clisp.org>
26236         lock tests: Fix link error.
26237         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
26238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26240 2017-01-31  Bruno Haible  <bruno@clisp.org>
26242         lock: Fix link error (regression from 2017-01-05).
26243         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
26244         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
26245         pthread_rwlockattr_destroy weak.
26246         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26248 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
26250         Port to PGI 16.10 x86-64
26251         This patch fixes one real bug in gl_anylinked_list2.h, along with
26252         some minor glitches that are not bugs.  It does not silence PGI’s
26253         thousands of bogus warnings when compiling test-intprops.c.
26254         Fortunately, the warnings do not cause a failure.
26255         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
26256         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
26257         My goodness, PGI goes back a long ways - this predates C89!
26258         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
26259         For example, ASYNCSAFE (const void *) should expand to
26260         ‘const void *volatile’, not to ‘volatile const void *’.
26261         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
26262         * lib/verify.h (verify) [!__GNUC__]:
26263         Use shorter albeit meaningless string to bypass silly compiler limits.
26264         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
26265         * tests/nan.h (NaNf, NaNd, NaNl):
26266         Use static functions to avoid misguided compiler diagnostics.
26267         Is there some reason we don’t use static functions on all platforms?
26269 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
26271         parse-datetime: handle timezones reentrantly
26272         This API change was prompted by a report by Pádraig Brady in:
26273         https://bug.debian.org/851934#10
26274         To help fix the bug, make parse_datetime2 more reentrant.
26275         * NEWS: Document this incompatible change.
26276         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
26277         Add two arguments, the timezone and the timezone name.
26278         All callers changed.  If TZ="..." is specified, use it for
26279         calculating defaults.
26280         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
26281         this code should be usable in a library.
26282         (mktime_ok, get_effective_timezone):
26283         Accept timezone arg too.  All callers changed.
26284         (get_tz): Remove.
26285         (get_effective_timezone): Check for failures.
26287 2017-01-20  Eric Blake  <eblake@redhat.com>
26289         localename: port to cygwin 2.6
26290         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
26291         Cygwin.
26292         * modules/localename (Depends-on): Add extensions, since
26293         NL_LOCALE_NAME() is not visible without it.
26295 2017-01-17  Pádraig Brady  <P@draigBrady.com>
26297         parse-datetime: fix dependence on AC_PROG_SED
26298         * modules/parse-datetime: Use `sed` directly like all other modules.
26299         Reported by J William Piggott
26301 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
26303         intprops: update doc URLs
26304         * doc/intprops.texi (Integer Range Overflow): Update URLs.
26306 2017-01-16  Bruno Haible  <bruno@clisp.org>
26308         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
26309         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
26310         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
26311         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
26312         distinguish s390 and s390x.
26313         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
26314         * NEWS: Mention the change regarding 'armel'.
26316 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26318         localeinfo: case_folded_counterparts and WEOF
26319         * NEWS: Document this.
26320         * lib/localeinfo.c (case_folded_counterparts):
26321         First arg is now wint_t, not wchar_t.  This generalizes the
26322         function to also work on WEOF, where it returns 0.
26324         dfa: port to gcc -fsanitize=undefined
26325         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
26326         as this runs afoul of gcc -fsanitize=undefined.
26328 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
26330         strftime: %z is -00 if unknown
26331         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
26332         the caller's responsibility to set 'negative_number'.  All uses changed.
26333         (__strftime_internal): Put '-' before a zero UTC offset if the time
26334         zone abbreviation starts with "-", which is the recently-introduced
26335         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
26336         * tests/test-strftime.c: Test for this.
26338 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26340         dfa: port to older GCC
26341         Problem reported by Assaf Gordon in:
26342         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
26343         * modules/c99: New module.  This merely attempts to use the latest
26344         C version, which should be enough to solve this particular problem.
26345         The idea is to document which Gnulib modules assume C99 or later.
26346         * modules/dfa (Depends-on): Add it.
26348 2017-01-10  Bruno Haible  <bruno@clisp.org>
26350         Update DEPENDENCIES.
26351         * DEPENDENCIES: List only https URLs. Update recommended version for
26352         autoconf, automake, gperf.
26354 2017-01-10  Jim Meyering  <meyering@fb.com>
26356         maint.mk: enforce spelling of "timestamp" (i.e., no space)
26357         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
26358         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
26360 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26362         dfa: minor simplification with emptyset
26363         * lib/dfa.c (build_state): Simplify by using emptyset.
26365 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26367         dfa: shrink constraints from 4 bits to 3
26368         * lib/dfa.c (newline_constraint, letter_constraint)
26369         (other_constraint, prev_newline_dependent)
26370         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
26371         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
26372         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
26373         Constraints need only 3 bits, not 4.  Using smaller integers
26374         shrinks the code a bit and makes grep a tad faster on x86-64.
26376         dfa: omit unnecessary ptrdiff_t check
26377         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
26378         overflow, since xnmalloc does that now.
26380         dfa: omit unnecessary allocation
26381         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
26382         an all-zero follow set works just fine.
26384         dfa: omit unused local
26385         * lib/dfa.c (build_state): Fix up recent change.
26387         maint: remove stray .texi files
26388         Although these were superseded by other files like
26389         doc/posix-functions/ctime.texi, the old files were not removed.
26390         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
26392 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
26394         getprogname: fix port to IRIX
26395         * lib/getprogname.c (getprogname) [__sgi]:
26396         Don't dump core if malloc returns NULL.
26398         dfa: fix reallocation bug when matching newlines
26399         Problem reported for sed by S. Gilles (Bug#25390).
26400         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
26401         (dfastate): Reallocate before moving any newline transition ...
26402         (build_state): ... instead of reallocating here, where it is too late.
26404 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
26406         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
26407         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
26409 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
26411         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
26412         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
26414 2017-01-07  Bruno Haible  <bruno@clisp.org>
26416         stdioext: Port to Minix 3.2 and newer.
26417         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
26418         * lib/fseeko.c (fseeko): Likewise.
26419         Reported by Nelson Beebe via Paul Eggert.
26421 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
26423         getprogname: port to IRIX
26424         * lib/getprogname.c (getprogname): Port to IRIX.
26425         Based on an idea by Bastien Roucariès at:
26426         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
26427         via code from Bruno Haible at:
26428         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
26430         localename-tests: port to NetBSD 7
26431         Problem reported by Nelson H. F. Beebe.
26432         * tests/test-localename.c:
26433         Test newlocale and uselocale only if both exist.
26435         glob, intprops, xalloc: work around Clang bug
26436         Work around LLVM bug 16404, which is still not fixed.
26437         https://llvm.org/bugs/show_bug.cgi?id=16404
26438         Problem reported by Nelson H. F. Beebe.
26439         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
26440         Remove.
26441         * lib/glob.c (size_add_wrapv):
26442         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
26443         * lib/xalloc-oversized.h (xalloc_oversized):
26444         Do not use overflow builtins if Clang.
26446         dfa: fix 'return' typo
26447         Problem reported by Nelson H. F. Beebe.
26448         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
26450 2017-01-05  Pádraig Brady  <P@draigBrady.com>
26452         parse-datetime: fix generated paths for coverage files
26453         * modules/parse-datetime: Adjust the paths for parse-datetime.y
26454         within parse-datetime.c, so that gcc generates appropriate .gcno
26455         files, allowing lcov to proceed without error.  Previously it
26456         would error trying to find "lib/lib/parse-datetime.y".
26458 2017-01-05  Pádraig Brady  <P@draigBrady.com>
26460         maint.mk: support parallel execution of coverage
26461         * top/maint.mk (coverage): Run dependencies serially,
26462         thus supporting parallel processing of each one,
26463         particularly build-coverage, which builds and runs tests.
26465 2017-01-05  Bruno Haible  <bruno@clisp.org>
26467         lock tests: Prefer semaphore over mutex.
26468         * tests/test-lock.c (USE_SEMAPHORE): New constant.
26469         (struct atomic_int, init_atomic_int, get_atomic_int_value,
26470         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
26471         Suggested by Torvald Riegel <triegel@redhat.com>.
26473 2017-01-05  Bruno Haible  <bruno@clisp.org>
26475         lock: Provide guarantee to avoid writer starvation for rwlocks.
26476         The rationale is: 1) Read-preferring read-write locks are prone to
26477         writer starvation if the number of reader threads multiplied by the
26478         percentage of time they have the lock held is too high. 2) Write-
26479         preferring read-write locks are the only reliable way to avoid this.
26480         3) There have been reports of 'test-lock' hanging on glibc systems
26481         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
26482         and glibc indeed implements read-preferring rwlocks by default, see
26483         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
26484         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
26485         * m4/pthread_rwlock_rdlock.m4: New file.
26486         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
26487         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
26488         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
26489         of rwlock initialization on glibc systems without
26490         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
26491         of rwlocks altogether on non-glibc systems without
26492         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
26493         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
26494         * lib/glthread/lock.c [USE_POSIX_THREADS]
26495         (glthread_rwlock_init_for_glibc): New function.
26496         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
26497         comment.
26498         [USE_PTH_THREADS]: New implementation of rwlocks.
26499         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
26500         readers.
26501         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
26502         (Depends-on): Add 'extensions'.
26503         * tests/test-rwlock1.c: New file.
26504         * lock-tests (Files): Add it.
26505         (Depends-on): Add usleep.
26506         (Makefile.am): Add test-rwlock1 to the tests.
26508 2017-01-05  Bruno Haible  <bruno@clisp.org>
26510         thread: Fix pth port.
26511         * lib/glthread/thread.h (pth_init): Declare weak.
26512         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
26513         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
26514         function.
26516 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
26518         parse-datetime: fix debug message on lone year number
26519         Input dates such as
26520           date -d "Apr 11 22:59:00 2011"
26521         are parsed as date (Apr 11, with default year 2016), then time, then a
26522         number (2011). Based on the combination of previously seen tokens,
26523         'digits_to_date_time' determines 2011 to be a year value.
26524         This fixes the debug messages to correctly show the updated year.
26525         Before:
26526             $ date --debug -d 'Apr 11 22:59:00 2011'
26527             date: parsed date part: (Y-M-D) 2016-04-11
26528             date: parsed time part: 22:59:00
26529             date: parsed number part: today/this/now
26530         After:
26531             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
26532             date: parsed date part: (Y-M-D) 2016-04-11
26533             date: parsed time part: 22:59:00
26534             date: parsed number part: year: 2011
26535         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
26536         'debug_year_seen' member fields.
26537         (digits_to_date_time): Update 'year_seen' as needed.
26538         (debug_print_current_time): Inform about year updates.
26539         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
26541         parse-datetime: fix local timezone debug messages
26542         "Local timezones" are strings that affect only DST relative to the
26543         default timezone. The debug messages in parse-datetime.y printed
26544         wrong information when encountering local timezones.
26545         Examples:
26546         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
26547              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
26548              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
26549         When the default timezone relates to the zone strings, EET/EEST are
26550         parsed as local timezones (tLOCAL_ZONE), and only change the DST
26551         value (0/1, respectively):
26552              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
26553              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
26554         * lib/parse-datetime.y (debug_print_current_time): If local timezone
26555         was seen, inform about DST change, don't print actual timezone.
26556         (debug_strfdatetime): If local timezone was seen, use default timezone
26557         (and adjust as needed) instead of using incorrect timezone.
26558         (parse_datetime2): Use correct time-zone source string, and adjust
26559         default timezone as needed.
26561         parse-datetime: add debug warning about DST changes
26562         Incorrect date arithmetic due to daylight saving time (DST) are a
26563         common (false) bug report in coreutils.
26564         Detect two such cases and print a warning:
26565         1. year/month/day adjustments (performed on 'struct tm'),
26566            where 'mktime' returns a different isdst value.
26567         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
26568            where the result of 'localtime(3)' on the value will return a
26569            different isdst value.
26570         Note: DST changes could be harmless or unnoticeable.
26571         Examples (with 'TZ=America/New_York'):
26572         Unnoticeable: result is 2016-Dec-14
26573            $ date -d '2016-06-15 EDT + 6 months' +%b
26574            Dec
26575         Unnoticeable: result is 2016-Dec-15 11:00:00
26576            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
26577            2016-12-15
26578         This is unexpected:
26579            $ date -d '2016-06-01 EDT + 6 months' +%F
26580            2016-11-30
26581         The new debug warnings will show:
26582            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
26583            ...
26584            date: warning: daylight saving time changed after date adjustment
26585            ...
26586         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
26587         print an appropriate warning message.
26589         parse-datetime: add debug warning about date arithmetic
26590         Date arithmetic are done directly on the fields of 'struct tm',
26591         which can result in invalid dates. Normalization with 'mktime(3)'
26592         will then produce a different date - which might cause unexpected
26593         results.
26594         Examples:
26595           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
26596           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
26597         Note that date normalization is not inherently wrong and not rejected,
26598         as it has legitimate uses:
26599           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
26600         If the user asked to adjust months but 'mday' changed,
26601         or user asked to adjust years but 'month' changed - warn about it.
26602             $ ./src/date --debug -d '2016-10-31 - 1 month'
26603             ...
26604             date: warning: when adding relative months/years, \
26605                            it is recommended to specify the 15th of the month
26606             ...
26607             date: warning: month/year adjustment resulted in shifted dates:
26608             date:      adjusted Y M D: 2016 09 31
26609             date:    normalized Y M D: 2010 10 01
26610             ...
26611         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
26612         a warning message. Improve recommendation of when to use 15 of the
26613         month or noon for date arithmetic.
26615         parse-datetime: fix debug message of relative part after timezone
26616         Relative part (e.g '+8 days') after a timezone string was not
26617         reported (was only reported after a timezone number). Due to the
26618         parser's structure, timezone strings with numbers were handled
26619         separately.
26620         before:
26621              # Timezone number + relative part: OK
26622              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
26623              ...
26624              date: parsed relative part: -8 day(s)
26625              # Timezone string + relative part: missing
26626              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
26627              [ missing message ]
26628         After: messages are printed in both cases.
26629         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
26631         parse-datetime: fix incorrect debug message on lone number
26632         A lone number is an absolute value, not a relative time part.
26633         before:
26634            $ date --debug -d '20130101'
26635            date: parsed number part: today/this/now
26636         After:
26637            $ ./src/date --debug -d '20130101'
26638            date: parsed number part: (Y-M-D) 2013-01-01
26639         * lib/parse-datetime.y ('item'/'number' tokens): Call
26640         'debug_print_current_time' instead of 'debug_print_relative_time'.
26642 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
26644         doc: modernize for C11 etc.
26645         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
26646         for C11, MinGW, etc.  This responds to Paul Smith's question in:
26647         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
26649         dfa: prefer functions to FETCH_WC macro
26650         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
26651         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
26652         wint_t result into DFA->lex.wctok instead of to a separate arg.
26653         All callers changed.  Move more local decls closer to where
26654         they're used.
26656         dfa: narrow more local var scopes
26657         * lib/dfa.c: Move more local decls to be more local.
26659         dfa: remove duplicate assignment
26660         Problem reported by Bruno Haible in:
26661         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
26662         * lib/dfa.c (parse_bracket_exp): Simplify.
26664 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26666         dfa: simplify constraint-dependency checking
26667         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
26668         (prev_other_constraint): Remove.
26669         (prev_newline_dependent, prev_letter_dependent):
26670         Simplify, to avoid an unnecessary bitwise AND operation.
26672         dfa: prefer functions and constants to macros
26673         * lib/dfa.c: Prefer constants to macros where either will do.
26674         (streq, isasciidigit, newline_constraint)
26675         (letter_constraint, other_constraint, succeeds_in_context)
26676         (prev_newline_constraint, prev_letter_constraint)
26677         (prev_other_constraint, prev_newline_dependent)
26678         (prev_letter_dependent, accepting, accepts_in_context):
26679         Now static functions instead of function-like macros.
26680         Use lower-case names accordingly.  All uses changed.
26682         dfa: narrow more local var scopes
26683         * lib/dfa.c: Move some more local decls down to nearer where
26684         they're needed.
26686 2016-12-31  Jim Meyering  <meyering@fb.com>
26688         dfa: narrow the scope of many local variables
26689         * lib/dfa.c: Now that we are no longer constrained to c89, move
26690         declarations of many variables (often indices) "down" into the
26691         scope(s) where used or to the point of definition.  This is a
26692         no-semantic-change diff.
26694 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26696         version-etc: new year
26697         * build-aux/gendocs.sh (version):
26698         * doc/gendocs_template:
26699         * doc/gendocs_template_min:
26700         * doc/gnulib.texi:
26701         * lib/version-etc.c (COPYRIGHT_YEAR):
26702         Update copyright dates by hand in templates and the like.
26703         * all files: Run 'make update-copyright'.
26705 2016-12-31  Eric Blake  <eblake@redhat.com>
26707         do-release-commit-and-tag: avoid shell syntax error
26708         * build-aux/do-release-commit-and-tag (curr_br): $branch can
26709         contain spaces when rebasing.
26711         maint.mk: hoist gnulib_dir definition earlier
26712         * top/maint.mk (gnulib_dir): Move near top of file.
26714 2016-12-31  Jim Meyering  <meyering@fb.com>
26716         maint.mk: do not always evaluate intprops-related shell
26717         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
26718         using gnulib_dir undefined (gnulib_dir is defined later in the
26719         file, which will be fixed separately), and besides, there is no
26720         need to incur the cost of this shell invocation for every single
26721         use of this .mk file.  Reported by Eric Blake in
26722         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
26724 2016-12-30  Jim Meyering  <meyering@fb.com>
26726         maint.mk: improve sc_prohibit_intprops_without_use
26727         * top/maint.mk (_intprops_names): Don't hard-code the list of
26728         symbol names.  Instead, derive it on the fly.
26730 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
26732         dfa: shorten sbit, success
26733         * lib/dfa.c (struct regex_syntax.sbit):
26734         (struct dfa.success): Use char, not int, for array elements, since
26735         they are all in the range 0..7.
26737         dfa: simplify multibyte_prop etc.
26738         This follows up on a change made when dfa.c was in grep, namely grep
26739         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
26740         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
26741         That earlier simplification allows for some more simplification
26742         and trimming down here.
26743         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
26744         (struct lexer_state): New mamber brack.
26745         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
26746         since they must be in the range 0..3 now.
26747         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
26748         the brack member now supersedes them.
26749         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
26750         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
26751         (dfaparse): Remove unnecessary initializations of already-0 storage.
26752         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
26753         (dfassbuild): No need to clear sup->mbcsets.
26755         dfa: minor performance tweak
26756         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
26758         dfa: wrap charclass inside a struct
26759         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
26760         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
26761         about 5% faster, where list.txt is generated by 'aspell dump
26762         master | head -n 100000 >list.txt'.  See Bug#22239.
26763         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
26764         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
26765         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
26766         Adjust to this, e.g., by using charclass * rather than charclass.
26767         All callers changed as needed.
26768         (copyset): Remove.  All uses changed to simple assignment.
26769         (parse_bracket_exp): Use zeroset instead of memset.
26771 2016-12-30  Jim Meyering  <meyering@fb.com>
26773         maint.mk: update list of intprops.h symbol names
26774         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
26775         This avoids a false failure of the sc_prohibit_intprops_without_use
26776         rule in grep.
26778 2016-12-29  Eric Blake  <eblake@redhat.com>
26780         getopt: fix parallel test failure
26781         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
26782         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
26783         * tests/test-getopt-main.h (main): Use different file names
26784         in case test-getopt-gnu and test-getopt-posix run in parallel.
26786 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26788         xalloc: x2nrealloc check for ptrdiff_t overflow
26789         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
26790         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
26792 2016-12-24  Bruno Haible  <bruno@clisp.org>
26794         lock test: Fix performance problem on multi-core machines.
26795         * tests/test-lock.c (USE_VOLATILE): New macro.
26796         (struct atomic_int): New type.
26797         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
26798         functions.
26799         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
26800         as 'struct atomic_int'.
26801         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
26802         reclock_checker_thread, test_recursive_lock): Use the new functions.
26803         Reported by Eric Blake in
26804         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
26805         and by Pádraig Brady in
26806         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
26808 2016-12-19  Bruno Haible  <bruno@clisp.org>
26810         vma-iter: Fix endless loop on 64-bit Windows.
26811         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
26812         'unsigned long'.
26814 2016-12-19  Bruno Haible  <bruno@clisp.org>
26816         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
26817         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
26818         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
26819         Invoke gt_TYPE_WINT_T instead.
26820         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
26821         * modules/stdint (Files): Add m4/wint_t.m4.
26822         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26823         * modules/wctype-h (Makefile.am): Likewise.
26824         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
26825         not only on MSVC.
26826         * lib/wctype.in.h (wint_t): Likewise.
26828 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26830         getopt-posix-tests: fix Makefile typo
26831         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
26832         Fix typo: the last ‘_’ was missing in the name.
26833         I suspect that the typo explains this build failure:
26834         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
26835         although I can’t reproduce the problem on Solaris 10 sparc.
26837 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26839         dfa: improve worst-case 'replace' performance
26840         See my note in Bug#22357#71.
26841         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
26842         (merge_constrained): New function, which is like
26843         the old 'merge' function, except with a new argument C2.
26844         Simplify the body by avoiding the need for different sections
26845         of code depending on whether one input is exhausted.
26846         (merge): Use the new function.
26847         (delete): Return the constraint of the deleted position,
26848         not the entire position.  Caller changed.
26849         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
26851 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26853         dfa: performance improvement for removal of epsilon closure
26854         See Bug#22357#32.
26855         * lib/dfa.c (delete): Use binary search to find deleted index.
26856         (replace): New function.  It replaces a position with the followed set.
26857         (epsclosure): Replace it with a new algorithm.  Update caller.
26859 2016-12-18  Bruno Haible  <bruno@clisp.org>
26861         Split tests for getopt-posix and getopt-gnu.
26862         * tests/test-getopt-posix.c: New file.
26863         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
26864         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
26865         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
26866         GNULIB_TEST_GETOPT_GNU.
26867         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
26868         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
26869         (Makefile.am): Test test-getopt-posix instead of test-getopt.
26870         * modules/getopt-gnu-tests: New file.
26871         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
26873 2016-12-18  Bruno Haible  <bruno@clisp.org>
26875         posix-modules: Add options for specific platforms.
26876         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
26877         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
26878         Invoke func_tmpdir. Filter out the excludes.
26880 2016-12-18  Bruno Haible  <bruno@clisp.org>
26882         getopt: Fix link error for users of getopt() in <unistd.h>.
26883         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
26884         __need_getopt is defined. Undefine all macros before defining them.
26885         * modules/getopt (Include): Clarify that including <unistd.h> is also
26886         OK.
26887         * tests/test-getopt.c: Add comment.
26889 2016-12-17  Bruno Haible  <bruno@clisp.org>
26891         getaddrinfo tests: Avoid compilation error on MSVC.
26892         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
26893         getaddrinfo on native Windows.
26895 2016-12-17  Bruno Haible  <bruno@clisp.org>
26897         getlogin, getlogin_r: Fix link errors on MSVC.
26898         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
26899         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
26900         (Link): New section.
26901         * modules/getlogin_r (Files): Add m4/getlogin.m4.
26902         (configure.ac): Require gl_LIB_GETLOGIN.
26903         (Link): New section.
26904         * NEWS: Mention the new link requirements.
26905         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
26906         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
26908 2016-12-17  Bruno Haible  <bruno@clisp.org>
26910         Un-deprecate the 'progname' module.
26911         * NEWS: Describe the appropriate use-cases of 'progname' versus
26912         'getprogname'. Based on discussion summary at
26913         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
26915 2016-12-17  Bruno Haible  <bruno@clisp.org>
26917         Reorganize NEWS a bit.
26918         * NEWS: Move some not so important changes away from section
26919         "Important Notes".
26921 2016-12-17  Bruno Haible  <bruno@clisp.org>
26923         tanhf: Avoid redefinition error on MSVC.
26924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
26925         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
26926         may be defined as an inline function.
26927         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
26928         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
26930 2016-12-17  Bruno Haible  <bruno@clisp.org>
26932         tanf: Avoid redefinition error on MSVC.
26933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
26934         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
26935         may be defined as an inline function.
26936         * modules/math (Makefile.am): Substitute REPLACE_TANF.
26937         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
26939 2016-12-17  Bruno Haible  <bruno@clisp.org>
26941         sqrtf: Avoid redefinition error on MSVC.
26942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
26943         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
26944         may be defined as an inline function.
26945         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
26946         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
26948 2016-12-17  Bruno Haible  <bruno@clisp.org>
26950         sinhf: Avoid redefinition error on MSVC.
26951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
26952         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
26953         may be defined as an inline function.
26954         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
26955         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
26957 2016-12-17  Bruno Haible  <bruno@clisp.org>
26959         sinf: Avoid redefinition error on MSVC.
26960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
26961         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
26962         may be defined as an inline function.
26963         * modules/math (Makefile.am): Substitute REPLACE_SINF.
26964         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
26966 2016-12-17  Bruno Haible  <bruno@clisp.org>
26968         logf: Avoid redefinition error on MSVC.
26969         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
26970         may be defined as an inline function.
26972 2016-12-17  Bruno Haible  <bruno@clisp.org>
26974         log10l: Avoid redefinition error on MSVC.
26975         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
26976         may be defined as an inline function.
26978 2016-12-17  Bruno Haible  <bruno@clisp.org>
26980         log10f: Avoid redefinition error on MSVC.
26981         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
26982         may be defined as an inline function.
26984 2016-12-17  Bruno Haible  <bruno@clisp.org>
26986         hypotl: Avoid redefinition error on MSVC.
26987         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
26988         may be defined as an inline function.
26990 2016-12-17  Bruno Haible  <bruno@clisp.org>
26992         hypotf: Avoid redefinition error on MSVC.
26993         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
26994         may be defined as an inline function.
26996 2016-12-17  Bruno Haible  <bruno@clisp.org>
26998         fmodl: Avoid redefinition error on MSVC.
26999         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
27000         may be defined as an inline function.
27002 2016-12-17  Bruno Haible  <bruno@clisp.org>
27004         fmodf: Avoid redefinition error on MSVC.
27005         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
27006         may be defined as an inline function.
27008 2016-12-17  Bruno Haible  <bruno@clisp.org>
27010         expf: Avoid redefinition error on MSVC.
27011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
27012         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
27013         may be defined as an inline function.
27014         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
27015         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
27017 2016-12-17  Bruno Haible  <bruno@clisp.org>
27019         coshf: Avoid redefinition error on MSVC.
27020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
27021         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
27022         may be defined as an inline function.
27023         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
27024         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
27026 2016-12-17  Bruno Haible  <bruno@clisp.org>
27028         cosf: Avoid redefinition error on MSVC.
27029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
27030         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
27031         may be defined as an inline function.
27032         * modules/math (Makefile.am): Substitute REPLACE_COSF.
27033         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
27035 2016-12-17  Bruno Haible  <bruno@clisp.org>
27037         atan2f: Avoid redefinition error on MSVC.
27038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
27039         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
27040         may be defined as an inline function.
27041         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
27042         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
27044 2016-12-17  Bruno Haible  <bruno@clisp.org>
27046         atanf: Avoid redefinition error on MSVC.
27047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
27048         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
27049         may be defined as an inline function.
27050         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
27051         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
27053 2016-12-17  Bruno Haible  <bruno@clisp.org>
27055         asinf: Avoid redefinition error on MSVC.
27056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
27057         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
27058         may be defined as an inline function.
27059         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
27060         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
27062 2016-12-17  Bruno Haible  <bruno@clisp.org>
27064         acosf: Avoid redefinition error on MSVC.
27065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
27066         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
27067         may be defined as an inline function.
27068         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
27069         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
27071 2016-12-17  Bruno Haible  <bruno@clisp.org>
27073         Avoid redefinition errors on MSVC.
27074         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
27075         the function may be defined as an inline function.
27076         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
27077         the function may be defined as an inline function.
27079 2016-12-17  Bruno Haible  <bruno@clisp.org>
27081         Avoid redefinition errors on MSVC.
27082         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
27083         * lib/unistd.in.h: Include <stdio.h> when necessary.
27085 2016-12-17  Bruno Haible  <bruno@clisp.org>
27087         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
27088         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
27089         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
27090         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
27091         WINT_MAX.
27093 2016-12-17  Bruno Haible  <bruno@clisp.org>
27095         Avoid autoconf warning.
27096         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
27097         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
27099 2016-12-17  Bruno Haible  <bruno@clisp.org>
27101         fpending: Revert workaround against Emacs bug.
27102         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
27103         The Emacs bug is fixed by Eli Zaretskii in
27104         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
27106 2016-12-17  Bruno Haible  <bruno@clisp.org>
27108         getlogin_r tests: Port to mingw.
27109         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
27110         regression introduced on 2014-05-19.
27112 2016-12-17  Bruno Haible  <bruno@clisp.org>
27114         getlogin: Port to newer mingw.
27115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
27116         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
27117         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
27118         HAVE_GETLOGIN.
27119         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
27120         HAVE_GETLOGIN.
27121         * doc/posix-functions/getlogin.texi: Mention the issue.
27122         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
27123         regression introduced on 2014-05-14.
27125 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
27127         builtin-expect: improve port to IBM XL C
27128         Problem reported for z/OS by Daniel Richard G. in:
27129         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
27130         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
27131         Test for <builtins.h> directly.
27133         builtin-expect: port to IBM XL C
27134         Problem reported for z/OS by Daniel Richard G. in:
27135         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
27136         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
27137         Also allow __builtin_expect defined via a standard include file.
27139         regex: fix dependency
27140         Problem reported by Bruno Haible in:
27141         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
27142         * modules/regex: Depend on builtin-expect.
27144         builtin-expect: new module
27145         Fix fnmatch to use it.
27146         Problem reported for z/OS by Daniel Richard G.
27147         * lib/fnmatch.c (__builtin_expect):
27148         * lib/glob.c (__builtin_expect):
27149         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
27150         * lib/memmem.c (__builtin_expect) [!_LIBC]:
27151         * lib/scandir.c (__builtin_expect):
27152         * lib/strstr.c (__builtin_expect) [!_LIBC]:
27153         Remove macro; config.h now does this.
27154         * lib/gl_anytreehash_list1.h (add_to_bucket):
27155         * lib/regex_internal.h (BE):
27156         Assume __builtin_expect.
27157         * m4/builtin-expect.m4, modules/builtin-expect: New files.
27158         * modules/avltreehash-list, modules/fnmatch, modules/glob:
27159         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
27160         * modules/scandir, modules/strstr-simple:
27161         Depend on builtin-expect.
27163 2016-12-15  Bruno Haible  <bruno@clisp.org>
27165         init.sh: Add possibility to not delete temporary files.
27166         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
27167         to yes, don't erase the temporary directory.
27169 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
27171         regex: fix integer-overflow bug in never-used code
27172         Problem reported by Clément Pit–Claudel in:
27173         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
27174         * lib/regex_internal.h: Include intprops.h.
27175         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
27176         behavior on integer overflow.
27177         * modules/regex (Depends-on): Add intprops.
27179         fpending: fix port to MinGW on Emacs
27180         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
27181         Problem reported by Eli Zaretskii in:
27182         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
27183         Is Plan 9 still a valid porting target, anyway?
27185 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
27187         safe-alloc: use xalloc-oversized
27188         * lib/safe-alloc.c: Include xalloc-oversized.h.
27189         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
27190         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
27192         xalloc: do not exceed PTRDIFF_MAX
27193         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
27194         xalloc_oversized check, since objects larger than PTRDIFF_MAX
27195         bytes have pointer-subtraction problems.
27197         malloca: do not exceed PTRDIFF_MAX
27198         * lib/malloca.h: Include xalloc-oversized.
27199         (nmalloca): Use xalloc_oversized instead of rolling our own.
27200         * modules/malloca (Depends-on):
27201         * modules/relocatable-prog-wrapper (Depends-on):
27202         Add xalloc-oversized.
27204         quotearg: pacify GCC better
27205         * modules/quotearg (Depends-on): Add minmax, stdint.
27206         * lib/quotearg.c: Include minmax.h, stdint.h.
27207         (nslots): Now int, as there seems little point to going to extra
27208         work merely to support the INT_MAX slot, which nobody ever uses.
27209         (quotearg_n_options): Redo size-overflow checks to pacify GCC
27210         and to catch (mostly-theoretical) ptrdiff_t problems too.
27211         This can be done via one comparison.
27213 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
27215         xalloc-oversized: check for PTRDIFF_MAX too
27216         This avoids undefined behavior when subtracting pointers to
27217         objects containing more than PTRDIFF_MAX bytes.
27218         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
27219         Also return 1 if the result would exceed PTRDIFF_MAX>
27220         * modules/xalloc-oversized (Depends-on):
27221         Add stdint.
27223         dfa: fix glitches in previous commit
27224         Sorry, I don't know how I managed to commit the wrong version.
27225         * lib/dfa.c (MIN): Move up.
27226         (xpalloc): Now static.
27228         dfa: fix some unlikely integer overflows
27229         I found these while reviewing the recent Coverity-related fix.
27230         This patch changes part of dfa.c to prefer ptrdiff_t instead of
27231         size_t for object counts.  Using ptrdiff_t is the style typically
27232         used in Emacs; although it wastes a sign bit as sizes can never be
27233         negative, it makes -fsanitize=undefined more likely to catch
27234         integer overflows in index calculation, and nowadays the upside is
27235         typically more important than the downside.  Although perhaps the
27236         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
27237         of dfa.c already does, since it uses state_num which is signed),
27238         that is a bigger change and is not needed to fix the bugs I found.
27239         * lib/dfa.c: Include stdint.h and intprops.h.
27240         (TOKEN_MAX): New macro.
27241         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
27242         (charclass_index, parse_bracket_exp, addtok, insert, merge)
27243         (realloc_trans_if_necessary, free_mbdata):
27244         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
27245         This is safe because xpalloc checks that the sizes do not exceed
27246         either SIZE_MAX or PTRDIFF_MAX.
27247         (xpalloc): New function, mostly taken from Emacs.
27248         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
27249         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
27250         (charclass_index): Check for integer overflow in computing
27251         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
27252         added to it later.
27253         (alloc_position_set): Check for integer overflow.  On typical
27254         platforms this check has zero overhead, since the constant
27255         expression is false.
27256         (realloc_trans_if_necessary):
27257         Remove assertion, which I hope Coverity no longer needs.
27259         * modules/dfa (Depends-on): Add intprops, stdint.
27261 2016-12-12  Jim Meyering  <meyering@fb.com>
27263         dfa: add an assertion to avoid coverity false positive
27264         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
27265         warned that "newalloc1 - 2" could overflow.
27267 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
27269         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
27270         * dfa.h (DFA_CASE_FOLD): Remove.
27271         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
27273 2016-12-13  John W. Eaton  <gnu@jweaton.org>
27275         link: fix test to declare use of rename()
27276         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
27277         -Werror=implicit-function-declaration
27279 2016-12-12  Bruno Haible  <bruno@clisp.org>
27281         fpending: Port to native Windows with MSVC.
27282         * lib/fpending.c: Include stdio-impl.h.
27283         (__fpending): Include all known implementations. Err out if it's not
27284         ported.
27285         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
27286         * modules/fpending (Files): Add lib/stdio-impl.h.
27287         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
27289 2016-12-12  Bruno Haible  <bruno@clisp.org>
27291         stdioext: Port to native Windows with MSVC.
27292         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
27293         (struct _gl_real_FILE): New type.
27294         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
27295         Windows.
27296         * lib/fbufmode.c (fbufmode): Add code for native Windows.
27297         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
27298         other SystemV derived implementations.
27299         * lib/fpurge.c (fpurge): Likewise.
27300         * lib/freadable.c (freadable): Likewise.
27301         * lib/freadahead.c (freadahead): Likewise.
27302         * lib/freading.c (freading): Likewise.
27303         * lib/freadptr.c (freadptr): Likewise.
27304         * lib/freadseek.c (freadptrinc): Likewise.
27305         * lib/fseeko.c (fseeko): Likewise.
27306         * lib/fseterr.c (fseterr): Likewise.
27307         * lib/fwritable.c (fwritable): Likewise.
27308         * lib/fwriting.c (fwriting): Likewise.
27309         Reported by Gisle Vanem <gvanem@yahoo.no>.
27311 2016-12-11  Jim Meyering  <meyering@fb.com>
27313         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
27314         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
27315         to work with most shells, but not with the one provided by many
27316         Solaris 10 systems, so running configure with such a /bin/sh evokes
27317         e.g., "./configure: syntax error at line 33602: `(' unexpected".
27318         Reported by Assaf Gordon in
27319         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
27321 2016-12-10  Bruno Haible  <bruno@clisp.org>
27323         threadlib: Optimize out runtime test on Solaris >= 10.
27324         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
27325         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
27326         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
27328 2016-12-10  Bruno Haible  <bruno@clisp.org>
27330         stdint: Update doc about Solaris 9.
27331         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
27333 2016-12-09  Bruno Haible  <bruno@clisp.org>
27335         c-ctype tests: Fix link error on Solaris 9.
27336         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
27337         Reported at <https://savannah.gnu.org/bugs/?46827>.
27339 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
27341         dfa: fix performance bug that recomputes trans
27342         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
27343         25 on-demand changes.  The bug caused build_state to reset all
27344         d->trans elements to -2 even when d->trans was already non-null.
27345         Use C99 style decls after statements in this function.
27347         same-inode: port to MinGW
27348         Here st_ino is always 0, so change the definition of SAME_INODE so
27349         that 1 means the two files are the same, 0 with st_ino != 0 means
27350         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
27351         reported by Bruno Haible (Bug#25146).
27352         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
27353         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
27355 2016-12-04  Bruno Haible  <bruno@clisp.org>
27357         javacomp-script: Support Java 7 and 8.
27358         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
27359         target-version 1.7, 1.8.
27361 2016-12-02  Daiki Ueno  <ueno@gnu.org>
27363         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
27364         GPLv2" rewriting.
27366 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
27368         * gnulib-tool (func_import): Adhere to the license guideline when
27369         rewriting the license text to "LGPLv3+ or GPLv2":
27370         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
27372 2016-12-02  Bruno Haible  <bruno@clisp.org>
27374         localcharset: Avoid theoretical buffer overrun.
27375         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
27376         return value from setlocale if it would lead to a buffer overrun.
27378 2016-12-01  Bruno Haible  <bruno@clisp.org>
27380         Relicense some modules under LGPLv2+.
27381         Kevin Cernekee's approval is in
27382         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
27383         * modules/fseterr (License): Change to LGPLv2+.
27384         * modules/mbchar (License): Likewise.
27385         * modules/mbiter (License): Likewise.
27386         * modules/mbsnlen (License): Likewise.
27387         * modules/wcwidth (License): Likewise.
27389 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27391         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
27392         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
27393         OS/2 kLIBC.
27395 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27397         alphasort, scandir: Port to OS/2 kLIBC
27398         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
27399         declaration.
27400         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
27402 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27404         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
27405         * lib/relocatable.c (relocate): Do not touch pathname if it is started
27406         with '/@unixroot'.
27408 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
27410         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
27411         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
27412         OS/2 kLIBC unless TCPV40HDRS is defined.
27414 2016-11-29  Jim Meyering  <meyering@fb.com>
27416         dfa: avoid new infinite loop
27417         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
27418         * lib/dfa.c (dfastate): When constructing a new state table, we could
27419         initially declare that we had found a match, and later find that
27420         constraints eliminate that possibility, yet continue to use the
27421         now stale "matched" indicator.  That would lead to an infinite loop.
27422         The solution is to update "matched" when necessary.
27423         Introduced by commit v0.1-983-g403adf1.
27425 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27427         dfa: avoid match middle in multibyte character
27428         * lib/dfa.c (transit_state): If fails in matching single byte characters
27429         on a state including period expression in non-UTF8 multibyte locales,
27430         skip trailing bytes.
27431         (dfa_supported): Revert previous change.
27433 2016-11-27  Jim Meyering  <meyering@fb.com>
27435         dfa: avoid false match in non-UTF8 multibyte locales
27436         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
27437         as "not supported" so that callers will resort to using regex-based
27438         matcher.  This will surely hurt performance, but correctness trumps
27439         performance here, and the affected locales are less and less relevant,
27440         these days.  See grep's bug report https://bugs.gnu.org/24975.
27442 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
27444         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
27445         * lib/ptsname_r.c: Include the appropriate headers.
27446         [__sun]: Delete sys/sysmacros.h include.
27447         [_AIX || __osf__]: Likewise.
27448         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
27450 2016-11-27  Pádraig Brady  <P@draigBrady.com>
27452         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
27453         * lib/md4.c (md4_process_bytes): The existing define is made internal
27454         in recent versions of glibc, so also use this new public define.
27455         * lib/md5.c (md5_process_bytes): Likewise.
27456         * lib/sha1.c (sha1_process_bytes): Likewise.
27457         * lib/sha256.c (sha256_process_bytes): Likewise.
27458         * lib/sha512.c (sha512_process_bytes): Likewise.
27460 2016-11-27  Pádraig Brady  <P@draigBrady.com>
27462         maint: use a more standard return from mbrtowc test
27463         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
27464         from the test program as this often indicates an
27465         unhandled case in the test program.
27466         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
27467         (gl_MBRTOWC_SANITYCHECK): Likewise.
27468         (gl_MBRTOWC_NULL_ARG2): Likewise.
27469         (gl_MBRTOWC_NUL_RETVAL): Likewise.
27471 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
27473         freopen: work around glibc bug with closed fd
27474         Work around glibc bug#15589, where freopen mishandles the case
27475         where stdin etc. are already closed.
27476         * doc/posix-functions/freopen.texi (freopen): Document the bug.
27477         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
27478         instead of __need_FILE, as the latter does not work with glibc.
27479         Include <fcntl.h>, for open flags.
27480         (rpl_freopen): Work around glibc bug.
27481         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
27482         * modules/freopen (Depends-on): Add fcntl-h.
27483         * tests/test-freopen.c (main): Test for bug.
27485 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27487         fnmatch: fix typo introduced on 2016-08-17
27488         This fixes the port to non-GCC compilers that lack __builtin_expect.
27489         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
27491         dfa: simplify with new function fillset
27492         * lib/dfa.c (fillset): New function.
27493         Use it for clarity when applicable.
27495         dfa: fix glitches with on-demand states
27496         Also, adjust commentary to better match new code.
27497         Some of these glitches predate the recent change.
27498         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
27499         only non-initial states.
27500         (dfastate): Rename locals to better match new roles.
27501         Move them into nested scopes if this is easy.
27502         Omit unnecessary calls to zeroset.
27503         Simplify test for whether to throw in the positions of state 0.
27504         Omit C99-ism (decl after statement) since Gawk still wants C89.
27505         (build_state): Omit unnecessary test and assignment.
27506         Fix some confusion that counted transition tables inaccurately
27507         and could cause a memory leak.
27508         (dfaexec_main): Redo to make it clearer to the compiler that
27509         -1 and -2 are the only negative state numbers here.
27511 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27513         dfa: addition of new state on demand
27514         * src/dfa.c (dfastate): Add argument UC, the current input character.
27515         Fill only a group including the character in transition table.
27516         (realloc_trans_if_necessary): Add the dummy state which means that a
27517         transition table is assigned but the next state is not assigned.
27518         (build_state): Return the next state.  All callers updated.
27519         (transit_state_singlebyte): If we get the dummy state,
27520         fill the transition table.
27521         (dfaexec_main): Handle the dummy state.
27522         (free_mbdata, dfafree): Consider the dummy state.
27524 2016-11-24  Daiki Ueno  <ueno@gnu.org>
27526         srclist: sync with released gettext
27527         * config/srclist.txt: Set "release" option to the files under
27528         $GETTEXT.
27530 2016-11-24  Daiki Ueno  <ueno@gnu.org>
27532         srclist: add "release" option
27533         * config/srclist.txt: Change the format so that the first column
27534         of each line points to the top-level directory of the source
27535         archive.
27536         * config/srclist-update: Accept "release" option that checks files
27537         from the most recently tagged revision in the source archive.
27539 2016-11-21  Bruno Haible  <bruno@clisp.org>
27541         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
27542         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
27543         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
27544         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
27545         Inline and remove member function 'rpl ()' of the wrapper struct.
27547 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27549         dfa: fix logic typo
27550         Problem reported by Stephane Chazelas (Bug#24973).
27551         * lib/dfa.c (using_simple_locale): Fix typo that caused some
27552         non-simple locales like fr_FR to be treated as simple.
27554 2016-11-20  Jim Meyering  <meyering@fb.com>
27556         fix test driver leaks: exclude, malloc, realloc
27557         * tests/test-exclude.c (main): Fix trivial leak.
27558         * tests/test-malloc-gnu.c (main): Likewise.
27559         * tests/test-realloc-gnu.c (main): Likewise.
27560         With these changes, grep's tests are now leak free.
27561         I.e., running them with ASAN elicits no failure:
27562           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
27563             AM_LDFLAGS='-fsanitize=address -static-libasan' check
27565 2016-11-11  Bruno Haible  <bruno@clisp.org>
27567         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
27568         * modules/libunistring: (License): Change from LGPL to
27569         "LGPLv3+ or GPLv2".
27570         * modules/libunistring-optional: Likewise.
27571         * modules/unicase/*: Likewise.
27572         * modules/uniconv/*: Likewise.
27573         * modules/unictype/*: Likewise.
27574         * modules/unigbrk/*: Likewise.
27575         * modules/unilbrk/*: Likewise.
27576         * modules/uniname/*: Likewise.
27577         * modules/uninorm/*: Likewise.
27578         * modules/unistdio/*: Likewise.
27579         * modules/unistr/*: Likewise.
27580         * modules/uniwbrk/*: Likewise.
27581         * modules/uniwidth/*: Likewise.
27583 2016-11-12  Bruno Haible  <bruno@clisp.org>
27585         Relicense some modules under LGPLv2+.
27586         Paul Eggert's approval is in
27587         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
27588         Eric Blake's approval is in
27589         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
27590         Ludovic Courtès's approval is in
27591         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
27592         * modules/isnand-nolibm (License): Change to LGPLv2+.
27593         * modules/isnanf-nolibm (License): Likewise.
27594         * modules/isnanl-nolibm (License): Likewise.
27596 2016-11-19  Bruno Haible  <bruno@clisp.org>
27598         Relicense some modules under LGPLv2+.
27599         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
27600         modules/vasnprintf.
27601         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
27602         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
27603         All other significant changes to the files in lib/ of these modules
27604         are from me.
27605         * modules/memcmp2 (License): Change to LGPLv2+.
27606         * modules/amemxfrm (License): Likewise.
27607         * modules/fpieee (License): Likewise.
27608         * modules/fpucw (License): Likewise.
27609         * modules/frexp-nolibm (License): Likewise.
27610         * modules/frexpl-nolibm (License): Likewise.
27611         * modules/printf-frexp (License): Likewise.
27612         * modules/printf-frexpl (License): Likewise.
27613         * modules/printf-safe (License): Likewise.
27614         * modules/signbit (License): Likewise.
27616 2016-11-17  Bruno Haible  <bruno@clisp.org>
27618         Enable Unicode decoder safety unconditionally.
27619         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
27620         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
27621         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27622         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27623         * lib/unistr/u8-prev.c (u8_prev): Likewise.
27624         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
27625         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
27626         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
27627         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
27628         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
27629         * lib/unistr/u16-prev.c (u16_prev): Likewise.
27630         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
27631         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
27632         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
27633         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
27634         * lib/unistr/u32-prev.c (u32_prev): Likewise.
27635         * lib/unistr/u32-next.c (u32_next): Likewise.
27636         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
27637         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
27638         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27639         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
27640         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
27641         CONFIG_UNICODE_SAFETY tests unconditionally.
27642         * tests/unistr/test-u32-mblen.c (main): Likewise.
27643         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
27644         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
27645         * tests/unistr/test-u32-next.c (main): Likewise.
27646         * tests/unistr/test-u32-strmblen.c (main): Likewise.
27647         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
27648         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
27649         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
27650         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
27651         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27652         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
27653         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
27654         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
27655         * lib/unistr/u16-check.c (u16_check): Update comment.
27656         * NEWS: Mention the changes that callers should be aware of.
27658 2016-11-19  Bruno Haible  <bruno@clisp.org>
27660         relocatable-prog-wrapper: Fix breakage on Cygwin.
27661         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
27662         (Depends-on): Remove intprops.
27663         * lib/relocwrapper.c: Update dependency tree.
27664         (strerror): Undefine.
27665         * build-aux/install-reloc (func_create_wrapper): Do not compile
27666         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
27668 2016-11-19  Bruno Haible  <bruno@clisp.org>
27670         strerror: Make it compile in C++ mode.
27671         * lib/strerror.c (strerror): Ignore the return value of memcpy().
27673 2016-11-15  Pedro Alves  <palves@redhat.com>
27675         sys_time: add gnulib::timeval for C++
27676         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
27677         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
27678         timeval macro.
27680 2016-11-14  Pedro Alves  <palves@redhat.com>
27682         snippet/c++defs: fix real-floating arg functions in C++ mode
27683         Also, define isfinite, isinf, isnan, signbit in the gnulib
27684         namespace instead of in the global namespace.
27685         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
27686         (_GL_END_NAMESPACE): New.
27687         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
27688         (isfinite, isinf, isnan, signbit) [__cplusplus &&
27689         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
27690         instead of in the global namespace.
27691         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
27692         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
27693         of in the global namespace.
27695 2016-11-13  Jim Meyering  <meyering@fb.com>
27697         strftime: don't use __THROW
27698         Each use of __THROW would provoke this from gcc-7-to-be:
27700           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
27701             on unit local functions [-Wattributes]
27702           static int iso_week_days (int, int) __THROW;
27703           ^~~~~~
27704         * lib/strftime.c (__THROW): Don't define.
27705         Remove each use of __THROW.
27706         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
27707         (tm_diff, iso_week_days, __strftime_internal): Likewise.
27709 2016-11-14  Paul Eggert  <eggert@union>
27711         obstack: port to gcc -fcheck-pointer-bounds
27712         Problem found by 'make check' failure on bleeding-edge coreutils
27713         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
27714         6.2.0-5ubuntu12), configured via "./configure
27715         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
27716         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
27717         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
27718         New macro, copied from fts_.h.
27719         (struct _obstack_chunk.contents): Use it.
27721 2016-11-14  Eric Blake  <eblake@redhat.com>
27723         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
27724         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
27725         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
27727 2016-11-14  Pádraig Brady  <P@draigBrady.com>
27729         strptime: fix compile error in recent change
27730         * lib/strptime.c (__strptime_internal): Fix ported code.
27732 2016-11-11  Bruno Haible  <bruno@clisp.org>
27734         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
27735         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
27736         (func_import): Extend determination of license_incompatibilities.
27737         (func_create_testdir): Extend table of license compatibility. Handle
27738         also the licenses GPLv3+, GPL, LGPLv3+.
27740 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27742         strftime: tune %q
27743         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
27745         Merge strftime.c changes from glibc
27746         This incorporates:
27747         2007-10-16 [BZ #5184] Add tzset_called argument
27748         2008-06-13 [BZ #6612] pass reference to tzset_called around
27749         2009-10-30 Implement Burmese language locale for Myanmar
27750         2010-01-09 Add support for XPG7 testing
27751         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
27752         2015-10-20 Convert miscellaneous function definitions to prototype style
27753         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
27754         it anyway and this lessens the difference between gnulib and glibc.
27755         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
27756         (__THROW): Define if standard headers do not.
27757         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
27758         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
27759         Declare with __THROW.
27760         (__strftime_internal): Rename from strftime_case_. Add arg for
27761         whether tzset is called.  All uses changed.  Call tzset at most
27762         once.  Allow %OC, for Burmese.
27763         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
27764         Don't assume values are in range.
27766 2016-11-12  Eric Blake  <eblake@redhat.com>
27768         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
27769         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
27770         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
27771         different value.
27773 2006-11-12  Pedro Alves  <palves@redhat.com>
27775         Fix gnulib C++ namespace support and std::frexp
27776         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
27777         _GL_CXXALIASWARN.
27779 2006-11-12  Pedro Alves  <palves@redhat.com>
27781         GNULIB_NAMESPACE::func need not pull in rpl_func
27782         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
27783         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
27784         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
27785         struct instead of a function pointer.
27787 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
27789         manywarnings: fix -Wno-missing-field-initializers detection
27790         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
27791         to be independent of -Wunused-variable.  I.E. ensure the latter
27792         warning doesn't occur so that detection of the former is accurate.
27794 2016-11-05  Pádraig Brady  <pbrady@fb.com>
27796         strftime,strptime: support %q to represent the quarter
27797         * lib/strftime.c (strftime_case_): Add %q case.
27798         * lib/strptime.c (__strptime_internal): Likewise.
27799         * tests/test-strftime.c (quarter_test): A new test case.
27801 2016-11-03  Eric Blake  <eblake@redhat.com>
27803         bootstrap: Fix get_version() for AIX 5.3
27804         * build-aux/bootstrap (get_version): Factor out sed script, since
27805         indented comments choke AIX 5.3 sed.
27806         Reported-by: Michael Felt <aixtools@gmail.com>
27808 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27810         intprops: port to older XL C
27811         Problem reported by Alexander Samoilov in:
27812         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
27813         http://savannah.nongnu.org/bugs/?49448
27814         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
27815         Define to 1 only for XL C 12.1 or later, since this bug
27816         occurs in XL C for AIX 6.0 but not in 12.1.
27818 2016-11-02  Pádraig Brady  <P@draigBrady.com>
27820         backupfile: initialize default suffix within the implementation
27821         * lib/backupfile.c (find_backup_file_name): Initialize the
27822         global variable here, to simplify usage, and to only call
27823         getenv() when needed.
27825 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27827         futimens: remove FIXME for old Linux kernels
27828         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
27829         this in 2012" FIXME, like that for utimensat.
27831         utimensat: remove FIXME for old Linux kernels
27832         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
27833         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
27834         this in 2012" FIXME, by assuming the file system bug is absent
27835         unless demonstrated to be present.  We no longer need to worry
27836         about Linux kernel 2.6.32 when building with newer kernels.
27838 2016-10-16  Bruno Haible  <bruno@clisp.org>
27840         qsort_r: Fix macrology for platforms that lack the function.
27841         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
27842         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
27843         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
27844         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
27845         not exist.
27846         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
27847         the function exists.
27848         * modules/qsort_r: Add comments.
27850 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27852         sys_types: fix Texinfo typos
27853         * doc/glibc-functions/gnu_dev_major.texi:
27854         * doc/glibc-functions/gnu_dev_makedev.texi:
27855         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
27857 2016-10-26  John David Anglin  <dave.anglin@bell.net>
27859         getprogname: port to HP-UX
27860         See Bug#24805.
27861         * lib/getprogname.c (getprogname) [__hpux]: Port.
27862         * tests/test-getprogname.c (STREQ) [__hpux]:
27863         Special-case for HP-UX limitations on program name length.
27865 2016-10-20  Bruno Haible  <bruno@clisp.org>
27867         Update doc about target platforms.
27868         * doc/gnulib-intro.texi (Target Platforms): Update list.
27870 2016-10-15  Bruno Haible  <bruno@clisp.org>
27872         opendir, readdir, closedir: Relicense under LGPLv2+.
27873         * modules/opendir (License): Change to LGPLv2+.
27874         * modules/readdir (License): Likewise.
27875         * modules/closedir (License): Likewise.
27877 2016-10-16  Bruno Haible  <bruno@clisp.org>
27879         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
27880         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
27881         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
27882         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
27883         HAVE_DECL_STRERROR_R.
27885 2016-10-16  Bruno Haible  <bruno@clisp.org>
27887         Make the 'argp' module work without the 'error' module.
27888         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
27890 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27892         diffseq: restore TOO_EXPENSIVE heuristic
27893         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
27894         (Bug#24715).  The simplest solution is to restore the
27895         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
27896         using a higher threshold to avoid Bug#16848 on smaller files.
27897         * lib/diffseq.h (struct context): Restore member too_expensive.
27898         (struct partition): Restore members lo_minimal, hi_minimal.
27899         (diag, compareseq): Restore arg find_minimal.  All uses changed.
27900         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
27901         1993 to make 'diff' run faster (but not as well) on large inputs,
27902         but use a threshold of 4096 instead of the old 256.
27903         * lib/fstrcmp.c (strcmp_bounded):
27904         * lib/git-merge-changelog.c (compute_differences):
27905         Adjust to diffseq.h changes.
27907 2016-10-22  Bruno Haible  <bruno@clisp.org>
27909         iconv: Avoid compilation error when bootstrapping GNU libiconv.
27910         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
27911         declaration yet, define ICONV_CONST to empty.
27913 2016-10-15  Bruno Haible  <bruno@clisp.org>
27915         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
27916         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
27917         module.
27919 2016-10-16  Bruno Haible  <bruno@clisp.org>
27921         system-quote tests: Avoid compiler warning on AIX.
27922         * tests/test-system-quote-child.c (fopen): Redefine like the system's
27923         <stdio.h> does.
27925 2016-10-16  Bruno Haible  <bruno@clisp.org>
27927         Fix some "gcc -Wall" warnings.
27928         * tests/test-ffsl.c (main): Use variable x, not i.
27929         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
27930         freopen.
27931         * tests/test-sethostname1.c (main): Explicitly ignore the return value
27932         of sethostname.
27934 2016-10-16  Bruno Haible  <bruno@clisp.org>
27936         gnulib-tool: Make --create-testdir on all modules work again.
27937         * gnulib-tool (func_create_testdir): Don't include the
27938         non-recursive-gnulib-prefix-hack module.
27940 2016-10-21  Daiki Ueno  <ueno@gnu.org>
27942         libunistring: change the maintainer to 'all'
27943         * modules/gen-uni-tables, modules/libunistring:
27944         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
27945         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
27946         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
27947         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
27948         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
27949         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
27950         * modules/uniwidth/*: Change the maintainer to 'all'.
27952 2016-10-16  Bruno Haible  <bruno@clisp.org>
27954         Simplify "configure: checking ..." messages.
27955         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
27956         AC_MSG_NOTICE.
27957         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27959 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27961         quotearg-tests: pacify gcc -Wall
27962         Problem reported by Bruno Haible in:
27963         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
27964         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
27965         * tests/test-quotearg.h: ... from here.
27967 2016-10-20  Pádraig Brady  <P@draigBrady.com>
27969         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
27970         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
27971         Needed on Centos <= 4.
27973 2016-10-20  Jim Meyering  <meyering@fb.com>
27975         printf.m4: fix a bug in detecting printf %j support
27976         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
27977         uintmax_t is defined in neither stdint.h nor inttypes.h.
27978         Before, this macro might have mistakenly set
27979         gl_cv_func_printf_sizes_c99=yes on such a system.
27980         Spotted by Zev Weiss.
27982 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27984         sched: substitute HAVE_SYS_CDEFS_H too
27985         Problem reported by Tom G. Christensen in:
27986         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
27987         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
27988         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
27990 2016-10-19  Pádraig Brady  <P@draigBrady.com>
27992         quotearg: never write beyond the returned length
27993         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
27994         scan of the string when we initially encounter a single quote when
27995         shell quoting, so that if we then switch to a more concise quoting method
27996         we will not have written beyond that returned length.
27997         This is significant for sh-quote, which has separate routines
27998         to determine the length and do the actual quoting.
27999         * tests/test-quotearg.h: Reinstate the buffer bounds checking
28000         now that we never write more than the returned length.
28002 2016-10-18  Bruno Haible  <bruno@clisp.org>
28004         getprogname tests: Avoid failure in packages that use libtool.
28005         * tests/test-getprogname.c (main): Strip "lt-" prefix.
28006         Based on a patch by Jim Meyering.
28008 2016-10-16  Bruno Haible  <bruno@clisp.org>
28010         getprogname: Fix test failure on Cygwin. Comments.
28011         * lib/getprogname.h: Add comments.
28012         * lib/getprogname.c: Add comments. Fix #elif indentation.
28013         * tests/test-getprogname.c (main): On Cygwin, expect a result without
28014         ".exe" suffix.
28016 2016-10-16  Bruno Haible  <bruno@clisp.org>
28018         Make sure the libunistring detection rejects older versions with a
28019         known bug.
28020         * modules/unistr/u8-strtok (configure.ac): Bump required version.
28021         * modules/unistr/u16-strtok (configure.ac): Likewise.
28022         * modules/unistr/u32-strtok (configure.ac): Likewise.
28024 2016-10-18  Bruno Haible  <bruno@clisp.org>
28026         sh-quote, system-quote: revert regression of unit test.
28027         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
28028         * tests/test-system-quote-main.c (check_one): Likewise.
28030 2016-10-16  Pádraig Brady  <P@draigBrady.com>
28032         quotearg: fix stale tests
28033         * tests/test-quotearg.c [locale_results]: Add the missing str7
28034         entries to the expected results.
28035         * tests/test-system-quote-main.c (check_one): Don't enforce that we
28036         don't write beyond the returned length, since that's no longer the
28037         case if we switch to a more concise quoting style.
28038         * tests/test-sh-quote.c (check_one): Likewise.
28039         (main): Adjust for the new more concise quoting style.
28040         Reported by Bruno Haible.
28042 2016-10-16  Jim Meyering  <meyering@fb.com>
28044         non-recursive-gnulib-prefix-hack: fix inconsequential typo
28045         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
28046         to "$1".  This macro is always invoked with $1 == lib.
28047         Spotted by Bruno Haible
28049 2016-10-16  Bruno Haible  <bruno@clisp.org>
28051         Fix a test crash.
28052         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
28053         fails.
28055 2016-10-16  Pádraig Brady  <P@draigBrady.com>
28057         test-limits-h: suppress -Woverlength-strings
28058         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
28060 2016-10-15  Bruno Haible  <bruno@clisp.org>
28062         gettime, timespec, utimens: Relicense under LGPL.
28063         * modules/gettime (License): Change to LGPL.
28064         * modules/timespec (License): Likewise.
28065         * modules/utimens (License): Likewise.
28067 2016-10-14  Bruno Haible  <bruno@clisp.org>
28068             Pádraig Brady  <P@draigBrady.com>
28070         canonicalize-lgpl: Support the case path_max > INT_MAX.
28071         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
28072         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
28074 2016-10-13  Jim Meyering  <meyering@fb.com>
28076         getprogname: IBM z/OS: avoid NULL-dereference
28077         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
28078         upon strdup failure.
28080 2016-10-12  Jim Meyering  <meyering@fb.com>
28082         test-stdint: use _GL_VERIFY rather than "verify" for some tests
28083         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
28084         and an abbreviated diagnostic rather than verify with the full one,
28085         because the full-length strings would evoke warnings from gcc with
28086         -Woverlength-strings.
28088 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28090         stdint: port SIZE_MAX to glibc s390
28091         Problem reported by Eric Blake in:
28092         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
28093         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
28094         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
28095         correct type, if possible.
28097 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
28099         getprogname: port to IBM z/OS
28100         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
28102 2016-10-11  Jim Meyering  <meyering@fb.com>
28104         maint: remove stray space after "." in AC_DEFINE comment.
28105         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
28106         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28108 2016-10-05  Jim Meyering  <meyering@fb.com>
28110         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
28111         * lib/long-options.c (parse_long_options): Add a break statement
28112         to avoid this new warning/failure:
28113         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
28114           --create-testdir --dir=/t/x --with-tests --test long-options
28115         ../../gllib/long-options.c: In function 'parse_long_options':
28116         ../../gllib/long-options.c:66:12: error: this statement may \
28117           fall through [-Werror=implicit-fallthrough]
28118                    (*usage_func) (EXIT_SUCCESS);
28119                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
28121 2016-10-05  Jim Meyering  <meyering@fb.com>
28123         utimecmp: avoid new GCC 7 warning from -Wbool-operation
28124         Testing this module would fail when using GCC 7 like this:
28125         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
28126           --dir=/tmp/x --with-tests --test utimecmp
28127         ../../gllib/utimecmp.c: In function ‘utimecmp’:
28128         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
28129           [-Werror=bool-operation]
28130                          time_t s = src_s & ~ (res == 2 * BILLION);
28131                                             ^
28132         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
28133           [-Werror=bool-operation]
28134                src_s &= ~ (res == 2 * BILLION);
28135                         ^
28136         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
28137         Instead, make it explicit that we intend to apply it to 0 or 1.
28139 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
28141         dfa: save memory for states
28142         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
28143         states if dfa has a lot of caches.
28145 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
28147         wchar, wctype-h: fix for MinGW 3.22.2
28148         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
28149         special invocation, to fix issues with MinGW 3.22.2 wchar.h
28150         when included from <string.h>.
28151         * lib/wctype.in.h [__MINGW32__]: Add special invocation
28152         convention for MinGW 3.22.2, to solve issues with their
28153         wctype.h when included from <ctype.h>.
28155 2016-10-05  Jim Meyering  <meyering@fb.com>
28157         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
28158         * lib/long-options.c (parse_long_options): Add a break statement
28159         to avoid this new warning/failure:
28160         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
28161           --create-testdir --dir=/t/x --with-tests --test long-options
28162         ../../gllib/long-options.c: In function ‘parse_long_options’:
28163         ../../gllib/long-options.c:66:12: error: this statement may \
28164           fall through [-Werror=implicit-fallthrough]
28165                    (*usage_func) (EXIT_SUCCESS);
28166                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
28168         utimecmp: avoid new GCC 7 warning from -Wbool-operation
28169         Testing this module would fail when using GCC 7 like this:
28170         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
28171           --dir=/tmp/x --with-tests --test utimecmp
28172         ../../gllib/utimecmp.c: In function ‘utimecmp’:
28173         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
28174           [-Werror=bool-operation]
28175                          time_t s = src_s & ~ (res == 2 * BILLION);
28176                                             ^
28177         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
28178           [-Werror=bool-operation]
28179                src_s &= ~ (res == 2 * BILLION);
28180                         ^
28181         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
28182         Instead, make it explicit that we intend to apply it to 0 or 1.
28184 2016-10-03  Pádraig Brady  <P@draigBrady.com>
28186         quotearg: minimize shell quoting using double quotes
28187         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
28188         quote in encountered then use double quotes (c style quoting)
28189         when possible, as it simplifies the quoting.
28190         * tests/test-quotearg-simple.c: Add test cases.
28191         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
28192         for the fact we now may write beyond the returned length.
28194 2016-10-02  Jim Meyering  <meyering@fb.com>
28196         vasnprintf.c: avoid spurious warning from GCC 7
28197         The presence of cpp directives renders this "FALLTHROUGH" comment
28198         ineffective, so does not suppress the -Wimplicit-fallthrough warning
28199         from GCC 7 built from git on 2016-10-02.
28200         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
28201         directives, so that it takes effect once again.  This is clearly
28202         not a proper change, and I will revert it once this bug is fixed:
28203         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
28205 2016-10-01  Jim Meyering  <meyering@fb.com>
28207         getprogname: correct the test for a __progname variable
28208         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
28209         and AC_LINK_IFELSE to check for a global __progname.  If found,
28210         define HAVE_VAR___PROGNAME.
28211         * lib/getprogname.c (getprogname): Reflect the new name of the
28212         feature- checked preprocessor symbol:
28213         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
28215 2016-09-28  Jim Meyering  <meyering@fb.com>
28217         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
28218         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
28219         fall-through case with a /* fallthrough */ comment.
28221         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
28222         * lib/dfa.c (dfassbuild): Mark the end of this case with a
28223         /* fallthrough */ comment.
28225         getprogname: avoid __progname vs program_invocation_short_name pitfall
28226         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
28227         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
28228         not with Fedora 24's glibc-2.23.1-10.
28229         * lib/getprogname.c (__progname): Move this declaration down...
28230         (getprogname): ... into the #elif block where used, and make it
28231         explicitly "extern".
28233         getprogname: port to OpenBSD 5.1
28234         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
28235         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
28236         * modules/getprogname (configure.ac): Move most of this code...
28237         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
28238         increment serial number, and add a test for __progname.
28239         https://bugs.gnu.org/24562
28240         Reported by Nelson H. F. Beebe.
28242 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
28244         sched: port to GCC 6.2.1 on macOS Sierra
28245         Problem reported by Denis Davydov in:
28246         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
28247         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
28248         Include <sys/cdefs.h> before <sched.h>.
28249         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
28250         so that we needn’t worry about the sched.h include bug here.
28251         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
28252         and include it before <sched.h> if it exists, when
28253         checking for <sched.h>.
28255         tests/init.sh: port Alpine fix to AIX 7.1
28256         * tests/init.sh (compare_): When attempting to use diff -U3,
28257         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
28258         diff -u not outputting a space after leading '+', as the users
28259         of 'compare' should not be that picky about its output format.
28260         In the AIX 7.1 case, return with diff exit status (or with 2 if
28261         trouble), instead of some random nonzero exit status.
28262         * tests/test-init.sh (test_compare): Remove space after leading
28263         '+', so that AIX 7.1 'diff' passes the test.
28265 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28267         nl_langinfo: pacify GCC
28268         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
28269         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
28271         stdint: also set GL_GENERATE_LIMITS_H
28272         Problem reported by Jim Meyering in:
28273         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
28274         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
28276         limits-h, stdint: Don't assume extensions, fix typo
28277         * m4/limits-h.m4 (gl_LIMITS_H):
28278         * m4/stdint.m4 (gl_STDINT_H):
28279         Don't assume AC_USE_SYSTEM_EXTENSIONS.
28280         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
28281         reported by Jim Meyering in:
28282         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
28284 2016-09-21  Jim Meyering  <meyering@fb.com>
28286         getprogname: port to AIX
28287         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
28288         and strdup to obtain a short program name string.  Using code from
28289         Bruno Haible and an idea from Bastien ROUCARIÈS, in
28290         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
28291         Assaf Gordon reported that this new file would fail to compile on
28292         AIX-7.1 32bit.
28294 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28296         extensions: fix typo in comment
28297         * m4/extensions.m4: Sync from Autoconf master.
28299         stdint: support new _WIDTH macros
28300         * doc/posix-headers/stdint.texi: Document this.
28301         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
28302         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
28303         support for INTMAX_WIDTH, etc. as well as for support for just C99.
28304         * modules/stdint (Depends-on): Add limits-h.
28305         (Makefile.am): Substitute HAVE_C99_STDINT_H.
28306         * modules/stdint-tests (Depends-on): Add extensions, so that
28307         INTMAX_MAX etc. are defined.
28308         * tests/test-stdint.c: Verify the new macros.
28310         limits-h: new module
28311         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
28312         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
28313         * doc/posix-headers/limits.texi: Document new module.
28314         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
28315         * modules/limit-h-tests, tests/test-limits-h.c: New files.
28317         stdio: don't redefine __USE_MINGW_ANSI_STDIO
28318         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
28319         if it is already defined.  Apparently GNU Emacs relies on this.  See:
28320         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
28322 2016-09-15  Eric Blake  <eblake@redhat.com>
28324         sys_types: avoid glibc 2.25 warnings about major()
28325         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
28326         older autoconf.
28327         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
28328         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
28329         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
28330         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
28332         mountlist: include sysmacros.h for glibc
28333         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
28334         AC_HEADER_MAJOR.
28335         * lib/mountlist.c (includes): Use correct headers.
28337 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28339         extensions: port to more ISO C TSes
28340         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
28341         master, to add support for more recent ISO C TRs and TSes.
28343 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28345         intprops: new macro TYPE_WIDTH
28346         * lib/intprops.h (TYPE_WIDTH): New macro.
28347         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
28348         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
28349         * lib/parse-datetime.y (parse_datetime2):
28350         Use it.
28352         extensions: port to recent ISO C TRs
28353         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
28354         Sync from Autoconf master, to add support for recent ISO C TRs.
28355         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
28356         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
28357         the MinGW option is not an extension.
28359 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
28361         dfa: port to Solaris 9
28362         Problems reported by Tom G. Christensen in:
28363         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
28364         * modules/dfa (Depends-on): Add isblank.
28365         * modules/dfa-tests (dfa_match_aux_LDADD):
28366         Rename from test_stat_LDADD, to fix typo.
28367         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
28369 2016-09-10  Jim Meyering  <meyering@fb.com>
28371         strverscmp: avoid link failure on OS X
28372         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
28373         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
28375 2016-08-16  Jim Meyering  <meyering@fb.com>
28377         dfa: new module, importing grep's DFA matcher
28378         Since grep's DFA matcher is now being used by two gnulib-enabled
28379         projects, grep and sed, it makes sense to version-control its
28380         sources and unit tests in one place: here.
28381         * modules/dfa: New module.
28382         * modules/dfa-tests: New file.
28383         * lib/dfa.c: New file, from grep.
28384         * lib/dfa.h: Likewise.
28385         * lib/localeinfo.c: Likewise.
28386         * lib/localeinfo.h: Likewise.
28387         * tests/dfa-match-aux.c: Likewise.
28388         * tests/dfa-invalid-char-class.sh: Likewise.
28389         * tests/dfa-match.sh: Likewise, with minor changes.
28390         * MODULES.html.sh (Misc): Add "dfa" to this list.
28392 2016-09-09  Jim Meyering  <meyering@fb.com>
28394         getprogname-tests: don't depend on assert-h
28395         * modules/getprogname-tests (Depends-on): Remove assert-h.
28396         It was not needed, and in fact would cause build failure for
28397         coreutils on some systems.  Reported by Assaf Gordon in https:
28398         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
28400 2016-09-07  Jim Meyering  <meyering@fb.com>
28402         getprogname-tests: work also when EXEEXT is nonempty
28403         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
28404         * tests/test-getprogname.c (main): Use it.
28405         Suggested by Gisle Vanem.
28407 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
28409         getprogname: fix errors in previous change
28410         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
28411         s/program_invocation_name/base/
28412         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
28414 2016-09-08  Pádraig Brady  <P@draigBrady.com>
28416         parse-datetime: restrict debug output to input string
28417         * lib/parse-datetime.y (parse_datetime2): If we parse
28418         all of the input but determine it's invalid, ensure
28419         we don't output the now invalid input pointer.
28420         This issue was seen with `date -d 'now +1'`.
28422 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
28424         flexmember: new macro FLEXALIGNOF
28425         * lib/flexmember.h: Include <stddef.h>, for offsetof.
28426         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
28427         this macro.  Update comments.
28429 2016-09-07  Jim Meyering  <meyering@fb.com>
28431         getprogname: port to systems with __argv (mingw, msvc)
28432         * lib/getprogname.c (getprogname): Include "dirname.h" and use
28433         last_component: more general than open coding it with hard-coded "/".
28434         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
28435         * modules/getprogname (Depends-on): Add dirname-lgpl.
28436         (configure.ac): Check for __argv in <stdlib.h>.
28437         * modules/getprogname-tests: New file.
28438         * tests/test-getprogname.c: New file.
28439         Suggested by Gisle Vanem in
28440         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
28442 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
28444         flexmember: port better to GCC + valgrind
28445         With a char[] flexible array member in a struct with nontrivial
28446         alignment, GCC-generated code can access past the end of the
28447         array, because GCC assumes there are padding bytes to get the
28448         struct aligned.  So the common idiom of malloc (offsetof (struct
28449         s, m), n) does not properly allocate an n-byte trailing member, as
28450         malloc’s argument should be the next multiple of alignof (struct s).
28451         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
28452         Although C11 apparently permits this GCC optimization (i.e., there
28453         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
28454         See the thread containing:
28455         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
28456         * lib/flexmember.h: New file.
28457         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
28458         * lib/localename.c, lib/time_rz.c:
28459         Include flexmember.h.
28460         * lib/fnmatch_loop.c (struct patternlist):
28461         * lib/localename.c (struct hash_node):
28462         Use FLEXIBLE_ARRAY_MEMBER.
28463         * lib/fnmatch_loop.c (EXT):
28464         * lib/fts.c (fts_alloc):
28465         * lib/glob.c (glob_in_dir):
28466         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
28467         * lib/localename.c (gl_lock_define_initialized):
28468         * lib/time_rz.c (tzalloc):
28469         Use FLEXSIZEOF instead of offsetof.
28470         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
28471         Check that the size of the struct can be taken.
28472         * modules/flexmember (Files): Add lib/flexmember.h.
28473         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
28474         Add flexmember.
28476 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28478         getprogname: port to Solaris 10
28479         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
28480         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
28481         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
28483         stdalign: correct mistake in alignof doc
28484         Problem reported by Joseph Myers in:
28485         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
28486         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
28487         alignof(S) where S is a structure containing a flexible array
28488         member.  The Gnulib substitute does not support this, but C11 does.
28490 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28492         main.mk: remove sc_program_name, since there is no more need to
28493         use set_program_name in tools (getprogname is enough for most
28494         of the cases).
28495         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
28496         * top/maint.mk (sc_program_name): Remove.
28498 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28500         Port tests away from progname, since modules that need the
28501         program name already depend on getprogname.
28502         * modules/acl-tests (Depends-on): Remove progname.
28503         * modules/argmatch (Depends-on): Likewise.
28504         * modules/argmatch-tests (Depends-on): Likewise.
28505         * modules/argp-tests (Depends-on): Likewise.
28506         * modules/argp-version-etc-tests (Depends-on): Likewise.
28507         * modules/array-list-tests (Depends-on): Likewise.
28508         * modules/array-oset-tests (Depends-on): Likewise.
28509         * modules/avltree-list-tests (Depends-on): Likewise.
28510         * modules/avltree-oset-tests (Depends-on): Likewise.
28511         * modules/avltreehash-list-tests (Depends-on): Likewise.
28512         * modules/carray-list-tests (Depends-on): Likewise.
28513         * modules/copy-file-tests (Depends-on): Likewise.
28514         * modules/exclude-tests (Depends-on): Likewise.
28515         * modules/fchownat-tests (Depends-on): Likewise.
28516         * modules/fdopendir-tests (Depends-on): Likewise.
28517         * modules/filenamecat-tests (Depends-on): Likewise.
28518         * modules/fstatat-tests (Depends-on): Likewise.
28519         * modules/fstrcmp-tests (Depends-on): Likewise.
28520         * modules/linked-list-tests (Depends-on): Likewise.
28521         * modules/linkedhash-list-tests (Depends-on): Likewise.
28522         * modules/mkdirat-tests (Depends-on): Likewise.
28523         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
28524         * modules/nonblocking-socket-tests (Depends-on): Likewise.
28525         * modules/obstack-printf-tests (Depends-on): Likewise.
28526         * modules/openat-tests (Depends-on): Likewise.
28527         * modules/parse-datetime-tests (Depends-on): Likewise.
28528         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
28529         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
28530         * modules/quotearg-simple-tests (Depends-on): Likewise.
28531         * modules/quotearg-tests (Depends-on): Likewise.
28532         * modules/rbtree-list-tests (Depends-on): Likewise.
28533         * modules/rbtree-oset-tests (Depends-on): Likewise.
28534         * modules/rbtreehash-list-tests (Depends-on): Likewise.
28535         * modules/spawn-pipe-tests (Depends-on): Likewise.
28536         * modules/system-quote-tests (Depends-on): Likewise.
28537         * modules/uniname/uniname-tests (Depends-on): Likewise.
28538         * modules/uninorm/nfc-tests (Depends-on): Likewise.
28539         * modules/uninorm/nfd-tests (Depends-on): Likewise.
28540         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
28541         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
28542         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
28543         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
28544         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
28545         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
28546         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
28547         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
28548         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
28549         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
28550         * modules/unlinkat-tests (Depends-on): Likewise.
28551         * modules/version-etc-tests (Depends-on): Likewise.
28552         * modules/xalloc-die-tests (Depends-on): Likewise.
28553         * modules/xmemdup0-tests (Depends-on): Likewise.
28554         * modules/xprintf-posix-tests (Depends-on): Likewise.
28555         * modules/xvasprintf-tests (Depends-on): Likewise.
28556         * tests/test-argmatch.c: Do not include progname.h.
28557         (main) Stop calling set_program_name.
28558         * tests/test-argp-version-etc.c: Likewise.
28559         * tests/test-argp.c: Likewise.
28560         * tests/test-argv-iter.c: Likewise.
28561         * tests/test-array_list.c: Likewise.
28562         * tests/test-array_oset.c: Likewise.
28563         * tests/test-avltree_list.c: Likewise.
28564         * tests/test-avltree_oset.c: Likewise.
28565         * tests/test-avltreehash_list.c: Likewise.
28566         * tests/test-carray_list.c: Likewise.
28567         * tests/test-copy-acl.c: Likewise.
28568         * tests/test-copy-file.c: Likewise.
28569         * tests/test-exclude.c: Likewise.
28570         * tests/test-fchownat.c: Likewise.
28571         * tests/test-fdopendir.c: Likewise.
28572         * tests/test-filenamecat.c: Likewise.
28573         * tests/test-fstatat.c: Likewise.
28574         * tests/test-fstrcmp.c: Likewise.
28575         * tests/test-linked_list.c: Likewise.
28576         * tests/test-linkedhash_list.c: Likewise.
28577         * tests/test-mkdirat.c: Likewise.
28578         * tests/test-nonblocking-pipe-main.c: Likewise.
28579         * tests/test-nonblocking-socket-main.c: Likewise.
28580         * tests/test-obstack-printf.c: Likewise.
28581         * tests/test-openat.c: Likewise.
28582         * tests/test-parse-datetime.c: Likewise.
28583         * tests/test-pipe-filter-gi1.c: Likewise.
28584         * tests/test-pipe-filter-gi2-main.c: Likewise.
28585         * tests/test-pipe-filter-ii1.c: Likewise.
28586         * tests/test-pipe-filter-ii2-main.c: Likewise.
28587         * tests/test-quotearg-simple.c: Likewise.
28588         * tests/test-quotearg.c: Likewise.
28589         * tests/test-rbtree_list.c: Likewise.
28590         * tests/test-rbtree_oset.c: Likewise.
28591         * tests/test-rbtreehash_list.c: Likewise.
28592         * tests/test-sameacls.c: Likewise.
28593         * tests/test-set-mode-acl.c: Likewise.
28594         * tests/test-spawn-pipe-main.c: Likewise.
28595         * tests/test-system-quote-main.c: Likewise.
28596         * tests/test-unlinkat.c: Likewise.
28597         * tests/test-version-etc.c: Likewise.
28598         * tests/test-xalloc-die.c: Likewise.
28599         * tests/test-xfprintf-posix.c: Likewise.
28600         * tests/test-xmemdup0.c: Likewise.
28601         * tests/test-xprintf-posix.c: Likewise.
28602         * tests/test-xvasprintf.c: Likewise.
28603         * tests/uniname/test-uninames.c: Likewise.
28604         * tests/uninorm/test-u32-nfc-big.c: Likewise.
28605         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28606         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28607         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28608         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28609         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28610         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28611         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28612         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28613         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28614         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28615         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28616         * tests/test-c-stack.c: (program_name): Do not define.
28617         (main): Do not set program_name.
28618         * tests/test-closein.c: Likewise.
28619         * tests/test-xstrtol.c: Likewise.
28620         * tests/test-yesno.c: Likewise.
28622 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28624         Port modules to use getprogname explicitly, instead of requiring
28625         progname to be used (or program_name to be provided).
28626         * lib/argmatch.c: Do not include progname.h.
28627         [TEST] (program_name): Do not define.
28628         [TEST] (main): Call getprogname instead of using program_name.
28629         * lib/c-stack.c: Do not include progname.h.
28630         (program_name): Do not define.
28631         (die): Call getprogname instead of using program_name.
28632         * lib/chdir-long.c: Do not include progname.h.
28633         [TEST_CHDIR] (main): Do not set program_name.
28634         * lib/error.c [!_LIBC]: Include progname.h.
28635         [!_LIBC] (program_name): Define using getprogname.
28636         * lib/euidaccess.c: Do not include progname.h.
28637         [TEST] (main): Do not set program_name.
28638         * lib/git-merge-changelog.c: Include getprogname.h instead of
28639         progname.h.
28640         (usage): Call getprogname instead of using program_name.
28641         (main): Likewise.  Stop calling set_program_name.
28642         * lib/group-member.c: Do not include progname.h.
28643         [TEST] (main): Do not set program_name.
28644         * modules/argmatch (Depends-on): Add getprogname.
28645         * modules/c-stack (Depends-on): Likewise.
28646         * modules/error (Depends-on): Likewise.
28647         * modules/git-merge-changelog (Depends-on): Likewise.
28648         Also remove progname.
28650 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
28652         * NEWS: Document the deprecation of the 'progname' module.
28654 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28656         getprogname: new module
28657         This provides a LGPL module for getting the name of the current
28658         program, using the same API found on *BSD systems.
28659         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
28660         * modules/getprogname: New files.
28661         * MODULES.html.sh (Misc): Add getprogname.
28663 2016-09-02  Jim Meyering  <meyering@fb.com>
28665         manywarnings: add -fno-common
28666         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
28667         to the list.  Quoting the manual, "Compiling with -fno-common is
28668         useful on targets for which it provides better performance, or if
28669         you wish to verify that the program will work on other systems that
28670         always treat uninitialized variable declarations this way [putting
28671         it in the data section]."  If diffutils had been using this sooner,
28672         it would have prevented this duplicate declaration issue:
28673         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
28675 2016-08-31  Simon Josefsson  <simon@josefsson.org>
28677         parse-datetime: Fix typo.
28678         * lib/parse-datetime.y (parse_datetime2): Fix typo.
28680 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
28682         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
28683         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
28684         GCC 5 and 6 that have __builtin_sub_overflow but not
28685         __builtin_sub_overflow_p.  With the recent changes, these
28686         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
28687         implementation than with INT_SUBTRACT_OVERFLOW implementation,
28688         since the former needs just one runtime comparison whereas the
28689         latter needs two.
28691         strverscmp: sync with glibc
28692         Although this doesn't exactly synchronize with glibc
28693         byte-for-byte, it makes the code behave the same as glibc.
28694         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
28695         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
28696         difference shouldn't matter in practical use.  All uses changed
28697         back to isdigit.
28698         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
28699         (next_state): Now unsigned char array; redo elements.
28700         (result_type): Now signed char array; redo elements.
28701         (__strverscmp): Fix glibc bug 9913 by using new states.
28702         * tests/test-strverscmp.c (main): Test glibc bug 9913.
28704 2016-08-29  Jim Meyering  <meyering@fb.com>
28706         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
28707         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
28708         similarly to how it was done to intprops.h.
28710 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28712         intprops.h: port recent changes to GCC 6.2.0
28713         * lib/intprops.h (__has_builtin): Move earlier.
28714         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
28715         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
28716         the last argument can be null.  All uses changed.
28717         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
28718         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28719         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
28720         and it's not clear which GCC versions it works for.
28721         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
28722         its definiens.
28724         intprops.h: use __typeof__ with GCC 7
28725         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
28726         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
28727         This avoids computing the expression's value (which might overflow!).
28729 2016-08-29  Jim Meyering  <meyering@fb.com>
28731         intprops.h, xalloc-oversized.h: work with gcc 7
28732         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
28733         __builtin_mul_overflow each accept a NULL pointer as the third
28734         argument.  However in gcc 7, that is no longer accepted.
28735         Instead, one must use the "_p"-suffixed names, with which, the
28736         third parameter is no longer a pointer.
28737         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
28738         the definition: not true for gcc 7 and subsequent.
28739         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
28740         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28741         Provide new definitions for gcc 7 and subsequent.
28742         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
28743         that works with gcc-7.
28745         intprops.h: fix missing-backslash problems
28746         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
28747         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
28749 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28751         intprops: fix paren typo on old platforms
28752         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
28753         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
28754         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
28755         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
28756         && !defined LLONG_MAX]:
28757         Remove stray paren.
28759         intprops: port to OpenVMS
28760         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
28761         * doc/posix-headers/limits.texi: Document the problem.
28762         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
28763         Define if not already defined.
28765 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
28767         parse-datetime: improve debug implementation
28768         Follow-up to commit 12ad79069 ("add optional debug printing").
28769         Improve parse-datetime's debug implementation: remove macros,
28770         replace global debug flag variable with a function parameter,
28771         use nstrftime for formatting.
28772         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
28773         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
28774         (parse_datetime2): New function, accepts 'flags' parameter, supporting
28775         debug flag. Existing interface 'parse_datetime' left unmodified.
28776         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
28777         (struct parser_control): add 'parse_datetime_debug' member variable.
28778         (parse_datetime): Call new function 'parse_datetime2' without debug.
28779         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
28780         pc.parse_datetime_debug variable as needed.
28781         (to_year): Accept new flags parameter, instead of using global variable.
28782         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
28783         use struct 'debug' variable instead of global variable.
28784         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
28785         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
28786         correspnding functions directly instead of using macros.
28787         * modules/parse-datetime: Add gnulib's strftime module.
28789 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
28791         c-strcase-tests: port to EBCDIC
28792         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
28793         which assume ASCII encoding semantics to run only in ASCII
28794         mode, as they fail in EBCDIC.
28796         sigpipe-tests: fix typo
28797         * tests/test-sigpipe.sh: C, not B.
28799 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
28801         canonicalize-lgpl: fix errno after malloca fails
28802         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
28803         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
28804         * lib/canonicalize-lgpl.c (__realpath):
28805         Don't assume malloca sets errno on failure.
28807 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28809         strtod: port errno handling to z/OS
28810         * lib/strtod.c (strtod): Save and restore errno more reliably.
28812 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28814         strtod: port to z/OS
28815         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28816         implementation.
28818 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28820         strtod: port to z/OS
28821         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28822         implementation.
28824         regex, string: rename to avoid '__string'
28825         * lib/regex.h, lib/string.in.h: Do not use the identifier
28826         '__string', as it is effectively reserved by string.h on z/OS.
28828         c-strcase-tests, wcwidth-tests: depend on c-ctype
28829         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
28830         Add c-ctype.
28832 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28834         thread: port to z/OS
28835         * lib/glthread/thread.c, lib/glthread/thread.h:
28836         Rudimentary gl_thread support for z/OS.
28838         maint: port tests to z/OS errno behavior
28839         * tests/test-nonblocking-reader.h:
28840         * tests/test-nonblocking-writer.h:
28841         Accommodate z/OS errno code preferences. (I believe this should
28842         still be within spec; IBM is good at following the letter if not
28843         the spirit of such things.)
28845         maint: preprocessor changes to support z/OS
28846         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
28847         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
28848         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
28849         * tests/test-nonblocking-pipe.h:
28851         fclose, strstr-simple, wchar: port to z/OS
28852         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
28853         Changes to the Autoconf M4 code to support z/OS.  Note that
28854         fclose() is broken in a different way on z/OS than it is on other
28855         systems, thus the special-case in fclose.m4.
28857         iconv_open-utf-tests, iconv-tests: port to EBCDIC
28858         * tests/test-iconv-utf.c, tests/test-iconv.c:
28859         Added appropriately conditional #pragmas so that the test strings
28860         in test-iconv-utf.c are correctly interpreted in ASCII instead of
28861         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
28862         addressed in a more portable way by simply rewriting all the ASCII
28863         literal characters as octal escapes, but then you would lose the
28864         partial readability that the strings have now. Also, iconv_open()
28865         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
28867         c-strcase-tests, wcwidth-tests: port to EBCDIC
28868         * tests/test-c-strcasecmp.c: Include c-ctype.h.
28869         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
28870         * tests/test-wcwidth.c: Likewise.
28872 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28874         stdbool: don't require _Bool for C++
28875         Problem reported by David Seifert in:
28876         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
28877         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
28878         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
28879         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
28880         stricter about checking that bool and _Bool are compatible in C.
28882 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
28884         getdelim: remove dependency on realloc-posix
28885         * lib/canonicalize-lgpl.c (alloc_failed)
28886         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
28887         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
28888         Use __set_errno where needed, for consistency.
28889         * lib/getdelim.c (alloc_failed): New function.
28890         (getdelim): Use it.
28892 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
28894         parse-datetime: add optional debug printing
28895         Print parsing information, warnings, and errors to stderr.
28896         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
28897         * lib/parse-datetime.y:
28898         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
28899         (PROGRESS*): Same as DEBUG, for progress reporting.
28900         (dbg_printf): Print message to stderr, with 'date' prefix.
28901         (struct parser_control): Add 'debug_*_seen' variables.
28902         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
28903         (debug_print_current_time, debug_print_relateive_time): Prints the
28904         current/relative date/time value of parser_control.
28905         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
28906         (to_year): Warn about 2-digit year parsing.
28907         (yylex):   Warn about unrecognized words.
28908         (get_effective_timezone): Returns current timezone in minutes.
28909         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
28910         clearly and unambigiously as possible.
28911         (debug_mktime_not_ok): Print detailed information about failed
28912         date/time values.
28913         (parse_datetime): Add DEBUG messages for failures, warnings. Add
28914         PROGRESS messages for status messages.
28915         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
28917 2016-08-06  Jim Meyering  <meyering@fb.com>
28919         tests/init.sh: exclude dash with bad "local" semantics
28920         * tests/init.sh (gl_shell_test_script_): Add a function to
28921         eliminate a shell like "dash" (unlike bash, zsh) that has
28922         surprising/risky "local var='...'" semantics.  Inspired by
28923         the problem and discussion in https://bugs.gnu.org/24116#11.
28925 2016-08-02  Ján Tomko  <jtomko@redhat.com>
28927         maint.mk: expand the prohibit_doubled_word regex
28928         This check has a static list of words that are checked for
28929         repetitions.  Expand it before running the perl script to
28930         avoid using expensive captures.  This decreases the cost
28931         for libvirt from 1.66s to 0.66s.
28932         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
28933         (sc_prohibit_doubled_word): Use it.
28935 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28937         useless-if-before-free: skip non-matching lines early
28938         * build-aux/useless-if-before-free: First match each line with the
28939         simple/quick /\bif\b/ and reject if there is no match. This often
28940         saves the cost of the much more involved regular expression.
28941         For libvirt, this decreases the cost from 1.44s to 1.02s.
28943 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28945         maint.mk: speed up sc_po_check
28946         sc_po_check would skip files based on their names, or on the
28947         existence of files with derived names. Rewrite it to use perl
28948         instead of shell to make the check faster.
28949         * top/maint.mk (perl_translatable_files_list_): Define.
28950         (sc_po_check): Use it.
28952 2016-07-30  Ján Tomko  <jtomko@redhat.com>
28954         maint.mk: speed up require_config_h_first
28955         Instead of spawning three processes per file,
28956         rewrite the check in perl and run it once for all the files.
28957         * top/maint.mk (perl_config_h_first_): Define.
28958         (sc_require_config_h_first): Use it in place of shell code.
28960 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28962         maint.mk: speed up sc_po_check
28963         sc_po_check would skip files based on their names, or on the
28964         existence of files with derived names. Rewrite it to use perl
28965         instead of shell to make the check faster.
28966         * top/maint.mk (perl_translatable_files_list_): Define.
28967         (sc_po_check): Use it.
28969 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28971         obstack: pacify GCC 6 with -Wnull-dereference
28972         Problem reported by Assaf Gordon in:
28973         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
28974         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
28975         Declare with __attribute_noreturn__.
28976         * lib/obstack.h (__attribute_noreturn__): New macro.
28978 2016-07-13  Eric Blake  <eblake@redhat.com>
28980         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
28981         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
28982         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
28984 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
28986         doc: mention glibc SSIZE_MAX buglet
28987         * doc/posix-headers/limits.texi (limits.h): Document the bug.
28989 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
28991         printf-posix: Fix mingw build
28992         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
28993         expression for detecting C symbol prefixes but forgot to qoute square
28994         brackets in the command line arguments for grep.  That way when
28995         building with mingw the condition was false although it ought to be
28996         true instead.  In particular scenarios this led to the following
28997         compile error:
28999             Cannot export rpl_printf: symbol not found
29000             Cannot export rpl_scanf: symbol not found
29001             collect2: error: ld returned 1 exit status
29003         Fix this by properly quoting square brackets.
29005 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
29007         mktime: call tzset as per POSIX
29008         Problem reported by Ludovic Courtès in:
29009         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
29010         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
29011         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
29013 2016-06-26  Pádraig Brady  <P@draigBrady.com>
29015         fts: handle readdir() errors
29016         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
29017         but also upon error when it will also set errno.  Therefore
29018         flag the error case from readdir().  We treat the case where
29019         no items are read the same as if the dir can't be accessed,
29020         i.e. by setting fts_errno to FTS_DNR.
29022 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
29024         intprops: port better to GCC 7
29025         GCC 7 __builtin_add_overflow supports a new usage form, where the
29026         last argument is a null pointer, and which merely returns 1 if an
29027         overflow would occur.  This is a constant expression if all
29028         arguments are constants, and should generate faster code when code
29029         needs to be generated.
29030         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
29031         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
29032         Use builtin operations if available.
29033         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
29034         operations are available, as it's almost surely faster.
29036 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29038         intprops-test: port to GCC 6
29039         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
29040         since the bug is not fixed in GCC 6.1.
29042 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
29044         xalloc-oversized: port to GCC 7; fewer warnings
29045         GCC 7 will have a better way to deal with integer overflow.
29046         Plus, fix a warnings problem reported by Tim Ruehsen in:
29047         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
29048         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
29049         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
29050         For GCC 5, use __xalloc_oversized if both args are constants,
29051         or if pedantic.
29053 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
29055         regex: port to Sun C
29056         Reported by Daiki Ueno.
29057         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
29058         __restrict, in prototype.  This fixes a problem I introduced in
29059         the 2016-02-19 merge from glibc.
29061 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29063         stdbool: Restore __bool_true_false_are_defined check
29064         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
29065         __bool_true_false_are_defined is still defined, even with C++11.
29067 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
29069         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
29070         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
29072 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29074         Use GCC_LINT, not lint
29075         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
29076         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
29077         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
29078         Document problem with lint and _Noreturn.
29079         * lib/diffseq.h (IF_LINT, IF_LINT2):
29080         * lib/fts.c (sccsid):
29081         * lib/getndelim2.c (IF_LINT):
29082         * lib/gl_anylinked_list2.h (gl_linked_iterator)
29083         (gl_linked_iterator_from_to):
29084         * lib/gl_anytree_list2.h (gl_tree_iterator)
29085         (gl_tree_iterator_from_to):
29086         * lib/gl_anytree_oset.h (gl_tree_iterator):
29087         * lib/gl_array_list.c (gl_array_iterator)
29088         (gl_array_iterator_from_to):
29089         * lib/gl_array_oset.c (gl_array_iterator):
29090         * lib/gl_carray_list.c (gl_carray_iterator)
29091         (gl_carray_iterator_from_to):
29092         * lib/idcache.c:
29093         * lib/inet_ntop.c (IF_LINT):
29094         * lib/regcomp.c (build_charclass_op, create_tree):
29095         * lib/regex_internal.c (re_acquire_state)
29096         (re_acquire_state_context):
29097         * lib/trigl.c (rcsid):
29098         * lib/trim.c (IF_LINT):
29099         * lib/vasnprintf.c (IF_LINT):
29100         * lib/verify.h (assume):
29101         Treat GCC_LINT like lint.
29103 2016-05-29  Bruno Haible  <bruno@clisp.org>
29105         secure_getenv: Port to many more platforms.
29106         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
29107         functions.
29108         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
29109         for non-BSD Unix platforms and for native Windows.
29110         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
29111         Prompted by a request from Nikos Mavrogiannopoulos.
29113 2016-05-27  Eric Blake  <eblake@redhat.com>
29115         canonicalize: Fix broken probe for realpath.
29116         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
29117         in logic introduced in 54615b95.
29119 2016-05-26  Eric Blake  <eblake@redhat.com>
29121         unsetenv: relax to LGPLv2+
29122         * modules/unsetenv (License): Match setenv license.
29124 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
29126         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
29127         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
29128         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
29129         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
29130         (commonarg, dirargs, dirs, infoarg, generate_ascii)
29131         (generate_html, generate_info, generate_tex, outdir)
29132         (source_extra, split, srcfile, texarg): Move above 'version'.
29133         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
29135 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
29137         manywarnings: update for GCC 6.1
29138         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
29139         Add GCC 6.1 options that apply to C.
29140         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
29141         do not apply to C, are obsolescent, etc.
29143 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
29145         glob: size_t overflow checks
29146         * lib/glob.c (__has_builtin): New macro.
29147         (size_add_wrapv, glob_use_alloca): New static functions.
29148         (glob, glob_in_dir): Check for size_t overflow in several places,
29149         and fix some size_t checks that were not quite right.
29151         glob: don't assume INT_MAX < SIZE_MAX
29152         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
29153         latter is not portable to (probably theoretical) hosts where
29154         SIZE_MAX <= INT_MAX.
29156 2016-05-09  Bruno Haible  <bruno@clisp.org>
29158         Fix undefined behaviour in gettext.h.
29159         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
29160         pointer's value after the storage it points to has been freed.
29161         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
29162         Spotted by Coverity.
29164 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
29166         git-version-gen: avoid undefined shift
29167         Problem reported by Mosè Giordano in:
29168         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
29169         * build-aux/git-version-gen: Avoid undefined behavior if invoked
29170         with --prefix or --fallback but without a later argument.  While
29171         we're at it, omit unnecessary quotes.
29173 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
29175         glob: merge glibc changes into lib/glob.c
29176         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
29177         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
29178         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
29179           struct dirent [BZ #19779]
29180         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
29181           callback gl_readdir
29182         2015-10-20 Convert miscellaneous function definitions to prototype style
29183         2015-10-20 Convert 113 more function definitions to prototype style
29184           (files with assertions)
29185         2015-06-12 Fix getlogin_r namespace (bug 18527).
29186         2014-02-10 Use glibc_likely instead __builtin_expect.
29187         2013-10-20 When glob pattern contains a trailing slash match only
29188           directories. Fixes bug 10278.
29189         2013-09-04 glob: silence -Wattribute warnings
29190         2013-06-07 Avoid use of "register" as optimization hint.
29191         2012-09-25 Use size_t instead of int for internal variables in glob
29192           (bug 14621)
29193         2011-07-20 Check for overflows in expressions
29194         2011-05-28 Remove unused variable
29195         2011-05-22 Add a few more alloca size checks
29196         2010-03-27 Whitespace fixes
29197         2010-03-27 Fix one more issue with the glob patch
29198         2010-03-24 Fix glob with empty pattern
29199         2008-05-27 Remove useless more "if" tests before "free"
29200         * modules/glob (Depends-on): Add stdint.
29202 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
29204         mktime: port to stricter signed overflow checking
29205         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
29206         (long_int): Require width for INT_MAX * 3 * (seconds per year),
29207         instead of merely for INT_MAX * 2.  In practice platforms that
29208         do the latter also do the former.
29209         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
29210         (shr): New static function, replacing SHR.  All uses changed.
29211         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
29212         and TIME_T_MAX.  All uses changed.
29213         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
29214         Use long_int, not time_t.
29215         (long_int_avg): New static function, replacing time_t_avg.
29216         All uses changed.  Round toward positive infinity, as that
29217         generates slightly better code.
29218         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
29219         by INT_ADD_WRAPV.
29220         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
29221         (convert_time): New static function.
29222         (ranged_convert): Use it
29223         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
29224         Use simpler test for loop exit.
29225         (__mktime_internal): Store negative of guessed offset, to simplify
29226         overflow checking.  Remove no-longer-needed test for small time_t
29227         overflows.
29229         mktime: speed up DEBUG_MKTIME benchmarks
29230         Call tzset just once, at the start, rather than for every test
29231         case.  This lets us measure the CPU cost of mktime as opposed to
29232         that of tzset.  This is relevant when TZ is not set and glibc is
29233         being used.  This speeds up tests by a factor of 40 on my Fedora
29234         23 x86-64 platform.
29235         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
29236         to call tzset and as a sanity check.  Later on, use localtime_r
29237         instead of localtime.
29239         mktime: resurrect DEBUG_MKTIME testing
29240         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
29241         Include <string.h>, for strcmp.
29243         mktime: simplify DEBUG_MKTIME
29244         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
29245         Simplify later usage accordingly.
29247         Port mktime_internal offset to unsigned time_t
29248         This avoids some assumptions about wraparound arithmetic on
29249         signed integer overflow.
29250         * lib/mktime-internal.h (mktime_offset_t): New type.
29251         (mktime_internal): Use it in decl.
29252         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
29254         * lib/mktime.c (__mktime_internal, localtime_offset):
29255         * lib/timegm.c (timegm): Use it.
29256         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
29257         (gl_FUNC_MKTIME): Require it.
29259 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
29261         xstrtol: prohibit monstrosities like "1bB"
29262         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
29263         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
29264         "B" only if the first suffix needs a base.
29265         * tests/test-xstrtol.sh: Test this.
29267 2016-04-21  Pádraig Brady  <P@draigBrady.com>
29269         xstrtod: reinstate setting of *result upon ERANGE
29270         * lib/xstrtod.c (XSTRTOD): The user may decide to use
29271         the returned limits upon ERANGE, so allow and document that.
29273 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
29275         xstrtod: modify *result only if no errors
29276         * lib/xstrtod.c (XSTRTOD).
29278 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
29280         btowc: document problems in C locale
29281         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
29282         with mbrtowc.  See: http://bugs.gnu.org/23269#32
29284 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
29286         mktime: improve integer overflow checking
29287         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
29288         (WRAPV): Remove; no longer needed.
29289         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
29290         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
29291         Remove.  Use intprops.h defns instead.
29292         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
29293         Use bool for Boolean, for clarity.
29294         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
29295         detect integer overflow.
29296         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
29298         intprops: check two's complement assumption
29299         Suggested by Eric Blake in:
29300         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
29301         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
29302         short, int, long, and (if available) long long are two's complement.
29303         * modules/intprops (Depends-on): Add 'verify'.
29305         intprops, mktime, strtol: assume two's complement
29306         These macros were not portable to every conforming C11 ones'
29307         complement platform.  It's not worth the hassle of porting to some
29308         platforms that use ones' complement or signed magnitude, as such
29309         platforms are almost purely theoretical nowadays and porting even
29310         to some of them makes the code harder to review for little
29311         practical benefit.  Problem reported by Florian Weimer in:
29312         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
29313         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
29314         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
29315         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
29316         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
29317         (TYPE_SIGNED_MAGNITUDE):
29318         Remove.  All uses rewritten to assume two's complement, which is
29319         all we can reasonably test nowadays anyway.
29320         * top/maint.mk (_intprops_names): Remove the removed macros.
29322 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
29324         stdint: port to strict C11 left shift
29325         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
29326         Pacify clang -Wshift-negative-value, which should be an issue only
29327         on clang setups where stdint.h does not conform to C11 or to C++11.
29328         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
29330 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29332         mbrtowc: work around glibc bug#19932
29333         Fix mbrtowc so that it never returns -1 in the C locale,
29334         as this conflicts with a future version of POSIX
29335         http://austingroupbugs.net/view.php?id=663#c2738
29336         and causes problems with GNU grep: http://bugs.gnu.org/23234
29337         See glibc bug 19932:
29338         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
29339         * doc/posix-functions/mbrlen.texi (mbrlen):
29340         * doc/posix-functions/mbrtowc.texi (mbrtowc):
29341         Document the glibc bug.
29342         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
29343         Include hard-locale.h, locale.h.
29344         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
29345         if the bug is possible.
29346         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
29347         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
29348         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
29349         * modules/mbrtowc (Depends-on): Add hard-locale.
29350         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
29351         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
29352         * tests/test-mbrtowc5.sh: New file.
29354 2016-04-03  Pedro Alves  <palves@redhat.com>
29356         stdint: detect good enough pre-C++11 stdint.h in C++ mode
29357         When gnulib is configured in C++ mode for a system with a working C99
29358         implementation of stdint.h that predates C++11, gnulib ends up
29359         substituting stdint.h anyway.  This works on most targets, but on e.g.,
29360         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
29361         MinGW is LLP64.  Instead of trying to detect the right types, detect
29362         good-enough-pre-C++11 stdint.h and in such case define
29363         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
29364         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
29365         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
29366         conforms to C99.  If it does, check whether it hides symbols
29367         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
29368         does, define those macros in config.h.
29370 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29372         argp: merge changes from glibc
29373         Among other things, this should fix problems found by a Coverity
29374         scan and reported by Andrei Borzenkov:
29375         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
29376         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
29377         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
29378         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
29379         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
29380         * lib/argp.h:
29381         Merge changes from glibc.
29382         * tests/test-argp-2.sh: Adjust to match new behavior.
29384 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
29386         stddef: support configuring with g++
29387         Problem reported by Ángel González in:
29388         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
29389         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
29390         Do not define if _GCC_MAX_ALIGN_T is defined.
29392 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29394         test-framework-sh: minor cleanups
29395         * tests/init.sh (testdir_prefix_): Output a trailing newline,
29396         since strictly speaking POSIX requires this.
29397         (setup_): Do not use the variable 'fail', as that makes the
29398         trace output harder to read ('fail' is typically used by
29399         tests to mean the test failed).  Treat // portably.
29400         Check that new directory is not merely a sibling of the tmp dir.
29401         Avoid unnecessary invocation of tr.
29403         test-framework-sh: revert port to NetBSD 7.0
29404         It was a false alarm; I misinterpreted Assaf Gordon's report.
29405         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
29406         Restore.
29407         (test_dir_): Adjust to mktempd_ change.
29408         (mktempd_): Restore 2nd arg.  Use -t again.
29409         (base_template_, template_, nx_): Resurrect old code.
29411         Port better to Alpine Linux
29412         Its diff implementation does not support -c, but does support -U3.
29413         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
29414         * tests/init.sh (diff_opt_): New var.
29415         (compare_): Prefer diff -U3 to diff -c to plain diff.
29417 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
29419         test-framework-sh: port to NetBSD 7.0
29420         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
29421         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
29422         Remove.  All uses removed.
29423         (test_dir_): Adjust to mktempd_ change.
29424         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
29425         (base_template_, template_, nx_): Simplify by hardcoding.
29427 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
29429         gitlog-to-changelog: suppress ignored chatter
29430         * build-aux/gitlog-to-changelog: Do not warn about skipping
29431         an SHA if it would have been ignored anyway.
29433 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
29435         setlocale: add "sv" to Windows language table
29436         * lib/setlocale.c (language_table) [W32]: Add "sv".
29437         Reported in <https://savannah.gnu.org/bugs/?44588>.
29439 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
29441         sys_select: port to new Cygwin
29442         Problem reported by Ken Brown in:
29443         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
29444         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
29445         diagnostics.
29447 2016-03-17  Jim Meyering  <meyering@fb.com>
29449         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
29450         * tests/test-userspec.c (main): Remove unnecessary braces and fix
29451         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
29452           test-userspec.c:176:9: error: statement is indented as if it were \
29453             guarded by... [-Werror=misleading-indentation]
29454                    {
29455                    ^
29456           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
29457                  if (!diag && !T[i].result)
29458                  ^~
29460 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
29462         time_rz: port to clang -Wunused-const-variable
29463         * lib/time_rz.c (TZ): Remove.  All uses removed.
29465         std-gnu11: improve clang support
29466         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
29467         2016-03-15 Also try clang
29468         2016-03-15 Port C11 and C++11 testing to clang
29470         select: port more to Intel 2016.1.150 compiler
29471         Problem reported by Balázs Hajgató in:
29472         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
29473         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
29475 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
29477         select: try to port to 2016.1.150 compiler
29478         Problem reported by Balázs Hajgató in:
29479         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
29480         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
29481         POSIX specifies 'restrict'.
29483 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
29485         localename-tests: memory allocation fixes
29486         * tests/test-localename.c (test_locale_name)
29487         (test_locale_name_thread): Don't call freelocale on a locale
29488         that was the base of a successful newlocale, as that
29489         results in a double free.  Problem reported by Assaf Gordon.
29490         (test_locale_name_thread): Free saved names after use, to pacify
29491         gcc -fsanitize=address.
29493 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
29495         intprops: make .h file license match module
29496         * lib/intprops.h: Change the license wording to match glibc format.
29497         This is what is in modules/intprops anyway.  See:
29498         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
29500 2016-03-08  Eric Blake  <eblake@redhat.com>
29502         acl: fix missing return on Cygwin
29503         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
29504         fall off end of function. Fixes http://bugs.gnu.org/22949
29506 2016-03-05  Bruno Haible  <bruno@clisp.org>
29508         extern-inline: port to PGI CC
29509         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
29510         keyword 'inline'.
29511         Reported by Adam James Stewart in:
29512         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
29514 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29516         signbit: port back to pre-C++11 GCC
29517         * lib/math.in.h (signbit): Do previous change only if
29518         __cplusplus < 201103.  See Jonathan Wakely in:
29519         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
29521 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
29523         mountlist: recognize autofs-mounted remote file systems, too
29524         Originally reported at: https://bugzilla.redhat.com/1309247
29525         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
29526         "-hosts" because it is used by autofs to mount remote file systems.
29528 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
29530         signbit: port to C++ with GCC 6
29531         * lib/math.in.h (signbit) [__cplusplus]:
29532         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
29533         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
29535         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
29537         regex: make it closer to libc
29538         Make Idx a signed type, rather than possibly unsigned.
29539         The unsignedness was not really buying us anything, since the code
29540         overflows for other reasons before getting to PTRDIFF_MAX.  Making
29541         it signed allows us to use -1 and -2 with abandon, like libc does,
29542         thus lessening the number of differences between gnulib and libc.
29543         Also, it should help avoid gratuitous warnings like the one
29544         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
29545         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
29548         regex: merge patches from libc
29550         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
29551         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
29552         Convert miscellaneous function definitions to prototype style.
29553         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
29554         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
29555         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
29556         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
29557         (re_search_internal):
29558         Convert to prototype-style function definition.
29559         Use internal_function for internal functions.
29561 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
29563         stdalign: port to older HP and IBM cc
29564         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
29565         C compilers, by checking their version numbers.  These version
29566         numbers appear in MariaDB and in Qt code that dates way back and
29567         that conditiionally uses the 'aligned' attribute.
29569 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
29571         stdalign: port to clang 3.7.0
29572         Problem reported by Herbert J. Skuhra in:
29573         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
29574         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
29575         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
29576         https://llvm.org/bugs/show_bug.cgi?id=26547
29578 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
29580         readdir_r: now obsolescent
29581         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
29582         * lib/mountlist.c (read_file_system_list): Add a FIXME.
29584 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
29586         misc: port better to gcc -fsanitize=address
29587         Without these patches, ./configure CFLAGS='-fsanitize=address'
29588         would compute incorrect values.  This patch fixes some (but not all)
29589         test failures with recent glibc, with this configuration.
29590         * m4/acl.m4 (gl_ACL_GET_FILE):
29591         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
29592         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
29593         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
29594         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
29595         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
29596         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
29597         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
29598         * m4/getline.m4 (gl_FUNC_GETLINE):
29599         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
29600         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
29601         * m4/regex.m4 (gl_REGEX):
29602         * m4/strndup.m4 (gl_FUNC_STRNDUP):
29603         * tests/test-calloc-gnu.c (main):
29604         * tests/test-duplocale.c (main):
29605         * tests/test-getgroups.c (main):
29606         * tests/test-getline.c (main):
29607         * tests/test-inttostr.c (main):
29608         * tests/test-localename.c (test_locale_name)
29609         (test_locale_name_thread, test_locale_name_environ)
29610         (test_locale_name_default):
29611         * tests/test-regex.c (main):
29612         * tests/test-setlocale1.c (main):
29613         * tests/test-stat.h (test_stat_func):
29614         Free heap-allocated storage before exiting.
29615         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
29616         Don't match *_foo symbols inserted by AddressSanitizer.
29617         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
29619 2016-02-02  Jim Meyering  <meyering@fb.com>
29621         verify-tests: also remove stray test-verify.Tpo
29622         * modules/verify-tests (Makefile.am): Arrange for "make clean"
29623         to remove the test-verify.Tpo file that is left behind by
29624         the automake-generated rule upon compilation failure.
29625         Otherwise, that .Tpo file would cause a failed "make distcheck"
29626         at least for grep.
29628 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
29630         std-gnu11: new module
29631         This makes it easier for applications to prefer C11 and C++11
29632         to older variants, when compiling C and C++ code.
29633         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
29634         a nontrivial chunk of GPLed Autoconf source code.
29635         * COPYING: Mention the m4/*.m4 copyright situation.
29636         * MODULES.html.sh (std-gnu11): New module.
29637         * m4/std-gnu11.m4, modules/std-gnu11: New files.
29639 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
29641         get-permissions, strftime: fix grammar in comments
29642         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
29643         some grammar fixes Alan Mackenzie made to GNU Emacs.
29645 2016-01-25  Daiki Ueno  <ueno@gnu.org>
29647         gettext: mark as obsolete
29648         Suggested by Paul Eggert in:
29649         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
29650         * modules/gettext (Status): Mark as obsolete.
29651         (Notice): Suggest to use 'gettext-h' instead.
29652         * modules/gettext-h (Description): Suggest GNU gettext, instead of
29653         the 'gettext' module.
29655 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
29657         gnulib-tool: don't give up on ln -s so easily
29658         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
29659         because an earlier one failed.  The targets could be on different
29660         file systems.  Problem reported by KO Myung-Hun in:
29661         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
29663         closedir: fix OS/2-related typos
29664         Problem reported by KO Myung-Hun in:
29665         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
29666         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
29667         in the last couple of changes.
29669 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
29671         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
29672         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
29673         copying a directory.
29675 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
29677         regex: treat [x] as x if x is a unibyte encoding error
29678         Problem reported by Aharon Robbins in:
29679         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
29680         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
29681         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
29683         closedir, dirfd, opendir: port to OpenSolaris 5.10
29684         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
29685         * m4/dirfd.m4 (gl_FUNC_DIRFD):
29686         * m4/opendir.m4 (gl_FUNC_OPENDIR):
29687         Don't use ${word##pat} substitution, as it doesn't work in
29688         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
29689         http://bugs.gnu.org/22443#11
29691 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29693         bootstrap: use American spelling
29694         * build-aux/bootstrap: Honor American spelling.
29696 2016-01-22  Karl Berry  <karl@freefriends.org>
29698         * doc/posix-functions/localtime.texi,
29699         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
29701 2016-01-21  Bruno Haible  <bruno@clisp.org>
29703         hash-pjw-bare: fix comment
29704         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
29706         wcwidth: Replace also on OpenBSD 5.8
29707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
29708         * doc/posix-functions/wcwidth.texi: Update.
29710 2016-01-20  Pádraig Brady  <P@draigBrady.com>
29712         gnu-web-doc-update: fix addition of new files
29713         If there were already added (emnpty) dirs,
29714         then cvs aborts the add with the message:
29715           cvs [add aborted]: there is a version in <./dirname> already
29716         * build-aux/gnu-web-doc-update: Add directories separately
29717         to the addition of files, to avoid the above issue
29718         impacting the addition of files.
29720 2016-01-19  Daiki Ueno  <ueno@gnu.org>
29722         utimens-tests: avoid pulling gettext .m4 files
29723         Although this is not the right fix to the original problem:
29724         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
29725         it makes it possible again for consumer projects to use arbitrary
29726         version of gettext, through the steps described at:
29727         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
29728         See here for details:
29729         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
29730         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
29731         'gettext'.
29732         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
29733         'gettext'.
29735 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29737         regex: pacify static checkers
29738         Problem and draft fix reported by Aharon Robbins in:
29739         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29740         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
29741         Clear memory to pacify static checkers.
29743         regex: fix [ diagnostic
29744         Problem and fix reported by Aharon Robbins in:
29745         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29746         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
29748         regex: fix memory leaks
29749         Problem and draft fix reported by Aharon Robbins in:
29750         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29751         * lib/regcomp.c (build_range_exp, build_charclass_op)
29752         * lib/regex_internal.c (re_dfa_add_node):
29753         Fix memory leak on failure.
29755 2016-01-18  Pádraig Brady  <P@draigBrady.com>
29757         fts: don't unconditionally use leaf optimization for NFS
29758         NFS st_nlink are not accurate on all implementations,
29759         leading to aborts() if that assumption is made.
29760         See <https://bugzilla.redhat.com/1299169>
29761         * lib/fts.c (leaf_optimization_applies): Remove NFS from
29762         the white list, and document the issue.
29764 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29765             KO Myung-Hun  <komh@chollian.net>
29767         gnulib-tool: don't assume ln -s works
29768         * gnulib-tool (func_ln_s): New function.
29769         (func_ln): Use it.
29771 2016-01-15  KO Myung-Hun  <komh@chollian.net>
29773         utimes: detect utimes() correctly on OS/2 kLIBC
29774         utimes() of OS/2 kLIBC has some limitations.
29775         1. OS/2 itself supports a file date since 1980 year in local time.
29776         2. OS/2 itself supports only even seconds for a file time.
29777         3. utimes() of OS/2 kLIBC does not work on an opened file.
29778         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
29779         * doc/posix-functions/utimes.texi: Document the above limitations of
29780         utimes() on OS/2 kLIBC.
29782 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29783             KO Myung-Hun  <komh@chollian.net>
29785         openat_proc_name: port to OS/2 kLIBC
29786         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
29787         instead of /proc/self/fd.
29788         * lib/openat-proc.c (openat_proc_name):
29789         Don't assume file name length is less than INT_MAX.
29790         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
29792 2016-01-14  KO Myung-Hun  <komh@chollian.net>
29794         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
29795         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
29796         definitions of intptr_t and uintptr_t (which use int and unsigned)
29797         to avoid clashes with declarations of system functions like sbrk.
29798         * lib/stdint.in.h (intptr_t, uintptr_t): Check
29799         _INTPTR_T_DECLARED before defining them.
29801         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
29802         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
29803         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
29804         Declare on kLIBC.
29805         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
29806         fd associated with dirp.
29807         (_gl_register_dirp_fd): New. Register fd associated with dirp to
29808         dirp_fd_list.
29809         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
29810         (dirfd): Implemented for kLIBC.
29811         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
29812         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
29813         succeeds.
29814         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
29815         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29816         (REPLACE_DIRFD): Define to 1 if replaced.
29817         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
29818         * modules/closedir (Depends-on): Add dirfd.
29819         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
29820         condition.
29821         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
29822         * modules/opendir (Depends-on): Add dirfd.
29824         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
29825         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
29826         * lib/dup.c (dup_nothrow): New.
29827         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
29828         (klibc_dup2): New.
29829         * lib/fcntl.c (klibc_fcntl): New.
29830         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
29831         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
29832         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
29833         fd.
29835         pipe_filter_ii_execute: port to OS/2 kLIBC
29836         Pipes on kLIBC do not support O_NONBLOCK like Win32.
29837         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
29838         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
29839         Reuse Win32 code on OS/2 kLIBC.
29840         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
29841         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
29843         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
29844         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
29845         static inline function.  The implementation of wcwidth in wcwidth.c
29846         causes a "conflicting types" error.
29847         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
29849         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
29850         spawn() on OS/2 kLIBC is not silly like one on Windows
29851         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
29852         empty string on OS/2 kLIBC.
29854         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
29855         On OS/2 kLIBC, select() works only on sockets.
29856         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
29858         binary-io: don't put fd in binary mode if it is a console on EMX
29859         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
29860         a console on EMX.
29862 2016-01-15  Pádraig Brady  <P@draigBrady.com>
29864         doc: mention unfixed issues with unsupported localtime() values
29865         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
29866         returns nonsense for localtime(2^56).
29867         * doc/posix-functions/localtime_r.texi: Likewise.
29869 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29871         doc: mention setlocale() issues on OpenBSD
29872         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
29873         never fails, and the need to check categories individually.
29875 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29877         sig2str: list all signals on FreeBSD >= 7
29878         FreeBSD >= 7 is contravening POSIX by not defining NSIG
29879         to the maximal statically defined signal value.
29880         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
29881         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
29882         where available, even when NSIG is defined.
29884 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
29886         acl-permissions: port to USE_ACL==0 platforms
29887         I ran into this problem when building bleeding-edge GNU Emacs
29888         with gcc -fsanitize=address on Fedora 23.  On this platform
29889         the ACL library does not pass the 'configure' test and Emacs
29890         then does not build due in part to what appear to be typos in the
29891         ACL part of Gnulib.
29892         * lib/acl-internal.c (free_permission_context):
29893         * lib/acl-internal.h (struct permission_context):
29894         Test whether USE_ACL is nonzero, not whether it is defined.
29896 2016-01-12  Martin Sebor  <msebor@redhat.com>
29898         mktime: rename macro to avoid glibc clash
29899         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
29900         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
29902 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
29904         Port "$@" to OpenIndiana ksh93
29905         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
29906         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
29907         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
29908         bug long-dead shells, so remove the workaround.
29909         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
29910         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29911         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
29912         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
29913         Use "$@" instead of ${1+"$@"}.
29915         Port Universal Time settings to strict POSIX
29916         * build-aux/announce-gen, build-aux/bootstrap:
29917         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
29918         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29919         * build-aux/gnupload, build-aux/mkinstalldirs:
29920         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
29921         * build-aux/update-copyright, build-aux/useless-if-before-free:
29922         * build-aux/vc-list-files, tests/test-strftime.c:
29923         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
29924         but POSIX says the behavior of TZ="UTC" is undefined.
29926 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
29928         msvc-inval: fix problem with unset shell var
29929         Problem reported by Karl Berry in:
29930         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
29931         * modules/msvc-inval (Depends-on):
29932         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
29933         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
29935 2016-01-01  Pádraig Brady  <P@draigBrady.com>
29937         tests: for compare_(), use cmp -s where available
29938         * tests/init.sh (compare_): Only fall back to cmp without
29939         the POSIX defined -s option, where this is not available.
29941 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29943         version-etc: new year
29944         * build-aux/gendocs.sh (version):
29945         * doc/gendocs_template:
29946         * doc/gendocs_template_min:
29947         * doc/gnulib.texi:
29948         * lib/version-etc.c (COPYRIGHT_YEAR):
29949         Update copyright dates by hand in templates and the like.
29950         * all files: Run 'make update-copyright'.
29952 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
29954         human: fix output buffer overrun by 1
29955         * lib/human.c (human_readable): Fix off-by-one typo in buffer
29956         calculation that could lead to a one-byte buffer overrun.
29958 2015-12-28  Daiki Ueno  <ueno@gnu.org>
29960         maint: fix operator precedence in mbrtowc test
29961         This is a fix for test breakage introduced by commit 45228d96; the
29962         equality expression must be parenthesized when negated with '!',
29963         otherwise we always get:
29965           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
29967         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
29968         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29970 2015-12-23  James Youngman  <jay@gnu.org>
29972         regexprops-generic: update from regex.h
29973         * doc/regexprops-generic.texi: update by running the regexprops binary
29974         from findutils (the command line is 'regexprops "Regular Expressions"
29975         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
29976         gnulib with GNU grep had made this document out-of-date.
29978 2015-12-23  Pádraig Brady  <P@draigBrady.com>
29980         strftime-tests: avoid false failure on OS X
29981         * tests/test-strftime.c (struct localtime_rz_test): Add an
29982         ahistorical member which is used to warn rather than fail
29983         when tm_isdst isn't set for such entries.  This is the case for
29984         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
29986 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
29988         fts: ensure leaf optimization is used for NFS
29989         NFS provides usable dirent.d_type but not necessarily for all entries
29990         of large directories.  See <https://bugzilla.redhat.com/1252549>
29991         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
29993 2015-12-20  Pádraig Brady  <P@draigBrady.com>
29995         fts: enable leaf optimization for XFS
29996         XFS provides usable dirent.d_type only for DT_DIR,
29997         but the noleaf optimization still applies.
29998         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
30000 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30002         intprops: comment fix
30003         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
30004         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
30006         intprops-test: work around GCC bug 68971
30007         Problem reported by Pádraig Brady in:
30008         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
30009         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
30010         (main): Add a case that better tests 64-bit long in this area.
30012 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
30014         gnulib-tool: allow multiple --local-dir usage
30015         * gnulib-tool: Use --local-dir to construct compound
30016         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
30017         PATH_SEPARATOR early.
30018         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
30019         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
30020         func_determine_path_separator because that needs to be detected
30021         earlier now.
30022         (func_determine_path_separator): New function.
30023         (func_path_foreach, func_path_foreach_inner): New functions.
30024         (func_path_prepend, func_path_append): Likewise.
30025         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
30026         (func_lookup_file, func_all_modules): Use new functions to work
30027         with local_gnulib_path.
30028         (func_modules_in_dir, func_exists_module): New callbacks for
30029         func_path_foreach.
30030         (func_exists_module, func_get_tests_module): Likewise.
30031         (func_is_local_file, func_should_symlink): New helper methods.
30032         (func_add_file, func_update_file): Use new func_should_symlink
30033         instead, DRY.
30034         (func_reconstruct_cached_local_gnulib_path): New helper.
30035         (func_reconstruct_cached_dir): New callback.
30036         (func_import): The cached_local_gnulib_dir renamed to
30037         cached_local_gnulib_path similarly to local_gnulib_dir.
30038         Use new func_reconstruct_cached_local_gnulib_path.
30039         (func_count_relative_local_gnulib_path): New sub-method.
30040         (func_create_testdir): Use func_should_symlink, DRY.
30041         (func_create_megatestdir): Use new functions to work with
30042         local_gnulib_path correctly.
30043         (func_append_local_dir): New helper.
30045 2015-12-08  Pádraig Brady  <P@draigBrady.com>
30047         fix freadptr to work with ungetc on all uClibc configs
30048         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
30049         where GNU coreutils cut(1) generates invalid output on uClibc
30050         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
30051         * lib/freadptr.c (freadptr): Return NULL if there are
30052         ungotten chars.  In this case freadseek() will iterate
30053         again to process the ungotten character.
30055 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
30057         xalloc-oversized: improve performance with GCC 5
30058         * lib/xalloc-oversized.h (xalloc_oversized):
30059         Improve performance with GCC 5 by using __builtin_mul_overflow.
30061 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30063         intprops: new public macro EXPR_SIGNED
30064         Emacs can use this macro, so make it public.
30065         * doc/intprops.texi (Arithmetic Type Properties): Rename from
30066         'Integer Type Determination', since some of these macros apply
30067         to non-integer types.  Clarify what kinds of constant expressions
30068         these macros return.  Say when the arguments can be non-integers.
30069         Mention newly published macro EXPR_SIGNED.
30070         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
30071         make it public.  All uses changed.
30073         intprops: fix typo in clang port
30074         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
30075         '__builtin_add_overflow' that is not caught by compiler.
30077 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
30079         test-timespec: fix typo in previous change
30080         * tests/test-timespec.c (main): Fix typo that reduced test quality.
30082         timespec-sub: fix overflow bug; add tests
30083         * lib/timespec-add.c (timespec_add):
30084         * lib/timespec-sub.c (timespec_sub):
30085         Work even if time_t is narrower than int (a theoretical
30086         possibility).  Redo code for a bit more clarity.
30087         * lib/timespec-sub.c (timespec_sub):
30088         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
30089         * modules/timespec-tests, tests/test-timespec.c: New files.
30091         intprops-test: suppress -Woverlength-strings
30092         Problem reported by Pádraig Brady in:
30093         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
30094         It is not worth the hassle to port this test to compilers that
30095         cannot handle long strings in diagnostics.
30096         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
30098 2015-11-03  Pádraig Brady  <P@draigBrady.com>
30100         quotearg: add quotearg_n_style_colon()
30101         This quotes with default options of the specified style,
30102         but with quoting enabled for instances of ':'.
30103         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
30104         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
30106 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
30108         intprops: revise _WRAPV macros, revert _OVERFLOW
30109         The incompatible changes to the _OVERFLOW macros were too much of
30110         a hassle in practice, so revert them.  Instead, change the new
30111         _WRAPV macros to make them closer in behavior to GCC 5's new
30112         builtin_add_overflow etc. functions.  No other software was using
30113         these newly-added macros yet, so this should be OK.
30114         * NEWS: Revert previous change, since the incompatible change
30115         has been reverted, and nobody used the incompatible version.
30116         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
30117         Document revised behavior.
30118         (Integer Range Overflow): Adjust example to match above revisions.
30119         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
30120         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
30121         these can be used in integer constant expressions again.
30122         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
30123         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
30124         needed.
30125         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
30126         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
30127         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
30128         Remove, as they did not seem that useful.
30129         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
30130         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
30131         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
30132         Support new semantics.
30133         (__has_builtin): New macro, if not alreay defined.
30134         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
30135         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
30136         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
30137         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
30138         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
30139         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
30140         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
30141         New macros.
30142         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
30144 2015-11-03  Jim Meyering  <meyering@fb.com>
30146         intprops: add parentheses for when OP has precedence lower than "-"
30147         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
30148         "a OP b" must be parenthesized for when OP is like "<<", which has
30149         lower precedence than the following "-". Reported by Pádraig Brady.
30151 2015-11-03  Pádraig Brady  <P@draigBrady.com>
30153         quotearg: constify get_quoting_style parameters
30154         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
30155         * lib/quotearg.c (get_quoting_style): Likewise.
30157 2015-11-02  Pádraig Brady  <P@draigBrady.com>
30159         quotearg: add support for $'' shell escaping
30160         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
30161         items and descriptions.
30162         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
30163         above types by quoting like "shell", but using $'...' syntax
30164         for non printable characters, which should provide unambiguous
30165         printable output for any input.
30166         * tests/test-quotearg-simple.c: Update accordingly.
30168 2015-11-02  Pádraig Brady  <P@draigBrady.com>
30170         maint: use a more standard return from mbrtowc test
30171         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
30172         from the test program as this is non standard and often
30173         indicates an unhandled case in the test program.
30174         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
30176 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
30178         intprops: add WRAPV and const flavors for GCC 5
30179         If available, use GCC 5's builtin functions for efficient integer
30180         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
30181         and safely compute the low-order bits of the correct answer.
30182         A downside of these efficient functions is that they cannot be
30183         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
30184         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
30185         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
30186         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
30187         Document the changes.
30188         (Wraparound Arithmetic): New section.
30189         (Integer Range Overflow):
30190         Put this subsection last, since it's least useful.
30191         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
30192         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
30193         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
30194         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
30195         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
30196         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
30197         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
30198         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
30199         New macros.
30200         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
30201         Generate calls to GCC builtins if available, for speed.
30202         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
30203         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
30204         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
30205         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
30206         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
30207         (CHECK_QUOTIENT, CHECK_REMAINDER):
30208         Test WRAPV and CONST flavors (when available) too.
30210 2015-10-30  Pádraig Brady  <P@draigBrady.com>
30212         doc: use extended timezone format in iso-8601 example
30213         * doc/parse-datetime.texi: The standard states that extended format
30214         is to be used consistently throughout.
30215         Note that lib/parse-datetime.y can handle either tz format.
30217 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
30219         stdalign: port to Sun C 5.9
30220         * doc/posix-headers/stdalign.texi: Document this.
30221         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
30222         __attribute__ ((__aligned__ (...))).
30224 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
30226         time_rz: fix comment about tzalloc
30227         * lib/time_rz.c (tzalloc): Fix comment.
30229 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30231         stdalign: work around pre-4.9 GCC x86 bug
30232         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
30233         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
30234         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
30236 2015-10-18  Pádraig Brady  <P@draigBrady.com>
30238         maint.mk: sc_tight_scope: remove extraneous expressions
30239         * top/maint.mk (tight_scope): This is not really required since
30240         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
30241         that matches all nm entries.  But it does remove extraneous entries
30242         that may be confusing or cause issue in future maintenance.
30244 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
30246         time_rz: return NULL if localtime_r fails
30247         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
30248         while still attempting to pacify bleeding-edge GCC.
30250         fts: port to C11 alignof
30251         * doc/posix-headers/stdalign.texi (stdalign.h):
30252         Document the C11 restriction.
30253         * lib/fts.c: Include stddef.h, for max_align_t.
30254         (fts_alloc): Align using max_align_t, not FTSENT.
30255         * modules/fts (Depends-on): Add stddef.
30257 2015-10-18  Jim Meyering  <meyering@fb.com>
30259         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
30260         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
30261         would see this:
30263         lib/time_rz.c: In function 'localtime_rz':
30264         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
30265           [-Werror=nonnull]
30266                    if (tm && !save_abbr (tz, tm))
30267                        ^
30269         That was complaining about "tm" because it is a parameter that was
30270         declared with the __nonnull__ attribute.
30271         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
30272         result of localtime_r.
30274 2015-10-17  Jim Meyering  <meyering@fb.com>
30276         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
30277         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
30278         name-extraction regexp mistakenly used \S+, and would mistakenly
30279         extract "*F" from "extern int *F()" rather than the desired "F".
30280         Use \w+ instead.
30282 2015-10-17  Jim Meyering  <meyering@fb.com>
30284         maint.mk: sc_tight_scope: factor and support OS X
30285         * top/maint.mk (_gl_tight_scope): Address three issues:
30286         - factor out four instances of code that wraps a string in "^...$"
30287         - allow nm-reported symbol names to have an optional leading "_"
30288         - add "main" to the list of ignored variable names, because on os x,
30289         "main" has nm-reported type "S" in the variable-checking section.
30291 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
30293         safe-alloc-tests: fix typo in license header
30294         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
30296 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
30298         copy-file: fix mem leak in error case
30299         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
30300         upon error opening or performing I/O to the src and dest files.
30302 2015-10-15  Mike Frysinger  <vapier@chromium.org>
30304         localename: control langinfo.h inclusion
30305         This header is only used to work around buggy behavior in old
30306         versions of glibc, so do not include it all the time.  Otherwise
30307         we get build failures on systems that do not provide langinfo.h.
30308         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
30309         in the source later on.
30310         The patch was originally submitted to gettext as:
30311         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
30313 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30315         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
30316         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
30317         * lib/u64.c, lib/unistd.c:
30318         Append 'typedef int dummy;', to pacify compilers that are picky
30319         about empty translation units.
30321 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
30323         accept4-tests: fix to avoid non portable flags
30324         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
30325         as they are the only documented ones, and passing others may trigger
30326         EINVAL (seen on FreeBSD 10.1-RELEASE).
30327         * doc/glibc-functions/accept4.texi: Mention that we don't provide
30328         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
30330 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
30332         gnulib-tool: fix tests of 'extensions' module
30333         This complements f8fe25fab60e3c687a124 commit.
30334         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
30335         emitting of initial gl_EARLY macros.
30336         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
30337         replaced with func_emit_pre_early_macros call.
30339 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30341         unicase/locale-language: fix typo in utf-8 cookie
30342         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
30343         Problem reported by Zbigniew Jędrzejewski-Szmek.
30345 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30347         xalloc: do not worry about GCC 5 warning on 32 bit
30348         * lib/xalloc.h: Revert previous change.
30349         I found a better way to fix this in coreutils.
30351 2015-10-02  Pádraig Brady  <P@draigBrady.com>
30353         xalloc: avoid GCC 5.1 warning on 32 bit
30354         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
30355         xalloc_oversized(), which was seen to give this warning
30356         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
30357         when simplifying conditional".
30359 2015-10-02  Daiki Ueno  <ueno@gnu.org>
30361         uniname/uniname-tests: avoid compiler warnings
30362         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
30363         unused local variables.
30364         (test_alias_lookup): Fix alias name display in failure cases.
30366 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
30368         c-ctype: do not worry about EBCDIC + char signed
30369         Drop support for EBCDIC with char being signed, as this breaks too
30370         many programs.  Problem reported by Ben Pfaff in:
30371         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
30372         * lib/c-ctype.h: Verify that we are not using EBCDIC with
30373         char being signed.
30374         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
30375         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
30376         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
30377         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
30378         * tests/test-c-ctype.c (test_all):
30379         Simplify by assuming standard char values cannot be negative.
30380         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
30382 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30384         c-ctype: port better to z/OS EBCDIC
30385         Problems reported by Daniel Richard G. in:
30386         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
30387         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
30388         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
30389         (_C_CTYPE_OTHER_CNTRL): New macro.
30390         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
30391         from SCHAR_MIN, as the functions are defined only from values
30392         promoted from char or from unsigned char, not necessarily from
30393         signed char.
30395 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
30397         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
30399         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
30400         and ARFLAGS variables.  Doing this unconditionally could break
30401         later Automake's AM_PROG_AR invocation (at least it's
30402         AC_CHECK_TOOLS call to detect correct 'ar' binary).
30404         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
30405         Amsterdam Compiler Kit, so make the previous code to have effects
30406         only on ACK, and rather automatically call the Automake's
30407         AM_PROG_AR as soon as possible to decide other cases.
30409         References:
30410         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
30412         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
30413         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
30414         is possible, keep setting AR/ARFLAGS to reasonable defaults.
30415         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
30416         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
30417         'extensions' module is used.
30418         * modules/extensions (configure.ac-early): Remove as this snippet
30419         is added to gnulib-comp.m4 earlier anyway.
30421 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30423         sockets: MS Windows initalization fixes
30424         Problem reported by Test User in:
30425         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
30426         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
30427         Correct the endianness.
30428         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
30429         number mismatch, not just on <.  Cleanup before any such failure.
30431 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
30433         gc: fix detection of installed libgcrypt version
30434         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
30435         at least as recent as 1.4.4.  The previously used macro is not
30436         available now, since modules were removed in version 1.6.0.
30438 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
30440         c-ctype: rewrite to use inline functions
30441         This simplifies maintenance, since it makes for just one
30442         implementation of each function, letting the compiler have the fun
30443         of optimization.  In practice this works well nowadays with GCC.
30444         E.g., c_isascii might need only three instructions even though the
30445         source code lists every ASCII character individually in a large
30446         switch statement.
30447         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
30448         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
30449         * NEWS: Document the API change.
30450         * lib/c-ctype.c: Drastically simplify, since this now just expands
30451         inline functions.
30452         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
30453         (C_CTYPE_INLINE): New macro.
30454         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
30455         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
30456         Verify that either ASCII or EBCDIC is being used.
30457         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
30458         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
30459         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
30460         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
30461         New private macros.
30462         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
30463         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
30464         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
30465         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
30466         (c_tolower, c_toupper): When converting, return the unsigned char,
30467         as that is what z/OS does.
30468         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
30469         of some c-ctype.h macros.
30470         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
30471         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
30472         c_tolower promotion to be compatible with z/OS.
30474 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
30476         gitlog-to-changelog: trim only trailing whitespaces
30477         This is fix for --format regression introduced by commit
30478         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
30479         doubled %n string) had no effect anymore.  This format
30480         specification has been used e.g. by GNU paxuitils (commit
30481         edfd8bcc3).
30483         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
30484         newlines in commmit messages.
30486 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30488         Test that c_iscntrl agrees with iscntrl, etc.
30489         Suggested by Daniel Richard G. in:
30490         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
30491         * modules/c-ctype-tests (Depends-on): Add ctype.
30492         * tests/test-c-ctype.c: Include <ctype.h>.
30493         (NCHARS): New constant.
30494         (test_agree_with_C_locale): New function.
30495         (main): Use it.
30496         (test_all): Use named constants.
30498         c-ctype: improve c_isascii testing
30499         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
30500         Add a test to count the number of ASCII characters.
30502 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30504         savewd: remove SAVEWD_CHDIR_READABLE
30505         It was problematic in the light of file systems that ignore umask.
30506         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
30507         * NEWS: Document this.
30508         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
30509         successful, -1 (setting errno) on failure, rather than something
30510         more complicated than that.
30511         * lib/mkdir-p.c (make_dir_parents):
30512         Do not use SAVEWD_CHDIR_READABLE.
30513         * lib/savewd.c (savewd_chdir):
30514         Remove support for SAVEWD_CHDIR_READABLE.
30515         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
30517         c-ctype: port better to EBCDIC
30518         Problems reported by Daniel Richard G. in
30519         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
30520         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
30521         Include "verify.h".
30522         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
30523         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
30524         Define as enum constants with value false, if not defined, so that
30525         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
30526         code more portable, as both branches of the 'if' are compiled on
30527         all platforms.
30528         (C_CTYPE_EBCDIC): New constant.
30529         Verify that the character set is either ASCII or EBCDIC.
30530         (to_char): New static function.
30531         (c_isascii, c_iscntrl):
30532         Assume standard control-character assignments for EBCDIC.
30533         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
30534         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
30535         Rewrite to use 'if' instead of 'ifdef'.
30536         Use to_char if non-ASCII.  Prefer <= to >=.
30537         Prefer true and false to 1 and 0, for booleans.
30538         (c_iscntrl): Use 'if', not 'ifdef'.
30539         * modules/c-ctype (Depends-on): Add verify.
30540         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
30541         (to_char): New function.
30542         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
30544 2015-09-21  Pádraig Brady  <P@draigBrady.com>
30546         nanosleep: fix return code for interrupted replacement
30547         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
30548         that we return -1 in the case the call is interrupted by a signal,
30549         rather than the current value of 1.
30550         Diagnosed and tested by Daniel Richard G.
30552 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30554         Diagnose ERE '()|\1'
30555         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
30556         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
30557         track of the set of previously-completed subexpressions available
30558         before the first alternative, and restore this set just before
30559         parsing each subsequent alternative.  This lets us diagnose the
30560         invalid back-reference in the ERE '()|\1'.
30562         regex: merge patches from libc
30564         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
30565         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
30566         * lib/regex_internal.h:
30567         Include <libc-lock.h> instead of <bits/libc-lock.h>.
30569         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
30570         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
30571         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
30572         wcscoll.
30573         * lib/regexec.c (check_node_accept_bytes): Likewise.
30575         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30576         Fix regex wcrtomb namespace (bug 18496).
30577         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
30578         instead of wcrtomb.
30580         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30581         Fix regex wctype namespace (bug 18495).
30582         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
30583         instead of towlower.
30584         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
30585         instead of iswlower.  Call __towupper instead of towupper.
30586         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
30587         instead of iswalnum.
30589         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
30590         * lib/regcomp.c (parse_bracket_exp): Initialize type to
30591         COLL_SYM in a couple of places to avoid uninitialized variable
30592         wanings on tilegx gcc 4.8.2.
30594         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30595         * lib/regex_internal.h: Remove NOT_IN_libc.
30597         2014-11-17  Andreas Schwab  <schwab@suse.de>
30598         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
30600         2014-09-11  Roland McGrath  <roland@hack.frob.com>
30601         Move findidx nested functions to top-level.
30602         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
30603         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
30604         Pass new arguments to findidx.
30605         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
30606         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
30607         Don't #include it inside the function.  Pass new arguments to findidx.
30608         * lib/regex_internal.h:
30609         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
30610         (re_string_elem_size_at): Don't #include it inside the function.
30611         Pass new arguments to findidx.
30613         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
30614         Check if DEBUG is defined in regex_internal.c
30615         * lib/regex_internal.c: Check if DEBUG is defined and is set.
30617 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
30619         ceill: detect buggy OpenBSD implementation
30620         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
30621         which returns zero for small values.  Discussed here:
30622         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
30624 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
30626         mountlist: add me_mntroot field on Linux machines
30627         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
30628         mount_entry so Linux machines based on /proc/self/mountinfo can
30629         distinguish between bind mounts and original mounts.  In reality bind
30630         mounts aren't treated differently than mountroot=/ mounts by the
30631         kernel, but the user often wants these bind mounts distinguished.
30632         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
30633         More details at https://pad.lv/1432871
30635 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
30637         doc: Describe to use multiple instances of gnulib
30638         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
30639         instances of gnulib with different modules can be used, for example one
30640         for a lib and another one for associated tools.
30642 2015-09-01  Pádraig Brady  <P@draigBrady.com>
30644         base32: mark function as __attribute__ const
30645         * lib/base32.h (isbase32): Mark __attribute__ const as
30646         suggested by GCC, and consistent with the base64 module.
30648 2015-08-20  Daiki Ueno  <ueno@gnu.org>
30650         gnulib-tool: don't transform binary files with sed
30651         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
30652         .mo and .class files.
30653         Reported by Denis Denisov.
30655 2015-08-10  Daiki Ueno  <ueno@gnu.org>
30657         gperf: respect silent rules
30658         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
30659         V_GPERF_0 for silent rules.
30660         * modules/iconv_open (Makefile.am): Use V_GPERF.
30661         * modules/unicase/locale-language (Makefile.am): Likewise.
30662         * modules/unicase/special-casing (Makefile.am): Likewise.
30663         * modules/unictype/category-byname (Makefile.am): Likewise.
30664         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
30665         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
30666         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
30667         * modules/unictype/property-byname (Makefile.am): Likewise.
30668         * modules/unictype/scripts (Makefile.am): Likewise.
30669         * modules/uninorm/composition (Makefile.am): Likewise.
30671 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30673         Improve port of stdalign to C++11
30674         Problem reported by Sundaram in:
30675         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
30676         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
30677         (__alignas_is_defined): Define if C++11 or newer.
30679 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
30681         pmccabe2html: fix gawk regex escaping
30682         * build-aux/pmccabe2html: Add one more backslash to properly
30683         escape the gsub replacement value.  Fixes this error:
30684         gawk: ./build-aux/pmccabe2html:425: \
30685         warning: escape sequence `\&' treated as plain `&'
30687 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
30689         time_rz: port to pedantic memcpy
30690         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
30691         that reject memcpy (..., NULL, 0).
30693 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
30695         time_rz: port better to MinGW
30696         Don't change tzname, as this makes MinGW dump core (Bug#21020).
30697         Instead, store the tzname copy in the struct tm_zone object.
30698         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
30699         * lib/strftime.c [!_LIBC]:
30700         * lib/time_rz.c: Include time-internal.h.
30701         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
30702         name from *TZ rather than from TZNAME, doable because *TZ now has
30703         a tzname_copy member.
30704         * lib/time-internal.h: New file, with contents taken from
30705         lib/time_rz.c.  It's separate because strftime.c now accesses
30706         struct tm_zone members.
30707         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30708         New member tzname_copy.
30709         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
30710         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30711         Initialize tzname_copy member.
30712         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
30713         in tzname_copy member.
30714         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
30715         (restore_tzname): Remove; no longer needed.  All calls removed.
30716         * modules/time_rz (Files): Add lib/time-internal.h.
30718         time: port __need_time_t to MinGW
30719         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
30720         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
30722 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30724         strftime: fix newly-introduced bug on Solaris
30725         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
30726         consistently at the start, rather than doing some of the setup at
30727         the start and some in the %Z format spec.  This is cleaner, and
30728         works better with time_rz on platforms like Solaris where struct
30729         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
30730         mktime_z and localtime_rz can mess up the tzname cache.
30732         test-strftime: test for Solaris bug
30733         * modules/strftime-tests (Depends-on): Add strerror.
30734         * tests/test-strftime.c: Include <errno.h>.
30735         (posixtm_test): New function, containing the old 'main'.
30736         (struct tzalloc_test, struct localtime_rz_test): New types.
30737         (TZ, LT): New static vars.
30738         (tzalloc_test): New function.
30739         (main): Rewrite in terms of posixtm_test and tzalloc_test.
30741         time_rz: port to Solaris etc.
30742         Works around a tzname problem on platforms like Solaris that have
30743         tzname but not tm_zone, by setting tzname at the appropriate time
30744         and restoring it later.
30745         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
30746         New static vars.
30747         (save_abbr) [HAVE_TZNAME]: Set them.
30748         (revert_tz) [HAVE_TZNAME]: Clear or use them.
30749         (restore_tzname): New function.
30750         (localtime_rz, mktime_z): Use it.
30752         time_rz: now LGPL
30753         * modules/time_rz (License): Now LGPL, because strftime depends on it.
30755         time_rz: make a constant 'const'
30756         * lib/time_rz.c (local_tz): Now const.
30758         time_rz: fix off-by-one typo
30759         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
30761 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
30763         fprintftime, strftime: use timezone_t args
30764         * NEWS: Document the change.
30765         * lib/fprintftime.h (fprintftime):
30766         * lib/strftime.c (extra_args) [my_strftime]:
30767         * lib/strftime.h (nstrftime):
30768         Time zone arg is now of type timezone_t, not int.
30769         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
30770         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
30771         (my_strftime) [emacs && !my_strftime]:
30772         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
30773         Remove; Emacs doesn't need this any more.
30774         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
30775         fprintftime and nstrftime to call tzset.
30776         (ut) [!my_strftime]: Remove, replacing with ...
30777         (tz) [!my_stftime]: ... this new macro.  All uses changed.
30778         (strftime_case_): Use localtime_rz and mktime_z instead
30779         of localtime_r and mktime.
30780         * modules/fprintftime (Depends-on): Add time_rz.
30781         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
30782         * tests/test-strftime.c (main): Adjust to new nstrftime API.
30784         time_rz: new module
30785         * MODULES.html.sh: Add time_rz.
30786         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
30787         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
30788         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
30789         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
30790         New var HAVE_TIMEZONE_T (default 0).
30791         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30792         New var GNULIB_TIME_RZ (default 0).
30793         * modules/time (time.h): Substitute the new vars.
30795         flexmember: license is now unlimited
30796         * modules/flexmember (License): Change to unlimited,
30797         since its only source file gives an unlimited license.
30799 2015-07-15  Eric Blake  <eblake@redhat.com>
30801         maint: update copyright paper procedures
30802         * config/srclist.txt: Drop outdated files.
30803         * doc/Copyright/conditions.txt: Update to latest.
30804         * doc/Copyright/assign.changes.manual: Delete.
30805         * doc/Copyright/assign.future.manual: Likewise.
30806         * doc/Copyright/assign.manual: Likewise.
30807         * doc/Copyright/assign.translation.manual: Likewise.
30808         * doc/Copyright/disclaim.changes.manual: Likewise.
30809         * doc/Copyright/disclaim.manual: Likewise.
30810         * doc/Copyright/disclaim.program: Likewise.
30812 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30814         localename: fix link error on Illumos
30815         Illumos defines __sun, but does not have getlocalename_l nor the
30816         equivalent.  This partially reverts commit 387c214.
30817         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
30818         available, as well as uselocale.
30819         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
30820         use getlocalename_l if it is not available.
30822 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30824         unistr/uN-strtok-tests: avoid a trivial leak
30825         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
30826         input and delim after the multibyte delimiter tests.
30828 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
30830         file-has-acl, acl-permissions: fix HP-UX typos
30831         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
30832         * lib/file-has-acl.c (file_has_acl):
30833         * lib/set-permissions.c (context_acl_from_mode)
30834         (context_aclv_from_mode, set_acls):
30835         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
30836         They were introduced by the recent ACL changes.
30838         regex: match current GNU grep behavior
30839         These symbols have not matched GNU grep behavior for quite some time.
30840         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
30841         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
30842         Change to match current GNU behavior.
30843         Simplify by expressing it as differences from POSIX BREs and EREs.
30844         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
30846 2015-07-03  Jim Meyering  <meyering@fb.com>
30848         set-permissions.c: adjust acl_from_mode's cpp guard
30849         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
30850         directives identical to those guarding the sole use.
30851         Otherwise, on some systems, we'd get a warning about
30852         the function being defined but not used.
30853         Also, filter through cppi to correct misleading indentation
30854         of cpp directives.
30856 2015-07-03  Pádraig Brady  <P@draigBrady.com>
30858         tests: restrict shells to those that support 'local'
30859         The local keyword is very widely supported and used
30860         in tests in coreutils and grep at least.  Therefore
30861         restrict to testing with shells that support it.
30862         This mainly excludes /bin/sh on Solaris.
30863         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
30865 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
30866         and Daiki Ueno  <ueno@gnu.org>
30868         unistr/uN-strtok: handle multibyte delimiters
30869         Previously, uN_strtok moved PTR to the next unit to the token end.
30870         When DELIM contained a multibyte character, the new position could
30871         be a middle of a multibyte character.
30872         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
30873         after the token.
30874         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
30875         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
30876         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
30877         * modules/unistr/u8-strtok (Depends-on): Depend on
30878         unistr/u8-strmblen.
30879         * modules/unistr/u16-strtok (Depends-on): Depend on
30880         unistr/u16-strmblen.
30881         * modules/unistr/u32-strtok (Depends-on): Depend on
30882         unistr/u32-strmblen.
30883         * tests/unistr/test-u-strtok.h: New file.
30884         * tests/unistr/test-u8-strtok.c: New file.
30885         * tests/unistr/test-u16-strtok.c: New file.
30886         * tests/unistr/test-u32-strtok.c: New file.
30887         * modules/unistr/u8-strtok-tests: New file.
30888         * modules/unistr/u32-strtok-tests: New file.
30889         * modules/unistr/u16-strtok-tests: New file.
30891 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
30893         update-copyright: fix test failure with perl >= 5.22 (trivial)
30894         * build-aux/update-copyright: Escape a literal left curly bracket,
30895         required with perl >= 5.22
30897 2015-07-02  Daiki Ueno  <ueno@gnu.org>
30899         u{16,32}-strstr-tests: relax timeout condition
30900         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
30901         tests can take longer than 5 seconds to complete.
30902         Reported by Dagobert Michelsen in:
30903         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
30904         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
30905         seconds to 10 seconds.
30906         * tests/unistr/test-u32-strstr.c (main): Likewise.
30908 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30910         gnulib-common.m4: change the ARFLAGS default to 'cr'
30911         In some GNU/Linux distributions people started to compile 'ar'
30912         binary with --enable-deterministic-archives (binutils project).
30913         That, however, in combination with previous autotools long time
30914         working default AR{_,}FLAGS=cru causes warnings on such
30915         installations:
30916         ar: `u' modifier ignored since `D' is the default (see `U')
30917         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
30918         set already.
30920 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30922         selinux-h: avoid double free after *getfilecon()
30923         Originally reported by Ben Shelton on bug-tar:
30924         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
30925         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
30926         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
30927         param should be freed by freecon(3) (regardless the return value).
30929 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
30931         fix pty related tests issues on Windows (trivial)
30932         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
30933         however it's still present in tests/ subdirectory of the final project.
30934         Therefore avoid it to pass `make check`.
30935         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
30936         will just return -ENOSYS, so avoid this non applicable test allowing
30937         the build to proceed.
30939 2015-07-01  Pádraig Brady  <P@draigBrady.com>
30941         acl: fix definition of acl_from_mode on FreeBSD
30942         This was causing basic coreutils copy operations to fail
30943         with ENOTSUP or ENOENT error messages.
30944         * lib/acl-internal.h (acl_from_mode): Only define when
30945         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
30946         of acl_from_mode() defined in lib/set-permissions.c to
30947         be used on FreeBSD at least.
30948         * lib/set-permissions.c: Fix up comment spelling,
30949         and a redundant variable assignment; noticed in passing.
30951 2015-06-30  Pádraig Brady  <P@draigBrady.com>
30953         readutmp: port to FreeBSD >= 9
30954         * lib/readutmp.h: Map utmpxname() to setutxdb().
30955         With that coreutils who(1) and pinky(1) tests pass.
30957 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
30959         mgetgroups: port to strict OS X
30960         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
30961         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
30962         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
30963         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
30965 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
30967         mgetgroups: port to strict OS X
30968         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
30969         Document the getgrouplist problem.
30970         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
30971         New macro.
30972         (mgetgroups): Use it.
30973         * m4/mgetgroups.m4 (gl_MGETGROUPS):
30974         Check for OS X signature for getgrouplist.
30976 2015-06-29  Jim Meyering  <meyering@fb.com>
30978         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
30979         It started like this when building coreutils' latest on OS X,
30980         invoking ./configure with a nonempty --cache=.cache:
30982           lib/linkat.c:46:42: error: operator '||' has no right operand
30983           lib/linkat.c: In function 'rpl_linkat':
30984           lib/linkat.c:330:27: error: #if with no expression
30986         Here's linkat.c's line 46:
30988           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
30990         Here's some context:
30992           $ grep linkat_nofoll .cache
30993           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
30994           $ grep LINKAT_SYM lib/config.h
30995           #define LINKAT_SYMLINK_NOTSUP
30997         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
30998         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
30999         but that violates a tenet of AC_CACHE_CHECK: it must
31000         have no side effect other than setting its cache variable.
31002         What happens is that when the cache is set, we'd skip the
31003         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
31004         defined to whatever value it happened to have in configure's
31005         environment.  In my case, it was not defined, so this later code:
31007           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
31008             [Define to 1 if linkat can create hardlinks to symlinks])
31010         would emit code with an empty RHS.
31012         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
31013         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
31015 2015-06-28  Jim Meyering  <meyering@fb.com>
31017         mountlist: avoid an unused-label warning on OS X
31018         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
31019         Building on OS X, I saw a warning about the "free_then_fail" label
31020         being unused.  Give it the _GL_UNUSED_LABEL attribute.
31022         error.c: correct printf-style format: %d -> %u
31023         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
31024         rather than %d, to match the type of "line_number", unsigned int.
31026 2015-06-25  Pádraig Brady  <P@draigBrady.com>
31028         fts: avoid reading beyond the heap allocation
31029         GCC 5.1.1 with -O2 and -fsanitize=address reports
31030         a read of size 4 from a heap object of size 3 is indeed invalid,
31031         though this may be due to incorrect padding assumptions by GCC, see:
31032         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
31033         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
31034         * modules/fts: Depend on stdalign.
31036 2015-06-24  Pádraig Brady  <P@draigBrady.com>
31038         savedir: avoid undefined behavior in qsort call
31039         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
31040         "runtime error: null pointer passed as argument 1,
31041          which is declared to never be null"
31042         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
31044 2015-06-24  Pádraig Brady  <P@draigBrady.com>
31046         userspec: avoid undefined behavior in gettext call
31047         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
31048         "runtime error: null pointer passed as argument 2,
31049          which is declared to never be null"
31050         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
31052 2015-06-20  Glenn Morris  <rgm@gnu.org>
31054         gitlog-to-changelog: improve gitmerge.el commits
31055         Let the Emacs ChangeLog generation process exclude "skipped"
31056         messages from merge commits (Bug#20717).
31057         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
31059 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31061         wchar: fix MinGW compilation warnings
31062         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
31063         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
31064         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
31066 2015-06-20  Daiki Ueno  <ueno@gnu.org>
31068         uniname/uniname-tests: use pristine data files
31069         For copyright and maintenance reasons, use the data files from UCD
31070         without modification.
31071         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
31072         (getfield): Remove.
31073         (aliases_count): New global variable.
31074         (fill_names): Skip comments and empty lines in the input.  Don't
31075         use getfield.
31076         (fill_aliases): Likewise.
31077         (main): Change the expected command line arguments to:
31078         NAMES... ["--" ALIASES...].
31079         * tests/uniname/test-uninames.sh: Adjust to the change in
31080         test-uninames.c.
31081         * tests/uniname/UnicodeDataNames.txt: Remove.
31082         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
31083         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
31084         file from Unicode 8.0.0.
31086 2015-06-19  Pádraig Brady  <P@draigBrady.com>
31088         linked-list, linkedhash-list: avoid compiler warnings
31089         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
31090         -Werror=suggest-attribute=pure (from GCC 5.1.1).
31092 2015-06-19  Daiki Ueno  <ueno@gnu.org>
31094         libunistring: bump minimum version to 0.9.6
31095         * all modules depending on updated Unicode data: Regenerate.
31096         The modules are listed by a script that does:
31097         - for each file listed by: git show --oneline --name-only 705f4efc
31098           - deduce the containing modules, based on "Files:"
31099         - deduce the modules which depend on the containing modules, based
31100           on "Depends-on:"
31102 2015-06-18  Daiki Ueno  <ueno@gnu.org>
31104         uniname/uniname: update to Unicode 8.0.0
31105         * lib/uniname/uninames.h: Regenerate.
31106         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
31107         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
31109 2015-06-18  Daiki Ueno  <ueno@gnu.org>
31111         libunistring: update to Unicode 8.0.0
31112         * lib/gen-uni-tables.c (SIZEOF): New macro.
31113         (output_numeric): Increase the maximum number of fractions from
31114         128 to 160.  Increase the level3 value width from 7 bits to 8
31115         bits.  Use SIZEOF instead of a hard-coded integer.
31116         (output_blocks): Decrease the cut-off threshold from 0x30000 to
31117         0x28000.
31118         (fill_blocks): Increase the maximum number of blocks from 256 to
31119         384.  Use SIZEOF instead of a hard-coded integer.
31120         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
31121         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
31122         value width.
31123         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
31124         a new case added to LBP22.
31125         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
31126         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
31127         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
31128         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
31129         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
31130         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31131         lib/uniwidth/width.c.
31132         * all generated files under lib/uni* and tests/uni*: Regenerate.
31134 2015-06-16  Pádraig Brady  <P@draigBrady.com>
31136         gnu-web-doc-update: add --mirror to remove stale files
31137         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
31138         out of date files from the CVS server.  Since this is usually
31139         appropriate, a prompt is given when the option is not specified,
31140         along with the `cvs remove` command that would be run.
31142 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
31144         acl-permissions: pacify -Wsuggest-attribute=const
31145         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
31146         * lib/acl-internal.h (free_permission_context):
31147         Declare with attribute const if ! (defined USE_ACL &&
31148         (HAVE_ACL_GET_FILE || defined GETACL)).
31150         fsync: document AIX misbehavior
31151         * doc/posix-functions/fsync.texi (fsync):
31152         Document failure on AIX with read-only file descriptor.
31154 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
31156         stdio: Don't redefine gets when using C++
31157         * lib/stdio.in.h (gets): Disable warning on C++.
31159 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
31161         acl-permissions: port to AIX, C89 HP-UX
31162         Problems reported by Michael Felt.
31163         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
31164         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
31165         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
31166         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
31167         Add cast for AIX, whose system calls are declared to accept
31168         char * even though the arguments are really char const *.
31169         * lib/get-permissions.c (get_permissions):
31170         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
31171         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
31172         that broke a build.
31173         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
31174         Rework types to pacify xlc.
31176 2015-06-03  Pádraig Brady  <P@draigBrady.com>
31178         vasprintf-posix: avoid compiling vasnprintf where possible
31179         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
31180         module where not required.  For example on a GNU/Linux system
31181         when gnulib-tool is run with the --conditional-dependencies option.
31183 2015-06-02  Pádraig Brady  <P@draigBrady.com>
31185         file-has-acl: fix build on Mac OS X 10
31186         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
31187         which has an incompatible 6 parameter getxattr() call.
31188         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
31189         call on Mac OS X >= 10.4.
31190         * doc/glibc-functions/fgetxattr.texi: Likewise.
31191         * lib/file-has-acl.c: Revert to more complete combined check.
31192         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
31193         Reported by Jack Howarth.
31195 2015-06-02  Pádraig Brady  <P@draigBrady.com>
31197         prefix-gnulib-mk: remove no longer needed special case
31198         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
31199         continued lib_SOURCES lines are no longer present,
31200         so special case handling of such entries is not required.
31202 2015-06-01  Pádraig Brady  <P@draigBrady.com>
31204         acl: don't depend on the deprecated qacl module
31205         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
31207 2015-06-01  Pádraig Brady  <P@draigBrady.com>
31209         gnulib-tool: concatenate lib_SOURCES to a single line
31210         * gnulib-tool: Refactor the line merging sed logic,
31211         and use that to output a single lib_SOURCES line for each module.
31212         gnulib using projects often postprocess this output to prepend
31213         subdir paths to each item, and having a single line simplifies this
31214         processing allowing better decoupling from the gnulib-tool output.
31216 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
31218         pthread_sigmask: discount system version if a simple macro (trivial)
31219         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
31220         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
31221         function to ensure it's available.
31223 2015-05-31  Pádraig Brady  <P@draigBrady.com>
31225         readlinkat: avoid OS X 10.10 trailing slash bug
31226         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
31227         has this bug.
31228         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
31229         that OS X 10.10 has this function.
31230         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
31231         as done for readlink().
31232         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
31233         trailing slash bug, and assume readlinkat() has the same issue.
31234         Also fix a typo where $gl_cv_decl_readlink_works was tested,
31235         rather than the correct $gl_cv_decl_readlinkat_works.
31237 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
31239         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
31240         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
31241         module rewrite.
31243         acl-permissions: Fix build on Solaris and Cygwin
31244         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
31245         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
31246         ace_entries variables have moved into struct permission_context but
31247         they were still accessed as local variables here.
31249 2015-05-29  Pádraig Brady  <P@draigBrady.com>
31251         linkat: avoid OS X 10.10 trailing slash with symlink bug
31252         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
31253         causes the symlink to be dereferenced, and if it points
31254         to a non existent file, that file will be created as
31255         a hard link to "path1".
31256         This fixes a test failure in test-linkat.c.
31257         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
31258         this case.  The existing workaround in linkat.c for
31259         trailing slash issues, suffices for this case.
31260         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
31261         the list of platforms with trailing slash issues.
31263 2015-05-28  Pádraig Brady  <P@draigBrady.com>
31265         unlinkat: handle ignoring of ".." on Darwin 14
31266         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
31267         on Mac OS X 10.10, where it ignores paths with a trailing "..",
31268         so handle in the same manner.
31269         * m4/unlinkat.m4: Comment on this Darwin issue.
31270         * doc/posix-functions/unlink.texi: Update the latest version
31271         where the issue was seen.
31272         * doc/posix-functions/unlinkat.texi: Mention this issue.
31273         Fixes a test failure in test-unlinkat.c.
31275 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
31277         qacl: split into qcopy-acl and qset-acl
31278         Emacs needs the former, but not the latter.
31279         * modules/acl-permissions: New file, containing most of the old qacl.
31280         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
31281         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
31282         * modules/qcopy-acl, modules/qset-acl: New files.
31283         * MODULES.html.sh (File system functions):
31284         Mention the new modules, and mention qacl while we're at it.
31286 2015-05-27  Glenn Morris  <rgm@gnu.org>
31288         gitlog-to-changelog: new option --ignore-line
31289         (This patch is imported from the GNU Emacs master.)
31290         This option ignores individual commit lines matching a pattern.
31291         * build-aux/gitlog-to-changelog: Add --ignore-line option.
31293 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
31295         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
31296         Implement get_permissions and set_permissions primitives for getting all
31297         the permissions of a file, storing them, and later setting them. (In the
31298         minimal case, the permissions consist only of a file mode.) Reimplement
31299         qset_acl and qcopy_acl based on these new primitives: this avoids code
31300         duplication and makes error handling more consistent.
31301         The Solaris and Cygwin code still uses duplicate code paths for setting
31302         a file mode while making sure that no acls exist and setting an explicit
31303         acl; this is no worse than before, but could be cleaned up.  The AIX
31304         code still doesn't read ACLs, it only makes sure that acls don't get in
31305         the way when setting a file mode.
31306         * lib/acl-internal.h (struct permission_context): New data structure.
31307         (get_permissions, set_permissions, free_permission_context): Declare.
31308         * lib/acl-internal.c (free_permission_context): New helper function.
31309         * lib/get-permissions.c (get_permissions): New helper function split off
31310         from qcopy_acl.
31311         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
31312         AIX, set a file's permissions based only on a file mode.
31313         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
31314         other platforms construct a temporary acl from the file mode and set
31315         that acl in the same way as setting an acl read from the source file.
31316         This should help avoid code duplication and inconsistent / buggy
31317         behavior.
31318         (set_acls): New helper function Split off from qcopy_acl.
31319         (chmod_or_fchmod): Moved here from qset-acl.c.
31320         (set_permissions): New helper function.
31321         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
31322         set_permissions.
31323         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
31324         * modules/qacl: Add get-permissions.c and set-permissions.c.
31326         file-has-acl: Split feature tests again (Bug#20667)
31327         * lib/file-has-acl.c: Instead of testing for
31328         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
31329         define them when needed.
31330         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
31331         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
31333 2015-05-27  Pádraig Brady  <P@draigBrady.com>
31335         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
31336         This avoids a conflict with "FORTIFY_SOURCE" variants
31337         of the string functions when they're replaced on NetBSD-6.0.1
31338         and Darwin-14.3.0 at least.
31339         * lib/string.in.h: Avoid including our "lib/string.h" while
31340         including the system <string.h>.
31342 2015-05-26  Eric Blake  <eblake@redhat.com>
31344         stdio: limit __gnu_printf__ witness to gcc 4.4+
31345         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
31346         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
31348         error: use correct printf attributes on mingw
31349         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
31351         inttypes: force correct mingw PRIdMAX even without <stdio.h>
31352         * modules/inttypes (Depends-on): Require extensions, so that mingw
31353         always uses GNU style inttypes.
31354         * lib/inttypes.in.h: On mingw, include <stdio.h>.
31356         stdio: fix probe on mingw under gcc 5.1
31357         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
31358         around new gcc preprocessor rules.
31360 2015-05-07  Glenn Morris  <rgm@gnu.org>
31362         gitlog-to-changelog: parse "Tiny-change"
31363         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
31364         "Copyright-paperwork-exempt".  (Bug#20324)
31366 2015-05-06  Pádraig Brady  <P@draigBrady.com>
31368         doc: document glibc posix_fallocate() issues
31369         * doc/posix-functions/posix_fallocate.texi: Mention the
31370         glibc efficiency problems and issues with NFS.
31372 2015-05-05  Karl Berry  <karl@freefriends.org>
31374         * build-aux/gendocs.sh (usage): document new css default
31375         for HTML (--htmlarg).
31377 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31379         extern-inline: no need for workaround in GCC 5.1
31380         * doc/extern-inline.texi (extern inline):
31381         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
31382         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
31383         around these bugs in GCC 5.1 and later.  Maybe in a decade or
31384         two we can remove these workarounds.
31386 2015-04-28  Pádraig Brady  <P@draigBrady.com>
31388         eealloc, pagealign_alloc, xalloc: avoid clang warnings
31389         Avoid [-Wunknown-attributes] warnings like:
31390         warning: unknown attribute '__alloc_size__' ignored
31391         * lib/xalloc.h: Don't use the __alloc_size__  attribute
31392         with clang, as support has been fully removed as of clang 3.5:
31393         https://github.com/llvm-mirror/clang/commit/c047507a
31394         * lib/eealloc.h: Likewise.
31395         * lib/pagealign_alloc.h: Likewise.
31397 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
31399         tests: pacify GCC 5.1's stricter printf checking
31400         * tests/test-dirname.c (main):
31401         * tests/test-getaddrinfo.c (simple):
31402         * tests/test-getlogin.c (main):
31403         * tests/test-getndelim2.c (main):
31404         * tests/test-inttostr.c (CK):
31405         * tests/test-md5.c (main):
31406         * tests/test-read-file.c (main):
31407         * tests/test-sha1.c (main):
31408         Fix mismatches between printf format and value signedness.
31409         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
31410         Remove, as CAST_VAL always returned a value of type uintmax_t.
31412         fts: port to GCC 5.1 with --enable-gcc-warnings
31413         Without this fix, GCC 5.1 (correctly) warns about a subscript
31414         error on the fts_name component of FTSENT.  It's actually a
31415         flexible member, so define it that way on C99 or later hosts.
31416         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
31417         structure that now has a flexible array member.
31418         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
31419         (FTSENT): fts_name is now flexible on C99-or-later platforms.
31420         * modules/fts (Depends-on): Add flexmember.
31422 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
31424         file-has-acl: port to CentOS 6
31425         Problem reported by Tom G. Christensen in:
31426         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
31427         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
31428         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
31429         HAVE_GETXATTR.
31430         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
31431         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
31432         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
31433         file-has-acl.c actually needs.
31435 2015-04-26  Pádraig Brady  <P@draigBrady.com>
31437         file-has-acl: always return false when ACLs aren't supported
31438         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
31439         change the GNU/Linux getxattr path, to transform "not supported"
31440         errors to a false return rather than an error.  This is handled
31441         within file_has_acl() due to the platform specific tests to
31442         determine if ACLs are not supported.
31444 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
31446         gettext: propagate po/Makefile.in.in too
31447         * build-aux/po/Makefile.in.in: Copy from latest gettext.
31448         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
31449         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
31450         between Makefile.in.in and the gettext-runtime m4 files.
31452 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
31454         file-has-acl: new module, split from acl
31455         And add a new module file-has-acl-tests to match.
31456         I ran into a problem with the recent changes to the acl module,
31457         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
31458         When using the fixed version with Emacs, I discovered that
31459         file-has-acl wasn't separated out well enough for Emacs (e.g., it
31460         had multiple libraries, but needed only one), so I fixed that too.
31461         * NEWS: Document this incompatible change.
31462         * modules/file-has-acl, modules/file-has-acl-tests: New files.
31463         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
31464         Initialize gl_need_lib_has_acl.
31465         (gl_FUNC_ACL): Require it.
31466         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
31467         Move the file-has-acl.c-relevant stuff to ...
31468         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
31469         use_xattrs = 0' typo, and omit some needless work.  Set
31470         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
31471         when gl_FUNC_ACL is called.
31472         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
31473         (Link): Remove $(LIB_HAS_ACL).
31474         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
31475         (check_PROGRAMS): Move stuff relevant to file-has-acl to
31476         modules/file-has-acl-tests.
31477         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
31479         manywarnings: add GCC 5.1 warnings
31480         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
31481         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
31482         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
31483         -Wsuggest-override, -Wuse-without-only.  Change
31484         -Wnormalized=... operands to match 5.1.
31485         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
31486         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
31487         -Wdiscarded-qualifiers, -Wformat-signedness,
31488         -Wincompatible-pointer-types, -Wint-conversion,
31489         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
31490         -Wshift-count-negative, -Wshift-count-overflow,
31491         -Wsizeof-array-argument, -Wsuggest-final-methods,
31492         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
31493         and add -Warray-bounds=2 as a special case.
31495 2015-04-21  Simon Josefsson  <simon@josefsson.org>
31497         doc: update FDL template to match FDL examples.
31498         * doc/alloca-opt.texi:
31499         * doc/alloca.texi:
31500         * doc/c-ctype.texi:
31501         * doc/c-strcase.texi:
31502         * doc/c-strcaseeq.texi:
31503         * doc/c-strcasestr.texi:
31504         * doc/c-strstr.texi:
31505         * doc/c-strtod.texi:
31506         * doc/c-strtold.texi:
31507         * doc/ctime.texi:
31508         * doc/error.texi:
31509         * doc/gcd.texi:
31510         * doc/gnulib-tool.texi:
31511         * doc/inet_ntoa.texi:
31512         * doc/intprops.texi:
31513         * doc/lib-symbol-visibility.texi:
31514         * doc/maintain.texi:
31515         * doc/parse-datetime.texi:
31516         * doc/quote.texi:
31517         * doc/regexprops-generic.texi:
31518         * doc/standards.texi: Remove spurious 'with' in FDL license
31519         template.
31521 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
31523         lstat: fix cross-compilation 'ln -s' problem
31524         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
31525         Have the test program call 'symlink' rather than a separate
31526         script run 'ln -s'; this is more likely to work in
31527         cross-compilation environments.  Reported by Pavel Fedin in:
31528         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
31530 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
31532         gendocs.sh: default to a common CSS style sheet for HTML output
31533         * build-aux/gendocs.sh (htmlarg): Change default value.
31535 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
31537         gnulib-tool: output bold attribute more portably
31538         * gnulib-tool (func_show_module_list): Change hexadecimal
31539         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
31540         encoded numbers as arguments to `printf' is not portable,
31541         and is not claimed by POSIX.  This is the case with FreeBSD.
31543 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
31545         qacl: Simplify HP-UX acl_nontrivial check
31546         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
31547         acl_nontrivial. Check if the acl has at most three entries instead (it must
31548         have exactly three entries according to the HP-UX documentation). Ignore
31549         uids and gids as long as an entry is either for a user (i.e., the owner),
31550         a group (i.e., the owning group), or others.
31551         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
31552         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
31554 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
31556         acl: On Linux, check for acls without libacl
31557         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
31558         library function to check for the presence of acls, avoiding a library.
31559         * lib/file-has-acl.c: Include xattr headers if we have them.
31560         (file_has_acl): On Linux, use getxattr().
31561         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
31562         file_has_acl(). Check for xattr headers and getxattr().
31564 2015-04-14  Ángel González  <keisial@gmail.com>
31566         tempname: avoid unused parameter warnings (trivial)
31567         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
31568         (try_nocreate): Likewise.
31570 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
31572         fseeko: fix build failure on NetBSD >= 6 (trivial)
31573         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
31574         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
31576 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
31578         gitlog-to-changelog: port to MS-Windows
31579         * build-aux/gitlog-to-changelog (git_dir_option):
31580         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
31581         MS-Windows Perl.  Reported by Eli Zaretskii in:
31582         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
31584 2015-04-07  Karl Berry  <karl@gnu.org>
31586         gendocs: new option --tex for passing args to texi2dvi.
31587         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
31588         (TEXI2DVI): cut to just command name.
31589         (usage): mention new option, and update copyright.
31590         <generate_tex>: use it.
31592 2015-04-07  Karl Berry  <karl@gnu.org>
31594         * config/srclistvars.sh (GETTEXT): new definition.
31595         * config/srclist.txt: use it for gettext .m4 files.
31596         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
31597         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
31598         and continuing into April.
31600 2015-04-07  Daiki Ueno  <ueno@gnu.org>
31602         uniname/uniname-tests: fix failure due to alias
31603         Reported by Jack Howarth in:
31604         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
31605         * tests/uniname/test-uninames.c (name_has_alias): New function.
31606         (test_inverse_lookup): Exclude character name with valid alias,
31607         from randomly generated character names.
31608         (main): Fill unicode_aliases before calling test functions.
31610 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
31612         hash: remove deprecated hash_insert0 function
31613         * lib/hash.h (hash_insert0): Remove deprecated function.
31614         * lib/hash.c (hash_insert0): Likewise.
31616 2015-04-02  Pádraig Brady  <P@draigBrady.com>
31618         mountlist: remove dependency on libmount
31619         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
31620         directly, rather than depending on libmount, which has many
31621         dependencies due to its dependence on libselinux, as detailed at:
31622         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
31623         Note we restrict this to __linux__ as that's probably where this
31624         interface will remain.  If ever porting, it would be best
31625         to first pull the makedev() wrapper from coreutils to a gnulib module.
31626         Note also we don't add a getline dependency to the mountlist module,
31627         as all Linux versions are sufficient.
31629 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
31631         stddef: port to pre-C11 GCC on x86
31632         On this platform, max_align_t should have an alignment of 8 even
31633         though the storage alignments of double, long, etc. max out at 4.
31634         Inspired by a comment of Andreas Schwab's here:
31635         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
31636         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
31637         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
31638         * tests/test-stddef.c: Test __alignof__ too, if available.
31640 2015-03-24  Pádraig Brady  <P@draigBrady.com>
31642         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
31643         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
31645 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
31647         yesno: make EOL optional in ENABLE_NLS case also (trival)
31648         * lib/yesno.c (yesno): Check for EOL before replacing.
31649         * tests/test-yesno.sh: Add a test case (test along with gettext).
31651 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
31653         fdopendir-tests: test it does not close its arg
31654         * tests/test-fdopendir.c (main): Test that fdopendir does not
31655         close its argument.  From a suggestion by David Grayson in:
31656         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
31658 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
31660         gitlog-to-changelog: trim trailing white space
31661         * build-aux/gitlog-to-changelog (main):
31662         Trim trailing white space from commit message lines.
31663         This is helpful for processing the GNU Emacs repository,
31664         which dates back to 1985 and contains a lot of such lines.
31666         gitlog-to-changelog: new option --ignore-matching
31667         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
31668         Support new option --ignore-matching=PAT, which ignores all
31669         commit messages whose first line matches PAT.
31671 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31673         fdopendir: port better to MinGW
31674         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
31675         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
31676         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
31677         * modules/fdopendir (Depends-on): Add dirfd.
31679 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31681         fdopendir: fix typo in comment
31682         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
31684 2015-03-09  Eric Blake  <eblake@redhat.com>
31686         error: document all entry points provided
31687         * doc/glibc-functions/error_print_progname.texi
31688         (error_print_progname): Mention the error module.
31689         * doc/glibc-functions/error_at_line.texi (error_at_line):
31690         Likewise.
31691         * doc/glibc-functions/error_message_count.texi
31692         (error_message_count): Likewise.
31693         * doc/glibc-functions/error_one_per_line.texi
31694         (error_one_per_line): Likewise.
31696 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
31698         vasnprintf: pacify clang 3.5.0
31699         Problem reported by Werner Lemberg in:
31700         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
31701         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
31702         The casts aren't needed, since the characters in question are ASCII.
31704 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
31706         glob, etc.: port to MSVC v18 on MS-Windows 8.1
31707         * lib/dirent--.h (GNULIB_defined_opendir):
31708         * lib/dirent.in.h (GNULIB_defined_opendir)
31709         (GNULIB_defined_closedir):
31710         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
31711         #undef only if Gnulib defined it.
31713         poll: port to MSVC v18 on MS-Windows 8.1
31714         Problem reported by Gisle Vanem in:
31715         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
31716         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
31717         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
31718         Add sys_socket.
31720 2015-02-24  Pádraig Brady  <P@draigBrady.com>
31722         tests: support stderr verification with returns_()
31723         * tests/init.sh (returns_): Disable tracing for this wrapper
31724         function, so that stderr of the wrapped command is unchanged,
31725         allowing for verification of the contents.
31727 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
31729         passfd: avoid valgrind uninitalised data warning
31730         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
31731         to include just the fd we've initialized, rather than including
31732         the extra space used for alignment.
31734 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
31736         uniwbrk/u32-wordbreaks-tests: fix copyright
31737         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
31739         dup2: doc and test for Android bug
31740         Reported by Kevin Cernekee in:
31741         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
31742         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31743         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
31745 2015-02-23  Kevin Cernekee  <cernekee@google.com>
31747         Replace dup2() on Android
31748         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
31749         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
31750         fails.  Using rpl_dup2() fixes this because it has an explicit test
31751         for this condition.
31753 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
31755         Android doesn't define RLIM_SAVED_*
31756         Portability problem reported by Kevin Cernekee in:
31757         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
31758         * doc/posix-headers/sys_resource.texi (sys/resource.h):
31759         Mention the portability problem.
31760         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
31761         Define if not defined.
31762         * m4/dup2.m4 (gl_FUNC_DUP2):
31763         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31764         Likewise.
31766 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31768         vasnprintf-posix-tests: use consistent test
31769         * tests/test-vasnprintf-posix.c (test_function):
31770         Use "<" in assert instead of "<=", for consistency with other tests.
31772 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31774         printf, isinf, etc.: noncanonical != NaN
31775         Do not require that isinf, printf, etc. treat noncanonical
31776         values as NaNs.  Instead, require only that they do not crash.
31777         Problem reported by Joseph Myers in:
31778         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
31779         * doc/posix-functions/dprintf.texi (dprintf):
31780         * doc/posix-functions/fprintf.texi (fprintf):
31781         * doc/posix-functions/isfinite.texi (isfinite):
31782         * doc/posix-functions/isinf.texi (isinf):
31783         * doc/posix-functions/isnan.texi (isnan):
31784         * doc/posix-functions/printf.texi (printf):
31785         * doc/posix-functions/snprintf.texi (snprintf):
31786         * doc/posix-functions/sprintf.texi (sprintf):
31787         * doc/posix-functions/vdprintf.texi (vdprintf):
31788         * doc/posix-functions/vfprintf.texi (vfprintf):
31789         * doc/posix-functions/vprintf.texi (vprintf):
31790         * doc/posix-functions/vsnprintf.texi (vsnprintf):
31791         * doc/posix-functions/vsprintf.texi (vsprintf):
31792         Document this.
31793         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
31794         * m4/isinf.m4 (gl_ISINFL_WORKS):
31795         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
31796         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
31797         * tests/test-isfinite.c (test_isfinitel):
31798         * tests/test-isinf.c (test_isinfl):
31799         * tests/test-isnan.c (test_long_double):
31800         * tests/test-isnanl.h (main):
31801         * tests/test-snprintf-posix.h (test_function):
31802         * tests/test-sprintf-posix.h (test_function):
31803         * tests/test-vasnprintf-posix.c (test_function):
31804         * tests/test-vasprintf-posix.c (test_function):
31805         Test only that noncanonical values do not cause crashes, not that
31806         they are treated as NaNs.  In some cases this means a larger
31807         output buffer is needed.
31809 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
31811         fts: remove redundant close() (trivial)
31812         * lib/fts.c (fts_read): Remove redundant call to close().
31813         Spotted by coverity.
31815 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31817         getdtablesize: port better for Android
31818         Problem reported by Kevin Cernekee in:
31819         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
31820         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
31821         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
31822         Instead, just use getrlimit, taking care to avoid Cygwin bug.
31824         poll: fixes for large fds
31825         * lib/poll.c (poll): Don't check directly for NFD too large.
31826         Don't rely on undefined behavior in FD_SET when an arg exceeds
31827         FD_SETSIZE.  Always set revents afterwards, even if to zero.
31828         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
31829         as that makes the test a bit stricter.
31831 2015-02-19  Kevin Cernekee  <cernekee@google.com>
31833         fcntl: Fix cross compiling
31834         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
31835         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
31837 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31839         dup2, fcntl: cross-compile better for Android
31840         Problem reported by Kevin Cernekee in:
31841         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
31842         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
31843         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
31844         there's little need to cross-compile for older kernels nowadays.
31845         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
31846         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
31848 2015-02-18  Pádraig Brady  <P@draigBrady.com>
31850         getopt: don't crash on memory exhaustion
31851         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
31852         memory exhaustion.  In the _LIBC case we use alloca() as is
31853         already done in glibc, so we don't need to consider the separate
31854         error path in that awkward case.  Also fix a memory leak when
31855         ambiguous options are present.
31856         Reported by Tobias Stoeckmann
31858 2015-02-17  Mike Miller  <mtmiller@ieee.org>
31860         tempname: allow compilation with C++ (trivial)
31861         * lib/tempname.h [C++]: Specify extern "C" linkage.
31862         * lib/tempname.h (try_tempname):
31863         * lib/tempname.c (__try_tempname, __gen_tempname):
31864         Rename 'try' to 'tryfunc'.
31866 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
31868         dup2, fcntl: port to AIX
31869         * m4/dup2.m4 (gl_FUNC_DUP2):
31870         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31871         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
31872         The former works on AIX 7.1 but the latter does not.
31873         Also, this may work better with Android; see:
31874         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
31876 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
31878         getdtablesize, dup2, fcntl: port to Android
31879         Problem reported by Kevin Cernekee in:
31880         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
31881         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
31882         Mention that getdtablesize doesn't work on Android.
31883         * lib/getdtablesize.c: Use getrlimit substitute only if
31884         getdtablesize is declared.  This should suffice for Cygwin
31885         while not breaking Android.
31886         * m4/dup2.m4 (gl_FUNC_DUP2):
31887         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31888         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
31889         standardized but the latter is not, and sysconf works on Android.
31890         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
31891         Also check that getdtablesize is declared.
31892         This removes the need for a special case for Android.
31894 2015-02-16  Kevin Cernekee  <cernekee@google.com>
31896         localename: Implement gl_locale_name_thread_unsafe for Android
31897         * lib/localename.c: Android API level >= 21 supports two hardcoded
31898         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
31899         the internal __locale_t struct.
31901 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
31903         fts: avoid crash when a cycle is added while traversing
31904         This could be triggered by auto-mounting a recursive bind mount.
31905         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
31906         * lib/fts.c (fts_read): Avoid removing the original hash table item
31907         when leaving a directory that caused a cycle, and preserve the FTS_DC
31908         flag.
31910 2015-02-16  Daiki Ueno  <ueno@gnu.org>
31912         uniname/uniname: support character alias
31913         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
31914         Generate one-way mapping from aliases to codepoints in the
31915         generated tables.  Special case variation selectors to reduce
31916         table size.
31917         * lib/uniname/uniname.c (unicode_character_name): Special case
31918         variation selectors.
31919         (unicode_name_character): Special case variation selectors and
31920         their aliases.
31921         * lib/uniname/uninames.h: Regenerate.
31922         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
31923         * modules/uniname/uniname-tests (Files): Add
31924         tests/uniname/NameAliases.txt.
31925         * tests/uniname/test-uninames.c: Mark as static.
31926         (ALIASLEN): Define.
31927         (struct unicode_alias): New struct.
31928         (unicode_aliases): New variable.
31929         (fill_aliases): New function.
31930         (test_alias_lookup): New test function.
31931         (main): Run the 'test_alias_lookup' test if the second argument is
31932         given.
31933         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
31934         second argument.
31936 2015-02-11  Kevin Cernekee  <cernekee@google.com>
31938         Fix FILE struct compatibility with Android API level >= 21
31939         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
31940         __sferror.  Recent versions of Bionic's stdio.h no longer define
31941         __sferror.
31942         * lib/fbufmode.c: Likewise.
31943         * lib/fflush.c: Likewise.
31944         * lib/fpurge.c: Likewise.
31945         * lib/freadable.c: Likewise.
31946         * lib/freadahead.c: Likewise.
31947         * lib/freading.c: Likewise.
31948         * lib/freadptr.c: Likewise.
31949         * lib/freadseek.c: Likewise.
31950         * lib/fseeko.c: Likewise.
31951         * lib/fseterr.c: Likewise.
31952         * lib/fwritable.c: Likewise.
31954         Assume unbroken ungetc() on Android
31955         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
31956         test case passed when running on an Android host, and the code
31957         hasn't really changed since 2009.
31959         getdtablesize: Fix Android build
31960         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
31961         versions have this symbol in the .so library (at least 32-bit
31962         platforms) but are missing the declaration in the header file,
31963         causing the m4 logic to guess incorrectly.
31965         localename: Fix Android build
31966         * modules/localename (Depends-on): Add langinfo.
31968         getugroups: Fix Android build
31969         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
31970         functions.
31972         euidaccess: Fix Android build
31973         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
31974         AT_EACCESS gets declared.
31976         linkat_nofollow: Add fallback case for cross compiling
31977         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
31979         net_if: Handle content-free <net/if.h> system headers
31980         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
31981         struct if_nameindex.  If not, enable the replacement header.
31983         signal_h: Fix Android build
31984         * lib/signal.in.h: Add Android to the list of platforms that declare
31985         pthread_sigmask() in <pthread.h> instead of <signal.h>.
31987         duplocale: Fix Android build of duplocale-tests
31988         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
31989         is included by test-duplocale.c (but not by duplocale.c).
31990         * modules/duplocale-tests (configure.ac): Check for monetary.h.
31991         * tests/test-duplocale.c: Skip test if monetary.h is absent.
31992         * doc/posix-headers/monetary.texi: Add Android to the list of
31993         platforms missing monetary.h.
31995 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31997         tests: avoid recent -Werror=unused-variable regression in test-locale
31998         * tests/test-locale.c (main): Reference the variable to avoid the
31999         "unused variable" warning.
32001 2015-02-11  Pádraig Brady  <P@draigBrady.com>
32003         maint: various whitespace cleanups in tempname
32004         * lib/tempname.c: Normalize spacing and line length.
32005         * lib/tempname.h: Likewise.
32006         * modules/tempname: Likewise.
32008 2015-02-11  Pádraig Brady  <P@draigBrady.com>
32010         tests: provide returns_() to simplify exit status checking
32011         * tests/init.sh (returns_): A new function for use in tests,
32012         to allow for easier checking of return values, where you expect
32013         a command to exit with failure status.  By checking for a particular
32014         exit code, you don't hide any crashes for example.
32016 2015-02-11  Pádraig Brady  <P@draigBrady.com>
32018         mountlist: only use libmount when specified
32019         There are currently many shared libs dependencies introduced by
32020         libmount with associated runtime and virt mem overhead.
32021         Therefore don't enable by default.
32022         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
32024 2015-02-08  Daiki Ueno  <ueno@gnu.org>
32026         uniname/unimame-tests: don't link with -lunistring
32027         * modules/uniname/uniname-tests (Makefile.am): Don't link against
32028         $(LIBUNISTRING).  Document the rationale why we need to
32029         conditionalize the test.
32031 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32033         fstrcmp: don't assume strlen < INT_MAX
32034         * lib/fstrcmp.c: Include stddef.h and stdint.h.
32035         (uintptr_t): Remove, as we're now assuming stdint.
32036         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
32037         Prefer ptrdiff_t to int when the value could exceed INT_MAX
32038         if the input string is long.
32039         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
32040         uintptr_t to size_t when the underlying value is a pointer casted
32041         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
32042         * modules/fstrcmp (Depends-on): Add stdint.
32044         diffseq: prefer ptrdiff_t to ssize_t
32045         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
32046         ptrdiff_t is the natural type for signed indexes.
32047         On a few older platforms, ssize_t is narrower than size_t.
32049         xalloc: fix typo that suppressed warnings
32050         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
32051         This typo, introduced a couple of years ago, mistakenly suppressed
32052         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
32053         -Wmissing-declarations warnings.
32055         full-read: fix license notice typo
32056         * lib/full-read.h: Remove a stray line in the license notice.
32057         Reported by Sam Ellis in: http://bugs.gnu.org/19808
32059         crypto/gc: fix a -Wswitch warning
32060         Reported by Bruce Korb in:
32061         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
32062         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
32064 2015-02-03  Pádraig Brady  <P@draigBrady.com>
32066         gnulib-tool: fix handling of patch(1) diagnostics
32067         * gnulib-tool: Send diagnostics from patch(1) to stderr,
32068         as otherwise gnulib-tool will reparse that output and attempt
32069         to lookup modules.
32071 2015-02-03  Pádraig Brady  <P@draigBrady.com>
32073         bootstrap: exit immediately upon gnulib-tool failure
32074         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
32075         This was noticed when gnulib-tool exited early due to failure
32076         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
32077         but various confusing errors were then given as the build proceeded.
32079 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
32081         symlinkat: include all required header files
32082         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
32083         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
32084         Reported at https://savannah.gnu.org/bugs/index.php?44151
32085         and by Jack Howarth.
32087 2015-01-29  Pádraig Brady  <P@draigBrady.com>
32089         localename: support Solaris 12 and illumos
32090         * lib/localename.c (gl_locale_name_thread_unsafe): call
32091         getlocalename_l() on newer __sun platforms.
32092         Reported by Alexander Pyhalov.
32093         Fix suggested by Rich Burridge.
32095 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
32097         locale: fix tests on illumos (trivial)
32098         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
32099         so move from global scope to main().
32101 2015-01-24  Daiki Ueno  <ueno@gnu.org>
32103         unictype: avoid undefined left-shift behavior
32104         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
32105         gcc's -fsanitize=shift and running its tests triggered:
32106           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
32107             places cannot be represented in type 'int'
32108         Cast LHS to 'unsigned int' after integer promotion.
32109         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
32110         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
32112 2015-01-20  Daiki Ueno  <ueno@gnu.org>
32114         libunistring: bump version of unitypes dependants
32115         Due to the header file search order, all the headers which depend
32116         on unitypes.h need to be generated, when the preinstalled
32117         libunistring is older.
32118         * modules/unicase/base (configure.ac): Bump minimum version to
32119         0.9.4.
32120         * modules/uniconv/base (configure.ac): Likewise.
32121         * modules/unilbrk/base (configure.ac): Likewise.
32122         * modules/uninorm/base (configure.ac): Likewise.
32123         * modules/unistdio/base (configure.ac): Likewise.
32124         * modules/unistr/base (configure.ac): Likewise.
32125         * modules/uniwbrk/base (configure.ac): Likewise.
32126         * modules/uniwidth/base (configure.ac): Likewise.
32128 2015-01-20  Daiki Ueno  <ueno@gnu.org>
32130         unictype/category-none: fix link with libunistring
32131         Since _UC_CATEGORY_NONE is not a public symbol, it will be
32132         prefixed with "libstring_" when compiled as part of libunistring.
32133         To avoid undefined symbol at link time, increase the minimum
32134         version when the dependant modules are updated.
32135         * modules/unictype/category-none (configure.ac): Bump minimum
32136         version to 0.9.5.
32138 2015-01-20  Daiki Ueno  <ueno@gnu.org>
32140         unitypes: fix build with installed libunistring
32141         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
32142         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
32143         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
32145 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32147         time: port to MinGW32 3.21
32148         Problem reported by Eli Zaretskii in:
32149         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
32150         * lib/time.in.h:
32151         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
32152         * modules/time (Depends-on):
32153         Fall back on unistd.h if the other include files don't define
32154         struct timespec.
32156         update-copyright: apply to self
32157         * build-aux/update-copyright: Fix copyright date.  How ironic!
32159 2015-01-15  Daiki Ueno  <ueno@gnu.org>
32161         libunistring: update to Unicode 7.0.0
32162         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
32163         Manichaean names.
32164         * lib/unictype/joininggroup_name.h: Likewise.
32165         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
32166         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
32167         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
32168         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
32169         (fill_arabicshaping, joining_group_as_c_identifier): Support those
32170         enum values.
32171         (is_property_alphabetic): Accept newly added characters to
32172         cuneiform numeric signs.
32173         (is_property_default_ignorable_code_point): Reject U+0605.
32174         (FIELDLEN): Increase from 120 to 160.
32175         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
32176         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
32177         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
32178         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
32179         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
32180         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
32181         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
32182         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
32183         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
32184         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
32185         U+1E8D0..U+1E8D6.
32186         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
32187         * tests/uniwidth/test-uc_width2.sh: Same updates as in
32188         lib/uniwidth/width.c.
32189         * all generated files under lib/uni* and tests/uni*: Regenerate.
32191 2015-01-14  Daiki Ueno  <ueno@gnu.org>
32193         libunistring: update to Unicode 6.3.0
32194         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
32195         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
32196         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
32197         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
32198         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
32199         Update WB5, WB9, WB10, WB13a, and WB13b.
32200         * tests/uniwbrk/test-uc-wordbreaks.c
32201         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
32202         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
32203         (UC_BIDI_PDI): New enumeration values.
32204         (bidi_category_byname): Support those enum values.
32205         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
32206         dedicated property assigned.
32207         (is_property_case_ignorable): Check 0x0027.
32208         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
32209         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
32210         (output_wbp): Support those enum values.
32211         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
32212         (UC_BIDI_PDI): New enumeration values.
32213         * lib/unictype/bidi_byname.gperf: Add those property names.
32214         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
32215         U+180E, U+1A1B, and U+2066..U+2069.
32216         * tests/uniwidth/test-uc_width2.sh: Same updates as in
32217         lib/uniwidth/width.c.
32218         * all generated files under lib/uni* and tests/uni*: Regenerate.
32220 2015-01-14  Daiki Ueno  <ueno@gnu.org>
32222         libunistring: update to Unicode 6.2.0
32223         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
32224         (unilbrk_table): Adjust table size.
32225         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
32226         for LBP_RI.
32227         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
32228         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
32229         Normalize table index skipping ignored properties.
32230         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
32231         WBP_EXTEND and WBP_FORMAT, which are now computed without using
32232         the table.
32233         * lib/uniwbrk/wbrktable.h: Adjust table size.
32234         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
32235         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
32236         Support rule GB8a.
32237         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
32238         * tests/unigbrk/test-uc-is-grapheme-break.c
32239         (graphemebreakproperty_to_string): Support GBP_RI.
32240         * tests/uniwbrk/test-uc-wordbreaks.c
32241         (wordbreakproperty_to_string): Support WBP_RI.
32242         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
32243         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
32244         (output_lbp): Support LBP_RI.  Adjust some characters changed from
32245         LBP_AL to LBP_ID.
32246         (output_lbp): Support LBP_RI.
32247         (WBP_RI): New enumeration value.
32248         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
32249         (output_wbp): Support WBP_RI.
32250         (GBP_RI): New enumeration value.
32251         (output_gbp_test, fill_org_gbp): Support GBP_RI.
32252         * all generated files under lib/uni* and tests/uni*: Regenerate.
32254 2015-01-14  Daiki Ueno  <ueno@gnu.org>
32256         libunistring: update to Unicode 6.1.0
32257         * lib/gen-uni-tables.c (output_joining_group): Switch to
32258         3-level table to accommodate joining groups defined with higher
32259         codepoint value.  Since there are only 88 groups defined in
32260         Unicode 7.0.0, use 7-bit packed format for level3 entries.
32261         (get_lbp): Update for Unicode 6.1.0.
32262         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
32263         3-level table.
32264         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
32265         joining group name.
32266         * lib/unictype/joininggroup_name.h: Likewise.
32267         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
32268         (unilbrk_table): Adjust table size.
32269         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
32270         for LBP_HL.
32271         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
32272         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
32273         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
32274         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
32275         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
32276         U+302E..U+302F.
32277         * tests/uniwidth/test-uc_width2.sh: Same updates as in
32278         lib/uniwidth/width.c.
32279         * all generated files under lib/uni* and tests/uni*: Regenerate.
32280         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
32282 2015-01-15  Daiki Ueno  <ueno@gnu.org>
32284         uniwbrk/u32-wordbreaks-tests: add conformance test
32285         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
32286         tests/uniwbrk/test-uc-wordbreaks.c,
32287         tests/uniwbrk/test-uc-wordbreaks.sh, and
32288         tests/uniwbrk/WordBreakTest.txt.
32289         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
32290         test-uc-wordbreaks to $(check_PROGRAMS), and define
32291         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
32292         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
32293         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
32295 2015-01-15  Daiki Ueno  <ueno@gnu.org>
32297         uniwbrk: ignore Extended/Format characters at BOL not BOS
32298         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
32299         characters if the previous character property is one of
32300         WBP_NEWLINE, WBP_CR, and WBP_LF.
32302 2015-01-11  Jim Meyering  <meyering@fb.com>
32304         test-strstr.c: avoid a trivial leak
32305         * tests/test-strstr.c (main): Free haystack.
32307         update-copyright: recognize groff's \(co marker
32308         * build-aux/update-copyright (circle_c_re): Also accept
32309         uses of \(co, as found in gzip.1.
32311 2015-01-08  Pádraig Brady  <P@draigBrady.com>
32313         maint.mk: fix compatibility with OS X nm
32314         * top/maint.mk (_gl_tight_scope): Use the -g option to
32315         show exported items rather than the -e option which is
32316         ignored on all platforms except OS X where it gives an error.
32317         Reported by Assaf Gordon.
32319 2015-01-07  KO Myung-Hun  <komh@chollian.net>
32321         localcharset: improve charset detection on OS/2
32322         Use system codepage when appropriate.  Map OS/2 codepages to
32323         GNU canonical charset names if possible.
32324         * lib/config.charset: Don't output aliases if "$os" is os2*.
32325         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
32326         result for OS/2.
32327         (locale_charset) [OS2]: Use system codepage if codeset is omitted
32328         from the locale name which is neither "C" nor "POSIX".
32330 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
32332         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
32333         This reverts the last patch but one, as it shouldn't be needed now
32334         that the typo is fixed.
32335         * lib/count-leading-zeros.h (count_leading_zeros_ll):
32336         * lib/count-trailing-zeros.h:
32337         * lib/count-one-bits.h:
32338         Go back to using 64-bit intrinsics.
32340         count-leading-zeros: fix pragma typos
32341         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
32342         Fix typos in declaration of intrinsics when _MSC_VER.
32344 2015-01-06  Pádraig Brady  <P@draigBrady.com>
32346         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
32347         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
32348         intrinsics in this case.
32349         * lib/count-trailing-zeros.h: Likewise.
32350         * lib/count-one-bits.h: Likewise.
32352 2015-01-06  Daiki Ueno  <ueno@gnu.org>
32354         uniname/uniname: update to Unicode 7.0.0
32355         To accommodate new characters added since Unicode 5.1.0, this
32356         changes the internal representation of codepoint ranges.
32357         Previously, we grouped codepoint ranges by manually assigned 4-bit
32358         tag, which only allowed 16 groups.  This removes the limitation by
32359         switching to binary search on a table.  For the detail rationale
32360         and the benchmark results, see:
32361         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
32362         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
32363         to INDEX, as it no longer represents a codepoint.
32364         (range): New struct.
32365         (main): Switch to intervals list from a bit-pattern based
32366         classification.
32367         * lib/uniname/uninames.h: Regenerate.
32368         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
32369         * modules/uniname/base (configure.ac): Bump minimum version to
32370         0.9.5.
32371         * modules/uniname/uniname (configure.ac): Bump minimum version to
32372         0.9.5.
32374 2015-01-05  Eric Blake  <eblake@redhat.com>
32376         doc: update INSTALL from autoconf
32377         * doc/install.texi: Resync from autoconf.
32378         * doc/INSTALL: Reflect recent autoconf update.
32379         * doc/INSTALL.ISO: Likewise.
32380         * doc/INSTALL.UTF-8: Likewise.
32382         stdio: fix use of PRIdMAX on modern mingw
32383         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
32384         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
32385         to work with modern mingw.
32387 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
32389         pthread: detect git mingw builds with only partial pollution
32390         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
32391         pollution, as seen temporarily in Fedora 21.
32393 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32395         lib-symbol-versions: cache script check
32396         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
32397         Cache the check for linker version scripts.
32398         From a suggestion by Christophe Curis in:
32399         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
32401 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
32403         maint: fix grammar nits in propername (trivial change)
32404         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
32405         and use an adequate verb and tense.
32407 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
32409         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
32410         * module/gendocs: Add 'doc/gendocs_template_min'.
32412         * build-aux/gendocs.sh: Change email addresses and upstream URLs
32413         from to Gnulib's.
32414         (scripturl, templateurl): Adjust accordingly.
32416 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32418         gendocs: copyright date and version fix
32419         Reported by Karl Berry in:
32420         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
32421         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
32422         Fix copyright date.
32423         * build-aux/gendocs.sh (scriptversion): Update.
32425 2015-01-01  Karl Berry  <karl@gnu.org>
32427         * doc/install.texi,
32428         * build-aux/mdate-sh,
32429         * build-aux/depcomp,
32430         * build-aux/config.guess,
32431         * build-aux/config.sub,
32432         * build-aux/ar-lib,
32433         * build-aux/compile: revert copyright updates (some from last
32434         year) in slaved files.
32436 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32438         version-etc: new year
32439         * doc/gnulib.texi:
32440         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
32441         * all files: Run 'make update-copyright'.
32443 2014-12-30  Pádraig Brady  <P@draigBrady.com>
32445         xstrtol: ensure errno is reset
32446         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
32447         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
32449         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
32451 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
32453         utimens: fix dependency typo
32454         * modules/utimens (Depends-on): Remove 'assure'.
32455         This bug was introduced in the recent 'assure' patch.
32457 2014-12-22  Eric Blake  <eblake@redhat.com>
32459         docs: mention why libgen.h is bad
32460         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
32462 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
32464         assure: new module
32465         This works better than 'assert' when compiling with -DNDEBUG,
32466         as it avoids some compiler diagnostics in that case.
32467         Reported by Norihiro Tanaka in:
32468         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
32469         * MODULES.html.sh (func_all_modules): Add 'assure'.
32470         * lib/assure.h, modules/assure: New files.
32471         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
32472         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
32473         Prefer 'assure' to 'assert'.
32474         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
32475         * modules/chdir-long, modules/cycle-check, modules/fchdir:
32476         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
32477         Depend on 'assure'.
32479 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
32481         stdalign: port better to HP compilers
32482         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
32483         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
32485         stdalign: work around Apple GCC 4.0 bug
32486         Reported by David Fang in:
32487         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
32488         * lib/stdalign.in.h (_Alignas):
32489         * m4/stdalign.m4 (gl_STDALIGN_H):
32490         Do not use aligned attribute with GCC 4.0 on Apple.
32492 2014-12-16  Pádraig Brady  <P@draigBrady.com>
32494         getcwd: fix test failure on OS X 10.9
32495         * m4/getcwd-path-max.m4: Avoid the replacement if it
32496         won't be effective due to the PATH_MAX limitation of lstat().
32497         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
32498         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
32499         for this case for use in tests, and also exclude this
32500         case when setting REPLACE_GETCWD.
32501         * tests/test-getcwd.c (test_long_name): Restrict the
32502         tested path length so that lstat() will not be passed
32503         a path greater than PATH_MAX.
32504         Also key a test condition on HAVE_OPENAT_SUPPORT rather
32505         than AT_FDCWD, since the latter is set unconditionally
32506         since Sep 2009 in commit 52c658e9.
32508 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
32510         parse-datetime: avoid a compiler warning with byacc (trivial)
32511         * lib/parse-datetime.y (yylex): Use the same prototype in the
32512         function definition as the declaration, to avoid a -Wstrict-prototypes
32513         warning seen when using byacc.
32515 2014-12-12  Daiki Ueno  <ueno@gnu.org>
32517         unicase/locale-language-tests: fix LOCALE_FR test
32518         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
32519         a French locale with traditional encoding.
32520         Reported by umerqayam in:
32521         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
32523 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
32525         stddef: support C11's max_align_t
32526         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
32527         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
32528         Do not undef, as that might cause max_align_t to be defined twice.
32529         Instead, change use to check for _GL_STDDEF_WINT_T too.
32530         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
32531         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
32532         Check for max_align_t.
32533         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
32534         * modules/stddef-tests (Depends-on): Add stdalign.
32535         * tests/test-stddef.c: Test max_align_t.
32537 2014-12-11  Daiki Ueno  <ueno@gnu.org>
32539         unistd: fix iOS check conditional
32540         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
32541         as 0 or 1 in <TargetConditionals.h>, and the previous check always
32542         yielded true on non-iOS environment.
32543         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
32544         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
32545         they are defined.
32547 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
32549         posixtm: avoid compiler warning in a better way
32550         * lib/posixtm.c (IF_LINT): Remove.
32551         (year, posix_time_parse):
32552         Return true (not 0) if successful.  All callers changed.
32553         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
32555 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
32557         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
32558         started with '/' on EMX.
32560 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
32562         freopen: workaround freopen() on OS/2 kLIBC
32563         * lib/freopen.c (rpl_freopen): Workaround.
32564         * m4/freopen.m4: Add os2* case.
32566         get_shared_library_fullname: port to EMX
32567         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
32568         on EMX, respectively.
32569         (_DLL_InitTerm): New on EMX.
32570         (get_shared_library_fullname): Implement on EMX.
32572         find_executable: port to EMX
32573         * lib/progreloc.c (find_executable): Implement on EMX.
32575         sched: check struct sched_param in spawn.h as well
32576         * lib/sched.in.h: Include spawn.h on kLIBC.
32577         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
32579 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
32581         bootstrap: Allow perl modules in $buildreq
32582         * build-aux/bootstrap: Add case for perl modules.
32584 2014-12-08  Pádraig Brady  <P@draigBrady.com>
32586         apply _GL_ATTRIBUTE_PURE to some inline functions
32587         clang 3.4.2 flagged these inline functions as pure
32588         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
32589         * lib/sig-handler.h (get_handler): Likewise.
32590         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
32591         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
32593 2014-12-06  Pádraig Brady  <P@draigBrady.com>
32595         vasnprintf: fix potential use after free
32596         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
32597         flagged by clang-analyzer 3.4.2.
32599 2014-12-05  Pádraig Brady  <P@draigBrady.com>
32601         filevercmp, posixtm: avoid compiler warnings with -O3
32602         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
32603         * lib/posixtm.c: (IF_LINT): Define.
32604         (posix_time_parse): Use it to void a "may be used uninitialized"
32605         warning, seen only with -O3.
32607 2014-12-05  Bruno Haible  <bruno@clisp.org>
32609         Fix LDBL80_WORDS macro on big endian platforms.
32610         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
32611         LDBL80_WORDS macro.
32612         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32613         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32614         * tests/test-isfinite.c (test_isfinitel): Likewise.
32615         * tests/test-isinf.c (test_isinfl): Likewise.
32616         * tests/test-isnan.c (test_long_double): Likewise.
32617         * tests/test-isnanl.h (main): Likewise.
32618         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
32619         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
32620         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
32621         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
32622         Reported by Pádraig Brady.
32624 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
32626         git-version-gen: do not print new line characters
32627         * build-aux/git-version-gen: Use printf instead of echo and tr.
32629         gnulib-tool: recognize x:* as an absolute path
32630         * gnulib-tool (func_gnulib_dir): Add ?:* case.
32631         (func_relconcat): Likewise.
32633 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
32635         argp: avoid extraneous translation and mem leak with empty pre doc
32636         * lib/argp-help.c (argp_doc): Never translate the empty string,
32637         when "\v" is the first or last character of the string, as that
32638         has a reserved meaning to return the header info from a po file.
32639         This also fixes a small memory leak in the !post case.
32640         The issue can be seen with this command for example:
32641         LC_MESSAGES=en_US grub2-mknetdir --help
32643 2014-11-27  Daiki Ueno  <ueno@gnu.org>
32645         uniname/uniname-tests: skip if system's libunistring is used
32646         * modules/uniname/uniname-tests (Makefile.am): Skip test if
32647         uniname/uniname module is not compiled.
32649 2014-11-27  Pádraig Brady  <P@draigBrady.com>
32651         printf: fix configure check on big endian systems
32652         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
32654 2014-11-22  Daiki Ueno  <ueno@gnu.org>
32656         pipe-filter-gi, pipe-filter-ii: port to AIX
32657         On AIX 7.1, 'select' is defined as static and cannot be referred
32658         to from inline function.
32659         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
32660         the definition...
32661         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
32662         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
32664 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32666         gitlog-to-changelog: add --until
32667         * build-aux/gitlog-to-changelog: Support new --until option.
32668         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
32670 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
32672         extern-inline: update commentary about GCC bugs
32673         * m4/extern-inline.m4: Add another GCC bug number to comments.
32675 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32677         gen-uni-tables: untabify
32678         * lib/gen-uni-tables.c: Untabify.
32680 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32682         gen-uni-tables: check out-of-range values added to 3-level tables
32683         * lib/gen-uni-tables.c (output_category, output_bidi_category)
32684         (output_joining_type, output_ident_category): Check out-of-range
32685         values added to 3-level tables.
32687 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32689         gen-uni-tables: utilize 'assert'
32690         * lib/gen-uni-tables.c: Include <assert.h>.
32691         (output_category, output_combclass, output_decimal_digit_test)
32692         (output_decimal_digit, output_digit_test, output_digit)
32693         (output_numeric, get_mirror_value, fill_properties)
32694         (fill_property30, is_property_alphabetic)
32695         (is_property_default_ignorable_code_point)
32696         (is_property_uppercase, is_property_lowercase)
32697         (is_property_cased, is_property_case_ignorable)
32698         (is_property_changes_when_lowercased, is_property_iso_control)
32699         (is_property_math, fill_arabicshaping, output_joining_group)
32700         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
32701         (output_wbp, fill_org_gbp, get_decomposition)
32702         (output_decomposition, fill_composition_exclusions)
32703         (debug_output_composition_tables, output_composition_tables)
32704         (redistribute_casefolding_rules, output_casing_rules): Use
32705         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
32706         reporting.
32708 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32710         gen-uni-tables: cosmetic improvements
32711         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
32712         variables specification.
32713         (is_outdigit): Remove unused function.
32715 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
32717         fcntl-h-tests: port to PA-RISC GNU/Linux
32718         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
32720 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32722         fts: port to C89
32723         Problem reported for MSVC 16 by Gisle Vanem in:
32724         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
32725         * lib/fts.c (fts_build): Avoid declaration before statement.
32727 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
32729         unistd: port to iOS
32730         Problem reported by André Klitzing in:
32731         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
32732         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
32734 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32736         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
32737         Problem reported by Alan Modra in:
32738         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
32739         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
32740         Always cast the function arg, reverting this part of the previous
32741         change.
32743 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
32745         obstack: avoid potentially-nonportable function casts
32746         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
32747         Remove, replacing with ...
32748         (call_chunkfun, call_freefun): New static functions.
32749         All uses changed.  Avoid potentially-nonportable casts.
32750         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
32751         (_obstack_begin_worker): Omit last two args, since they
32752         rely on potentially-nonportable casts.  All callers changed.
32753         * lib/obstack.h (_OBSTACK_CAST): New macro.
32754         Use it everywhere the old API used a potentially-nonportable cast.
32755         The new API doesn't cast.
32756         (struct obstack): Use unions rather than requiring
32757         potentially-nonportable casts.
32758         (obstack_chunkfun, obstack_freefun): Return void.
32760 2014-11-03  Alan Modra  <amodra@gmail.com>
32762         obstack: fix macro return values
32763         * lib/obstack.h (obstack_next_free): Return void *.
32764         (obstack_1grow_fast, obstack_blank_fast): Return void.
32765         For __GNUC__ macros:
32766         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
32767         For !__GNUC__ macros:
32768         (obstack_make_room, obstack_grow, obstack_grow0)
32769         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
32771 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32773         obstack: do not assume system-supplied obstack is size_t safe
32774         * m4/obstack.m4: New file.
32775         * modules/obstack (Files): Add it.
32777         obstack: port to platforms that #define __alignof__
32778         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
32779         not if !_LIBC.  We don't know of any platforms that #define
32780         __alignof__, but it might be useful in tests.  Conversely,
32781         glibc assumes GCC.
32783 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32785         linkat: don't unconditionally replace on GNU/Linux
32786         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
32787         was redundant for a few reasons.  It was present to support compiling
32788         on new systems but running on the old narrow window of Linux 2.6.1[67].
32789         It setup and cleaned up test files which weren't actually used.
32790         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
32791         implicit in the following check.
32793 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32795         linkat: wrap to handle symlinks on OS X 10.10
32796         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
32797         but not usable because it doesn't support creating hardlinks
32798         to symlinks.  Therefore add a generic test for this capability
32799         and fallback to our emulation if linkat() fails with ENOTSUP.
32801 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32803         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
32804         * doc/posix-functions/open.texi (open):
32805         * doc/posix-functions/openat.texi (openat):
32806         Document that these functions do not set errno to ELOOP when
32807         a symlink is opened with O_NOFOLLOW.
32809 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32811         obstack: add NEWS entry for recent incompatible changes
32812         * NEWS: Describe recent changes.
32814 2014-10-30  Pádraig Brady  <P@draigBrady.com>
32816         mountlist: don't use libmount to decide on dummy/remote
32817         * lib/mountlist.c (read_file_system_list): Don't use the libmount
32818         routines to determine whether a file system is dummy or remote,
32819         as they're not currently compatible.  For example the remoteness
32820         is determined on file system type (for which the list seems incomplete),
32821         rather than simply checking for a ':' in the device name.
32822         Also libmount currently determines that 'tmpfs' is a dummy file system
32823         even though it has associated storage.
32825 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32827         obstack: prefer __alignof__ to alignof
32828         This is for portability to pre-4.7 GCC when compiling glibc.
32829         See Joseph S. Myers in:
32830         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
32831         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
32832         New macro, defined by including and using <alignof.h>.
32833         (MAX): New macro.
32834         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
32835         Do not use enums as they are not portable to some broken compilers.
32836         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
32838         obstack: prefer alignof to calculating alignments by hand
32839         * lib/obstack.c: Include <stdalign.h>.
32840         (struct fooalign): Remove.
32841         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
32842         * modules/obstack (Depends-on): Add stdalign.
32844 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
32846         obstack: use size_t alignments and check for overflow
32847         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
32848         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
32849         * lib/obstack.h (struct obstack.alignment_mask):
32850         Use _OBSTACK_SIZE_T, not int, for alignments.
32851         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
32852         overflows, e.g., when adding the alignment.
32854 2014-10-29  Alan Modra  <amodra@gmail.com>
32856         obstack: 64-bit obstack support, part 3
32857         This finally enables full 64-bit obstack support.  The glibc
32858         shared library specific code is removed from obstack.c too, and
32859         the error handling code conditionally compiled under control of
32860         another macro, _OBSTACK_NO_ERROR_HANDLER.
32861         * lib/obstack.h: Include string.h earlier.
32862         (_OBSTACK_INTERFACE_VERSION): Define.
32863         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
32864         * lib/obstack.c: Don't include shlib-compat.h.
32865         (OBSTACK_INTERFACE_VERSION): Delete.
32866         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
32867         glibc code is compatible with version 2.  Don't include stdio.h for
32868         __GNU_LIBRARY.
32869         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
32870         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
32871         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
32872         glibc shared library specific source.
32874         obstack: 64-bit obstack support, part 2
32875         This gets us 4G obstack support, without changing ABI
32876         compatibility, apart from possibly introducing some
32877         signed/unsigned comparison warnings in code that uses obstack.h.
32878         a) Replace "int" size parameters, return values, and macro local vars
32879            with _OBSTACK_SIZE_T, an "unsigned int" for now.
32880         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
32881         c) Make all obstack macros checking available room use obstack_room.
32882            "next_free + desired > chunk_limit" may wrap the lhs for chunks
32883            allocated near the top of memory.
32884         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
32885         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
32886         in place of "int" size parameters, return values and local vars.
32887         (_CHUNK_SIZE_T): Define.
32888         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
32889         union use an _OBSTACK_SIZE_T integer type.
32890         For __GNUC__ versions of the following macros...
32891         (obstack_room): Rename local var.
32892         (obstack_make_room): Use obstack_room.
32893         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32894         obstack_int_grow, obstack_blank): Likewise.
32895         (obstack_finish): Use unsigned comparison when comparing aligned
32896         next_free against chunk_limit.
32897         (obstack_free): Cast OBJ to remove possible const qualifier.
32898         For !__GNUC__ versions of the following macros...
32899         (obstack_make_room): Use obstack_room.
32900         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32901         obstack_int_grow, obstack_blank): Likewise.
32902         (obstack_finish): Use unsigned comparision when comparing aligned
32903         next_free against chunk_limit.
32904         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
32905         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
32906         _OBSTACK_SIZE_T.
32907         (_obstack_begin, _obstack_begin_1): Likewise.
32908         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
32909         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
32911         obstack: 64-bit obstack support, part 1
32912         a) Correct calls to alloc function, to use a size_t arg.  "long" is
32913            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
32914            and "size_t" 64 bits.
32915         b) Consolidate _obstack_begin and _obstack_begin1 code.
32916         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
32917         use "size_t" rather than "long".
32918         (_obstack_begin, _obstack_begin1): Likewise.
32919         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
32920         obstack_chunkfun): Update alloc function casts.
32921         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
32922         (chunkfun_type, freefun_type): New typdefs.
32923         (_obstack_begin_worker): Split out from ..
32924         (_obstack_begin, _obstack_begin_1): ..here.
32926         obstack: tidy part 2
32927         a) Don't be concerned about "not polluting the namespace with stddef.h
32928            symbols" in obstack.h, since gnulib string.h includes stddef.h
32929            anyway, and it seems unlikely that anyone would care.
32930         b) Don't roll our own slow memcpy in _obstack_newchunk.
32931         c) Rename obstack_free to _obstack_free.  This makes the naming
32932            consistent with other obstack functions and obviates the need for
32933            __obstack_free.  Ancient obstack.c defined both obstack_free and
32934            _obstack_free.  We continue to do that for _LIBC via an alias.
32935         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
32936            is clever, but nowadays gcc warns on undefined macros.  You'll get
32937            an undefined macro warning if simulating an old gcc with -U__GNUC__
32938            -U__GNUC_MINOR__ -D__GNUC__=1.
32939         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
32940         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
32941         (__obstack_free): Delete, update refs.
32942         (_obstack_free): Rename from obstack_free.
32943         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
32944         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
32945         * lib/obstack.c: Don't include stddef.h.
32946         (COPYING_UNIT): Delete.
32947         (_obstack_begin): Formatting fix.
32948         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
32949         (_obstack_free): Rename from __obstack_free, update alias.  Move
32950         undef of obstack_free to where it is needed.
32952         obstack: tidy part 1
32953         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
32954            to me, and result in overlong lines after later patches.
32955         b) Move error handling code, to avoid a forward declaration and to
32956            simplify later patches in this series.
32957         * lib/obstack.h (struct obstack <temp>): Rename fields of union
32958         and update all uses.
32959         * lib/obstack.c: Include stdlib.h earlier.
32960         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
32961         in file.
32962         (print_and_abort): Remove now redundant forward declaration.
32964 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32966         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
32967         Without this change, in bleeding-edge fileutils Autoconf complains
32968         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
32969         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
32970         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
32971         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
32973 2014-10-24  Daiki Ueno  <ueno@gnu.org>
32975         iconv: avoid false detection of non-working iconv
32976         The INBUF arguments of iconv can be either 'const char **'
32977         or 'char **'.  If CC is g++, the difference causes a compile error
32978         and thus leads to a false detection of non-working iconv.
32979         Reported by Eli Zaretskii and Werner LEMBERG in:
32980         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
32981         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
32982         iconv.  Bump serial number.
32984 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32986         bootstrap: print more diagnostics for missing programs
32987         * build-aux/bootstrap: only suppress stderr when checking for
32988         alternative program names.  This supports programs issuing non
32989         standard error messages.
32991 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32993         bootstrap: only update the gnulib submodule
32994         * build-aux/bootstrap: Restrict the "submodule update" command
32995         to the gnulib path.
32997 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32999         symlinkat: port to AIX 7.1
33000         * doc/posix-functions/symlinkat.texi (symlinkat):
33001         Mention AIX porting problem.
33002         * lib/symlinkat.c: Always include errno.h.
33003         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
33004         * lib/unistd.in.h (symlinkat): Add replacement machinery.
33005         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
33006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
33007         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
33008         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
33009         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
33011         readlinkat: port to AIX 7.1
33012         * doc/posix-functions/readlink.texi (readlink):
33013         * doc/posix-functions/readlinkat.texi (readlinkat):
33014         Mention AIX porting problem.
33015         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
33016         New function.
33017         * lib/unistd.in.h (readlinkat): Add replacement machinery.
33018         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
33019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
33020         * modules/readlinkat (configure.ac): Also compile replacement
33021         if REPLACE_READLINKAT.
33022         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
33024 2014-10-12  Karl Berry  <karl@gnu.org>
33026         * doc/posix-functions/dirname.texi: remove spurious {.
33028 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
33030         basename, dirname: Improve documentation.
33031         * doc/posix-functions/basename.texi: Mention dirname module and
33032         base_name() function.
33033         * doc/posix-functions/dirname.texi: Mention dir_name() and
33034         mdir_name() functions.
33035         Suggested by Werner LEMBERG <wl@gnu.org>.
33037 2014-09-24  Jim Meyering  <meyering@fb.com>
33039         exclude: declare exclude_patopts static
33040         * lib/exclude.c (exclude_patopts): Declare static,
33041         to avoid triggering a -Wmissing-prototypes warning.
33042         The alternative (declaring it in the .h file) would
33043         require publicizing the private "struct patopts".
33045 2014-09-21  Werner Lemberg  <wl@gnu.org>
33047         dirname: support compilation with C++
33048         * lib/dirname.h: Add necessary C linkage declarations.
33050 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33052         qsort_r: include <config.h>
33053         Problem reported by Tom G. Christensen in:
33054         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
33055         * lib/qsort.c [!_LIBC]: Include <config.h> first.
33057 2014-09-16  Dylan Cali  <calid1984@gmail.com>
33059         avltree-list: avoid compiler warnings (trivial)
33060         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
33061         -Werror=suggest-attribute=pure.
33062         * lib/gl_array_list.c: Likewise.
33063         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
33064         declaration to avoid -Werror=missing-prototypes.  This is not added
33065         to a header as only exported for tests.  Add (void) to the
33066         check_invariants() call to indicate we're discarding the result
33067         in this context which avoids -Werror=unused-value.  Note we don't
33068         use ignore_value here to avoid a dependency as we know we'll not
33069         be adding __attribute__((warn_unused_result)) to check_invariants().
33070         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
33072 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
33074         qsort_r: new module, for GNU-style qsort_r
33075         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
33077 2014-09-15  Werner LEMBERG  <wl@gnu.org>
33079         strerror_r-posix: support compilation with C++
33080         * lib/strerror_r.c: Add necessary C linkage declarations.
33082 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
33084         fcntl-h: fix compilation with Intel C++ compiler (trivial)
33085         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
33087 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
33089         mountlist: use /proc/self/mountinfo when available
33090         Use libmount to propagate device IDs provided by Linux in
33091         /proc/self/mountinfo.  This will give more accurate output when
33092         using df in chroot'ed environments as the device IDs are not
33093         determined by stat() which may be inaccurate within the chroot.
33094         * lib/mountlist.c (read_file_system_list): Use the libmount routines
33095         from util-linux to parse "/proc/self/mountinfo" or fall back to
33096         standard getmntent() processing.
33097         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
33098         getmntent() is used, as is the case on GNU/Linux.
33100 2014-09-07  Eric Wong  <normalperson@yhbt.net>
33102         users.txt: add cmogstored
33103         cmogstored has used gnulib since the beginning in 2012 to support
33104         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
33106 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
33108         Trivial change.
33109         * gnulib-tool: Use same options as build-aux/bootstrap to download
33110         PO files.
33112 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
33114         Trivial change.
33115         * gnulib-tool: Fallback to wget when rsync of PO files fails.
33117 2014-09-04  Eric Blake  <eblake@redhat.com>
33119         maintainer-makefile: add syntax check for useless ';;'
33120         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
33122 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
33124         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
33125         Problem reported by Assaf Gordon in:
33126         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
33127         Apparently Ubuntu is doing some fancy link-time optimization
33128         that doesn't work with -lpthread but does work with -pthread.
33129         Work around the bug by preferring -pthread to -lpthread.
33130         * m4/pthread.m4 (gl_PTHREAD_CHECK):
33131         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
33132         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
33133         Treat -pthread like -lpthread.
33135 2014-09-04  Eric Blake  <eblake@redhat.com>
33137         error: drop spurious semicolon
33138         * lib/error.c (__error_at_line): Fix ';;'.
33140 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
33142         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
33143         * m4/gnulib-common.m4 (AC_C_RESTRICT):
33144         Override AC_C_RESTRICT unconditionally.
33145         Update from autoconf, incorporating:
33146         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
33147         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
33149 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33151         manywarnings: add GCC 4.9 warnings
33152         Also, make it easier to maintain this in the future.
33153         * build-aux/gcc-warning.spec: Add -Wabi-tag,
33154         -Wconditionally-supported, -Wdelete-incomplete,
33155         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
33156         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
33157         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
33158         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
33159         only for older GCC versions that need them.  Handle
33160         -Wnormalized=nfc specially, so that the 'comm' command used
33161         for maintenance doesn't get confused.
33163 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
33165         vasnprintf: fix bugs in width computation
33166         * lib/vasnprintf.c (VASNPRINTF):
33167         Rework previous change, which introduced a bug,
33168         to avoid the warning in a different way.
33169         Avoid undefined behavior if the width arg is less than -INT_MAX.
33170         Avoid unnecessary use of HAS_WIDTH local.
33172 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
33174         vasnprintf: Avoid signed/unsigned comparison warning.
33175         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
33176         compare end addr of generated string w/ maximum end addr.
33178 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33180         parse-datetime: Avoid pointer difference.
33181         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
33182         instead of calculating difference of pointers.  This removes an
33183         annoying warning, devoid of any use.
33185 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33187         qsort_r: new module, for GNU-style qsort_r
33188         This works even on FreeBSD, which has an incompatible qsort_r API.
33189         * MODULES.html.sh: Add it.
33190         * doc/glibc-functions/qsort_r.texi: It's now supported.
33191         * lib/qsort.c: New file, taken from glibc with minor changes
33192         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
33193         removed.
33194         * lib/qsort_r.c: New file, compiled only on FreeBSD.
33195         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
33196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
33197         * modules/qsort_r, modules/qsort_r-tests: New files.
33198         * modules/stdlib (Makefile): Set up its defaults.
33199         * tests/test-qsort_r.c: New file.
33201 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
33203         vla: new module
33204         GNU RCS can use this, mostly for documentation I expect.  See:
33205         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
33206         * MODULES.html.sh: Add vla.
33207         * lib/vla.h, modules/vla: New files.
33209 2014-08-07  Daiki Ueno  <ueno@gnu.org>
33211         localename: make gl_locale_name_thread really thread-safe on Windows
33212         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
33213         "glthread/lock.h".
33214         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
33215         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
33217 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
33219         getpass: don't assume struct termios
33220         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
33221         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
33222         * lib/getpass.c (getpass): Port to systems lacking struct termios.
33224         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
33225         Problem reported by Jonas 'Sortie' Termansen in:
33226         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
33227         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
33228         Implement via sysconf for platforms that lack getdtablesize.
33230         vararrays: modernize AC_C_VARARRAYS for C11
33231         This backports a change I recently made to Autoconf.
33232         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
33233         VLAs are not supported, as this is what C11 does.  The old macro
33234         HAVE_C_VARARRAYS is still defined if they are supported, but is
33235         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
33237 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
33239         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
33240         * build-aux/install-reloc (func_create_wrapper): Also wrap
33241         strerror-override, stat, stat.
33243 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
33245         sys_select: fix FD_ZERO problem on Solaris 10
33246         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
33247         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
33248         to expand to an expression that invoked memset without necessarily
33249         including <string.h>.  The problem was that the first include
33250         defined _SYS_TIME_H, causing the second include to short-circuit.
33251         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
33252         Also, fix what appears to be a cut-and-paste typo, by replacing
33253         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
33254         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
33256         accept: document Solaris 10 type glitch
33257         * doc/posix-functions/accept.texi (accept): Mention that
33258         Solaris 10 'accept' takes void * last arg, not socklen_t *.
33260 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
33262         extern-inline: port to FreeBSD, DragonFly
33263         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
33264         is present if either __DragonFly__ or __FreeBSD__ is defined.
33265         FreeBSD problem reported by Andrey Borzenkov in:
33266         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
33267         Also, worry about __APPLE__ only if __MACH__ is also defined,
33268         as this is more consistent with the rest of gnulib.
33269         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
33270         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
33272 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
33274         regex: Make #if/#ifdef usage consistent for DEBUG
33275         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
33276         of the inconsistent usage of #if and #ifdef as that works with
33277         both Glibc and Gnulib's style.
33279 2014-07-31  Eric Blake  <eblake@redhat.com>
33281         openat-die: use _Noreturn markup
33282         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
33283         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
33284         _Noreturn.
33286 2014-07-30  Eric Blake  <eblake@redhat.com>
33288         test-open: port to cygwin, which lacks Fortify
33289         * tests/test-open.h (ALWAYS_INLINE): New macro.
33290         (__always_inline): Don't abuse internal symbol on non-glibc.
33292 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
33294         localename: Enforce declarations before statements.
33295         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
33296         first statement.
33298 2014-07-18  Jim Meyering  <meyering@fb.com>
33300         test-userspec: don't look up numeric user names
33301         * tests/test-userspec.c: I found a system for which getpwnam("0")
33302         returned a pointer to a non-root user's entry, and that made the
33303         test fail.
33304         (T): Prefix each numeric input with "+", to inhibit lookup.
33306 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
33308         localcharset, localename: MS-Windows support for non-default locales
33309         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
33310         falling back on the default system codepage, try extracting
33311         the codepage from what 'setlocale' returns.  This allows to
33312         take into account changes of the codeset due to non-default
33313         locale set by a previous call to 'setlocale'.
33314         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
33315         Define if not already defined.
33316         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
33317         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
33318         current locale by calling 'setlocale', then converting the
33319         locale name into LCID by calling 'get_lcid'.  This allows to
33320         take into account changes in the current locale from the
33321         default one, in contrast to GetThreadLocale.
33323 2014-07-14  Daiki Ueno  <ueno@gnu.org>
33325         announce-gen: avoid failure when Digest::SHA is installed
33326         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
33327         Digest::SHA1->new in print_checksums fails.
33328         * build-aux/announce-gen (digest_classes): New associative array
33329         for available message digest implementations.
33330         (print_locations): Use it.
33332 2014-07-13  Pádraig Brady  <P@draigBrady.com>
33334         gettext: revert "update macros to version 0.19"
33335         This reverts commit 9b9370ca, as it currently requires that
33336         developers of any project that explicitly uses the gettext module
33337         or implicitly uses it through the utimens-tests or
33338         futimens-tests modules, use gettext >= 0.19.
33339         However there are some stability and availablity issues with
33340         that version at present.  We can reinstate this soon, when stability
33341         is addressed and packages are more readily available.
33343 2014-07-12  Jim Meyering  <meyering@fb.com>
33345         regex: don't deref NULL upon heap allocation failure
33346         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
33347         failure in one more place.
33348         To trigger the segfault, configure grep -with-included-regex,
33349         build it, and run these commands:
33350         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
33351         I discovered this while replying to a private report from
33352         Jens Schleusener about excessive memory consumption by grep
33353         when using a regular expression like the one above.
33355 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
33357         regex: fix memory leak in compiler
33358         Fix by Andreas Schwab in:
33359         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
33360         * lib/regcomp.c (parse_reg_exp): Deallocate partially
33361         constructed tree before returning error.
33363 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
33365         announce-gen: avoid perl warnings
33366         * build-aux/announce-gen: add two minor checks to avoid
33367         "use of uninitialized value" warnings when command-line parameters are
33368         missing.
33370 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
33372         localename: avoid -Wsuggest-attribute={const,pure} warnings
33373         * lib/localename.c (string_has): Tag internal function as pure.
33374         * lib/localename.h (gl_locale_name_default): Tag extern declaration
33375         as const when appropriate.
33377 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
33379         nl_langinfo: Fix last change.
33380         * lib/nl_langinfo.c (includes): Drop redundant include.
33382 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
33384         error: Fix -Wundef warnings in glibc
33385         * lib/error.c [_LIBC]: Define default macros for
33386         glibc.
33387         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
33388         Check _LIBC before STRERROR_R_CHAR_P.
33390         error: Sync from glibc master
33391         * lib/error.c [_LIBC]: Remove INTUSE usage.
33392         (error_tail): Remove unused macro ALLOCA_LIMIT.
33393         Fix potential buffer overflow.  Fix potential NULL dereference
33394         in strcmp.
33396 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
33398         nl_langinfo: fix build under mingw
33399         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
33401 2014-07-09  Andrew D Warshall  <warshall@99main.com>
33403         mountlist: do not classify a bind-mounted dir entry as "dummy"
33404         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
33405         1-argument getmntent() (instead of assuming absence).
33407 2014-07-08  Eric Blake  <eblake@redhat.com>
33409         maint.mk: less syntax-check noise when SIGPIPE is ignored
33410         * top/maint.mk (_sc_header_without_use)
33411         (sc_require_config_h_first): Parse full list.
33413 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
33414             Paul Eggert  <eggert@cs.ucla.edu>
33416         nl_langinfo: CODESET on MS-Windows and more items from localeconv
33417         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
33418         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
33419         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
33420         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
33421         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
33422         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
33423         Include <stdio.h> if Microsoft Windows.
33424         Include <time.h> if !REPLACE_NL_LANGINFO.
33425         (ctype_codeset): New function, taken from rpl_nl_langinfo,
33426         and with improvements for Microsoft Windows.
33427         (rpl_nl_langinfo): Use it.
33428         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
33429         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
33430         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
33431         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
33432         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
33433         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
33434         corresponding values returned by 'localeconv'.  Compute the values
33435         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
33436         'strftime' with a suitable struct tm value.
33438 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33440         Bruno Haible has stepped down as maintainer.
33441         See Karl Berry in:
33442         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
33443         Daiki Ueno has volunteered to maintain libunistring; see:
33444         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
33445         * modules/gen-uni-tables, modules/libunistring:
33446         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
33447         * modules/unicase/base, modules/unicase/cased:
33448         * modules/unicase/empty-prefix-context:
33449         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
33450         * modules/unicase/locale-language, modules/unicase/special-casing:
33451         * modules/unicase/tocasefold, modules/unicase/tolower:
33452         * modules/unicase/totitle, modules/unicase/toupper:
33453         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
33454         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
33455         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
33456         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
33457         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
33458         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
33459         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
33460         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
33461         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
33462         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
33463         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
33464         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
33465         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
33466         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
33467         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
33468         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
33469         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
33470         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
33471         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
33472         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
33473         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
33474         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
33475         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
33476         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
33477         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
33478         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
33479         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
33480         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
33481         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
33482         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
33483         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
33484         * modules/unicase/ulc-casexfrm, modules/unicodeio:
33485         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
33486         * modules/uniconv/u16-conv-to-enc:
33487         * modules/uniconv/u16-strconv-from-enc:
33488         * modules/uniconv/u16-strconv-from-locale:
33489         * modules/uniconv/u16-strconv-to-enc:
33490         * modules/uniconv/u16-strconv-to-locale:
33491         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
33492         * modules/uniconv/u32-strconv-from-enc:
33493         * modules/uniconv/u32-strconv-from-locale:
33494         * modules/uniconv/u32-strconv-to-enc:
33495         * modules/uniconv/u32-strconv-to-locale:
33496         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
33497         * modules/uniconv/u8-strconv-from-enc:
33498         * modules/uniconv/u8-strconv-from-locale:
33499         * modules/uniconv/u8-strconv-to-enc:
33500         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
33501         * modules/unictype/bidicategory-all:
33502         * modules/unictype/bidicategory-byname:
33503         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
33504         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
33505         * modules/unictype/bidiclass-byname:
33506         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
33507         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
33508         * modules/unictype/block-all, modules/unictype/block-list:
33509         * modules/unictype/block-of, modules/unictype/block-test:
33510         * modules/unictype/category-C, modules/unictype/category-Cc:
33511         * modules/unictype/category-Cf, modules/unictype/category-Cn:
33512         * modules/unictype/category-Co, modules/unictype/category-Cs:
33513         * modules/unictype/category-L, modules/unictype/category-LC:
33514         * modules/unictype/category-Ll, modules/unictype/category-Lm:
33515         * modules/unictype/category-Lo, modules/unictype/category-Lt:
33516         * modules/unictype/category-Lu, modules/unictype/category-M:
33517         * modules/unictype/category-Mc, modules/unictype/category-Me:
33518         * modules/unictype/category-Mn, modules/unictype/category-N:
33519         * modules/unictype/category-Nd, modules/unictype/category-Nl:
33520         * modules/unictype/category-No, modules/unictype/category-P:
33521         * modules/unictype/category-Pc, modules/unictype/category-Pd:
33522         * modules/unictype/category-Pe, modules/unictype/category-Pf:
33523         * modules/unictype/category-Pi, modules/unictype/category-Po:
33524         * modules/unictype/category-Ps, modules/unictype/category-S:
33525         * modules/unictype/category-Sc, modules/unictype/category-Sk:
33526         * modules/unictype/category-Sm, modules/unictype/category-So:
33527         * modules/unictype/category-Z, modules/unictype/category-Zl:
33528         * modules/unictype/category-Zp, modules/unictype/category-Zs:
33529         * modules/unictype/category-all, modules/unictype/category-and:
33530         * modules/unictype/category-and-not, modules/unictype/category-byname:
33531         * modules/unictype/category-longname, modules/unictype/category-name:
33532         * modules/unictype/category-none, modules/unictype/category-of:
33533         * modules/unictype/category-or, modules/unictype/category-test:
33534         * modules/unictype/category-test-withtable:
33535         * modules/unictype/combining-class:
33536         * modules/unictype/combining-class-all:
33537         * modules/unictype/combining-class-byname:
33538         * modules/unictype/combining-class-longname:
33539         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
33540         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
33541         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
33542         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
33543         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
33544         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
33545         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
33546         * modules/unictype/digit, modules/unictype/joininggroup-all:
33547         * modules/unictype/joininggroup-byname:
33548         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
33549         * modules/unictype/joiningtype-all:
33550         * modules/unictype/joiningtype-byname:
33551         * modules/unictype/joiningtype-longname:
33552         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
33553         * modules/unictype/mirror, modules/unictype/numeric:
33554         * modules/unictype/property-all, modules/unictype/property-alphabetic:
33555         * modules/unictype/property-ascii-hex-digit:
33556         * modules/unictype/property-bidi-arabic-digit:
33557         * modules/unictype/property-bidi-arabic-right-to-left:
33558         * modules/unictype/property-bidi-block-separator:
33559         * modules/unictype/property-bidi-boundary-neutral:
33560         * modules/unictype/property-bidi-common-separator:
33561         * modules/unictype/property-bidi-control:
33562         * modules/unictype/property-bidi-embedding-or-override:
33563         * modules/unictype/property-bidi-eur-num-separator:
33564         * modules/unictype/property-bidi-eur-num-terminator:
33565         * modules/unictype/property-bidi-european-digit:
33566         * modules/unictype/property-bidi-hebrew-right-to-left:
33567         * modules/unictype/property-bidi-left-to-right:
33568         * modules/unictype/property-bidi-non-spacing-mark:
33569         * modules/unictype/property-bidi-other-neutral:
33570         * modules/unictype/property-bidi-pdf:
33571         * modules/unictype/property-bidi-segment-separator:
33572         * modules/unictype/property-bidi-whitespace:
33573         * modules/unictype/property-byname:
33574         * modules/unictype/property-case-ignorable:
33575         * modules/unictype/property-cased:
33576         * modules/unictype/property-changes-when-casefolded:
33577         * modules/unictype/property-changes-when-casemapped:
33578         * modules/unictype/property-changes-when-lowercased:
33579         * modules/unictype/property-changes-when-titlecased:
33580         * modules/unictype/property-changes-when-uppercased:
33581         * modules/unictype/property-combining:
33582         * modules/unictype/property-composite:
33583         * modules/unictype/property-currency-symbol:
33584         * modules/unictype/property-dash:
33585         * modules/unictype/property-decimal-digit:
33586         * modules/unictype/property-default-ignorable-code-point:
33587         * modules/unictype/property-deprecated:
33588         * modules/unictype/property-diacritic:
33589         * modules/unictype/property-extender:
33590         * modules/unictype/property-format-control:
33591         * modules/unictype/property-grapheme-base:
33592         * modules/unictype/property-grapheme-extend:
33593         * modules/unictype/property-grapheme-link:
33594         * modules/unictype/property-hex-digit:
33595         * modules/unictype/property-hyphen:
33596         * modules/unictype/property-id-continue:
33597         * modules/unictype/property-id-start:
33598         * modules/unictype/property-ideographic:
33599         * modules/unictype/property-ids-binary-operator:
33600         * modules/unictype/property-ids-trinary-operator:
33601         * modules/unictype/property-ignorable-control:
33602         * modules/unictype/property-iso-control:
33603         * modules/unictype/property-join-control:
33604         * modules/unictype/property-left-of-pair:
33605         * modules/unictype/property-line-separator:
33606         * modules/unictype/property-logical-order-exception:
33607         * modules/unictype/property-lowercase, modules/unictype/property-math:
33608         * modules/unictype/property-non-break:
33609         * modules/unictype/property-not-a-character:
33610         * modules/unictype/property-numeric:
33611         * modules/unictype/property-other-alphabetic:
33612         * modules/unictype/property-other-default-ignorable-code-point:
33613         * modules/unictype/property-other-grapheme-extend:
33614         * modules/unictype/property-other-id-continue:
33615         * modules/unictype/property-other-id-start:
33616         * modules/unictype/property-other-lowercase:
33617         * modules/unictype/property-other-math:
33618         * modules/unictype/property-other-uppercase:
33619         * modules/unictype/property-paired-punctuation:
33620         * modules/unictype/property-paragraph-separator:
33621         * modules/unictype/property-pattern-syntax:
33622         * modules/unictype/property-pattern-white-space:
33623         * modules/unictype/property-private-use:
33624         * modules/unictype/property-punctuation:
33625         * modules/unictype/property-quotation-mark:
33626         * modules/unictype/property-radical:
33627         * modules/unictype/property-sentence-terminal:
33628         * modules/unictype/property-soft-dotted:
33629         * modules/unictype/property-space:
33630         * modules/unictype/property-terminal-punctuation:
33631         * modules/unictype/property-test, modules/unictype/property-titlecase:
33632         * modules/unictype/property-unassigned-code-value:
33633         * modules/unictype/property-unified-ideograph:
33634         * modules/unictype/property-uppercase:
33635         * modules/unictype/property-variation-selector:
33636         * modules/unictype/property-white-space:
33637         * modules/unictype/property-xid-continue:
33638         * modules/unictype/property-xid-start:
33639         * modules/unictype/property-zero-width, modules/unictype/scripts:
33640         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
33641         * modules/unictype/syntax-c-whitespace:
33642         * modules/unictype/syntax-java-ident:
33643         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
33644         * modules/unigbrk/u16-grapheme-breaks:
33645         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
33646         * modules/unigbrk/u32-grapheme-breaks:
33647         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
33648         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
33649         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
33650         * modules/unigbrk/uc-is-grapheme-break:
33651         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
33652         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
33653         * modules/unilbrk/u16-width-linebreaks:
33654         * modules/unilbrk/u32-possible-linebreaks:
33655         * modules/unilbrk/u32-width-linebreaks:
33656         * modules/unilbrk/u8-possible-linebreaks:
33657         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
33658         * modules/unilbrk/ulc-possible-linebreaks:
33659         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
33660         * modules/uniname/uniname, modules/uninorm/base:
33661         * modules/uninorm/canonical-decomposition:
33662         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
33663         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
33664         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
33665         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
33666         * modules/uninorm/nfkc, modules/uninorm/nfkd:
33667         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
33668         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
33669         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
33670         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
33671         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
33672         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
33673         * modules/unistdio/base, modules/unistdio/u-printf-args:
33674         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
33675         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
33676         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
33677         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
33678         * modules/unistdio/u16-u16-sprintf:
33679         * modules/unistdio/u16-u16-vasnprintf:
33680         * modules/unistdio/u16-u16-vasprintf:
33681         * modules/unistdio/u16-u16-vsnprintf:
33682         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
33683         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
33684         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
33685         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
33686         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
33687         * modules/unistdio/u32-u32-asnprintf:
33688         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
33689         * modules/unistdio/u32-u32-sprintf:
33690         * modules/unistdio/u32-u32-vasnprintf:
33691         * modules/unistdio/u32-u32-vasprintf:
33692         * modules/unistdio/u32-u32-vsnprintf:
33693         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
33694         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
33695         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
33696         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
33697         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
33698         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
33699         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
33700         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
33701         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
33702         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
33703         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
33704         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
33705         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
33706         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
33707         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
33708         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
33709         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
33710         * modules/unistr/u16-check, modules/unistr/u16-chr:
33711         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
33712         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
33713         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
33714         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
33715         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
33716         * modules/unistr/u16-move, modules/unistr/u16-next:
33717         * modules/unistr/u16-prev, modules/unistr/u16-set:
33718         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
33719         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
33720         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
33721         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
33722         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
33723         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
33724         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
33725         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
33726         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
33727         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
33728         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
33729         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
33730         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
33731         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
33732         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
33733         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
33734         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
33735         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
33736         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
33737         * modules/unistr/u32-next, modules/unistr/u32-prev:
33738         * modules/unistr/u32-set, modules/unistr/u32-startswith:
33739         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
33740         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
33741         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
33742         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
33743         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
33744         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
33745         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
33746         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
33747         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
33748         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
33749         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
33750         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
33751         * modules/unistr/u8-check, modules/unistr/u8-chr:
33752         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
33753         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
33754         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
33755         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
33756         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
33757         * modules/unistr/u8-next, modules/unistr/u8-prev:
33758         * modules/unistr/u8-set, modules/unistr/u8-startswith:
33759         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
33760         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
33761         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
33762         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
33763         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
33764         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
33765         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
33766         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
33767         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
33768         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
33769         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
33770         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
33771         * modules/uniwbrk/base, modules/uniwbrk/table:
33772         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
33773         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
33774         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
33775         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
33776         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
33777         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
33778         * modules/uniwidth/width, modules/utf16-ucs4:
33779         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
33780         * modules/utf8-ucs4-unsafe:
33781         Change maintainer from Bruno Haible to Daiki Ueno.
33782         This is my guess at the libunistring modules; please feel free
33783         to fix if I guessed incorrectly.
33784         * modules/accept4, modules/acl, modules/acos, modules/acosf:
33785         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
33786         * modules/areadlink, modules/array-list, modules/array-mergesort:
33787         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
33788         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
33789         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
33790         * modules/binary-io, modules/bison-i18n, modules/btowc:
33791         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
33792         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
33793         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
33794         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
33795         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
33796         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
33797         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
33798         * modules/closedir, modules/concat-filename, modules/copy-file:
33799         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
33800         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
33801         * modules/csharpcomp-script, modules/csharpexec:
33802         * modules/csharpexec-script, modules/ctype, modules/diffseq:
33803         * modules/dprintf, modules/dprintf-posix, modules/dup:
33804         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
33805         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
33806         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
33807         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
33808         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
33809         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
33810         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
33811         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
33812         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
33813         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
33814         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
33815         * modules/findprog, modules/findprog-lgpl, modules/floor:
33816         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
33817         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
33818         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
33819         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
33820         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
33821         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
33822         * modules/freadable, modules/freadahead, modules/freadptr:
33823         * modules/freadseek, modules/freopen, modules/frexp:
33824         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
33825         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
33826         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
33827         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
33828         * modules/ftello, modules/full-read, modules/full-write:
33829         * modules/fwritable, modules/fwriteerror, modules/gcd:
33830         * modules/get-rusage-as, modules/get-rusage-data:
33831         * modules/getdtablesize, modules/getrusage, modules/gettext:
33832         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
33833         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
33834         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
33835         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
33836         * modules/iconv, modules/iconv-h, modules/iconv_open:
33837         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
33838         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
33839         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
33840         * modules/integer_length_ll, modules/ioctl, modules/isatty:
33841         * modules/isblank, modules/isnand, modules/isnand-nolibm:
33842         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
33843         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
33844         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
33845         * modules/javaexec, modules/javaexec-script, modules/javaversion:
33846         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
33847         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
33848         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
33849         * modules/lib-symbol-visibility, modules/libsigsegv:
33850         * modules/linked-list, modules/linkedhash-list, modules/list:
33851         * modules/localcharset, modules/locale, modules/localeconv:
33852         * modules/localename, modules/lock, modules/log, modules/log-ieee:
33853         * modules/log10, modules/log10-ieee, modules/log10f:
33854         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
33855         * modules/log1p, modules/log1p-ieee, modules/log1pf:
33856         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
33857         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
33858         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
33859         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
33860         * modules/logf, modules/logf-ieee, modules/login_tty:
33861         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
33862         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
33863         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
33864         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
33865         * modules/mbscspn, modules/mbsinit, modules/mbslen:
33866         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
33867         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
33868         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
33869         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
33870         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
33871         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
33872         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
33873         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
33874         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
33875         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
33876         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
33877         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
33878         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
33879         * modules/posix_spawn, modules/posix_spawn-internal:
33880         * modules/posix_spawn_file_actions_addclose:
33881         * modules/posix_spawn_file_actions_adddup2:
33882         * modules/posix_spawn_file_actions_addopen:
33883         * modules/posix_spawn_file_actions_destroy:
33884         * modules/posix_spawn_file_actions_init:
33885         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
33886         * modules/posix_spawnattr_getpgroup:
33887         * modules/posix_spawnattr_getschedparam:
33888         * modules/posix_spawnattr_getschedpolicy:
33889         * modules/posix_spawnattr_getsigdefault:
33890         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
33891         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
33892         * modules/posix_spawnattr_setschedparam:
33893         * modules/posix_spawnattr_setschedpolicy:
33894         * modules/posix_spawnattr_setsigdefault:
33895         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
33896         * modules/pow, modules/powf, modules/printf-frexp:
33897         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
33898         * modules/progname, modules/propername, modules/pselect:
33899         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
33900         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
33901         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
33902         * modules/read, modules/readdir, modules/readlink:
33903         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
33904         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
33905         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
33906         * modules/relocatable-script, modules/remainder:
33907         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
33908         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
33909         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
33910         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
33911         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
33912         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
33913         * modules/setlocale, modules/sh-quote, modules/shutdown:
33914         * modules/signal, modules/signbit, modules/sigpipe:
33915         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
33916         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
33917         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
33918         * modules/snippet/link-warning, modules/snippet/unused-parameter:
33919         * modules/snprintf, modules/snprintf-posix, modules/spawn:
33920         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
33921         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
33922         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
33923         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
33924         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
33925         * modules/streq, modules/strerror_r-posix, modules/striconv:
33926         * modules/striconveh, modules/striconveha, modules/strncat:
33927         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
33928         * modules/sublist, modules/sys_resource, modules/sys_utsname:
33929         * modules/sys_wait, modules/system-posix, modules/system-quote:
33930         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
33931         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
33932         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
33933         * modules/truncf, modules/truncf-ieee, modules/truncl:
33934         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
33935         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
33936         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
33937         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
33938         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
33939         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
33940         * modules/wait-process, modules/waitpid, modules/wcpcpy:
33941         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
33942         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
33943         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
33944         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
33945         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
33946         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
33947         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
33948         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
33949         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
33950         * modules/write, modules/xconcat-filename, modules/xlist:
33951         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
33952         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
33953         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
33954         * modules/y0, modules/y1, modules/yn:
33955         Remove Bruno Haible as maintainer; if he's the sole maintainer,
33956         change the maintainer to 'all'.  Let's hope someone volunteers.
33958 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
33960         mktime: merge #if/#ifdef usage from glibc
33961         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
33962         as that works with both Glibc's and Gnulib's style.
33963         See thread starting at Siddhesh Poyarekar's bug report at:
33964         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
33966 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
33968         git-version-gen: improve option descriptions
33969         * build-aux/git-version-gen: Mention that --prefix and --fallback
33970         have a mandatory argument.
33972 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33974         regex: fix memory leak in compiler
33975         Fix by Andreas Schwab in:
33976         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
33977         * lib/regcomp.c (parse_expression): Deallocate partially
33978         constructed tree before returning error.
33980         regex: merge patch from libc
33981         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
33982         Combine __USE_BSD and __USE_SVID into __USE_MISC.
33983         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
33985 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
33987         acl: port to gcc -Wredundant-decls
33988         From a request by Dmitry Antipov in:
33989         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
33990         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
33991         "#ifndef _GL_ACL_H".
33993 2014-06-11  Bruce Korb  <bkorb@gnu.org>
33994         Jim Meyering  <meyering@fb.com>
33996         parse-duration: eliminate 68-year duration limit
33997         * lib/parse-duration.c: Include "intprops.h".
33998         (TIME_MAX): Rename to MAX_DURATION and define to
33999         TYPE_MAXIMUM(time_t).
34000         * modules/parse-duration (Depends-on): Add intprops.
34001         Reported by Jonas 'Sortie' Termansen.
34003 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
34005         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
34006         * modules/pthread (Depends-on): Add 'extensions', as it defines
34007         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
34008         (configure.ac-early): New section.
34009         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
34010         it is no longer needed.
34012 2014-06-14  Pádraig Brady  <P@draigBrady.com>
34014         pthread: define thread-safe macros on some platforms
34015         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
34016         for thread-safe operation on some platforms.
34018 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
34020         regex: don't be multithreaded if USE_UNLOCKED_IO.
34021         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
34022         * lib/regex_internal.h: Do not use multithreaded version if
34023         USE_UNLOCKED_IO is defined.  This is a hack, but it works
34024         around a porting bug with coreutils 8.22 on AIX 7.1.
34026 2014-06-11  Daiki Ueno  <ueno@gnu.org>
34028         gettext: update macros to version 0.19
34029         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
34030         depend on gl_EXTERN_INLINE and drop support for older Bison
34031         versions.
34033 2014-06-10  Pádraig Brady  <P@draigBrady.com>
34035         select,poll: fix console handle check on windows 8
34036         lib/poll.c (IsConsoleHandle): Change from testing the lower
34037         2 bits of the handle to the more expensive but accurate syscall.
34038         lib/select.c: Likewise.
34040 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
34042         select: fix waiting on anonymous pipes on MS-Windows
34043         * lib/select.c (rpl_select): Fall back to polling when select()
34044         indicates there is nothing to check, while due to the timeout not
34045         expiring, activity is indicated on one of the handles.
34046         Also clear the TIMEOUT argument if the timer does expire.
34048 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
34050         times: fix to return non constant value on MS-Windows
34051         * lib/times.c (times): Don't use the process creation time,
34052         rather clock() which on windows returns the number of
34053         clock ticks since the process started.
34055 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
34057         isatty: fix to work on windows 8
34058         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
34059         2 bits of the handle to the more expensive but accurate syscall.
34061 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
34063         maint: fix typo in fdl.texi
34064         * doc/fdl.texi: Fix typo (missing '@').
34065         Somehow this was in fdl.texi but not fdl-1.3.texi.
34067 2014-06-06  Ben Walton  <bdwalton@gmail.com>
34069         mountlist: avoid hasmntopt const type warning on solaris
34070         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
34071         with char * instead of const char *.  Passing the constant string
34072         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
34073         to avoid the warning.
34075 2014-06-04  Eric Blake  <eblake@redhat.com>
34077         maintainer-makefile: delete obsolete code
34078         * top/maint.mk (build_aux): Drop old code, as threatened.
34080         maintainer-makefile: avoid spurious error messages
34081         * top/maint.mk (syntax-check): Guard definition and use of
34082         $(shell) by whether Makefile is present.
34084 2014-06-03  Ben Walton  <bdwalton@gmail.com>
34086         rename: avoid unused-but-set-variable compiler warning
34087         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
34088         it is possible that dst_exists may be set but not used.  Mark it with
34089         the unused attribute to avoid compiler warnings.
34091 2014-06-02  Ben Walton  <bdwalton@gmail.com>
34093         rename: mark a label as potentially unused
34094         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
34095         by marking the out label as potentially unused.
34096         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
34098 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
34100         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
34101         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
34103 2014-06-02  Ben Walton  <bdwalton@gmail.com>
34105         acl: apply pure attribute to two functions
34106         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
34107         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
34109 2014-06-01  Pádraig Brady  <P@draigBrady.com>
34111         gnulib-common.m4: add _GL_UNUSED_LABEL
34112         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
34113         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
34115 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
34117         dup2, fcntl, fcntl-h: port to AIX 7.1
34118         This fixes some porting problems discovered when testing the latest
34119         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
34120         in grep but it could be important for other applications.
34121         * doc/posix-functions/dup2.texi:
34122         * doc/posix-functions/fcntl.texi:
34123         * doc/posix-headers/fcntl.texi:
34124         Document AIX bugs.
34125         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
34126         Define to 0 if outside 'int' range.
34127         * m4/dup2.m4 (gl_FUNC_DUP2):
34128         * m4/fcntl.m4 (gl_FUNC_FCNTL):
34129         Check for getdtablesize.  If it's available, test a value just
34130         outside its range instead of testing 1000000.  When cross-compiling,
34131         guess that AIX will fail this improved test.
34133 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
34135         printf, config.rpath: Port to FreeBSD 10.
34136         Problem reported by Tijl Coosemans in:
34137         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
34138         * build-aux/config.rpath (hardcode_libdir_flag_spec)
34139         (hardcode_direct): Simplify FreeBSD configuration.
34140         (library_names_spec): Don't mishandle FreeBSD 10+.
34141         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
34142         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
34143         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
34144         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
34145         Don't mishandle FreeBSD 10+ when cross-compiling.
34147         ftoastr: work around compiler bug in IBM xlc 12.1
34148         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
34149         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
34150         around a compiler bug in IBM xlc 12.1.0.0: it complains
34151         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
34152         _GL_FLT_PREC_BOUND.'
34154 2014-05-30  Kieran Colford  <colfordk@gmail.com>
34156         valgrind-tests: fixed misleading help message
34157         * m4/valgrind-tests.m4: The help message generated by configure
34158         implied that valgrind was disabled by default, which it wasn't.
34159         Adjusted the help message using s/enable/disable/ to clarify.
34161 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
34163         isfinite, isinf, isnan tests: fix for little-endian PowerPC
34164         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
34165         first double of a PowerPC "double double" pair.
34166         * tests/test-isinf.c (test_isinfl): Likewise.
34167         * tests/test-isnan.c (test_long_double): Likewise.
34168         * tests/test-isnanl.h (main): Likewise.
34169         * tests/test-signbit.c (test_signbitl): Likewise.
34171 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34173         exclude-tests: port to AIX 7.1
34174         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
34175         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
34176         the regex code uses locks.
34178 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
34180         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
34181         Without this fix, Emacs would sometimes call sigprocmask instead
34182         of pthread_sigmask, which is a no-no in multithreaded applications.
34183         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
34184         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
34185         Suppress check for pthread_sigmask working without -lpthread if
34186         the application always links with -lpthread.  Do not link with
34187         $LIBMULTITHREAD if gl_THREADLIB is not defined.
34188         * m4/timer_time.m4 (gl_TIMER_TIME):
34189         Require gl_THREADLIB only if it is defined.  Do not append
34190         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
34192 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
34194         gnulib-tool: wget translations using --no-verbose rather than --quiet
34195         This allows the user to see error messages if any (--quiet hides them)
34196         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
34198 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
34200         gnulib-tool: adjust translation wget to avoid a https redirection
34201         Context: http://translationproject.org/latest/gnulib redirects to
34202            https://translationproject.org/latest/gnulib/
34203         Rationale: if the user falls back to wget, she doesn't have rsync and
34204         is probably in a minimal build environment, where packages such as
34205         'ca-certificates' are missing as well, resulting in a failed (and
34206         difficult to detect since ignored) translation initial fetch.
34207         Consequently let's avoid https if possible, and add the missing
34208         trailing slash.  This also avoids an unnecessary 302 redirection.
34209         * gnulib-tool: Add trailing slash to gnulib URL.
34211 2014-05-22  Pádraig Brady  <P@draigBrady.com>
34213         getlogin_r-tests: check return value rather than errno
34214         * tests/test-getlogin_r.c (main): As per POSIX we should be
34215         verifying the return value from getlogin_r() rather than errno.
34217 2014-05-22  Pádraig Brady  <P@draigBrady.com>
34219         getlogin_r-tests: fix various issues in recent change
34220         * tests/test-getlogin_r.c: Include required headers that were
34221         missed in recent commit eec20b4e.
34222         Also consistently check the errno rather than the return value from
34223         getlogin_r as POSIX only specifies that non zero is returned on error.
34224         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
34226 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
34228         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
34229         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
34230         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
34231         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
34232         * lib/spawn-pipe.c:
34233         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
34234         and then 'int open64(const char *, int, ...);', which means the
34235         declaration for 'open' gets lost if we later '#undef open'.
34236         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
34237         where the compilation reported the non-fatal error "In function
34238         'openat_proc_name' ... warning: implicit declaration of function
34239         'open'".  In this case the error is relatively harmless, but in
34240         other cases it might not be so minor.
34242 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
34244         xalloc: don't potentially generate invalid code for xmemdup calls
34245         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
34246         this function can initialize the newly-allocated storage with new
34247         pointers, which means this function is not malloc-like.  See:
34248         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
34250 2014-05-19  Pádraig Brady  <P@draigBrady.com>
34252         getlogin_r-tests: avoid false failure under sudo/ssh etc.
34253         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
34254         changes from commit 97249cf29 to not depend on environment variables.
34256 2014-05-18  Pádraig Brady  <P@draigBrady.com>
34258         getlogin-tests: avoid false failure under cron
34259         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
34260         since that's not what's under test.  Centos 6 was seen to return
34261         EINVAL for ttyname() when run from cron.
34263 2014-05-16  Jim Meyering  <meyering@fb.com>
34265         mbrtowc.m4: fix a comment typo
34266         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
34267         emitted documentation string.
34269 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34271         mbrlen, mbrtowc: fix bug with empty input
34272         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
34273         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
34274         so this is mainly for documentation.
34275         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
34276         (gl_FUNC_MBRTOWC): Use it.
34277         * tests/test-mbrtowc.c (main): Test for the bug.
34279 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
34281         doc: document mbrtowc and mbrlen problem with empty input
34282         * doc/posix-functions/mbrlen.texi (mbrlen):
34283         * doc/posix-functions/mbrtowc.texi (mbrtowc):
34284         Document portability problem when the input string is empty.  See:
34285         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
34287         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
34288         Problem reported by Eli Zaretskii in:
34289         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
34290         * doc/posix-functions/execl.texi (execl):
34291         * doc/posix-functions/execle.texi (execle):
34292         * doc/posix-functions/execlp.texi (execlp):
34293         * doc/posix-functions/execv.texi (execv):
34294         * doc/posix-functions/execve.texi (execve):
34295         * doc/posix-functions/execvp.texi (execvp):
34296         Mention spawn+exit problem on non-Cygwin Windows platforms.
34298 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
34300         getlogin-tests: avoid false failure under sudo/ssh etc.
34301         * modules/getlogin-tests (configure.ac): Check for ttyname().
34302         * tests/test-getlogin.c (main): Don't depend on environment variables
34303         to correlate with getlogin(), since sudo and ssh etc. can tamper
34304         with the LOGNAME and USER env vars.  Instead lookup the name from
34305         the uid associated with the stdin tty.
34307 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34309         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
34310         These were found when building the latest grep snapshot on IRIX 6.5.
34311         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
34312         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
34313         never used later.
34314         * lib/quotearg.c (quoting_options_from_style):
34315         * lib/xstrtol.c (__xstrtol):
34316         Use enum instead of 0, to pacify IRIX 6.5 cc.
34318 2014-04-18  Pádraig Brady  <P@draigBrady.com>
34320         gitlog-to-changelog: revert inclusion of git-log-fix file
34321         * build-aux/git-log-fix: Delete dummy file.
34322         * modules/gitlog-to-changelog: Don't reference (overwrite)
34323         the project specific git-log-fix file.
34325 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
34327         maint.mk: Relax the copyright check to cater for non FSF projects
34328         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
34329         to not require the "Free" suffix after the copyright years.
34331 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
34333         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
34334         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
34335         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
34336         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
34337         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
34339 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
34341         exclude: port to strict C99
34342         Strict C does not allow converting a function pointer to void *
34343         and vice versa.  Pass a pointer to a function pointer instead.
34344         * lib/exclude.c (add_exclude_file):
34345         Pass the address of the function pointer.
34346         (call_addfn): And deference the address here, to match.
34348 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
34350         regex: do not depend on malloc-gnu
34351         * modules/regex (Depends-on): Remove malloc-gnu.
34352         It's no longer needed, because of the 2012-12-29 patch
34353         "regex: port to hosts where malloc (0) == NULL".
34354         Reported by Nathan Kennedy in:
34355         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
34357 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
34359         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
34360         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
34361         * doc/posix-functions/expl.texi: Mention the workaround.
34363 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
34365         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
34366         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
34367         size to be zero even when the pointer is nonnull.  This
34368         accommodates the use case where P is malloc (0) and *PN is 0 on a
34369         host where malloc (0) yields nonnull.
34371 2014-04-09  Eric Blake  <eblake@redhat.com>
34373         fts: avoid unnecessary strlen calls
34374         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
34376 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
34378         fts: avoid unnecessary strlen calls
34379         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
34380         when that can be faster than strlen.
34382 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
34384         fts: avoid unnecessary strlen calls
34385         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
34386         (fts_build): Store the length of the dp->d_name entry in a local variable
34387         instead of calling strlen() several times via the above, removed macro.
34388         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
34389         run by ~4%, yet this reduces the execution time by about a third if run
34390         via "ltrace -c rm -rf some-dir".
34392 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34394         obstack: Remove ancient NeXTSTEP gcc support conditional
34395         This change will ease merging with glibc.  The "#if ... __NEXT__"
34396         causes a warning with -Wundef which glibc now enables by default.
34397         Problem reported by Will Newton in
34398         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
34399         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
34400         so go with that.
34401         * lib/obstack.h (__extension__):
34403 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34405         obstack: merge with glibc changes
34406         * lib/obstack.c, lib/obstack.h: Merge from glibc.
34407         This is mostly indenting and commentary changes.
34408         Instances of 'register' have been removed.
34410 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
34412         strftime: wrap macros in "do {...} while(0)"
34413         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
34414         this macro in "do {...} while(0)" to prevent false use as a
34415         single statement, e.g., in an un-braced "{}" else-block.
34416         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
34417         (strftime_case_): Remove 'else' after 'goto' - which was the
34418         only non-fatal, un-braced use of one of the above macros.
34419         Spotted by coverity (NESTING_INDENT_MISMATCH).
34421 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
34423         modechange: avoid memory leaks for invalid octal modes
34424         * lib/modechange.c (mode_compile): During the parsing of
34425         notations like +40, free the 'mc' buffer for invalid mode
34426         strings like +17777 (greater than the maximum octal mode),
34427         =18 (bad octal mode characters) or u=1 ('affected' with
34428         octal modes).
34429         Reproducer, e.g.:
34430             $ valgrind --leak-check=full chmod +17777 file
34431         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
34432         add notations +40, 00440, etc.".
34433         Spotted by coverity (RESOURCE_LEAK).
34435 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
34437         gitlog-to-changelog: include a dummy git-log-fix file
34438         Problem reported by Nathan Stratton Treadway in:
34439         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
34440         * build-aux/git-log-fix: New file.
34442 2014-03-13  Jim Meyering  <meyering@fb.com>
34444         gitlog-to-changelog: also include the file, git-log-fix
34445         * modules/gitlog-to-changelog (Files): Add git-log-fix.
34446         Reported by Assaf Gordon.
34448 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
34450         regex: port to OS X 10.8.5 en_US.UTF-8 locale
34451         This fixes a bug when ignoring case and when comparing the
34452         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
34453         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
34454         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
34455         titlecase letter is neither lowercase nor uppercase, but
34456         uppercasing the titlecase letter (via towupper) yields the
34457         uppercase letter, so the two letters should match when ignoring case.
34458         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
34459         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
34460         Don't test whether a character is lowercase before uppercasing it.
34462 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
34464         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
34465         This is basically one of the options Bruno Haible proposed in:
34466         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
34467         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
34468         * lib/stdint.in.h: Use it.
34469         * modules/stdint (Depends-on): Add sys_types.
34471 2014-02-26  Pádraig Brady  <P@draigBrady.com>
34473         parse-datetime: fix crash or infloop in TZ="" parsing
34474         * lib/parse-datetime.y (parse_datetime): Break out of the
34475         TZ="" parsing loop once the second significant " is found.
34476         Also skip over any subsequent whitespace to be consistent
34477         with the non TZ= case.
34478         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
34480 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
34482         savedir: new symbol for fast-read version
34483         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
34484         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
34485         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
34486         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
34488 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
34490         unistd: port readlink to Mac OS X 10.3.9
34491         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
34492         around self-include problem in Mac OS X 10.3.9 when combined with
34493         readlink module.  Problem reported by Klaus Zietler in
34494         <http://bugs.gnu.org/16825>.
34496 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
34498         diffseq: remove TOO_EXPENSIVE heuristic
34499         Problem with diffutils reported by Vincent Lefevre in
34500         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
34501         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
34502         Although appropriate for circa-1993 hardware, these days the heuristic
34503         seems to be more trouble than it's worth.
34504         * lib/diffseq.h: Modernize citations.
34505         (struct context): Remove member too_expensive.
34506         All uses changed.
34507         (struct partition): Remove members lo_minimal, hi_minimal.
34508         All uses changed.
34509         (diag, compareseq): Remove arg find_minimal.  All uses changed.
34510         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
34511         1993 to make 'diff' run faster (but not as well) on large inputs.
34512         These days, computers are fast enough that it's typically better
34513         to run slower but more accurately.
34514         * lib/fstrcmp.c: Remove duplicate comment.
34515         * lib/fstrcmp.c (strcmp_bounded):
34516         * lib/git-merge-changelog.c (compute_differences):
34517         Adjust to diffseq.h changes.
34518         * NEWS: Document the change.
34520         savedir: simplify by using stpcpy
34521         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
34522         (streamsavedir): Use stpcpy instead.
34523         * modules/savedir (Depends-on): Add stpcpy.
34525 2014-02-21  Pádraig Brady  <P@draigBrady.com>
34527         spawn: fix link error on uclibc
34528         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
34529         to incorporate -lrt if needed (on uclibc for example).
34530         * modules/posix_spawn: Reference the substituted LIB.
34532 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
34533         timer: fix uClibc detection of threading
34534         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
34535         enabled in uClibc.
34537 2014-02-21  Eric Blake  <eblake@redhat.com>
34539         maintainer-makefiles: provide AC_PROG_SED for older autoconf
34540         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
34542 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
34544         exclude: add support for posix regexps
34546         This commit adds support for POSIX extended regular expressions
34547         and fixes a long-standing memory leak (pattern buffer was never
34548         freed).  It also implements a new interface function to read
34549         exclude patterns from a FILE, which passes an additional parameter
34550         to its callback function, thereby allowing to preserve its state
34551         between invocations.
34553         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
34554         (pattern_buffer): New struct.
34555         (exclude): New member patbuf.
34556         (exclude_add_pattern_buffer): New function.
34557         (free_exclude_segment): Free regexps.
34558         (free_exclude): Free allocated pattern buffers.
34559         (exclude_patopts): New function.
34560         (file_pattern_matches): Use exclude_patopts.
34561         (add_exclude): support regexps.
34562         (add_exclude_fp): New function.
34563         (add_exclude_file): Rewrite using add_exclude_fp.
34564         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
34565         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
34566         (add_exclude_fp)
34567         (add_exclude_file): Rewrite using add_exclude_fp.
34568         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
34569         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
34570         (add_exclude_fp)
34571         (exclude_add_pattern_buffer): New prototypes.
34572         * modules/exclude: Depends on regex and filename.
34574 2014-02-20  Eric Blake  <eblake@redhat.com>
34576         maintainer-makefiles: use $(SED) for syntax check
34577         * modules/maintainer-makefile (configure.ac): Check for sane sed.
34578         * top/maint.mk: Change sed to $(SED).
34580 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
34581             Paul Eggert  <eggert@cs.ucla.edu>
34583         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
34584         Patch based on an idea by Dick Streefland in
34585         <https://savannah.gnu.org/patch/?7892>.
34586         * NEWS: Document this.
34587         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
34588         (direntry_t, comparison_function): New types.
34589         (direntry_cmp_name): New function.
34590         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
34591         (streamsavedir, savedir): New arg OPTION.
34592         (streamsavedir): Simplify memory allocation.
34593         (fdsavedir): Remove.
34594         * lib/savedir.h (enum savedir_option): New type.
34595         (streamsavedir, savedir): New arg OPTION.
34596         (fdsavedir): Remove.
34598 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
34600         file-type: add support for doors and other less-common file types
34601         Problem with S_ISDOOR reported by Rich Burridge.
34602         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
34603         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
34604         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
34606 2014-01-23  Eric Blake  <eblake@redhat.com>
34608         pthread: work around winpthread header pollution on mingw
34609         * lib/time.in.h: Move pthread workarounds...
34610         * lib/pthread.in.h: ...here.
34611         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
34612         detect macro pollution on mingw.
34613         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
34615 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
34617         qacl: check for fchmod
34618         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
34619         and qset-acl.c both use HAVE_FCHMOD.
34621 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34623         fdopen-tests: port to Tru64
34624         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
34625         descriptor that is not open, as POSIX doesn't specify the
34626         resulting behavior and the test does not work on Tru64.
34627         Problem reported by Steven M. Schweda in:
34628         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
34630         stdalign: port to HP-UX compilers
34631         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
34632         if __HP_cc or __HP_aCC are nonzero.
34634 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
34636         strtoimax: port to platforms lacking 'long long'
34637         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
34638         check whether strtoll is declared, which causes the C file to
34639         wrongly report an error.  Problem reported by Steven M. Schweda in:
34640         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
34641         * lib/strtoimax.c (strtoull):
34642         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
34643         (strtoll): Declare only if HAVE_LONG_LONG_INT.
34645 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
34647         relocatable-perl: fix texi syntax
34648         * doc/relocatable-maint.texi: Escape braces.
34650 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
34652         relocatable-perl: like relocatable-script, but for Perl scripts
34653         * build-aux/relocatable.pl.in: Add.
34654         * doc/relocatable-maint.texi: Add documentation.
34655         * modules/relocatable-perl: Add.
34657 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
34659         tests: fix export bug in previous patch
34660         Problem reported by Jim Meyering.
34661         * tests/init.sh (re_shell): New var, which is exported instead of
34662         re_shell_.
34664         tests: simplify porting to Solaris 10 /bin/sh
34665         Some test cases in 'grep' need a shell that groks '$(';
34666         export re_shell_ for their benefit.  Problem reported for 'grep'
34667         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
34668         * tests/init.sh (re_shell_): Export if it's used.
34670 2014-01-06  Eric Blake  <eblake@redhat.com>
34672         md5, sha1, sha256, sha512: support older autoconf
34673         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
34674         for autoconf < 2.63b.
34676         include_next: port to autoconf 2.63
34677         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
34679 2014-01-04  Jim Meyering  <meyering@fb.com>
34681         maint: add a gnulib-local rule to keep non-ascii out of .texi files
34682         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
34683         so that "make sc_maint" will ding anyone who puts non-ascii
34684         in any of gnulib's .texi files.
34686 2014-01-03  Jim Meyering  <meyering@fb.com>
34688         freadable, fwritable, fwriting: declare with the "pure" attribute
34689         * lib/freadable.h (freadable): Declare with the "pure" attribute.
34690         * lib/fwritable.h (fwritable): Likewise.
34691         * lib/fwriting.h (fwriting): Likewise.
34692         Suggested by Bruno Haible.
34694         maint.mk: adapt openat.h-include-without-use test
34695         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
34696         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
34697         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
34698         With this change, running "make sc_maint" in gnulib's top-level
34699         directory now passes for me.
34701 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34703         doc: use ASCII in .texi files where UTF-8 isn't needed
34704         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
34705         * doc/posix-functions/setkey.texi, doc/regex.texi:
34706         Use ASCII input, not UTF-8.
34708 2014-01-02  Jim Meyering  <meyering@fb.com>
34710         freading: declare with the "pure" attribute
34711         * lib/freading.h (freading): Declare with the "pure" attribute.
34713         manywarnings: remove -Wmudflap
34714         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
34715         it is no longer supported in gcc-4.9-to-be.
34717 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34719         relocatable-script: remove unused code
34720         Problem reported by Reuben Thomas in:
34721         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
34722         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
34724 2014-01-01  Jim Meyering  <meyering@fb.com>
34726         maint: fix public-submodule-commit to work with newer git
34727         * top/maint.mk (public-submodule-commit): Remove excess quoting.
34728         We were over-quoting the test arguments, and somewhere prior to
34729         version 1.8.5.2.229, git stopped removing those excess quotes,
34730         which made the test fail, since the unexpanded strings would
34731         always differ; using GIT_TRACE=1 confirmed that the git merge-base
34732         command wasn't even being run.
34734 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34736         doc: update main copyright year
34737         * doc/gnulib.texi: Update copyright date.
34739 2014-01-01  Eric Blake  <eblake@redhat.com>
34741         version-etc: new year
34742         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
34743         * all files: run 'make update-copyright'
34745 2013-12-24  Eric Blake  <eblake@redhat.com>
34747         passfd: give nicer error for recvfd at eof
34748         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
34749         * tests/test-passfd.c (main): Enhance test to cover this.
34751 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34753         gettimeofday: port recent C++ fix to Emacs
34754         Without this further patch, Emacs won't build due to
34755         the portcheck failing.  Also, this simplifies the patch a bit.
34756         * lib/time.in.h (localtime, gmtime): Don't replace unless
34757         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
34758         * lib/time.in.h (localtime, gmtime):
34759         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
34760         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34761         * modules/time (time.h):
34762         Don't worry about the possibility of localtime and gmtime
34763         being absent; they're present in all C libraries we know about.
34764         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34765         Don't assume sys_time is present and has been initialized.
34766         Instead, use a hack that should work even if it hasn't been.
34767         Don't use a portcheck for gmtime or localtime; this supports
34768         the hack.
34769         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
34771 2013-12-17  John W. Eaton  <jwe@gnu.org>
34773         gettimeofday: fix C++ crosscompilation
34775         Never replace gmtime and localtime by macros when compiling with
34776         C++, this prevents <ctime> from being included.
34778         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
34779         define gmtime and localtime as preprocessor macros.  Instead
34780         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
34781         REPLACE_LOCALTIME substitutions.
34782         * lib/time.in.h: Declare gmtime and localtime when needed.
34783         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
34784         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
34785         * modules/time: Depend on gettimeofday, and substitute the above
34786         variables in time.h.
34788 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34790         qacl: port to Windows better
34791         See Eli Zaretskii in
34792         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
34793         * lib/file-has-acl.c (acl_access_nontrivial):
34794         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
34795         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
34797 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
34799         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
34800         * lib/gl_openssl.h: Cast void pointers to a specific type.
34802 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34804         open-tests: fix build failure with -Werror=old-style-declaration
34805         * tests/test-open.h: Reorder the inline to avoid the issue.
34807 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34809         md5, sha1, sha256, sha512: fix link error with partial libcrypto
34810         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
34811         init time, so that if early checks find crypto routines,
34812         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
34813         avoiding link failures.
34815 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34817         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
34818         This provides a new way to specify the default for
34819         gl_CRYPTO_CHECK, one that is reflected in the --help message.
34820         Emacs uses this, as well as the old way.
34821         This attempts to implement a suggestion by Pádraig Brady in
34822         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
34823         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
34824         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
34826         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
34827         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
34828         Add support for a new option, --with-openssl=auto, which causes
34829         the library to be used if available and silently ignored if not.
34830         Add support to allow configure.ac to specify its own
34831         default, by setting with_openssl_default before invoking gl_INIT.
34833 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
34835         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
34836         Problem reported by Daiki Ueno in:
34837         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
34838         * tests/test-open.h (__always_inline):
34839         New macro, if not already defined.
34840         (test_open): Use it.
34842 2013-12-04  Eric Blake  <eblake@redhat.com>
34844         include_next: minimize code duplication
34845         * modules/include_next (Depends-on): Add absolute-header.
34846         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
34847         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
34849 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34851         getcwd: fix compile error in configure check
34852         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
34854 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34856         regex: suppress core dumps from detection code
34857         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
34858         to suppress core dumps that may well occur on glibc systems.
34859         These core dumps might not be cleaned up automatically, or could
34860         trigger some system core dump handling logic.
34862 2013-12-03  Pádraig Brady  <P@draigBrady.com>
34864         md5, sha1, sha256, sha512: support mandating use of openssl
34865         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
34866         description, to list the now 3 separate options.  also don't
34867         mention the default=no, since this is implicit given the option
34868         is described as --with-openssl rather than --without-openssl.
34869         If projects change the default they're free to document that.
34870         with --with-openssl[=yes] we now error out when the specified
34871         hash algorithm is not available in libcrypto.
34873 2013-12-03  Ivailo  <xakepa10@gmail.com>
34875         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
34876         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
34877         -Wformat-nonliteral checks, as these edge cases are part of the test.
34879 2013-12-03  Eric Blake  <eblake@redhat.com>
34881         regex: avoid glibc deadlock during configure
34882         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
34883         glibc bug 15078 in turn triggers bug 16159.
34884         Reported by Michal Privoznik.
34886 2013-12-02  Pádraig Brady  <P@draigBrady.com>
34888         md5, sha1, sha256, sha512: use openssl routines if available.
34889         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
34890         routines will be used if available, requiring apps to link @LIB_CRYPTO@
34891         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
34892         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
34893         in the standard system location.
34894         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
34895         * m4/sha256.m4: Likewise with SHA256.
34896         * m4/sha512.m4: Likewise with SHA512.
34897         * m4/md5.m4: Likewise with MD5.
34898         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
34899         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
34900         * lib/sha256.h: Likewise with SHA256.
34901         * lib/sha512.h: Likewise with SHA512.
34902         * lib/md5.h: Likewise with MD5.
34903         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
34904         * lib/sha256.c: Likewise with SHA256.
34905         * lib/sha512.c: Likewise with SHA512.
34906         * lib/md5.c: Likewise with MD5.
34907         * modules/crypto/sha1 (Link:): Add the new optional lib.
34908         (Depends-on:): Add dependency on extern-inline.
34909         * modules/crypto/sha256: Likewise.
34910         * modules/crypto/sha512: Likewise.
34911         * modules/crypto/md5: Likewise.
34912         * modules/crypto/sha1-tests: Reference the lib here too.
34913         * modules/crypto/md5-tests: Likewise.
34914         * modules/crypto/gc-des-tests: Likewise.
34915         * modules/crypto/gc-hmac-md5-tests: Likewise.
34916         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34917         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34918         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34919         * modules/crypto/gc-md5-tests: Likewise.
34920         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34921         * modules/crypto/gc-sha1-tests: Likewise.
34922         * modules/crypto/gc-tests: Likewise.
34923         * modules/crypto/hmac-md5-tests: Likewise.
34924         * modules/crypto/hmac-sha1-tests: Likewise.
34925         * modules/crypto/hmac-sha256-tests: Likewise.
34926         * modules/crypto/hmac-sha512-tests: Likewise.
34928 2013-11-29  RV1971  <rv1971@web.de>
34930         base64: (trivial) fix compilation regression on some compilers
34931         * lib/base64.c: Don't return the void function,
34932         instead split to a separate return statement.
34934 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34936         ignore-value: revert previous code change
34937         * lib/ignore-value.h (ignore_value): Use __extension__ and
34938         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
34939         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
34940         Change the comment to try to explain this better.
34942 2013-11-27  Pádraig Brady  <P@draigBrady.com>
34944         selinux-h: improve stub types and add more stub functions
34946         * lib/se-selinux.in.h: Change security_context_t to a typedef
34947         rather than a define, as it's a pointer type and so is better
34948         as a typedef to avoid issues declaring multiple variables
34949         with the comma operator.  Also add stub for string_to_security_class().
34950         * lib/se-context.in.h: Add stub functions for
34951         context_{type,range,role,user}_get().
34953 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34955         ignore-value: prefer GCC version back through 2.0
34956         The code didn't match the comments, so I did a bit of software
34957         archaeology.  GCC 2.0 seems to support __extension__ and
34958         __typeof__, so fix both code and comments to use 2.0.
34959         * lib/ignore-value.h (ignore_value): Use __extension__ and
34960         __typeof__ for GCC 2.0 through 3.3, too.
34962 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
34964         pty: Activate the signature wrapper of forkpty.
34965         The intended preprocessor macro HAVE_FORKPTY is
34966         never defined, yet `lib/forkpty.c' depends on it.
34968         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
34969         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
34970         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
34972 2013-11-18  Jim Meyering  <meyering@fb.com>
34973         and Paul Eggert  <eggert@cs.ucla.edu>
34975         quotearg: don't attempt to store 1 << 31 into an "int"
34976         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
34977         gcc's new -fsanitize=undefined and running its tests triggered some
34978         new test failures due to undefined behavior, all with this diagnostic:
34979           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
34980             cannot be represented in type int
34981         Rather than shifting "1" left to form a mask, shift the bits right and
34982         simply use "1" as the mask.
34984 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
34986         error: depend on stdio
34987         Problem reported by Nikos Mavrogiannopoulos in
34988         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
34989         * modules/error (Depends-on): Add stdio.
34991 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
34993         * doc/relocatable-maint.texi (Supporting Relocation): Improve
34994         wording.
34995         Reported by Reuben Thomas <rrt@sc3d.org>.
34997 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
34999         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
35000         New function and macro, to work around _DARWIN_C_SOURCE problem.
35001         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
35003 2013-11-11  Pádraig Brady  <P@draigBrady.com>
35005         base64: provide a fast path for encoding well sized buffers
35006         Avoid conditionals in the base64 encoding loop,
35007         which was seen to give 60% better throughput.
35008         * lib/base64.c (base64_encode_fast): A new function to be called
35009         when we don't want to NUL terminate, and we have enough space
35010         in the output to encode the given input.
35011         (base64_encode): Call the _fast() version when appropriate.
35012         Also remove a redundant mask with 0x3F on the first encoded byte.
35014 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
35016         extern-inline: port better to OS X 10.9
35017         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
35018         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
35019         OS X 10.9, except for g++ where the bug is still present.
35020         See <http://trac.macports.org/ticket/41033>.
35022 2013-11-08  Eric Blake  <eblake@redhat.com>
35024         fpending: fix regression on DragonFly BSD
35025         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
35026         * lib/fpending.h (__fpending): Don't declare twice.
35027         Reported by GW in
35028         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
35030 2013-11-05  Jim Meyering  <meyering@fb.com>
35032         hash: relax license to LGPLv2+, for libguestfs
35033         * modules/hash (License): Change from GPL to LGPLv2+.
35035 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
35037         intprops: port to Oracle Studio c99
35038         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
35039         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
35041 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
35043         obstack: pacify HP C
35044         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
35045         warning "conversion from pointer to smaller integer" from HP
35046         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
35047         C89 or later nowadays, so cast to void instead of int.  Privately
35048         reported by H.Merijn Brand.  Also, change header to match glibc's,
35049         to make checking against glibc easier.
35051 2013-10-29  Jim Meyering  <meyering@fb.com>
35053         maint.mk: prefer gpgv2 over gpgv
35054         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
35055         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
35056         Reported by Gary Vaughan.
35058 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
35060         isnan: port to VAX
35061         Reported by John Klos for NetBSD-5/VAX in
35062         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
35063         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
35064         (FUNC): Use it.
35066 2013-10-28  Jim Meyering  <meyering@fb.com>
35068         gnulib-tool: protect against CDPATH
35069         * gnulib-tool: Many "cd" built-in functions print a directory name
35070         to stdout when CDPATH is set, e.g.,
35071           $ bash -c 'CDPATH=/; cd tmp'
35072           /tmp
35073         Unset it, when possible.  Prompted by a comment from Bruce Korb.
35075         maint.mk: restore functionality removed by recent change...
35076         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
35077         the context of a shallow-cloned gnulib repository: "git describe"
35078         would fail in such a directory.  However, that change made it so
35079         the reported gnulib revision no longer includes the version number
35080         or a commit count, even when run from a full clone.
35081         * top/maint.mk (gnulib-version): Use the full "git describe"
35082         output when possible, e.g., the form above, rather than the
35083         abbreviated, no-tag, no-commit-count string, and fall back to
35084         using a 10-byte hash, rather than the default minimal-length
35085         hash prefix, since while the minimal-length one may be fine today,
35086         it is likely not to be unique for very long.
35088 2013-10-26  Jim Meyering  <meyering@fb.com>
35090         maint.mk: fix "release" target to build _version
35091         This fixes a bug in README-release whereby following the outlined
35092         steps, one would publish a tarball whose programs would report
35093         --version output not consistent with the package version number.
35094         This bug caused grep-2.15 to produce a grep program whose
35095         --version option made it print 2.14.56-1e3d rather than 2.15.
35096         * top/maint.mk (release): Making this target build "_version"
35097         ensures that the new version number is reflected in configure.
35099 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
35101         install-reloc: Support multi-binary installation.
35102         * build-aux/install-reloc: Support installing multiple programs in
35103         one invocation, as done by Automake starting with commit
35104         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
35105         Haible <bruno@clisp.org>, archived at
35106         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
35107         Reported by Sylvain <beuc@gnu.org>.
35109 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35111         selinux-h: Really build without selinux when library is missing.
35112         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
35113         continue without selinux, as already told in the warning message.
35115 2013-10-21  Jim Meyering  <meyering@fb.com>
35117         regex: also remove dependency on HAVE_WCSCOLL
35118         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
35120 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
35122         xfreopen: Fix typo. s/frepoen/freopen/
35123         * lib/xfreopen.c: Fix description.
35124         * modules/xfreopen: Likewise.
35126 2013-10-21  Jim Meyering  <meyering@fb.com>
35128         regex: don't depend on wcscoll
35129         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
35130         It is no longer used.
35132 2013-10-20  Jim Meyering  <meyering@fb.com>
35134         error: add the printf attribute to a static function
35135         * lib/error.c (error_tail): Add the printf attribute, to placate
35136         gcc's -Werror=suggest-attribute=format option.
35138 2013-09-30  Jim Meyering  <meyering@fb.com>
35140         fpending, obstack, strerror-override: use pure+const function attrs
35141         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
35142         * lib/obstack.c (_obstack_allocated_p): Likewise.
35143         * lib/obstack.h (_obstack_memory_used): Likewise.
35144         (_obstack_memory_used): Likewise.
35145         * lib/strerror-override.h (strerror_override): Declare with
35146         the "const" attribute.
35148 2013-10-18  Eric Blake  <eblake@redhat.com>
35150         extern-inline: make safe for -Wundef usage
35151         Reported by Vladimir 'phcoder' Serbinenko in
35152         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
35153         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
35155 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35157         mkfifo-tests, etc.: allow HP-UX 11.11 bug
35158         Problem reported by Daniel Richard G. in
35159         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
35160         * doc/posix-functions/mkfifo.texi (mkfifo):
35161         * doc/posix-functions/mkfifoat.texi (mkfifoat):
35162         * doc/posix-functions/mknod.texi (mknod):
35163         * doc/posix-functions/mknodat.texi (mknodat):
35164         Document the HP-UX 11.11 bug.
35165         * tests/test-mkfifo.h (test_mkfifo):
35166         Allow the HP-UX 11.11 bug.
35168 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
35170         acl: allow cross-compilation to Gentoo
35171         Problem reported by Gabriel Marcano in
35172         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
35173         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
35174         test only whether it links.
35176 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
35178         mgetgroups: remove dependency on realloc-gnu
35179         The dependency violates the comment in realloc-gnu, which
35180         says that tests can't depend on realloc-gnu; some tests depend
35181         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
35182         Problem reported by Daniel Richard G. in
35183         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
35184         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
35185         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
35186         not realloc-gnu.
35188 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35190         regex-tests: port to HP-UX 11.11
35191         Problem reported by Daniel Richard G. in
35192         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
35193         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
35195 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
35197         verify: document some 'assume' pitfalls
35198         * doc/verify.texi (Compile-time Assertions):
35199         Mention that 'assume (E)' can sometimes slow things down.
35200         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
35202 2013-10-10  Eric Blake  <eblake@redhat.com>
35204         strtoumax: fix typo in previous commit.
35205         * modules/strtoumax (Depends-on): Fix typo.
35206         * modules/strtoimax (Depends-on): Likewise.
35208 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
35210         strtoumax: port to Solaris 8
35211         This problem was introduced in the recent HP-UX patch.
35212         Reported by Tom G. Christensen in
35213         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
35214         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
35215         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
35217 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
35219         strtoimax, strtoumax: port to HP-UX 11.11
35220         Problem reported by Daniel Richard G. in
35221         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
35222         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
35223         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
35224         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
35225         REPLACE_STRTOUMAX.
35226         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
35227         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
35228         Replace the function if defined as a macro but not as a function.
35229         * modules/inttypes-incomplete (inttypes.h): Substitute
35230         REPLACE_STRTOUMAX.
35231         * modules/strtoumax (configure.ac): Replace strtoumax if
35232         REPLACE_STRTOUMAX.
35234 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35236         strtoimax: port to HP-UX 11.11
35237         Problem reported by Daniel Richard G.
35238         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
35239         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
35240         they might clash with inttypes.h.
35242 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35244         New module 'count-trailing-zeros'.
35245         * MODULES.html.sh: Mention it.
35246         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
35247         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
35248         * modules/count-trailing-zeros-tests:
35249         * tests/test-count-trailing-zeros.c:
35250         New files.
35252         count-leading-zeros: port to MSC; support types wider than 64 bits
35253         The ideas behind the MSC port are stolen from Emacs.
35254         * lib/count-leading-zeros.h:
35255         Don't include verify.h: it's no longer needed, as types wider than
35256         64 bits are now supported.
35257         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
35258         performance with MSC.  All uses changed.  Do not assume that TYPE
35259         has at most 64 bits.
35260         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
35261         All uses changed.  Fold the subtraction from 31 into the table.
35263         count-one-bits: port to MSC; support types wider than 64 bits
35264         The ideas behind the MSC port are stolen from Emacs.
35265         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
35266         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
35267         Don't include verify.h: it's no longer needed, as types wider than
35268         64 bits are now supported.
35269         (COUNT_ONE_BITS_GENERIC): New macro.
35270         (popcount_supported) [_MSC_VER]: New inline function.
35271         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
35272         performance with MSC.  All uses changed.  Do not assume that TYPE
35273         has at most 64 bits.
35274         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
35276 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
35278         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
35279         * lib/mountlist.c (read_file_system_list): fix leak of directory
35280         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
35282 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35284         tests: improve diagnostic when an assertion fails
35285         * tests/macros.h (ASSERT): Report the assertion that failed.
35287 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35289         verify: new macro 'assume'
35290         This is taken from Emacs, and should be generally useful.
35291         * doc/verify.texi (assume): Document it.
35292         * lib/verify.h (assume): New macro.
35293         (__has_builtin): Expand to 0 if not defined.
35295 2013-09-26  Eric Blake  <eblake@redhat.com>
35297         dup2, dup3: work around another cygwin crasher
35298         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
35299         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
35300         * tests/test-dup2.c (main): Likewise.
35301         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
35302         * lib/dup3.c (dup3): Likewise.
35303         * doc/posix-functions/dup2.texi (dup2): Document it.
35304         * doc/glibc-functions/dup3.texi (dup3): Likewise.
35306         getdtablesize: work around cygwin issue
35307         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
35308         * modules/getdtablesize (configure.ac): Build replacement.
35309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
35310         * modules/unistd (Makefile.am): Expose the witness.
35311         * lib/unistd.in.h (getdtablesize): Declare replacement.
35312         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
35313         * tests/test-getdtablesize.c (main): Test it.
35314         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
35316 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
35318         pmccabe2html: escaping of special characters
35319         Escape all '<', '>', and '&' in HTML output.
35320         * build-aux/pmccabe2html (html_fnc): Call gsub()
35321         instead of sub() to capture all '<', '>', and '&'.
35322         Neither of '<' and '>' is special in a regexp,
35323         so first arguments to gsub() are corrected. Also,
35324         in replacement strings, ampersand must be escaped.
35325         Finally, '&' must be handled first, then '<' and '>'.
35327 2013-09-24  Eric Blake  <eblake@redhat.com>
35329         manywarnings: enable nicer gcc warning messages
35330         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
35331         some -f options for optimal warnings.
35333 2013-09-21  Jim Meyering  <meyering@fb.com>
35335         timespec: use the new TIMESPEC_RESOLUTION in a few more places
35336         * lib/timespec-add.c (timespec_add): Also replace 999999999
35337         with TIMESPEC_RESOLUTION - 1.
35338         * lib/timespec-sub.c (timespec_sub): Likewise.
35340 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35342         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
35343         Problem reported by Dagobert Michelsen via Eric Blake in
35344         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
35345         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
35346         not AC_COMPILE_IFELSE.
35348 2013-09-23  Eric Blake  <eblake@redhat.com>
35350         configmake: support new --runstatedir option
35351         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
35352         even if autoconf was too old to provide the command line option.
35353         * modules/configmake (Makefile.am): Propagate it to .h file.
35355 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35357         ctype, string: depend on extern-inline
35358         This is needed to complete the recent OS X fixes.
35359         Also, fix related documentation as suggested by Eric Blake.
35360         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
35361         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
35362         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
35363         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
35364         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
35365         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
35366         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
35367         * doc/posix-functions/toupper.texi:
35368         List the 'ctype' gnulib module.
35369         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
35370         * doc/posix-functions/strncpy.texi:
35371         List the 'string' gnulib module.
35372         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
35373         Add string.
35374         * modules/ctype, modules/string (Depends-on): Add extern-inline.
35376 2013-09-19  Pádraig Brady  <P@draigBrady.com>
35378         userspec: support optional parameters to parse_user_spec()
35379         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
35380         then avoid group processing and treat the full spec as a user.
35381         (parse_with_separator): Allow the USERNAME and GROUPNAME to
35382         be optional params (NULL), in which case they're ignored.
35384 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
35386         timespec: new function make_timespec, and new constants
35387         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
35388         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
35389         (make_timespec): New function.
35390         * lib/dtotimespec.c (dtotimespec):
35391         * lib/timespec-add.c (timespec_add):
35392         * lib/timespec-sub.c (timespec_sub):
35393         * lib/utimens.c (validate_timespec):
35394         * lib/utimensat.c (rpl_utimensat):
35395         Use these new constants and functions.
35397         stdio: OS X port of putc_unlocked + extern inline
35398         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
35399         * doc/posix-functions/putc_unlocked.texi:
35400         * doc/posix-functions/putchar_unlocked.texi:
35401         Document this portability problem.
35403         signal: OS X port of sigaddset etc. + extern inline
35404         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
35405         (sigismember): #undef on problematic Apple platforms.
35406         * doc/posix-functions/sigaddset.texi:
35407         * doc/posix-functions/sigdelset.texi:
35408         * doc/posix-functions/sigemptyset.texi:
35409         * doc/posix-functions/sigfillset.texi:
35410         * doc/posix-functions/sigismember.texi:
35411         Document this portability problem.
35413         extern-inline: do not always suppress extern inline on OS X
35414         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
35415         extern inline on Apple only if the particular compile-time
35416         configuration is known to have the problem.
35417         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
35418         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
35419         other Gnulib modules.
35421         extern-inline: document fixes for ctype and wctype macros
35422         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
35423         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
35424         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
35425         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
35426         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
35427         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
35428         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
35429         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
35430         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
35431         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
35432         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
35433         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
35434         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
35435         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
35436         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
35437         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
35438         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
35439         * doc/posix-functions/strncpy.texi:
35440         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
35441         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
35442         Document that Gnulib fixes portability problems with these
35443         functions on OS X 10.8 and earlier when called from plain inline
35444         or extern inline functions.
35446 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
35448         fflush, freadahead, fseeko: Fix for Android
35449         Suggested by Bruno Haible in:
35450         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
35451         * lib/stdio-impl.h: Use local __sfileext definition.
35453 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
35455         pmccabe2html: Portability to other awk versions.
35456         The functions systime() and strftime() are available
35457         in Gawk only.  Properly close two HTML-tags 'style'
35458         and 'span'.
35459         * build-aux/pmccabe2html (BEGIN): Store timing
35460         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
35461         systime() in HTML_COMMENT.
35462         (html_header): Correctly close tag 'style'.
35463         (END): Replace strftime() by CHRONOS_TIME.  Close
35464         tag 'span' correctly, not as 'div'.
35466 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
35468         getgroups: statement without effect
35469         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
35470         Change equality conditional to expected assignment.
35472 2013-09-09  Eric Blake  <eblake@redhat.com>
35474         glob: fix compilation
35475         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
35477 2013-09-07  Eric Blake  <eblake@redhat.com>
35479         glob: fix build for platforms without __THROW
35480         * lib/glob.in.h (__THROW): Add definition again.
35482 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
35484         regex-quote: fix buffer access out of bounds
35485         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
35486         * lib/regex-quote.c (regex_quote_spec_pcre):
35487         Fix typo that resulted in an out-of-bounds read.
35489 2013-09-04  Eric Blake  <eblake@redhat.com>
35491         glob: avoid -Wattribute warnings on glibc
35492         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
35493         __THROWNL, not __THROW, on static functions.
35494         * lib/glob.in.h (__THROW): Adjust...
35495         (__THROWNL): ...accordingly.
35497 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
35499         headers: check that _GL_INLINE_HEADER_BEGIN is defined
35500         Suggested by Bruce Korb in:
35501         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
35502         * doc/extern-inline.texi (extern inline):
35503         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
35504         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
35505         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
35506         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
35507         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
35508         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
35509         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
35510         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
35511         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
35512         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
35513         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
35514         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
35515         * lib/xtime.h:
35516         Check that _GL_INLINE_HEADER_BEGIN is defined.
35518 2013-08-29  Pádraig Brady  <P@draigBrady.com>
35520         bootstrap: remove the --version requirement from ancillary tools
35521         * build-aux/bootstrap (check_exists): A new refactored function to
35522         determine if a command exists.
35523         (find_tool): Use the new function which does not require the
35524         --version option to be supported.
35525         (check_versions): Use the new function.
35527 2013-08-26  Simon Josefsson  <simon@josefsson.org>
35529         gc: support HMAC-SHA256 and HMAC-SHA512.
35530         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
35531         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
35532         functions.
35533         (gc_hmac_md5): Use symbolic constant.
35534         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
35535         (gc_hmac_sha256, gc_hmac_sha512): New functions.
35536         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
35537         * m4/sha256.m4: Protect against empty expansion.
35538         * m4/sha512.m4: Likewise.
35539         * lib/hmac-sha256.c: New file.
35540         * lib/hmac-sha512.c: Likewise.
35541         * m4/gc-hmac-sha256.m4: Likewise.
35542         * m4/gc-hmac-sha512.m4: Likewise.
35543         * m4/gc-sha256.m4: Likewise.
35544         * m4/gc-sha512.m4: Likewise.
35545         * modules/crypto/gc-hmac-sha256: Likewise.
35546         * modules/crypto/gc-hmac-sha256-tests: Likewise.
35547         * modules/crypto/gc-hmac-sha512: Likewise.
35548         * modules/crypto/gc-hmac-sha512-tests: Likewise.
35549         * modules/crypto/hmac-sha256: Likewise.
35550         * modules/crypto/hmac-sha256-tests: Likewise.
35551         * modules/crypto/hmac-sha512: Likewise.
35552         * modules/crypto/hmac-sha512-tests: Likewise.
35553         * tests/test-gc-hmac-sha256.c: Likewise.
35554         * tests/test-gc-hmac-sha512.c: Likewise
35555         * tests/test-hmac-sha256.c: Likewise.
35556         * tests/test-hmac-sha512.c: Likewise
35558 2013-08-24  Daiki Ueno  <ueno@gnu.org>
35560         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
35561         of AC_CHECK_DECLS.
35563 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
35565         selinux-at: omit unnecessary include
35566         * lib/selinux-at.c: Don't include dosname.h; not needed, since
35567         this source file doesn't use its macros, and subsidiary files that
35568         use the macros already include it.
35570 2013-08-21  Eric Blake  <eblake@redhat.com>
35572         d-ino: avoid false negative on symlink
35573         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
35574         Reported by Stephane Chazelas.
35576 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
35578         bootstrap: port to OpenBSD sed
35579         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
35580         does not interpret `-' as a file argument to mean stdin.
35582 2013-08-15  Eric Blake  <eblake@redhat.com>
35584         warnings: minor optimization
35585         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
35587         warnings: check -Wfoo rather than -Wno-foo
35588         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
35589         -Wno-, test if the compiler recognizes the positive form instead.
35591 2013-08-15  Karl Berry  <karl@gnu.org>
35593         * config/srclist-update: add option "doclicense" to placate
35594         pulling *.texi files from Emacs.  Write terse usage
35595         documentation at the top.
35597 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
35599         xvasprintf-tests: port to GCC with hardening flags
35600         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
35601         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
35602         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
35604 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35606         fpending: port to recent Cygwin change to stdio_ext.h
35607         Reported by LRN in
35608         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
35609         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
35610         just declare __fpending unless it's a macro.
35611         A duplicate decl shouldn't hurt.
35612         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
35613         call compiles and links, instead of separately checking for
35614         decl and lib function.
35615         * modules/fpending (configure-ac):
35616         Adjust to fpending.m4's renaming of shell variable.
35618 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
35620         sys_time: port to OpenBSD
35621         * lib/sys_time.in.h: Simply delegate to the system's header
35622         in the BSDish cases as well.  Problem reported by Mike Miller in
35623         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
35624         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
35625         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
35626         wider than time_t.
35628 2013-08-09  Pádraig Brady  <P@draigBrady.com>
35630         bootstrap: support checksum utils having -c but not --status
35631         * build-aux/bootstrap: Only look for sha1sum if updating po files.
35632         Add sha1 to the list of supported checksum utils since it's now
35633         supported through adjustments below.
35634         (update_po_files): Remove the use of --status
35635         in a way that will suppress all error messages, but since this is
35636         only used to minimize updates, it shouldn't cause an issue.
35637         Exit early if there is a problem updating the po file checksums.
35638         (find_tool): Remove the check for --version support as this
35639         is optional as per commit 86186b17.  Don't even check for the
35640         presence of the command as if that is needed, it's supported
35641         through configuring prerequisites in bootstrap.conf.
35642         Prompt that when a tool isn't found, one can define an environment
35643         variable to add to the hardcoded search list.
35645 2013-08-05  Jim Meyering  <meyering@fb.com>
35647         regex: port to non-glibc/lock-using systems
35648         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
35649         system with GNULIB_LOCK would fail due to absence of the
35650         included "glthread/lock.h".  This would affect any package
35651         for which the "lock" module is used only by the regex module,
35652         and not explicitly used.
35653         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
35654         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
35655         Add a dependency on the "lock" module.
35657 2013-07-20  Daiki Ueno  <ueno@gnu.org>
35659         localecharset: make locale_charset thread-safe on Mac OS X
35660         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
35661         instead of MB_CUR_MAX.
35663 2013-07-20  Daiki Ueno  <ueno@gnu.org>
35665         gettext: update to version 0.18.3
35666         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
35667         require AC_PROG_SED to allow user to specify custom sed command when
35668         generating en@quot PO file.
35670 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
35672         bootstrap: use correct source when copying build-aux files
35673         * build-aux/bootstrap (gnulib_extra_files): This variable is
35674         relative to upstream gnulib layout, not downstream.
35676 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
35678         tmpdir: fix bug in VMS port
35679         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
35680         See Steven M. Schweda in
35681         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
35683 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
35685         tmpdir: port to VMS, to // != /, and to long dirs
35686         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
35687         __secure_getenv, so that we're more like the glibc version.
35688         All uses changed.
35689         (path_search): Don't put slash after directory if __VMS.
35690         Problem reported by Steven M. Schweda in
35691         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
35692         Simplify code to add slash; no need for a loop.
35693         Do not remove trailing slash from "//".
35694         Do not assume dlen <= INT_MAX.
35696 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35698         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
35699         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
35700         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
35701         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
35703         accept4, dup3, pipe2: port to Cygwin
35704         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
35705         * lib/accept4.c (accept4) [O_BINARY]:
35706         * lib/dup3.c (dup3) [O_BINARY]:
35707         * lib/pipe2.c (pipe2) [O_BINARY]:
35708         Use set_binary_mode, not setmode.
35709         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
35710         * modules/binary-io (Depends-on): Remove module indicator.
35711         These last two bits undo the previous change to pipe2 and binary-io.
35713 2013-07-09  Pádraig Brady  <P@draigBrady.com>
35715         mountlist: add support for deallocating returned list entries
35716         * lib/mountlist.c (free_mount_entry): A new exported function
35717         to deallocate a mount list entry.
35718         (read_file_system_list): Refactor to use the new deallocation function.
35719         Suggested by Anton Ovchinnikov.
35721 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
35723         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
35724         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
35725         * lib/stdalign.in.h (_Alignas, _Alignof):
35726         Port to FreeBSD 9.1, and to C11 and C++11.
35727         (_Alignas): Also support ICC.
35728         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
35729         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
35731 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35733         fnmatch: don't goto over declaration
35734         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
35735         undefined behavior for goto over a declaration.
35736         Problem reported by Charlie Brown in
35737         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
35739         pipe2: decouple from binary-io a bit
35740         This is for Emacs, which needs pipe2 but not binary-io.
35741         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
35742         * modules/binary-io (Depends-on): Add module indicator.
35744 2013-07-03  Eric Blake  <eblake@redhat.com>
35746         mgetgroups: relax license to LGPLv2+
35747         * modules/getugroups (License): Change from GPLv3+.
35748         * modules/mgetgroups (License): Likewise.
35749         * modules/getgroups (License): Change from LGPLv3+.
35751         xalloc-oversized: relax license to LGPLv2+
35752         * modules/xalloc-oversized (License): Change from GPLv3+.
35754         nproc: relax license to LGPLv2+
35755         * modules/nproc (License): Change from LGPLv3+.
35757         bootstrap: honor --no-git
35758         * build-aux/bootstrap: Don't even try to use git when user is
35759         pointing to a static checkout.
35761 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
35763         ignore-value: port to gcc -pedantic
35764         * lib/ignore-value.h (ignore_value):
35765         Port to gcc -pedantic, by using __extension__.
35766         Reindent as per usual gnulib style nowadays.
35767         Simplify GCC version check.
35769 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35771         extern-inline: port to gcc -std=c89
35772         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35773         Do not use __gnu_inline__ if pedantic and pre-C99.
35775 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
35777         doc: document extern-inline
35778         * doc/extern-inline.texi: New file.
35779         * doc/gnulib.texi (alloca-opt): Include it.
35780         * m4/extern-inline.m4: Move some comments to documentation,
35781         and others closer to what they describe.
35783         doc: chatter less
35784         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
35785         (updated-stamp): Use it.  This causes 'make' to output just
35786         one file name rather than zillions.
35788         fflush, fseeko: port to musl cross-compiles
35789         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
35790         on some implementation that (1) is not known to be buggy,
35791         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
35792         cross-compiled to so we can't easily check for lack of
35793         conformance.  This is for cross-compiling to musl.
35794         Reported by Rich Felker in
35795         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
35796         * m4/fclose.m4 (gl_FUNC_FCLOSE):
35797         * m4/fflush.m4 (gl_FUNC_FFLUSH):
35798         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
35799         Adjust to above change.
35800         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
35801         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
35802         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
35803         known not to work, or unknown.
35805 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
35807         msvc-inval: port to mingw-w64
35808         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
35809         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
35810         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
35812 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
35814         getcwd-lgpl: port to Tru64
35815         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
35816         Problem reported by Steven M. Schweda in
35817         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
35819         tests: port large-fd POSIX spawn tests to OS X
35820         Problem reported by Daiki Ueno in
35821         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
35822         * tests/test-posix_spawn_file_actions_addclose.c:
35823         * tests/test-posix_spawn_file_actions_adddup2.c:
35824         * tests/test-posix_spawn_file_actions_addopen.c:
35825         Include <limits.h>, for OPEN_MAX, if available.
35826         (big_fd): New static function.
35827         (main): Use it.
35829 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
35831         tests/nap.h: use an adaptive delay to avoid ctime update issues
35832         The recent change in nap.h (5191133e) decreased the probability of lost
35833         races to about a third, however such problems could still be observed
35834         in virtual machines and openSUSE's OBS.
35835         Before, nap() detected the needed time once empirically and then used
35836         that delay (together with a small correction multiplier) in further
35837         calls.  This problem has been reported and discussed several times,
35838         including guesses about possible kernel issues:
35839         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
35840         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
35841         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
35842         http://bugs.gnu.org/12820
35843         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
35844         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
35845         Now, nap() avoids the race alltogether by verifying on a reference
35846         file whether a timestamp difference has happened.
35847         * tests/nap.h (nap_fd): Define file descriptor variable for the
35848         witness file.
35849         (nap_works): Change return value to bool.  Change passing
35850         the old file's status by value instead of by reference as this function
35851         does no longer update that timestamp; rename the function argument from
35852         st to old_st.  Remove the local variables cdiff and mdiff because that
35853         function now returns true/false instead of the precise delay.
35854         (guess_delay): Remove function.
35855         (clear_tmp_file): Add new function to close and unlink the witness file.
35856         (nap): Instead of re-using the delay which has been calculated during
35857         the first call, avoid the race by actually verifying that a timestamp
35858         difference can be observed on the current file system.  Use an adaptive
35859         approach for the delay to minimize execution time.  Assert that the
35860         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
35861         = 2^31 - 1 = 2.1s.
35862         Use atexit to call clear_tmp_file when the process terminates.
35864 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
35866         sig2str: port to C++
35867         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
35868         Reported by Daniel J Sebald in
35869         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
35871 2013-05-30  Eric Blake  <eblake@redhat.com>
35873         docs: mention cygwin shortcoming in <sys/un.h>
35874         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
35876         vasnprintf: silence mingw compiler warning
35877         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
35879 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35881         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
35882         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
35883         This fixes a porting bug I recently reintroduced in regex, and
35884         some other instances that I discovered while testing the fix.
35885         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
35886         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
35887         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
35888         with an empty argument if this is a pedantic pre-C99 GCC.
35889         * lib/verify.h: Do not use _Static_assert if this is a pedantic
35890         pre-C11 GCC.
35892         regex: adapt to locking regime instead of depending on pthread
35893         Instead of depending on pthread, adapt to whatever thread
35894         modules are in use.  Problem reported by Ludovic Courtès in
35895         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
35896         and by Mats Erik Andersson in
35897         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
35898         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35899         Support either the 'lock' module, or the 'pthread' module, or
35900         no module.
35901         (lock_lock, lock_unlock): New macros.
35902         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
35903         * modules/lock, modules/pthread (configure.ac): Add module indicator.
35904         * modules/regex (Depends-on): Remove pthread.
35906 2013-05-22  Eric Blake  <eblake@redhat.com>
35908         getgroups: document portability issues
35909         * doc/glibc-functions/initgroups.texi (initgroups): Mention
35910         multithread safety.
35911         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
35912         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
35913         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
35914         getugroups.
35915         * doc/posix-functions/getgroups.texi (getgroups): Mention
35916         multithread safety and mgetgroups.
35918 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
35920         test-lchown, test-chown: also skip test if chown fails with EPERM
35921         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
35922         skip this test, to handle FAT file systems.
35923         * tests/test-chown.h (test_chown): Likewise.
35925 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35927         regex: fix dfa race in multithreaded uses
35928         Problem reported by Ludovic Courtès in
35929         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
35930         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35931         New macros.  All uses of __libc_lock_define, __libc_lock_init
35932         changed to use the first two of these.
35933         (__libc_lock_lock, __libc_lock_unlock): New macros, for
35934         non-glibc platforms.
35935         (struct re_dfa_t): Define the lock unconditionally.
35936         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
35937         '#ifdef _LIBC"s.
35938         * modules/regex (Depends-on): Add pthread, if we use the
35939         included regex.
35941         * lib/regcomp.c: Do actions that are not needed for glibc,
35942         but may be needed elsewhere.
35943         (regfree, re_compile_internal): Destroy the lock.
35944         (re_compile_internal): Check for lock-initialization failure.
35946         malloca: port to compilers that reject size-zero arrays
35947         This fixes a bug introduced in my previous patch.
35948         * lib/malloca.c (struct preliminary_header): Use an int
35949         rather than a character array of size int; that's simpler.
35950         (struct header): Remove, replacing with ...
35951         (union header): New type.  This avoids the need for declaring a
35952         character array of size zero, which is not allowed on some platforms.
35953         All uses changed.
35955 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35957         parse-datetime, tests: don't use "string" + int
35958         Recent versions of 'clang' complain about C source code that
35959         uses expressions of the form '"string literal" + integer',
35960         I guess on the theory that it's confusing for readers who are
35961         used to C++.  On those grounds I suppose it's OK to make this
35962         minor style change.
35963         * lib/parse-datetime.y (parse_datetime):
35964         * tests/test-fchdir.c (main):
35965         * tests/test-snprintf-posix.h (test_function):
35966         * tests/test-snprintf.c (main):
35967         * tests/test-vasnprintf-posix.c (test_function):
35968         * tests/test-vasnprintf.c (test_function):
35969         * tests/test-vsnprintf.c (main):
35970         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
35971         Rewrite '"str" + E' to '&"str"[E]'.
35973 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35975         argmatch: port to C++
35976         * lib/argmatch.h [__cplusplus]: Add extern "C".
35978         argp: typo fix
35979         * lib/argp-help.c: Typo in comment.
35981 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
35983         manywarnings: update for GCC 4.8.0
35984         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
35985         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
35986         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
35987         -Wmissing-noreturn, as they are duplicates of other warnings.
35988         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
35989         was documented to be flaky in earlier versions of GCC.
35991         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
35992         * tests/test-spawn.c (main):
35993         * tests/test-sys_socket.c (main):
35994         * tests/test-sys_wait.c (main):
35995         Don't have a switch value that isn't covered by a case.
35997         getaddrinfo-tests: port --enable-gcc-warnings to clang
35998         * tests/test-getaddrinfo.c (simple):
35999         Avoid casts from looser to stricter-aligned pointers.
36001         thread: port --enable-gcc-warnings to clang
36002         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
36003         Include <signal.h>, to pacify a warning about pthread_sigmask.
36005         stdio: use __REDIRECT for fwrite, fwrite_unlocked
36006         * lib/stdio.in.h (fwrite):
36007         When working around bug 11959, use __REDIRECT rather than '#define
36008         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
36009         fix the -Wunused-value issue with clang, and it works with GCC too.
36010         Problem with targeting reported by Eric Blake in
36011         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
36012         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
36013         debugging the fwrite issue.
36015         stdio: port --enable-gcc-warnings to clang
36016         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
36017         since the GCC workaround for fwrite does not pacify clang.
36019         sig2str: port --enable-gcc-warnings to clang
36020         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
36022         obstack: port --enable-gcc-warnings to clang
36023         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
36024         Avoid casts from looser to stricter-aligned pointers.
36026         memchr2: port --enable-gcc-warnings to clang
36027         * lib/memchr2.c (memchr2):
36028         Avoid casts from looser to stricter-aligned pointers.
36030         mbsstr: port --enable-gcc-warnings to clang
36031         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
36032         Avoid casts from looser to stricter-aligned pointers.
36034         malloca: port --enable-gcc-warnings to clang
36035         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
36036         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
36038         inttostr: port --enable-gcc-warnings to clang
36039         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
36041         warnings: port to clang
36042         Problem reported by Daniel P. Berrange via Eric Blake in
36043         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
36044         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
36045         (gl_WARN_ADD): Use it.
36047 2013-05-11  Jim Meyering  <meyering@fb.com>
36049         quotearg: do not read beyond end of buffer
36050         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
36051         end of an ARG for which no length was specified.  With an N-byte
36052         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
36053         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
36054         via coreutils' misc/sort-debug-keys.sh test and detected by running
36055         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
36056         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
36057         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
36058         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
36059         characters correctly."
36061 2013-05-11  Daiki Ueno  <ueno@gnu.org>
36063         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
36064         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
36065         compilation target is Mac OS X 10.6.
36066         Problem reported by parafin and Andoni Morales in
36067         <http://savannah.gnu.org/bugs/?37844> and
36068         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
36070 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
36072         mkdir-p: remove assumptions about umask and mode
36073         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
36074         umask is 0, or that MODE is a subset of MODE_BITS.
36076 2013-05-10  Eric Blake  <eblake@redhat.com>
36078         maint.mk: catch more abuse of HAVE_DECL in syntax-check
36079         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
36081 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
36083         deps: require Automake >= 1.9.6 in generated Makefile fragments
36085         That is the same minimal version required in the DEPENDENCIES file.
36086         Moreover, the old code generated a requirement of Automake >= 1.5,
36087         and that is an insanely outdated version.
36089         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
36090         * tests/havelib/rpathlx/Makefile.am: Likewise.
36091         * tests/havelib/rpathly/Makefile.am: Likewise.
36092         * tests/havelib/rpathlyx/Makefile.am: Likewise.
36093         * tests/havelib/rpathlz/Makefile.am: Likewise.
36094         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
36095         * tests/havelib/rpathx/Makefile.am: Likewise.
36096         * tests/havelib/rpathy/Makefile.am: Likewise.
36097         * tests/havelib/rpathz/Makefile.am: Likewise.
36099 2013-05-08  Eric Blake  <eblake@redhat.com>
36101         bootstrap: AC_INIT may have more than four parameters
36102         * build-aux/bootstrap (extract_package_name): Correctly extract
36103         non-empty tarname field.  Avoid range in regex.
36104         Based on a report by Sami Kerola <kerolasa@iki.fi>.
36106 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
36108         qacl: port to MS-Windows port of GNU Emacs
36109         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
36110         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
36111         port of GNU Emacs.  Problem reported by Eli Zaretskii in
36112         <http://bugs.gnu.org/14295#14>.
36114 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
36116         acl: include quote.h
36117         * lib/copy-acl.c: Include quote.h.
36118         * lib/set-acl.c: Likewise.
36120 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
36122         fchownat, renameat, unlinkat: update statat dependencies
36123         These modules use statat and lstatat, not fstatat; so depend on
36124         the statat module, which was split out recently from fstatat.
36125         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
36126         * modules/renameat: Likewise.  Also delete fstat.
36127         URL: http://bugs.gentoo.org/468790
36129 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
36131         Assume gnulib is checked out from Git, not CVS
36133         In fact, access to the gnulib repository through CVS has been
36134         disabled, or more precisely, got broken and was never restored; see:
36135         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
36137         Note that support for CVS is not removed completely and unthinkingly
36138         by this change: only support for CVS checkouts of gnulib itself is
36139         removed.  For example, the 'bootstrap' script still cater to .cvsingore
36140         files and CVS directories, for the benefit of those poor gnulib clients
36141         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
36143         * gnulib-tool: Simplify accordingly.
36144         * posix-modules: Likewise.
36145         * MODULES.html.sh: Likewise.
36146         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
36147         repository.
36148         * doc/gnulib-intro.texi: Likewise.
36149         * doc/gnulib-readme.texi: Likewise.
36150         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
36151         sample '.gitignore' file rather than a sample '.cvsignore'.
36152         * NEWS: Update.
36153         * m4/extensions.m4: While at it, remove a comment mistakenly referring
36154         to "CVS Autoconf" rather than "git Autoconf".
36156 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
36158         utimensat-tests, etc.: try to fix some races
36159         Problem reported by Bernhard Voelker in
36160         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
36161         I don't know whether this patch fixes that race condition, but it
36162         fixes *some* race conditions, so it should be a win.
36163         * modules/chown-tests (Depends-on):
36164         * modules/fchownat-tests (Depends-on):
36165         * modules/fdutimensat-tests (Depends-on):
36166         * modules/futimens-tests (Depends-on):
36167         * modules/lchown-tests (Depends-on):
36168         * modules/stat-time-tests (Depends-on):
36169         * modules/utimens-tests (Depends-on):
36170         * modules/utimensat-tests (Depends-on):
36171         Depend on nanosleep, not usleep.
36172         * modules/chown-tests (test_chown_LDADD):
36173         * modules/lchown-tests (test_lchown_LDADD):
36174         * modules/stat-time-tests (test_stat_time_LDADD):
36175         New macro.
36176         * modules/fchownat-tests (test_fchownat_LDADD):
36177         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
36178         * modules/futimens-tests (test_futimens_LDADD):
36179         * modules/utimens-tests (test_utimens_LDADD):
36180         * modules/utimensat-tests (test_utimensat_LDADD):
36181         Add $(LIB_NANOSLEEP).
36182         * modules/stat-time-tests (Files): Add tests/nap.h.
36183         * tests/nap.h: Include <limits.h>, for INT_MAX.
36184         (lt_mtime): Remove.
36185         (diff_timespec): New function.
36186         (get_stat): Rename from get_mtime.  All callers changed.
36187         (nap_works): Determine the needed delay by inspecting the
36188         file system's timestamp jumps; this should be more reliable.
36189         Look at both mtime and ctime, and take the maximum of the two jumps.
36190         (nap_works, guess_delay):
36191         Return a nanosecond count, not a microsecond count.
36192         All callers changed.
36193         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
36194         failure.
36195         (nap): Multiply the guess by 1.125, to accommodate the case where
36196         the file system's clock is a bit slower than nanosleep's clock.
36197         * tests/test-stat-time.c (BASE): New macro.
36198         Include nap.h.
36199         (nap): Remove; nap.h now defines this.  This removes a duplicate
36200         implementation of 'nap'.
36202         utimens, utimensat: work around Solaris UTIME_OMIT bug
36203         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
36204         Linux kernel 2.6.32 does.  Work around it in the same way.
36205         * doc/posix-functions/futimens.texi (futimens):
36206         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
36207         * lib/utimens.c (fdutimens, lutimens):
36208         * lib/utimensat.c (rpl_utimensat): Work around the bug.
36210         gettext: now it's your responsibility to add -I$(top_builddir)/intl
36211         Formerly, it was your responsibility to do this for all Makefile.ams
36212         other than Gnulib's.  Now it's your responsibility to do it for
36213         Gnulib's Makefile.am, too.
36214         * NEWS: Document this.
36215         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
36217         acl: include errno.h to get errno
36218         Reported by Daiki Ueno in
36219         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
36220         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
36222 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
36224         tests: don't assume getdtablesize () <= 10000000
36225         * modules/cloexec-tests:
36226         * modules/dup2-tests:
36227         * modules/dup3-tests:
36228         * modules/nonblocking-tests:
36229         * modules/posix_spawn_file_actions_addclose-tests:
36230         * modules/posix_spawn_file_actions_adddup2-tests:
36231         * modules/posix_spawn_file_actions_addopen-tests:
36232         * modules/unistd-safer-tests:
36233         Depend on the getdtablesize module.
36234         * tests/test-cloexec.c:
36235         * tests/test-dup-safer.c:
36236         * tests/test-dup2.c:
36237         * tests/test-dup3.c:
36238         * tests/test-fcntl.c:
36239         * tests/test-nonblocking.c:
36240         * tests/test-posix_spawn_file_actions_addclose.c:
36241         * tests/test-posix_spawn_file_actions_adddup2.c:
36242         * tests/test-posix_spawn_file_actions_addopen.c:
36243         Don't assume getdtablesize () <= 10000000.
36245 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
36247         extern-inline: work around bug in Sun c99
36248         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
36249         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
36251 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
36253         qacl: new module, broken out from the acl module
36254         This is for GNU Emacs, which wants the acl functions but does
36255         not want 'error' invoked when they fail.
36256         * lib/acl-internal.h: Do not include error.h, quote.h.
36257         (ENOSYS, ENOTSUP): Remove; no longer needed.
36258         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
36259         * lib/acl.h: Include <stdbool.h>.
36260         (acl_errno_valid): New function.
36261         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
36262         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
36263         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
36264         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
36265         (ACL_INTERNAL_INLINE): Remove; no longer needed.
36266         * lib/file-has-acl.c (file_has_acl):
36267         * lib/qcopy-acl.c (qcopy_acl):
36268         * lib/qset-acl.c (qset_acl):
36269         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
36270         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
36271         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
36272         lib/file-has-acl.c, m4/acl.m4 to qacl module.
36273         Add lib/set-acl.c.
36274         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
36275         Add qacl.
36276         (configure.ac): Move gl_FUNC_ACL to qacl module.
36277         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
36278         Rename set-mode-acl.c to set-acl.c.
36279         * lib/acl-errno-valid.c: New file.
36280         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
36281         copy_acl function remains in copy-acl.c.
36282         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
36283         (_): Remove; not needed.
36284         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
36285         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
36286         * modules/qacl: New file, moved from the old modules/acl.
36287         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
36288         Remove set-mode-acl.c, copy-acl.c.
36289         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
36291         alignof, intprops, malloca: port better to IBM's C compiler
36292         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
36293         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
36294         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
36296 2013-04-25  Daiki Ueno  <ueno@gnu.org>
36298         wctype-h: fix gettext link error on mingw
36299         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
36300         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
36301         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
36302         rpl_towupper and rpl_towupper.
36304 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
36306         regex-tests, regex: allow glibc re_search behavior
36307         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
36308         re_search input data to make the multi-character collating element
36309         in it clearly visible, and treat re_search return code 0 as valid.
36310         * m4/regex.m4 (gl_REGEX): Likewise.
36312 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36314         stdalign: doc fix
36315         * doc/posix-headers/stdalign.texi (stdalign.h):
36316         Gnulib doesn't support '_Alignof expr'.
36318 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36320         stdalign: port to stricter ISO C11
36321         ISO C11 says that _Alignof's operand must be a parenthesized type.
36322         Problem reported by Eli Zaretskii in
36323         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
36324         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
36325         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
36327 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
36329         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
36330         Problem reported by Marco Atzeri in
36331         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
36332         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
36333         Simply delegate to the system <sys/select.h> in this case too.
36334         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
36335         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
36336         be needed on Solaris either.
36337         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
36338         Simply delegate to the system <sys/time.h> in this case.
36340 2013-03-19  Karl Berry  <karl@gnu.org>
36342         * build-aux/gnupload: check for erroneous (with gnupload) use of
36343         ftp-upload.gnu.org, tweak help.
36345 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36347         copy-file, rpmatch: fix problems found by cppcheck
36348         Reported by Arno Onken in
36349         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
36350         * lib/rpmatch.c (try): Fix memory leak.
36351         * lib/copy-file.c: Include "ignore-value.h".
36352         (qcopy_file_preserving): Ignore chown value.
36353         * modules/copy-file (Depends-on): Add ignore-value.
36355 2013-01-27  Jim Meyering  <jim@meyering.net>
36357         prefix-gnulib-mk: give better diagnostics
36358         * build-aux/prefix-gnulib-mk: Don't just "die".
36359         Give better diagnostics upon failure.
36361 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
36363         putenv: port to Solaris 10
36364         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
36365         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
36366         is not what is wanted here.
36367         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
36368         declaration, not for its existence.
36370 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
36372         mktime: fix configure typo
36373         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
36375 2013-03-12  Eric Blake  <eblake@redhat.com>
36377         regex-tests: skip UTF-8 test on mingw
36378         * modules/regex-tests (Depends-on): Add localcharset.
36379         * tests/test-regex.c (main): Use it to skip test on mingw.
36381 2013-03-11  Eric Blake  <eblake@redhat.com>
36383         tests: make it easier to bypass alarm time in debugger
36384         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
36385         * tests/test-memmem.c (main): Likewise.
36386         * tests/test-passfd.c (main): Likewise.
36387         * tests/test-ptsname.c (main): Likewise.
36388         * tests/test-ptsname_r.c (main): Likewise.
36389         * tests/test-strcasestr.c (main): Likewise.
36390         * tests/test-strstr.c (main): Likewise.
36392         regex: port to mingw's recent addition of undeclared alarm
36393         * doc/posix-functions/alarm.texi (alarm): Document that alarm
36394         exists but still doesn't work in newer mingw.
36395         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
36396         not existence.  Ensure SIGALRM is not trapped.
36397         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
36398         * m4/regex.m4 (gl_REGEX): Likewise.
36399         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
36400         * tests/test-regex.c (main): Use correct probe for alarm.
36402         putenv: avoid compilation warning on mingw
36403         * lib/putenv.c (_unsetenv): Protect variable declaration.
36404         (putenv): Fix indentation.
36406 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
36408         unistd: don't prevent Tru64 Unix from using gnulib strtod.
36409         * lib/unistd.in.h: be careful not to include un-needed system
36410         stdlib.h from here, because that prevents gnulib stdlib.h from
36411         defining rpl_strtod correctly.
36413 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
36415         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
36416         changesets, but for the 'precision 0' test.
36417         * tests/test-vasprintf-posix.c (test_function): Don't insist on
36418         round-to-even, since POSIX says rounding is implementation-defined
36419         and OS X 10.8.2 rounds 1.51 to 1 here.
36421         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
36422         changeset.
36423         * tests/test-vasprintf-posix.c (test_function): Don't insist on
36424         round-to-even, since POSIX says rounding is implementation-defined
36425         and OS X 10.8.2 rounds 1.5 to 1 here.
36427 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36429         vasnprintf-posix-tests: allow rounding 1.5 to 1
36430         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
36431         round-to-even, since POSIX says rounding is implementation-defined
36432         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
36433         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
36435         bootstrap: port to FreeBSD
36436         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
36437         that treat '--' differently.  Reported by Mats Erik Andersson in
36438         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
36440 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
36442         regex: rename remaining __attribute calls to __attribute__.
36443         2012-02-25 changed definition of __attribute, but left some uses
36444         unchanged, preventing compilation of regex module on most non-gcc
36445         environments.
36446         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
36447         (lookup_collation_sequence_value, build_range_exp)
36448         (build_collating_symbol): Set attributes with newly renamed
36449         __attribute__ decorator.
36450         * lib/regex_internal.c (re_string_peek_byte_case)
36451         (re_node_set_compare, re_node_set_contains): Likewise.
36452         * lib/regexec.c (acquire_init_state_context): Likewise.
36454 2013-03-06  Bruno Haible  <bruno@clisp.org>
36456         execute: Revert last change, but use a different condition.
36457         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
36458         on Windows.
36460 2013-03-05  Eric Blake  <eblake@redhat.com>
36462         execute: drop dead code
36463         * lib/execute.c (nonintr_close, nonintr_open): Delete.
36465 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
36467         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
36468         * m4/non-recursive-gnulib-prefix-hack.m4
36469         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
36470         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
36471         <http://bugs.gnu.org/10305#237>.
36473 2013-03-04  Eric Blake  <eblake@redhat.com>
36475         test-getsockopt: avoid compiler warning
36476         * tests/test-getsockopt.c (includes): Ensure close is declared.
36478 2013-03-02  Bruno Haible  <bruno@clisp.org>
36480         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
36481         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
36483 2013-03-02  Bruno Haible  <bruno@clisp.org>
36485         gettext: Update to version 0.18.2.
36486         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
36487         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
36488                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
36490 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36492         regex: merge patches from libc
36494         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
36495         * lib/regex_internal.h (__attribute__): Rename from __attribute.
36496         All uses changed.
36497         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
36498         (re_string_wchar_at, re_string_elem_size_at):
36499         Mark function as possibly unused.
36501         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
36502         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
36503         elements compare against the byte sequence of it, not its name.
36505 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36507         putenv: port better to native Windows
36508         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
36509         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
36510         (_unsetenv): Use _putenv if available.
36511         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
36512         a bit less likely to cause damage.
36513         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
36514         Fix the wrong value with SetEnvironmentVariable.
36515         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
36516         code better.
36518 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36520         regex: ignore old-style-definition warnings
36521         * lib/regex.c: Add pragma to ignore these warnings.
36522         Problem reported for GNU tar by Pavel Raiskup.
36524 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
36526         getcwd: support coreutils better
36527         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
36528         but this might not be correct in coreutils, which disables
36529         the raw decl checks.  Problem reported by Nagendra in
36530         <http://bugs.gnu.org/10305#192>.
36531         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
36532         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
36533         Test the getcwd function, not any macro, since getcwd.c wants the
36534         function.
36535         * m4/getcwd.m4 (gl_FUNC_GETCWD):
36536         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
36537         compile, as might happen if there's a macro but no function.
36539         strtod: support coreutils better
36540         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
36541         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
36542         disables the raw decl checks.  This assumes there is an underlying
36543         strtod, but that's a safe assumption these days.
36544         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
36546         mountlist: port to HP NonStop
36547         Reported by Joachim Schmitz in
36548         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
36549         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
36550         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
36552 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
36554         extern-inline: avoid compilation error with HP-UX cc
36555         Reported by Richard Lloyd in
36556         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
36557         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
36558         Suppress extern inline with HP-UX cc.  This should be safe,
36559         though it may hurt performance.  Perhaps someone with some HP-UX
36560         experience can come up with a higher-performance fix.
36562 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36564         putenv: fix heap corruption with mixed putenv/_putenv
36565         Problem reported by Michael Goffioul in
36566         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
36567         * lib/putenv.c (putenv) [HAVE__PUTENV]:
36568         Rely on _putenv to allocate the new environment.
36569         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
36570         * modules/putenv (configure.ac): Use it.
36572 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
36574         unsetenv etc.: port to Solaris 11 + GNU Emacs
36575         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
36576         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
36577         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
36578         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
36579         idea but is too painful to fix right now), and without this gnulib
36580         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
36581         compiling unsetenv.c on Solaris 11.  Fix the problem for
36582         unsetenv.c, and fix other similar occurrences.
36584 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
36586         secure_getenv: fix C++ declaration typo
36587         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
36588         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
36589         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
36591 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
36593         careadlinkat: stop exporting careadlinkatcwd
36594         Only Emacs used it directly, and Emacs no longer needs it.
36595         * NEWS: Document this simplification.
36596         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
36597         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
36598         for readlink.
36599         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
36600         Don't include stdlib.h; no longer needed.
36601         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
36602         * lib/relocwrapper.c: Adjust comment to match new dependencies.
36603         * modules/areadlink (Depends-on): Add readlink.
36604         (Maintainer): Add self.
36605         * modules/careadlinkat (Depends-on): Remove readlink.
36607         extensions: port better to HP-UX
36608         This is merged from git Autoconf.
36609         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
36610         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
36611         so that it's compatible with the value used when compiling.
36613         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
36614         Problem reported by Mats Erik Andersson in
36615         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
36616         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
36617         openpty function exists, not merely when we intend to replace it.
36618         This corrects the 2013-01-31 patch, which mistakenly defined
36619         HAVE_OPENPTY even on hosts that lacked it.
36621 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
36623         secure_getenv: fix include typo
36624         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
36626         secure_getenv: port better to FreeBSD and Solaris
36627         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
36628         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
36629         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
36630         This works better on BSDish platforms.
36631         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
36632         Test for issetugid if __secure_getenv is missing.
36634 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
36636         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
36637         Some of these changes are merged in from git Autoconf.
36638         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
36639         When deciding whether to define _XOPEN_SOURCE, inspect the
36640         preprocessor macro __hpux instead of the more-heavyweight
36641         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
36642         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
36643         as the key for __EXTENSIONS__.
36645         unistd: avoid namespace pollution on non-glibc systems
36646         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
36647         This avoids namespace pollution on non-glibc systems, by causing
36648         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
36649         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
36650         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
36652 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36654         tmpdir: use secure_getenv
36655         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
36656         Define to secure_getenv, not getenv.
36657         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
36658         as that's now secure_getenv's job.
36659         * modules/tmpdir (Depends-on): Add secure_getenv.
36661         tempname: use secure_getenv
36662         * lib/tempname.c (__secure_getenv) [!_LIBC]:
36663         Define to secure_getenv, not getenv.
36664         * modules/tempname (Depends-on):
36665         Add secure_getenv.
36667         secure_getenv: new module
36668         * MODULES.html.sh (Extra functions based on ANSI C 89):
36669         Add secure_getenv.
36670         * doc/glibc-functions/secure_getenv.texi: New file.
36671         * doc/gnulib.texi: Include it.
36672         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
36673         New files.
36674         * lib/stdlib.in.h (secure_getenv): New decl.
36675         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
36676         * modules/stdlib (stdlib.h):
36677         Add secure_getenv checks.
36679 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
36681         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
36682         Reported for OS X 10.8.2 by Assaf Gordon in
36683         <http://bugs.gnu.org/13516>.
36684         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
36685         !HAVE_OPENAT && !HAVE_FDOPENDIR.
36686         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
36687         so that they can be kept in sync more easily.  Avoid PATH_MAX
36688         test on the Hurd.  Sync from test-getcwd.c for errno tests after
36689         mkdir or chdir failure.
36690         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
36691         lib/getcwd.c.
36692         (test_abort_bug): Do not test for the deep directory bug unless we
36693         have openat support.  Avoid PATH_MAX test on the Hurd.
36695         regex-tests, regex: fix bug: memset undeclared
36696         * tests/test-regex.c: Don't include regex.h twice.  Include
36697         string.h, to declare memset.  Christensen's report also mentioned
36698         this issue.
36699         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
36700         test-regex.c, to avoid future problems like this.  Remove
36701         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
36702         twice.
36704         regex-tests: fix link errors on older Solaris
36705         These need to link with @LIBINTL@ to get libintl_gettext.
36706         Problem reported by Tom G. Christensen in
36707         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
36708         * modules/regex-tests (test_regex_LDADD): New macro.
36710 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
36712         regex-tests: new module
36713         * modules/regex-tests, tests/test-regex.c: New files.
36715         regex: fix off-by-one error in configure test
36716         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
36718 2013-01-31  Eric Blake  <eblake@redhat.com>
36720         regex: avoid infinite configure test
36721         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
36723 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
36725         openpty: fix bug where HAVE_OPENPTY wasn't defined
36726         See the thread starting at:
36727         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
36728         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
36729         openpty function exists, not merely when we intend to replace it.
36731 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
36733         sys_time: port to Solaris 2.6
36734         There is a circularity problem on Solaris 2.6, where <time.h> includes
36735         <sys/time.h> for struct timespec.  The include nesting is gnulib
36736         <time.h>, system <time.h>, gnulib <sys/time.h>, system
36737         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
36738         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
36739         <sys/siginfo.h>; the last, innermost file needs struct
36740         timestruc_t, which is defined in <sys/time.h>, which has not been
36741         fully parsed.  Problem reported by Tom G. Christensen in
36742         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
36743         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
36744         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
36745         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
36746         uses split double-inclusion guards.
36748 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
36750         regex: test for buffer overrun
36751         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
36752         for the just-fixed regex bug.
36754 2013-01-29  Andreas Schwab  <schwab@suse.de>
36756         regex: fix buffer overrun in regexp matcher [BZ #15078]
36757         * lib/regexec.c (extend_buffers): Add parameter min_len.
36758         (check_matching): Pass minimum needed length.
36759         (clean_state_log_if_needed): Likewise.
36760         (get_subexp): Likewise.
36762 2013-01-28  Pádraig Brady  <P@draigBrady.com>
36764         mountlist: don't consider "devtmpfs" as dummy
36765         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
36766         as there is storage associcated with it.
36768 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
36770         futimens-tests, utimens-tests: Depend on gettext.
36771         This works around a problem introduced in my 2013-01-12 patch,
36772         which added @LIBINTL@ to these modules.
36773         * modules/futimens-tests (Depends-on):
36774         * modules/utimens-tests (Depends-on): Add gettext.
36776 2013-01-26  Eric Blake  <eblake@redhat.com>
36778         test-getpeername: fix typo
36779         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
36781 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
36783         bootstrap: remove the need for a sorted .gitignore file
36784         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
36785         rename to insert_if_absent(), so that we don't need or generate
36786         a sorted .gitignore file.  We do require a .gitignore with no
36787         existing duplicate entries and enforce that.
36788         (sort_patterns): Remove this function as we now use the simpler
36789         technigue of inserting blacklist entries at the top of the file,
36790         assuming gnulib won't be inserting !whitelist entries.
36792 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36794         readlinkat: don't depend on gl_FUNC_OPENAT
36795         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
36796         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
36797         renameat.m4, symlinkat.m4; but one thing at a time.
36799         statat: new module, split out from fstatat
36800         GNU Emacs needs the POSIX-specified fstatat, but not the
36801         gnulib-specified statat and lstat.  Split the latter two into a
36802         new module 'statat'.
36803         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
36804         * lib/openat.h, lib/statat.c (STATAT_INLINE):
36805         Rename from FSTATAT_INLINE. All uses changed.
36806         * modules/fstatat (Files): Remove lib/statat.c.
36807         (gl_MODULE_INDICATOR([fstatat])): Remove.
36808         (lib_SOURCES): Remove.
36809         (Maintainer): Add self.
36810         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
36811         * tests/test-fstatat.c (BASE): Don't define if already defined.
36812         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
36814 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36816         tests: don't assume fd 99 is closed
36817         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
36818         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
36819         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
36820         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
36821         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
36822         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
36823         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
36824         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
36825         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
36826         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
36827         * tests/test-fwrite.c, tests/test-getpeername.c:
36828         * tests/test-getsockname.c, tests/test-getsockopt.c:
36829         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
36830         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
36831         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
36832         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
36833         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
36834         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
36835         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
36836         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
36837         * tests/test-unlinkat.c, tests/test-unlockpt.c:
36838         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
36839         Close file descriptor 99, instead of assuming it's already closed.
36841 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
36843         stpncpy: port to OS X 10.8
36844         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
36845         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
36847 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
36849         unistd: port to recent mingw
36850         * lib/unistd.in.h: Remove special invocation convention for mingw,
36851         which breaks for the latest mingw version.  See John W. Eaton in
36852         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
36854         largefile: port better to Mac OS X 10.5
36855         This patch is backported from Autoconf git.
36856         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
36857         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
36858         with ino_t size being different for configuration time versus
36859         build/run time.  Problem reported by PHO in
36860         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
36862 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36864         doc: clarify -Werror
36865         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
36866         clarify that it's intended for developers, not for ordinary builds,
36867         and mention --enable-gcc-warnings as one possible use.
36869 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
36871         stdint: fix build with Android's Bionic fox x86
36872         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
36873         was already included as _SSIZE_T_DEFINED_ might also be defined
36874         in include/machine/_types.h, which is included by stdio.h
36876 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
36878         net_if-tests: port to Solaris 7 + GCC 3.4.6
36879         Problem reported by Tom G. Christensen in
36880         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
36881         * tests/test-net_if.c (ni): Move to next the code that uses it,
36882         so that it's declared only if needed.
36884 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36886         net_if-tests: port to older Solaris
36887         Problem reported by Tom G. Christensen in
36888         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36889         * modules/net_if-tests (NET_IF_LIB): New substitution.
36890         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
36891         (HAVE_IF_NAMEINDEX): New C macro.
36892         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
36894         system-quote-tests: port to older Solaris
36895         Problem reported by Tom G. Christensen in
36896         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36897         * tests/test-system-quote-child.c (fopen, fread): Undef.
36899         c-xvasprintf etc.: fix link errors on older Solaris
36900         These need to link with @LIBINTL@ to get libintl_gettext.
36901         Problem reported by Tom G. Christensen in
36902         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36903         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
36904         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
36905         * modules/futimens-tests (test_futimens_LDADD):
36906         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
36908 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36910         locale: port to Solaris 2.6 and 7 + GNU gettext
36911         * lib/locale.in.h: Just include_next <locale.h> when
36912         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
36913         when combining the localename module with GNU gettext 0.18.2.
36914         Problem reported by Tom G. Christensen in
36915         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
36917 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36919         stdlib: port to Solaris 2.6
36920         Also, the code worked on Solaris 7 through 9 only by accident.
36921         Problem reported by Tom G. Christensen in
36922         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
36923         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
36924         simply include the system stdlib.h.
36925         * lib/getopt.in.h (__need_system_stdlib_h):
36926         * lib/pthread.in.h (__need_system_stdlib_h):
36927         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
36928         Define when including <stdlib.h>, to avoid problems at least for
36929         the pthread case on Solaris 2.6 and 7.  These .h files can get by
36930         with the system stdlib.h.
36932 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
36934         doc: update main copyright year
36935         * doc/gnulib.texi: Update copyright date.
36937         doc: improve ISO 8601 discussion
36938         * doc/parse-datetime.texi (Combined date and time of day items):
36939         Specify more carefully what formats are supported and what is
36940         done with excess precision.
36942 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36944         doc: avoid small caps
36945         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
36946         they're more trouble than they're worth.  Suggested by Karl Berry
36947         in <http://bugs.gnu.org/13360>.
36949         regex: conform to strict C
36950         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
36951         From Aharon Robbins.
36953         gnulib-tool: fix incompatibility with autopoint 0.18.2
36954         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
36955         Problem reported by Tom G. Christensen in
36956         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
36958 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36960         fprintftime: bring back and reword fwrite comment
36961         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
36963         stdio: remove now-unnecessary stdio.c
36964         Since stdio.in.h no longer uses inline functions, we no longer
36965         need to compile the extern versions.
36966         * lib/stdio.c: Remove.
36967         * modules/stdio (Files): Remove lib/stdio.c.
36968         (lib_SOURCES): Remove.
36970         unicodeio: depend on stdio, not ignore-value
36971         * lib/unicodeio.c: Do not include ignore-value.h.
36972         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
36973         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
36975         fprintftime: depend on stdio, not ignore-value
36976         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
36977         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
36978         since the stdio module arranges to silence that warning now.
36979         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
36981 2012-10-04  Simon Josefsson  <simon@josefsson.org>
36983         stdint-tests: Fix expanded-before-required-warning.
36984         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
36986 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
36988         fwrite: silence __wur only for older glibc versions
36989         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
36990         This will help us remove this workaround some time in the far future.
36992 2013-01-03  Eric Blake  <eblake@redhat.com>
36994         fwrite: silence __wur without using inline
36995         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
36996         just gcc, and in a way that avoids inline issues.
36997         * modules/stdio (Depends-on): Drop extern-inline.
36999 2013-01-03  Jim Meyering  <jim@meyering.net>
37001         update-copyright: avoid copyright notice date corruption
37002         Given a sequence of copyright year numbers in which the final
37003         one was a two-digit number that happened to be a substring of
37004         a preceding four-digit year number, we would mistakenly update
37005         the substring (from two- to four-digit) rather than the two-digit
37006         number at the end, which, combined with the addition of the current
37007         4-digit year number would yield two 5-digit year numbers, e.g.,
37008         here, it would convert the first "99" to "1999, 2013" rather than
37009         the final one:
37010           1991, 99
37011           11999, 20131, 1999
37012         * build-aux/update-copyright: Tighten a regexp.
37013         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
37014         Reported by Joseph Myers in
37015         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
37017 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
37019         regex: omit needless signed-pointer casts
37020         * lib/regcomp.c (build_charclass, build_charclass_op):
37021         Use char *, not unsigned char *, for class name and extra.
37022         The char values are always nonnegative so there's no need to
37023         insist on unsigned char * here, and using char * removes the need
37024         for casts.  Reported by Aharon Robbins in
37025         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37027         regex: support Gawk, which never uses alloca
37028         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
37029         Do not include in this case.  Gawk doesn't supply a substitute
37030         alloca.h and doesn't need one.
37032         regex: port __libc_lock_define usage to C89
37033         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
37034         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
37035         does not conform to C89, as it has an empty macro argument.
37036         Reported by Aharon Robbins in
37037         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37039 2013-01-01  Eric Blake  <eblake@redhat.com>
37041         maint: update all copyright year number ranges
37042         Run "make update-copyright".
37044         version-etc: bump copyright year reported in --version
37045         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
37047 2012-12-31  Eric Blake  <eblake@redhat.com>
37049         sigprocmask-tests: skip test if pid is unexpectedly large
37050         * tests/test-sigprocmask.c (main): Add range check.
37052         git-version-gen: avoid test -z portability glitch
37053         * build-aux/git-version-gen: Prefer portable test spelling, since
37054         git-version-gen is run on more than just developer machines.
37056 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
37058         git-version-gen: add --fallback option to use if git is not present
37059         * build-aux/git-version-gen: Add support for the new option --fallback,
37060         which comes into play when there is no $tarball_version_file and
37061         git is not working.
37062         (scriptversion): Update.
37064         maint.mk: handle missing git with more grace
37065         * top/maint.mk (no-submodule-changes, public-submodule-commit):
37066         Quietly proceed if git is not present.
37068 2012-12-31  Eric Blake  <eblake@redhat.com>
37070         dup2: work around cygwin bug
37071         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
37072         * lib/dup2.c (rpl_dup2): Work around it.
37073         * doc/posix-functions/dup2.texi (dup2): Document it.
37075 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
37077         regex: remove unnecessary dependency on localcharset.h
37078         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
37079         hasn't been needed for years.
37080         * modules/regex (Depends-on): Remove localcharset.
37082         regex: revert single-byte change
37083         * lib/regexec.c (check_node_accept_bytes): Revert previous change
37084         to this function.  This was alredy fixed in a different way, at
37085         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
37086         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
37087         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
37089         regex: simplify based on Gawk version
37090         * lib/regex_internal.c (re_dfa_add_node): Simplify.
37091         Reported by Aharon Robbins in
37092         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37094 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
37096         regex: check that pattern char is single-byte
37097         Reported by Aharon Robbins in
37098         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37099         * lib/regexec.c (check_node_accept_bytes):
37100         Return 0 if the pattern string has a multibyte character here.
37102         regex: implement rational ranges
37103         Reported by Aharon Robbins in
37104         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37105         * lib/regcomp.c (build_range_exp) [!_LIBC]:
37106         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
37107         Implement rational ranges.
37109         regex: avoid redefining __wctype
37110         Reported by Aharon Robbins in
37111         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37112         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
37113         #undef before defining.
37115         regex: port to hosts where malloc (0) == NULL
37116         Reported by Aharon Robbins in
37117         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37118         * lib/regex_internal.c (re_node_set_alloc):
37119         Don't assume that malloc (0) yields nonnull.
37120         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
37121         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
37122         * modules/regex (Files): Add m4/eealloc.m4.
37124         regex: port to C89
37125         Reported by Aharon Robbins in
37126         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
37127         * lib/regcomp.c (init_word_char): Declaration before statement.
37129         regex: merge glibc changes
37130         Also, copy the license wording from glibc.  This simplifies
37131         merging changes.  gnulib-tool will change the wording to GPL as
37132         appropriate, when importing it to other packages.  The only
37133         glibc change made since the last merge, which needs merging, is:
37134         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
37135         * lib/regex_internal.h (gettext): Remove use of INTUSE.
37137         * users.txt: Add Emacs.
37139         doc: omit mention of version when not needed
37140         * doc/gnulib-intro.texi (Portability and Application Code):
37141         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
37142         Don't mention particular dates or versions when not necessary, so
37143         that the documentation won't go out of date so quickly.
37145         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
37147 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
37149         bootstrap: pass --force to autoreconf.
37150         * build-aux/bootstrap (AUTORECONFFLAGS): New.
37151         Add "--force" so that Automake's ylwrap and other such tools
37152         be updated at each bootstrap invocation.
37153         Use it.
37155 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
37157         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
37158         The earlier patch forgot to update one of the #if conditions, causing
37159         a problem on Debian testing i386 reported by Mats Erik Andersson
37160         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
37161         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
37162         (__argp_fmtstream_puts, argp_fmtstream_puts)
37163         (__argp_fmtstream_write, argp_fmtstream_write)
37164         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
37166         * doc/gnulib-readme.texi: Minor fixups.
37167         (Portability guidelines): Modernize URLs.  Remove some repetition.
37168         (Indent with spaces not TABs): Reword to avoid too-long lines.
37169         Remove some '@ifset standalone' stuff that isn't used.
37171         * doc/gnulib-readme.texi (Portability guidelines):
37172         ctype.h, not ctime.h.
37174         Correct name of POSIX.1-2001.
37175         * doc/posix-functions/fgetc.texi (fgetc):
37176         * doc/posix-functions/fgets.texi (fgets):
37177         * doc/posix-functions/fread.texi (fread):
37178         * doc/posix-functions/fscanf.texi (fscanf):
37179         * doc/posix-functions/getc.texi (getc):
37180         * doc/posix-functions/getchar.texi (getchar):
37181         * doc/posix-functions/scanf.texi (scanf):
37182         POSIX.1-2001, not POSIX-2001.
37184         doc: move README into manual
37185         * README: Move contents to new file doc/gnulib-readme.texi.
37186         Replace with a one-line summary.
37187         * doc/gnulib.texi (Brief Overview): New section,
37188         with old intro preface.  Include gnulib-readme.texi for contents.
37189         (Philosophy): Rename from "Introduction", since this
37190         section no longer introduces the rest.  Write a new preface.
37191         * doc/gnulib-readme.texi: New file, with the old contents of
37192         README texinfo-ized.  This way, the README info appears
37193         in the online and printed manual.
37195 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
37197         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
37198         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
37199         c_vasprintf() prototype.
37201 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
37203         c-vasprintf: Fix "empty declaration" warning reported by GCC.
37204         * lib/c-vasprintf.h: Remove stray semicolon.
37206 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
37208         gettext: avoid obsolete macro AM_PROG_MKDIR_P
37209         It is obsolete and is planned to be removed from Automake 1.14; see
37210         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
37211         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
37212         (installdirs-data, installdirs-data-yes):
37213         Use $(MKDIR_P), not $(mkdir_p).
37214         * m4/intl.m4 (AM_INTL_SUBDIR):
37215         * m4/po.m4 (AM_PO_SUBDIRS):
37216         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
37218 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
37220         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
37221         On this platform, we are not optimizing but we are using
37222         the substitute for extern inlines, so compile as if
37223         C99-style extern inline, or a substitute, is available.
37224         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
37225         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
37226         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
37227         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
37228         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
37229         Declare as ARGP_FS_EI, not as extern.
37230         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
37231         (__option_is_short, _option_is_end, __option_is_end)
37232         [!_LIBC && __USE_EXTERN_INLINES]:
37233         Declare as ARGP_EI, not as extern.
37235 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
37237         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
37238         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
37239         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
37240         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
37241         ...), as the latter is fatal with older Autoconfs.
37242         Problem reported and fix suggested by Eric Blake in thread starting at
37243         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
37245 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
37247         AC_PROG_MKDIR_P: don't workaround if not buggy
37248         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
37249         Define only for Autoconf versions before 2.62.
37250         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
37251         undocumented m4_PACKAGE_VERSION, for consistency with the
37252         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
37253         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
37254         was introduced in 2.62.
37256 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
37258         New 'c-*printf' modules for formatted output in C locale.
37260         New module 'c-vasnprintf'.
37261         * modules/c-vasnprintf: New file.
37262         * lib/c-vasnprintf.c: New file.
37263         * lib/c-vasnprintf.h: New file.
37265         New module 'c-snprintf'.
37266         * modules/c-snprintf: New file.
37267         * modules/c-snprintf-tests: New file.
37268         * lib/c-snprintf.c: New file.
37269         * lib/c-snprintf.h: New file.
37270         * tests/test-c-snprintf.c: New file.
37271         * tests/test-c-snprintf.sh: New file.
37273         New module 'c-vsnprintf'.
37274         * modules/c-vsnprintf: New file.
37275         * modules/c-vsnprintf-tests: New file.
37276         * lib/c-vsnprintf.c: New file.
37277         * lib/c-vsnprintf.h: New file.
37278         * tests/test-c-vsnprintf.c: New file.
37279         * tests/test-c-vsnprintf.sh: New file.
37281         New module 'c-vasprintf'.
37282         * modules/c-vasprintf: New file.
37283         * modules/c-vasprintf-tests: New file.
37284         * lib/c-asprintf.c: New file.
37285         * lib/c-vasprintf.c: New file.
37286         * lib/c-vasprintf.h: New file.
37287         * tests/test-c-vasprintf.c  +: New file.
37288         * tests/test-c-vasprintf.sh: New file.
37290         New module 'c-xvasprintf'.
37291         * modules/c-xvasprintf: New file.
37292         * modules/c-xvasprintf-tests: New file.
37293         * lib/c-xasprintf.c: New file.
37294         * lib/c-xvasprintf.c: New file.
37295         * lib/c-xvasprintf.h: New file.
37296         * tests/test-c-xvasprintf.c: New file.
37297         * tests/test-c-xvasprintf.sh: New file.
37299 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37301         argp: better 'inline'
37302         Use extern-inline module to declare extern inline functions.
37303         This avoids some bogus warning diagnostics.  Problem discovered
37304         when modifying GNU tar to use the manywarnings module.
37305         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
37306         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
37307         Define based on extern-inline.
37308         * modules/argp (Depends-on): Add extern-inline.
37310 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
37312         filemode, sys_stat: Handle MPX files a la AIX.
37313         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
37314         * lib/sys_stat.in.h (S_ISMPX): New macro.
37315         * tests/test-sys_stat.c: Add tests for MPX files.
37317 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37319         x-to-1: honor $PERL
37320         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
37321         a chance to use his preferred version of Perl.  This is typically
37322         required by Darwin users whose default /usr/bin/perl does not have all
37323         the libraries required by help2man, and who need to use their MacPorts
37324         installation of Perl instead.
37326 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
37328         gnu-web-doc-update: add all the new files, even in new directories
37329         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
37330         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
37331         Use it.
37332         (main): Don't use cvsutils to get the list of unknown files,
37333         just add all the existing files and directories.
37335 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
37337         gnu-web-doc-update: improve --help
37338         * build-aux/gnu-web-doc-update: Move comments into --help.
37340 2012-12-07  Eric Wong  <normalperson@yhbt.net>
37342         mountlist: recognize more "dummy" file systems
37343         * lib/mountlist.c (ME_DUMMY_0):
37344         Add these dummy FS names to the list:
37345         - "debugfs" virtual filesystem for kernel debugging
37346         - "devpts" PTY slave filesystem
37347         - "devtmpfs" device filesystem on top of tmpfs/ramfs
37348         - "fusectl" control filesystem for FUSE
37349         - "mqueue" enumerates POSIX message queues
37350         - "rpc_pipefs" kernel <-> userspace bridge for NFS
37351         - "sysfs" is for exporting kernel objects
37352         - "devfs" device filesystem for Linux 2.4 and FreeBSD
37354 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
37356         extern-inline: avoid incompatibility with Darwin Libc
37357         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
37358         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
37359         Problem reported by Akim Demaille in
37360         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
37362 2012-12-11  Simon Josefsson  <simon@josefsson.org>
37364         gnupload: Work with GnuPG using gpg-agent (for smartcards).
37365         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
37366         let it handle password prompting.
37368 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
37370         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
37371         * lib/canonicalize.c (canonicalize_filename_mode):
37372         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
37373         fetching the current directory.  Don't overrun the beginning of
37374         rpath if there's no slashes after the MS-Windows drive letter.
37376 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
37378         maint.mk: avoid extra forks
37379         * top/maint.mk (_cfg_mk): The GNU make manual documents that
37380         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
37381         So use that instead of "$(shell test -f FILE && echo FILE)".
37383 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
37385         vasnprintf: fix ASCII_ONLY typo
37386         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
37387         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
37388         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
37389         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
37390         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
37392 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
37394         list, oset, xlist, xoset: fix extern inline issue with C99
37395         This was introduced by my recent changes for 'inline'.
37396         Problem reported for gettext by Daiki Ueno in
37397         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
37398         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
37399         (gl_list_nx_create, gl_list_size, gl_list_node_value)
37400         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
37401         (gl_list_previous_node, gl_list_get_at)
37402         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
37403         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
37404         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
37405         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
37406         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
37407         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
37408         (gl_list_iterator_free, gl_sortedlist_search)
37409         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
37410         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
37411         (gl_sortedlist_remove):
37412         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
37413         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
37414         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
37415         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
37416         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
37417         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
37418         (gl_list_add_at, gl_sortedlist_add):
37419         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
37420         Wrap these extern decls inside "#if 0", because they are implemented
37421         as inline functions, and extern inline is not what's wanted here.
37422         It would simplify these .h files to remove the extern decls entirely,
37423         although a downside would be less-clear separation between
37424         specification and implementation.
37426 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
37428         sys_stat: no 'static inline'
37429         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
37430         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
37432         extern-inline: no 'static inline'
37433         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
37434         Do not require AC_C_INLINE.
37435         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
37436         'static inline', for older compilers.
37438         snippet/warn-on-use: no 'static inline'
37439         * build-aux/snippet/warn-on-use.h:
37440         Remove unnecessary 'inline' in comment.
37442         rbtree-list, rbtreehash-list: no 'static inline'
37443         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
37444         * lib/gl_anytree_list2.h (node_at):
37445         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
37446         (gl_oset_first, add_nodes_to_buckets):
37447         Now static, not static inline.
37449         regex: no 'static inline'
37450         * lib/regex_internal.c (calc_state_hash):
37451         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
37452         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
37453         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
37454         Now static, not static inline.
37455         (inline) [__GNUC__ < 3 && _LIBC]:
37456         Remove macro; no longer needed.
37458         xvasprintf: no 'static inline'
37459         * lib/xvasprintf.c (xstrcat):
37460         Now static, not static inline.
37461         * m4/xvasprintf.m4 (gl_XVASPRINTF):
37462         Do not require AC_C_INLINE.
37464         parse-datetime, parse-duration: no 'static inline'
37465         * lib/parse-datetime.y (to_uchar):
37466         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
37467         (scale_n_add):
37468         Now static, not static inline.
37469         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
37470         * modules/parse-duration (configure.ac):
37471         Do not require AC_C_INLINE.
37473         getaddrinfo: no 'static inline'
37474         * lib/getaddrinfo.c (validate_family):
37475         Now static, not static inline.
37476         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
37477         Do not require AC_C_INLINE.
37479         ftruncate, fts, lstat, openat, raise: no 'static inline'
37480         * lib/ftruncate.c (chsize_nothrow):
37481         * lib/fts.c (opendirat, diropen):
37482         * lib/lstat.c (orig_lstat):
37483         * lib/openat.c (orig_openat):
37484         * lib/raise.c (raise_nothrow):
37485         Now static, not static inline.
37486         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
37487         * m4/fts.m4 (gl_FUNC_FTS_CORE):
37488         * m4/lstat.m4 (gl_PREREQ_LSTAT):
37489         * m4/openat.m4 (gl_PREREQ_OPENAT):
37490         * m4/raise.m4 (gl_PREREQ_RAISE):
37491         Do not require AC_C_INLINE.
37493         fflush, stat: no 'static inline'
37494         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
37495         (clear_ungetc_buffer, disable_seek_optimization)
37496         (restore_seek_optimization, update_fpos_cache):
37497         * lib/stat.c (orig_stat):
37498         Now static, not static inline.
37499         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
37500         (update_fpos_cache):
37501         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
37502         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
37503         * m4/stat.m4 (gl_PREREQ_STAT):
37504         Do not require AC_C_INLINE.
37506         error, filevercmp: no 'static inline'
37507         * lib/error.c (is_open, flush_stdout):
37508         * lib/filevercmp.c (order):
37509         Now static, not static inline.
37510         * m4/error.m4 (gl_PREREQ_ERROR):
37511         * modules/filevercmp (configure.ac):
37512         Do not require AC_C_INLINE.
37514         dup, execute, fatal-signal, etc.: no 'static inline'
37515         * lib/dup.c (dup_nothrow):
37516         * lib/execute.c (nonintr_close, nonintr_open):
37517         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
37518         * lib/fopen.c (orig_fopen):
37519         * lib/freadseek.c (freadptrinc):
37520         * lib/freopen.c (orig_freopen):
37521         * lib/fstat.c (orig_fstat, fstat_nothrow):
37522         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
37523         (get_rusage_as_via_iterator):
37524         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
37525         * lib/getdtablesize.c (_setmaxstdio_nothrow):
37526         * lib/isatty.c (_isatty_nothrow):
37527         * lib/open.c (orig_open):
37528         * lib/read.c (read_nothrow):
37529         * lib/sigprocmask.c (signal_nothrow):
37530         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
37531         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
37532         * lib/wait-process.c (unregister_slave_subprocess):
37533         * lib/write.c (write_nothrow):
37534         Now static, not static inline.
37535         * lib/spawn-pipe.c (nonintr_open): Define only if
37536         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
37537         * m4/dup.m4 (gl_PREREQ_DUP):
37538         * m4/execute.m4 (gl_EXECUTE):
37539         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
37540         * m4/fopen.m4 (gl_PREREQ_FOPEN):
37541         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
37542         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
37543         * m4/fstat.m4 (gl_PREREQ_FSTAT):
37544         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
37545         * m4/isatty.m4 (gl_PREREQ_ISATTY):
37546         * m4/open.m4 (gl_PREREQ_OPEN):
37547         * m4/read.m4 (gl_PREREQ_READ):
37548         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
37549         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
37550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
37551         * m4/wait-process.m4 (gl_WAIT_PROCESS):
37552         * m4/write.m4 (gl_PREREQ_WRITE):
37553         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
37554         Do not require AC_C_INLINE.
37556         c-strtod, memcoll, readutmp: no 'static inline'
37557         * lib/c-strtod.c (c_locale):
37558         * lib/memcoll.c (strcoll_loop):
37559         * lib/readutmp.c (desirable_utmp_entry):
37560         Now static, not static inline.
37561         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
37562         * m4/memcoll.m4 (gl_MEMCOLL):
37563         * m4/readutmp.m4 (gl_READUTMP):
37564         Do not require AC_C_INLINE.
37566         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
37567         * lib/arctwo.c (to_uchar):
37568         * lib/md4.c (set_uint32):
37569         * lib/md5.c (set_uint32):
37570         * lib/sha1.c (set_uint32):
37571         * lib/sha256.c (set_uint32):
37572         * lib/sha512.c (set_uint64):
37573         Now static, not static inline.  This is a bit simpler, and doesn't
37574         affect performance with GCC and default optimization.
37575         * m4/arctwo.m4 (gl_ARCTWO):
37576         * m4/md4.m4 (gl_MD4):
37577         * m4/md5.m4 (gl_MD5):
37578         * m4/sha1.m4 (gl_SHA1):
37579         * m4/sha256.m4 (gl_SHA256):
37580         * m4/sha512.m4 (gl_SHA512):
37581         Do not require AC_C_INLINE.
37583         cond, lock, thread: better 'inline'
37584         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
37585         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
37586         New macros.  Use them instead of static inline, for header functions.
37587         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
37588         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
37589         * lib/glthread/lock.c (gl_waitqueue_init)
37590         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
37591         * lib/glthread/thread.c (get_current_thread_handle):
37592         Change 'static inline' to 'inline'.
37593         * lib/glthread/cond.h, lib/glthread/thread.h:
37594         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37595         * m4/cond.m4 (gl_COND):
37596         * m4/lock.m4 (gl_PREREQ_LOCK):
37597         * m4/thread.m4 (gl_THREAD):
37598         Do not require AC_C_INLINE.
37599         * modules/cond, modules/thread (Depends-on): Add extern-inline.
37601         chdir-long, cycle-check, savewd: better 'inline'
37602         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
37603         (find_non_slash):
37604         * lib/cycle-check.c (is_zero_or_power_of_two):
37605         * lib/savewd.c (savewd_delegating):
37606         Change 'static inline' to 'inline'.
37607         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
37608         Replace all remaining uses of 'static inline' with it.
37609         * lib/savewd.h:
37610         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37611         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
37612         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
37613         * m4/savewd.m4 (gl_SAVEWD):
37614         Do not require AC_C_INLINE.
37615         * modules/savewd (Depends-on): Add extern-inline.
37617         base32, base64: no need for 'inline'
37618         * lib/base32.c (to_uchar, get_8, decode_8):
37619         * lib/base64.c (to_uchar, get_4, decode_4):
37620         Change 'static inline' to 'inline'.
37621         * m4/base32.m4 (gl_PREREQ_BASE32):
37622         * m4/base64.m4 (gl_PREREQ_BASE64):
37623         Do not require AC_C_INLINE.
37625         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
37626         * lib/gl_array_oset.c (gl_array_nx_add_at):
37627         (gl_array_remove_at):
37628         * lib/gl_linkedhash_list.c (hash_resize_after_add)
37629         (add_to_bucket, remove_from_bucket):
37630         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
37631         Change 'static inline' to 'static', as it's simpler to omit
37632         'inline' unless there's a significant performance advantage.
37634         list, oset, xlist, xoset, xsublist: simplify via extern inline
37635         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
37636         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
37637         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
37638         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
37639         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
37640         New macro.  Replace all uses of 'static inline' with it.
37641         [HAVE_INLINE]: Implement functions as *_INLINE functions,
37642         instead of as macros FOO that are defined to static inline
37643         functions FOO_inline.
37644         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
37645         * lib/gl_xsublist.c:
37646         Reimplement from scratch, by defining the corresponding *_INLINE
37647         macro and including the corresponding .h file.  This is simpler.
37648         * modules/list, modules/oset, modules/xlist, modules/xoset:
37649         (Files): Remove m4/gl_list.m4.
37650         (configure.ac): Remove gl_LIST.
37651         * m4/gl_list.m4: Remove.
37652         * modules/list, modules/oset, modules/xlist, modules/xoset:
37653         * modules/xsublist:
37654         (Depends-on): Depend on extern-inline, not inline.
37656         xalloc: better 'inline'
37657         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
37658         New macro.  Replace all uses of 'static inline' with it.
37659         (static_inline): Remove.
37660         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37661         Let 'extern inline' do the work automatically, instead of doing
37662         it by hand.
37663         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
37664         Remove.  All uses removed.
37665         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
37667         gethrxtime: better 'inline'
37668         * lib/xtime.c: New file.
37669         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
37670         * lib/xtime.h (XTIME_INCLUDE):
37671         New macros.  Replace all uses of 'static inline' with them.
37672         * lib/gethrxtime.c (gethrxtime): Define only if
37673         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
37674         this source file is now always compiled, because of the extern inline.
37675         * lib/gethrxtime.h, lib/xtime.h:
37676         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37677         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
37678         if gethrtime works, as they're not needed in that case.
37679         (gl_XTIME): Do not require AC_C_INLINE.
37680         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
37681         compiled now.  Move the check into gl_GETHRXTIME.
37682         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
37683         (Depends-on): Add extern-inline.
37684         (configure.ac): gethrxtime is always compiled now.
37685         (lib_SOURCES): Add gethrxtime.c.
37687         wctype-h: better 'inline'
37688         * lib/wctype-h.c: New file.
37689         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
37690         New macro.  Replace all uses of 'static inline' with it.
37691         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37692         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
37693         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
37694         (Depends-on): Add extern-inline.
37696         unistd: better 'inline'
37697         * lib/unistd.c: New file.
37698         * lib/unistd.in.h (_GL_UNISTD_INLINE):
37699         New macro.  Replace all uses of 'static inline' with it.
37700         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37701         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
37702         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
37703         (Depends-on): Add extern-inline.
37705         sys_socket: better 'inline'
37706         * lib/sys_socket.c: New file.
37707         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
37708         New macro.  Replace all uses of 'static inline' with it.
37709         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37710         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
37711         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
37712         (Depends-on): Add extern-inline.
37714         stdio: better 'inline'
37715         * lib/stdio.c: New file.
37716         * lib/stdio.in.h (_GL_STDIO_INLINE):
37717         New macro.  Replace all uses of 'static inline' with it.
37718         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37719         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
37720         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
37721         (Depends-on): Add extern-inline.
37723         sigaction: better 'inline'
37724         * lib/sig-handler.c: New file.
37725         * lib/sig-handler.h (SIG_HANDLER_INLINE):
37726         New macro.  Replace all uses of 'static inline' with it.
37727         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37728         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
37729         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
37730         (Depends-on): Add extern-inline.
37732         selinux-h: better 'inline'
37733         * lib/se-context.c, lib/se-selinux.c: New files.
37734         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
37735         * lib/se-context.in.h (SE_CONTEXT_INLINE):
37736         New macro.  Replace all uses of 'static inline' with it.
37737         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37738         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
37739         New macro.  Replace all uses of 'static inline' with it.
37740         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37741         * modules/selinux-h (Files, lib_SOURCES):
37742         Add lib/se-context.c, lib/se-selinux.c.
37743         (Depends-on): Add extern-inline.
37744         (configure.ac): Do not require AC_C_INLINE.
37746         pthread: better 'inline'
37747         * lib/pthread.c: New file.
37748         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
37749         New macro.  Replace all uses of 'static inline' with it.
37750         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37751         * m4/pthread.m4 (gl_PTHREAD_CHECK):
37752         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
37753         * modules/pthread (Files): Add lib/pthread.c.
37754         (Depends-on): Add extern-inline.
37756         math: better 'inline'
37757         * lib/math.c: New file.
37758         * lib/math.in.h (_GL_MATH_INLINE):
37759         New macro.  Replace all uses of 'static inline' with it.
37760         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37761         * m4/math_h.m4 (gl_MATH_H):
37762         Do not require AC_C_INLINE.
37763         * modules/math (Files, lib_SOURCES):
37764         Add lib/math.c.
37765         (Depends-on): Add extern-inline.
37767         count-one-bits: better 'inline'
37768         * lib/count-one-bits.c: New file.
37769         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
37770         New macro.  Replace all uses of 'static inline' with it.
37771         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37772         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
37773         Do not require AC_C_INLINE.
37774         * modules/count-one-bits (Files, lib_SOURCES):
37775         Add lib/count-one-bits.c.
37776         (Depends-on): Add extern-inline.
37778         count-leading-zeros: better 'inline'
37779         * lib/count-leading-zeros.c: New file.
37780         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
37781         New macro.  Replace all uses of 'static inline' with it.
37782         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37783         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
37784         Do not require AC_C_INLINE.
37785         * modules/count-leading-zeros (Files, lib_SOURCES):
37786         Add lib/count-leading-zeros.c.
37787         (Depends-on): Add extern-inline.
37789         bitrotate: better 'inline'
37790         * lib/bitrotate.c: New file.
37791         * lib/bitrotate.h (BITROTATE_INLINE):
37792         New macros.
37793         Replace all uses of 'static inline' with them.
37794         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37795         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
37796         (Depends-on): Add extern-inline.
37797         (configure.ac): Do not require AC_C_INLINE.
37799 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
37801         maint.mk: avoid gratuitous failure
37802         Reported by Stefano Lattarini in
37803         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
37804         * top/maint.mk (public-submodule-commit): Quote more safely.
37806 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
37808         canonicalize, canonicalize-lgpl: support MS-Windows file names
37809         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
37810         for test cases, which it'd be nice to add at some point.
37811         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
37812         * lib/canonicalize.c (canonicalize_filename_mode):
37813         * lib/canonicalize-lgpl.c (__realpath):
37814         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
37815         slash is at the beginning of the file name.  Use ISSLASH, instead
37816         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
37817         the first character with '/'.  Test for
37818         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
37819         with a drive letter.
37820         * lib/canonicalize.c (SLASHES): New macro.
37821         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
37823 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
37825         fts: introduce FTS_VERBATIM
37826         * lib/fts_.h (FTS_VERBATIM): New bit flag.
37827         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
37828         * lib/fts.c (fts_open): Honor it.
37830 2012-11-09  Pádraig Brady  <P@draigBrady.com>
37832         getlogin-tests: allow errno == ENXIO
37833         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37834         with errno == ENXIO (No controlling tty).
37835         getlogin_r-tests: Likewise. Also allow errno == ENOENT
37836         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
37837         with errno == ENOENT.  This was reported to happen in various
37838         situations on GNU/Linux.
37840 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37842         getlogin-tests: allow errno == ENOENT
37843         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37844         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
37845         when running a test in an Emacs shell buffer.
37847 2012-11-08  Jim Meyering  <jim@meyering.net>
37849         tests/nap.h: avoid warning about unused variable
37850         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
37852         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
37853         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
37854         white space before each of the special-cased file names, to avoid
37855         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
37856         in http://bugs.gnu.org/12830.
37858 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37860         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
37861         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
37862         fails with errno == EBADF when fd is opened with O_PATH.
37863         Reported by Jim Meyering in
37864         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
37865         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37866         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
37868 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37870         test-utimens: speed up by taking shorter naps
37871         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
37872         New functions.
37873         (nap): Use them, to do a better job of guessing the delay.
37874         On Fedora 17 with ext4 atop md atop hard disks, this made
37875         test-utimens run 10x faster, because the test napped for
37876         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
37877         <http://bugs.gnu.org/12820#11>.
37879 2012-11-07  Jim Meyering  <jim@meyering.net>
37881         mountlist.c: fix a compilation failure
37882         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
37883         I introduced while transforming commit v0.0-7683-g613bcb6
37885 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37887         errno: port to LynxOS 178 2.2.2
37888         Problem reported by Joel Brobecker in
37889         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
37890         * doc/posix-headers/errno.texi (errno.h): Document this.
37891         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
37892         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
37893         Supply a string for EILSEQ.
37894         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
37896 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37898         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
37899         Linux kernel 2.6.39 introduced O_PATH (see
37900         <http://lwn.net/Articles/433854/>) and this is a better fallback
37901         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
37902         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37903         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
37904         * lib/fcntl.in.h (O_ACCMODE):
37905         * tests/test-fcntl-h.c (main):
37906         Do not reject O_ACCMODE merely because it has more than the
37907         minimal number of bits, as POSIX allows extensions here.
37909 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
37911         mountlist: do not classify a bind-mounted dir entry as "dummy"
37912         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
37913         the "none"-testing clause.
37914         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
37915         exception for bind-mounted directories.
37917 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
37919         quote: provide a means to escape strings with nul characters
37920         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
37921         (quote, quote_n): Rename formal arguments for consistency with
37922         quotearg.
37924 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37926         test-raise: don't assume 199 is an invalid signal
37927         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
37929         sh-quote-tests: port to Solaris 9
37930         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
37931         Problem reported by Dagobert Michelsen in
37932         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
37934 2012-10-28  Jim Meyering  <jim@meyering.net>
37936         maint.mk: rename a new configurable variable
37937         * top/maint.mk (_gl_translatable_string_re): Rename from
37938         translation-markers: _gl_ prefix to insulate from user Makefile code,
37939         and the _re suffix to inform that it's a regular expression.
37941 2012-10-26  Eric Blake  <eblake@redhat.com>
37943         maint.mk: let packages tweak sc_po_check pattern
37944         * top/maint.mk (sc_po_check): Add translation-markers, to allow
37945         finding files with other translation markers.
37947 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37949         euidaccess: speed up 'configure' on GNU hosts
37950         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
37951         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
37952         it's needed only in this case.  Use AC_CHECK_DECLS, not
37953         AC_CHECK_DECLS_ONCE.
37954         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
37955         or AC_REQUIRE for AC_FUNC_GETGROUPS.
37957         * lib/regexec.c (re_search_internal): Fix grammar in comment.
37959 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37961         fchmodat, fchownat, fstatat: port to non-inlining compilers
37962         Problem reported for FreeBSD 9 by Jim Meyering in
37963         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
37964         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
37965         New files, which define FCHMODAT_INLINE etc.
37966         * lib/fchmodat.c (FCHMODAT_INLINE):
37967         * lib/fchownat.c (FCHOWNAT_INLINE):
37968         * lib/fstatat.c (FSTATAT_INLINE):
37969         Remove, as chmodat.c etc. now do this.
37970         * modules/fchmodat (Files): Add lib/chmodat.c.
37971         * modules/fchownat (Files): Add lib/chownat.c.
37972         * modules/fstatat (Files): Add lib/statat.c.
37974 2012-10-15  Jim Meyering  <jim@meyering.net>
37976         fchmodat.c, fchownat.c: compile-impeding typos
37977         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
37978         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
37979         Introduced in commit v0.0-7636-gd202279.
37981 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37983         fcntl-h: support GNU flags like O_IGNORE_CTTY
37984         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
37985         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
37986         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
37987         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
37988         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
37989         Define to 0 if not already defined.
37990         * tests/test-fcntl-h.c: Test these new flags.
37992 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37994         faccessat, etc.: support AT_FDCWD-only use
37995         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
37996         this function only if its first argument is AT_FDCWD.
37997         Emacs wants faccessat for AT_EACCESS but not for any first-arg
37998         values other than AT_FDCWD, so it doesn't want all the openat
37999         machinery with fchdir etc.
38000         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
38001         * modules/fstatat, modules/mkdirat, modules/openat (Files):
38002         * modules/unlinkat (Files):
38003         Remove lib/openat-priv.h, as at-internal supplies this file.
38004         Removing this file here allows us to support programs like Emacs
38005         that avoid at-internal.
38007         faccessat: speed up 'configure' on mainstream hosts
38008         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
38009         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
38010         since it's only on unusual platforms that we need to check for
38011         'access', and it's better not to slow 'configure' down on all
38012         platforms.
38014         faccessat: port to Solaris 10
38015         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
38016         Needed on Solaris 10, which doesn't have AT_EACCESS,
38017         so we need the Gnulib fcntl.h, which defines it.
38019 2012-10-14  Pádraig Brady  <P@draigBrady.com>
38020         canonicalize: fix C89 compilation
38021         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
38022         declarations so C89 is supported.  Also remove the comment
38023         referencing memorty allocation as the suggested feature could
38024         not be implemented as suggested.
38025         Reported by Michael Goffioul.
38027 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38029         group-member: omit unnecessary dependencies
38030         This is for Emacs, which has its own allocator and where we
38031         don't want to use xalloc.
38032         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
38033         since we no longer use xmalloc.  Do not include stdbool.h, since
38034         the changes below happen to remove the only use of bool.
38035         (GROUPBUF_SIZE): New constant.
38036         (struct group_info): Remove n_groups member.  Add groupbuf member.
38037         This lets us get the groups without using malloc, usually.
38038         (free_group_info, get_group_info): Adjust to this.
38039         (get_group_info): Return the number of groups found, or -1 on error.
38040         Use plain malloc not xmalloc, and treat its failure as if there
38041         are no groups, as the user already loses in case of error.
38042         (group_member): Simplify, based on changes to get_group_info.
38043         * modules/group-member (Depends-on): Remove dependencies on
38044         xalloc and stdbool.  Add dependency on xalloc-oversized.
38046 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
38048         gethrxtime: port to C++
38049         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
38051 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
38053         ptsname: fix macro-name typo
38054         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
38056 2012-10-03  Simon Josefsson  <simon@josefsson.org>
38058         inttostr: Relax license.
38059         * modules/inttostr (License): Change from LGPL to LGPLv2+.
38061 2012-10-03  Eric Blake  <eblake@redhat.com>
38063         ptsname_r: support ptys returned by FreeBSD posix_openpt
38064         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
38065         lives in /dev/pts/.
38067 2012-10-02  Eric Blake  <eblake@redhat.com>
38069         pselect: reject invalid file descriptors
38070         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
38071         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
38072         * modules/pselect (Depends-on): Add dup2.
38073         * doc/posix-functions/pselect.texi (pselect): Document this.
38075         select: reject invalid file descriptors
38076         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
38077         * lib/select.c (rpl_select) [!win32]: Work around it.
38078         * modules/select (Depends-on): Add dup2.
38079         * doc/posix-functions/select.texi (select): Document this.
38081         select: enhance test
38082         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
38083         New functions.
38084         (test_function): Enhance test.
38085         (do_select_bad_fd): Avoid any stale errno values.
38087         ptsname: reject invalid file descriptors
38088         http://www.austingroupbugs.net/view.php?id=503
38089         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
38090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
38091         * modules/stdlib (Makefile.am): Replace witness.
38092         * lib/stdlib.in.h (ptsname): Allow for replacement.
38093         * modules/ptsname (configure.ac): Trigger replacement.
38094         * doc/posix-functions/ptsname.texi (ptsname): Document this.
38096 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
38098         hash-pjw-bare: new module
38099         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
38100         * lib/hash-pjw-bare.h: Likewise.
38101         * modules/hash-pjw-bare: New file.
38102         * MODULES.html.sh (Misc): Add it.
38104 2012-10-02  Eric Blake  <eblake@redhat.com>
38106         manywarnings: cater to more gcc infelicities
38107         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
38108         -Wuninitialized without -O.
38110 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
38112         select, poll tests: Make setsockopt invocation effective.
38113         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
38114         the bind() call.
38115         * tests/test-select.h (open_server_socket): Likewise.
38117 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
38119         sockets, sys_stat: restore AC_C_INLINE
38120         This undoes the 2012-09-22 patch.
38121         * m4/sockets.m4 (gl_SOCKETS):
38122         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
38123         Restore AC_C_INLINE, since MSVC requires __inline or _inline
38124         and does not support plain 'inline'.  Reported by Bruno Haible in
38125         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
38127 2012-09-30  Bruno Haible  <bruno@clisp.org>
38129         localeconv tests: Avoid test failure on OpenIndiana.
38130         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
38131         skip the 'grouping' and 'mon_grouping' tests.
38132         Reported by Jim Meyering.
38134 2012-09-30  Bruno Haible  <bruno@clisp.org>
38136         havelib: Follow libtool developments.
38137         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
38138         Suggested by Simon Josefsson.
38140 2012-09-29  Jim Meyering  <meyering@redhat.com>
38142         fstatat.c: fix a compile-impeding typo
38143         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
38144         Introduced in commit v0.0-7636-gd202279.
38145         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
38147 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
38149         extern-inline: provide a -Wundef safe config.h
38150         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
38151         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
38152         to produce a -Wundef warning free config.h.
38154 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
38156         hash-pjw: relax license to LGPLv2+
38157         * modules/hash-pjw (License): Relax, with consent of author.
38159 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
38161         maint.mk: fix strict vs. lazy variable issues with RELEASE
38162         * top/maint.mk (_equal): New function.
38163         (member_check): Strip the result to avoid spurious spaces.
38164         (url_dir_list): Do not use ifeq, which is strict, as it will
38165         require RELEASE_TYPE to be defined.
38166         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
38167         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
38168         (announcement_Cc_alpha,announcement_mail_headers_alpha)
38169         (announcement_Cc_beta,announcement_mail_headers_beta)
38170         (announcement_Cc_stable,announcement_mail_headers_stable): these.
38171         (release): Do not depend on $(release-type), as it forces its
38172         evaluation.  Bounce to it.
38174 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
38176         maint.mk: formatting changes
38177         * top/maint.mk: Indent bodies of if's.
38179 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
38181         maint.mk: factor the validation of RELEASE_TYPE
38182         With help from Jim Meyering.
38183         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
38184         * top/maint.mk (_empty, _sp): Move their definition earlier.
38185         (member-check, release-type): New.
38186         Use the latter instead of $(RELEASE_TYPE).
38187         Remove now useless local checks.
38189 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
38191         maint.mk: provide "make upload" to ease uploading
38192         See
38193         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
38194         Do not depend simply on the current $(VERSION), as there may have been
38195         new commits since the tarball generation.  Rather, rely on $(RELEASE),
38196         as "make release-commit" already does.
38198         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
38199         "make TYPE".
38201         * top/maint.mk (upload_command, upload, release): New.
38202         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
38203         (VERSION): first word of $(RELEASE) is always right.
38204         (emit_upload_commands): Adjust.
38205         * top/README-release: Update.
38207 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
38209         maint.mk: silent rules
38210         With help from Stefano Lattarini.
38211         * top/maint.mk (writable-files): Use $(AM_V_GEN).
38212         (announcement): Use $(AM_V_at).
38214 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
38216         localename: port gl_locale_name_thread_unsafe to FreeBSD
38217         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
38218         and use the simpler FreeBSD implementation on Mac OS X as well.
38219         Original idea suggested by Ed Maste in
38220         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
38222 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38224         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
38225         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
38226         * lib/mbuiter.c, lib/xsize.c: New files.
38227         * lib/binary-io.h (BINARY_IO_INLINE):
38228         * lib/eealloc.h (EEALLOC_INLINE):
38229         * lib/mbfile.h (MBFILE_INLINE):
38230         * lib/mbiter.h (MBITER_INLINE):
38231         * lib/mbuiter.h (MBUITER_INLINE):
38232         * lib/xsize.h (XSIZE_INLINE):
38233         New macros.
38234         Replace all uses of 'static inline' with them.
38235         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38236         * m4/eealloc.m4 (gl_EEALLOC):
38237         * m4/mbfile.m4 (gl_MBFILE):
38238         * m4/mbiter.m4 (gl_MBITER):
38239         * m4/xsize.m4 (gl_XSIZE):
38240         Do not require AC_C_INLINE.
38241         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
38242         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
38243         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
38244         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
38245         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
38246         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
38247         * modules/binary-io, modules/eealloc, modules/mbfile:
38248         * modules/mbiter, modules/mbuiter:
38249         (Depends-on): Add extern-inline.
38251         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
38252         * lib/pipe-filter-aux.c: New file.
38253         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
38254         Replace all uses of 'static inline' with it.
38255         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38256         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
38257         (filter_retcode): No real need for inline here.
38258         * modules/pipe-filter-gi, modules/pipe-filter-ii:
38259         (Files): Add lib/pipe-filter-aux.c.
38260         (Depends-on): Add extern-inline.
38261         (configure.ac): Do not require AC_C_INLINE.
38262         (lib_SOURCES): Add pipe-filter-aux.c.
38264         fdutimensat: omit unnecessary AC_C_INLINE
38265         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
38267         fchmodat, fchownat, fstatat: use extern-inline
38268         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
38269         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
38270         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
38271         New macros.
38272         * lib/openat.h:
38273         Replace all uses of 'static inline' with them.
38274         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38275         * modules/fchmodat, modules/fchownat, modules/fstatat:
38276         * modules/openat-h:
38277         (Depends-on):
38278         Add extern-inline.
38279         (configure.ac): Remove AC_C_INLINE.
38281         acl, mbchar, priv-set: use extern-inline
38282         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
38283         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
38284         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
38285         New macros.
38286         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
38287         Replace all uses of 'static inline' with it.
38288         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38289         * m4/acl.m4 (gl_FUNC_ACL):
38290         * m4/mbchar.m4 (gl_MBCHAR):
38291         * m4/priv-set.m4 (gl_PRIV_SET):
38292         Remove AC_C_INLINE, since 'inline' is no longer used directly.
38293         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
38294         Add extern-inline.
38296         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
38297         * m4/sockets.m4 (gl_SOCKETS):
38298         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
38299         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
38300         environments where it's already guaranteed to work, so we needn't
38301         check for it at 'configure'-time.
38303         tls-tests: omit unnecessary 'inline'
38304         * tests/test-tls.c (perhaps_yield): No longer inline.
38305         Simplicity and portability trump efficiency in test cases.
38307         utimens-tests: avoid unnecessary 'inline'
38308         * modules/fdutimensat-tests (configure.ac):
38309         * modules/futimens-tests (configure.ac):
38310         * modules/utimens-tests (configure.ac):
38311         * modules/utimensat-tests (configure.ac):
38312         Remove AC_C_INLINE.
38313         * tests/test-utimens-common.h (ctime_compare):
38314         No longer inline.  Simplicity and portability trump efficiency here.
38316         misc: don't limit commentary to inline functions
38317         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
38318         * lib/xalloc-oversized.h, lib/xsize.h:
38319         Contrast macros to functions in general, not just to inline functions,
38320         when the commentary does not apply only to inline functions.
38322 2012-09-20  Jim Meyering  <meyering@redhat.com>
38324         non-recursive-gnulib-prefix-hack: new module
38325         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
38326         the file that originated in Bison.
38327         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
38328         largely copied from a snippet that resided in bison's configure.ac.
38329         * modules/non-recursive-gnulib-prefix-hack: New file.
38330         * MODULES.html.sh (Support for maintaining and releasing projects):
38331         Add it.
38333 2012-09-18  Jim Meyering  <meyering@redhat.com>
38335         maint.mk: generalize _gl_tight_scope for non-recursive make
38336         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
38337         that *.h would describe additional .h files in the directory
38338         specified by $(_gl_TS_dir).  I.e., add this...
38339         (_gl_TS_other_headers): New variable.
38341         maint.mk: exempt trailing blanks found in "binary" files
38342         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
38343         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
38344         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38346 2012-09-17  Jim Meyering  <meyering@redhat.com>
38348         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
38349         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
38350         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
38351         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38353 2012-09-17  Jim Meyering  <meyering@redhat.com>
38355         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
38356         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
38357         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
38358         It is not in the same category as "exit (0)" or "exit (1)", and
38359         besides, I know of no symbolic name for that 77.  Reported by
38360         Richard W.M. Jones in
38361         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38363 2012-09-17  Jim Meyering  <meyering@redhat.com>
38365         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
38366         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
38367         all uses of #define, not just those that start in column 1.
38368         Richard W.M. Jones reported a false positive in
38369         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
38371 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38373         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
38374         * lib/localcharset.c (locale_charset) [DARWIN7]:
38375         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
38376         as these two values are incompatible.  Problem reported by Max Horn.
38377         For more discussion, please see
38378         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
38380         doc: document sticky-EOF issue
38381         * doc/posix-functions/fgetc.texi (fgetc):
38382         * doc/posix-functions/fgets.texi (fgets):
38383         * doc/posix-functions/fread.texi (fread):
38384         * doc/posix-functions/fscanf.texi (fscanf):
38385         * doc/posix-functions/getc.texi (getc):
38386         * doc/posix-functions/getchar.texi (getchar):
38387         * doc/posix-functions/scanf.texi (scanf):
38388         Mention that glibc and default Solaris do not conform to
38389         C99 and POSIX-2001 or later, with respect to how getchar
38390         etc. behave when feof reports nonzero.
38392 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
38394         poll: fix poll(0, NULL, msec)
38395         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
38396         but nfd is 0.  In that case poll should behave like select.
38398 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
38399             Paolo Bonzini  <bonzini@gnu.org>
38401         poll: fix for systems that can't recv() on a non-socket
38402         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
38403         is readable.  In this case POLLHUP will not be supported.
38404         * doc/posix-functions/poll.texi: Document this.
38406 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
38408         poll/select: document portability problems not fixed by Gnulib.
38409         * doc/posix-functions/poll.texi: poll does not work well on
38410         pipes under Windows.  It has the same limitations as select on
38411         BeOS.
38412         * doc/posix-functions/select.texi: select does not work well
38413         on pipes under Windows.
38415 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
38417         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
38418         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
38419         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
38420         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
38422 2012-09-06  Eric Blake  <eblake@redhat.com>
38424         net_if: give more details about the bug being fixed
38425         * doc/posix-headers/net_if.texi: Add clarification.
38427 2012-09-05  Eric Blake  <eblake@redhat.com>
38429         net_if: new module
38430         * modules/net_if: New module, borrowing ideas from netinet_in.
38431         * m4/net_if_h.m4: New file.
38432         * lib/net_if.in.h: Likewise.
38433         * doc/posix-headers/net_if.texi (net/if.h): Document it.
38434         * MODULES.html.sh (lacking POSIX:2008): Likewise.
38435         * tests/test-net_if.c: Make function checks conditional.
38436         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
38438 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
38440         readutmp: fix non-portable UT_PID use
38441         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
38442         Use `UT_PID (u) > 0' as absolute condition.
38444 2012-09-04  Jim Meyering  <meyering@redhat.com>
38446         fts: reduce two or more trailing spaces to just one, usually
38447         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
38448         or more slashes, trim all but the final one.  But if a name consists
38449         solely of two slashes, don't modify it.  If it consists solely of
38450         three or more slashes, strip all but one.
38452         This is part of the solution to a minor problem with rm:
38453         it would print a bogus ELOOP diagnostic when failing to remove
38454         the slash-decorated name of a symlink-to-directory:
38456             $ mkdir d && ln -s d s && env rm -r s/
38457             rm: cannot remove 's': Too many levels of symbolic links
38459         With the change below and a trivial don't-trim-trailing-slashes
38460         adjustment to remove.c, it does this:
38462             $ env rm -r s/
38463             rm: cannot remove 's/': Not a directory
38465         Improved by: Eric Blake
38467         fts: when there is no risk of overlap, use memcpy, not memmove
38468         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
38470 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
38472         stdbool: be more compatible with mixed C/C++ compiles
38473         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
38474         Define to bool, true, false, respectively, as GCC's builtin
38475         stdbool.h does.  Problem reported by Michael Goffioul in
38476         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
38478 2012-08-28  Jim Meyering  <meyering@redhat.com>
38480         revert last change: it was not needed
38481         * tests/test-vc-list-files-git.sh: There's already a test for
38482         a working git, just below.
38484 2012-08-28  Jim Meyering  <meyering@redhat.com>
38486         tests: test-vc-list-files-git.sh: skip if git is not available
38487         * tests/test-vc-list-files-git.sh: Skip this test when git is
38488         not available.
38490 2012-08-26  Bruno Haible  <bruno@clisp.org>
38492         gnulib-tool: Remove no-op option --no-changelog.
38493         * gnulib-tool (func_usage): Don't mention --no-changelog.
38494         (do_changelog): Remove variable.
38495         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38497 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38499         doc: remove fdl-1.2.texi
38500         It is no longer used or maintained, and its use of @acronym
38501         is problematic.  See the thread containing
38502         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
38503         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
38504         * doc/old-licenses/fdl-1.2.texi: Remove.
38506         execinfo: port to FreeBSD
38507         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
38508         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
38509         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
38510         * modules/execinfo (Link): Add $(LIB_EXECINFO).
38512 2012-08-23  Jim Meyering  <meyering@redhat.com>
38514         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
38515         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
38516         to placate gcc's -Wold-style-declaration.
38518 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
38520         doc: do not use @acronym
38521         * doc/inet_ntoa.texi (inet_ntoa):
38522         * doc/parse-datetime.texi (Seconds since the Epoch)
38523         (Specifying time zone rules):
38524         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
38525         Don't use @acronym.  Problem reported by John Darlington in
38526         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
38528 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
38530         stdnoreturn: port to newer GCCs
38531         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
38532         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
38533         Problem reported by Jim Meyering in
38534         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
38535         Also, rename the 'test' function to a void a clash with the
38536         already-supplied 'main' function; this fixes a bug that incorrectly
38537         rejected GCC 4.7.1's <stdnoreturn.h>.
38538         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
38539         Document GCC problem.
38541 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
38543         pipe-filter: fix comment typo
38544         * lib/pipe-filter.h: Mention correct function.
38546 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
38548         execinfo: new module
38549         This is for Emacs.  Currently, it provides a no-effect stub
38550         on all platforms where it does not already work.
38551         It already works on glibc-based systems, and on Solaris 11.
38552         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
38553         New files.
38554         * doc/glibc-headers/execinfo.texi (execinfo.h):
38555         * MODULES.html.sh (Misc): Document it.
38557 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
38559         extern-inline: support old GCC 'inline'
38560         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
38561         if available.  This applies to GCC versions 2.7 through 4.2, or
38562         when newer GCC is using -fgnu89-inline.  The goal is to address
38563         some of the performance issues mentioned by Bruno Haible in
38564         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
38566 2012-08-20  Eric Blake  <eblake@redhat.com>
38568         maint.mk: avoid redundant file name in message
38569         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
38570         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
38571         (sc_makefile_path_separator_check): Remove bogus $(ME).
38573 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
38575         timer-time: fix link order when static linking on glibc
38576         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
38577         _after_ -lrt so that it's significant.
38579 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
38581         timespec: omit unnecessary AC_C_INLINE
38582         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
38584         stat-time: omit unnecessary AC_C_INLINE
38585         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
38586         Do not require AC_C_INLINE.
38588         ignore-value: omit unnecessary AC_C_INLINE
38589         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
38591         sys_select: avoid 'static inline'
38592         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
38594         mktime: avoid 'static inline'
38595         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
38596         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
38598 2012-08-19  Bruno Haible  <bruno@clisp.org>
38600         gnulib-tool: Improve coding style.
38601         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
38602         func_emit_lib_Makefile_am.
38603         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38605 2012-08-19  Bruno Haible  <bruno@clisp.org>
38607         gnulib-tool: Fix indentation.
38608         * gnulib-tool (func_import): Fix indentation.
38610 2012-08-19  Bruno Haible  <bruno@clisp.org>
38612         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
38613         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
38614         on the list of removed files.
38616 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
38618         test-parse-datetime: avoid glibc leap-second glitch
38619         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
38620         with the 2012 rules.  Problem reported by Bruce Dubbs in
38621         <http://bugs.gnu.org/12206>.
38623 2012-08-14  Bruno Haible  <bruno@clisp.org>
38625         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
38626         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
38627         from argument.
38628         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38630 2012-08-14  Eric Blake  <eblake@redhat.com>
38632         ldexp: relax license
38633         * modules/ldexp (License): Trivial relax, since the module only
38634         provides a permissively licensed m4 file.
38636 2012-08-13  Bruno Haible  <bruno@clisp.org>
38638         gnulib-tool: Fix persistence of --witness-c-macro option.
38639         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
38640         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38642 2012-08-11  Eric Blake  <eblake@redhat.com>
38644         count-leading-zeros: use a lookup table on non-gcc compilers
38645         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
38646         alternate implementation, suggested by Jim Meyering.
38648 2012-08-10  Eric Blake  <eblake@redhat.com>
38650         count-leading-zeros: new module
38651         * modules/count-leading-zeros: New module.
38652         * m4/count-leading-zeros.m4: New file.
38653         * lib/count-leading-zeros.h: Likewise.
38654         * modules/count-leading-zeros-tests: New test.
38655         * tests/test-count-leading-zeros.c: New file.
38656         * MODULES.html.sh (Integer arithmetic functions): Document it.
38658 2012-08-07  Simon Josefsson  <simon@josefsson.org>
38659             Jim Meyering  <meyering@redhat.com>
38661         maintainer-makefile: Fix syntax error with dash.
38662         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
38663         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
38665 2012-08-05  Jim Meyering  <meyering@redhat.com>
38667         extern-inline: also ignore -Wmissing-declarations
38668         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
38669         required with gcc-4.8.0-to-be.
38671         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
38672         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
38673         for /error ?([^,]*)/.  This avoids false-positives for strings like
38674         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
38676 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
38678         gnumakefile: better interaction with Automake-NG
38679         * modules/gnumakefile [Makefile.am]: The makefiles generated by
38680         Automake-NG always contain a definition of VPATH, even in non-VPATH
38681         builds (its value being simply '.' in that case).  So, in the
38682         'clean-GNUmakefile' rule, to determine whether running under a
38683         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
38684         '$(VPATH)' expands to the empty string.
38686 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
38688         base64: Use extern C scope in header file, for C++.
38689         * lib/base64.h: Add C++ namespace protection.
38691 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
38693         stat-time, timespec, u64: support naive out-of-dir builds
38694         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
38695         Use '#include "foo.h"', not '#include <foo.h>', when including
38696         one's own interface.  This works better when configuring with
38697         out-of-directory builds, since packages need not add an
38698         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
38700 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
38702         utimens: use extern-inline
38703         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
38704         * lib/utimens.h: Add copyright notice, since this is now large enough
38705         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38706         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
38707         * modules/utimens (Depends-on): Add extern-inline.
38709         u64: use extern-inline
38710         * lib/u64.c: New file.
38711         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38712         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
38713         * modules/u64 (Files): Add lib/u64.c.
38714         (Depends-on): Add extern-inline.
38715         (configure.ac): No need to require AC_C_INLINE, since extern-inline
38716         does that now.
38717         (lib_SOURCES): Add u64.c.
38719         timespec: use extern-inline
38720         * lib/timespec.c: New file.
38721         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38722         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
38723         * modules/timespec (Files): Add lib/timespec.c.
38724         (Depends-on): Add extern-inline.
38725         (lib_SOURCES): Add timespec.c.
38727         stat-time: use extern-inline
38728         * lib/stat-time.c: New file.
38729         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38730         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
38731         * modules/stat-time (Files): Add lib/stat-time.c.
38732         (Depends-on): Add extern-inline.
38733         (lib_SOURCES): Add stat-time.c.
38735         extern-inline: new module
38736         * modules/extern-inline, m4/extern-inline.m4: New files.
38737         This is for better support of 'extern inline' a la ISO C99,
38738         with a portable alternative on compilers that do not support
38739         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
38740         of the Emacs executable, when compiled with debugging disabled,
38741         which is a typical way that Emacs is built while developing.
38743 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
38745         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
38746         * build-aux/do-release-commit-and-tag: Move variable definitions
38747         together.
38748         ($branch): Instead of defaulting to "master", default to the current
38749         branch (as gnu-web-doc-update does).
38750         (help): Display the current values of the option arguments.
38751         * top/maint.mk (release-commit): New.
38752         * top/README-release: Simplify the corresponding step.
38754 2012-07-30  Eric Blake  <eblake@redhat.com>
38756         passfd: fix comment on recvfd
38757         * lib/passfd.c (recvfd): Fix comment.
38758         Reported by Jann Horn <jannhorn@googlemail.com>.
38760 2012-07-30  Jim Meyering  <meyering@redhat.com>
38762         maint.mk: avoid a sub-shell
38763         * top/maint.mk (release-prep): Remove unneeded sub-shell.
38765 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38767         maint.mk: use silent-rules support from Automake
38768         * top/maint.mk (news-check, vc-diff-check, announcement)
38769         (no-submodule-changes, alpha beta stable, release-prep)
38770         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
38772 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38774         maint.mk: provide a web-manual-update target
38775         * top/maint.mk: here.
38776         * top/README-release: Use it to simplify the web manual update step.
38778 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38780         README-release: shorten the circuit to post a news
38781         * top/README-release: Point directly to the news submission form.
38783 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38785         gnu-web-doc-update: fix --help
38786         * build-aux/gnu-web-doc-update: The information "top level" was written
38787         twice.
38789 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38791         maint.mk: absolute VPATH issue
38792         * top/maint.mk (release-prep): Help Git find .git/.
38793         From Jim Meyering.
38795 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38797         gitlog-to-changelog: fix previous change
38798         * build-aux/gitlog-to-changelog: Fix condition.
38799         Add missing ";".
38801 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38803         gitlog-to-changelog: don't expect .git to be in $srcdir
38804         Reported by Bruno Haible.
38805         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
38806         * build-aux/gitlog-to-changelog (&git_dir_option): New.
38807         Use it.
38809 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38811         maint.mk: absolute VPATH build fix
38812         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
38813         $(srcdir) is not a parent of $(builddir).
38815 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
38817         clean-temp: Fix memory leak.
38818         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
38819         'files' members of tmpdir.
38821 2012-07-27  Jim Meyering  <meyering@redhat.com>
38823         maint.mk: new rule: refresh-gnulib-patches
38824         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
38825         Use this rule to refresh them.
38826         * top/maint.mk (refresh-gnulib-patches): New rule.
38828 2012-07-24  Bruno Haible  <bruno@clisp.org>
38830         gnulib-tool: Fix handling of inctests variable.
38831         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
38832         Reported by Nick Bowler <nbowler@elliptictech.com>.
38834 2012-07-22  Bruno Haible  <bruno@clisp.org>
38836         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
38837         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
38838         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38839         Remove exemption for getpass.h.
38840         Suggested by Eric Blake.
38842 2012-07-20  Eric Blake  <eblake@redhat.com>
38844         verify: document conflict with -Wnested-externs
38845         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
38847         maint.mk: forbid exit(-1)
38848         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
38850 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
38852         fsusage: port back to Solaris
38853         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
38854         error (fsd not declared) on Solaris 10.  Reported privately by
38855         Andrew Borodin.
38857 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
38859         gnu-web-doc-update: fix error messages
38860         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
38862         gnu-web-doc-update: check the requirements.
38863         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
38864         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
38865         * build-aux/bootstrap (find_tool): Comment change.
38867 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
38869         maint.mk: minor simplication.
38870         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
38871         for default values.
38873 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
38875         gitlog-to-changelog: VPATH build issues
38876         If builddir is not a subdirectory of srcdir, running git from it will
38877         fail.
38878         * build-aux/gitlog-to-changelog (--srcdir): New option.
38880 2012-07-15  Bruno Haible  <bruno@clisp.org>
38882         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
38883         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
38884         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
38885         Remove exemption for fpending.h.
38886         Suggested by Eric Blake.
38888 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
38890         pthread_sigmask: fix bug on FreeBSD 9
38891         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
38892         Include string.h.
38893         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
38894         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
38895         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
38896         but pthread_sigmask (1729, NULL, NULL) returns zero.
38897         See <http://bugs.gnu.org/11884>.
38898         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
38899         by inspecting whether the main call changed the old mask.
38901 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
38903         README-release: make it more legible
38904         * top/README-release: Improve typography slightly.
38906 2012-07-15  Jim Meyering  <meyering@redhat.com>
38908         maint: require that each sc_... command start with "@"
38909         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
38910         "make sc_maint" helps us avoid this nit.
38912 2012-07-15  Jim Meyering  <meyering@redhat.com>
38914         maint.mk: add leading "@" to quiet new "make syntax-check" rule
38915         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
38917 2012-07-13  Eric Blake  <eblake@redhat.com>
38919         maint.mk: new syntax check for HAVE_DECL checks
38920         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
38921         * cfg.mk
38922         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38923         Exempt some false positives.
38924         Based on a report by Karel Zak.
38926         argp: make HAVE_DECL usage consistent
38927         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
38928         macros, not whether they are defined.
38929         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
38930         convention with other declaration checks.
38931         Reported by Karel Zak, with suggestions from Paul Eggert.
38933         stat-time: relax license to LGPLv2+
38934         * modules/stat-time (License): Relax, with consent of all authors.
38936         strndup: fix m4 usage error
38937         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
38938         defined, to either 0 or 1.
38939         Reported by Karel Zak.
38941 2012-07-11  Jim Meyering  <meyering@redhat.com>
38943         maint: enable the sc_avoid_if_before_free syntax-check rule
38944         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
38945         (if_before_free_offenders_): Define.
38946         (if_before_free_basename_re_): Define.
38947         Exempt current files with useless if-before-free.
38949 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
38951         gettext: do not assume '#define ... defined ...' behavior
38952         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
38953         Do not use '#define FOO ... defined BAR ...', as the C standard says
38954         it's not portable to expect that this works after macro expansion.
38955         Problem reported for gzip by Steven M. Schweda in
38956         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
38958 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
38960         getloadavg: clean out old Emacs and Autoconf cruft
38961         See Glenn Morris in <http://bugs.gnu.org/11905>.
38962         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
38963         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
38964         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
38965         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
38967 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
38969         bootstrap: let warn be like tests/init.sh's warn_
38970         Reported by Jim Meyering.
38971         * build-aux/bootstrap (warn): Remove, replaced by...
38972         (warnf_, warn_): these.
38973         Adjust callers.
38974         Shorten messages that no longer fit in 80 columns.
38976 2012-07-09  Bruno Haible  <bruno@clisp.org>
38978         getopt: Simplify after Emacs changed.
38979         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
38980         (gl_GETOPT_IFELSE): Remove macro.
38982 2012-07-09  Jim Meyering  <meyering@redhat.com>
38984         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
38985         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
38987         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
38988         Bugs in both of those conspired to make the
38989         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
38990         _sc_search_regexp's handling of non-empty $in_files would filter
38991         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
38992         choice of in_files value meant there would be no match in most
38993         projects, due to the presence of two or more Makefile.in files.
38994         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
38995         Fix a bug in how a non-empty $$in_files was processed:
38996         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
38997         in spite of the name, it's a regexp, not a list of file names.
38999 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
39001         getloadavg, getopt: fix commentary re configure.in
39002         Autoconf is deprecating the name 'configure.in', so change it to
39003         to the new name 'configure.ac' in a couple of places.
39004         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
39005         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
39006         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
39007         Emacs has renamed it to configure.ac, and it no longer refers
39008         to these macros anyway.
39010         timespec: mark functions with const attributes
39011         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
39012         Mark with _GL_ATTRIBUTE_CONST.
39014 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
39016         canonicalize[-lgpl]: handle "guessing" values when cross-building
39017         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39018         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
39019         matches "*yes" instead of just "yes".  Regression introduced in commit
39020         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
39022 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
39023             Bruno Haible  <bruno@clisp.org>
39025         canonicalize: make the right guess when cross-compiling to GNU
39026         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
39027         determine whether cross-compiling to glibc systems, so as to
39028         include GNU/Hurd.
39030 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
39032         timespec-sub: avoid duplicate include
39033         * lib/timespec-sub.c: Do not include <config.h> twice.
39034         Reported by Juanma Barranquero.
39036 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
39038         bootstrap: use a more consistent error reporting scheme
39039         * build-aux/bootstrap (warn, die): New.
39040         Use them.
39042 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
39044         sys_time: allow too-wide tv_sec
39045         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
39046         timeval even if tv_sec is wider than time_t.  This allows
39047         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
39048         as without this patch gnulib replaces struct timeval
39049         and OpenBSD futimes therefore has a type mismatch.
39050         * doc/posix-headers/sys_time.texi: Mention this.
39052         pthread: check for both pthread_create and pthread_join
39053         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
39054         alter the check so that it tests for both pthread_create and
39055         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
39056         Suggested by Bruno Haible and Richard Yao in
39057         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
39059         parse-datetime: doc tuneup
39060         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
39061         spacing issues.
39063 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
39065         do-release-commit-and-tag: fix the previous commit
39066         * build-aux/do-release-commit-and-tag: Actually the test was right,
39067         but the comment and the error message were misleading.
39068         Fix comment, and improve error message.
39069         Perform check first, so that NEWS is not modified uselessly.
39071         do-release-commit-and-tag: fix typo
39072         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
39073         _not_ start with a stub.
39075 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
39077         pthread: check for pthread_create, not pthread_join
39078         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
39079         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
39080         pthread_join in libc.  I hope this removes the need for all the
39081         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
39082         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
39084 2012-07-04  Jim Meyering  <meyering@redhat.com>
39086         parse-datetime: fix failure to diagnose invalid input
39087         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
39088         rather than diagnosing the invalid input.  Now it reports this:
39089         date: invalid date '\260'
39090         * lib/parse-datetime.y (to_uchar): Define.
39091         (yylex): Don't sign-extend "other" bytes.
39092         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
39093         Thanks to Bruno Haible for the patch to this file.
39094         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
39095         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
39097 2012-07-03  Jim Meyering  <meyering@redhat.com>
39099         bootstrap: do not require now-removed build-aux/missing
39100         Now that build-aux/missing is, er, missing, bootstrap would
39101         silently fail.
39102         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
39103         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
39104         no longer part of gnulib.
39105         Diagnose the failure.
39107 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
39109         alloca: add support for HP NonStop TNS/E native
39110         * lib/alloca.in.h (alloca): Support the new host.
39111         From a suggestion by Joachim Schmitz in
39112         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
39114 2012-07-02  Pádraig Brady  <P@draigBrady.com>
39116         fsusage: remove code not needed on non GNU/Linux systems.
39118         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
39119         Don't include headers no longer needed in this case.
39120         * lib/fsusage.c [STAT_STATVFS &&
39121         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
39122         STAT_STATFS2_FRSIZE to exclude code not used in this case.
39124 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39126         fsusage: include files needed for glibc 2.6 fallback
39127         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
39128         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
39129         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
39130         Problem reported by Ludovic Courtès in
39131         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
39133         fsusage: avoid needless check on GNU/Linux
39134         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
39135         on GNU/Linux systems, since it can't possibly work.
39137 2012-07-01  Bruno Haible  <bruno@clisp.org>
39139         log: Fix an autoconf >= 2.64 warning.
39140         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
39141         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
39143 2012-06-28  Bruno Haible  <bruno@clisp.org>
39145         log10f: Fix possible configuration problem.
39146         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
39147         $LOGF_LIBM.
39148         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
39150 2012-06-28  Bruno Haible  <bruno@clisp.org>
39152         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
39153         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
39154         not gl_cv_func_unlink_works.
39155         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
39157 2012-06-27  Eric Blake  <eblake@redhat.com>
39159         config: drop scripts that automake says are not independent
39160         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
39161         * build-aux/elisp-comp: Delete.
39162         * build-aux/missing: Likewise.
39163         * build-aux/ylwrap: Likewise.
39164         * modules/elisp-comp: Likewise.
39165         * MODULES.html.sh: Drop mention of elisp-comp.
39166         * NEWS: Mention this.
39168 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
39170         root-uid: new module
39171         This is for portability to Tandem's NonStop Kernel.
39172         * lib/root-uid.h, modules/root-uid: New files.
39173         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
39174         * lib/write-any-file.c, tests/test-sethostname2.c:
39175         Include "root-uid.h".
39176         * lib/euidaccess.c (euidaccess):
39177         * lib/pt_chown.c (main):
39178         * lib/unlinkdir.c (cannot_unlink_dir):
39179         * lib/write-any-file.c (can_write_any_file):
39180         * m4/mknod.m4 (gl_FUNC_MKNOD):
39181         * tests/test-sethostname2.c (geteuid, main):
39182         Don't assume ROOT_UID == 0.
39183         * modules/euidaccess (Depends-on):
39184         * modules/pt_chown (Depends-on):
39185         * modules/sethostname-tests (Depends-on):
39186         * modules/unlinkdir (Depends-on):
39187         * modules/write-any-file (Depends-on):
39188         Add root-uid.
39190         regex: use locale-independent comparison for codeset name
39191         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
39192         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
39193         for codeset name.
39194         * lib/regex_internal.h: Do not include <strings.h>, since we
39195         no longer use strcasecmp.
39196         * modules/regex (Depends-on): Remove strcase.
39198 2012-06-23  Bruno Haible  <bruno@clisp.org>
39200         getopt-posix: No longer guarantee that option processing is resettable.
39201         * doc/posix-functions/getopt.texi: Drop description of problem with
39202         internal state. Fix info about mingw and msvc9.
39203         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
39204         option processing by getopt(). Run three test programs instead of one.
39205         Simplify cross-compilation guess.
39206         * NEWS: Mention the change.
39207         Reported by Rich Felker <dalias@aerifal.cx>.
39209 2012-06-26  Bruno Haible  <bruno@clisp.org>
39211         argp, regex: Ensure strcasecmp gets declared.
39212         * lib/argp-help.c: Include <strings.h>.
39213         * lib/regex_internal.h: Likewise.
39214         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
39216 2012-06-24  Bruno Haible  <bruno@clisp.org>
39218         ptsname_r: Make it consistent with ptsname on AIX.
39219         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
39220         implementation as for OSF/1.
39221         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
39222         a pty master.
39224         ptsname_r: Make it consistent with ptsname on OSF/1.
39225         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
39226         OSF/1.
39228 2012-06-24  Bruno Haible  <bruno@clisp.org>
39230         ttyname_r: Fix result on OSF/1, Solaris.
39231         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
39233 2012-06-24  Bruno Haible  <bruno@clisp.org>
39235         ptsname_r: Add support for Solaris.
39236         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
39237         Solaris.
39239         ptsname_r: Fix test failure on native Windows.
39240         * modules/ptsname_r (Depends-on): Add isatty.
39242         ptsname_r: Fix test failures on IRIX, Solaris.
39243         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
39244         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
39245         accordingly.
39246         * lib/ptsname_r.c: Include <fcntl.h>.
39247         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
39248         set errno if fd is invalid.
39249         * tests/test-isatty.c (main): Update comments.
39251 2012-06-24  Bruno Haible  <bruno@clisp.org>
39253         ptsname test: Extend test.
39254         * tests/test-ptsname.c: Include <errno.h>.
39255         (main): Test behaviour with invalid file descriptor.
39257 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39259         time: fix obsolete comment
39260         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
39261         reference to HAVE_STRUCT_TIMESPEC in comment.
39263 2012-06-23  Bruno Haible  <bruno@clisp.org>
39265         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
39266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
39267         does not handle abbreviated long options with equivalent
39268         disambiguations, set gl_replace_getopt to yes.
39269         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
39271 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
39273         time_r: fix typo that always overrode localtime_r decl
39274         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
39275         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
39276         not in a standard include.
39278 2012-06-22  Bruno Haible  <bruno@clisp.org>
39280         Write "Mac OS X" instead of "MacOS X".
39281         * README: Write "Mac OS X" instead of "MacOS X".
39282         * build-aux/bootstrap: Likewise.
39283         * build-aux/install-reloc: Likewise.
39284         * lib/acl-internal.h: Likewise.
39285         * lib/acl_entries.c: Likewise.
39286         * lib/argp-ba.c: Likewise.
39287         * lib/argp-pv.c: Likewise.
39288         * lib/config.charset: Likewise.
39289         * lib/copy-acl.c: Likewise.
39290         * lib/csharpexec.c: Likewise.
39291         * lib/euidaccess.c: Likewise.
39292         * lib/fbufmode.c: Likewise.
39293         * lib/fflush.c: Likewise.
39294         * lib/file-has-acl.c: Likewise.
39295         * lib/filemode.h: Likewise.
39296         * lib/fpurge.c: Likewise.
39297         * lib/freadable.c: Likewise.
39298         * lib/freadahead.c: Likewise.
39299         * lib/freading.c: Likewise.
39300         * lib/freadptr.c: Likewise.
39301         * lib/freadseek.c: Likewise.
39302         * lib/fseeko.c: Likewise.
39303         * lib/fseterr.c: Likewise.
39304         * lib/fsusage.c: Likewise.
39305         * lib/fwritable.c: Likewise.
39306         * lib/fwriting.c: Likewise.
39307         * lib/get-rusage-as.c: Likewise.
39308         * lib/get-rusage-data.c: Likewise.
39309         * lib/getdomainname.c: Likewise.
39310         * lib/idpriv-drop.c: Likewise.
39311         * lib/idpriv-droptemp.c: Likewise.
39312         * lib/localcharset.c: Likewise.
39313         * lib/locale.in.h: Likewise.
39314         * lib/localename.c: Likewise.
39315         * lib/mbsrtowcs-state.c: Likewise.
39316         * lib/nproc.c: Likewise.
39317         * lib/passfd.c: Likewise.
39318         * lib/posix_openpt.c: Likewise.
39319         * lib/printf-parse.c: Likewise.
39320         * lib/progreloc.c: Likewise.
39321         * lib/safe-read.h: Likewise.
39322         * lib/safe-write.h: Likewise.
39323         * lib/sched.in.h: Likewise.
39324         * lib/set-mode-acl.c: Likewise.
39325         * lib/signal.in.h: Likewise.
39326         * lib/stdint.in.h: Likewise.
39327         * lib/stdio-impl.h: Likewise.
39328         * lib/stdlib.in.h: Likewise.
39329         * lib/strtod.c: Likewise.
39330         * lib/sys_select.in.h: Likewise.
39331         * lib/tcgetsid.c: Likewise.
39332         * lib/unistd.in.h: Likewise.
39333         * lib/unlockpt.c: Likewise.
39334         * lib/vasnprintf.c: Likewise.
39335         * lib/vma-iter.c: Likewise.
39336         * lib/wcsrtombs-state.c: Likewise.
39337         * m4/acl.m4: Likewise.
39338         * m4/acosl.m4: Likewise.
39339         * m4/asinl.m4: Likewise.
39340         * m4/atanl.m4: Likewise.
39341         * m4/c-stack.m4: Likewise.
39342         * m4/cosl.m4: Likewise.
39343         * m4/expl.m4: Likewise.
39344         * m4/extensions.m4: Likewise.
39345         * m4/fdatasync.m4: Likewise.
39346         * m4/fmal.m4: Likewise.
39347         * m4/frexp.m4: Likewise.
39348         * m4/frexpf.m4: Likewise.
39349         * m4/frexpl.m4: Likewise.
39350         * m4/fsusage.m4: Likewise.
39351         * m4/getdomainname.m4: Likewise.
39352         * m4/getloadavg.m4: Likewise.
39353         * m4/getopt.m4: Likewise.
39354         * m4/gettext.m4: Likewise.
39355         * m4/gnulib-common.m4: Likewise.
39356         * m4/intdiv0.m4: Likewise.
39357         * m4/intlmacosx.m4: Likewise.
39358         * m4/largefile.m4: Likewise.
39359         * m4/ldexpl.m4: Likewise.
39360         * m4/link-follow.m4: Likewise.
39361         * m4/locale-ar.m4: Likewise.
39362         * m4/locale-fr.m4: Likewise.
39363         * m4/locale-ja.m4: Likewise.
39364         * m4/locale-tr.m4: Likewise.
39365         * m4/locale-zh.m4: Likewise.
39366         * m4/locale_h.m4: Likewise.
39367         * m4/lock.m4: Likewise.
39368         * m4/logl.m4: Likewise.
39369         * m4/mathfunc.m4: Likewise.
39370         * m4/minus-zero.m4: Likewise.
39371         * m4/mktime.m4: Likewise.
39372         * m4/mmap-anon.m4: Likewise.
39373         * m4/multiarch.m4: Likewise.
39374         * m4/nanosleep.m4: Likewise.
39375         * m4/nocrash.m4: Likewise.
39376         * m4/poll.m4: Likewise.
39377         * m4/printf-frexpl.m4: Likewise.
39378         * m4/printf.m4: Likewise.
39379         * m4/signbit.m4: Likewise.
39380         * m4/sinl.m4: Likewise.
39381         * m4/sqrtl.m4: Likewise.
39382         * m4/strerror_r.m4: Likewise.
39383         * m4/tanl.m4: Likewise.
39384         * m4/threadlib.m4: Likewise.
39385         * m4/ttyname_r.m4: Likewise.
39386         * m4/unlink.m4: Likewise.
39387         * m4/visibility.m4: Likewise.
39388         * m4/wcwidth.m4: Likewise.
39389         * tests/minus-zero.h: Likewise.
39390         * tests/test-alloca-opt.c: Likewise.
39391         * tests/test-copy-acl.sh: Likewise.
39392         * tests/test-copy-file.sh: Likewise.
39393         * tests/test-fdatasync.c: Likewise.
39394         * tests/test-file-has-acl.sh: Likewise.
39395         * tests/test-flock.c: Likewise.
39396         * tests/test-fsync.c: Likewise.
39397         * tests/test-localename.c: Likewise.
39398         * tests/test-malloca.c: Likewise.
39399         * tests/test-nonblocking-pipe.h: Likewise.
39400         * tests/test-nonblocking-socket.h: Likewise.
39401         * tests/test-openpty.c: Likewise.
39402         * tests/test-posix_openpt.c: Likewise.
39403         * tests/test-ptsname.c: Likewise.
39404         * tests/test-ptsname_r.c: Likewise.
39405         * tests/test-sameacls.c: Likewise.
39406         * tests/test-select.h: Likewise.
39407         * tests/test-set-mode-acl.sh: Likewise.
39408         * tests/test-snprintf-posix.h: Likewise.
39409         * tests/test-sprintf-posix.h: Likewise.
39410         * tests/test-strtod.c: Likewise.
39411         * tests/test-time.c: Likewise.
39412         * tests/test-vasnprintf-posix.c: Likewise.
39413         * tests/test-vasprintf-posix.c: Likewise.
39414         * doc/acl-resources.txt: Likewise.
39415         * doc/**/*.texi: Likewise.
39416         Reported by Max Horn <max@quendi.de>.
39418 2012-06-22  Bruno Haible  <bruno@clisp.org>
39420         grantpt: Relax requirement regarding invalid file descriptors.
39421         * lib/grantpt.c: Don't include <fcntl.h>.
39422         (grantpt): Don't verify the validity of the file descriptor.
39423         * modules/grantpt (Depends-on): Remove fcntl-h.
39424         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
39425         file descriptors.
39426         * doc/posix-functions/grantpt.texi: Document more platforms on which
39427         grantpt succeeds for invalid file descriptors.
39428         Reported by Rich Felker <dalias@aerifal.cx>.
39430 2012-06-22  Bruno Haible  <bruno@clisp.org>
39432         fbufmode test: Don't test unportable behaviour.
39433         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
39434         (main): Invoke it three times.
39435         Reported by Szabolcs Nagy <nsz@port70.net>
39436         and Rich Felker <dalias@aerifal.cx>.
39438 2012-06-21  Bruno Haible  <bruno@clisp.org>
39440         gnulib-tool: Refactor inctests variable.
39441         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
39442         (func_modules_transitive_closure,
39443         func_modules_transitive_closure_separately,
39444         func_import, func_create_testdir): Update.
39446         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
39447         * gnulib-tool: Accept option --without-tests.
39448         (func_usage): Document --without-tests option. Rearrange.
39449         (inctests): Normalize according to the mode.
39450         * NEWS: Mention the change.
39451         Suggested by Simon Josefsson.
39453 2012-06-21  Bruce Korb  <bkorb@gnu.org>
39455         parse-duration test: Avoid spurious output.
39456         * tests/test-parse-duration.sh: Reindent with leading tabs.
39458 2012-06-21  Jim Meyering  <meyering@redhat.com>
39460         maint: disable the strncpy prohibition
39461         * cfg.mk: Do not prohibit strncpy here.
39463 2012-06-21  Bruno Haible  <bruno@clisp.org>
39465         nonblocking: Avoid compilation error on mingw64.
39466         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
39467         fscanf.
39468         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
39469         * modules/vfscanf (configure.ac): Likewise.
39470         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
39471         definition only if stdio.h has prepared it.
39472         Reported by Daniel P. Berrange <berrange@redhat.com>.
39474 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
39476         gnulib-tool: Use readlink if it is available.
39477         * gnulib-tool (func_readlink): Choose function more appropriately.
39479 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
39481         posixtm-tests: port to buggy compiler
39482         Problem reported by Simon Josefsson in
39483         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
39484         * modules/posixtm-tests (Depends-on): Add stdint.
39485         * tests/test-posixtm.c (struct posixtm_test.t_expected):
39486         Now of type int_least64_t, not int64_t, both because that's
39487         what INT64_C returns and because int_least64_t works even
39488         on 72-bit hosts.
39489         (T): Use INT64_C on constants outside the traditional int range,
39490         to work around compiler bug noted by Simon.
39492         mktime: fix integer overflow in 'configure'-time test
39493         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
39494         after integer overflow.  Problem reported by Rich Felker in
39495         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
39496         Also, don't look for further instances of a bug if we've already
39497         found one instance; this helps 'configure' run faster.
39499 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
39501         tmpfile, clean-temp: Fix invocation of GetVersionEx.
39502         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
39503         GetVersionEx correctly.
39504         * lib/clean-temp.c (supports_delete_on_close): Likewise.
39506 2012-06-20  Bruno Haible  <bruno@clisp.org>
39508         fdopen: Allow implementations that don't reject invalid fd arguments.
39509         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
39510         succeeds.
39511         Reported by Rich Felker <dalias@aerifal.cx>.
39513 2012-06-20  Simon Josefsson  <simon@josefsson.org>
39515         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
39516         bring in LIBINTL.
39518 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
39520         init.sh: do not rely on autoupated PWD
39521         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
39522         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
39523         Although Nelson's bug was not necessarily fixed by this patch,
39524         it seems wise to make the change for safety.
39525         * tests/init.sh (path_prepend_): Do not rely on PWD updating
39526         automagically after 'cd'; this is not reliable on older shells.
39527         (setup_): Fail if we cannot cd to temporary directory.
39529 2012-06-19  Bruno Haible  <bruno@clisp.org>
39531         stat, fstat: Avoid warnings on mingw64.
39532         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
39533         redefining.
39534         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
39535         Reported by Daniel P. Berrange <berrange@redhat.com>.
39537 2012-06-19  Bruno Haible  <bruno@clisp.org>
39539         stdioext: Add support for musl libc.
39541         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
39542         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
39544         * m4/fseterr.m4: New file.
39545         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
39546         function exists.
39547         * modules/fseterr (Files): Add m4/fseterr.m4.
39548         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
39549         __fseterr does not exist.
39550         (Makefile.am): Remove fseterr.c from lib_SOURCES.
39552         * lib/freadable.h: Update comment.
39554         * lib/fwritable.h: Update comment.
39556         * lib/freading.h: Update comment.
39558         * lib/fwriting.h: Update comment.
39560         * m4/freadahead.m4: New file.
39561         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
39562         that function exists.
39563         * modules/freadahead (Files): Add m4/freadahead.m4.
39564         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
39565         __freadahead does not exist.
39566         (Makefile.am): Remove freadahead.c from lib_SOURCES.
39568         * m4/freadptr.m4: New file.
39569         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
39570         function exists.
39571         * modules/freadptr (Files): Add m4/freadptr.m4.
39572         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
39573         __freadptr does not exist.
39574         (Makefile.am): Remove freadptr.c from lib_SOURCES.
39576         * m4/freadseek.m4: New file.
39577         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
39578         exists.
39579         * modules/freadseek (Files): Add m4/freadseek.m4.
39580         (configure.ac): Invoke gl_FUNC_FREADSEEK.
39582         * lib/fpurge.c (fpurge): Update comment.
39584         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
39586 2012-06-19  Bruno Haible  <bruno@clisp.org>
39588         *printf-posix: Put more info into config.log.
39589         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
39590         exit code into config.log.
39592 2012-06-19  Bruno Haible  <bruno@clisp.org>
39594         getopt-gnu: Fix exit code overflow in autoconf test.
39595         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
39596         to keep them below < 128.
39598 2012-06-17  Jim Meyering  <meyering@redhat.com>
39600         maint.mk: fix typo in code to derive GPG key at release time
39601         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
39603 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
39605         regex: avoid warning when pointers are not long
39606         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
39607         and uintptr_t, not long, for portability to hosts where pointers and
39608         long have different sizes.  Issue noted by Daniel P. Berrange in
39609         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
39610         and fix suggested by Bruno Haible in
39611         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
39613 2012-06-17  Bruno Haible  <bruno@clisp.org>
39615         dummy: Relicense into the public domain.
39616         * modules/dummy (License): Set to "public domain".
39617         Suggested by Reuben Thomas.
39619 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
39621         announce-gen: VPATH issues
39622         * build-aux/announce-gen (--srcdir): New option, used to trim the
39623         $srcdir part of the path from $builddir to NEWS.
39624         * top/maint.mk (announcement): Adjust.
39626 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
39628         gnu-web-doc-update: VPATH builds
39629         * build-aux/gnu-web-doc-update (--builddir): New option.
39630         Revamp the handling of options.
39631         Prefer $(...) to `...`.
39632         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
39633         the template, and it is GNU mktemp specific.
39634         Prefer set -e to long series of &&.
39635         Restore the initial git branch, not "master".
39636         Properly initialize submodules (don't rely only on bootstrap).
39637         Do not reconfigure blindly, use config.status.
39638         * top/README-release: Update instructions for gnu-web-doc-update.
39640 2012-06-11  Jim Meyering  <meyering@redhat.com>
39642         maint.mk: revert most of the previous change re "all these"
39643         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
39644         For rationale, see the discussion at
39645         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
39647 2012-06-10  Karl Berry  <karl@gnu.org>
39649         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
39651         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
39653 2012-06-10  Bruce Korb  <bkorb@gnu.org>
39655         parse-duration: Relicense under LGPLv2+.
39656         * modules/parse-duration (License): Change to LGPLv2+.
39658 2012-06-10  Jim Meyering  <meyering@redhat.com>
39660         maint.mk: prohibit common grammar error: "all these"
39661         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
39662         the list of prohibited word sequences.  It should be "all of these".
39663         * lib/tempname.c (__gen_tempname): Fix one of them.
39665 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39667         do-release-commit-and-tag: support VPATH builds
39668         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
39669         (noteworthy): Defined earlier to factor its value.
39670         (noteworthy_stub): New.
39671         Use it to factor.
39672         (help_version): Split into...
39673         (help, version): these.
39674         Adjust the option processing part.
39675         Support "--option=value" in addition to "--option value".
39676         (builddir): New.
39677         (--builddir): New option.
39678         * top/README-release: Document this.
39679         Reword slightly so that the reader cannot understand that he
39680         has to do these steps before calling do-release-commit-and-tag.
39682 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39684         readme-release: also require announce-gen and maintainer-makefile
39685         * modules/readme-release (Depends-on): here.
39686         * modules/announce-gen, modules/do-release-commit-and-tag,
39687         modules/gnu-web-doc-update, modules/maintainer-makefile
39688         (Description): Point to readme-release.
39690 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39692         maint.mk: fix VPATH issues.
39693         * top/maint.mk (news-check): GNU Make understand $< very well.
39694         (release-prep): NEWS is in $(srcdir).
39696 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
39698         readme-release: require the promoted modules.
39699         * modules/readme-release (Depends-on): Add
39700         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
39701         in this text.
39703 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39704             Bruno Haible  <bruno@clisp.org>
39706         error, strerror-override: Support mingw64 from Fedora 17.
39707         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
39708         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
39709         EINPROGRESS.
39710         * lib/strerror-override.h (strerror_override): Test it.
39711         * lib/strerror-override.c (strerror_override): Likewise.
39712         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
39714 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39715             Bruno Haible  <bruno@clisp.org>
39717         error, strerror-override: Support mingw64 from Fedora 17.
39718         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
39719         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
39720         * lib/strerror-override.h (strerror_override): Test it.
39721         * lib/strerror-override.c (strerror_override): Likewise.
39723 2012-06-03  Bruno Haible  <bruno@clisp.org>
39725         error, strerror-override: Support new errno values from POSIX:2008.
39726         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
39727         ENOTRECOVERABLE.
39728         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
39729         platforms.
39730         * lib/strerror-override.c (strerror_override): Conditionalize the
39731         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
39732         * lib/strerror-override.h (strerror_override): Declare also if
39733         GNULIB_defined_EOWNERDEAD is defined.
39734         * tests/test-errno.c (e130, e131): New variables.
39735         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
39736         ENOTRECOVERABLE.
39737         Reported by Paolo Bonzini.
39739 2012-05-31  Jim Meyering  <meyering@redhat.com>
39741         savewd: add missing dependency on sys_wait module
39742         * modules/savewd (Depends-on): Add sys_wait, needed at least
39743         for MSVC.  Report and suggested change by Michael Goffioul.
39745 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
39747         system-quote-tests: port to CentOS 5
39748         Problem reported by Tom G. Christensen in
39749         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
39750         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
39752 2012-05-29  Jim Meyering  <meyering@redhat.com>
39754         maint: fix typos in comments and ChangeLog
39755         Culprits identified and fixed mostly automatically using these commands:
39756         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
39757         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
39758         using http://github.com/lyda/misspell-check
39759         * ChangeLog: Fix typos.
39760         * doc/solaris-versions: Likewise.
39761         * lib/regexec.c (re_search_stub): Likewise.
39762         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39764 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39766         manywarnings: remove duplicate -Wmultichar entry
39767         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
39768         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
39769         so keep the entry marked as documented.
39771 2012-05-27  Karl Berry  <karl@gnu.org>
39773         * config/srclist.txt (mktime.c): remove last libc sync,
39774         perhaps just temporarily.
39776 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
39778         regex: don't assume uint64_t or uint32_t
39779         * lib/regcomp.c (init_word_char): Don't assume that the types
39780         uint64_t and uint32_t exist.  The C standard doesn't guarantee
39781         them, and on some 32-bit compilers there is no uint64_t.
39782         Problem reported by Gianluigi Tiesi in
39783         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
39785 2012-05-25  Jim Meyering  <meyering@redhat.com>
39787         maint.mk: add strncpy-prohibiting syntax-check rule
39788         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
39790 2012-05-24  Jim Meyering  <meyering@redhat.com>
39792         maint.mk: compute $(gpg_key_ID) more portably
39793         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
39794         That use of sed is not portable to some fringe systems.
39795         Reported by Paul Eggert in
39796         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
39798 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39800         mktime: sync from glibc
39801         * config/srclist.txt: Uncomment mktime.c.
39802         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
39803         First, indent with tabs, since glibc uses tabs and doesn't want to
39804         change and we'd rather be identical to glibc.  Also, two small
39805         coding changes:
39806         (isdst_differ): Use &&, not &, as && is the usual style.
39807         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
39808         for clarity.
39810 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39812         announce-gen: du -h is more portable than du --human
39813         * build-aux/announce-gen (sizes): Invoke du with -h instead
39814         of --human.  Accept leading white space in its output.
39816 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39818         announce-gen: Improve diagnostics.
39819         * build-aux/announce-gen: When parsing command line options,
39820         prefer "announce-gen: option --release-type requires an argument"
39821         to "Option release-type requires an argument".
39823 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39825         maint.mk: gpg_key_ID: use sed more portably
39826         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
39827         the closing brace.
39828         (refresh-po): Fuse two sed invocations into one.
39830 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
39832         gitlog-to-changelog: support the log message format used in Bison.
39833         * build-aux/gitlog-to-changelog: Support --strip-tab and
39834         --strip-cherry-picked.
39836 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39838         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
39839         the rest of the current time slice to another thread in the current
39840         process. So if the thread that feeds the file decscriptor we're
39841         polling is not in the current process, we get busy-waiting.
39842         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
39843         Patch from Theodore Leblond.
39844         * lib/select.c: Split polling out of the loop that sets the output
39845         fd_sets.  Check for zero result and loop if the wait timeout is
39846         infinite.
39848 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39850         select: Fix build error on IRIX 6.5.
39851         * lib/select.c: Include stddef.h for NULL.
39853 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39855         gc: fix libgcrypt detection on older machines.
39856         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
39857         copyright years because the file has been distributed every year
39858         since it was created.
39860 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
39862         crypto: fix bug in large buffer handling
39863         Problem reported by Serge Belyshev for glibc in
39864         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
39865         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
39866         * lib/md4.c (md4_process_block):
39867         * lib/md5.c (md5_process_block):
39868         * lib/sha1.c (sha1_process_block):
39869         * lib/sha256.c (sha256_process_block):
39870         Don't assume the buffer length is less than 2**32.
39871         * lib/sha512.c (sha512_process_block): Likewise.
39872         Here, the bug is present only in the rare case where the host does
39873         not support uint64_t or where size_t is wider than 64 bits.
39874         Use u64size to work around the problems.
39875         * lib/u64.h (u64size): New macro.
39877 2012-05-15  Pádraig Brady  <P@draigBrady.com>
39879         fsusage: fix block size returned on older Linux 2.6
39881         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
39882         which is available since Linux 2.6.
39883         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
39884         when the member is available so it can be used as a fallback.
39885         * doc/posix-functions/statvfs.texi: Mention the hang issue
39886         on Linux < 2.6.36.
39888 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39890         bootstrap: suppress stderr chatter
39891         * build-aux/bootstrap (insert_sorted_if_absent, main program):
39892         Omit unnecessary chatter to stderr.  The main program chatter
39893         was there only inadvertantly.
39895         bootstrap: .gitignore files created by autopoint, libtool
39896         I ran into this problem when bootstrapping the latest diffutils.
39897         After './bootstrap', 'git status' reported lots of untracked files
39898         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
39899         autopoint and do not need to be version-controlled.
39900         * build-aux/bootstrap: Put into .gitignore the files that
39901         autopoint and libtool create, by keeping track of files that exist
39902         after but not before these programs are run.
39903         (version_controlled_file): Move up.  2nd arg is now full file
39904         name, not base name; this is more convenient.  Put CVS at the end,
39905         as it's now somewhat deprecated.
39907 2012-05-14  Jim Meyering  <meyering@redhat.com>
39909         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
39910         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
39911         definition.  Reported by Bruno Haible.
39913 2012-05-13  Bruno Haible  <bruno@clisp.org>
39914             Paul Eggert  <eggert@cs.ucla.edu>
39916         binary-io: Define set_binary_mode function.
39917         * lib/binary-io.h (set_binary_mode): New function.
39918         (SET_BINARY): Define in terms of set_binary_mode.
39919         * modules/binary-io (configure.ac): Require AC_C_INLINE.
39920         * tests/test-binary-io.c (main): Accept an argument, and test either
39921         set_binary_mode or SET_BINARY depending on the argument.
39922         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
39923         argument. Clean up also t-bin-out0.tmp.
39925 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
39927         bootstrap: take advantage of POSIX shell features
39929         The 'bootstrap' script offered by Gnulib script already uses POSIX
39930         shell features (like $((...)) arithmetic expansions) that are not
39931         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
39932         means that bootstrap must already be run using a proper POSIX shell,
39933         which will thus provide more features, like ${var#pattern} parameter
39934         expansion or inversion of a command exit status with '!'.  We can
39935         thus use these features to improve the clarity and the performances
39936         of the bootstrap script.
39938         Suggested by Eric Blake.
39940         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
39941         of sed/expr plus command substitutions, to save some forks.  While
39942         we are at it, prefer the POSIX $(...) form of command substitution,
39943         rather than the legacy form `...` (since the former is visually
39944         clearer and interacts better with quoting), and prefer the idiom:
39945           "if ! CMD; then ACTION ..."
39946         over the idiom:
39947           "if CMD; then :; else ACTION ..."
39948         which was required by legacy Bourne shells not supporting '!'.
39950 2012-05-12  Bruno Haible  <bruno@clisp.org>
39952         system-quote: Add more comments.
39953         * lib/system-quote.h: Add more comments about wilcards and limitations.
39954         Suggested by Eli Zaretskii <eliz@gnu.org>.
39956         sh-quote, system-quote: Add comments about wildcards.
39957         * lib/sh-quote.h: Clarify what happens with wildcard characters.
39958         * lib/system-quote.h: Likewise.
39959         Reported by Eli Zaretskii <eliz@gnu.org>.
39961 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
39963         fsusage: check for GNU/Linux statvfs problem dynamically
39964         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
39965         Define STAT_STATFS2_BSIZE too, since in this case the code now
39966         checks dynamically whether statvfs is reliable, falling back on
39967         Linux-style statfs otherwise.
39968         (statvfs_works): New function, for dynamically testing statvfs.
39969         (get_fs_usage) [STAT_STATVFS]: Use it.
39970         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
39971         statvfs on GNU/Linux hosts, since it's now done dynamically.
39973 2012-05-10  Bruno Haible  <bruno@clisp.org>
39975         system-quote, execute, spawn-pipe: Escape '?' on Windows.
39976         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
39977         '?' character.
39978         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
39979         * tests/test-system-quote-main.c (check_all): Check also strings like
39980         "??????????".
39981         Reported by Eli Zaretskii <eliz@gnu.org>.
39983 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
39985         _Noreturn: port config.h to gcc -Wundef
39986         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
39987         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
39988         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
39990 2012-05-10  Bruno Haible  <bruno@clisp.org>
39992         system-quote: Refactor.
39993         * lib/system-quote.h (system_quote_copy): Fix comment.
39994         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
39995         New functions, extracted from system_quote_copy.
39996         (system_quote_length, system_quote_copy): Use these functions.
39997         Reported by Paul Eggert.
39999 2012-05-08  Bruno Haible  <bruno@clisp.org>
40001         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
40002         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
40004 2012-05-08  Bruno Haible  <bruno@clisp.org>
40006         Tests for module 'system-quote'.
40007         * modules/system-quote-tests: New file.
40008         * tests/test-system-quote.sh: New file.
40009         * tests/test-system-quote-main.c: New file.
40010         * tests/test-system-quote-child.c: New file.
40012         New module 'system-quote'.
40013         * lib/system-quote.h: New file.
40014         * lib/system-quote.c: New file.
40015         * modules/system-quote: New file.
40017 2012-05-08  Bruno Haible  <bruno@clisp.org>
40019         sh-quote: Make C++ safe and allow multiple inclusion.
40020         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
40021         declarations in extern "C".
40023 2012-05-08  Bruno Haible  <bruno@clisp.org>
40025         sh-quote tests: Make tests stricter.
40026         * tests/test-sh-quote.c (check_one): Check the return value of
40027         shell_quote_copy.
40028         (main): Check a string with a CR character. Check a string that
40029         contains UCHAR_MAX.
40031 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
40033         warnings.m4: provide a means to specify the program to compile.
40034         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
40035         (gl_WARN_ADD): here.
40036         Use gl_AS_VAR_APPEND.
40037         Support an argument to specify the program to compile.
40038         (gl_WARN_ADD): Accept an argument to specify the program to compile.
40039         AC_SUBST the WARN_CFLAGS when they are used.
40040         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
40041         leave this to gl_WARN_ADD.
40043 2012-05-08  Eric Blake  <eblake@redhat.com>
40045         doc: recommendations on gettext version
40046         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
40047         choice between versions.
40048         * DEPENDENCIES (gettext): Cover both approaches.
40050 2012-05-08  Jim Meyering  <meyering@redhat.com>
40052         init.sh: explain why EXEEXT support uses aliases rather than functions
40053         * tests/init.sh: Add a comment.
40055         init.sh: don't let bash aliases interfere with tests
40056         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
40057         is bash.  This avoids problems for those who alias standard commands to
40058         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
40059         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
40061 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
40063         stdint: be more consistent with glibc, SunOS libc
40064         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
40065         (gl_int_fast16_t, gl_uint_fast16_t)
40066         (gl_int_fast32_t, gl_uint_fast32_t)
40067         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
40068         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
40069         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
40070         Be consistent with glibc by default, and with SunOS 5.10 and later
40071         if __sun is defined.  This lessens the likelihood of clashes if
40072         code compiled for older hosts is combined with code compiled for
40073         newer ones.  Problem reported by Niels Möller in
40074         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
40076 2012-05-07  Eric Blake  <eblake@redhat.com>
40078         isatty: relax license to LGPLv2+
40079         * modules/isatty (License): Relax license.
40081 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40083         stat-size: comment fix
40084         * lib/stat-size.h: Remove obsolete comment about indenting.
40086 2012-05-06  Bruno Haible  <bruno@clisp.org>
40088         Tests for module 'sh-quote'.
40089         * modules/sh-quote-tests: New file.
40090         * tests/test-sh-quote.c: New file.
40092 2012-05-06  Bruno Haible  <bruno@clisp.org>
40094         sh-quote: Improve shell_quote_argv's signature.
40095         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
40096         * lib/sh-quote.c (shell_quote_argv): Likewise.
40098 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40100         stdint: document issues with int_fast8_t etc.
40101         * doc/posix-headers/stdint.texi (stdint.h): Say that other
40102         stdint.h substitutes may define these types differently.  See
40103         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
40105 2012-05-05  Bruno Haible  <bruno@clisp.org>
40107         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
40108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
40109         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
40110         or 'guessing no (mishandles large arguments)'.
40112 2012-05-05  Bruno Haible  <bruno@clisp.org>
40114         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
40115         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
40116         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
40117         set gl_cv_func_link_follows_symlink to "guessing no".
40119 2012-05-05  Bruno Haible  <bruno@clisp.org>
40121         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
40122         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
40123         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
40124         "guessing no".
40125         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
40127 2012-05-05  Bruno Haible  <bruno@clisp.org>
40129         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
40130         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
40131         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
40132         set gl_cv_struct_dirent_d_ino to "guessing yes".
40134 2012-05-05  Bruno Haible  <bruno@clisp.org>
40136         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
40137         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
40138         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
40139         "guessing yes".
40141 2012-05-05  Bruno Haible  <bruno@clisp.org>
40143         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
40144         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
40145         compiling to a glibc system, set gl_cv_func_signbit and
40146         gl_cv_func_signbit_gcc to "guessing yes".
40148 2012-05-05  Bruno Haible  <bruno@clisp.org>
40150         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
40151         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
40152         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
40153         to "guessing yes".
40154         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
40155         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
40157 2012-05-05  Bruno Haible  <bruno@clisp.org>
40159         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
40160         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
40161         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
40162         gl_cv_func_realpath_works to "guessing yes".
40164 2012-05-05  Bruno Haible  <bruno@clisp.org>
40166         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
40167         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
40168         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
40170 2012-05-04  Bruno Haible  <bruno@clisp.org>
40172         Tweak last commit.
40173         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
40174         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40176 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
40178         unistd_h: make it easier to avoid sys_types_h
40179         This is useful for Emacs, which has its own method of porting to
40180         Windows, and which therefore does not need the sys_types_h module.
40181         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
40182         code moved here from gl_SYS_TYPES_H.
40183         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
40184         using the code directly.
40185         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
40186         gl_SYS_TYPES_H.
40187         * modules/sys_types (Files):
40188         * modules/unistd (Files): Add m4/off_t.m4.
40190 2012-05-03  Bruno Haible  <bruno@clisp.org>
40192         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
40193         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
40194         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
40195         "guessing yes" or "guessing no".
40196         (gl_FUNC_LSTAT): Update.
40197         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
40198         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
40199         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
40201 2012-05-03  Bruno Haible  <bruno@clisp.org>
40203         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
40204         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
40205         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
40206         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
40207         cross-compiling, choose the first alternative on glibc systems.
40208         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
40210 2012-05-03  Bruno Haible  <bruno@clisp.org>
40212         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
40213         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
40214         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
40216 2012-05-03  Bruno Haible  <bruno@clisp.org>
40218         chown: Avoid "guessing no" when cross-compiling to glibc systems.
40219         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
40221 2012-05-03  Bruno Haible  <bruno@clisp.org>
40223         Avoid "guessing no" guesses when cross-compiling to glibc systems.
40224         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
40225         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
40226         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
40227         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
40228         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
40229         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
40230         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
40231         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
40232         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
40233         compiling to glibc systems, set gl_cv_func_chown_slash_works,
40234         gl_cv_func_chown_ctime_works to "guessing yes".
40235         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
40236         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
40237         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
40238         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
40239         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
40240         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
40241         compiling to glibc systems, set gl_cv_func_open_directory_works to
40242         "guessing yes".
40243         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
40244         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
40245         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
40246         "guessing yes".
40247         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
40248         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
40249         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
40250         compiling to glibc systems, set gl_cv_func_floorf_ieee to
40251         "guessing yes".
40252         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
40253         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
40254         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
40255         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
40256         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
40257         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
40258         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
40259         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
40260         "guessing yes".
40261         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
40262         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
40263         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
40264         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
40265         "guessing yes".
40266         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
40267         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
40268         "guessing yes".
40269         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
40270         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
40271         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
40272         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
40273         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
40274         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
40275         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
40276         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
40277         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
40278         compiling to glibc systems, set gl_cv_func_log10f_ieee to
40279         "guessing yes".
40280         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
40281         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
40282         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
40283         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
40284         "guessing yes".
40285         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
40286         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
40287         "guessing yes".
40288         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
40289         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
40290         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
40291         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
40292         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
40293         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
40294         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
40295         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
40296         compiling to glibc systems, set gl_cv_func_mkfifo_works to
40297         "guessing yes".
40298         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
40299         compiling to glibc systems, set gl_cv_func_mknod_works to
40300         "guessing yes".
40301         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
40302         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
40303         "guessing yes".
40304         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
40305         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
40306         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
40307         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
40308         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
40309         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
40310         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
40311         compiling to glibc systems, set gl_cv_func_svid_putenv to
40312         "guessing yes".
40313         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
40314         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
40315         "guessing yes".
40316         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
40317         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
40318         "guessing yes".
40319         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
40320         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
40321         to "guessing yes".
40322         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
40323         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
40324         to "guessing yes".
40325         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
40326         compiling to glibc systems, set gl_cv_func_rmdir_works to
40327         "guessing yes".
40328         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
40329         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
40330         gl_cv_func_unlink_parent_fails to "guessing yes".
40331         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
40332         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
40333         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
40334         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
40335         gl_cv_func_rename_dest_works to "guessing yes".
40336         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
40337         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
40338         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
40339         compiling to glibc systems, set gl_cv_func_roundf_ieee to
40340         "guessing yes".
40341         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
40342         compiling to glibc systems, set gl_cv_func_roundl_ieee to
40343         "guessing yes".
40344         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
40345         compiling to glibc systems, set gl_cv_func_setenv_works to
40346         "guessing yes".
40347         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
40348         compiling to glibc systems, set gl_cv_func_unsetenv_works to
40349         "guessing yes".
40350         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
40351         compiling to glibc systems, set gl_cv_func_sleep_works to
40352         "guessing yes".
40353         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
40354         compiling to glibc systems, set gl_cv_func_stat_file_slash to
40355         "guessing yes".
40356         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
40357         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
40358         "guessing yes".
40359         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
40360         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
40361         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
40362         compiling to glibc systems, set gl_cv_func_truncf_ieee to
40363         "guessing yes".
40364         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
40365         compiling to glibc systems, set gl_cv_func_truncl_ieee to
40366         "guessing yes".
40367         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
40368         compiling to glibc systems, set gl_cv_func_usleep_works to
40369         "guessing yes".
40370         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
40371         compiling to glibc systems, set gl_cv_func_futimesat_works to
40372         "guessing yes".
40374 2012-05-03  Bruno Haible  <bruno@clisp.org>
40376         Say "guessing yes" or "guessing no" when cross-compiling.
40377         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
40378         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
40379         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
40380         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
40381         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
40382         am_cv_func_working_getline to "guessing yes" or "guessing no".
40383         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
40384         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
40385         (gl_FUNC_MEMMEM): When cross-compiling, set
40386         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
40387         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
40388         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
40389         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
40390         set gl_cv_func_strcasestr_works_always to "guessing yes" or
40391         "guessing no".
40392         (gl_FUNC_STRCASESTR): When cross-compiling, set
40393         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
40394         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
40395         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
40396         (gl_FUNC_STRSTR): When cross-compiling, set
40397         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
40398         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
40399         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
40400         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
40401         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
40403 2012-05-01  Bruno Haible  <bruno@clisp.org>
40405         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
40406         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
40407         * build-aux/reloc-ldflags: Likewise.
40408         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
40410 2012-05-01  Bruno Haible  <bruno@clisp.org>
40412         gnulib-tool: Remove transitional code.
40413         * gnulib-tool: Don't warn about --import with 0 arguments any more.
40414         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
40416 2012-05-01  Bruno Haible  <bruno@clisp.org>
40418         getcwd: Fix misindentation.
40419         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
40421 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
40423         exclude: process exclude and include directives in order
40424         This restores the pre-2009 behavior, and is part of a fix of a
40425         grep bug reported by Quentin Arce in
40426         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
40427         * lib/exclude.c (struct exclude): Remove 'tail' member.
40428         (new_exclude_segment): Prepend the new segment instead of appending.
40429         Return void, since that's now more convenient.
40430         (file_pattern_matches): Renamed from excluded_file_pattern_p.
40431         (file_name_matches): Renamed from excluded_file_name_p.
40432         (file_pattern_matches, file_name_matches):
40433         Return true if the pattern matches, not if it excludes.
40434         All callers changed.
40435         (excluded_file_name): Process the list in reverse order;
40436         since the list is now reversed this restores the pre-2009 behavior.
40437         (add_exclude): Adjust to new reversed-order list.  Use local var
40438         rather than macro, for clarity.
40439         * tests/test-exclude7.sh: Adjust to corrected behavior.
40441         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
40442         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
40443         it's not possible here.  Handle the case of \ at end of pattern
40444         without dumping core.
40445         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
40447         _Noreturn: future-proof non-GNU and non-MSVC compilers
40448         * build-aux/snippet/_Noreturn.h (_Noreturn):
40449         * m4/gnulib-common.m4 (gl_COMMON_BODY):
40450         Do not define _Noreturn if __STDC_VERSION__ indicates this is
40451         C11 or later.  This is more likely to work with random future C
40452         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
40453         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
40455         exclude: handle wildcards with FNM_EXTMATCH
40456         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
40457         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
40458         comment that "has wildcards" really means "has or may have
40459         wildcards".  Simplify by avoiding the need to call strcspn.
40461 2012-04-29  Bruno Haible  <bruno@clisp.org>
40463         gnulib-tool: Fix list of authors.
40464         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
40466 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
40468         bootstrap: support Automake-NG in $buildreq
40469         * bootstrap (check_versions): Handle automake and aclocal from
40470         Automake-NG specially.  They can be specified as respectively
40471         the "automake-ng" and "aclocal-ng" requirements.
40473 2012-04-25  Eric Blake  <eblake@redhat.com>
40475         bootstrap: only force latest Makefile.in.in for gettext module
40476         * build-aux/bootstrap (with_gettext): Only install latest
40477         Makefile.in.in for projects requesting bleeding edge gettext.
40479 2012-04-22  Bruno Haible  <bruno@clisp.org>
40481         doc: Mention reason for replacement on glibc/Linux systems.
40482         * doc/posix-functions/dprintf.texi: Mention the problem with special
40483         'long double' values.
40484         * doc/posix-functions/fprintf.texi: Likewise.
40485         * doc/posix-functions/printf.texi: Likewise.
40486         * doc/posix-functions/snprintf.texi: Likewise.
40487         * doc/posix-functions/sprintf.texi: Likewise.
40488         * doc/posix-functions/vdprintf.texi: Likewise.
40489         * doc/posix-functions/vfprintf.texi: Likewise.
40490         * doc/posix-functions/vprintf.texi: Likewise.
40491         * doc/posix-functions/vsnprintf.texi: Likewise.
40492         * doc/posix-functions/vsprintf.texi: Likewise.
40493         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
40494         platforms with F_DUPFD_CLOEXEC problems.
40495         * doc/posix-functions/glob.texi: Mention which platforms are affected
40496         by the problem with symbolic links.
40497         * doc/posix-functions/linkat.texi: Mention the problem with
40498         AT_SYMLINK_FOLLOW on Linux.
40500 2012-04-22  Bruno Haible  <bruno@clisp.org>
40502         pwrite: Don't replace on all platforms.
40503         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
40505 2012-04-22  Bruno Haible  <bruno@clisp.org>
40507         rint* tests: Avoid gcc warnings.
40508         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
40509         * tests/test-rintf.c (INFINITY, NAN): Likewise.
40510         * tests/test-rintl.c (INFINITY, NAN): Likewise.
40512 2012-04-21  Bruno Haible  <bruno@clisp.org>
40514         users.txt: Update.
40515         * users.txt: Add freedink, wdiff. Update URLs for projects that have
40516         switched from CVS to git, bzr, or svn.
40518 2012-04-21  Bruno Haible  <bruno@clisp.org>
40520         Large File Support for native Windows platforms.
40522         * m4/largefile.m4 (gl_LARGEFILE): New macro.
40523         * modules/largefile (configure.ac): Require gl_LARGEFILE.
40525         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
40526         type.
40527         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
40528         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
40529         * doc/posix-headers/sys_types.texi: Mention the effect of the
40530         'largefile' module.
40532         * lib/fcntl.in.h: Add comments about off_t.
40533         * modules/fcntl-h (Depends-on): Add sys_types.
40535         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
40536         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
40537         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
40538         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
40539         * modules/unistd (Depends-on): Add sys_types.
40540         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
40542         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
40543         instead of lseek.
40544         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
40545         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
40546         * modules/lseek (Depends-on): Add sys_types.
40548         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
40549         msvc-nothrow.h.
40550         (SetFileSize): New function.
40551         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
40552         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
40553         if Large File Support is requested.
40554         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
40555         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
40557         * lib/stdio.in.h: Add comments about off_t.
40558         * modules/stdio (Depends-on): Add sys_types.
40560         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
40561         instead of ftello.
40562         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
40563         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
40564         (gl_PREREQ_FTELLO): New macro.
40565         * modules/ftello (Depends-on): Add sys_types.
40566         (configure.ac): Incoke gl_PREREQ_FTELLO.
40568         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
40569         instead of fseeko.
40570         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
40571         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
40572         (gl_PREREQ_FSEEKO): New macro.
40573         * modules/fseeko (Depends-on): Add sys_types.
40574         (configure.ac): Invoke gl_PREREQ_FSEEKO.
40576         * lib/sys_stat.in.h: Add comments about off_t.
40577         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
40578         64-bit integer for st_size in 'struct stat'.
40579         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
40580         Define _GL_WINDOWS_64_BIT_ST_SIZE.
40581         * modules/sys_stat (Depends-on): Add sys_types.
40582         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
40584         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
40585         instead of stat or _stat.
40587         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
40588         'struct _stati64' instead of fstat and 'struct stat'.
40589         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
40590         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
40592         Reported by Ray Satiro <raysatiro@yahoo.com>.
40594 2012-04-19  Eric Blake  <eblake@redhat.com>
40596         bootstrap: accommodate older libtool
40597         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
40598         Reported by Daniel P. Berrange.
40600 2012-04-19  Jim Meyering  <meyering@redhat.com>
40602         announce-gen: avoid failure due to lack of Digest::SHA1
40603         Even with the preferred Digest::SHA available, this script
40604         would fail when the backup module, Digest::SHA1, was not installed.
40605         * build-aux/announce-gen: Quote the conditional use of "use".
40606         Reported by Reuben Thomas in:
40607         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
40609         bootstrap: don't let a user's CDPATH setting affect this script
40610         When CDPATH is set, cd will sometimes generate output.
40611         When "cd" is run in a subshell whose output matters, that
40612         surprising-to-some output can cause malfunction.
40613         Unsetting CDPATH turns off this shell "feature."
40614         * build-aux/bootstrap (CDPATH): Unset.
40615         Reported by Reuben Thomas in:
40616         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
40617         and inspired by his patch here:
40618         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
40620 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
40621         and Jim Meyering  <meyering@redhat.com>
40623         maint.mk: catch "see @xref{}" and similar
40624         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
40625         prohibit "See also @xref{", "Also see @pxref{", and similar.
40627 2012-04-16  Jim Meyering  <meyering@redhat.com>
40629         bootstrap: really use gnulib's po/Makefile.in.in
40630         * build-aux/bootstrap: Correct the source file name in previous change.
40631         Reported by Akim Demaille.
40633         configmake: correct minor inconsistency in Makefile rule
40634         * modules/configmake (Makefile.am): All other rules like this one
40635         run the final "mv -f ..." in the same backslash-continued command
40636         as the one that does everything else.  This one put the mv -f ...
40637         command on a separate, non-backslash-continued line.
40638         Make it like the others.
40640         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
40641         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
40642         the one from gettext.  Reported by Akim Demaille.
40644 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
40646         Fix recursion of install-* into po directories.
40647         Bison's install-pdf bug reported by Hans Aberg at
40648         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
40649         * build-aux/po/Makefile.in.in (install-dvi, install-html)
40650         (install-info, install-pdf, install-ps): New targets.
40652 2012-04-16  Jim Meyering  <meyering@redhat.com>
40654         maint: avoid spurious "make sc_maint" failure
40655         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
40656         exempt all *.class file names, for lib/javaversion.class.
40658 2012-04-15  Bruno Haible  <bruno@clisp.org>
40660         lseek: Make configure test independent of environment.
40661         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
40662         Windows, we know that lseek() on pipes is broken; skip the runtime
40663         test.
40665 2012-04-14  Bruno Haible  <bruno@clisp.org>
40667         stat: Bypass buggy override in mingw64.
40668         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
40669         * lib/stat.c (stat) [mingw64]: Define to _stat.
40670         * doc/posix-functions/stat.texi: Mention mingw64 bug.
40672 2012-04-14  Bruno Haible  <bruno@clisp.org>
40674         pathmax: Fix compilation error on MSVC 9.
40675         * modules/pathmax (Depends-on): Add unistd.
40677 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
40679         README: document pointer comparison assumption
40680         * README (Portability guidelines): Document assumption about
40681         pointer comparisons, in response to a recent bug-gnulib comment by
40682         Jeffrey Kegler.
40684 2012-04-12  Bruno Haible  <bruno@clisp.org>
40686         Tests for module 'getrusage'.
40687         * modules/getrusage-tests: New file.
40688         * tests/test-getrusage.c: New file.
40690         New module 'getrusage'.
40691         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
40692         warn-on-use.h.
40693         (getrusage): New declaration.
40694         * lib/getrusage.c: New file.
40695         * m4/getrusage.m4: New file.
40696         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
40697         is declared.
40698         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
40699         HAVE_GETRUSAGE.
40700         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
40701         snippet/c++defs, snippet/warn-on-use.
40702         (Makefile.am): Update generation of sys/resource.h. Substitute
40703         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
40704         * modules/getrusage: New file.
40705         * doc/posix-functions/getrusage.texi: Mention the new module.
40707 2012-04-12  Bruno Haible  <bruno@clisp.org>
40709         Tests for module 'sys_resource'.
40710         * modules/sys_resource-tests: New file.
40711         * tests/test-sys_resource.c: New file.
40713         New module 'sys_resource'.
40714         * lib/sys_resource.in.h: New file.
40715         * m4/sys_resource_h.m4: New file.
40716         * modules/sys_resource: New file.
40717         * doc/posix-headers/sys_resource.texi: Mention the new module.
40719 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
40721         ioctl: Fix compilation error on mingw.
40722         * lib/ioctl.c: Include <windows.h>.
40723         Also reported by Ray Satiro <raysatiro@yahoo.com>.
40725 2012-04-04  Jim Meyering  <meyering@redhat.com>
40727         regex: correct #pragma guard expression
40728         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
40729         not 4.3.  Correct its cpp guard expression.
40731 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40733         regex: remove unnecessary type punning
40734         Problem reported by Vladimir Serbinenko in
40735         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
40736         * lib/regex.h (struct re_pattern_buffer): Change the type of
40737         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
40738         Fix comment to match code.
40739         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
40740         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
40741         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
40742         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
40743         (set_regs):
40744         Omit no-longer-necessary casts.
40746 2012-04-03  Bruno Haible  <bruno@clisp.org>
40748         Tests for module 'ilogbl'.
40749         * modules/ilogbl-tests: New file.
40750         * tests/test-ilogbl.c: New file.
40752         New module 'ilogbl'.
40753         * lib/math.in.h (ilogbl): New declaration.
40754         * lib/ilogbl.c: New file.
40755         * m4/ilogbl.m4: New file.
40756         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
40757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
40758         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
40759         Split sed invocation, to avoid the limit of 100 substitutions of
40760         HP-UX 'sed'.
40761         * modules/ilogbl: New file.
40762         * tests/test-math-c++.cc: Check the declaration of ilogbl.
40763         * doc/posix-functions/ilogbl.texi: Mention the new module.
40765 2012-04-03  Bruno Haible  <bruno@clisp.org>
40767         Tests for module 'ilogbf'.
40768         * modules/ilogbf-tests: New file.
40769         * tests/test-ilogbf.c: New file.
40771         New module 'ilogbf'.
40772         * lib/math.in.h (ilogbf): New declaration.
40773         * lib/ilogbf.c: New file.
40774         * m4/ilogbf.m4: New file.
40775         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
40776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
40777         REPLACE_ILOGBF.
40778         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
40779         REPLACE_ILOGBF.
40780         * modules/ilogbf: New file.
40781         * tests/test-math-c++.cc: Check the declaration of ilogbf.
40782         * doc/posix-functions/ilogbf.texi: Mention the new module.
40784 2012-04-03  Bruno Haible  <bruno@clisp.org>
40786         Tests for module 'ilogb'.
40787         * modules/ilogb-tests: New file.
40788         * tests/test-ilogb.c: New file.
40789         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
40790         tests/test-logb-ieee.h.
40792         New module 'ilogb'.
40793         * lib/math.in.h (ilogb): New declaration.
40794         * lib/ilogb.c: New file.
40795         * m4/ilogb.m4: New file.
40796         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
40797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
40798         REPLACE_ILOGB.
40799         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
40800         REPLACE_ILOGB.
40801         * modules/ilogb: New file.
40802         * tests/test-math-c++.cc: Check the declaration of ilogb.
40803         * doc/posix-functions/ilogb.texi: Mention the new module.
40805 2012-04-03  Bruno Haible  <bruno@clisp.org>
40807         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
40808         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
40809         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
40810         (main): Check their values.
40811         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
40812         problem.
40814 2012-04-03  Bruno Haible  <bruno@clisp.org>
40816         Tests for module 'logbl-ieee'.
40817         * modules/logbl-ieee-tests: New file.
40818         * tests/test-logbl-ieee.c: New file.
40820         New module 'logbl-ieee'.
40821         * modules/logbl-ieee: New file.
40823         Tests for module 'logb-ieee'.
40824         * modules/logb-ieee-tests: New file.
40825         * tests/test-logb-ieee.c: New file.
40827         New module 'logb-ieee'.
40828         * modules/logb-ieee: New file.
40830         Tests for module 'logbf-ieee'.
40831         * modules/logbf-ieee-tests: New file.
40832         * tests/test-logbf-ieee.c: New file.
40833         * tests/test-logb-ieee.h: New file.
40835         New module 'logbf-ieee'.
40836         * modules/logbf-ieee: New file.
40838 2012-04-03  Bruno Haible  <bruno@clisp.org>
40840         Tests for module 'logbl'.
40841         * modules/logbl-tests: New file.
40842         * tests/test-logbl.c: New file.
40844         New module 'logbl'.
40845         * lib/math.in.h (logbl): New declaration.
40846         * lib/logbl.c: New file.
40847         * m4/logbl.m4: New file.
40848         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
40849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
40850         REPLACE_LOGBL.
40851         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
40852         REPLACE_LOGBL.
40853         * modules/logbl: New file.
40854         * tests/test-math-c++.cc: Check the declaration of logbl.
40855         * doc/posix-functions/logbl.texi: Mention the new module.
40857 2012-04-02  Bruno Haible  <bruno@clisp.org>
40859         Tests for module 'logbf'.
40860         * modules/logbf-tests: New file.
40861         * tests/test-logbf.c: New file.
40863         New module 'logbf'.
40864         * lib/math.in.h (logbf): New declaration.
40865         * lib/logbf.c: New file.
40866         * m4/logbf.m4: New file.
40867         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
40868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
40869         REPLACE_LOGBF.
40870         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
40871         REPLACE_LOGBF.
40872         * modules/logbf: New file.
40873         * tests/test-math-c++.cc: Check the declaration of logbf.
40874         * doc/posix-functions/logbf.texi: Mention the new module.
40876 2012-04-02  Bruno Haible  <bruno@clisp.org>
40878         logb tests: More tests.
40879         * tests/test-logb.h: New file, based on tests/test-logb.c and
40880         tests/test-frexp.h.
40881         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
40882         (main): Just invoke test_function.
40883         * modules/logb-tests (Files): Add tests/test-logb.h,
40884         tests/minus-zero.h, tests/randomd.c.
40885         (Makefile.am): Add randomd.c to test_logb_SOURCES.
40887         logb: Provide replacement and workarounds.
40888         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
40889         is 1.
40890         * lib/logb.c: New file.
40891         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
40892         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
40893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
40894         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
40895         * modules/logb (Files): Add lib/logb.c.
40896         (Depends-on): Add isfinite, frexp, isnand.
40897         (configure.ac): Compile the replacement code logb.c if needed.
40898         * tests/test-math-c++.cc: Check the declaration of logb.
40899         * doc/posix-functions/logb.texi: Mention the replacement and the bug
40900         with subnormal numbers.
40902 2012-04-02  Bruno Haible  <bruno@clisp.org>
40904         log10* tests: Speed up.
40905         * tests/test-log10.h (test_function): Reduce amount of random numbers
40906         to test.
40908 2012-04-01  Bruno Haible  <bruno@clisp.org>
40910         logf-ieee: Fix test whether logf works.
40911         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
40913 2012-04-01  Bruno Haible  <bruno@clisp.org>
40915         log10l: Work around log10l-ieee test failure on IRIX 6.5.
40916         * lib/log10l.c: Include <float.h>
40917         (log10l): On IRIX, normalize the +Infinity value.
40918         * modules/log10l (Depends-on): Add 'float'.
40919         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
40920         +Infinity.
40922         log10f-ieee: Work around test failure on NetBSD 5.1.
40923         * m4/log10f-ieee.m4: New file.
40924         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
40925         test whether log10f works with a negative argument. Replace it if not.
40926         * lib/log10f.c (log10f): For negative arguments, return NaN.
40927         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
40928         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
40929         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
40931         log10f-ieee: Work around test failure on Solaris 9.
40932         * modules/log10f-ieee (Depends-on): Add log10-ieee.
40933         (configure.ac): Require gl_FUNC_LOG10F.
40935         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40936         * m4/log10-ieee.m4: New file.
40937         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
40938         whether log10 works with a negative argument. Replace it if not.
40939         * lib/log10.c (log10): For negative arguments, return NaN.
40940         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
40941         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
40942         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
40944         Tests for module 'log10l-ieee'.
40945         * modules/log10l-ieee-tests: New file.
40946         * tests/test-log10l-ieee.c: New file.
40948         New module 'log10l-ieee'.
40949         * modules/log10l-ieee: New file.
40951         Tests for module 'log10-ieee'.
40952         * modules/log10-ieee-tests: New file.
40953         * tests/test-log10-ieee.c: New file.
40955         New module 'log10-ieee'.
40956         * modules/log10-ieee: New file.
40958         Tests for module 'log10f-ieee'.
40959         * modules/log10f-ieee-tests: New file.
40960         * tests/test-log10f-ieee.c: New file.
40961         * tests/test-log10-ieee.h: New file.
40963         New module 'log10f-ieee'.
40964         * modules/log10f-ieee: New file.
40966 2012-04-01  Bruno Haible  <bruno@clisp.org>
40968         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
40969         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
40970         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
40971         workaround.
40972         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
40973         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
40974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
40975         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
40976         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
40977         (Depends-on): Update conditions.
40978         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
40979         IRIX 6.5, OSF/1 5.1 problems.
40981 2012-04-01  Bruno Haible  <bruno@clisp.org>
40983         log10f: Work around OSF/1 5.1 bug.
40984         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
40985         * lib/log10f.c (log10f): If logf exists, use it and provide just the
40986         workaround.
40987         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
40988         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
40989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
40990         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
40991         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
40992         (Depends-on): Update conditions.
40993         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
40995 2012-04-01  Bruno Haible  <bruno@clisp.org>
40997         log10: Work around OSF/1 5.1 bug.
40998         * lib/math.in.h (log10): New declaration.
40999         * lib/log10.c: New file.
41000         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
41001         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
41002         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
41003         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
41004         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
41005         * modules/log10 (Files): Add lib/log10.c.
41006         (Depends-on): Add math.
41007         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
41008         * tests/test-math-c++.cc: Check the declaration of log10.
41009         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
41011 2012-03-31  Bruno Haible  <bruno@clisp.org>
41013         log10l tests: More tests.
41014         * modules/log10l-tests (Files): Add tests/test-log10l.h,
41015         tests/minus-zero.h, tests/randoml.c.
41016         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
41017         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
41018         (main): Invoke test_function.
41020         log10f tests: More tests.
41021         * modules/log10f-tests (Files): Add tests/test-log10.h,
41022         tests/minus-zero.h, tests/randomf.c.
41023         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
41024         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
41025         (main): Invoke test_function.
41027         log10 tests: More tests.
41028         * tests/test-log10.h: New file.
41029         * modules/log10-tests (Files): Add tests/test-log10.h,
41030         tests/minus-zero.h, tests/randomd.c.
41031         (Makefile.am): Add randomd.c to test_log10_SOURCES.
41032         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
41033         (main): Invoke test_function.
41035 2012-03-31  Simon Josefsson  <simon@josefsson.org>
41037         fflush: Fix syntax error.
41038         * lib/fflush.c: Include unused-parameter.h, needed for
41039         _GL_UNUSED_PARAMETER.
41040         * modules/fflush (Depends-on): Add snippet/unused-parameter.
41042 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41044         regex: pacify GCC when compiling GRUB
41045         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
41046         a diagnostic.  Reported by Vladimir Serbinenko in
41047         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
41049 2012-03-29  Eric Blake  <eblake@redhat.com>
41051         stdio: don't assume gets any more
41052         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
41053         support.
41054         * modules/stdio (Makefile.am): Likewise.
41055         * lib/stdio-read.c (gets): Likewise.
41056         * tests/test-stdio-c++.cc: Likewise.
41057         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
41058         * lib/stdio.in.h (gets): Make warning occur in more places.
41059         * doc/posix-functions/gets.texi (gets): Update documentation.
41060         Reported by Christer Solskogen.
41062         maint.mk: fix syntax checks without exclusions
41063         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
41064         Reported by Daniel P. Berrange.
41066         strerror_r: avoid compiler warning
41067         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
41068         level.
41070         fflush: avoid compiler warning
41071         * lib/fflush.c (update_fpos_cache): Mark variables that are
41072         potentially unused.
41074 2012-03-25  Bruno Haible  <bruno@clisp.org>
41076         Tests for module 'localeconv'.
41077         * modules/localeconv-tests: New file.
41078         * tests/test-localeconv.c: New file.
41080         New module 'localeconv'.
41081         * lib/locale.in.h (localeconv): New declaration.
41082         * lib/localeconv.c: New file.
41083         * m4/localeconv.m4: New file.
41084         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
41085         REPLACE_LOCALECONV.
41086         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
41087         REPLACE_LOCALECONV.
41088         * modules/localeconv: New file.
41089         * modules/nl_langinfo (Depends-on): Add localeconv.
41090         * modules/human (Depends-on): Likewise.
41091         * doc/posix-functions/localeconv.texi: Mention the new module.
41093 2012-03-25  Bruno Haible  <bruno@clisp.org>
41095         locale: Provide a complete 'struct lconv'.
41096         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
41097         'struct lconv' does not contain int_p_cs_precedes.
41098         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
41099         * doc/posix-headers/locale.texi: Update.
41101         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
41102         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
41103         * doc/posix-headers/locale.texi: Update.
41105         locale: Provide a working 'struct lconv'.
41106         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
41107         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
41108         'struct lconv' does not even contain decimal_point.
41109         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
41110         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
41111         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
41112         * doc/posix-headers/locale.texi: Mention the problems with
41113         'struct lconv'.
41114         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
41116 2012-03-24  Bruno Haible  <bruno@clisp.org>
41118         Enable common subexpression optimization in GCC.
41119         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
41120         macros.
41121         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
41122         GCC attribute 'const'.
41123         (uc_locale_language): Declare with GCC attribute 'pure'.
41124         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
41125         with GCC attribute 'const'.
41126         * lib/unictype.in.h (uc_is_general_category_withtable,
41127         uc_combining_class, uc_combining_class_name,
41128         uc_combining_class_long_name, uc_bidi_class_name,
41129         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
41130         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
41131         uc_decimal_value, uc_digit_value, uc_numeric_value,
41132         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
41133         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
41134         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
41135         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
41136         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
41137         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
41138         Declare with GCC attribute 'const'.
41139         (uc_general_category_name, uc_general_category_long_name,
41140         uc_general_category_byname, uc_general_category,
41141         uc_is_general_category, uc_combining_class_byname,
41142         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
41143         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
41144         Declare with GCC attribute 'pure'.
41145         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
41146         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
41147         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
41148         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
41149         with GCC attribute 'pure'.
41150         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
41151         'const'.
41152         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
41153         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
41154         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
41155         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
41156         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
41157         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
41158         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
41159         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
41160         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
41161         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
41162         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
41163         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
41164         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
41165         GCC attribute 'pure'.
41166         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
41167         'const'.
41168         * lib/uniwidth.in.h (uc_width): Simplify declaration.
41169         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
41170         u32_strwidth): Declare with GCC attribute 'pure'.
41172         Enable common subexpression optimization in GCC.
41173         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
41174         (alphasort): Declare with GCC attribute 'pure'.
41175         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
41176         (atoll): Declare with GCC attribute 'pure'.
41177         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41178         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41179         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
41180         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
41181         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
41182         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
41183         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
41185 2012-03-24  Bruno Haible  <bruno@clisp.org>
41187         gnulib-tool: Avoid unintended error output from 'cmp'.
41188         * gnulib-tool (func_add_file, func_update_file, func_import): Use
41189         "cmp -s", not "cmp > /dev/null".
41191 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
41193         gnulib-tool: fix imprecise comments w.r.t. an automake bug
41195         It's not just Automake versions < 1.9b that creates an empty
41196         pkgdatadir at installation time if pkgdata_DATA is specified
41197         to empty; modern automake versions do this as well, at least
41198         until automake 1.11.4 (not yet released at the moment of writing,
41199         but soon to appear).  That behaviour was generally considered a
41200         feature rather than a bug, at least until this discussion:
41201         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
41203         See also automake bugs #10997 and #11030.
41205         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
41206         reference to relevant automake bug numbers.
41207         (func_emit_tests_Makefile_am): Likewise.
41209 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
41211         announce-gen: use Digest::SHA when possible
41212         * build-aux/announce-gen: Use Digest::SHA when possible, falling
41213         back to Digest::SHA1 if necessary.
41215 2012-03-20  Jim Meyering  <meyering@redhat.com>
41217         tests: avoid gcc warnings about argv vs. const initializers
41218         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
41219         warnings about discarding 'const' qualifier from pointer target type.
41220         * tests/test-posix_spawn2.c (main): Likewise.
41222 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
41224         README-release: simplify slightly
41225         * top/README-release: Run "git checkout master" only once.
41227 2012-03-15  Mark Wielaard  <mark@klomp.org>
41229         git-merge-changelog: add specific example on how to use with hg.
41230         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
41232 2012-03-18  Mark Wielaard  <mark@klomp.org>
41234         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
41236 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
41238         git-version-gen: don't let "prefix" envvar cause trouble
41239         * build-aux/git-version-gen (prefix): Initialize properly,
41240         so as not to use a value specified via the environment.
41241         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
41243 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
41245         regex: diagnose too-large repeat counts in EREs
41246         Previously, the code did not diagnose the too-large repeat count
41247         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
41248         as if it were 'b\{1000000000}', which is unexpected.
41249         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
41250         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
41251         is a reasonable one for this problem.  Another option would be to
41252         create a new REG_OVERFLOW error for repeat counts that are too large.
41253         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
41254         count is too large, so that the caller can distinguish the two cases.
41255         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
41256         "Too large" return code, and that repeat counts are one example of this.
41258 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
41260         doc: some glibc x32 integer width issues
41261         * doc/posix-headers/sys_types.texi (sys/types.h):
41262         * doc/posix-headers/time.texi (time.h):
41263         Mention that glibc x32 does not conform to POSIX in a couple of
41264         areas related to integer widths.
41266 2012-03-15  Bruno Haible  <bruno@clisp.org>
41268         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
41269         * lib/fma.c (VOLATILE): New macro.
41270         (FUNC): Use it to work around a GCC compiler bug.
41272 2012-03-13  Bruno Haible  <bruno@clisp.org>
41274         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
41275         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
41276         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
41277         REPLACE_HYPOTL to 1.
41278         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
41280 2012-03-13  Bruno Haible  <bruno@clisp.org>
41282         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
41283         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
41284         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
41285         REPLACE_REMAINDERL to 1.
41286         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
41287         bug.
41289 2012-03-13  Bruno Haible  <bruno@clisp.org>
41291         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
41292         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
41293         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
41294         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
41295         too big rounding errors.
41296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
41297         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
41298         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
41299         (Depends-on): Update conditions.
41300         * tests/test-sqrtl.c (my_ldexpl): New function.
41301         (main): Add test of a particular value.
41302         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
41304 2012-03-13  Pádraig Brady  <P@draigBrady.com>
41306         doc: Update timer_* platform portability notes.
41307         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
41308         that always return ENOSYS.
41309         * doc/posix-functions/timer_delete.texi: Likewise.
41310         * doc/posix-functions/timer_gettime.texi: Likewise.
41311         * doc/posix-functions/timer_settime.texi: Likewise.
41313 2012-03-13  Bruno Haible  <bruno@clisp.org>
41315         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
41316         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
41317         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
41318         REPLACE_CBRTL to 1.
41319         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
41321 2012-03-13  Bruno Haible  <bruno@clisp.org>
41323         remainderl: Avoid compilation error on AIX >= 5.2.
41324         * lib/math.in.h (remainderl): Undefine macro from the system header.
41326 2012-03-13  Bruno Haible  <bruno@clisp.org>
41328         Avoid compilation errors with MSVC option -fp:strict.
41329         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
41330         * lib/cbrtf.c: Likewise.
41331         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41333 2012-03-12  Bruno Haible  <bruno@clisp.org>
41335         uninorm: Don't crash in out-of-memory conditions.
41336         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
41337         gracefully.
41338         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
41339         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
41341 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
41343         quote: fix syntax-check
41344         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
41345         also exports quote_quoting_options.
41347 2012-03-12  Simon Josefsson  <simon@josefsson.org>
41349         Collapse list of copyright years to ranges.  See
41350         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
41351         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
41352         build-aux/csharpexec.sh.in, build-aux/gnupload,
41353         build-aux/install-reloc, build-aux/javacomp.sh.in,
41354         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
41355         build-aux/move-if-change, build-aux/reloc-ldflags,
41356         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
41358 2012-03-11  Bruno Haible  <bruno@clisp.org>
41360         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
41361         * m4/log2f-ieee.m4: New file.
41362         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
41363         whether log2f works with a minus zero argument. Replace it if not.
41364         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
41365         (Depends-on): Add log2-ieee.
41366         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
41367         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
41369         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
41370         * m4/log2-ieee.m4: New file.
41371         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
41372         whether log2 works with a minus zero argument. Replace it if not.
41373         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
41374         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
41375         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
41377         Tests for module 'log2l-ieee'.
41378         * modules/log2l-ieee-tests: New file.
41379         * tests/test-log2l-ieee.c: New file.
41381         New module 'log2l-ieee'.
41382         * modules/log2l-ieee: New file.
41384         Tests for module 'log2-ieee'.
41385         * modules/log2-ieee-tests: New file.
41386         * tests/test-log2-ieee.c: New file.
41388         New module 'log2-ieee'.
41389         * modules/log2-ieee: New file.
41391         Tests for module 'log2f-ieee'.
41392         * modules/log2f-ieee-tests: New file.
41393         * tests/test-log2f-ieee.c: New file.
41394         * tests/test-log2-ieee.h: New file.
41396         New module 'log2f-ieee'.
41397         * modules/log2f-ieee: New file.
41399 2012-03-11  Bruno Haible  <bruno@clisp.org>
41401         Tests for module 'log2l'.
41402         * modules/log2l-tests: New file.
41403         * tests/test-log2l.c: New file.
41405         New module 'log2l'.
41406         * lib/math.in.h (log2l): New declaration.
41407         * lib/log2l.c: New file.
41408         * m4/log2l.m4: New file.
41409         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
41410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
41411         REPLACE_LOG2L.
41412         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
41413         REPLACE_LOG2L.
41414         * modules/log2l: New file.
41415         * tests/test-math-c++.cc: Check the declaration of log2l.
41416         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
41417         and OSF/1 problems.
41419 2012-03-11  Bruno Haible  <bruno@clisp.org>
41421         Tests for module 'log2f'.
41422         * modules/log2f-tests: New file.
41423         * tests/test-log2f.c: New file.
41425         New module 'log2f'.
41426         * lib/math.in.h (log2f): New declaration.
41427         * lib/log2f.c: New file.
41428         * m4/log2f.m4: New file.
41429         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
41430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
41431         REPLACE_LOG2F.
41432         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
41433         REPLACE_LOG2F.
41434         * modules/log2f: New file.
41435         * tests/test-math-c++.cc: Check the declaration of log2f.
41436         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
41437         and OSF/1 and Cygwin problems.
41439 2012-03-11  Bruno Haible  <bruno@clisp.org>
41441         Tests for module 'log2'.
41442         * modules/log2-tests: New file.
41443         * tests/test-log2.c: New file.
41444         * tests/test-log2.h: New file.
41446         New module 'log2'.
41447         * lib/math.in.h (log2): New declaration.
41448         * lib/log2.c: New file.
41449         * m4/log2.m4: New file.
41450         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
41451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
41452         REPLACE_LOG2.
41453         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
41454         REPLACE_LOG2.
41455         * modules/log2: New file.
41456         * tests/test-math-c++.cc: Check the declaration of log2.
41457         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
41458         and OSF/1 and Cygwin problems.
41460 2012-03-11  Bruno Haible  <bruno@clisp.org>
41462         exp2* tests: More tests.
41463         * tests/test-exp2.h (test_function): Test all integral arguments that
41464         don't need to overflow or denormalized numbers.
41465         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
41466         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
41467         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
41469 2012-03-10  Bruno Haible  <bruno@clisp.org>
41471         log1pl-ieee: Work around test failure on AIX 7.1.
41472         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
41474         log1pl-ieee: Work around test failure on IRIX 6.5.
41475         * m4/log1pl-ieee.m4: New file.
41476         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
41477         test whether log1pl works with a minus zero argument. Replace it if
41478         not.
41479         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
41480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
41481         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
41482         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
41483         (Depends-on): Update conditions.
41484         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
41485         m4/signbit.m4.
41486         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
41487         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
41489         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
41490         * m4/log1pf-ieee.m4: New file.
41491         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
41492         test whether log1pf works with a minus zero argument. Replace it if
41493         not.
41494         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
41495         m4/signbit.m4.
41496         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
41497         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
41499         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
41500         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
41501         (configure.ac): Require gl_FUNC_LOG1PF.
41503         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
41504         * m4/log1p-ieee.m4: New file.
41505         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
41506         whether log1p works with a minus zero argument. Replace it if not.
41507         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
41508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
41509         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
41510         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
41511         (Depends-on): Update conditions.
41512         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
41513         m4/signbit.m4.
41514         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
41515         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
41517         Tests for module 'log1pl-ieee'.
41518         * modules/log1pl-ieee-tests: New file.
41519         * tests/test-log1pl-ieee.c: New file.
41521         New module 'log1pl-ieee'.
41522         * modules/log1pl-ieee: New file.
41524         Tests for module 'log1p-ieee'.
41525         * modules/log1p-ieee-tests: New file.
41526         * tests/test-log1p-ieee.c: New file.
41528         New module 'log1p-ieee'.
41529         * modules/log1p-ieee: New file.
41531         Tests for module 'log1pf-ieee'.
41532         * modules/log1pf-ieee-tests: New file.
41533         * tests/test-log1pf-ieee.c: New file.
41534         * tests/test-log1p-ieee.h: New file.
41536         New module 'log1pf-ieee'.
41537         * modules/log1pf-ieee: New file.
41539 2012-03-10  Bruno Haible  <bruno@clisp.org>
41541         Tests for module 'log1pl'.
41542         * modules/log1pl-tests: New file.
41543         * tests/test-log1pl.c: New file.
41545         New module 'log1pl'.
41546         * lib/math.in.h (log1pl): New declaration.
41547         * lib/log1pl.c: New file.
41548         * m4/log1pl.m4: New file.
41549         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
41550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
41551         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
41552         * modules/log1pl: New file.
41553         * tests/test-math-c++.cc: Check the declaration of log1pl.
41554         * doc/posix-functions/log1pl.texi: Mention the new module.
41556 2012-03-10  Bruno Haible  <bruno@clisp.org>
41558         Tests for module 'log1pf'.
41559         * modules/log1pf-tests: New file.
41560         * tests/test-log1pf.c: New file.
41562         New module 'log1pf'.
41563         * lib/math.in.h (log1pf): New declaration.
41564         * lib/log1pf.c: New file.
41565         * m4/log1pf.m4: New file.
41566         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
41567         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
41568         REPLACE_LOG1PF.
41569         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
41570         REPLACE_LOG1PF.
41571         * modules/log1pf: New file.
41572         * tests/test-math-c++.cc: Check the declaration of log1pf.
41573         * doc/posix-functions/log1pf.texi: Mention the new module.
41575 2012-03-10  Bruno Haible  <bruno@clisp.org>
41577         log1p tests: More tests.
41578         * tests/test-log1p.h: New file.
41579         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
41580         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
41581         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
41582         (main): Invoke test_function.
41584         log1p: Provide replacement for Minix and MSVC.
41585         * lib/math.in.h (log1p): New declaration.
41586         * lib/log1p.c: New file.
41587         * m4/log1p.m4: New file.
41588         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
41589         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
41590         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
41591         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
41592         (Depends-on): Add math, isnand, log, round.
41593         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
41594         HAVE_LOG1P is 0.
41595         * tests/test-math-c++.cc: Check the declaration of log1p.
41596         * doc/posix-functions/log1p.texi: Mention the replacement.
41598 2012-03-10  Bruno Haible  <bruno@clisp.org>
41600         math tests: Small simplification.
41601         * tests/test-exp.h (test_function): Use the same err_bound for
41602         'double' on platforms with sizeof (long double) == sizeof (double)
41603         than on platforms with sizeof (long double) > sizeof (double).
41604         * tests/test-exp2.h (test_function): Likewise.
41605         * tests/test-expm1.h (test_function): Likewise.
41606         * tests/test-log.h (test_function): Likewise.
41608 2012-03-10  Bruno Haible  <bruno@clisp.org>
41610         Fix some comments.
41611         * lib/expl.c: Fix an ambiguous comment.
41612         * lib/expm1.c: Likewise.
41613         * lib/expm1l.c: Likewise.
41614         * lib/exp2.c: Likewise.
41615         * lib/exp2l.c: Likewise.
41617 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
41619         regex: allow inclusion of <regex.h> before <limits.h>
41620         Without this patch, portable programs had to include <limits.h> before
41621         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
41622         I ran into this problem with a test version of GNU grep on Solaris 8.
41623         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
41624         This is done conditionally so that this change can be merged
41625         back to glibc.
41626         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
41627         using the included regex.
41629         fts: depend on fdopendir
41630         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
41631         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
41632         problem was introduced when fdopendir was split out.
41634 2012-03-10  Bruno Haible  <bruno@clisp.org>
41636         Remove unused variables.
41637         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
41638         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
41640 2012-03-10  Bruno Haible  <bruno@clisp.org>
41642         isnanf-nolibm: Fix last commit.
41643         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
41645         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
41646         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
41648 2012-03-10  Bruno Haible  <bruno@clisp.org>
41650         logf-ieee: Work around test failure on NetBSD 5.1.
41651         * m4/logf-ieee.m4: New file.
41652         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
41653         whether logf works with a negative argument. Replace it if not.
41654         * lib/logf.c (logf): For negative arguments, return NaN.
41655         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
41656         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
41657         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
41659         logf-ieee: Work around test failure on Solaris 9.
41660         * modules/logf-ieee (Depends-on): Add log-ieee.
41661         (configure.ac): Require gl_FUNC_LOGF.
41663         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
41664         * m4/log-ieee.m4: New file.
41665         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
41666         log works with a negative argument. Replace it if not.
41667         * lib/log.c (log): For negative arguments, return NaN.
41668         * modules/log-ieee (Files): Add m4/log-ieee.m4.
41669         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
41670         * doc/posix-functions/log.texi: Mention the log-ieee module.
41672         Tests for module 'logl-ieee'.
41673         * modules/logl-ieee-tests: New file.
41674         * tests/test-logl-ieee.c: New file.
41676         New module 'logl-ieee'.
41677         * modules/logl-ieee: New file.
41679         Tests for module 'log-ieee'.
41680         * modules/log-ieee-tests: New file.
41681         * tests/test-log-ieee.c: New file.
41683         New module 'log-ieee'.
41684         * modules/log-ieee: New file.
41686         Tests for module 'logf-ieee'.
41687         * modules/logf-ieee-tests: New file.
41688         * tests/test-logf-ieee.c: New file.
41689         * tests/test-log-ieee.h: New file.
41691         New module 'logf-ieee'.
41692         * modules/logf-ieee: New file.
41694 2012-03-10  Bruno Haible  <bruno@clisp.org>
41696         log: Fix bug introduced on 2012-03-09.
41697         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
41699 2012-03-10  Pádraig Brady  <P@draigBrady.com>
41701         timer-time: link explicitly with pthreads on glibc
41702         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
41703         to support static linking, when newer glibc is
41704         detected, as that contains pthread emulation of
41705         POSIX timer functions where required.
41706         * modules/timer-time: Depend on threadlib to
41707         pull in the appropriate library to link.
41709 2012-03-10  Bruno Haible  <bruno@clisp.org>
41711         log* tests: More tests.
41712         * tests/test-log.h: New file.
41713         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
41714         (main): Invoke test_function.
41715         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
41716         (main): Invoke test_function.
41717         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
41718         (main): Invoke test_function.
41719         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41720         tests/randomd.c.
41721         (Makefile.am): Add randomd.c to test_log_SOURCES.
41722         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41723         tests/randomf.c.
41724         (Makefile.am): Add randomf.c to test_logf_SOURCES.
41725         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41726         tests/randoml.c.
41727         (Depends-on): Add 'float'.
41728         (Makefile.am): Add randoml.c to test_logl_SOURCES.
41730 2012-03-09  Bruno Haible  <bruno@clisp.org>
41732         logl: Work around OSF/1 5.1 bug.
41733         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
41734         * lib/logl.c (logl): If logl exists, use it and provide just the
41735         workaround.
41736         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
41737         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
41738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
41739         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
41740         * modules/logl (configure.ac): Consider REPLACE_LOGL.
41741         (Depends-on): Update conditions.
41742         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
41744 2012-03-09  Bruno Haible  <bruno@clisp.org>
41746         logf: Work around OSF/1 5.1 bug.
41747         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
41748         * lib/logf.c (logf): If logf exists, use it and provide just the
41749         workaround.
41750         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
41751         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
41752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
41753         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
41754         * modules/logf (configure.ac): Consider REPLACE_LOGF.
41755         (Depends-on): Update conditions.
41756         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
41758 2012-03-09  Bruno Haible  <bruno@clisp.org>
41760         log: Work around OSF/1 5.1 bug.
41761         * lib/math.in.h (log): New declaration.
41762         * lib/log.c: New file.
41763         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
41764         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
41765         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
41766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
41767         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
41768         * modules/log (Files): Add lib/log.c.
41769         (Depends-on): Add math.
41770         (configure.ac): If REPLACE_LOG is 1, compile an override.
41771         * tests/test-math-c++.cc: Check the declaration of log.
41772         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
41774 2012-03-09  Jim Meyering  <meyering@redhat.com>
41776         readtokens.c: adjust wording in a comment
41777         * lib/readtokens.c: Insert omitted "that" in a comment.
41779 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41781         modechange: add notations +40, 00440, etc.
41782         * lib/modechange.c (mode_compile): Support new notations
41783         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
41785 2012-03-08  Bruno Haible  <bruno@clisp.org>
41787         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
41788         * m4/exp2l-ieee.m4: New file.
41789         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
41790         test whether exp2l works with a NaN argument and with a negative
41791         infinity argument. Replace it if not.
41792         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
41793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
41794         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
41795         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
41796         (Depends-on): Update conditions.
41797         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
41798         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
41799         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
41801         Tests for module 'exp2l-ieee'.
41802         * modules/exp2l-ieee-tests: New file.
41803         * tests/test-exp2l-ieee.c: New file.
41805         New module 'exp2l-ieee'.
41806         * modules/exp2l-ieee: New file.
41808         Tests for module 'exp2-ieee'.
41809         * modules/exp2-ieee-tests: New file.
41810         * tests/test-exp2-ieee.c: New file.
41812         New module 'exp2-ieee'.
41813         * modules/exp2-ieee: New file.
41815         Tests for module 'exp2f-ieee'.
41816         * modules/exp2f-ieee-tests: New file.
41817         * tests/test-exp2f-ieee.c: New file.
41818         * tests/test-exp2-ieee.h: New file.
41820         New module 'exp2f-ieee'.
41821         * modules/exp2f-ieee: New file.
41823 2012-03-08  Bruno Haible  <bruno@clisp.org>
41825         Tests for module 'exp2l'.
41826         * modules/exp2l-tests: New file.
41827         * tests/test-exp2l.c: New file.
41829         New module 'exp2l'.
41830         * lib/math.in.h (exp2l): New declaration.
41831         * lib/exp2l.c: New file.
41832         * lib/expl-table.c: New file, extracted from lib/expl.c.
41833         * lib/expl.c (gl_expl_table): New declaration.
41834         (expl): Remove expl_table. Update reference.
41835         * m4/exp2l.m4: New file.
41836         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
41837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
41838         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
41839         * modules/exp2l: New file.
41840         * modules/expl (Files): Add lib/expl-table.c.
41841         (configure.ac): Compile also expl-table.c.
41842         * tests/test-math-c++.cc: Check the declaration of exp2l.
41843         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
41844         problem.
41846 2012-03-08  Bruno Haible  <bruno@clisp.org>
41848         Tests for module 'exp2f'.
41849         * modules/exp2f-tests: New file.
41850         * tests/test-exp2f.c: New file.
41852         New module 'exp2f'.
41853         * lib/math.in.h (exp2f): New declaration.
41854         * lib/exp2f.c: New file.
41855         * m4/exp2f.m4: New file.
41856         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
41857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
41858         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
41859         * modules/exp2f: New file.
41860         * tests/test-math-c++.cc: Check the declaration of exp2f.
41861         * doc/posix-functions/exp2f.texi: Mention the new module and the
41862         IRIX problem.
41864 2012-03-08  Bruno Haible  <bruno@clisp.org>
41866         Tests for module 'exp2'.
41867         * modules/exp2-tests: New file.
41868         * tests/test-exp2.c: New file.
41869         * tests/test-exp2.h: New file.
41871         New module 'exp2'.
41872         * lib/math.in.h (exp2): New declaration.
41873         * lib/exp2.c: New file.
41874         * m4/exp2.m4: New file.
41875         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
41876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
41877         REPLACE_EXP2.
41878         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
41879         REPLACE_EXP2.
41880         * modules/exp2: New file.
41881         * tests/test-math-c++.cc: Check the declaration of exp2.
41882         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
41883         and OpenBSD problems.
41885 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41887         savedir: fix comment typo
41888         * lib/savedir.c (savedirstream): Fix typo in comment.
41890 2012-03-08  Bruno Haible  <bruno@clisp.org>
41892         test-readtokens.c: use const; remove unwarranted cast
41893         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
41895 2012-03-08  Bruno Haible  <bruno@clisp.org>
41897         fmal: Avoid compilation error on AIX.
41898         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
41899         AIX 5.2..7.1.
41901 2012-03-08  Bruno Haible  <bruno@clisp.org>
41903         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
41904         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
41905         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
41906         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
41907         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
41908         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
41909         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
41911 2012-03-08  Bruno Haible  <bruno@clisp.org>
41913         remainderf: Override buggy system function on IRIX 6.5.
41914         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
41915         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
41916         when it exists.
41917         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
41919 2012-03-08  Jim Meyering  <meyering@redhat.com>
41921         test-readtokens.c: avoid const-related compilation warnings
41922         * tests/test-readtokens.c: Avoid const-related compilation warnings.
41924 2012-03-07  Jim Meyering  <meyering@redhat.com>
41925             Bruno Haible  <bruno@clisp.org>
41927         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
41928         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
41929         tests/randomd.c.
41930         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
41931         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
41932         tests/randoml.c.
41933         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
41935 2012-03-07  Bruno Haible  <bruno@clisp.org>
41937         expm1l: Avoid compilation error on AIX.
41938         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
41939         AIX 5.2..7.1.
41941 2012-03-07  Bruno Haible  <bruno@clisp.org>
41943         expm1l: Don't override undeclared system function on IRIX 6.5.
41944         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
41945         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
41946         it exists. Set HAVE_DECL_EXPM1L.
41947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
41948         HAVE_EXPM1L.
41949         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
41950         HAVE_EXPM1L.
41951         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
41953 2012-03-07  Bruno Haible  <bruno@clisp.org>
41955         remainderl: Don't override undeclared system function on IRIX 6.5.
41956         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
41957         HAVE_REMAINDERL.
41958         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
41959         declared when it exists. Set HAVE_DECL_REMAINDERL.
41960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
41961         not HAVE_REMAINDERL.
41962         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
41963         HAVE_REMAINDERL.
41964         * doc/posix-functions/remainderl.texi: Mention missing declaration
41965         problem.
41967 2012-03-07  Bruno Haible  <bruno@clisp.org>
41969         rintf: Don't override undeclared system function on IRIX 6.5.
41970         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
41971         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
41972         exists. Set HAVE_DECL_RINTF.
41973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
41974         HAVE_RINTF.
41975         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
41976         HAVE_RINTF.
41977         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
41979 2012-03-07  Bruno Haible  <bruno@clisp.org>
41981         roundl: Avoid compilation error on AIX.
41982         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
41983         AIX 5.2..7.1.
41985 2012-03-07  Bruno Haible  <bruno@clisp.org>
41987         roundl: Don't override undeclared system function on IRIX 6.5.
41988         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
41989         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
41990         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41991         * modules/roundl (configure.ac): For replacement code, test
41992         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41993         (Depends-on): Update conditions.
41994         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
41996 2012-03-07  Bruno Haible  <bruno@clisp.org>
41998         roundf: Don't override undeclared system function on IRIX 6.5.
41999         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
42000         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
42001         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
42002         * modules/roundf (configure.ac): For replacement code, test
42003         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
42004         (Depends-on): Update conditions.
42005         * modules/roundf-ieee (Depends-on): Update conditions.
42006         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
42008 2012-03-07  Bruno Haible  <bruno@clisp.org>
42010         round: Don't override undeclared system function on IRIX 6.5.
42011         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
42012         argument.
42013         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
42014         also when it is not declared. Set HAVE_ROUND. For replacement code,
42015         test HAVE_ROUND, not HAVE_DECL_ROUND.
42016         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
42017         not HAVE_DECL_ROUND.
42018         (Depends-on): Update conditions.
42019         * modules/round-ieee (Depends-on): Update conditions.
42020         * doc/posix-functions/round.texi: Mention the IRIX problem.
42022 2012-03-07  Bruno Haible  <bruno@clisp.org>
42024         copysignf: Don't override undeclared system function on IRIX 6.5.
42025         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
42026         HAVE_COPYSIGNF.
42027         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
42028         declared when it exists. Set HAVE_DECL_COPYSIGNF.
42029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
42030         not HAVE_COPYSIGNF.
42031         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
42032         HAVE_COPYSIGNF.
42033         * doc/posix-functions/copysignf.texi: Mention missing declaration
42034         problem.
42036 2012-03-07  Jim Meyering  <meyering@redhat.com>
42038         readtokens: add tests
42039         * modules/readtokens-tests: New file.
42040         * tests/test-readtokens.c: New file.
42042 2012-03-07  Jim Meyering  <meyering@redhat.com>
42044         quotearg: the module must now include quote.h
42045         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
42046         So must the module.
42047         * modules/quotearg (Files): Add quote.h.
42049 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
42051         readtokens: avoid core dumps with unusual calling patterns
42052         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
42053         * lib/readtokens.c: Include limits.h.
42054         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
42055         (readtoken): Don't cache the delimiters; the cache code was buggy
42056         if !delim && saved_delim, or if the new n_delim differs from the old.
42057         Also, it wasn't thread-safe.
42059 2012-03-07  Bruno Haible  <bruno@clisp.org>
42061         quote: Adhere to common module description layout.
42062         * modules/quote (Makefile.am): Add back empty section.
42064 2012-03-06  Akim Demaille  <demaille@gostai.com>
42066         quote: fuse into quotearg
42067         This patch is made for the benefit of Bison.
42068         quote does not leave the choice of the quoting style to the user.
42069         quoting_style provides poor customizability, yet quoting_options,
42070         which is very rich, is hidden inside quotearg.c.  So in order to
42071         allow quote customization, move its implementation to quotearg.c.
42072         * lib/quote.c: Remove.
42073         * modules/quote: Adjust.
42074         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
42075         warning: provide all the members of literal structs.
42076         (quote_quoting_options): New.
42077         (quote, quote_n): Import implementation from quote.c.
42078         * lib/quote.h: Import the comments from quote.c.
42079         (quote_quoting_options): New.
42081 2012-03-06  Bruno Haible  <bruno@clisp.org>
42083         Tests for module 'expm1l-ieee'.
42084         * modules/expm1l-ieee-tests: New file.
42085         * tests/test-expm1l-ieee.c: New file.
42087         New module 'expm1l-ieee'.
42088         * modules/expm1l-ieee: New file.
42090         Tests for module 'expm1f-ieee'.
42091         * modules/expm1f-ieee-tests: New file.
42092         * tests/test-expm1f-ieee.c: New file.
42094         New module 'expm1f-ieee'.
42095         * modules/expm1f-ieee: New file.
42097         Tests for module 'expm1-ieee'.
42098         * modules/expm1-ieee-tests: New file.
42099         * tests/test-expm1-ieee.c: New file.
42100         * tests/test-expm1-ieee.h: New file.
42102         New module 'expm1-ieee'.
42103         * modules/expm1-ieee: New file.
42104         * m4/expm1-ieee.m4: New file.
42105         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
42106         whether expm1 works with a minus zero argument. Replace it if not.
42107         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
42108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
42109         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
42110         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
42111         (Depends-on): Update conditions.
42112         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
42113         AIX problem.
42115 2012-03-06  Bruno Haible  <bruno@clisp.org>
42117         Work around expm1f bug on IRIX 6.5.
42118         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
42119         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
42120         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
42121         not work.
42122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
42123         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
42124         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
42125         (Depends-on): Update conditions.
42126         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
42128 2012-03-06  Bruno Haible  <bruno@clisp.org>
42130         Tests for module 'expm1l'.
42131         * modules/expm1l-tests: New file.
42132         * tests/test-expm1l.c: New file.
42134         New module 'expm1l'.
42135         * lib/math.in.h (expm1l): New declaration.
42136         * lib/expm1l.c: New file.
42137         * m4/expm1l.m4: New file.
42138         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
42139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
42140         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
42141         * modules/expm1l: New file.
42142         * tests/test-math-c++.cc: Check the declaration of expm1l.
42143         * doc/posix-functions/expm1l.texi: Mention the new module.
42145 2012-03-06  Bruno Haible  <bruno@clisp.org>
42147         Tests for module 'expm1f'.
42148         * modules/expm1f-tests: New file.
42149         * tests/test-expm1f.c: New file.
42151         New module 'expm1f'.
42152         * lib/math.in.h (expm1f): New declaration.
42153         * lib/expm1f.c: New file.
42154         * m4/expm1f.m4: New file.
42155         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
42156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
42157         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
42158         * modules/expm1f: New file.
42159         * tests/test-math-c++.cc: Check the declaration of expm1f.
42160         * doc/posix-functions/expm1f.texi: Mention the new module.
42162 2012-03-06  Bruno Haible  <bruno@clisp.org>
42164         Tests for module 'expm1'.
42165         * modules/expm1-tests: New file.
42166         * tests/test-expm1.c: New file.
42167         * tests/test-expm1.h: New file.
42169         New module 'expm1'.
42170         * lib/math.in.h (expm1): New declaration.
42171         * lib/expm1.c: New file.
42172         * m4/expm1.m4: New file.
42173         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
42174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
42175         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
42176         * modules/expm1: New file.
42177         * tests/test-math-c++.cc: Check the declaration of expm1.
42178         * doc/posix-functions/expm1.texi: Mention the new module.
42180 2012-03-06  Bruno Haible  <bruno@clisp.org>
42182         math: Ensure declarations of math functions.
42183         * modules/acosf (Depends-on): Add 'extensions'.
42184         * modules/asinf (Depends-on): Likewise.
42185         * modules/atan2f (Depends-on): Likewise.
42186         * modules/atanf (Depends-on): Likewise.
42187         * modules/cbrt (Depends-on): Likewise.
42188         * modules/cbrtf (Depends-on): Likewise.
42189         * modules/cbrtl (Depends-on): Likewise.
42190         * modules/copysignf (Depends-on): Likewise.
42191         * modules/copysignl (Depends-on): Likewise.
42192         * modules/cosf (Depends-on): Likewise.
42193         * modules/coshf (Depends-on): Likewise.
42194         * modules/expf (Depends-on): Likewise.
42195         * modules/fabsf (Depends-on): Likewise.
42196         * modules/fabsl (Depends-on): Likewise.
42197         * modules/fmaf (Depends-on): Likewise.
42198         * modules/fmal (Depends-on): Likewise.
42199         * modules/fmodf (Depends-on): Likewise.
42200         * modules/fmodl (Depends-on): Likewise.
42201         * modules/frexpf (Depends-on): Likewise.
42202         * modules/frexpl (Depends-on): Likewise.
42203         * modules/hypot (Depends-on): Likewise.
42204         * modules/hypotf (Depends-on): Likewise.
42205         * modules/hypotl (Depends-on): Likewise.
42206         * modules/ldexpf (Depends-on): Likewise.
42207         * modules/ldexpl (Depends-on): Likewise.
42208         * modules/log10f (Depends-on): Likewise.
42209         * modules/log10l (Depends-on): Likewise.
42210         * modules/log1p (Depends-on): Likewise.
42211         * modules/logb (Depends-on): Likewise.
42212         * modules/logf (Depends-on): Likewise.
42213         * modules/modff (Depends-on): Likewise.
42214         * modules/modfl (Depends-on): Likewise.
42215         * modules/powf (Depends-on): Likewise.
42216         * modules/remainderf (Depends-on): Likewise.
42217         * modules/remainderl (Depends-on): Likewise.
42218         * modules/rintf (Depends-on): Likewise.
42219         * modules/rintl (Depends-on): Likewise.
42220         * modules/sinf (Depends-on): Likewise.
42221         * modules/sinhf (Depends-on): Likewise.
42222         * modules/sqrtf (Depends-on): Likewise.
42223         * modules/tanf (Depends-on): Likewise.
42224         * modules/tanhf (Depends-on): Likewise.
42225         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
42226         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
42227         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
42228         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
42229         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
42230         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
42231         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
42232         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
42233         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
42234         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
42235         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
42236         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
42237         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
42238         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
42239         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
42240         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
42241         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
42242         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
42243         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
42244         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
42245         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
42246         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
42247         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
42248         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
42249         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
42250         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
42251         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
42252         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
42253         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
42254         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
42255         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
42256         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
42257         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
42258         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
42259         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
42260         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
42261         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
42262         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
42263         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
42264         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
42265         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
42267 2012-03-06  Bruno Haible  <bruno@clisp.org>
42269         math: Update module names in warnings.
42270         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
42271         tanl): Use specific module name in warn-on-use warning.
42273 2012-03-06  Bruno Haible  <bruno@clisp.org>
42275         expl: Simplify computation.
42276         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
42278 2012-03-05  Bruno Haible  <bruno@clisp.org>
42280         exp* tests: More tests.
42281         * tests/test-exp.h: New file.
42282         * tests/test-exp.c: Include <float.h> and test-exp.h.
42283         (main): Invoke test_function.
42284         * tests/test-expf.c: Include <float.h> and test-exp.h.
42285         (main): Invoke test_function.
42286         * tests/test-expl.c: Include <float.h> and test-exp.h.
42287         (main): Invoke test_function.
42288         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
42289         (Makefile.am): Add randomd.c to test_exp_SOURCES.
42290         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
42291         (Makefile.am): Add randomf.c to test_expf_SOURCES.
42292         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
42293         (Depends-on): Add 'float'.
42294         (Makefile.am): Add randoml.c to test_expl_SOURCES.
42296         expl: Fix precision of computed result.
42297         * lib/expl.c: Completely rewritten.
42298         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
42299         (Maintainer): Add me.
42300         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
42302 2012-03-05  Bruno Haible  <bruno@clisp.org>
42304         cbrt* tests: More tests.
42305         * tests/test-cbrt.h: New file.
42306         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
42307         (main): Invoke test_function.
42308         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
42309         (main): Invoke test_function.
42310         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
42311         (main): Invoke test_function.
42312         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
42313         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
42314         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
42315         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
42316         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
42317         (Depends-on): Add 'float'.
42318         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
42320 2012-03-05  Bruno Haible  <bruno@clisp.org>
42322         hypot* tests: More tests.
42323         * tests/test-hypot.h: New file, partially extracted from
42324         tests/test-hypotl.c.
42325         * tests/test-hypot.c: Include test-hypot.h.
42326         (main): Invoke test_function.
42327         * tests/test-hypotf.c: Include test-hypot.h.
42328         (main): Invoke test_function.
42329         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
42330         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
42331         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
42332         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
42333         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
42334         tests/randomf.c.
42335         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
42336         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
42337         tests/randoml.c.
42338         (Depends-on): Add 'fpucw', 'float'.
42339         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
42341 2012-03-05  Bruno Haible  <bruno@clisp.org>
42343         fpucw: Doc about FreeBSD.
42344         * lib/fpucw.h: Mention FreeBSD in comments.
42346 2012-03-04  Bruno Haible  <bruno@clisp.org>
42348         sqrt* tests: More tests.
42349         * tests/test-sqrt.h: New file.
42350         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
42351         (main): Invoke test_function.
42352         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
42353         (main): Invoke test_function.
42354         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
42355         (main): Invoke test_function.
42356         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
42357         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
42358         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
42359         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
42360         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
42361         (Depends-on): Add 'float'.
42362         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
42364 2012-03-04  Bruno Haible  <bruno@clisp.org>
42366         remainder* tests: More tests.
42367         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
42368         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
42369         (main): Invoke test_function.
42370         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
42371         (main): Invoke test_function.
42372         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
42373         (main): Invoke test_function.
42374         * modules/remainder-tests (Files): Add tests/test-remainder.h,
42375         tests/randomd.c.
42376         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
42377         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
42378         tests/randomf.c.
42379         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
42380         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
42381         tests/randoml.c.
42382         (Depends-on): Add 'float'.
42383         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
42385 2012-03-04  Bruno Haible  <bruno@clisp.org>
42387         remainder, remainderf, remainderl: Fix computation for large quotients.
42388         * lib/remainder.c: Completely rewritten.
42389         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
42390         USE_FLOAT.
42391         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
42392         USE_LONG_DOUBLE.
42393         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
42394         isnand, isinf. Remove round, fma.
42395         * modules/remainderf (Files): Add lib/remainder.c.
42396         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
42397         Remove roundf, fmaf.
42398         * modules/remainderl (Files): Add lib/remainder.c.
42399         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
42400         isinf. Remove roundl, fmal.
42401         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
42402         REMAINDER_LIBM.
42403         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
42404         REMAINDERF_LIBM.
42405         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
42406         REMAINDERL_LIBM.
42408 2012-03-04  Bruno Haible  <bruno@clisp.org>
42410         fmod* tests: More tests.
42411         * tests/test-fmod.h (my_ldexp): New function.
42412         (test_function): Reduce amount of random numbers to test. Add tests
42413         of very large quotients x / y.
42414         * tests/test-fmod.c (MAX_EXP): New macro.
42415         * tests/test-fmodf.c (MAX_EXP): Likewise.
42416         * tests/test-fmodl.c (MAX_EXP): Likewise.
42418 2012-03-04  Bruno Haible  <bruno@clisp.org>
42420         fmod, fmodl: Fix computation for large quotients x / y.
42421         * lib/fmod.c: Completely rewritten.
42422         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
42423         USE_LONG_DOUBLE.
42424         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
42425         isnand. Remove fma.
42426         * modules/fmodl (Files): Add lib/fmod.c.
42427         (Depends-on): Add float, isfinite, signbit, fabsl,
42428         frexpl, ldexpl, isnanl. Remove fma.
42429         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
42430         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
42432 2012-03-03  Bruno Haible  <bruno@clisp.org>
42434         fmod* tests: More tests.
42435         * tests/test-fmod.h: New file.
42436         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
42437         (main): Invoke test_function.
42438         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
42439         (main): Invoke test_function.
42440         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
42441         (main): Invoke test_function.
42442         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
42443         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
42444         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
42445         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
42446         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
42447         (Depends-on): Add 'float'.
42448         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
42450 2012-03-03  Bruno Haible  <bruno@clisp.org>
42452         rint* tests: More tests.
42453         * tests/test-rint.h: New file, partially extracted from
42454         tests/test-rintl.c.
42455         * tests/test-rint.c: Include test-rint.h.
42456         (main): Invoke test_function.
42457         * tests/test-rintf.c: Include test-rint.h.
42458         (main): Invoke test_function.
42459         * tests/test-rintl.c: Include test-rint.h.
42460         (main): Invoke test_function.
42461         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
42462         (Makefile.am): Add randomd.c to test_rint_SOURCES.
42463         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
42464         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
42465         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
42466         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
42468 2012-03-03  Bruno Haible  <bruno@clisp.org>
42470         modf* tests: More tests.
42471         * tests/test-modf.h: New file.
42472         * tests/test-modf.c: Include <float.h> and test-modf.h.
42473         (main): Invoke test_function.
42474         * tests/test-modff.c: Include <float.h> and test-modf.h.
42475         (main): Invoke test_function.
42476         * tests/test-modfl.c: Include <float.h> and test-modf.h.
42477         (main): Invoke test_function.
42478         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
42479         (Makefile.am): Add randomd.c to test_modf_SOURCES.
42480         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
42481         (Makefile.am): Add randomf.c to test_modff_SOURCES.
42482         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
42483         (Depends-on): Add 'float'.
42484         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
42486 2012-03-03  Bruno Haible  <bruno@clisp.org>
42488         fabs* tests: More tests.
42489         * tests/test-fabs.h: New file, partially extracted from
42490         tests/test-fabsl.c.
42491         * tests/test-fabs.c (RANDOM): New macro.
42492         * tests/test-fabsf.c (RANDOM): New macro.
42493         * tests/test-fabsl.c (RANDOM): New macro.
42494         * modules/fabs-tests (Files): Add tests/randomd.c.
42495         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
42496         * modules/fabsf-tests (Files): Add tests/randomf.c.
42497         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
42498         * modules/fabsl-tests (Files): Add tests/randoml.c.
42499         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
42501 2012-03-03  Bruno Haible  <bruno@clisp.org>
42503         ldexp* tests: More tests.
42504         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
42505         * tests/test-ldexp.c (RANDOM): New macro.
42506         * tests/test-ldexpf.c (RANDOM): New macro.
42507         * tests/test-ldexpl.c (RANDOM): New macro.
42508         * modules/ldexp-tests (Files): Add tests/randomd.c.
42509         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
42510         * modules/ldexpf-tests (Files): Add tests/randomf.c.
42511         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
42512         * modules/ldexpl-tests (Files): Add tests/randoml.c.
42513         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
42515 2012-03-03  Bruno Haible  <bruno@clisp.org>
42517         frexp* tests: More tests.
42518         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
42519         * tests/test-frexp.c (RANDOM): New macro.
42520         * tests/test-frexpf.c (RANDOM): New macro.
42521         * tests/test-frexpl.c (RANDOM): New macro.
42522         * modules/frexp-tests (Files): Add tests/randomd.c.
42523         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
42524         * modules/frexpf-tests (Files): Add tests/randomf.c.
42525         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
42526         * modules/frexpl-tests (Files): Add tests/randoml.c.
42527         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
42529 2012-03-03  Bruno Haible  <bruno@clisp.org>
42531         Support for pseudo-random numbers in tests.
42532         * tests/randomf.c: New file.
42533         * tests/randomd.c: New file.
42534         * tests/randoml.c: New file.
42535         * tests/macros.h (randomf, randomd, randoml): New declarations.
42537 2012-03-03  Bruno Haible  <bruno@clisp.org>
42539         frexp* tests: Refactor.
42540         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
42541         * tests/test-frexp.c: Include and use it.
42542         * tests/test-frexpf.c: Likewise.
42543         * tests/test-frexpl.c: Likewise.
42544         * modules/frexp-tests (Files): Add tests/test-frexp.h.
42545         * modules/frexpf-tests (Files): Likewise.
42546         * modules/frexpl-tests (Files): Likewise.
42548 2012-03-02  Jim Meyering  <meyering@redhat.com>
42550         maint: don't specify XZ_OPT=-9ev in dist-related rule
42551         Using xz's -9 option is warranted only if you have a very large
42552         tarball (see xz's documentation for the sizes vs. presets), and
42553         requires 64MiB of memory at decompression time.
42554         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
42555         Automake's default of just "-e" is fine.  Override on a
42556         per-package basis by setting XZ_OPT e.g., in cfg.mk.
42558 2012-03-01  Eric Blake  <eblake@redhat.com>
42560         maint.mk: allow announcement for non-gnulib project
42561         * maint.mk (announcement): Skip gnulib version if not used.
42563 2012-03-01  Jim Meyering  <meyering@redhat.com>
42565         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
42566         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
42567         envvar settings cannot interfere.  Otherwise, setting envvars like
42568         prohibit=foo require=bar, etc. would cause spurious test failures.
42570 2012-03-01  Eric Blake  <eblake@redhat.com>
42572         maint.mk: add per-line exclusions to prohibitions
42573         * maint.mk (_sc_search_regexp): Add $exclude parameter.
42574         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
42575         (sc_const_long_option): Use it.
42577 2012-03-01  Bruno Haible  <bruno@clisp.org>
42579         Tests for module 'expl-ieee'.
42580         * modules/expl-ieee-tests: New file.
42581         * tests/test-expl-ieee.c: New file.
42583         New module 'expl-ieee'.
42584         * modules/expl-ieee: New file.
42586         Tests for module 'exp-ieee'.
42587         * modules/exp-ieee-tests: New file.
42588         * tests/test-exp-ieee.c: New file.
42590         New module 'exp-ieee'.
42591         * modules/exp-ieee: New file.
42593         Tests for module 'expf-ieee'.
42594         * modules/expf-ieee-tests: New file.
42595         * tests/test-expf-ieee.c: New file.
42596         * tests/test-exp-ieee.h: New file.
42598         New module 'expf-ieee'.
42599         * modules/expf-ieee: New file.
42601 2012-02-29  Bruno Haible  <bruno@clisp.org>
42603         cbrtl-ieee: Work around test failure on IRIX 6.5.
42604         * m4/cbrtl-ieee.m4: New file.
42605         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
42606         test whether cbrtl works with a minus zero argument. Replace it if not.
42607         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
42608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
42609         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
42610         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
42611         (Depends-on): Update conditions.
42612         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
42613         m4/signbit.m4.
42614         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
42615         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
42616         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
42618         Tests for module 'cbrtl-ieee'.
42619         * modules/cbrtl-ieee-tests: New file.
42620         * tests/test-cbrtl-ieee.c: New file.
42622         New module 'cbrtl-ieee'.
42623         * modules/cbrtl-ieee: New file.
42625         Tests for module 'cbrt-ieee'.
42626         * modules/cbrt-ieee-tests: New file.
42627         * tests/test-cbrt-ieee.c: New file.
42629         New module 'cbrt-ieee'.
42630         * modules/cbrt-ieee: New file.
42632         Tests for module 'cbrtf-ieee'.
42633         * modules/cbrtf-ieee-tests: New file.
42634         * tests/test-cbrtf-ieee.c: New file.
42635         * tests/test-cbrt-ieee.h: New file.
42637         New module 'cbrtf-ieee'.
42638         * modules/cbrtf-ieee: New file.
42640 2012-02-29  Bruno Haible  <bruno@clisp.org>
42642         cbrtf: Work around bug in IRIX 6.5 system function.
42643         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
42644         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
42645         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
42646         work.
42647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
42648         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
42649         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
42650         (Depends-on): Update conditions.
42651         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
42653 2012-02-29  Bruno Haible  <bruno@clisp.org>
42655         Tests for module 'cbrtl'.
42656         * modules/cbrtl-tests: New file.
42657         * tests/test-cbrtl.c: New file.
42659         New module 'cbrtl'.
42660         * lib/math.in.h (cbrtl): New declaration.
42661         * lib/cbrtl.c: New file.
42662         * m4/cbrtl.m4: New file.
42663         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
42664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
42665         HAVE_DECL_CBRTL.
42666         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
42667         HAVE_DECL_CBRTL.
42668         * modules/cbrtl: New file.
42669         * tests/test-math-c++.cc: Check the declaration of cbrtl.
42670         * doc/posix-functions/cbrtl.texi: Mention the new module.
42672 2012-02-29  Bruno Haible  <bruno@clisp.org>
42674         Tests for module 'cbrtf'.
42675         * modules/cbrtf-tests: New file.
42676         * tests/test-cbrtf.c: New file.
42678         New module 'cbrtf'.
42679         * lib/math.in.h (cbrtf): New declaration.
42680         * lib/cbrtf.c: New file.
42681         * m4/cbrtf.m4: New file.
42682         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
42683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
42684         HAVE_DECL_CBRTF.
42685         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
42686         HAVE_DECL_CBRTF.
42687         * modules/cbrtf: New file.
42688         * tests/test-math-c++.cc: Check the declaration of cbrtf.
42689         * doc/posix-functions/cbrtf.texi: Mention the new module.
42691 2012-02-29  Bruno Haible  <bruno@clisp.org>
42693         cbrt: Provide replacement on MSVC and Minix.
42694         * lib/math.in.h (cbrt): New declaration.
42695         * lib/cbrt.c: New file.
42696         * m4/cbrt.m4: New file.
42697         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
42698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
42699         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
42700         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
42701         (Depends-on): Add dependencies.
42702         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
42703         * tests/test-math-c++.cc: Check the declaration of cbrt.
42704         * doc/posix-functions/cbrt.texi: Mention that the module provides a
42705         replacement.
42707 2012-02-29  Bruno Haible  <bruno@clisp.org>
42709         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
42710         * m4/hypotl-ieee.m4: New file.
42711         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
42712         test whether hypotl works with mixed NaN and Infinity arguments.
42713         Replace it if not.
42714         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
42715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
42716         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
42717         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
42718         (Depends-on): Update conditions.
42719         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
42720         (Depends-on): Add hypot-ieee.
42721         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
42722         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
42724         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
42725         * m4/hypotf-ieee.m4: New file.
42726         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
42727         test whether hypotf works with mixed NaN and Infinity arguments.
42728         Replace it if not.
42729         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
42730         (Depends-on): Add hypot-ieee.
42731         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
42732         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
42734         hypot-ieee: Work around test failure on OSF/1 and native Windows.
42735         * lib/math.in.h (hypot): New declaration.
42736         * lib/hypot.c: New file.
42737         * m4/hypot-ieee.m4: New file.
42738         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
42739         whether hypot works with mixed NaN and Infinity arguments. Replace it
42740         if not.
42741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
42742         REPLACE_HYPOT.
42743         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
42744         * modules/hypot (Files): Add lib/hypot.c.
42745         (Depends-on): Add dependencies.
42746         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
42747         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
42748         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
42749         * tests/test-math-c++.cc: Check the declaration of hypot.
42750         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
42752         Tests for module 'hypotl-ieee'.
42753         * modules/hypotl-ieee-tests: New file.
42754         * tests/test-hypotl-ieee.c: New file.
42756         New module 'hypotl-ieee'.
42757         * modules/hypotl-ieee: New file.
42759         Tests for module 'hypot-ieee'.
42760         * modules/hypot-ieee-tests: New file.
42761         * tests/test-hypot-ieee.c: New file.
42763         New module 'hypot-ieee'.
42764         * modules/hypot-ieee: New file.
42766         Tests for module 'hypotf-ieee'.
42767         * modules/hypotf-ieee-tests: New file.
42768         * tests/test-hypotf-ieee.c: New file.
42769         * tests/test-hypot-ieee.h: New file.
42771         New module 'hypotf-ieee'.
42772         * modules/hypotf-ieee: New file.
42774 2012-02-29  Bruno Haible  <bruno@clisp.org>
42776         Remove unused variables.
42777         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
42778         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
42779         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
42780         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
42782 2012-02-29  Eric Blake  <eblake@redhat.com>
42784         termios: fix pid_t always, not just for tcgetsid
42785         * doc/posix-headers/termios.texi (termios.h): Mention problem.
42786         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
42787         just when building tcgetsid.
42789 2012-02-29  Bruno Haible  <bruno@clisp.org>
42791         Tests for module 'hypotl'.
42792         * modules/hypotl-tests: New file.
42793         * tests/test-hypotl.c: New file.
42795         New module 'hypotl'.
42796         * lib/math.in.h (hypotl): New declaration.
42797         * lib/hypotl.c: New file.
42798         * m4/hypotl.m4: New file.
42799         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
42801         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
42802         * modules/hypotl: New file.
42803         * tests/test-math-c++.cc: Check the hypotl declaration.
42804         * doc/posix-functions/hypotl.texi: Mention the new module.
42806 2012-02-29  Eric Blake  <eblake@redhat.com>
42808         tcgetsid: fix cygwin header bug
42809         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
42811         docs: update cygwin progress
42812         * doc/posix-functions/llround.texi (llround): Added in cygwin
42813         1.7.8.
42814         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
42815         * doc/glibc-functions/program_invocation_name.texi
42816         (program_invocation_name): Likewise.
42817         * doc/glibc-functions/program_invocation_short_name.texi
42818         (program_invocation_short_name): Likewise.
42819         * doc/glibc-functions/madvise.texi (madvise): Likewise.
42820         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
42821         Likewise.
42822         * doc/posix-functions/pthread_spin_destroy.texi
42823         (pthread_spin_destroy): Added in cygwin 1.7.10.
42824         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
42825         Likewise.
42826         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
42827         Likewise.
42828         * doc/posix-functions/pthread_spin_trylock.texi
42829         (pthread_spin_trylock): Likewise.
42830         * doc/posix-functions/pthread_spin_unlock.texi
42831         (pthread_spin_unlock): Likewise.
42832         * doc/posix-functions/pthread_setschedprio.texi
42833         (pthread_setschedprio): Likewise.
42834         * doc/posix-functions/pthread_attr_getstack.texi
42835         (pthread_attr_getstack): Likewise.
42836         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
42837         (pthread_attr_getstackaddr): Likewise.
42838         * doc/glibc-functions/pthread_getattr_np.texi
42839         (pthread_getattr_np): Likewise.
42840         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
42841         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
42842         * doc/posix-functions/clock_settime.texi (clock_settime):
42843         Likewise.
42844         * doc/posix-functions/pthread_attr_getguardsize.texi
42845         (pthread_attr_getguardsize): Likewise.
42846         * doc/posix-functions/pthread_attr_setguardsize.texi
42847         (pthread_attr_setguardsize): Likewise.
42848         * doc/posix-functions/pthread_attr_setstack.texi
42849         (pthread_attr_setstack): Likewise.
42850         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
42851         (pthread_attr_setstackaddr): Likewise.
42852         * doc/posix-functions/clock_getcpuclockid.texi
42853         (clock_getcpuclockid): Likewise.
42854         * doc/posix-functions/pthread_getcpuclockid.texi
42855         (pthread_getcpuclockid): Likewise.
42856         * doc/glibc-functions/error.texi (error): Likewise.
42857         * doc/glibc-functions/error_at_line.texi (error_at_line):
42858         Likewise.
42859         * doc/glibc-functions/error_message_count.texi
42860         (error_message_count): Likewise.
42861         * doc/glibc-functions/error_one_per_line.texi
42862         (error_one_per_line): Likewise.
42863         * doc/glibc-functions/error_print_progname.texi
42864         (error_print_progname): Likewise.
42865         * doc/posix-functions/pthread_condattr_getclock.texi
42866         (pthread_condattr_getclock): Likewise.
42867         * doc/posix-functions/pthread_condattr_setclock.texi
42868         (pthread_condattr_setclock): Likewise.
42869         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
42870         Likewise.
42871         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
42872         * doc/glibc-functions/getpt.texi (getpt): Likewise.
42873         * doc/glibc-functions/get_current_dir_name.texi
42874         (get_current_dir_name): Likewise.
42875         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
42876         Likewise.
42877         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
42878         wrong return type.
42879         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
42880         1.7.11.
42882 2012-02-29  Bruno Haible  <bruno@clisp.org>
42884         Tests for module 'hypotf'.
42885         * modules/hypotf-tests: New file.
42886         * tests/test-hypotf.c: New file.
42888         New module 'hypotf'.
42889         * lib/math.in.h (hypotf): New declaration.
42890         * lib/hypotf.c: New file.
42891         * m4/hypotf.m4: New file.
42892         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
42894         REPLACE_HYPOTF.
42895         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
42896         REPLACE_HYPOTF.
42897         * modules/hypotf: New file.
42898         * tests/test-math-c++.cc: Check the hypotf declaration.
42899         * doc/posix-functions/hypotf.texi: Mention the new module.
42901         hypot: Prepare for hypotf module.
42902         * m4/hypot.m4: New file.
42903         * modules/hypot (Files): Add m4/hypot.m4.
42904         (configure.ac): Invoke gl_FUNC_HYPOT.
42906 2012-02-29  Bruno Haible  <bruno@clisp.org>
42908         hypot tests: More tests.
42909         * tests/test-hypot.c: Include <float.h>.
42910         (main): Add tests about overflow and underflow.
42912 2012-02-29  Bruno Haible  <bruno@clisp.org>
42914         math code: Add comments.
42915         * lib/acosl.c: Add comment about related glibc source files.
42916         * lib/asinl.c: Likewise.
42917         * lib/atanl.c: Likewise.
42918         * lib/expl.c: Likewise.
42919         * lib/logl.c: Likewise.
42920         * lib/sincosl.c: Likewise.
42921         * lib/sinl.c: Likewise.
42922         * lib/tanl.c: Likewise.
42923         * lib/trigl.c: Likewise.
42924         * lib/cosl.c: Likewise. Fix comments.
42926 2012-02-28  Bruno Haible  <bruno@clisp.org>
42928         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
42929         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
42930         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
42931         HUGE_VALL are defined.
42932         (numeric_equald): Renamed from numeric_equal.
42933         (numeric_equalf, numeric_equall): New functions.
42934         (main): Check also HUGE_VALF, HUGE_VALL.
42935         * modules/math-tests (Files): Add tests/macros.h.
42936         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
42937         HUGE_VALL.
42939 2012-02-28  Bruno Haible  <bruno@clisp.org>
42941         doc: Move ISO C11 feature notes into POSIX chapters.
42942         * doc/posix-functions/aligned_alloc.texi: Renamed from
42943         doc/glibc-functions/aligned_alloc.texi.
42944         * doc/posix-functions/quick_exit.texi: Renamed from
42945         doc/glibc-functions/quick_exit.texi.
42946         * doc/posix-headers/uchar.texi: Renamed from
42947         doc/glibc-headers/uchar.texi.
42948         * doc/posix-functions/c16rtomb.texi: Renamed from
42949         doc/glibc-functions/c16rtomb.texi.
42950         * doc/posix-functions/c32rtomb.texi: Renamed from
42951         doc/glibc-functions/c32rtomb.texi.
42952         * doc/posix-functions/mbrtoc16.texi: Renamed from
42953         doc/glibc-functions/mbrtoc16.texi.
42954         * doc/posix-functions/mbrtoc32.texi: Renamed from
42955         doc/glibc-functions/mbrtoc32.texi.
42956         * doc/gnulib.texi: Update.
42957         (Glibc uchar.h): Remove section.
42958         Suggested by Eric Blake.
42960 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
42962         stdnoreturn: port to MSVC better
42963         MSVC standard headers use __declspec(noreturn), so #define noreturn
42964         to empty on that platform.  Reported by Bruno Haible in
42965         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
42966         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
42967         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
42969 2012-02-28  Bruno Haible  <bruno@clisp.org>
42971         doc: Mention new glibc headers and functions.
42972         * doc/glibc-headers/uchar.texi: New file.
42973         * doc/glibc-functions/aligned_alloc.texi: New file.
42974         * doc/glibc-functions/c16rtomb.texi: New file.
42975         * doc/glibc-functions/c32rtomb.texi: New file.
42976         * doc/glibc-functions/clock_adjtime.texi: New file.
42977         * doc/glibc-functions/fanotify_init.texi: New file.
42978         * doc/glibc-functions/fanotify_mark.texi: New file.
42979         * doc/glibc-functions/inet6_opt_append.texi: New file.
42980         * doc/glibc-functions/inet6_opt_find.texi: New file.
42981         * doc/glibc-functions/inet6_opt_finish.texi: New file.
42982         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
42983         * doc/glibc-functions/inet6_opt_init.texi: New file.
42984         * doc/glibc-functions/inet6_opt_next.texi: New file.
42985         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
42986         * doc/glibc-functions/inet6_rth_add.texi: New file.
42987         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
42988         * doc/glibc-functions/inet6_rth_init.texi: New file.
42989         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
42990         * doc/glibc-functions/inet6_rth_segments.texi: New file.
42991         * doc/glibc-functions/inet6_rth_space.texi: New file.
42992         * doc/glibc-functions/login.texi: New file.
42993         * doc/glibc-functions/mbrtoc16.texi: New file.
42994         * doc/glibc-functions/mbrtoc32.texi: New file.
42995         * doc/glibc-functions/name_to_handle_at.texi: New file.
42996         * doc/glibc-functions/ntp_gettimex.texi: New file.
42997         * doc/glibc-functions/open_by_handle_at.texi: New file.
42998         * doc/glibc-functions/prlimit.texi: New file.
42999         * doc/glibc-functions/process_vm_readv.texi: New file.
43000         * doc/glibc-functions/process_vm_writev.texi: New file.
43001         * doc/glibc-functions/recvmmsg.texi: New file.
43002         * doc/glibc-functions/scandirat.texi: New file.
43003         * doc/glibc-functions/sendmmsg.texi: New file.
43004         * doc/glibc-functions/setns.texi: New file.
43005         * doc/glibc-functions/timespec_get.texi: New file.
43006         * doc/gnulib.texi: Include them.
43007         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
43008         sections.
43009         Reported by Eric Blake.
43011 2012-02-28  Bruno Haible  <bruno@clisp.org>
43013         Avoid compilation errors with MSVC option -fp:strict.
43014         * lib/floor.c: Use MSVC specific pragma fenv_access.
43015         * lib/ceil.c: Likewise.
43016         * lib/trunc.c: Likewise.
43017         * lib/round.c: Likewise.
43018         * lib/rint.c: Likewise.
43019         * lib/fma.c: Likewise.
43020         * lib/integer_length.c: Likewise.
43021         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43022         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43023         * tests/test-floor2.c: Likewise.
43024         * tests/test-floorf2.c: Likewise.
43025         * tests/test-ceil2.c: Likewise.
43026         * tests/test-ceilf2.c: Likewise.
43027         * tests/test-trunc2.c: Likewise.
43028         * tests/test-truncf2.c: Likewise.
43029         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
43031 2012-02-27  Bruno Haible  <bruno@clisp.org>
43033         Tests for module 'sqrtl-ieee'.
43034         * modules/sqrtl-ieee-tests: New file.
43035         * tests/test-sqrtl-ieee.c: New file.
43037         New module 'sqrtl-ieee'.
43038         * modules/sqrtl-ieee: New file.
43040         Tests for module 'sqrt-ieee'.
43041         * modules/sqrt-ieee-tests: New file.
43042         * tests/test-sqrt-ieee.c: New file.
43044         New module 'sqrt-ieee'.
43045         * modules/sqrt-ieee: New file.
43047         Tests for module 'sqrtf-ieee'.
43048         * modules/sqrtf-ieee-tests: New file.
43049         * tests/test-sqrtf-ieee.c: New file.
43050         * tests/test-sqrt-ieee.h: New file.
43052         New module 'sqrtf-ieee'.
43053         * modules/sqrtf-ieee: New file.
43055 2012-02-27  Bruno Haible  <bruno@clisp.org>
43057         remainderl-ieee: Work around test failure on OSF/1.
43058         * m4/remainderl-ieee.m4: New file.
43059         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
43060         present, test whether remainderl works with a zero second argument.
43061         Replace it if not.
43062         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
43063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
43064         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
43065         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
43066         (Depends-on): Update conditions.
43067         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
43068         (Depends-on): Add remainder-ieee.
43069         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
43070         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
43071         module.
43073         remainderf-ieee: Work around test failure on OSF/1.
43074         * m4/remainderf-ieee.m4: New file.
43075         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
43076         present, test whether remainderf works with a zero second argument.
43077         Replace it if not.
43078         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
43079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
43080         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
43081         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
43082         (Depends-on): Update conditions.
43083         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
43084         (Depends-on): Add remainder-ieee.
43085         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
43086         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
43087         module.
43089         remainder-ieee: Work around test failure on OSF/1.
43090         * m4/remainder-ieee.m4: New file.
43091         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
43092         present, test whether remainder works with a zero second argument.
43093         Replace it if not.
43094         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
43095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
43096         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
43097         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
43098         (Depends-on): Update dependencies.
43099         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
43100         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
43101         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
43103         Tests for module 'remainderl-ieee'.
43104         * modules/remainderl-ieee-tests: New file.
43105         * tests/test-remainderl-ieee.c: New file.
43107         New module 'remainderl-ieee'.
43108         * modules/remainderl-ieee: New file.
43110         Tests for module 'remainder-ieee'.
43111         * modules/remainder-ieee-tests: New file.
43112         * tests/test-remainder-ieee.c: New file.
43114         New module 'remainder-ieee'.
43115         * modules/remainder-ieee: New file.
43117         Tests for module 'remainderf-ieee'.
43118         * modules/remainderf-ieee-tests: New file.
43119         * tests/test-remainderf-ieee.c: New file.
43120         * tests/test-remainder-ieee.h: New file.
43122         New module 'remainderf-ieee'.
43123         * modules/remainderf-ieee: New file.
43125 2012-02-27  Bruno Haible  <bruno@clisp.org>
43127         modff, modfl: Fix configure syntax error.
43128         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
43129         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
43131 2012-02-27  Bruno Haible  <bruno@clisp.org>
43133         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
43134         * m4/fmodl-ieee.m4: New file.
43135         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
43136         whether fmodl works with zero arguments. Replace it if not.
43137         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
43138         (Depends-on): Add fmod-ieee.
43139         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
43140         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
43142         fmodf-ieee: Work around test failure on OSF/1.
43143         * m4/fmodf-ieee.m4: New file.
43144         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
43145         whether fmodf works with zero arguments. Replace it if not.
43146         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
43147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
43148         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
43149         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
43150         (Depends-on): Update dependencies.
43151         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
43152         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
43153         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
43155         fmodf-ieee: Work around test failure on MSVC 9.
43156         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
43157         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
43159         fmod-ieee: Work around test failures on OSF/1, mingw.
43160         * m4/fmod-ieee.m4: New file.
43161         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
43162         whether fmod works with zero arguments. Replace it if not.
43163         * lib/math.in.h (fmod): New declaration.
43164         * lib/fmod.c: New file.
43165         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
43166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
43167         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
43168         * modules/fmod (Files): Add lib/fmod.c.
43169         (Depends-on): Add math, isinf, trunc, fma.
43170         (configure.ac): Arrange to compile lib/fmod.c if needed.
43171         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
43172         m4/signbit.m4.
43173         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
43174         * tests/test-math-c++.cc: Check the declaration of fmod.
43175         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
43177         fmodl-ieee: Fix test failures.
43178         * lib/fmodl.c (fmodl): Treat Inf specially.
43179         * modules/fmodl (Depends-on): Add isinf.
43181         Tests for module 'fmodl-ieee'.
43182         * modules/fmodl-ieee-tests: New file.
43183         * tests/test-fmodl-ieee.c: New file.
43185         New module 'fmodl-ieee'.
43186         * modules/fmodl-ieee: New file.
43188         Tests for module 'fmod-ieee'.
43189         * modules/fmod-ieee-tests: New file.
43190         * tests/test-fmod-ieee.c: New file.
43192         New module 'fmod-ieee'.
43193         * modules/fmod-ieee: New file.
43195         Tests for module 'fmodf-ieee'.
43196         * modules/fmodf-ieee-tests: New file.
43197         * tests/test-fmodf-ieee.c: New file.
43198         * tests/test-fmod-ieee.h: New file.
43200         New module 'fmodf-ieee'.
43201         * modules/fmodf-ieee: New file.
43203 2012-02-27  Bruno Haible  <bruno@clisp.org>
43205         Tests for module 'rintl-ieee'.
43206         * modules/rintl-ieee-tests: New file.
43207         * tests/test-rintl-ieee.c: New file.
43209         New module 'rintl-ieee'.
43210         * modules/rintl-ieee: New file.
43212         Tests for module 'rint-ieee'.
43213         * modules/rint-ieee-tests: New file.
43214         * tests/test-rint-ieee.c: New file.
43216         New module 'rint-ieee'.
43217         * modules/rint-ieee: New file.
43219         Tests for module 'rintf-ieee'.
43220         * modules/rintf-ieee-tests: New file.
43221         * tests/test-rintf-ieee.c: New file.
43222         * tests/test-rint-ieee.h: New file.
43224         New module 'rintf-ieee'.
43225         * modules/rintf-ieee: New file.
43227 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
43229         regex: re_search etc. should return -2 when memory exhausted
43230         This bug was uncovered when testing 'grep'.  Without the fix,
43231         re_search and friends return -1 when memory is exhausted, but -1
43232         means no match, and this causes grep to falsely report no-match
43233         instead of memory-exhaustion.  See
43234         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
43235         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
43236         trouble; this can occur if re_search_internal ran out of memory.
43238 2012-02-26  Bruno Haible  <bruno@clisp.org>
43240         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
43241         * m4/modfl-ieee.m4: New file.
43242         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
43243         whether modfl works with Inf. Replace it if not.
43244         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
43245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
43246         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
43247         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
43248         (Depends-on): Update dependencies.
43249         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
43250         m4/signbit.m4.
43251         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
43252         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
43254         modfl-ieee: Fix dependencies.
43255         * modules/modfl-ieee (Depends-on): Add modf-ieee.
43257         modfl-ieee: Fix test failures.
43258         * lib/modfl.c (modfl): Treat NaN and Inf specially.
43259         * modules/modfl (Depends-on): Add isfinite, isinf.
43261         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
43262         * m4/modff-ieee.m4: New file.
43263         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
43264         whether modff works with NaN and Inf. Replace it if not.
43265         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
43266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
43267         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
43268         * modules/modff (configure.ac): Consider REPLACE_MODFF.
43269         (Depends-on): Update dependencies.
43270         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
43271         m4/signbit.m4.
43272         (Depends-on): Add modf-ieee.
43273         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
43274         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
43276         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
43277         * m4/modf-ieee.m4: New file.
43278         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
43279         whether modf works with NaN and Inf. Replace it if not.
43280         * lib/math.in.h (modf): New declaration.
43281         * lib/modf.c: New file.
43282         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
43283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
43284         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
43285         * modules/modf (Files): Add lib/modf.c.
43286         (Depends-on): Add math, isfinite, trunc, isinf.
43287         (configure.ac): Addrange to compile lib/modf.c if needed.
43288         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
43289         m4/signbit.m4.
43290         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
43291         * tests/test-math-c++.cc: Check the declaration of modf.
43292         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
43294         Tests for module 'modfl-ieee'.
43295         * modules/modfl-ieee-tests: New file.
43296         * tests/test-modfl-ieee.c: New file.
43298         New module 'modfl-ieee'.
43299         * modules/modfl-ieee: New file.
43301         Tests for module 'modf-ieee'.
43302         * modules/modf-ieee-tests: New file.
43303         * tests/test-modf-ieee.c: New file.
43305         New module 'modf-ieee'.
43306         * modules/modf-ieee: New file.
43308         Tests for module 'modff-ieee'.
43309         * modules/modff-ieee-tests: New file.
43310         * tests/test-modff-ieee.c: New file.
43311         * tests/test-modf-ieee.h: New file.
43313         New module 'modff-ieee'.
43314         * modules/modff-ieee: New file.
43316 2012-02-26  Bruno Haible  <bruno@clisp.org>
43318         Tests for module 'fabsl-ieee'.
43319         * modules/fabsl-ieee-tests: New file.
43320         * tests/test-fabsl-ieee.c: New file.
43322         New module 'fabsl-ieee'.
43323         * modules/fabsl-ieee: New file.
43325         Tests for module 'fabs-ieee'.
43326         * modules/fabs-ieee-tests: New file.
43327         * tests/test-fabs-ieee.c: New file.
43329         New module 'fabs-ieee'.
43330         * modules/fabs-ieee: New file.
43332         Tests for module 'fabsf-ieee'.
43333         * modules/fabsf-ieee-tests: New file.
43334         * tests/test-fabsf-ieee.c: New file.
43335         * tests/test-fabs-ieee.h: New file.
43337         New module 'fabsf-ieee'.
43338         * modules/fabsf-ieee: New file.
43340 2012-02-26  Bruno Haible  <bruno@clisp.org>
43342         Tests for module 'fmal-ieee'.
43343         * modules/fmal-ieee-tests: New file.
43344         * tests/test-fmal-ieee.c: New file.
43346         New module 'fmal-ieee'.
43347         * modules/fmal-ieee: New file.
43349         Tests for module 'fma-ieee'.
43350         * modules/fma-ieee-tests: New file.
43351         * tests/test-fma-ieee.c: New file.
43353         New module 'fma-ieee'.
43354         * modules/fma-ieee: New file.
43356         Tests for module 'fmaf-ieee'.
43357         * modules/fmaf-ieee-tests: New file.
43358         * tests/test-fmaf-ieee.c: New file.
43359         * tests/test-fma-ieee.h: New file.
43361         New module 'fmaf-ieee'.
43362         * modules/fmaf-ieee: New file.
43364 2012-02-26  Bruno Haible  <bruno@clisp.org>
43366         Tests for module 'ldexpl-ieee'.
43367         * modules/ldexpl-ieee-tests: New file.
43368         * tests/test-ldexpl-ieee.c: New file.
43370         New module 'ldexpl-ieee'.
43371         * modules/ldexpl-ieee: New file.
43373         Tests for module 'ldexp-ieee'.
43374         * modules/ldexp-ieee-tests: New file.
43375         * tests/test-ldexp-ieee.c: New file.
43377         New module 'ldexp-ieee'.
43378         * modules/ldexp-ieee: New file.
43380         Tests for module 'ldexpf-ieee'.
43381         * modules/ldexpf-ieee-tests: New file.
43382         * tests/test-ldexpf-ieee.c: New file.
43383         * tests/test-ldexp-ieee.h: New file.
43385         New module 'ldexpf-ieee'.
43386         * modules/ldexpf-ieee: New file.
43388 2012-02-26  Bruno Haible  <bruno@clisp.org>
43390         Refactor frexp*-ieee tests.
43391         * tests/test-frexp-ieee.h: New file.
43392         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
43393         (main): Just call test_function.
43394         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
43395         (main): Just call test_function.
43396         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
43397         (main): Just call test_function.
43398         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
43399         * modules/frexp-ieee-tests (Files): Likewise.
43400         * modules/frexpl-ieee-tests (Files): Likewise.
43402         Tests for module 'frexpl-ieee'.
43403         * modules/frexpl-ieee-tests: New file.
43404         * tests/test-frexpl-ieee.c: New file.
43406         New module 'frexpl-ieee'.
43407         * modules/frexpl-ieee: New file.
43409         Tests for module 'frexp-ieee'.
43410         * modules/frexp-ieee-tests: New file.
43411         * tests/test-frexp-ieee.c: New file.
43413         New module 'frexp-ieee'.
43414         * modules/frexp-ieee: New file.
43416         Tests for module 'frexpf-ieee'.
43417         * modules/frexpf-ieee-tests: New file.
43418         * tests/test-frexpf-ieee.c: New file.
43420         New module 'frexpf-ieee'.
43421         * modules/frexpf-ieee: New file.
43423 2012-02-26  Bruno Haible  <bruno@clisp.org>
43425         roundl-ieee tests: More tests.
43426         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43427         (main): Add tests for [MX] shaded specification in POSIX.
43428         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43429         (Depends-on): Add isnanl-nolibm.
43431         round-ieee tests: More tests.
43432         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43433         (main): Add tests for [MX] shaded specification in POSIX.
43434         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43435         (Depends-on): Add isnand-nolibm.
43437         roundf-ieee tests: More tests.
43438         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43439         (main): Add tests for [MX] shaded specification in POSIX.
43440         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43441         (Depends-on): Add isnanf-nolibm.
43443         truncl-ieee tests: More tests.
43444         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43445         (main): Add tests for [MX] shaded specification in POSIX.
43446         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43447         (Depends-on): Add isnanl-nolibm.
43449         trunc-ieee tests: More tests.
43450         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43451         (main): Add tests for [MX] shaded specification in POSIX.
43452         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43453         (Depends-on): Add isnand-nolibm.
43455         truncf-ieee tests: More tests.
43456         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43457         (main): Add tests for [MX] shaded specification in POSIX.
43458         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43459         (Depends-on): Add isnanf-nolibm.
43461         ceill-ieee tests: More tests.
43462         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43463         (main): Add tests for [MX] shaded specification in POSIX.
43464         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43465         (Depends-on): Add isnanl-nolibm.
43467         ceil-ieee tests: More tests.
43468         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43469         (main): Add tests for [MX] shaded specification in POSIX.
43470         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43471         (Depends-on): Add isnand-nolibm.
43473         ceilf-ieee tests: More tests.
43474         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43475         (main): Add tests for [MX] shaded specification in POSIX.
43476         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43477         (Depends-on): Add isnanf-nolibm.
43479         floorl-ieee tests: More tests.
43480         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
43481         (main): Add tests for [MX] shaded specification in POSIX.
43482         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43483         (Depends-on): Add isnanl-nolibm.
43485         floor-ieee tests: More tests.
43486         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
43487         (main): Add tests for [MX] shaded specification in POSIX.
43488         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43489         (Depends-on): Add isnand-nolibm.
43491         floorf-ieee tests: More tests.
43492         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
43493         (main): Add tests for [MX] shaded specification in POSIX.
43494         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
43495         (Depends-on): Add isnanf-nolibm.
43497 2012-02-26  Bruno Haible  <bruno@clisp.org>
43499         fpieee: More comments.
43500         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
43502 2012-02-25  Bruno Haible  <bruno@clisp.org>
43504         Tests for module 'log10l'.
43505         * modules/log10l-tests: New file.
43506         * tests/test-log10l.c: New file.
43507         * tests/test-math-c++.cc: Check the declaration of log10l.
43509         New module 'log10l'.
43510         * lib/math.in.h (log10l): New declaration.
43511         * lib/log10l.c: New file.
43512         * m4/log10l.m4: New file.
43513         * modules/log10l: New file.
43514         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
43515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
43516         HAVE_DECL_LOG10L.
43517         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
43518         HAVE_DECL_LOG10L.
43519         * doc/posix-functions/log10l.texi: Mention the new module.
43521 2012-02-25  Bruno Haible  <bruno@clisp.org>
43523         fmodl, remainder*: Avoid wrong results due to rounding errors.
43524         * lib/fmodl.c (fmodl): Correct the result if it is not within the
43525         expected bounds.
43526         * lib/remainderf.c (remainderf): Likewise.
43527         * lib/remainder.c (remainder): Likewise.
43528         * lib/remainderl.c (remainderl): Likewise.
43530 2012-02-25  Bruno Haible  <bruno@clisp.org>
43532         Tests for module 'remainderl'.
43533         * modules/remainderl-tests: New file.
43534         * tests/test-remainderl.c: New file.
43535         * tests/test-math-c++.cc: Check the declaration of remainderl.
43537         New module 'remainderl'.
43538         * lib/math.in.h (remainderl): New declaration.
43539         * lib/remainderl.c: New file.
43540         * m4/remainderl.m4: New file.
43541         * modules/remainderl: New file.
43542         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
43543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
43544         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
43545         HAVE_REMAINDERL.
43546         * doc/posix-functions/remainderl.texi: Mention the new module.
43548 2012-02-25  Bruno Haible  <bruno@clisp.org>
43550         Tests for module 'remainderf'.
43551         * modules/remainderf-tests: New file.
43552         * tests/test-remainderf.c: New file.
43553         * tests/test-math-c++.cc: Check the declaration of remainderf.
43555         New module 'remainderf'.
43556         * lib/math.in.h (remainderf): New declaration.
43557         * lib/remainderf.c: New file.
43558         * m4/remainderf.m4: New file.
43559         * modules/remainderf: New file.
43560         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
43561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
43562         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
43563         HAVE_REMAINDERF.
43564         * doc/posix-functions/remainderf.texi: Mention the new module.
43566 2012-02-25  Bruno Haible  <bruno@clisp.org>
43568         remainder: Support for MSVC.
43569         * lib/math.in.h (remainder): New declaration.
43570         * lib/remainder.c: New file.
43571         * m4/remainder.m4: New file.
43572         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
43573         (Depends-on): Add math, round, fma.
43574         (configure.ac): Use results of gl_FUNC_REMAINDER.
43575         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
43576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
43577         HAVE_DECL_REMAINDER.
43578         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
43579         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
43580         * tests/test-math-c++.cc: Check the declaration of remainder.
43581         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
43582         problems are fixed.
43584 2012-02-25  Bruno Haible  <bruno@clisp.org>
43586         Tests for module 'fmodl'.
43587         * modules/fmodl-tests: New file.
43588         * tests/test-fmodl.c: New file.
43589         * tests/test-math-c++.cc: Check the declaration of fmodl.
43591         New module 'fmodl'.
43592         * lib/math.in.h (fmodl): New declaration.
43593         * lib/fmodl.c: New file.
43594         * m4/fmodl.m4: New file.
43595         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
43596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
43597         REPLACE_FMODL.
43598         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
43599         REPLACE_FMODL.
43600         * modules/fmodl: New file.
43601         * doc/posix-functions/fmodl.texi: Mention the new module.
43603 2012-02-25  Bruno Haible  <bruno@clisp.org>
43605         Tests for module 'modfl'.
43606         * modules/modfl-tests: New file.
43607         * tests/test-modfl.c: New file.
43608         * tests/test-math-c++.cc: Check the declaration of modfl.
43610         New module 'modfl'.
43611         * lib/math.in.h (modfl): New declaration.
43612         * lib/modfl.c: New file.
43613         * m4/modfl.m4: New file.
43614         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
43615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
43616         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
43617         * modules/modfl: New file.
43618         * doc/posix-functions/modfl.texi: Mention the new module.
43620 2012-02-25  Bruno Haible  <bruno@clisp.org>
43622         Tests for module 'fabsl'.
43623         * modules/fabsl-tests: New file.
43624         * tests/test-fabsl.c: New file.
43625         * tests/test-math-c++.cc: Check the declaration of fabsl.
43627         New module 'fabsl'.
43628         * lib/math.in.h (fabsl): New declaration.
43629         * lib/fabsl.c: New file.
43630         * m4/fabsl.m4: New file.
43631         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
43632         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
43633         REPLACE_FABSL.
43634         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
43635         REPLACE_FABSL.
43636         * modules/fabsl: New file.
43637         * doc/posix-functions/fabsl.texi: Mention the new module.
43639 2012-02-25  Bruno Haible  <bruno@clisp.org>
43641         fabs tests: More tests.
43642         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
43643         (zero): New variable.
43644         (main): Add tests for signed zero.
43645         * modules/fabs-tests (Files): Add tests/minus-zero.h.
43647         fabsf tests: More tests.
43648         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
43649         (zero): New variable.
43650         (main): Add tests for signed zero.
43651         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
43653 2012-02-24  Bruno Haible  <bruno@clisp.org>
43655         atanl: Provide function definition on MSVC.
43656         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
43657         function pointer.
43658         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
43660 2012-02-24  Bruno Haible  <bruno@clisp.org>
43662         acosl: Provide function definition on MSVC.
43663         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
43664         function pointer.
43665         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
43667 2012-02-24  Bruno Haible  <bruno@clisp.org>
43669         asinl: Provide function definition on MSVC.
43670         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
43671         function pointer.
43672         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
43674 2012-02-24  Bruno Haible  <bruno@clisp.org>
43676         tanl: Provide function definition on MSVC.
43677         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
43678         function pointer.
43679         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
43681 2012-02-24  Bruno Haible  <bruno@clisp.org>
43683         cosl: Provide function definition on MSVC.
43684         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
43685         function pointer.
43686         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
43688 2012-02-24  Bruno Haible  <bruno@clisp.org>
43690         sinl: Provide function definition on MSVC.
43691         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
43692         function pointer.
43693         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
43695 2012-02-24  Bruno Haible  <bruno@clisp.org>
43697         logl: Provide function definition on MSVC.
43698         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
43699         function pointer.
43700         * lib/math.in.h (logl): Undefine if it does not exist as a function.
43702 2012-02-24  Bruno Haible  <bruno@clisp.org>
43704         expl: Provide function definition on MSVC.
43705         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
43706         function pointer.
43707         * lib/math.in.h (expl): Undefine if it does not exist as a function.
43709 2012-02-24  Bruno Haible  <bruno@clisp.org>
43711         sqrtl: Provide function definition on MSVC.
43712         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
43713         a function pointer.
43714         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
43716 2012-02-24  Bruno Haible  <bruno@clisp.org>
43718         ceill: Provide function definition on MSVC.
43719         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
43720         used as a function pointer.
43721         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
43723 2012-02-24  Bruno Haible  <bruno@clisp.org>
43725         floorl: Provide function definition on MSVC.
43726         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
43727         used as a function pointer.
43728         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
43730 2012-02-24  Bruno Haible  <bruno@clisp.org>
43732         ceilf: Provide function definition on MSVC.
43733         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
43734         used as a function pointer.
43735         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
43737 2012-02-24  Bruno Haible  <bruno@clisp.org>
43739         floorf: Provide function definition on MSVC.
43740         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
43741         used as a function pointer.
43742         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
43744 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
43746         stdnoreturn: new module
43747         This implements a replacement for C11's <stdnoreturn.h>.
43748         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
43749         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
43750         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
43751         * tests/test-stdnoreturn.c: New files.
43753 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
43755         regex: fix false multibyte matches in some regular expressions
43756         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
43757         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
43758         * lib/regex_internal.c (re_string_skip_chars):
43759         Fix miscomputation of remain_len that may cause incomplete
43760         multi-byte character and false match.
43762 2012-02-24  Jim Meyering  <meyering@redhat.com>
43764         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
43765         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
43766         uses with "==" *before* the call, e.g., 0 == strcmp (...)
43767         Remove now-unnecessary str''cmp obfuscation.
43768         Suggested by Akim Demaille.
43770 2012-02-24  Bruno Haible  <bruno@clisp.org>
43772         streq: Rename macro.
43773         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
43774         * NEWS: Mention the change.
43775         * lib/mbrtowc.c (mbrtowc): Update.
43776         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
43777         * lib/wcwidth.c (wcwidth): Update.
43778         Suggested by Akim Demaille and Jim Meyering.
43780 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43782         regex: fix typo in definition of MIN
43783         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
43784         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
43786 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43787             Bruno Haible  <bruno@clisp.org>
43789         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
43790         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
43791         entries into a stack-allocated buffer directly.
43792         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
43794 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43795             Bruno Haible  <bruno@clisp.org>
43797         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
43799          - There were several instances of this pattern:
43801              for (;;) {
43802                n = acl (f, GETACLCNT, 0, NULL);
43803                [ allocate an array A of size N ]
43804                if (acl (f, GETACL, n, a) == n)
43805                  break;
43806              }
43808            This loop might never terminate if some other process is constantly
43809            manipulating the file's ACL.  The loop should be rewritten to
43810            terminate.
43812          - The acl (... GETACLNT ...) call is merely an optimization; its value
43813            is merely a hint as to how big to make the array.  A better
43814            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
43815            and just guess a reasonably-big size, growing the size and trying
43816            again if it's not large enough.  This guarantees termination, and
43817            saves a system call.
43819         * lib/acl-internal.h: Include <limits.h>.
43820         (MIN, SIZE_MAX): New macros.
43821         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
43822         a stack-allocated buffer, and use malloc if it does not fit. Don't
43823         use GETACLCNT.
43824         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43826 2012-02-19  Bruno Haible  <bruno@clisp.org>
43828         acl: Fix endless loop on Solaris with vxfs.
43829         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
43830         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
43831         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43832         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
43833         * tests/test-sameacls.c (main)[Solaris]: Likewise.
43834         Reported by Bill Jones in
43835         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
43837 2012-02-19  Bruno Haible  <bruno@clisp.org>
43839         acl: Fix copy-acl test failure on Solaris 11.0.
43840         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
43841         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
43842         that this function returns 0 in some more cases.
43844 2012-02-19  Bruno Haible  <bruno@clisp.org>
43846         acl: Update doc references.
43847         * doc/acl-resources.txt: Update links to Solaris documentation.
43849 2012-02-19  Bruno Haible  <bruno@clisp.org>
43851         Fix test failure in many locales on Solaris 11.
43852         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
43853         'tr' arguments.
43854         * tests/test-pipe-filter-ii1.c (main): Likewise.
43855         * build-aux/bootstrap (check_versions): Run 'tr' command with range
43856         expressions in the C locale.
43857         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
43858         * m4/host-os.m4 (gl_HOST_OS): Likewise.
43860 2012-02-19  Bruno Haible  <bruno@clisp.org>
43862         gnulib-tool: Improve usage message.
43863         * gnulib-tool (func_usage): Move doc of --help and --version to the
43864         section "Operation modes".
43866 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
43868         README-release: make it easier to execute commands
43869         * top/README-release: break commands out on to separate lines.
43871 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
43873         GNUmakefile: simplify detection of unconfigured trees
43874         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
43875         whether the tree make is being run from is already configured or
43876         not.  Related simplifications.
43878 2012-02-13  Simon Josefsson  <simon@josefsson.org>
43880         * gnulib-tool (func_usage): Document --help and --version.
43882 2012-02-11  Jim Meyering  <meyering@redhat.com>
43884         bootstrap: don't exit 0 upon gnulib-tool failure
43885         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
43886         its exit status, not 0.
43888 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
43890         README-release: various improvements
43891         * top/README-release: Give a command to push changes for the
43892         release.  Add "distcheck" to list of other pre-release checks.
43893         Fix instance of "make stable" which should be "make TYPE".
43895 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43897         maint: replace FSF snail-mail addresses with URLs
43898         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
43899         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
43900         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
43901         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
43902         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
43903         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
43904         * lib/check-version.c, lib/check-version.h, lib/config.charset:
43905         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
43906         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
43907         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
43908         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
43909         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
43910         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
43911         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
43912         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
43913         * lib/glthread/thread.c, lib/glthread/thread.h:
43914         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
43915         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
43916         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
43917         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
43918         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
43919         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
43920         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
43921         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
43922         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
43923         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
43924         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
43925         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
43926         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
43927         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
43928         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
43929         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
43930         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
43931         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
43932         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
43933         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
43934         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
43935         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
43936         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
43937         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
43938         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
43939         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
43940         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
43941         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
43942         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
43943         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
43944         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
43945         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
43946         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
43947         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
43948         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
43949         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
43950         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
43951         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
43952         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
43953         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
43954         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
43955         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
43956         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
43957         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
43958         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
43959         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
43960         * tests/test-poll.c, tests/test-quotearg-simple.c:
43961         * tests/test-quotearg.c, tests/test-quotearg.h:
43962         * tests/test-round-ieee.c, tests/test-round1.c:
43963         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
43964         * tests/test-roundl-ieee.c, tests/test-roundl.c:
43965         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
43966         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
43967         * tests/test-strerror.c, tests/test-strerror_r.c:
43968         * tests/test-strsignal.c, tests/test-strverscmp.c:
43969         * tests/test-xmemdup0.c:
43970         Replace FSF snail mail addresses with URLs, as per GNU coding
43971         standards.  See glibc bug
43972         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
43974 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43976         README-release: capitalize a word and split a line
43977         * top/README-release: Fix punctuation and spacing.
43979 2012-02-08  Akim Demaille  <demaille@gostai.com>
43981         fatal-signal: use C prototypes (with explicit void).
43982         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43983         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
43985 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43987         regex: spelling fix
43988         * lib/regexec.c: spelling fix
43990         regex: rely on stdint.h for SIZE_MAX
43991         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
43993 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43995         regex: merge glibc changes
43997         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
43998         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
43999         (init_word_char): Work even if bitset words are not exactly 32 or
44000         64 bits wide.  Don't assume there are no padding bits.
44001         * lib/regex.c [_LIBC]: Do not include <config.h>.
44002         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
44003         and -Wtype-limits.
44004         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
44005         needless disagreement with glibc.  All uses changed.  Define it to
44006         1 only if _GNU_SOURCE, to match glibc.
44007         (_REG_RM_NAME): Remove; no longer needed, since the names in
44008         question are now all protected by __USE_GNU.
44009         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
44010         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
44011         * lib/regex_internal.h (MIN): New macro.
44013         2012-01-03 Ulrich Drepper <drepper@gmail.com>
44014         * lib/regcomp.c (init_word_char): Optimize regex a bit.
44016         2011-12-30 Jakub Jelinek <jakub@redhat.com>
44017         * lib/regex_internal.c (re_string_fetch_byte_case):
44018         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
44019         is miscompiled, and it turns out it is because of an incorrect
44020         attribute on re_string_fetch_byte_case.  Unlike
44021         re_string_peek_byte_case, this one is really not pure, it modifies
44022         memory (increments pstr->cur_idx), and with the pure attribute GCC
44023         assumed it doesn't and it cached the presumed value of
44024         regexp->cur_idx in a variable across the
44025          for (;; ++i)
44026            {
44027              if (i >= BRACKET_NAME_BUF_SIZE)
44028                return REG_EBRACK;
44029              if (token->type == OP_OPEN_CHAR_CLASS)
44030                ch = re_string_fetch_byte_case (regexp);
44031              else
44032                ch = re_string_fetch_byte (regexp);
44033              if (re_string_eoi(regexp))
44034                return REG_EBRACK;
44035              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
44036                break;
44037              elem->opr.name[i] = ch;
44038            }
44040         2011-11-29 Andreas Schwab <schwab@redhat.com>
44041         * lib/regcomp.c (build_equiv_class):
44042         Fix access after end of search string in regex matcher.
44044         2011-11-12 Ulrich Drepper <drepper@redhat.com>
44045         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
44047         2011-10-12 Ulrich Drepper <drepper@redhat.com>
44048         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
44050         2011-10-11 Ulrich Drepper <drepper@redhat.com>
44051         * lib/regcomp.c (parse_branch, parse_sub_exp):
44052         More regex memory leak fixes and tests.
44053         (parse_sub_exp, parse_bracket_exp):
44054         Fix memory leak for some invalid regular expressions.
44056         2011-05-28 Ulrich Drepper <drepper@gmail.com>
44057         * lib/regex_internal.c, lib/regexec.c:
44058         Fix unnecessary overallocation due to incomplete character.  When
44059         incomplete characters are found at the end of a string the code
44060         ran amok and allocated lots of memory.  Stricter limits are now in
44061         place.
44063         2011-05-20 Reuben Thomas <rrt@sc3d.org>
44064         * lib/regex.h: Update documentation.
44066         2011-05-16 Aharon Robbins <arnold@skeeve.com>
44067         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
44069         2010-05-05 Andreas Schwab <schwab@redhat.com>
44070         * lib/regexec.c (find_collation_sequence_value):
44071         Fix lookup of collation sequence value during regexp matching.
44073         2010-01-22 Ulrich Drepper <drepper@redhat.com>
44074         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
44076         2008-01-16 Ulrich Drepper <drepper@redhat.com>
44077         * lib/regex.h: Cleanup namespace.
44079         2007-11-26 Ulrich Drepper <drepper@redhat.com>
44080         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
44082         2007-08-26 Ulrich Drepper <drepper@redhat.com>
44083         * lib/regex_internal.h: Prevent some declarations and definitions
44084         to be seen when used in tests.
44086         2005-05-06 Ulrich Drepper <drepper@redhat.com>
44087         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
44088         __libc_lock_* macros if not _LIBC.
44089         (struct re_dfa_t): Add lock.
44091 2012-02-07  Eric Blake  <eblake@redhat.com>
44093         maint.mk: also prohibit lower-case @var@
44094         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
44095         lower case, like @top_srcdir@.
44097 2012-02-04  Eric Blake  <eblake@redhat.com>
44099         canonicalize: avoid uninitialized memory use
44100         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
44101         random '/' left in dest.
44102         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
44104 2012-02-04  Bruno Haible  <bruno@clisp.org>
44106         isatty: Fix test failure of ptsname_r on native Windows.
44107         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
44108         and don't set errno.
44109         (isatty): Test first whether fd is valid. Set errno when returning 0.
44111 2012-02-04  Bruno Haible  <bruno@clisp.org>
44113         spawn-pipe tests: Fix a NULL program name in a diagnostic.
44114         * tests/test-spawn-pipe-main.c: Include progname.h.
44115         (main): Invoke set_program_name.
44116         * modules/spawn-pipe-tests (Depends-on): Add progname.
44118         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
44119         * tests/test-nonblocking-socket-main.c: Include progname.h.
44120         (main): Invoke set_program_name.
44121         * modules/nonblocking-socket-tests (Depends-on): Add progname.
44123         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
44124         * tests/test-nonblocking-pipe-main.c: Include progname.h.
44125         (main): Invoke set_program_name.
44126         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
44128 2012-02-04  Eric Blake  <eblake@redhat.com>
44130         canonicalize-lgpl: fix // handling
44131         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
44133         canonicalize: fix // handling
44134         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
44135         /// to //, since only // is special.
44137 2012-02-04  Bruno Haible  <bruno@clisp.org>
44139         ioctl: Fix test failure on native Windows.
44140         * lib/ioctl.c: Include msvc-nothrow.h.
44141         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
44143 2012-02-04  Bruno Haible  <bruno@clisp.org>
44145         fsync: Avoid test failure on native Windows.
44146         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
44147         read-only.
44149 2012-02-04  Bruno Haible  <bruno@clisp.org>
44151         sys_select: Avoid syntax error on OpenBSD 5.0.
44152         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
44153         currently being included, just include the system's <sys/select.h>.
44155 2012-02-04  Bruno Haible  <bruno@clisp.org>
44157         sys_select: Avoid syntax error on OpenBSD 5.0.
44158         * lib/sys_select.in.h: Include <signal.h> only after the include_next
44159         <sys/select.h>, not before.
44160         Reported by Jiri B <jirib@devio.us>.
44162 2012-02-04  Bruno Haible  <bruno@clisp.org>
44164         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
44165         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
44166         global variables.
44167         * tests/test-get-rusage-data.c (main): Likewise.
44168         Reported by Jim Meyering.
44170 2012-02-04  Bruno Haible  <bruno@clisp.org>
44172         stdioext: Fix last commit.
44173         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
44175 2012-02-03  Bruno Haible  <bruno@clisp.org>
44177         stdioext: Add tentative support for Plan9.
44178         * lib/stdio-impl.h: Include <errno.h>.
44179         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
44180         * lib/freadable.c (freadable): Likewise.
44181         * lib/fwritable.c (fwritable): Likewise.
44182         * lib/fbufmode.c (fbufmode): Likewise.
44183         * lib/freading.c (freading): Likewise.
44184         * lib/fwriting.c (fwriting): Likewise.
44185         * lib/freadptr.c (freadptr): Likewise.
44186         * lib/freadseek.c (freadptrinc): Likewise.
44187         * lib/freadahead.c (freadahead): Likewise.
44188         * lib/fpurge.c (fpurge): Likewise.
44189         * lib/fseeko.c (rpl_fseeko): Likewise.
44190         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
44191         Reported by Jens Staal <staal1978@gmail.com>.
44193 2012-02-02  Jim Meyering  <meyering@redhat.com>
44195         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
44196         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
44197         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
44198         not even to try to add the attribute.  Instead, add a pragma to suppress
44199         the suggestion/warning.
44201 2012-01-31  Karl Berry  <karl@gnu.org>
44203         setstate doc: typo.
44204         * doc/posix-functions/setstate.texi (setstate): { not (.
44206 2012-01-31  Bruno Haible  <bruno@clisp.org>
44208         popen: Make more robust on Windows.
44209         * lib/popen.c: On native Windows, use the _popen based code even if
44210         HAVE_POPEN is set.
44211         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
44212         environment variable on native Windows.
44214 2012-01-30  Bruno Haible  <bruno@clisp.org>
44216         pclose: Fix typo.
44217         * lib/stdio.in.h (pclose): Fix typo in warning message.
44219 2012-01-30  Bruno Haible  <bruno@clisp.org>
44221         doc about getlogin_r, setstate.
44222         * doc/posix-functions/getlogin_r.texi: List the incompatible
44223         declaration problem under "not fixed by gnulib".
44224         * doc/posix-functions/setstate.texi: Mention incompatible declaration
44225         problem on Solaris 11 and other platforms.
44227 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
44228             Bruno Haible  <bruno@clisp.org>
44230         poll tests: Make test more robust.
44231         * tests/test-poll.c: Include macros.h.
44232         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
44233         return value of various I/O operations.
44234         * modules/poll-tests (Files): Add tests/macros.h.
44236 2012-01-30  Bruno Haible  <bruno@clisp.org>
44238         sys_stat: Fix support for mingw64 and MSVC.
44239         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
44240         header files already do it.
44241         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
44242         stat itself.
44243         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
44245 2012-01-30  Bruno Haible  <bruno@clisp.org>
44247         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
44248         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
44249         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
44251 2012-01-29  Bruno Haible  <bruno@clisp.org>
44253         quotearg: Fix test failure on MacOS X 10.5.
44254         * tests/test-quotearg-simple.c: Include localcharset.h.
44255         (main): If the locale encoding is not ASCII, bypass the tests of
44256         locale_quoting_style and clocale_quoting_style.
44257         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
44259 2012-01-29  Jim Meyering  <meyering@redhat.com>
44261         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
44262         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
44263         detect uses of canonicalize_file_name.
44265 2012-01-28  Bruno Haible  <bruno@clisp.org>
44267         test-framework-sh: Fix test failure with AIX 7.1 diff.
44268         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
44269         in column 1, like 'diff -c' does.
44270         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
44271         whether 'diff -u' is used. Instead, test whether the output contains
44272         some '@' character.
44274 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44276         strtoimax: eliminate need for stdint.h, inttypes.h checks
44277         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
44278         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
44279         the prerequisites for a recently-introduced strtoimax test.
44280         I guess this might cause strtoimax to be replaced when not
44281         strictly necessary on older hosts, but this shouldn't introduce
44282         any bugs and it should make Emacs 'configure' faster on typical
44283         modern hosts.  Problem discovered when importing the latest gnulib
44284         to an Emacs test version.
44285         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
44287 2012-01-28  Bruno Haible  <bruno@clisp.org>
44289         sys_time: Override 'struct timeval' on some native Windows platforms.
44290         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
44291         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
44292         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
44293         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
44294         needs to be overridden.
44295         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
44296         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
44297         * tests/test-sys_select.c: Check that the tv_sec member has the same
44298         size as a 'time_t'.
44299         * tests/test-sys_time.c: Likewise.
44300         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
44301         is set, set also REPLACE_GETTIMEOFDAY.
44302         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
44303         convert the resulting 'struct timeval' before returning.
44304         * lib/select.c: Include <sys/time.h>.
44305         (select, timeval): Undefine at the right place.
44306         * modules/select (Depends-on): Add sys_time.
44307         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
44308         some Windows platforms.
44309         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
44311 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
44313         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
44314         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
44315         an integer.
44316         * lib/fcntl.c (dupfd): Likewise.
44317         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
44319 2012-01-28  Bruno Haible  <bruno@clisp.org>
44321         fcntl: Avoid compilation error on native Windows.
44322         * modules/fcntl (Depends-on): Add 'close'.
44324 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
44326         select, poll, isatty: Avoid warnings on x86_64 mingw64.
44327         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
44328         pointer to an integer.
44329         * lib/poll.c (IsConsoleHandle): Likewise.
44330         * lib/isatty.c (IsConsoleHandle): Likewise.
44332 2012-01-28  Jim Meyering  <meyering@redhat.com>
44334         doc: clarify README-release
44335         * top/README-release: Clarify: you should make a point to have
44336         the latest stable versions of build tools in your PATH, and the
44337         reference to buildreq is solely for its list of tool names, not
44338         for its minimal-functional version numbers.
44339         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
44341         maint.mk: use more readable (yet functionally equivalent) quoting
44342         It is common to quote a single quote in a single quoted string like
44343         this:  '...'\''...'.  Unless you know the idiom, that looks like
44344         gibberish, so prefer to double-quote the string when possible.
44345         Then you can use a more readable, lone single quote: "...'..."
44346         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
44347         "don't" is more readable than the equivalent 'don'\''t'.
44348         (sc_cast_of_x_alloc_return_value): Likewise.
44349         (sc_cast_of_alloca_return_value): Likewise.
44350         (sc_makefile_path_separator_check): Similar: use ":" in '...',
44351         rather than '\'':'\''.
44353 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
44355         stdalign: relax _Alignof and tighten _Alignas test
44356         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
44357         as it was too strict: alignof must divide offsetof, but it need
44358         not equal offsetof.  Inspired by Joseph S. Myers's comment
44359         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
44360         Conversely, tighten the _Alignas test a bit, as the resulting
44361         alignment must be exactly 8.
44363 2012-01-27  Bruno Haible  <bruno@clisp.org>
44365         stdalign: Document the last change.
44366         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
44368 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
44370         stdalign: check that alignof and offsetof are consistent
44371         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
44372         Problem reported for gnulib by Richard W.M. Jones in
44373         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
44375 2012-01-27  Jim Meyering  <meyering@redhat.com>
44377         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
44378         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
44379         convert a sequence with gaps to the minimal containing range.
44380         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
44381         * tests/test-update-copyright.sh: Test for this.
44382         The FSF confirmed it is ok to do this, assuming there is at
44383         least one significant change per year in the affected range:
44384         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
44386 2012-01-26  Bruno Haible  <bruno@clisp.org>
44388         pipe2: refine doc about thread-safety
44389         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
44390         multithread-safety problem.
44391         * doc/glibc-functions/accept4.texi: Likewise.
44393 2012-01-26  Bruno Haible  <bruno@clisp.org>
44395         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
44396         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
44397         In the test program, include <fcntl.h>, for O_RDONLY.
44399 2012-01-26  Eric Blake  <eblake@redhat.com>
44401         pipe2: document lack of thread-safety in replacement
44402         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
44403         issue in replacement.
44404         * doc/glibc-functions/accept4.texi (accept4): Likewise.
44405         Based on a report by Eric Wong.
44407 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
44408             Bruno Haible  <bruno@clisp.org>
44410         malloca: Avoid warnings on x86_64 mingw64.
44411         * lib/malloca.c: Include <stdint.h>.
44412         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
44413         * modules/malloca (Depends-on): Add stdint.
44414         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
44416 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44418         obstack: remove __STDC__ conditionals
44419         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
44420         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
44421         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
44422         m4/include_next.m4 as the only gnulib-maintained places that still
44423         refer to __STDC__.
44425 2012-01-24  Bruno Haible  <bruno@clisp.org>
44427         havelib: Modern quoting.
44428         * build-aux/config.rpath: Quote 'like this', not `like this', as per
44429         the recent change to the GNU coding standards.
44431 2012-01-24  Bruno Haible  <bruno@clisp.org>
44433         stdint: Improve support for Android.
44434         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
44435         Reported by Simon Josefsson <simon@josefsson.org>.
44437 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44439         doc: omit trailing empty lines from INSTALL etc.
44440         * doc/Makefile (INSTALL): Omit trailing empty lines.
44441         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
44442         omit trailing empty lines.  This simplifies the build procedure.
44444 2012-01-23  Jim Meyering  <meyering@redhat.com>
44446         tests: avoid spurious warnings about gl_sockets_startup
44447         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
44448         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
44449         reporting a "statement with no effect".
44450         * tests/test-accept.c (main): Mark as "(void)".
44451         * tests/test-accept4.c (main): Likewise.
44452         * tests/test-bind.c (main): Likewise.
44453         * tests/test-connect.c (main): Likewise.
44454         * tests/test-getpeername.c (main): Likewise.
44455         * tests/test-getsockname.c (main): Likewise.
44456         * tests/test-getsockopt.c (main): Likewise.
44457         * tests/test-listen.c (main): Likewise.
44458         * tests/test-recv.c (main): Likewise.
44459         * tests/test-recvfrom.c (main): Likewise.
44460         * tests/test-send.c (main): Likewise.
44461         * tests/test-sendto.c (main): Likewise.
44462         * tests/test-setsockopt.c (main): Likewise.
44463         * tests/test-shutdown.c (main): Likewise.
44465 2012-01-21  Bruno Haible  <bruno@clisp.org>
44467         locale-fr.m4: Fix for Android.
44468         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
44469         failure of the test program on Bionic libc.
44471 2012-01-21  Jim Meyering  <meyering@redhat.com>
44473         bootstrap: fail when bootstrap_post_import_hook fails
44474         Otherwise, it's far too easy to miss diagnostics emitted
44475         between gnulib-tool's output and that of running configure.
44476         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
44478 2012-01-17  Jim Meyering  <meyering@redhat.com>
44480         maint: enable sc_trailing_blank
44481         * build-aux/pmccabe.css: Remove trailing blanks.
44482         * doc/acl-cygwin.txt: Likewise.
44483         * doc/gnu-oids.texi: Likewise
44484         * cfg.mk: Enable sc_trailing_blank.
44485         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
44487 2012-01-17  Jim Meyering  <meyering@redhat.com>
44489         maint: enable sc_prohibit_openat_without_use
44490         * cfg.mk: Enable sc_prohibit_openat_without_use.
44491         Exempt lib/selinux-at.c.
44493 2012-01-17  Jim Meyering  <meyering@redhat.com>
44495         maint: enable sc_prohibit_cloexec_without_use
44496         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
44497         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
44499 2012-01-17  Jim Meyering  <meyering@redhat.com>
44501         maint: enable sc_prohibit_intprops_without_use
44502         * cfg.mk: Enable sc_prohibit_intprops_without_use
44503         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
44505 2012-01-17  Jim Meyering  <meyering@redhat.com>
44507         maint: enable sc_prohibit_hash_pjw_without_use
44508         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
44509         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
44510         to match any use of \<hash_pjw\>, i.e., not necessarily with a
44511         following " (".
44513 2012-01-17  Jim Meyering  <meyering@redhat.com>
44515         maint: enable double-word-prohibiting rule
44516         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
44517         Exempt three files.
44519 2012-01-17  Jim Meyering  <meyering@redhat.com>
44521         maint: remove empty lines at EOF, but excluding modules/*
44522         Apply syntax rules at home as well as abroad.  Most changes
44523         were induced by running this:
44524           make srcdir=. _build-aux=build-aux -f top/maint.mk \
44525             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
44526             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
44527         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
44528         Exempt modules/* and two binary files.
44529         Also exempt doc/INSTALL*, per request from Bruno Haible.
44530         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
44531         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
44532         * doc/Copyright/request-assign.future: Likewise.
44533         * doc/Copyright/request-disclaim.changes: Likewise.
44534         * doc/INSTALL: Likewise.
44535         * doc/INSTALL.ISO: Likewise.
44536         * doc/INSTALL.UTF-8: Likewise.
44537         * doc/acl-cygwin.txt: Likewise.
44538         * doc/acl-resources.txt: Likewise.
44539         * doc/fdl-1.2.texi: Likewise.
44540         * doc/fdl-1.3.texi: Likewise.
44541         * doc/fdl.texi: Likewise.
44542         * lib/argp-pin.c: Likewise.
44543         * lib/round.c: Likewise.
44544         * lib/unicase/u16-totitle.c: Likewise.
44545         * lib/unictype/block_test.c: Likewise.
44546         * lib/uninorm/canonical-decomposition.c: Likewise.
44547         * m4/README: Likewise.
44548         * m4/relocatable-lib.m4: Likewise.
44549         * tests/test-isnand-nolibm.c: Likewise.
44550         * tests/test-isnand.c: Likewise.
44551         * tests/uninorm/NormalizationTest.txt: Likewise.
44553 2012-01-17  Jim Meyering  <meyering@redhat.com>
44555         maint: add framework to run syntax-check rules against gnulib sources
44556         * cfg.mk: New file, to disable all currently-failing tests.
44557         We'll enable them one by one, as they are made to pass.
44558         * Makefile (sc_maint): New rule.
44560 2012-01-21  Bruno Haible  <bruno@clisp.org>
44562         stdint: Add support for Android.
44563         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
44564         include the system's <stdint.h>.
44565         Reported by Simon Josefsson <simon@josefsson.org>.
44567 2012-01-19  Jim Meyering  <meyering@redhat.com>
44569         bootstrap: add bootstrap_post_import_hook
44570         Bison does still need something like the gnulib_mk_hook whose
44571         invocation I had to remove along with slurp in commit 767ccd40.
44572         Technically, we could get along without it, but doing so would
44573         have required living with a warning and a mandatory post-bootstrap
44574         automake rerun.
44575         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
44576         (bootstrap_post_import_hook): New function.
44577         Invoke it after gnulib-tool --import and before autoreconf.
44579 2012-01-18  Jim Meyering  <meyering@redhat.com>
44581         gitlog-to-changelog: don't use "no_"-prefixed variable name
44582         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
44583         to enable both --cluster and --no-cluster.  Change variable name,
44584         s/\$no_cluster/$cluster/, and reverse usage to match.
44586         gitlog-to-changelog: use "||", not "or" in expressions
44587         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
44588         expressions.
44590 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
44592         gitlog-to-changelog: new option --no-cluster
44593         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
44594         clustering of adjacent commit messages.
44596 2012-01-17  Jim Meyering  <meyering@redhat.com>
44598         maint: spell file systems with two words, not one
44599         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
44600         two words, not one.
44602 2012-01-16  Jim Meyering  <meyering@redhat.com>
44604         bootstrap: add a FIXME comment to ensure we eventually remove the hack
44605         * build-aux/bootstrap (gnulib_tool_options): Add comment.
44607 2012-01-16  Eric Blake  <eblake@redhat.com>
44609         bootstrap: cater to autoconf 2.59
44610         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
44611         is not available.
44613         bootstrap: properly check for libtool
44614         * build-aux/bootstrap (libtoolize): Also run libtool when older
44615         usage is detected.
44617 2012-01-15  Bruno Haible  <bruno@clisp.org>
44619         Improve support for MSVC 9.
44620         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
44621         clashes on MSVC.
44622         * lib/fcntl.in.h: Likewise.
44623         * lib/stdlib.in.h: Likewise.
44624         * lib/sys_stat.in.h: Likewise.
44626 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
44628         gnupload: we hold the master copy of this script now
44629         For motivation and more information, see:
44630         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
44631         * build-aux/gnupload: Make it clear in the heading comments that the
44632         master copy of this file is maintained by gnulib.  Since we are at
44633         it, bump its copyright year and ...
44634         ($scriptversion): ... the date in its version.
44635         ($usage): Patches and bug reports should be sent to the gnulib list,
44636         not the automake one.
44637         * config/srclist.txt: Don't try to sync 'gnupload' from automake
44638         anymore.
44640 2012-01-15  Bruno Haible  <bruno@clisp.org>
44642         Fix module 'random'.
44643         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
44644         initstate, setstate are declared.
44646 2012-01-14  Bruno Haible  <bruno@clisp.org>
44648         Tests for module 'random'.
44649         * modules/random-tests: New file.
44650         * tests/test-random.c: New file, based on tests/test-random_r.c.
44652         New module 'random'.
44653         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
44654         declarations.
44655         * lib/random.c: New file, based on glibc/stdlib/random.c.
44656         * m4/random.m4: New file.
44657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
44658         HAVE_RANDOM.
44659         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
44660         * modules/random: New file.
44661         * config/srclist.txt: Add an entry for random.c.
44662         * doc/posix-functions/random.texi: Mention the 'random' module.
44663         * doc/posix-functions/initstate.texi: Likewise.
44664         * doc/posix-functions/setstate.texi: Likewise.
44665         * doc/posix-functions/srandom.texi: Likewise.
44667 2012-01-12  Bruno Haible  <bruno@clisp.org>
44669         random_r: Use common idioms.
44670         * lib/random_r.c: Include <stdlib.h> first.
44672         random_r: Override incompatible API on AIX, OSF/1.
44673         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
44674         Override the system function if REPLACE_RANDOM_R is 1.
44675         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
44676         and OSF/1, set REPLACE_RANDOM_R.
44677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
44678         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
44679         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
44680         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
44681         * doc/glibc-functions/random_r.texi: Likewise.
44682         * doc/glibc-functions/setstate_r.texi: Likewise.
44684         random_r: Support for MSVC 9.
44685         * lib/random_r.c: Include stdint.h, not inttypes.h.
44687 2012-01-12  Eric Blake  <eblake@redhat.com>
44689         inet_ntop: guard extra work by IF_LINT
44690         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
44691         better code generation when not checking for warnings.
44692         Suggested by Paul Eggert and Jim Meyering.
44694         strptime: fix regression on mingw
44695         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
44696         Fix regression.  Reported by Bruno Haible.
44698 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
44699             Bruno Haible  <bruno@clisp.org>
44701         copy-file: add error-code-returning variant.
44702         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
44703         (qcopy_file_preserving): New declaration.
44704         * lib/copy-file.c (qcopy_file_preserving): Renamed from
44705         copy_file_preserving. Change return type to 'int'. Don't emit an error
44706         message here.
44707         (copy_file_preserving): New function.
44708         * tests/test-copy-file.c: Include <stdlib.h>.
44709         (main): Test qcopy_file_preserving if the environment variable
44710         NO_STDERR_OUTPUT is set.
44711         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
44712         with NO_STDERR_OUTPUT
44713         * tests/test-copy-file-2.sh: Likewise.
44715 2012-01-10  Bruno Haible  <bruno@clisp.org>
44717         copy-file: Use 'quote' module consistently.
44718         * lib/copy-file.c (copy_file_preserving): Use quote().
44720         copy-file: Refactor.
44721         * lib/copy-file.c: Include quote.h.
44722         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
44723         message here.
44724         * modules/copy-file (Depends-on): Add quote.
44726         acl: Export qcopy_acl.
44727         * lib/acl.h (qcopy_acl): New declaration.
44728         * lib/copy-acl.c (qcopy_acl): Make non-static.
44730         acl: Rename a local variable.
44731         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
44733         acl: Align return values of copy_acl and qcopy_acl.
44734         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
44735         maybe < -1.
44737 2012-01-11  Eric Blake  <eblake@redhat.com>
44739         strptime: silence gcc warnings
44740         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
44741         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
44742         Reported by Daniel P. Berrange.
44744         inet_ntop: silence gcc warning
44745         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
44746         Reported by Daniel P. Berrange.
44748 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
44750         getloadavg test: skip the test on GNU/Linux without /proc mounted
44751         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
44752         file.  When /proc is not mounted, it always fails with ENOENT.
44753         * tests/test-getloadavg.c (main): Treat ENOENT return code from
44754         getloadavg(3) the same way as ENOSYS and ENOTSUP.
44756 2012-01-10  Bruno Haible  <bruno@clisp.org>
44758         regex: Avoid link error on MSVC 9.
44759         * modules/regex (Depends-on): Add wctype.
44761 2012-01-10  Bruno Haible  <bruno@clisp.org>
44763         doc: Mention --with-tests option.
44764         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
44765         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
44766         --with-tests.
44767         Reported by Reuben Thomas.
44769 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
44771         users.txt: order package names lexicographically.
44772         * users.txt: Order package names lexicographically.
44774 2012-01-10  Jim Meyering  <meyering@redhat.com>
44776         maint.mk: fix description in comment
44777         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
44779         ignore-value: remove deprecated ignore_ptr function
44780         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
44781         * NEWS: Note this.
44783 2012-01-09  Jim Meyering  <meyering@redhat.com>
44785         test-init.sh: avoid a subshell
44786         * tests/test-init.sh: Remove protective subshell.
44787         Suggested by Bernhard Voelker.  While a subshell is normally
44788         required to protect against older shells (Solaris, FreeBSD) that
44789         warn about a missing program before performing redirection, the
44790         shell-selection tests performed by init.sh probably exclude any
44791         offending shell.
44793 2012-01-08  Bruno Haible  <bruno@clisp.org>
44795         setlocale tests: Avoid test failure on Solaris 11.0.
44796         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
44797         variable.
44799 2012-01-08  Bruno Haible  <bruno@clisp.org>
44801         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
44802         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44803         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44804         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
44805         macro.
44806         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
44807         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44808         * lib/spawn_faction_addopen.c: Add workaround implementation if
44809         HAVE_WORKING_POSIX_SPAWN.
44810         * modules/spawn (Makefile): Substitute
44811         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44812         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
44813         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
44814         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44815         (Depends-on): Update conditions.
44816         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44817         the Solaris 11 bug.
44819 2012-01-08  Bruno Haible  <bruno@clisp.org>
44821         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
44822         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44823         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44824         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
44825         macro.
44826         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
44827         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44828         * lib/spawn_faction_adddup2.c: Add workaround implementation if
44829         HAVE_WORKING_POSIX_SPAWN.
44830         * modules/spawn (Makefile): Substitute
44831         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44832         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
44833         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
44834         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44835         (Depends-on): Update conditions.
44836         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44837         the Solaris 11 bug.
44839 2012-01-08  Bruno Haible  <bruno@clisp.org>
44841         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
44842         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44843         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44844         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
44845         HAVE_WORKING_POSIX_SPAWN.
44846         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
44847         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
44848         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44849         * lib/spawn_faction_addclose.c: Add workaround implementation if
44850         HAVE_WORKING_POSIX_SPAWN.
44851         * modules/spawn (Makefile): Substitute
44852         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44853         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
44854         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
44855         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44856         (Depends-on): Update conditions.
44857         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44858         the Solaris 11 bug.
44860 2012-01-08  Bruno Haible  <bruno@clisp.org>
44862         doc: Update for Solaris 11.0.
44863         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
44864         * m4/printf.m4: Update comments.
44866 2012-01-08  Bruno Haible  <bruno@clisp.org>
44868         mktime: Avoid compilation error on Solaris 11.
44869         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
44871 2012-01-08  Bruno Haible  <bruno@clisp.org>
44873         doc: Small fix.
44874         * doc/posix-headers/nl_types.texi: Correct platforms list.
44876 2012-01-08  Simon Josefsson  <simon@josefsson.org>
44878         Add lgpl-3.0 module.
44879         * MODULES.html.sh (Support for building documentation): Add
44880         lgpl-3.0.
44881         * modules/lgpl-3.0: New file.
44883 2012-01-08  Jim Meyering  <meyering@redhat.com>
44885         select.c: indent with spaces, not TABs
44886         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
44888 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44890         quotearg: do not use grave accent for left quote
44891         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
44892         locale_quoting_style.
44893         (quotearg_buffer_restyled): Fix example.
44894         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
44896 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44898         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
44899         Most programs do not have translation catalogs for English and much
44900         less separate catalogs for British and American English.  Drop the
44901         suggestion to translators about these two, and provide it
44902         automatically for Unicode locales.  Like most programs, even those
44903         using American English, we use single quotation marks.  This conflicts
44904         with the American typographic convention, but works better when you
44905         cite the entire error message within double quotes.  It also tries not
44906         to clash with established practice and with what non-gnulib programs
44907         will usually do.
44908         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
44909         using an UTF-8 or GB-18030 locale.  The list of other locales with
44910         quotes was provided by Bruno Haible.
44911         (quotearg_buffer_restyled): Adjust instructions to translators.
44912         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
44913         text, since this would be wrong when using Unicode.
44914         * modules/quotearg: Depend on c-strcaseeq.
44916 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44918         quotearg: fix Wikipedia link
44919         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
44921 2012-01-07  Simon Josefsson  <simon@josefsson.org>
44923         Fix for mingw with MSVC9.
44924         * m4/ld-version-script.m4: Check that compiler rejects version
44925         scripts with syntax errors.  Reported by Bruno Haible
44926         <bruno@clisp.org>.
44928 2012-01-06  Bruno Haible  <bruno@clisp.org>
44930         Talk about "native Windows API", not "Woe32".
44931         * lib/accept4.c: Update comments to mention native Windows.
44932         * lib/execute.c: Likewise.
44933         * lib/fatal-signal.c: Likewise.
44934         * lib/localcharset.c: Likewise.
44935         * lib/nanosleep.c: Likewise.
44936         * lib/nl_langinfo.c: Likewise.
44937         * lib/pclose.c: Likewise.
44938         * lib/pipe-filter-gi.c: Likewise.
44939         * lib/pipe-filter-ii.c: Likewise.
44940         * lib/pipe.c: Likewise.
44941         * lib/pipe2.c: Likewise.
44942         * lib/popen.c: Likewise.
44943         * lib/progreloc.c: Likewise.
44944         * lib/relocatable.c: Likewise.
44945         * lib/sigaction.c: Likewise.
44946         * lib/sigprocmask.c: Likewise.
44947         * lib/spawn-pipe.h: Likewise.
44948         * lib/spawn-pipe.c: Likewise.
44949         * lib/spawni.c: Likewise.
44950         * lib/stat-time.h: Likewise.
44951         * lib/w32spawn.h: Likewise.
44952         * tests/test-isatty.c: Likewise.
44953         * lib/config.charset: More comments.
44954         * doc/gnulib-intro.texi: Mention native Windows.
44955         * doc/posix-functions/_Exit_C99.texi: Likewise.
44956         * doc/posix-headers/fcntl.texi: Likewise.
44958 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
44960         argp: Avoid crash if translator uses % characters in a translation.
44961         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
44962         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44964 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
44966         doc: C11 and C++11 are now official
44967         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
44968         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
44969         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
44970         * modules/stdalign:
44971         Replace references to draft C1X to C11, and to draft C++0X to C++11.
44973 2012-01-06  Bruno Haible  <bruno@clisp.org>
44975         uc-is-grapheme-break tests: Tweak.
44976         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
44977         message.
44979 2012-01-06  Bruno Haible  <bruno@clisp.org>
44981         test-init.sh: correct the test for diff -u
44982         * tests/test-init.sh: Also redirect stdout to /dev/null.
44984 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44986         Use ', not `, for quoting output.
44987         * build-aux/announce-gen (usage, sizes, print_news_deltas)
44988         (print_changelog_deltas, get_tool_versions, main program):
44989         * build-aux/git-version-gen:
44990         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
44991         * build-aux/move-if-change (help):
44992         * build-aux/useless-if-before-free (usage, main program):
44993         * check-module (parse_module_file, usage)
44994         (find_included_lib_files, check_module):
44995         * lib/argmatch.c (main) [TEST]:
44996         * lib/argp-help.c (_help):
44997         * lib/getopt1.c (main) [TEST]:
44998         * lib/git-merge-changelog.c (usage):
44999         * lib/xstrtol-error.c (xstrtol_error):
45000         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
45001         * m4/argz.m4 (gl_FUNC_ARGZ):
45002         * m4/bison.m4 (gl_BISON):
45003         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
45004         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
45005         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
45006         * m4/fpending.m4 (gl_PREREQ_FPENDING):
45007         * m4/gc-random.m4 (gl_GC_RANDOM):
45008         * m4/intl.m4 (gt_CHECK_DECL):
45009         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
45010         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
45011         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
45012         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
45013         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
45014         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
45015         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
45016         * tests/test-dirname.c (main):
45017         * tests/test-getpass.c (main):
45018         * tests/test-iconvme.c (main):
45019         * tests/test-parse-datetime.c (LOG):
45020         * tests/test-xstrtoimax.sh:
45021         * tests/test-xstrtol.sh:
45022         * tests/test-xstrtoll.sh:
45023         * tests/test-xstrtoumax.sh:
45024         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
45025         * top/GNUmakefile (abort-due-to-no-makefile):
45026         Quote 'like this', not `like this', as per the recent change to
45027         the GNU coding standards.
45029 2012-01-05  Bruno Haible  <bruno@clisp.org>
45031         strtoimax: Don't force a replacement on systems where intmax_t is int.
45032         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
45033         'intmax_t' is not larger than 'int'.
45034         Reported by Pádraig Brady <P@draigBrady.com>.
45036 2012-01-05  Bruno Haible  <bruno@clisp.org>
45038         doc: Mention NetBSD bugs.
45039         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
45040         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
45042 2012-01-05  Bruno Haible  <bruno@clisp.org>
45044         strtoumax tests: Enhance tests.
45045         * tests/test-strtoumax.c (main): Add tests for large values.
45047 2012-01-05  Bruno Haible  <bruno@clisp.org>
45049         strtoimax: Work around AIX 5.1 bug.
45050         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
45051         definition.
45052         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
45053         Set HAVE_STRTOIMAX.
45054         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
45055         REPLACE_STRTOIMAX.
45056         * modules/inttypes-incomplete (Makefile.am): Substitute
45057         REPLACE_STRTOIMAX.
45058         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
45059         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
45060         (Depends-on): Update conditions.
45061         * tests/test-strtoimax.c (main): Add tests for large values.
45062         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
45064 2012-01-05  Bruno Haible  <bruno@clisp.org>
45066         inttypes: Modernize.
45067         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
45068         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
45069         (Makefile.am): Update inttypes.h rule.
45071 2012-01-05  Jim Meyering  <meyering@redhat.com>
45073         init.sh: don't waste a subshell just to redirect stderr
45074         * tests/init.sh: In testing for diff -u and diff -c, use a
45075         stderr-redirecting exec inside `...` rather than a subshell.
45077         test-init.sh: avoid failure on HP-UX 11.00
45078         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
45079         resolves to diff -c or cmp.  Reported by Bruno Haible.
45081 2012-01-05  Bruno Haible  <bruno@clisp.org>
45083         Tests for module 'strtoull'.
45084         * modules/strtoull-tests: New file.
45085         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
45087 2012-01-05  Bruno Haible  <bruno@clisp.org>
45089         Tests for module 'strtoll'.
45090         * modules/strtoll-tests: New file.
45091         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
45093 2012-01-05  Bruno Haible  <bruno@clisp.org>
45095         Tests for module 'strtoul'.
45096         * modules/strtoul-tests: New file.
45097         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
45099 2012-01-05  Bruno Haible  <bruno@clisp.org>
45101         Tests for module 'strtol'.
45102         * modules/strtol-tests: New file.
45103         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
45105 2012-01-04  Jim Meyering  <meyering@redhat.com>
45107         test-init.sh: accommodate Solaris 5.10's different diff -u output
45108         * tests/test-init.sh: Also exempt @@ lines from the comparison
45109         of diff output, since Solaris 5.10 and GNU diff formats differ.
45110         Reported by Stefano Lattarini.
45112 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45114         test-posixtm: don't assume signed integer wraparound
45115         * tests/test-posixtm.c (main): Don't assume wraparound semantics
45116         after signed integer overflow.  Inspired by (though it may not
45117         fix) Bruno Haible's bug report in
45118         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
45120         Spell out "Windows 9x" and "Windows XP".
45121         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
45122         "Windows 9x" and "WinXP" with "Windows XP".
45124 2012-01-04  Jim Meyering  <meyering@redhat.com>
45126         test-vc-list-files-cvs.sh: remove obsolete comment
45127         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
45128         double exit.  Now that's all encapsulated via skip_ and Exit.
45130 2012-01-04  Bruno Haible  <bruno@clisp.org>
45132         Talk about "native Windows API", not "Win32".
45133         * lib/classpath.c: Update comments to mention native Windows.
45134         * lib/csharpexec.c: Likewise.
45135         * lib/dup2.c: Likewise.
45136         * lib/error.c: Likewise.
45137         * lib/fcntl.c: Likewise.
45138         * lib/filename.h: Likewise.
45139         * lib/findprog.c: Likewise.
45140         * lib/get-rusage-as.c: Likewise.
45141         * lib/get-rusage-data.c: Likewise.
45142         * lib/getpagesize.c: Likewise.
45143         * lib/javaexec.c: Likewise.
45144         * lib/msvc-inval.c: Likewise.
45145         * lib/msvc-nothrow.c: Likewise.
45146         * lib/nanosleep.c: Likewise.
45147         * lib/nonblocking.c: Likewise.
45148         * lib/printf-parse.c: Likewise.
45149         * lib/setlocale.c: Likewise.
45150         * lib/sigaction.c: Likewise.
45151         * lib/strerror_r.c: Likewise.
45152         * lib/tmpdir.c: Likewise.
45153         * lib/vasnprintf.c: Likewise.
45154         * lib/w32spawn.h: Likewise.
45155         * lib/waitpid.c: Likewise.
45156         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
45157         * m4/locale-ar.m4: Likewise.
45158         * m4/locale-fr.m4: Likewise.
45159         * m4/locale-ja.m4: Likewise.
45160         * m4/locale-tr.m4: Likewise.
45161         * m4/locale-zh.m4: Likewise.
45162         * m4/printf.m4: Likewise.
45163         * tests/test-cloexec.c: Likewise.
45164         * tests/test-copy-acl.sh: Likewise.
45165         * tests/test-copy-file.sh: Likewise.
45166         * tests/test-file-has-acl.sh: Likewise.
45167         * tests/test-set-mode-acl.sh: Likewise.
45168         * tests/test-dup-safer.c: Likewise.
45169         * tests/test-dup2.c: Likewise.
45170         * tests/test-dup3.c: Likewise.
45171         * tests/test-fcntl.c: Likewise.
45172         * tests/test-nonblocking-pipe.h: Likewise.
45173         * tests/test-nonblocking-socket.h: Likewise.
45174         * tests/test-pipe.c: Likewise.
45175         * tests/test-pipe2.c: Likewise.
45176         * tests/test-spawn-pipe-child.c: Likewise.
45177         * doc/acl-resources.txt: Likewise.
45178         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
45179         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
45180         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
45181         * lib/localcharset.c: Update comments to mention native Windows.
45182         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
45183         * lib/localename.c: Likewise.
45184         * lib/progreloc.c: Likewise.
45185         * lib/relocatable.c: Likewise.
45186         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
45187         (windows_compute_revents): Renamed from win32_compute_revents.
45188         (windows_compute_revents_socket): Renamed from
45189         win32_compute_revents_socket.
45190         * lib/select.c: Update comments to mention native Windows.
45191         (windows_poll_handle): Renamed from win32_poll_handle.
45192         * m4/threadlib.m4: Update comments to mention native Windows.
45193         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
45194         --enable-threads=windows instead of --enable-threads=win32. Set
45195         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
45196         * lib/glthread/lock.h: Update comments to mention native Windows.
45197         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
45198         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
45199         USE_WIN32_THREADS.
45200         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
45201         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
45202         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
45203         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
45204         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
45205         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
45206         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
45207         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
45208         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
45209         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
45210         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
45211         * tests/test-tls.c: Likewise.
45212         Rationale:
45213         Microsoft renamed the "Win32 API" to "Windows API", as it is available
45214         on both 32-bit and 64-bit Windows systems.
45215         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
45216         line of distinction is between "native Windows" on one side and Unix/
45217         POSIX systems on the other side. More details in
45218         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
45219         Suggested by Paul Eggert.
45221 2012-01-03  Bruno Haible  <bruno@clisp.org>
45223         isatty: Support for MSVC 9.
45224         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
45225         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
45226         (_isatty_nothrow): New function.
45227         (isatty): Use it instead of _isatty.
45228         (IsConsoleHandle): Add comment, from Paolo Bonzini.
45229         * lib/poll.c (IsConsoleHandle): Likewise.
45230         * lib/select.c (IsConsoleHandle): Likewise.
45231         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
45232         (gl_PREREQ_ISATTY): New macro.
45233         * modules/isatty (Depends-on): Add msvc-inval.
45234         (configure.ac): Invoke gl_PREREQ_ISATTY.
45236 2012-01-03  Jim Meyering  <meyering@redhat.com>
45238         maint.mk: remove temporary transition aid from over 1.5 years ago
45239         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
45240         purpose was to aid in the transition (avoiding silent malfunction)
45241         from that old name to the new _sc_search_regexp.  This shim was
45242         added by commit 219c504b.
45244         init.sh: do not try to accommodate compare arguments starting with "-"
45245         * tests/init.sh (compare_dev_null_): Do not try to accommodate
45246         compare arguments that start with "-".  Besides, we do not worry
45247         about this when invoking diff or cmp; why start now with sed?
45248         Using "--" to separate options from argument would trigger sed
45249         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
45250         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
45252 2012-01-02  Bruno Haible  <bruno@clisp.org>
45254         Enhance tests for module 'isatty'.
45255         * modules/isatty-tests (Depends-on): Add pipe-posix.
45256         * tests/test-isatty.c: Include <fcntl.h>.
45257         (DEV_NULL): New macro.
45258         (main): Test the resut of isatty() also on regular files, pipes, and
45259         /dev/null.
45261         New module 'isatty'.
45262         * lib/unistd.in.h (isatty): New declaration.
45263         * lib/isatty.c: New file, based on an idea of
45264         Bastien Roucariès <roucaries.bastien@gmail.com>.
45265         * m4/isatty.m4: New file.
45266         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
45267         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
45268         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
45269         REPLACE_ISATTY.
45270         * modules/isatty: New file.
45271         * doc/posix-functions/isatty.texi: Mention the new module.
45272         Suggested by Paolo Bonzini.
45274 2012-01-02  Bruno Haible  <bruno@clisp.org>
45276         canonicalize: Tweak 2011-12-29 commit.
45277         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
45278         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
45280 2012-01-02  Jim Meyering  <meyering@redhat.com>
45282         gitlog-to-changelog: describe input syntax in --help output
45283         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
45285         gitlog-to-changelog: fix typo in --help: show backslash before email @
45286         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
45287         in sources, but not in actual output.
45289 2011-12-30  Jim Meyering  <meyering@redhat.com>
45291         gitlog-to-changelog: don't malfunction when name contains %-directive
45292         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
45293         in a name string cause trouble.  E.g., with a user name of "%s",
45294         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
45296 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
45298         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
45299         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
45300         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
45301         the "  (tiny change)" notation that is appended to the standard
45302         ChangeLog "date  name  email" header line.
45304 2012-01-01  Jim Meyering  <meyering@redhat.com>
45306         test-framework-sh: init.sh: fix "make dist" failure
45307         When using gnulib-tool's --with-tests option and any module that
45308         depends on test-framework-sh, "make dist" would fail due to the
45309         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
45310         in the gltests directory, and not in the gllib/ directory.
45311         One way to work around that is to move the EXTRA_DIST += init.sh
45312         from the primary module to the -tests one:
45313         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
45314         * modules/test-framework-sh (Makefile.am): ...not here.
45315         Reported by Tom G. Christensen in
45316         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
45318         version-etc: update copyright year reported by --version
45319         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
45321 2011-12-31  Pádraig Brady  <P@draigBrady.com>
45323         canonicalize: only stat() if required
45324         * lib/canonicalize.c (canonicalize_filename_mode):
45325         Avoid calling l?stat() when both CAN_MISSING,
45326         and CAN_NOLINKS are set, as we neither need
45327         to resolve symlinks or test component existence.
45329 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
45331         doc: cover st_ino issues once; add OpenVMS etc.
45332         * doc/posix-functions/stat.texi (stat):
45333         * doc/posix-functions/lstat.texi (lstat):
45334         * doc/posix-functions/fstatat.texi (fstatat):
45335         * doc/posix-functions/fstat.texi (fstat):
45336         Move general 'struct stat' stuff to sys_stat.texi,
45337         leaving behind a pointer.
45338         * doc/posix-headers/sys_stat.texi (sys/stat.h):
45339         Merge duplicate info about 'struct stat' problems into here.
45340         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
45341         and suggest partial workarounds.
45343         same-inode: port to OpenVMS
45344         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
45345         three st_ino values.
45347 2011-12-30  Pádraig Brady  <P@draigBrady.com>
45349         canonicalize: fix references to stat() and lstat()
45350         * lib/canonicalize.c (canonicalize_filename_mode):
45351         Ensure references always resolve to a replacement
45352         function if required (even via a macro).
45354 2011-12-30  Jim Meyering  <meyering@redhat.com>
45356         gitlog-to-changelog: remove a little duplication
45357         * build-aux/gitlog-to-changelog (main): Grep @lines once,
45358         rather than twice.
45360 2011-12-29  Pádraig Brady  <P@draigBrady.com>
45362         canonicalize: add support for not resolving symlinks
45363         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
45364         indicate we don't want to follow symlinks.  Also
45365         provide CAN_MODE_MASK to aid setting these existing
45366         mutually exclusive values.
45367         * lib/canonicalize.c (canonicalize_filename_mode):
45368         Extract the flags from can_mode parameter, which
45369         are currently just used to select between stat()
45370         and lstat().  Also ensure that mutually exclusive
45371         values are flagged immediately as invalid.
45372         * tests/test-canonicalize.c: Verify symlinks are
45373         not followed, and that invalid flag combinations
45374         are diagnosed.
45376 2011-12-25  Jim Meyering  <meyering@redhat.com>
45378         gitlog-to-changelog: do not clump multi-paragraph entries
45379         Identical header lines (date,name,email+coauthors) are suppressed,
45380         thus putting all entries with those same characteristics under
45381         a single header.  However, when a log entry consists of two or
45382         more paragraphs, it may not be clear where it starts and ends.
45383         This change makes it so that such an entry is always separated
45384         from others by a header line, even when that header would
45385         otherwise be suppressed.
45386         * build-aux/gitlog-to-changelog: Implement the above.
45387         Inspired by a related request from Stefano Lattarini in
45388         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
45390 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45392         announce-gen: fix `cmd' typo in diagnostic
45393         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
45394         diagnostic: a missing '$' meant that the command was not output.
45396 2011-12-23  Jim Meyering  <meyering@redhat.com>
45398         test-framework-sh: distribute init.sh
45399         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
45400         Otherwise, "make -C gnulib-tests check" (at least in grep) would
45401         fail due to the lack of init.sh.
45403         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
45404         * modules/atexit-tests: Rather than listing tests/init.sh,
45405         now that there's a module for it, simply depend on that new module.
45406         * modules/closein-tests: Likewise.
45407         * modules/exclude-tests: Likewise.
45408         * modules/getcwd-tests: Likewise.
45409         * modules/perror-tests: Likewise.
45410         * modules/pread-tests: Likewise.
45411         * modules/pwrite-tests: Likewise.
45412         * modules/vc-list-files-tests: Likewise.
45413         * modules/verify-tests: Likewise.
45414         * modules/xalloc-die-tests: Likewise.
45415         * modules/xstrtoimax-tests: Likewise.
45416         * modules/xstrtol-tests: Likewise.
45417         * modules/xstrtoll-tests: Likewise.
45418         * modules/xstrtoumax-tests: Likewise.
45419         * modules/yesno-tests: Likewise.
45421 2011-12-22  Jim Meyering  <meyering@redhat.com>
45423         test-framework-sh: add minimal tests of init.sh's compare function
45424         * modules/test-framework-sh-tests: New file.
45425         * tests/test-init.sh: New file.
45427         test-framework-sh: new module
45428         * modules/test-framework-sh: New file.
45429         * MODULES.html.sh (Support for maintaining and releasing projects):
45430         List it.
45432         init.sh: do not emit simulated diff output to stderr
45433         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
45435 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
45437         .gitignore: ignore gnulib.dvi and regex.info
45438         * doc/.gitignore:add gnulib.dvi and regex.info
45440 2011-12-22  Jim Meyering  <meyering@redhat.com>
45442         init.sh: correct previous change
45443         * tests/init.sh (compare): My previous change was wrong.
45444         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
45446         init.sh: avoid unwarranted test failure when using "set -e"
45447         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
45448         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
45449         a use like "compare exp out" would get evoke an unconditional failure.
45451 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
45453         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
45454         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
45455         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
45456         autoreconf that did not.
45457         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
45458         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
45460 2011-12-17  Jim Meyering  <meyering@redhat.com>
45462         bootstrap: remove some now-unneeded code
45463         This script arose back when gnulib-tool was young.
45464         Since then, it has seen improvements that render much of this
45465         script unnecessary.  In particular, it can now make symlinks
45466         to the files it uses.  Also, I no longer see as much value in
45467         marking files as read-only via comments.
45468         If you relied on the symlink-creation feature of the preceding
45469         version of this script, you can get most of that functionality
45470         by adding the --symlink option to the definition of
45471         gnulib_tool_option_extras in your bootstrap.conf file.
45472         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
45473         Run autopoint and libtoolize *before* gnulib-tool.
45474         After it, run an abbreviated autoreconf, rather than a loop around
45475         all tools.
45476         (slirp, bt_mark_as_generated): Remove functions.
45478 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45480         ftoastr: fix typo
45481         * lib/ftoastr.h: Fix misspelling in comment.
45483 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
45485         * top/README-release: fix punctuation.
45487 2011-12-17  Jim Meyering  <meyering@redhat.com>
45489         bootstrap: correct the recent buildreq change
45490         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
45491         had no effect.
45492         * build-aux/bootstrap (buildreq): Bracket each search term with
45493         "*...*", so that the shell "case" statement works as intended.
45494         Add comments.
45496 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
45498         build: let bootstrap resort to wget when downloading .po files
45499         * build-aux/bootstrap (download_po_files): Fallback to wget when
45500         downloading the .po files via rsync fails.  This is necessary to
45501         bootstrap from behind a strict firewall.
45503 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
45505         stdint: don't assume C++11 when compiling with g++
45506         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
45507         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
45508         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
45509         work also in C++ before C++11, as that improperly inhibits
45510         generating a substitute stdint.h for that case.
45512 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
45514         alloca: protect comment from gnulib-tool
45515         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
45516         that gnulib-tool doesn't think it's a license, and munge it to
45517         say "GCC version 3".
45519 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
45521         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
45522         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
45523         $(abs_top_builddir) instead of $(top_builddir).
45525 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
45527         strftime-tests: also test nanoseconds
45528         * tests/test-strftime.c (T): Add a test of %N.
45530 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
45532         inttypes, stdint: add C++11 support
45533         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
45534         when including inttypes.h and stdint.h.  Support this change to
45535         the standard.
45536         * doc/posix-headers/inttypes.texi (inttypes.h):
45537         * doc/posix-headers/stdint.texi (stdint.h): Document this.
45538         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
45539         Define if not defined already, for the benefit of pre-C++11 hosts.
45540         Define the standard format macros (e.g., PRId8) always.
45541         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
45542         Likewise, if __cpluspus.  Define the standard constant and limit
45543         macros (e.g., INT8_C, INT8_MAX) always.
45544         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
45545         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
45546         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
45547         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
45548         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
45549         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
45550         Likewise.
45552 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
45554         nonblocking tests: Fix test failure on Linux/PPC.
45555         Suggested by Prerna Saxena in
45556         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
45557         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
45558         Set to 1100000.
45560 2011-12-12  Jim Meyering  <meyering@redhat.com>
45562         argmatch: don't hard-code `' when listing valid option arguments
45563         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
45564         use the quote function to add quotes.  Use fputs rather than
45565         fprintf for the format string with no format directive.
45567 2011-12-07  Eric Blake  <eblake@redhat.com>
45569         bootstrap: detect tools required by gnulib-tool
45570         * build-aux/bootstrap (buildreq): Provide minimum implicit
45571         dependencies.
45572         * DEPENDENCIES: Mention patch as a prereq.
45574 2011-12-04  Bruno Haible  <bruno@clisp.org>
45576         sethostname: Port to Windows platforms.
45577         * lib/sethostname.c: Provide an alternate implementation for Windows
45578         platforms.
45579         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
45580         (main): Skip the test if sethostname() fails with EPERM. On Windows
45581         platforms, don't check the result of gethostname().
45583 2011-12-04  Bruno Haible  <bruno@clisp.org>
45584             Jim Meyering  <meyering@redhat.com>
45586         tests: Avoid spurious error message on platforms without mktemp program.
45587         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
45589 2011-12-04  Bruno Haible  <bruno@clisp.org>
45591         sethostname: Fix documentation.
45592         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
45593         "not fixed" section.
45595 2011-12-03  Bruno Haible  <bruno@clisp.org>
45597         gnulib-tool: Verify that the License field is present and non-empty.
45598         * gnulib-tool (func_get_license_raw): New function, extracted from
45599         func_get_license.
45600         (func_get_license): Use it. Warn if the module is not a test module and
45601         has no license.
45602         Suggested by Jim Meyering.
45604 2011-12-03  Bruno Haible  <bruno@clisp.org>
45606         sethostname tests: Fix link error on mingw.
45607         * tests/test-sethostname1.c: New file, extracted from
45608         tests/test-sethostname.c.
45609         * tests/test-sethostname2.c: New file, extracted from
45610         tests/test-sethostname.c.
45611         * tests/test-sethostname.c: Remove file.
45612         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
45613         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
45614         (Depends-on): Add gethostname.
45615         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
45616         Link the latter with $(GETHOSTNAME_LIB).
45618         sethostname tests: Fix compilation error on mingw.
45619         * tests/test-sethostname.c: Don't include <sys/types.h>.
45620         (geteuid): Use a dummy value without uid_t.
45621         * modules/sethostname-tests (Depends-on): Remove sys_types.
45623         sethostname tests: Avoid a gcc warning.
45624         * tests/test-sethostname.c (main): Remove an unused variable.
45626         Tweak last commit.
45627         * modules/sethostname-tests (Files): Sort by decreasing importance.
45628         (configure.ac): Check for geteuid.
45629         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
45630         the test when there's nothing to test. Drop an unnecessary cast.
45631         Improve an error message. Verify that the final sethostname() call
45632         succeeds.
45634 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45636         Add a test suite for the sethostname module.
45637         * modules/sethostname-tests: New file.  A test program
45638         for the sethostname module.
45639         * tests/test-sethostname.c: Likewise.
45641 2011-12-03  Bruno Haible  <bruno@clisp.org>
45643         Tweak last commit.
45644         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
45645         Fix preprocessor directives indentation. Fix typos.
45646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
45647         * modules/unistd (Makefile): Likewise.
45649 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45651         Integrate the sethostname module into unistd.
45652         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
45653         into the unistd.h header.
45654         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
45655         preprocessor directives.
45656         * modules/unistd: Setup the Makefile substitutions of the
45657         SETHOSTNAME preprocessor directives.
45659 2011-12-03  Bruno Haible  <bruno@clisp.org>
45661         Tweak last commit.
45662         * lib/sethostname.c: Don't include <string.h>.
45663         (sethostname): No need to copy the argument string to the stack. Don't
45664         call clearerr. Preserve errno when fprintf failed.
45665         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
45666         Don't invoke AC_REPLACE_FUNCS.
45667         * modules/sethostname (Link): Remove empty section.
45668         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
45669         failure problem.
45671 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45673         New module 'sethostname'.
45674         * lib/sethostname.c (sethostname): New file.  Provide sethostname
45675         for systems that lack it.
45676         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
45677         sethostname declaration and function.
45678         * modules/sethostname: New file.  Define the sethostname module.
45680 2011-12-03  Bruno Haible  <bruno@clisp.org>
45682         Tweak last commit.
45683         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
45685 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45687         Split the HOST_NAME_MAX detection into a separate m4 macro.
45688         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
45689         macro so it can be used by the pending sethostname module.
45691 2011-12-03  Bruno Haible  <bruno@clisp.org>
45693         Fix module descriptions syntax.
45694         * modules/argv-iter (License): Fix syntax.
45695         * modules/di-set (License): Likewise.
45696         * modules/ino-map (License): Likewise.
45697         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
45699 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
45701         stdalign: port to Clang 3.0
45702         Problem reported by Simon Josefsson in
45703         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
45704         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
45705         which has <stdalign.h> but which does not define alignof.
45706         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
45708 2011-12-01  Eric Blake  <eblake@redhat.com>
45710         mktempd: silence dd usage
45711         * build-aux/mktempd (rand_bytes): Silence dd.
45713 2011-11-30  Simon Josefsson  <simon@josefsson.org>
45715         manywarnings: Don't mention gcc version in docstring.
45716         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
45717         Jim Meyering <meyering@redhat.com>.
45719 2011-11-30  Jim Meyering  <meyering@redhat.com>
45721         hash: mark a few floating point constants with "f" suffix
45722         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
45723         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
45724         floating point constants with "f", since they're destined to be
45725         saved/used as "float"s.
45727 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
45729         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
45730         * tests/test-float.c (test_long_double): Correct and re-enable the
45731         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
45733 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
45735         Avoid subtracting two pointers that don't point into the same block.
45736         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
45737         only pointers into the same memory block are subtracted. We cannot
45738         assume that sizeof (ptrdiff_t) == sizeof (void *).
45740 2011-11-29  Eric Blake  <eblake@redhat.com>
45742         maint.mk: add syntax check for use of compare from init.sh
45743         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
45744         moved here from coreutils.
45746         manywarnings: drop -Wunsuffixed-float-constants
45747         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
45748         '1.0D', which is the only way to silence this warning for 'double'.
45750 2011-11-29  Jim Meyering  <meyering@redhat.com>
45752         hash: mark compute_bucket_size with the pure attribute
45753         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
45755         quotearg, propername: correct pragma guard expression
45756         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
45757         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
45759 2011-11-28  Jim Meyering  <meyering@redhat.com>
45761         propername: do not mark proper_name with the const attribute
45762         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
45763         since it examines data pointed to by its parameter.
45764         * lib/propername.c (proper_name): Instead, add a pragma to suppress
45765         the suggestion from -Wsuggest-attribute=const.
45767         propername: mark one more function as const
45768         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
45770 2011-11-27  Jim Meyering  <meyering@redhat.com>
45772         mark functions with const and pure attributes
45774         Mark functions per suggestions from gcc-4.6 when using these options:
45775         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
45776         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
45777         Follow these guidelines: when possible, apply the attribute to
45778         an extern declaration, not to its definition.  Apply it to the
45779         definition only when the definition is static.
45780         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
45781         * lib/argv-iter.h (argv_iter_n_args): Likewise.
45782         * lib/base64.h (isbase64): Likewise.
45783         * lib/basename-lgpl.c (last_component, base_len): Likewise.
45784         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
45785         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
45786         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
45787         (c_tolower, c_toupper): Likewise.
45788         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
45789         * lib/chdir-long.c (find_non_slash): Likewise.
45790         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
45791         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
45792         * lib/file-type.h (file_type): Likewise.
45793         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
45794         * lib/filevercmp.c (verrevcmp): Likewise.
45795         * lib/freadahead.h (freadahead): Likewise.
45796         * lib/fts.c (fts_maxarglen): Likewise.
45797         * lib/hash-pjw.h (hash_pjw): Likewise.
45798         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
45799         * lib/hash.c (is_prime, next_prime): Likewise.
45800         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
45801         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
45802         (hash_table_ok, hash_get_first, hash_string): Likewise.
45803         (compute_bucket_size): Likewise.
45804         * lib/i-ring.h (i_ring_empty): Likewise.
45805         * lib/isnan.c (isnanl): Likewise.
45806         * lib/math.h (isnanl, rpl_isnanl): Likewise.
45807         * lib/memcasecmp.h (memcasecmp): Likewise.
45808         * lib/memchr2.h (memchr2): Likewise.
45809         * lib/memcmp2.h (memcmp2): Likewise.
45810         * lib/parse-datetime.y (lookup_zone): Likewise.
45811         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
45812         [!WINDOWS_SOCKETS]: Likewise.
45813         * lib/strnlen1.h (strnlen1): Likewise.
45814         * lib/uniwidth.in.h (uc_width): Likewise.
45815         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
45816         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
45817         (quoting_options_from_style): Add a comment.
45818         * lib/propername.h (proper_name): Add a comment.
45820 2011-11-27  Bruno Haible  <bruno@clisp.org>
45822         Remove unused macros from !_LIBC code in glibc-borrowed files.
45823         * lib/fnmatch.c (STRCOLL): Remove macro.
45824         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
45825         * lib/glob.c (__stat, __readdir64): Remove macros.
45826         * lib/tempname.c (__open64, __xstat64): Remove macros.
45827         Suggested by Paul Eggert.
45829 2011-11-27  Bruno Haible  <bruno@clisp.org>
45831         getcwd: Fix link error on MSVC 9.
45832         * modules/getcwd (Depends-on): Add readdir, rewinddir.
45834 2011-11-27  Bruno Haible  <bruno@clisp.org>
45836         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
45837         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
45838         HAVE_OPENDIR is 0.
45839         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
45840         HAVE_CLOSEDIR is 0.
45841         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
45842         is 0.
45843         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
45845 2011-11-27  Bruno Haible  <bruno@clisp.org>
45847         getcwd: Fix bug from 2011-08-17.
45848         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
45849         platforms that need it.
45850         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
45851         code of 4 to be a failure, not a success. This ensures that
45852         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
45854 2011-11-27  Bruno Haible  <bruno@clisp.org>
45856         binary-io tests: Avoid test failure on mingw when libtool is used.
45857         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
45858         Don't verify the size of t-bin-out1.tmp here.
45859         * tests/test-binary-io.sh: Verify it here.
45860         Reported by Simon Josefsson.
45862 2011-11-26  Bruno Haible  <bruno@clisp.org>
45864         Fix conflict between two instantiations of module 'unistd'.
45865         * gnulib-tool (func_emit_autoconf_snippet): Substitute
45866         ${include_guard_prefix} also in the autoconf snippet.
45867         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
45868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
45869         GNULIB_UNISTD_H_GETOPT.
45870         * modules/getopt-posix (configure.ac): Set the
45871         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
45872         * modules/getopt-gnu (configure.ac): Likewise.
45873         * modules/unistd (Makefile.am): Change the substitution value of
45874         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
45875         Reported by Simon Josefsson.
45877 2011-11-25  Bruno Haible  <bruno@clisp.org>
45879         pagealign_alloc: Doc and comments.
45880         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
45881         module.
45882         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
45884 2011-11-25  Jim Meyering  <meyering@redhat.com>
45886         test-update-copyright.sh: avoid false-positive failure
45887         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
45888         around false positive failure on Cygwin/Windows.  The latter was
45889         matching erroneously-created files with names like
45890         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
45892 2011-11-25  Simon Josefsson  <simon@josefsson.org>
45894         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
45895         * m4/valgrind-tests.m4: Check that the parameters that will be
45896         used works, not just a subset of them.  Reported by Bruno Haible
45897         <bruno@clisp.org>.
45899 2011-11-24  Jim Meyering  <meyering@redhat.com>
45901         test-stdalign.c: comment out long double tests
45902         * tests/test-stdalign.c: Don't try to reduce alignment of long double
45903         variables.  That provokes errors like this from gcc-4.7.0 20111124:
45904         error: '_Alignas' specifiers cannot reduce alignment of \
45905         'static_longdouble_alignas'.
45907 2011-11-22  Jim Meyering  <meyering@redhat.com>
45909         init.sh: make "compare /dev/null FILE" output more readable
45910         * tests/init.sh (compare_): Document the preferred order of arguments.
45911         (emit_diff_u_header_): New function.
45912         (compare_dev_null_): Emit a simulated diff, rather than just the
45913         contents of the unexpected file.  Suggestion from Bruno Haible.
45915 2011-11-21  Jim Meyering  <meyering@redhat.com>
45916             Eric Blake  <eblake@redhat.com>
45918         init.sh: work around OSF/1 5.1's mishandling of /dev/null
45919         * tests/init.sh: Make our compare function slightly more portable.
45920         Reported by Bruno Haible in
45921         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
45923 2011-11-21  Simon Josefsson  <simon@josefsson.org>
45925         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
45926         before using it, in code that ends up in config.h.
45928 2011-11-20  Bruno Haible  <bruno@clisp.org>
45930         getcwd: Work around getcwd bug on AIX 5..7.
45931         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
45932         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
45933         Use a different value for gl_cv_func_getcwd_path_max. Move the
45934         definition of HAVE_PARTLY_WORKING_GETCWD from here...
45935         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
45936         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
45937         Define HAVE_MINIMALLY_WORKING_GETCWD.
45938         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
45939         where it is not even minimally working, that is, on AIX.
45940         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
45941         m4/getcwd-path-max.m4.
45942         (main): Update exit code computation.
45943         * doc/posix-functions/getcwd.texi: Mention list of platforms where
45944         getcwd does not handle long file names.
45946 2011-11-20  Bruno Haible  <bruno@clisp.org>
45948         getcwd: Fix bug from 2009-09-10.
45949         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
45950         like "no".
45952 2011-11-20  Simon Josefsson  <simon@josefsson.org>
45954         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
45956 2011-11-20  Bruno Haible  <bruno@clisp.org>
45958         fma tests: Avoid shadowing local variables.
45959         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
45960         expected.
45962 2011-11-20  Bruno Haible  <bruno@clisp.org>
45964         copysignf tests: Fix.
45965         * tests/test-copysignf.c: Fix signature check.
45967 2011-11-20  Bruno Haible  <bruno@clisp.org>
45969         fma: Remove unused code.
45970         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
45971         unused macros.
45973 2011-11-20  Bruno Haible  <bruno@clisp.org>
45975         sethostname: Fix doc about AIX.
45976         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
45977         sethostname; it has it.
45979         sethostname: Mention more portability problems.
45980         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
45981         problem.
45982         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
45984 2011-11-19  Bruno Haible  <bruno@clisp.org>
45986         Depend on module fcntl-h when AT_FDCWD is used.
45987         * modules/utimens (Depends-on): Add fcntl-h.
45988         * modules/areadlinkat (Depends-on): Likewise.
45989         * modules/areadlinkat-with-size (Depends-on): Likewise.
45990         * modules/faccessat (Depends-on): Likewise.
45991         * modules/fchmodat (Depends-on): Likewise.
45992         * modules/fchownat (Depends-on): Likewise.
45993         * modules/getcwd (Depends-on): Likewise.
45994         * modules/mkdirat (Depends-on): Likewise.
45995         * modules/mkfifoat (Depends-on): Likewise.
45996         * modules/readlinkat (Depends-on): Likewise.
45997         * modules/symlinkat (Depends-on): Likewise.
45998         * modules/dup2-tests (Depends-on): Likewise.
45999         * modules/fdutimensat-tests (Depends-on): Likewise.
46000         * modules/futimens-tests (Depends-on): Likewise.
46002 2011-11-19  Bruno Haible  <bruno@clisp.org>
46004         euidaccess: Update a comment.
46005         * lib/euidaccess.c: Update comment about platforms with faccessat.
46007 2011-11-19  Bruno Haible  <bruno@clisp.org>
46009         openat: Fix file list.
46010         * modules/openat (Files): Remove lib/at-func.c.
46012 2011-11-19  Bruno Haible  <bruno@clisp.org>
46014         fstatat: Simplify.
46015         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
46016         gnulib should define rpl_fstatat, there is a
46017         "#define fstatat rpl_fstatat" in <sys/stat.h>.
46019 2011-11-19  Bruno Haible  <bruno@clisp.org>
46021         Ensure 'inline' can be used in tests/test-utimens-common.h.
46022         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
46023         * modules/futimens-tests (configure.ac): Likewise.
46024         * modules/utimens-tests (configure.ac): Likewise.
46025         * modules/utimensat-tests (configure.ac): Likewise.
46027 2011-11-19  Simon Josefsson  <simon@josefsson.org>
46029         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
46030         not hash_insert0.
46031         (hash_insert_if_absent): Doc fix.
46033 2011-11-19  Simon Josefsson  <simon@josefsson.org>
46035         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
46037 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
46039         test-getcwd: disambiguate exit status
46040         * tests/test-getcwd.c (test_long_name): Return 0..7.
46041         (main): Exit with an unambiguous exit status.  The old
46042         code yielded a mysterious mixture of two failure codes.
46044         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
46045         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
46046         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
46047         rpl_fstatat or fstatat.  This should fix the other problem
46048         reported by Kai Habel in
46049         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
46050         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
46051         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
46052         and I reproduced it on a Solaris 8 host we still have in production.
46054 2011-11-18  Jim Meyering  <meyering@redhat.com>
46056         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
46057         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
46058         Add a sentence to the comment.
46059         (hash_insert0): New function that simply calls hash_insert_if_absent.
46060         * lib/hash.h (hash_insert_if_absent): Declare it.
46061         (hash_insert0): Add deprecation attribute.
46062         (_GL_ATTRIBUTE_DEPRECATED): Define.
46063         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
46064         not hash_insert0.
46065         * NEWS: Mention it, even though it's not really an incompatible change.
46067 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
46069         openat: avoid compilation failure due to lack of <errno.h> inclusion
46070         * lib/openat.c: Include <errno.h>.
46072 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46074         * modules/getcwd (Depends-on): Add fdopendir.
46075         This fixes one of the two problems reported by Kai Habel in
46076         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
46078         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
46079         stdalign problem reported by Ian Beckwith in
46080         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
46081         * modules/crypto/gc-arcfour (Depends-on):
46082         Depend conditionally on crypto/arcfour.
46083         * modules/crypto/gc-arctwo (Depends-on):
46084         Depend conditionally on crypto/arctwo.
46085         * modules/crypto/gc-des (Depends-on):
46086         Depend conditionally on crypto/des.
46087         * modules/crypto/gc-hmac-md5 (Depends-on):
46088         Depend conditionally on crypto/hmac-md5.
46089         * modules/crypto/gc-hmac-sha1 (Depends-on):
46090         Depend conditionally on crypto/hmac-sha1.
46091         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
46092         * modules/crypto/gc-md4 (Depends-on):
46093         Depend conditionally on crypto/md4.
46094         * modules/crypto/gc-md5 (Depends-on):
46095         Depend conditionally on crypto/md5.
46096         * modules/crypto/gc-rijndael (Depends-on):
46097         Depend conditionally on crypto/rijndael.
46098         * modules/crypto/gc-sha1 (Depends-on):
46099         Depend conditionally on crypto/sha1.
46100         * modules/crypto/gc-arcfour:
46101         * modules/crypto/gc-arctwo:
46102         * modules/crypto/gc-des:
46103         * modules/crypto/gc-hmac-md5:
46104         * modules/crypto/gc-hmac-sha1:
46105         * modules/crypto/gc-md2:
46106         * modules/crypto/gc-md4:
46107         * modules/crypto/gc-md5:
46108         * modules/crypto/gc-rijndael:
46109         * modules/crypto/gc-sha1:
46110         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
46111         now that the conditional dependencies do the work for us.
46113 2011-11-17  Jim Meyering  <meyering@redhat.com>
46115         tests: factor st_ctime-comparison out of two headers
46116         * tests/test-utimens-common.h (ctime_compare): Define.
46117         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
46118         * tests/test-lutimens.h (test_lutimens): Likewise.
46119         * tests/test-utimens.h (test_utimens): Likewise.
46121         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
46122         Invoke the test program via an init.sh-using wrapper.
46123         * tests/test-getcwd.sh: New file.
46124         * modules/getcwd-tests (Files): Add it.
46125         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
46127 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
46129         gitlog-to-changelog: support multi-author commits.
46130         The FSF cares about keeping track of all authors of patches to its
46131         projects, but Git doesn't provide obvious support for multi-author
46132         changesets. Consensus seems to be forming around the use of extra
46133         Signed-off-by inspired lines in the log message formatted as
46134         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
46135         multi-author commits between version control systems.
46136         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
46137         log message and output in standard ChangeLog multi-author format.
46138         Reported by Peter Rosin <peda@lysator.liu.se>
46140 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
46141             Bruno Haible  <bruno@clisp.org>
46143         Fix some modules' file list.
46144         * modules/fstatat (Files): Add m4/lstat.m4.
46145         * modules/openat (Files): Likewise.
46146         * modules/unlinkat (Files): Likewise.
46148 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
46150         maint.mk: fix tight-scope.mk generation in VPATH builds.
46151         * top/maint.mk (tight-scope.mk): Make sure to prefix file
46152         reference with $(srcdir) so that the file is found correctly even
46153         when running `make syntax-check' in a VPATH build.
46155 2011-11-13  Bruno Haible  <bruno@clisp.org>
46156             Jim Meyering  <meyering@redhat.com>
46158         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
46159         * tests/init.sh (compare): Remove "No differences encountered" or
46160         synonymous output from the 'diff' program.
46162 2011-11-13  Bruno Haible  <bruno@clisp.org>
46164         Makefile: Tweak indentation.
46165         * Makefile: Use tab as first character in every line that contains rule
46166         commands.
46168 2011-11-13  Bruno Haible  <bruno@clisp.org>
46170         Syntax check for copyright statements.
46171         * check-copyright: New file.
46172         * Makefile (sc_check_copyright): New rule.
46174 2011-11-13  Simon Josefsson  <simon@josefsson.org>
46176         * build-aux/git-version-gen: Add --prefix to configure the tag
46177         match string.
46179 2011-11-13  Simon Josefsson  <simon@josefsson.org>
46181         * build-aux/git-version-gen: Add --help and --version.
46183 2011-11-12  Jim Meyering  <meyering@redhat.com>
46185         revamp the other test-exclude?.sh scripts to use init.sh, too
46186         * tests/test-exclude1.sh: Use init.sh.
46187         * tests/test-exclude2.sh: Likewise.
46188         * tests/test-exclude3.sh: Likewise.
46189         * tests/test-exclude4.sh: Likewise.
46190         * tests/test-exclude5.sh: Likewise.
46191         * tests/test-exclude6.sh: Likewise.
46192         * tests/test-exclude7.sh: Likewise.
46193         * tests/test-exclude8.sh: Likewise.
46194         * modules/exclude-tests (Files): List init.sh.
46196         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
46197         These shell scripts ignored failure of the binary test-exclude,
46198         so making the latter return 77 didn't cause them to be skipped.
46199         * tests/test-exclude5.sh: Exit with test-exclude's error status
46200         when that program fails.  Revamp to use init.sh.
46201         * tests/test-exclude2.sh: Likewise.
46203         test-exclude: fix a typo
46204         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
46206 2011-11-11  Bruno Haible  <bruno@clisp.org>
46208         obstack: Fix compilation error on MSVC 9.
46209         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
46211 2011-11-11  Jim Meyering  <meyering@redhat.com>
46213         test-exclude: skip tests rather than failing on deficient systems
46214         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
46215         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
46216         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
46217         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
46219 2011-11-10  Bruno Haible  <bruno@clisp.org>
46221         ptsname_r test: Avoid gcc warning on glibc systems.
46222         * tests/test-ptsname_r.c (null_ptr): New function.
46223         (test_errors): Use it.
46225 2011-11-10  Bruno Haible  <bruno@clisp.org>
46227         ptsname_r: Avoid compilation error on OSF/1 5.1.
46228         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
46229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
46230         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
46231         function is not declared or incompatibly declared.
46232         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
46233         * modules/ptsname_r (Depends-on, configure.ac): Update.
46234         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
46236 2011-11-10  Bruno Haible  <bruno@clisp.org>
46238         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
46239         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
46240         When cross-compiling, guess yes on all platforms except AIX.
46241         Reported by Ludovic Courtès <ludo@gnu.org>.
46243 2011-11-09  Bruno Haible  <bruno@clisp.org>
46245         ptsname_r tests: Fix bugs.
46246         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
46247         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
46249 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46251         fstatat: work with cross-compilation
46252         Problem reported by Ludovic Courtès in
46253         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
46254         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
46255         "cross-compiling" and assume the bug is present.  Replace
46256         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
46257         an inverted sense, to be more conservative about our assumptions.
46258         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
46260 2011-11-09  Bruno Haible  <bruno@clisp.org>
46262         Improve MODULES.html output.
46263         * modules/mkfifoat (Description): Use the word "function".
46264         * modules/readlinkat (Description): Likewise.
46265         * modules/symlinkat (Description): Likewise.
46267 2011-11-09  Eric Blake  <eblake@redhat.com>
46269         ptsname_r-tests: new test module
46270         * modules/ptsname_r-tests: New module.
46271         * tests/test-ptsname_r.c: New file.
46273         ptsname_r: new module
46274         * modules/ptsname_r: New module.
46275         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
46276         * lib/ptsname.c (__ptsname_r): Split...
46277         * lib/ptsname_r.c: ...into new file.
46278         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
46279         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
46280         * modules/stdlib (Makefile.am): Substitute witnesses.
46281         * lib/stdlib.in.h (ptsname_r): Declare it.
46282         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
46283         * MODULES.html.sh (Misc): Likewise.
46284         * modules/ptsname (Depends-on): Alter dependency.
46285         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
46287 2011-11-09  Jim Meyering  <meyering@redhat.com>
46289         announce-gen: be more concise when there's only one URL+tarball
46290         * build-aux/announce-gen (get_tool_versions): When you distribute
46291         only one type of tarball, combine the first two "Here are..."
46292         sections and make the key-checking grammar independent of
46293         how many tarballs there are.
46295 2011-11-09  Eric Blake  <eblake@redhat.com>
46297         openpty: provide a stub on mingw
46298         * lib/pty.in.h (includes): Provide forward declarations.
46299         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
46301         raise: fix mingw handling of SIGPIPE
46302         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
46304 2011-11-08  Bruno Haible  <bruno@clisp.org>
46306         More conditional dependencies.
46307         * modules/faccessat (Depends-on): Add conditions.
46308         * modules/fchmodat (Depends-on): Likewise.
46309         * modules/fchownat (Depends-on): Likewise.
46310         * modules/fstatat (Depends-on): Likewise.
46311         * modules/mkfifoat (Depends-on): Likewise.
46312         * modules/readlinkat (Depends-on): Likewise.
46313         * modules/symlinkat (Depends-on): Likewise.
46314         * modules/unlinkat (Depends-on): Likewise.
46315         * modules/utimensat (Depends-on): Likewise.
46316         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
46317         * modules/linkat (Depends-on): Refine the conditions.
46318         * modules/renameat (Depends-on): Likewise.
46320 2011-11-08  Bruno Haible  <bruno@clisp.org>
46322         faccessat: Move AC_LIBOBJ invocation to module description.
46323         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
46324         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
46325         invocation from here...
46326         * modules/faccessat (configure.ac): ... to here. Invoke
46327         gl_PREREQ_FACCESSAT.
46329 2011-11-08  Bruno Haible  <bruno@clisp.org>
46331         faccessat: Simplify autoconf macro.
46332         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
46333         gl_FUNC_EUIDACCESS.
46335 2011-11-08  Bruno Haible  <bruno@clisp.org>
46337         renameat: Fix dependencies.
46338         * modules/renameat (Depends-on): Add stdbool.
46340 2011-11-08  Bruno Haible  <bruno@clisp.org>
46342         mkfifoat: Fix module description.
46343         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
46344         not gl_UNISTD_MODULE_INDICATOR.
46346 2011-11-08  Bruno Haible  <bruno@clisp.org>
46348         fstatat: Remove unused dependency.
46349         * modules/fstatat (Depends-on): Remove fstat.
46351 2011-11-08  Simon Josefsson  <simon@josefsson.org>
46353         GNUmakefile: behave when Makefile is missing.
46354         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
46356 2011-11-08  Bruno Haible  <bruno@clisp.org>
46358         openat: Conditionalize dependencies.
46359         * lib/openat.c: Reduce the scope of some #includes.
46360         * modules/openat (Depends-on): Add conditions.
46362 2011-11-07  Jim Meyering  <meyering@redhat.com>
46364         maint.mk: extract GPG key ID without using a temporary file
46365         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
46366         without using a temporary file.  Based on a suggestion from Werner Koch
46367         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
46369 2011-11-07  Eric Blake  <eblake@redhat.com>
46371         grantpt: fix typo
46372         * lib/stdlib.in.h (grantpt): Check correct function.
46374         maint.mk: silence new syntax check
46375         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
46377 2011-11-06  Bruno Haible  <bruno@clisp.org>
46379         Doc about floating-point and math API.
46380         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
46381         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
46383 2011-11-06  Bruno Haible  <bruno@clisp.org>
46385         stdalign tests: Skip the test when compiled by Sun C.
46386         * tests/test-stdalign.c (main): Skip the test on Sun C.
46388 2011-11-06  Bruno Haible  <bruno@clisp.org>
46390         ansi-c++-opt: Complete the 2011-06-05 change.
46391         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
46392         does not support namespaces, set the variable to "no", not to ":".
46394 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46396         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
46398 2011-11-06  Bruno Haible  <bruno@clisp.org>
46400         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
46401         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
46402         (minus_zerol) [HP-UX]: New macro.
46403         (unary_minus) [HP-UX]: New function.
46404         (copysignl) [HP-UX]: Use unary_minus function.
46406 2011-11-06  Bruno Haible  <bruno@clisp.org>
46408         ldexp, ldexpf, ldexpl: Enhance tests.
46409         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
46410         and tests/test-ldexpl.c.
46411         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
46412         LDEXP, MIN_EXP, MAX_EXP): New macros.
46413         Include test-ldexp.h.
46414         (main): Just call test_function.
46415         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
46416         infinity.h, nan.h.
46417         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
46418         MAX_EXP): New macros.
46419         Include test-ldexp.h.
46420         (x, y): Remove variables.
46421         (main): Just call test_function.
46422         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
46423         infinity.h, nan.h.
46424         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
46425         MAX_EXP): New macros.
46426         Include test-ldexp.h.
46427         (x, y): Remove variables.
46428         (main): Just call test_function.
46429         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
46430         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
46431         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
46432         (Depends-on): Add isnand-nolibm, signbit, float.
46433         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
46434         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
46435         (Depends-on): Add isnanf-nolibm, signbit, float.
46437 2011-11-06  Bruno Haible  <bruno@clisp.org>
46439         math tests: Cosmetics.
46440         * tests/test-math-c++.cc: Reorder declarations.
46442 2011-11-05  Bruno Haible  <bruno@clisp.org>
46444         fma*: Simplify test.
46445         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
46446         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
46448         Tests for module 'fmal'.
46449         * modules/fmal-tests: New file.
46450         * tests/test-fmal1.c: New file.
46451         * tests/test-fmal2.c: New file.
46453         New module 'fmal'.
46454         * lib/math.in.h (fmal): New declaration.
46455         * lib/fmal.c: New file.
46456         * m4/fmal.m4: New file.
46457         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
46458         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
46459         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
46460         REPLACE_FMAL.
46461         * modules/fmal: New file.
46462         * doc/posix-functions/fmal.texi: Mention the new module and the various
46463         bugs.
46465         Tests for module 'fmaf'.
46466         * modules/fmaf-tests: New file.
46467         * tests/test-fmaf1.c: New file.
46468         * tests/test-fmaf2.c: New file.
46470         New module 'fmaf'.
46471         * lib/math.in.h (fmaf): New declaration.
46472         * lib/fmaf.c: New file.
46473         * m4/fmaf.m4: New file.
46474         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
46475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
46476         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
46477         REPLACE_FMAF.
46478         * modules/fmaf: New file.
46479         * doc/posix-functions/fmaf.texi: Mention the new module and the various
46480         bugs.
46482         Tests for module 'fma'.
46483         * modules/fma-tests: New file.
46484         * tests/test-fma1.c: New file.
46485         * tests/test-fma1.h: New file.
46486         * tests/test-fma2.c: New file.
46487         * tests/test-fma2.h: New file.
46489         New module 'fma'.
46490         * lib/math.in.h (fma): New declaration.
46491         * lib/fma.c: New file.
46492         * m4/fma.m4: New file.
46493         * m4/fegetround.m4: New file.
46494         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
46495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
46496         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
46497         REPLACE_FMA.
46498         * modules/fma: New file.
46499         * doc/posix-functions/fma.texi: Mention the new module and the various
46500         bugs.
46502         Extend gl_MATHFUNC.
46503         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
46504         Support 'void' as argument type.
46505         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
46507 2011-11-05  Jim Meyering  <meyering@redhat.com>
46509         maint.mk: also prohibit inclusion of dirent.h without use
46510         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
46512 2011-11-05  Bruno Haible  <bruno@clisp.org>
46514         ldexpl tests: Avoid test failure on MSVC 9.
46515         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
46516         value. Needed in order to enforce the conversion from a value greater
46517         than LDBL_MAX to Infinity.
46519 2011-11-05  Bruno Haible  <bruno@clisp.org>
46521         New modules 'at-internal', 'openat-h', split off from module 'openat'.
46522         * modules/at-internal: New file, extracted from modules/openat.
46523         * modules/openat-h: New file.
46524         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
46525         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
46526         * modules/openat (Description): Add reference to POSIX function.
46527         (Files): Remove lib/openat.h, lib/openat-proc.c.
46528         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
46529         intprops, unistd.
46530         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
46531         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
46532         gl_FCNTL_MODULE_INDICATOR.
46533         (Include): Remove unistd.h, openat.h.
46534         * modules/areadlinkat (Files): Add lib/at-func.c.
46535         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46536         openat-die, openat-h, save-cwd.
46537         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
46538         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46539         openat-die, openat-h, save-cwd, unistd.
46540         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
46541         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46542         openat-h, save-cwd. Remove fcntl-h, openat.
46543         * modules/fchmodat (Files): Remove lib/openat.h.
46544         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46545         openat, stdbool, unistd.
46546         * modules/fchownat (Files): Remove lib/openat.h.
46547         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46548         openat, stdbool, sys_stat.
46549         * modules/fdopendir (Files): Remove lib/openat-priv.h,
46550         lib/openat-proc.c.
46551         (Depends-on): Add at-internal.
46552         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
46553         * modules/fstatat (Files): Remove lib/openat.h.
46554         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
46555         stdbool, unistd.
46556         * modules/fts (Depends-on): Add openat-h.
46557         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
46558         openat.
46559         * modules/mkdirat (Files): Remove lib/openat.h.
46560         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
46561         openat, stdbool, sys_stat.
46562         * modules/mkfifoat (Files): Add lib/at-func.c.
46563         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46564         openat-h, save-cwd. Remove fcntl-h, openat.
46565         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
46566         * modules/readlinkat (Files): Add lib/at-func.c.
46567         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46568         openat-h, save-cwd. Remove fcntl-h, openat.
46569         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
46570         openat.
46571         * modules/selinux-at (Files): Add lib/at-func.c.
46572         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
46573         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
46574         * modules/symlinkat (Files): Add lib/at-func.c.
46575         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
46576         openat-h, save-cwd. Remove fcntl-h, openat.
46577         * modules/unlinkat (Files): Remove lib/openat.h.
46578         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
46579         stdbool.
46580         * modules/utimensat (Files): Add lib/at-func.c.
46581         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
46582         openat-die, openat-h, save-cwd.
46583         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
46584         * modules/fdutimensat-tests (Depends-on): Add openat.
46585         * modules/fstatat-tests (Depends-on): Add openat-h.
46586         * modules/readlinkat-tests (Depends-on): Add openat.
46587         * modules/symlinkat-tests (Depends-on): Add openat.
46589 2011-11-05  Bruno Haible  <bruno@clisp.org>
46591         openat: Include <stdbool.h>.
46592         * lib/openat.c: Include <stdbool.h>.
46594 2011-11-04  Bruno Haible  <bruno@clisp.org>
46596         fchownat, renameat, unlinkat: Fix dependencies.
46597         * modules/fchownat (Depends-on): Add fstatat.
46598         * modules/renameat (Depends-on): Likewise.
46599         * modules/unlinkat (Depends-on): Likewise.
46601 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
46603         openat: remove direct dependency on dirent
46604         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
46605         and hasn't been needed ever since fdopendir was split into its own
46606         module on 2009-08-31.
46607         * modules/openat (Depends-on): Remove dirent.
46609 2011-11-04  Bruno Haible  <bruno@clisp.org>
46611         renameat: Optimize code size.
46612         * modules/renameat (configure.ac): Don't compile at-func2.c if
46613         REPLACE_RENAMEAT is 1.
46615 2011-11-04  Bruno Haible  <bruno@clisp.org>
46617         openat tests: Fix file list.
46618         * modules/openat-tests (Files): Add tests/test-open.h.
46620 2011-11-04  Bruno Haible  <bruno@clisp.org>
46622         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
46623         * modules/fchmodat (Depends-on): Add openat-die.
46624         * modules/fchownat (Depends-on): Likewise.
46625         * modules/linkat (Depends-on): Likewise.
46626         * modules/renameat (Depends-on): Likewise.
46627         * modules/openat (Depends-on): Add dirent.
46629 2011-11-04  Jim Meyering  <meyering@redhat.com>
46631         at-func*.c: fix comments
46632         * lib/at-func2.c: Correct/improve first-line comment.
46633         * lib/at-func.c: Correct grammar in first-line comment.
46635 2011-11-04  Bruno Haible  <bruno@clisp.org>
46637         New module 'mkdirat', split off from module 'openat'.
46638         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
46639         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
46640         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
46641         * modules/mkdirat: New file, extracted from modules/openat.
46642         * modules/openat (Files): Remove lib/mkdirat.c.
46643         (Depends-on): Remove mkdir.
46644         (configure.ac): Remove AC_LIBOBJ of mkdirat.
46645         (Include): Remove <sys/stat.h>.
46646         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
46647         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
46648         tests/test-mkdir.h.
46649         (Depends-on): Remove ignore-value.
46650         (Makefile.am): Remove rules for test-mkdirat.
46651         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
46652         of module 'openat'.
46653         * NEWS: Mention the change.
46655 2011-11-04  Bruno Haible  <bruno@clisp.org>
46657         closedir: Avoid warning on mingw.
46658         * lib/closedir.c: Include <unistd.h>.
46660 2011-11-04  Bruno Haible  <bruno@clisp.org>
46662         New module 'fstatat', split off from module 'openat'.
46663         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
46664         defined.
46665         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
46666         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
46667         gl_FUNC_FSTATAT.
46668         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
46669         * modules/fstatat: New file, extracted from modules/openat.
46670         * modules/openat (Files): Remove lib/fstatat.c.
46671         (Depends-on): Remove lstat.
46672         (configure.ac): Remove AC_LIBOBJ of fstatat.
46673         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
46674         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
46675         tests/test-lstat.h, tests/test-stat.h.
46676         (Depends-on): Remove getcwd-lgpl.
46677         (Makefile.am): Remove rules for test-fstatat.
46678         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
46679         of module 'openat'.
46680         * NEWS: Mention the change.
46681         * modules/getcwd (Depends-on): Add fstatat.
46682         * modules/linkat (Depends-on): Likewise.
46683         * modules/mkfifoat-tests (Depends-on): Likewise.
46684         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
46686 2011-11-03  Bruno Haible  <bruno@clisp.org>
46688         New module 'unlinkat', split off from module 'openat'.
46689         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
46690         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
46691         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
46692         * modules/unlinkat: New file, extracted from modules/openat. Correct
46693         the dependency conditions.
46694         * modules/openat (Files): Remove lib/unlinkat.c.
46695         (Depends-on): Remove rmdir, unlink.
46696         (configure.ac): Remove AC_LIBOBJ of unlinkat.
46697         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
46698         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
46699         tests/test-rmdir.h, tests/test-unlink.h.
46700         (Depends-on): Remove unlinkdir.
46701         (Makefile.am): Remove rules for test-unlinkat.
46702         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
46703         of module 'openat'.
46704         * NEWS: Mention the change.
46705         * modules/linkat-tests (Depends-on): Add unlinkat.
46706         * modules/mkfifoat-tests (Depends-on): Likewise.
46707         * modules/readlinkat-tests (Depends-on): Likewise.
46709 2011-11-02  Bruno Haible  <bruno@clisp.org>
46711         New module 'fchmodat', split off from module 'openat'.
46712         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
46713         defined.
46714         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
46715         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
46716         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
46717         * modules/fchmodat: New file, extracted from modules/openat.
46718         * modules/openat (Files): Remove lib/fchmodat.c.
46719         (configure.ac): Remove AC_LIBOBJ of fchmodat.
46720         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
46721         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
46722         (Makefile.am): Remove rules for test-fchmodat.
46723         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
46724         of module 'openat'.
46725         * NEWS: Mention the change.
46727 2011-11-02  Jim Meyering  <meyering@redhat.com>
46729         putenv: indent #definition of "environ" to placate cppi
46730         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
46732         gitlog-to-changelog: provide a ChangeLog-repair mechanism
46733         Git logs are often treated as immutable, because editing them
46734         changes the SHA1 checksums of all descendants.  Thus, errors in
46735         git logs tend to stay there forever.  However, when we generate
46736         a ChangeLog file -- typically for distribution -- from that git log,
46737         we can actually make corrections in the generated file.  The key
46738         lies in recording in machine-readable/applicable form the desired
46739         corrections.  See --help for description and an example.
46740         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
46741         (usage): Describe it; alphabetize option descriptions.
46742         (main): Honor the new option, carefully.
46744 2011-11-01  Jim Meyering  <meyering@redhat.com>
46746         gitlog-to-changelog: avoid an infloop
46747         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
46748         that ends up being empty.
46750 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46752         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
46753         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
46754         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
46755         contains (possibly-quoted) backslashes.  This should avoid
46756         all-too-common shell bugs if COMPLICATED contains backslashes in
46757         the "wrong" places.  Reported by David Evans in
46758         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
46759         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
46760         because we want ASCII ranges.  Is there some reason we don't use
46761         the C locale everywhere in this script?
46762         (func_module, top level): Avoid unwanted pathname expansion when
46763         $repo_url_prefix or $repo_url_suffix_repl contain shell
46764         metacharacters like '?' and '*'.
46766 2011-11-01  Bruno Haible  <bruno@clisp.org>
46768         fchownat: Improve description.
46769         * modules/fchownat (Description): Add link to function.
46771 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46773         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
46774         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
46775         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
46776         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
46778 2011-11-01  Bruno Haible  <bruno@clisp.org>
46780         alignof: Avoid collision with stdalign module.
46781         * lib/alignof.h (alignof): Remove macro.
46782         * NEWS: Mention the change.
46783         Reported by Paul Eggert.
46785 2011-11-01  Bruno Haible  <bruno@clisp.org>
46787         New module 'fchownat', split off from module 'openat'.
46788         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
46789         defined.
46790         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
46791         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
46792         invoke gl_FUNC_FCHOWNAT.
46793         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
46794         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
46795         * modules/fchownat: New file, extracted from modules/openat.
46796         * modules/openat (Files): Remove lib/fchownat.c.
46797         (Depends-on): Remove lchown.
46798         (configure.ac): Remove AC_LIBOBJ of fchownat.
46799         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
46800         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
46801         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
46802         (Depends-on): Remove mgetgroups, usleep, stat-time.
46803         (configure.ac): Remove test for getegid.
46804         (Makefile.am): Remove rules for test-fchownat.
46805         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
46806         of module 'openat'.
46807         * NEWS: Mention the change.
46809 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46811         stdalign: port better to MSVC and to Sun C 5.11
46812         This fixes some of the problems reported by Bruno Haible in
46813         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
46814         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
46815         shortcomings of MSVC and of Sun C 5.11.
46816         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
46817         around __declspec arg.
46818         * modules/stdalign-tests (Files): Add tests/macros.h.
46819         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
46820         Include macros.h, for ASSERT.
46821         (DECLARE_ALIGNED): Remove.
46822         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
46823         to catch bug), and to 1 if not (simplifies the rest of the code).
46824         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
46825         (CHECK_AUTO): Remove.
46826         (CHECK_ALIGNED): Check only the alignment of the static vars,
46827         since auto var alignment isn't supported by Sun C 5.11.
46828         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
46829         ASSERT failures are easier to diagnose.
46831 2011-10-31  Bruno Haible  <bruno@clisp.org>
46833         doc about some IRIX 5.3 problems.
46834         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
46835         on IRIX 5.3.
46836         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
46837         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
46838         5.3.
46839         * doc/posix-functions/grantpt.texi: Likewise.
46840         * doc/posix-functions/unlockpt.texi: Likewise.
46841         * doc/posix-functions/lgamma.texi: Likewise.
46842         * doc/posix-functions/nextafter.texi: Likewise.
46843         * doc/posix-functions/remainder.texi: Likewise.
46844         * doc/posix-functions/select.texi: Mention misplaced declaration on
46845         IRIX 5.3.
46846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46848 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
46850         gitlog-to-changelog: fix git-log invocation.
46851         git-log mishandles date strings before 1970-01-01 UTC, and there is
46852         no use to specify --since=1970-01-01 by default anyway.
46853         * build-aux/gitlog-to-changelog: By default, when no --since option
46854         was given, do not specify explicit --since option to git-log.
46856 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
46858         gitlog-to-changelog: new option --append-dot.
46859         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
46860         first non-blank line of each commit message terminated with a dot.
46862 2011-10-30  Bruno Haible  <bruno@clisp.org>
46864         ffsl, ffsll: Avoid compilation error due to 'restrict'.
46865         * lib/ffsl.h: Include <config.h>.
46866         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
46868 2011-10-30  Jim Meyering  <meyering@redhat.com>
46870         GNUmakefile: reenable "make syntax-check" for most projects
46871         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
46872         build-aux variable", "syntax-check" would do nothing but succeed with
46873         the "No version control files detected..." diagnostic (unless you
46874         happened to override _build-aux via cfg.mk).
46875         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
46876         to precede inclusion of maint.mk.  Otherwise, these variables would
46877         be used undefined in any project that does not override the default.
46879 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
46881         gitlog-to-changelog: treat a message with only blank lines as empty.
46882         * build-aux/gitlog-to-changelog: Move the code that removes leading and
46883         trailing blank lines before the code that issues a warning about an
46884         empty commit message.
46886 2011-10-30  Jim Meyering  <meyering@redhat.com>
46888         test-parse-datetime.c: avoid new DST-related false positive test failure
46889         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
46890         based on the time/date we'll convert, not the current time.
46891         Otherwise, the moment we cross a DST boundary like today's in
46892         Europe, (CEST to CET), that offset ends up being one hour off.
46894 2011-10-27  Bruno Haible  <bruno@clisp.org>
46896         fstat: Tweak documentation.
46897         * modules/fstat (Description): More precise description.
46899 2011-10-27  Bruno Haible  <bruno@clisp.org>
46901         Update documentation regarding 'largefile' module.
46902         * doc/posix-functions/fstat.texi: Tweak wording.
46903         * doc/posix-functions/opendir.texi: Mention that the module fixes the
46904         problems with huge directories and/or small ino_t types.
46905         * doc/posix-functions/readdir.texi: Likewise.
46906         * doc/posix-functions/rewinddir.texi: Likewise.
46908 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
46910         maint.mk: don't maintain a second build-aux variable.
46911         * maint.mk (build_aux): Removed.  The maintainer-makefile module
46912         depends on GNUmakefile, which already maintains a cfg.mk
46913         overridable $(_build-aux) for projects with a non-standard
46914         build-aux directory location, although without the $(srcdir)
46915         prefix.  Use that variable consistently instead of introducing a
46916         second one.  Adjust all call sites.
46918 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46920         Add stdalign module and use it in other modules.
46921         This is based on a previous proposal by Bruno Haible
46922         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
46924         stdalign: new module
46925         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
46926         * modules/stdalign: New files.
46927         * MODULES.html.sh (c1x_core_properties): Add stdalign.
46928         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
46930         stdalign-tests: new module
46931         * modules/stdalign-tests, tests/test-stdalign.c: New files.
46933         argp: use stdalign
46934         * lib/argp-parse.c: Include <stdalign.h>.
46935         (alignof): Remove.
46936         * modules/argp (Depends-on): Add stdalign.
46938         crypto libraries: use stdalign
46939         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
46940         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
46941         Do not include <stdlib.h> twice, in md4.c.
46942         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
46943         because we are accessing a pointer's bit-pattern, not a size.
46944         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
46945         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
46946         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
46947         * modules/crypto/sha512: Likewise.
46949         sys_socket: use stdalign, not alignof
46950         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
46951         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
46953 2011-10-27  Bruno Haible  <bruno@clisp.org>
46955         raise test: Avoid a test failure on Linux/MIPS.
46956         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
46957         because 99 is a valid signal on Linux/MIPS.
46959 2011-10-27  Bruno Haible  <bruno@clisp.org>
46961         nonblocking tests: Fix test failure on Linux/MIPS.
46962         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
46963         Set to 270000.
46965 2011-10-27  Bruno Haible  <bruno@clisp.org>
46967         utimensat: Work around problem on Linux/hppa.
46968         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
46969         values.
46970         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
46972 2011-10-25  Jim Meyering  <meyering@redhat.com>
46974         maint.mk: fix a bug in sc_prohibit_stddef_without_use
46975         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
46976         after symbols like NULL, size_t, etc.
46977         Reported by Alfred M. Szmidt.
46979         maint.mk: exempt ENODATA from a syntax-check rule
46980         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
46981         from the sc_prohibit_always-defined_macros syntax-check rule.
46982         Add a comment.  See this for more details:
46983         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
46985 2011-10-23  Jim Meyering  <meyering@redhat.com>
46987         fts: close parent dir FD before returning from post-traversal fts_read
46988         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
46989         unlink A, even though an FD open on A remained.  This is suboptimal
46990         (holding a file descriptor open longer than needed), but otherwise not
46991         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
46992         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
46993         that represents a real problem: it causes the removal of A to fail
46994         with e.g., "rm: cannot remove `A': Device or resource busy"
46996         fts visits each directory twice and keeps a cache (fts_fd_ring) of
46997         directory file descriptors.  After completing the final, FTS_DP,
46998         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
46999         cache, but then proceeded to add a new FD to it via the subsequent
47000         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
47001         final file descriptor would be closed only via fts_close's call to
47002         fd_ring_clear.  Now, it is usually closed earlier, via the final
47003         FTS_DP-returning fts_read call.
47004         * lib/fts.c (restore_initial_cwd): New function, converted from
47005         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
47006         Update callers.
47007         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
47008         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
47010 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
47011             Bruno Haible  <bruno@clisp.org>
47012             Jim Meyering  <jim@meyering.net>
47014         readme-release: improve safety of release prep instructions.
47015         * README-release: Don't git pull all branches when only master
47016         is needed for the release process.
47017         Run make maintainer-clean before changing trees and merging.
47018         Don't try to run ./configure right after git pull in case files
47019         that influence the bootstrap process have changed, move the
47020         ./configure step to after running ./bootstrap.
47021         Don't bootstrap "one last time"... it's the first time!
47023 2011-10-22  Bruno Haible  <bruno@clisp.org>
47025         errno, strerror-override: Support for MSVC 10.
47026         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
47027         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
47028         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
47029         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
47030         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
47031         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
47032         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
47033         Assign values compatible with MSVC 10.
47034         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
47035         New macros.
47036         (GNULIB_defined_EWINSOCK): New macro.
47037         * lib/strerror-override.c (strerror_override): Update accordingly.
47038         * lib/strerror-override.h: Likewise.
47039         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
47040         longer equal to the corresponding errno value.
47041         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
47043 2011-10-22  Bruno Haible  <bruno@clisp.org>
47045         perror: Recognize when test program crashes.
47046         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
47047         strerror, set gl_cv_func_perror_works to no.
47048         Reported by Daniel Richard G. <skunk@iskunk.org>.
47050         perror: Fix indentation.
47051         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
47053 2011-10-22  Bruno Haible  <bruno@clisp.org>
47055         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
47056         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
47057         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
47058         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
47059         functions, not as a macro.
47060         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
47061         macros.
47062         (isfinite, isinf, isnan, signbit): Check overloaded functions and
47063         absence of macro.
47064         Suggested by Eric Blake.
47065         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
47067 2011-10-21  Bruno Haible  <bruno@clisp.org>
47069         relocatable-prog-wrapper: Don't leave object files behind.
47070         * build-aux/install-reloc: Re-synchronize list of .o files to be
47071         removed with list of compilation units.
47073 2011-10-20  Bruno Haible  <bruno@clisp.org>
47075         openpty, posix_openpt: Remove code duplication.
47076         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
47077         * lib/openpty.c: Include <stdlib.h>.
47078         (openpty): Use posix_openpt on all platforms except IRIX.
47079         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
47081 2011-10-20  Bruno Haible  <bruno@clisp.org>
47083         unlockpt: Detect invalid argument.
47084         * lib/unlockpt.c: Include <fcntl.h>.
47085         (unlockpt): Check whether fd is valid, using fcntl().
47086         * modules/unlockpt (Depends-on): Add fcntl-h.
47088 2011-10-20  Bruno Haible  <bruno@clisp.org>
47090         openpty: Avoid compilation error on AIX 6.1.
47091         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
47093 2011-10-20  Bruno Haible  <bruno@clisp.org>
47095         posix_openpt: Support for OpenBSD.
47096         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
47097         (posix_openpt) [OpenBSD]: New code.
47098         * lib/grantpt.c: Include <fcntl.h>.
47099         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
47100         * modules/grantpt (Depends-on): Add fcntl-h.
47102 2011-10-20  Bruno Haible  <bruno@clisp.org>
47104         posix_openpt test: Coding style.
47105         * tests/test-posix_openpt.c: Use GNU coding style.
47107 2011-10-20  Bruno Haible  <bruno@clisp.org>
47109         grantpt: Support --avoid=pt_chown.
47110         * modules/grantpt (Files): Add lib/pty-private.h.
47112 2011-10-20  Bruno Haible  <bruno@clisp.org>
47114         posix_openpt: Fix autoconf macro.
47115         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
47116         unneeded check for _getpty.
47118 2011-10-20  Bruno Haible  <bruno@clisp.org>
47120         openpty: Update comments.
47121         * lib/openpty.c: Add comments about Minix.
47123 2011-10-19  Eric Blake  <eblake@redhat.com>
47125         openpty: relax license
47126         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
47128         pt_chown: use configmake to simplify build
47129         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
47131         ptsname and others: relax license
47132         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
47133         * modules/unlockpt (License): Likewise.
47134         * modules/pt_chown (License): Likewise.
47135         * modules/ptsname (License): Likewise.
47136         * modules/ttyname_r (License): Likewise.
47138 2011-10-19  Jim Meyering  <meyering@redhat.com>
47140         posix_openpt: remove spurious #endif
47141         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
47143 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
47145         maint.mk: Respect $(build_aux) in web-manual rule.
47146         * top/maint.mk (web-manual): Find gen-announce script in user's
47147         $(build_aux) directory instead of hard-coding 'build-aux'.
47149 2011-10-19  Bruno Haible  <bruno@clisp.org>
47151         posix_openpt: Fix compilation error.
47152         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
47153         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
47154         Mention the openpty module as an alternative.
47156 2011-10-19  Bruno Haible  <bruno@clisp.org>
47158         Support for old NeXTstep 3.3 frexp().
47159         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
47160         execution time of the test to 5 seconds.
47161         Reported by Daniel Richard G. <skunk@iskunk.org>.
47163 2011-10-19  Bruno Haible  <bruno@clisp.org>
47165         Support for old NeXTstep 3.3 sed.
47166         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
47167         part, use /.../, not \|...|. Escape periods in the header file name.
47168         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
47169         Reported by Daniel Richard G. <skunk@iskunk.org>.
47171 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
47173         Support for old NeXTstep 3.3 gcc.
47174         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
47175         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
47176         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
47177         * lib/spawn.in.h (_Restrict_arr_): Likewise.
47178         * lib/regex.h (_Restrict_arr_): Likewise.
47179         * lib/regex_internal.h (re_token_t): Likewise.
47180         * lib/regexec.c (check_node_accept_bytes): Likewise.
47181         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
47183 2011-10-18  Eric Blake  <eblake@redhat.com>
47185         posix_openpt: new module
47186         * modules/posix_openpt: New module.
47187         * m4/posix_openpt.m4: New file.
47188         * lib/posix_openpt.c: Likewise.
47189         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
47190         (gl_STDLIB_H_DEFAULTS): Set defaults.
47191         * modules/stdlib (Makefile.am): Substitute macros.
47192         * lib/stdlib.in.h (posix_openpt): Declare.
47193         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
47194         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
47195         * modules/posix_openpt-tests: New test module.
47196         * tests/test-posix_openpt.c: New test.
47198 2011-10-15  Bruno Haible  <bruno@clisp.org>
47200         xstrtoll: Fix compilation failure.
47201         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
47202         from lib/strtol.c.
47203         * doc/posix-headers/limits.texi: Mention missing numerical limits on
47204         some platforms.
47205         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47207 2011-10-15  Bruno Haible  <bruno@clisp.org>
47209         vasnprintf: Optimize bit search operation.
47210         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
47211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
47212         gl_DOUBLE_EXPONENT_LOCATION.
47213         * modules/vasnprintf (Files): Add m4/exponentd.m4.
47214         * modules/unistdio/u8-vasnprintf (Files): Likewise.
47215         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
47216         * modules/unistdio/u16-vasnprintf (Files): Likewise.
47217         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
47218         * modules/unistdio/u32-vasnprintf (Files): Likewise.
47219         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
47220         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
47221         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
47223 2011-10-15  Bruno Haible  <bruno@clisp.org>
47225         vasnprintf: Fix comments.
47226         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
47228 2011-10-14  Bruno Haible  <bruno@clisp.org>
47230         Tests for module 'integer_length_ll'.
47231         * modules/integer_length_ll-tests: New file.
47232         * tests/test-integer_length_ll.c: New file.
47234         New module 'integer_length_ll'.
47235         * lib/integer_length_ll.c: New file.
47236         * modules/integer_length_ll: New file.
47238 2011-10-14  Bruno Haible  <bruno@clisp.org>
47240         Tests for module 'integer_length_l'.
47241         * modules/integer_length_l-tests: New file.
47242         * tests/test-integer_length_l.c: New file.
47244         New module 'integer_length_l'.
47245         * lib/integer_length_l.c: New file.
47246         * modules/integer_length_l: New file.
47248 2011-10-14  Bruno Haible  <bruno@clisp.org>
47250         Tests for module 'integer_length'.
47251         * modules/integer_length-tests: New file.
47252         * tests/test-integer_length.c: New file.
47254         New module 'integer_length'.
47255         * lib/integer_length.h: New file.
47256         * lib/integer_length.c: New file.
47257         * modules/integer_length: New file.
47259 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
47261         popen: Fix dependency conditions.
47262         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
47264 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
47266         perror: Fix autoconf test.
47267         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
47268         <stdlib.h> and <string.h>.
47270 2011-10-14  Bruno Haible  <bruno@clisp.org>
47272         ffsl: Optimize on 64-bit platforms.
47273         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
47274         unrolling.
47276 2011-10-13  Bruno Haible  <bruno@clisp.org>
47278         ffsl: Optimize on 32-bit platforms.
47279         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
47280         use ffs() without a loop.
47282         ffsl, ffsll: Optimize for GCC.
47283         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
47284         * lib/ffsl.c (GCC_BUILTIN): New macro.
47285         * lib/ffsll.c (GCC_BUILTIN): Likewise.
47287 2011-10-13  Bruno Haible  <bruno@clisp.org>
47289         ffs, bcopy, memset: Support symbol renaming via config.h.
47290         * lib/ffs.c: Include <config.h>.
47291         * lib/bcopy.c: Likewise.
47292         * lib/memset.c: Likewise.
47294 2011-10-10  Bruno Haible  <bruno@clisp.org>
47296         atanl: Simplify for platforms where 'long double' == 'double'.
47297         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47298         alternative implementation.
47299         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47300         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47301         * modules/atanl (Depends-on): Add atan. Update conditions.
47303 2011-10-10  Bruno Haible  <bruno@clisp.org>
47305         acosl: Simplify for platforms where 'long double' == 'double'.
47306         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47307         alternative implementation.
47308         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47309         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47310         * modules/acosl (Depends-on): Add acos. Update conditions.
47312 2011-10-10  Bruno Haible  <bruno@clisp.org>
47314         asinl: Simplify for platforms where 'long double' == 'double'.
47315         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47316         alternative implementation.
47317         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47318         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47319         * modules/asinl (Depends-on): Add asin. Update conditions.
47321 2011-10-10  Bruno Haible  <bruno@clisp.org>
47323         tanl: Simplify for platforms where 'long double' == 'double'.
47324         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47325         implementation.
47326         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47327         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47328         * modules/tanl (Depends-on): Add tan. Update conditions.
47329         (configure.ac): Don't compile trigl.c if
47330         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47332 2011-10-10  Bruno Haible  <bruno@clisp.org>
47334         cosl: Simplify for platforms where 'long double' == 'double'.
47335         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47336         implementation.
47337         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47338         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47339         * modules/cosl (Depends-on): Add cos. Update conditions.
47340         (configure.ac): Don't compile sincosl.c and trigl.c if
47341         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47343 2011-10-10  Bruno Haible  <bruno@clisp.org>
47345         sinl: Simplify for platforms where 'long double' == 'double'.
47346         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47347         implementation.
47348         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47349         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47350         * modules/sinl (Depends-on): Add sin. Update conditions.
47351         (configure.ac): Don't compile sincosl.c and trigl.c if
47352         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47354 2011-10-10  Bruno Haible  <bruno@clisp.org>
47356         logl: Simplify for platforms where 'long double' == 'double'.
47357         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47358         implementation.
47359         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47360         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47361         * modules/logl (Depends-on): Add log. Update conditions.
47363 2011-10-10  Bruno Haible  <bruno@clisp.org>
47365         expl: Simplify for platforms where 'long double' == 'double'.
47366         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
47367         implementation.
47368         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47369         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47370         * modules/expl (Depends-on): Add exp. Update conditions.
47372 2011-10-10  Bruno Haible  <bruno@clisp.org>
47374         sqrtl: Simplify for platforms where 'long double' == 'double'.
47375         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47376         alternative implementation.
47377         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47378         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47379         * modules/sqrtl (Depends-on): Update conditions.
47381 2011-10-10  Bruno Haible  <bruno@clisp.org>
47383         ldexpl: Simplify for platforms where 'long double' == 'double'.
47384         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47385         alternative implementation.
47386         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47387         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47388         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
47390 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
47392         ffsll: set correct witness
47393         * modules/ffsll (configure.ac): Fix typo.
47395 2011-10-10  Bruno Haible  <bruno@clisp.org>
47397         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
47398         * lib/printf-frexpl.c: Include <config.h>.
47399         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47400         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
47401         second time.
47402         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
47403         gl_LONG_DOUBLE_VS_DOUBLE.
47404         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
47405         conditions.
47407 2011-10-10  Bruno Haible  <bruno@clisp.org>
47409         frexpl: Simplify for platforms where 'long double' == 'double'.
47410         * lib/frexpl.c: Include <config.h>.
47411         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47412         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47413         time.
47414         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47415         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47416         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
47417         * modules/frexpl (Depends-on): Add frexp. Update conditions.
47418         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
47419         conditions.
47421 2011-10-10  Jim Meyering  <meyering@redhat.com>
47423         test-renameat: don't leave behind a temporary file
47424         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
47425           ERROR: files left in build directory after distclean:
47426           ./gltests/test-renameat.too
47427           make[1]: *** [distcleancheck] Error 1
47428         Reported by Tom G. Christensen.
47430 2011-10-09  Bruno Haible  <bruno@clisp.org>
47432         rint: Determine RINT_LIBM correctly on AIX 7.
47433         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
47434         directly, not only through a function pointer. Also accept an optional
47435         4th argument with extra code.
47436         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
47437         rintf() call by gcc when optimizing.
47439         mathfunc.m4: Refactor.
47440         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
47441         m4 variable.
47443 2011-10-09  Bruno Haible  <bruno@clisp.org>
47445         rintl: Simplify for platforms where 'long double' == 'double'.
47446         * lib/rintl.c: Include <config.h>.
47447         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47448         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47449         time.
47450         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47451         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47452         * modules/rintl (Depends-on): Add rint. Update conditions.
47454 2011-10-09  Bruno Haible  <bruno@clisp.org>
47456         roundl: Simplify for platforms where 'long double' == 'double'.
47457         * lib/roundl.c: Include <config.h>.
47458         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47459         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47460         time.
47461         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47462         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47463         * modules/roundl (Depends-on): Add round. Update conditions.
47465 2011-10-09  Bruno Haible  <bruno@clisp.org>
47467         truncl: Simplify for platforms where 'long double' == 'double'.
47468         * lib/truncl.c: Include <config.h>.
47469         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47470         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47471         time.
47472         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47473         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47474         * modules/truncl (Depends-on): Add trunc. Update conditions.
47476 2011-10-09  Bruno Haible  <bruno@clisp.org>
47478         ceill: Simplify for platforms where 'long double' == 'double'.
47479         * lib/ceill.c: Include <config.h>.
47480         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47481         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47482         time.
47483         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47484         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47485         * modules/ceill (Depends-on): Add ceil. Update conditions.
47487 2011-10-09  Bruno Haible  <bruno@clisp.org>
47489         floorl: Simplify for platforms where 'long double' == 'double'.
47490         * lib/floorl.c: Include <config.h>.
47491         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
47492         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
47493         time.
47494         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47495         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47496         * modules/floorl (Depends-on): Add floor. Update conditions.
47498 2011-10-09  Bruno Haible  <bruno@clisp.org>
47500         rint: Fix ordering constraints.
47501         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
47502         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
47503         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
47505 2011-10-09  Bruno Haible  <bruno@clisp.org>
47507         copysignl: Simplify for platforms where 'long double' == 'double'.
47508         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
47509         alternative.
47510         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47511         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
47512         * modules/copysignl (Depends-on): Add copysign. Update conditions.
47514 2011-10-09  Bruno Haible  <bruno@clisp.org>
47516         Tests for module 'rintl'.
47517         * modules/rintl-tests: New file.
47518         * tests/test-rintl.c: New file.
47520         New module 'rintl'.
47521         * lib/math.in.h (rintl): New declaration.
47522         * lib/rintl.c: New file.
47523         * m4/rintl.m4: New file.
47524         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
47525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
47526         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
47527         * modules/rintl: New file.
47528         * tests/test-math-c++.cc: Check the declaration of rintl.
47529         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47530         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
47531         * doc/posix-functions/rintl.texi: Mention the new module.
47533 2011-10-09  Bruno Haible  <bruno@clisp.org>
47535         Tests for module 'rintf'.
47536         * modules/rintf-tests: New file.
47537         * tests/test-rintf.c: New file.
47539         New module 'rintf'.
47540         * lib/math.in.h (rintf): New declaration.
47541         * lib/rintf.c: New file.
47542         * m4/rintf.m4: New file.
47543         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
47544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
47545         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
47546         * modules/rintf: New file.
47547         * tests/test-math-c++.cc: Check the declaration of rintf.
47548         * doc/posix-functions/rintf.texi: Mention the new module.
47550 2011-10-09  Bruno Haible  <bruno@clisp.org>
47552         rint: Support for MSVC.
47553         * lib/math.in.h (rint): New declaration.
47554         * lib/rint.c: New file.
47555         * m4/rint.m4: New file.
47556         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
47557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
47558         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
47559         * modules/rint (Description): Fix.
47560         (Files): Add lib/rint.c, m4/rint.m4.
47561         (Depends-on): Add math.
47562         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
47563         gl_MATH_MODULE_INDICATOR.
47564         * tests/test-math-c++.cc: Check the declaration of rint.
47565         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47566         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
47567         * doc/posix-functions/rint.texi: Mention the replacement provided by
47568         the module.
47570         rint tests: More tests.
47571         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
47572         minus-zero.h, infinity.h, nan.h.
47573         (main): Skip the test if the current rounding mode is not standard. Add
47574         tests for negative numbers, minus zero, infinity, NaN.
47575         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
47576         tests/nan.h.
47577         (Depends-on): Add isnand-nolibm.
47579 2011-10-09  Bruno Haible  <bruno@clisp.org>
47581         Tests for module 'copysignl'.
47582         * modules/copysignl-tests: New file.
47583         * tests/test-copysignl.c: New file.
47585         New module 'copysignl'.
47586         * lib/math.in.h (copysignl): New declaration.
47587         * lib/copysignl.c: New file.
47588         * m4/copysignl.m4: New file.
47589         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
47590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
47591         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
47592         HAVE_COPYSIGNL.
47593         * modules/copysignl: New file.
47594         * tests/test-math-c++.cc: Check the declaration of copysignl.
47595         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
47596         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
47597         * doc/posix-functions/copysignl.texi: Mention the new module.
47599 2011-10-09  Bruno Haible  <bruno@clisp.org>
47601         Tests for module 'copysignf'.
47602         * modules/copysignf-tests: New file.
47603         * tests/test-copysignf.c: New file.
47605         New module 'copysignf'.
47606         * lib/math.in.h (copysignf): New declaration.
47607         * lib/copysignf.c: New file.
47608         * m4/copysignf.m4: New file.
47609         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
47610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
47611         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
47612         HAVE_COPYSIGNF.
47613         * modules/copysignf: New file.
47614         * tests/test-math-c++.cc: Check the declaration of copysignf.
47615         * doc/posix-functions/copysignf.texi: Mention the new module.
47617 2011-10-09  Bruno Haible  <bruno@clisp.org>
47619         Ensure that HAVE_* variables are set to 1 before they are set to 0.
47620         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
47621         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
47622         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47623         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
47624         gl_SIGNAL_H_DEFAULTS.
47626 2011-10-09  Bruno Haible  <bruno@clisp.org>
47628         poll: Make macro safer.
47629         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
47630         ac_cv_header_poll_h is not set.
47632 2011-10-09  Bruno Haible  <bruno@clisp.org>
47634         copysign: Provide replacement.
47635         * lib/math.in.h (copysign): New declaration.
47636         * lib/copysign.c: New file.
47637         * m4/copysign.m4: New file.
47638         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
47639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
47640         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
47641         HAVE_COPYSIGN.
47642         * modules/copysign (Description): Clarify.
47643         (Files): Add lib/copysign.c, m4/copysign.m4.
47644         (Depends-on): Add math, signbit.
47645         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
47646         gl_MATH_MODULE_INDICATOR.
47647         * tests/test-math-c++.cc: Check the declaration of copysign.
47648         * doc/posix-functions/copysign.texi: Mention the effects of the module
47649         on Minix and MSVC.
47651 2011-10-09  Bruno Haible  <bruno@clisp.org>
47653         isinf: Ensure macro on AIX 5.1.
47654         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
47655         macro.
47656         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
47658 2011-10-09  Bruno Haible  <bruno@clisp.org>
47660         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
47661         * modules/snprintf-posix-tests (configure.ac): Require
47662         gl_LONG_DOUBLE_VS_DOUBLE.
47663         * modules/sprintf-posix-tests (configure.ac): Likewise.
47664         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
47665         * modules/vasprintf-posix-tests (configure.ac): Likewise.
47666         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
47667         * modules/vsprintf-posix-tests (configure.ac): Likewise.
47668         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
47669         tests on platforms where 'long double' is the same as 'double'.
47670         * tests/test-sprintf-posix.h (test_function): Likewise.
47671         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47672         * tests/test-vasprintf-posix.c (test_function): Likewise.
47674         *printf: Fix for platforms where 'long double' == 'double'.
47675         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47676         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
47677         * modules/dprintf-posix (Files): Add m4/math_h.m4.
47678         * modules/fprintf-posix (Files): Likewise.
47679         * modules/obstack-printf-posix (Files): Likewise.
47680         * modules/snprintf-posix (Files): Likewise.
47681         * modules/sprintf-posix (Files): Likewise.
47682         * modules/vasnprintf (Files): Likewise.
47683         * modules/vasnprintf-posix (Files): Likewise.
47684         * modules/vasprintf-posix (Files): Likewise.
47685         * modules/vdprintf-posix (Files): Likewise.
47686         * modules/vfprintf-posix (Files): Likewise.
47687         * modules/vsnprintf-posix (Files): Likewise.
47688         * modules/vsprintf-posix (Files): Likewise.
47689         * modules/unistdio/u8-vasnprintf (Files): Likewise.
47690         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
47691         * modules/unistdio/u16-vasnprintf (Files): Likewise.
47692         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
47693         * modules/unistdio/u32-vasnprintf (Files): Likewise.
47694         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
47695         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
47697         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
47698         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
47699         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47700         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
47701         'long double'.
47702         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
47704         isinf: Fix for platforms where 'long double' == 'double'.
47705         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47706         Don't blindly assume 80-bit 'long double'.
47708         isfinite: Fix for platforms where 'long double' == 'double'.
47709         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47710         Don't blindly assume 80-bit 'long double'.
47712         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
47713         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
47714         * modules/isfinite-tests (configure.ac): Require
47715         gl_LONG_DOUBLE_VS_DOUBLE.
47716         * modules/isinf-tests (configure.ac): Likewise.
47717         * modules/isnan-tests (configure.ac): Likewise.
47718         * modules/isnanl-tests (configure.ac): Likewise.
47719         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
47720         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
47721         tests on platforms where 'long double' is the same as 'double'.
47722         * tests/test-isinf.c (test_isinfl): Likewise.
47723         * tests/test-isnan.c (test_long_double): Likewise.
47724         * tests/test-isnanl.h (main): Likewise.
47726 2011-10-08  Bruno Haible  <bruno@clisp.org>
47728         Tests for module 'tanhf'.
47729         * modules/tanhf-tests: New file.
47730         * tests/test-tanhf.c: New file.
47732         New module 'tanhf'.
47733         * lib/math.in.h (tanhf): New declaration.
47734         * lib/tanhf.c: New file.
47735         * m4/tanhf.m4: New file.
47736         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
47737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
47738         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
47739         * modules/tanhf: New file.
47740         * tests/test-math-c++.cc: Check the declaration of tanhf.
47741         * doc/posix-functions/tanhf.texi: Mention the new module.
47743         tanh: Use a .m4 file.
47744         * m4/tanh.m4: New file.
47745         * modules/tanh (Files): Add it.
47746         (configure.ac): Just invoke gl_FUNC_TANH.
47748 2011-10-08  Bruno Haible  <bruno@clisp.org>
47750         Tests for module 'coshf'.
47751         * modules/coshf-tests: New file.
47752         * tests/test-coshf.c: New file.
47754         New module 'coshf'.
47755         * lib/math.in.h (coshf): New declaration.
47756         * lib/coshf.c: New file.
47757         * m4/coshf.m4: New file.
47758         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
47759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
47760         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
47761         * modules/coshf: New file.
47762         * tests/test-math-c++.cc: Check the declaration of coshf.
47763         * doc/posix-functions/coshf.texi: Mention the new module.
47765         cosh: Use a .m4 file.
47766         * m4/cosh.m4: New file.
47767         * modules/cosh (Files): Add it.
47768         (configure.ac): Just invoke gl_FUNC_COSH.
47770 2011-10-08  Bruno Haible  <bruno@clisp.org>
47772         Tests for module 'sinhf'.
47773         * modules/sinhf-tests: New file.
47774         * tests/test-sinhf.c: New file.
47776         New module 'sinhf'.
47777         * lib/math.in.h (sinhf): New declaration.
47778         * lib/sinhf.c: New file.
47779         * m4/sinhf.m4: New file.
47780         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
47781         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
47782         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
47783         * modules/sinhf: New file.
47784         * tests/test-math-c++.cc: Check the declaration of sinhf.
47785         * doc/posix-functions/sinhf.texi: Mention the new module.
47787         sinh: Use a .m4 file.
47788         * m4/sinh.m4: New file.
47789         * modules/sinh (Files): Add it.
47790         (configure.ac): Just invoke gl_FUNC_SINH.
47792 2011-10-08  Bruno Haible  <bruno@clisp.org>
47794         Tests for module 'atan2f'.
47795         * modules/atan2f-tests: New file.
47796         * tests/test-atan2f.c: New file.
47798         New module 'atan2f'.
47799         * lib/math.in.h (atan2f): New declaration.
47800         * lib/atan2f.c: New file.
47801         * m4/atan2f.m4: New file.
47802         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
47803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
47804         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
47805         * modules/atan2f: New file.
47806         * tests/test-math-c++.cc: Check the declaration of atan2f.
47807         * doc/posix-functions/atan2f.texi: Mention the new module.
47809         atan2: Use a .m4 file.
47810         * m4/atan2.m4: New file.
47811         * modules/atan2 (Files): Add it.
47812         (configure.ac): Just invoke gl_FUNC_ATAN2.
47814 2011-10-08  Bruno Haible  <bruno@clisp.org>
47816         Tests for module 'atanf'.
47817         * modules/atanf-tests: New file.
47818         * tests/test-atanf.c: New file.
47820         New module 'atanf'.
47821         * lib/math.in.h (atanf): New declaration.
47822         * lib/atanf.c: New file.
47823         * m4/atanf.m4: New file.
47824         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
47825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
47826         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
47827         * modules/atanf: New file.
47828         * tests/test-math-c++.cc: Check the declaration of atanf.
47829         * doc/posix-functions/atanf.texi: Mention the new module.
47831         atan: Use a .m4 file.
47832         * m4/atan.m4: New file.
47833         * modules/atan (Files): Add it.
47834         (configure.ac): Just invoke gl_FUNC_ATAN.
47836 2011-10-08  Bruno Haible  <bruno@clisp.org>
47838         Tests for module 'acosf'.
47839         * modules/acosf-tests: New file.
47840         * tests/test-acosf.c: New file.
47842         New module 'acosf'.
47843         * lib/math.in.h (acosf): New declaration.
47844         * lib/acosf.c: New file.
47845         * m4/acosf.m4: New file.
47846         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
47847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
47848         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
47849         * modules/acosf: New file.
47850         * tests/test-math-c++.cc: Check the declaration of acosf.
47851         * doc/posix-functions/acosf.texi: Mention the new module.
47853         acos: Use a .m4 file.
47854         * m4/acos.m4: New file.
47855         * modules/acos (Files): Add it.
47856         (configure.ac): Just invoke gl_FUNC_ACOS.
47858 2011-10-08  Bruno Haible  <bruno@clisp.org>
47860         Tests for module 'asinf'.
47861         * modules/asinf-tests: New file.
47862         * tests/test-asinf.c: New file.
47864         New module 'asinf'.
47865         * lib/math.in.h (asinf): New declaration.
47866         * lib/asinf.c: New file.
47867         * m4/asinf.m4: New file.
47868         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
47869         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
47870         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
47871         * modules/asinf: New file.
47872         * tests/test-math-c++.cc: Check the declaration of asinf.
47873         * doc/posix-functions/asinf.texi: Mention the new module.
47875         asin: Use a .m4 file.
47876         * m4/asin.m4: New file.
47877         * modules/asin (Files): Add it.
47878         (configure.ac): Just invoke gl_FUNC_ASIN.
47880 2011-10-08  Bruno Haible  <bruno@clisp.org>
47882         Tests for module 'tanf'.
47883         * modules/tanf-tests: New file.
47884         * tests/test-tanf.c: New file.
47886         New module 'tanf'.
47887         * lib/math.in.h (tanf): New declaration.
47888         * lib/tanf.c: New file.
47889         * m4/tanf.m4: New file.
47890         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
47891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
47892         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
47893         * modules/tanf: New file.
47894         * tests/test-math-c++.cc: Check the declaration of tanf.
47895         * doc/posix-functions/tanf.texi: Mention the new module.
47897         tan: Use a .m4 file.
47898         * m4/tan.m4: New file.
47899         * modules/tan (Files): Add it.
47900         (configure.ac): Just invoke gl_FUNC_TAN.
47902 2011-10-08  Bruno Haible  <bruno@clisp.org>
47904         Tests for module 'cosf'.
47905         * modules/cosf-tests: New file.
47906         * tests/test-cosf.c: New file.
47908         New module 'cosf'.
47909         * lib/math.in.h (cosf): New declaration.
47910         * lib/cosf.c: New file.
47911         * m4/cosf.m4: New file.
47912         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
47913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
47914         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
47915         * modules/cosf: New file.
47916         * tests/test-math-c++.cc: Check the declaration of cosf.
47917         * doc/posix-functions/cosf.texi: Mention the new module.
47919         cos: Use a .m4 file.
47920         * m4/cos.m4: New file.
47921         * modules/cos (Files): Add it.
47922         (configure.ac): Just invoke gl_FUNC_COS.
47924 2011-10-08  Bruno Haible  <bruno@clisp.org>
47926         Tests for module 'sinf'.
47927         * modules/sinf-tests: New file.
47928         * tests/test-sinf.c: New file.
47930         New module 'sinf'.
47931         * lib/math.in.h (sinf): New declaration.
47932         * lib/sinf.c: New file.
47933         * m4/sinf.m4: New file.
47934         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
47935         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
47936         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
47937         * modules/sinf: New file.
47938         * tests/test-math-c++.cc: Check the declaration of sinf.
47939         * doc/posix-functions/sinf.texi: Mention the new module.
47941         sin: Use a .m4 file.
47942         * m4/sin.m4: New file.
47943         * modules/sin (Files): Add it.
47944         (configure.ac): Just invoke gl_FUNC_SIN.
47946 2011-10-08  Bruno Haible  <bruno@clisp.org>
47948         Tests for module 'powf'.
47949         * modules/powf-tests: New file.
47950         * tests/test-powf.c: New file.
47952         New module 'powf'.
47953         * lib/math.in.h (powf): New declaration.
47954         * lib/powf.c: New file.
47955         * m4/powf.m4: New file.
47956         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
47957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
47958         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
47959         * modules/powf: New file.
47960         * tests/test-math-c++.cc: Check the declaration of powf.
47961         * doc/posix-functions/powf.texi: Mention the new module.
47963         pow: Use a .m4 file.
47964         * m4/pow.m4: New file.
47965         * modules/pow (Files): Add it.
47966         (configure.ac): Just invoke gl_FUNC_POW.
47968 2011-10-08  Bruno Haible  <bruno@clisp.org>
47970         Tests for module 'log10f'.
47971         * modules/log10f-tests: New file.
47972         * tests/test-log10f.c: New file.
47974         New module 'log10f'.
47975         * lib/math.in.h (log10f): New declaration.
47976         * lib/log10f.c: New file.
47977         * m4/log10f.m4: New file.
47978         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
47979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
47980         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
47981         * modules/log10f: New file.
47982         * tests/test-math-c++.cc: Check the declaration of log10f.
47983         * doc/posix-functions/log10f.texi: Mention the new module.
47985         log10: Use a .m4 file.
47986         * m4/log10.m4: New file.
47987         * modules/log10 (Files): Add it.
47988         (configure.ac): Just invoke gl_FUNC_LOG10.
47990 2011-10-08  Bruno Haible  <bruno@clisp.org>
47992         Tests for module 'logf'.
47993         * modules/logf-tests: New file.
47994         * tests/test-logf.c: New file.
47996         New module 'logf'.
47997         * lib/math.in.h (logf): New declaration.
47998         * lib/logf.c: New file.
47999         * m4/logf.m4: New file.
48000         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
48001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
48002         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
48003         * modules/logf: New file.
48004         * tests/test-math-c++.cc: Check the declaration of logf.
48005         * doc/posix-functions/logf.texi: Mention the new module.
48007         log: Use a .m4 file.
48008         * m4/log.m4: New file.
48009         * modules/log (Files): Add it.
48010         (configure.ac): Just invoke gl_FUNC_LOG.
48012 2011-10-08  Bruno Haible  <bruno@clisp.org>
48014         Tests for module 'expf'.
48015         * modules/expf-tests: New file.
48016         * tests/test-expf.c: New file.
48018         New module 'expf'.
48019         * lib/math.in.h (expf): New declaration.
48020         * lib/expf.c: New file.
48021         * m4/expf.m4: New file.
48022         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
48023         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
48024         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
48025         * modules/expf: New file.
48026         * tests/test-math-c++.cc: Check the declaration of expf.
48027         * doc/posix-functions/expf.texi: Mention the new module.
48029         exp: Use a .m4 file.
48030         * m4/exp.m4: New file.
48031         * modules/exp (Files): Add it.
48032         (configure.ac): Just invoke gl_FUNC_EXP.
48034 2011-10-08  Bruno Haible  <bruno@clisp.org>
48036         Tests for module 'sqrtf'.
48037         * modules/sqrtf-tests: New file.
48038         * tests/test-sqrtf.c: New file.
48040         New module 'sqrtf'.
48041         * lib/math.in.h (sqrtf): New declaration.
48042         * lib/sqrtf.c: New file.
48043         * m4/sqrtf.m4: New file.
48044         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
48045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
48046         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
48047         * modules/sqrtf: New file.
48048         * tests/test-math-c++.cc: Check the declaration of sqrtf.
48049         * doc/posix-functions/sqrtf.texi: Mention the new module.
48051 2011-10-08  Bruno Haible  <bruno@clisp.org>
48053         Tests: Avoid link failures w.r.t. libintl.
48054         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
48055         $(LIBINTL).
48056         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
48057         $(LIBINTL).
48058         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
48059         against $(LIBINTL).
48060         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
48061         $(LIBINTL).
48062         * modules/openat-tests (Makefile.am): Link test-fchmodat against
48063         $(LIBINTL).
48064         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
48066 2011-10-08  Bruno Haible  <bruno@clisp.org>
48068         pow tests: Defeat compiler optimizations.
48069         * tests/test-pow.c (main): Assign arguments to x and y before use.
48071 2011-10-08  Bruno Haible  <bruno@clisp.org>
48073         gnulib-tool: Improve last commit.
48074         * gnulib-tool (func_modules_transitive_closure): Simplify code.
48075         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
48076         ignore dependencies that are not among the modules list.
48078 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
48080         gnulib-tool: don't follow dependencies to avoided modules
48081         This fixes a bug that is related to the previous one.
48082         * gnulib-tool (func_modules_transitive_closure)
48083         (func_emit_autoconf_snippets):
48084         Check whether a dependency is acceptable before using it.
48085         (--extract-dependencies): Report an error if --avoid is also used,
48086         since this combination of options is not yet supported.
48088         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
48089         Problem reported by Peter Dyballa in
48090         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
48091         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
48092         when echoing "$condition".
48094 2011-10-07  Bruno Haible  <bruno@clisp.org>
48096         Fix documentation about math functions on MacOS X.
48097         * doc/posix-functions/exp2.texi: Don't say the function is missing on
48098         MacOS X 10.5.
48099         * doc/posix-functions/fdim.texi: Likewise.
48100         * doc/posix-functions/feclearexcept.texi: Likewise.
48101         * doc/posix-functions/fegetenv.texi: Likewise.
48102         * doc/posix-functions/fegetround.texi: Likewise.
48103         * doc/posix-functions/feholdexcept.texi: Likewise.
48104         * doc/posix-functions/feraiseexcept.texi: Likewise.
48105         * doc/posix-functions/fesetenv.texi: Likewise.
48106         * doc/posix-functions/fesetround.texi: Likewise.
48107         * doc/posix-functions/fetestexcept.texi: Likewise.
48108         * doc/posix-functions/feupdateenv.texi: Likewise.
48109         * doc/posix-functions/fmax.texi: Likewise.
48110         * doc/posix-functions/fmin.texi: Likewise.
48111         * doc/posix-functions/log2.texi: Likewise.
48112         * doc/posix-functions/modff.texi: Likewise.
48113         * doc/posix-functions/nan.texi: Likewise.
48114         * doc/posix-functions/nanf.texi: Likewise.
48115         * doc/posix-functions/nextafterf.texi: Likewise.
48116         * doc/posix-functions/remquo.texi: Likewise.
48118 2011-10-07  Bruno Haible  <bruno@clisp.org>
48120         modff: Drop assumption about library that defines modff.
48121         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
48122         AC_CHECK_FUNCS.
48123         * modules/modff (Files): Add m4/mathfunc.m4.
48125 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
48127         raise tests: Avoid a GCC warning.
48128         * tests/test-raise.c (handler): Use _Noreturn.
48130 2011-10-07  Bruno Haible  <bruno@clisp.org>
48132         Tests for module 'ldexpf'.
48133         * modules/ldexpf-tests: New file.
48134         * tests/test-ldexpf.c: New file.
48136         New module 'ldexpf'.
48137         * lib/math.in.h (ldexpf): New declaration.
48138         * lib/ldexpf.c: New file.
48139         * m4/ldexpf.m4: New file.
48140         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
48141         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
48142         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
48143         * modules/ldexpf: New file.
48144         * tests/test-math-c++.cc: Check the declaration of ldexpf.
48145         * doc/posix-functions/ldexpf.texi: Mention the new module.
48147 2011-10-06  Bruno Haible  <bruno@clisp.org>
48149         frexpf: Work around problems on IRIX and mingw.
48150         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
48151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
48152         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
48153         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
48154         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
48155         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
48156         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
48158 2011-10-06  Bruno Haible  <bruno@clisp.org>
48160         fabsf: Drop assumption about library that defines fabsf.
48161         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
48162         AC_CHECK_FUNCS.
48163         * modules/fabsf (Files): Add m4/mathfunc.m4.
48165 2011-10-06  Bruno Haible  <bruno@clisp.org>
48167         frexpf: Drop assumption about library that defines frexpf.
48168         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
48169         'int *', 'float *', 'long double *', 'float', 'long double'.
48170         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
48171         AC_CHECK_FUNCS.
48172         * modules/frexpf (Files): Add m4/mathfunc.m4.
48174         Tests for module 'frexpf'.
48175         * modules/frexpf-tests: New file.
48176         * tests/test-frexpf.c: New file.
48178         New module 'frexpf'.
48179         * lib/math.in.h (frexpf): New declaration.
48180         * lib/frexpf.c: New file.
48181         * m4/frexpf.m4: New file.
48182         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
48183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
48184         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
48185         * modules/frexpf: New file.
48186         * tests/test-math-c++.cc: Check the declaration of frexpf.
48187         * doc/posix-functions/frexpf.texi: Mention the new module.
48189 2011-10-06  Bruno Haible  <bruno@clisp.org>
48191         math: Sort function declarations of math.in.h.
48192         * lib/math.in.h (frexp, logb): Move declarations.
48194 2011-10-05  Bruno Haible  <bruno@clisp.org>
48196         Tests for module 'modff'.
48197         * modules/modff-tests: New file.
48198         * tests/test-modff.c: New file.
48200         New module 'modff'.
48201         * lib/math.in.h (modff): New declaration.
48202         * lib/modff.c: New file.
48203         * m4/modff.m4: New file.
48204         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
48205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
48206         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
48207         * modules/modff: New file.
48208         * tests/test-math-c++.cc: Check the declaration of modff.
48209         * doc/posix-functions/modff.texi: Mention the new module.
48211         modf tests: Make test sharper.
48212         * tests/test-modf.c (main): Strengthen upper bound.
48214         modf: Use a .m4 file.
48215         * m4/modf.m4: New file.
48216         * modules/modf (Files): Add it.
48217         (configure.ac): Just invoke gl_FUNC_MODF.
48219 2011-10-05  Bruno Haible  <bruno@clisp.org>
48221         Tests for module 'fmodf'.
48222         * modules/fmodf-tests: New file.
48223         * tests/test-fmodf.c: New file.
48225         New module 'fmodf'.
48226         * lib/math.in.h (fmodf): New declaration.
48227         * lib/fmodf.c: New file.
48228         * m4/fmodf.m4: New file.
48229         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
48230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
48231         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
48232         * modules/fmodf: New file.
48233         * tests/test-math-c++.cc: Check the declaration of fmodf.
48234         * doc/posix-functions/fmodf.texi: Mention the new module.
48236         fmod: Use a .m4 file.
48237         * m4/fmod.m4: New file.
48238         * modules/fmod (Files): Add it.
48239         (configure.ac): Just invoke gl_FUNC_FMOD.
48241 2011-10-05  Bruno Haible  <bruno@clisp.org>
48243         Tests for module 'fabsf'.
48244         * modules/fabsf-tests: New file.
48245         * tests/test-fabsf.c: New file.
48247         New module 'fabsf'.
48248         * lib/math.in.h (fabsf): New declaration.
48249         * lib/fabsf.c: New file.
48250         * m4/fabsf.m4: New file.
48251         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
48252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
48253         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
48254         * modules/fabsf: New file.
48255         * tests/test-math-c++.cc: Check the declaration of fabsf.
48256         * doc/posix-functions/fabsf.texi: Mention the new module.
48258         fabs: Use a .m4 file.
48259         * m4/fabs.m4: New file.
48260         * modules/fabs (Files): Add it.
48261         (configure.ac): Just invoke gl_FUNC_FABS.
48263 2011-10-05  Jim Meyering  <meyering@redhat.com>
48265         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
48266         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
48267         ls -lL regression introduced in coreutils-8.12, it does so at the
48268         cost of an additional stat call in the common case.  Besides, now
48269         that the kernel change that prompted commit 95f7c57f has been reverted
48270         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
48271         we have no use for commit 95f7c57f, "file-has-acl: use
48272         acl_extended_file_nofollow if available".
48274 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
48276         file-has-acl: revert unintended change in behavior of ls -L
48277         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
48278         derived from...
48279         (file_has_acl): ...code here.  Call it.
48280         This problem was introduced with 2011-07-22 commit 95f7c57f,
48281         "file-has-acl: use acl_extended_file_nofollow if available".
48282         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
48284 2011-10-03  Bruno Haible  <bruno@clisp.org>
48286         poll: Avoid link errors on MSVC.
48287         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
48288         * modules/poll (Depends-on): Add sockets.
48289         (Link): New section.
48290         * NEWS: Mention the change.
48291         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
48292         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
48293         $(LIB_POLL) instead of $(LIBSOCKET).
48295 2011-10-03  Bruno Haible  <bruno@clisp.org>
48297         sys_select tests: Fix link error on MSVC 9.
48298         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
48299         with $(LIB_SELECT) instead of $(LIBSOCKET).
48301 2011-10-03  Bruno Haible  <bruno@clisp.org>
48303         sys_select: Fix compilation error on mingw.
48304         * lib/sys_select.in.h: On native Windows, include <io.h>.
48306 2011-10-03  Bruno Haible  <bruno@clisp.org>
48308         wmemset: Support for MSVC.
48309         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
48310         whether wmemset() exists.
48312 2011-10-03  Bruno Haible  <bruno@clisp.org>
48314         wmemmove: Support for MSVC.
48315         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
48316         whether wmemmove() exists.
48318 2011-10-03  Bruno Haible  <bruno@clisp.org>
48320         wmemcpy: Support for MSVC.
48321         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
48322         whether wmemcpy() exists.
48324 2011-10-03  Bruno Haible  <bruno@clisp.org>
48326         wmemcmp: Support for MSVC.
48327         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
48328         whether wmemcmp() exists.
48330 2011-10-03  Bruno Haible  <bruno@clisp.org>
48332         wmemchr: Support for MSVC.
48333         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
48334         whether wmemchr() exists.
48336 2011-10-03  Bruno Haible  <bruno@clisp.org>
48338         glthread/*, strsignal: Support for MSVC.
48339         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
48340         including <winsock.h> on MSVC 9.
48341         * lib/glthread/lock.h: Likewise.
48342         * lib/glthread/thread.h: Likewise.
48343         * lib/glthread/tls.h: Likewise.
48344         * lib/glthread/yield.h: Likewise.
48345         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
48346         if HAVE_UNISTD_H is false.
48347         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
48349 2011-10-03  Bruno Haible  <bruno@clisp.org>
48351         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
48352         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
48353         Set to 100000.
48355 2011-10-03  Bruno Haible  <bruno@clisp.org>
48357         acl: Fix specification.
48358         * lib/file-has-acl.c (file_has_acl): Fix specification.
48360 2011-10-03  Bruno Haible  <bruno@clisp.org>
48362         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
48363         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
48364         (compute_curr_prefix, shared_library_fullname,
48365         find_shared_library_fullname, get_shared_library_fullname, relocate):
48366         Use it together with PIC && INSTALLDIR.
48367         Reported by <jojelino@gmail.com>
48368         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
48370 2011-10-01  Jim Meyering  <meyering@redhat.com>
48372         maint.mk: adjust a release-related rule not to require use of gzip
48373         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
48374         Instead, check each file in $(DIST_ARCHIVES).  This is better for
48375         projects that build only .tar.xz files.  Also fix an erroneous test.
48377         test-linkat: don't leave behind a temporary file
48378         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
48379         Otherwise, coreutils' "make distcheck" would fail with this:
48380           Only in /c/cu/tests/torture/coreutils/test/\
48381             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
48382           make[2]: *** [my-distcheck] Error 1
48384         float, math: add omitted file
48385         * lib/itold.c: Add file, required for yesterday's float change.
48387 2011-10-01  Bruno Haible  <bruno@clisp.org>
48389         isinf: Fix for OpenBSD/x86.
48390         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
48391         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
48392         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
48394 2011-10-01  Bruno Haible  <bruno@clisp.org>
48396         isfinite: Fix syntax error in configure test.
48397         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
48399         isfinite: Fix typo.
48400         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
48401         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
48403 2011-10-01  Bruno Haible  <bruno@clisp.org>
48405         nonblocking tests: Fix test failure on Linux/IA-64.
48406         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
48407         Set to 270000.
48409 2011-10-01  Bruno Haible  <bruno@clisp.org>
48411         mkfifoat tests: Fix a test failure on mingw.
48412         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
48413         with error ENOSYS.
48415 2011-09-30  Bruno Haible  <bruno@clisp.org>
48417         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
48418         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
48419         'long double'. Set REPLACE_ITOLD.
48420         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
48421         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
48422         * lib/itold.c: New file.
48423         * modules/float (Files): Add lib/itold.c.
48424         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
48425         (Makefile.am): Substitute REPLACE_ITOLD.
48426         * modules/math (Depends-on): Add float.
48427         (Makefile.am): Substitute REPLACE_ITOLD.
48428         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
48429         * doc/posix-headers/math.texi: Likewise.
48430         * doc/posix-functions/logl.texi: Likewise.
48432 2011-09-30  Bruno Haible  <bruno@clisp.org>
48434         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
48435         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
48436         Set to 140000.
48438 2011-09-30  Bruno Haible  <bruno@clisp.org>
48440         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
48441         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
48442         invocation, say "right after AC_PROG_CC_STDC", not "right after
48443         AC_PROG_CC".
48444         Reported by Gary V. Vaughan <gary@gnu.org>.
48446 2011-09-30  Bruno Haible  <bruno@clisp.org>
48448         Centralize C99 requirement.
48449         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
48450         * modules/stdarg (configure.ac-early): Invoke it instead of
48451         AC_PROG_CC_STDC.
48452         Reported by Gary V. Vaughan and Paul Eggert.
48454 2011-09-29  Bruno Haible  <bruno@clisp.org>
48456         float: Fix LDBL_MAX value on Linux/PowerPC.
48457         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
48458         on Linux/PowerPC.
48459         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
48460         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
48461         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
48462         platform.
48463         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
48465 2011-09-29  Bruno Haible  <bruno@clisp.org>
48467         doc: Improve doc about gl_EARLY.
48468         * doc/gnulib-tool.texi (Initial import): Mention where to place an
48469         AC_PROG_CC_STDC invocation.
48470         Reported by Gary V. Vaughan <gary@gnu.org>.
48472 2011-09-28  Bruno Haible  <bruno@clisp.org>
48474         fgetc, fputc, fread, fwrite tests: Fix link error.
48475         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
48476         on non-MSVC platforms.
48477         * tests/test-fputc.c (main): Likewise.
48478         * tests/test-fread.c (main): Likewise.
48479         * tests/test-fwrite.c (main): Likewise.
48480         Reported by Jim Meyering.
48482 2011-09-27  Bruno Haible  <bruno@clisp.org>
48484         fputc, fwrite tests: Avoid test failure on MSVC.
48485         * tests/test-fgetc.c: Include msvc-inval.h.
48486         (main): Invoke gl_msvc_inval_ensure_handler.
48487         * tests/test-fputc.c: Include msvc-inval.h.
48488         (main): Invoke gl_msvc_inval_ensure_handler.
48489         * tests/test-fread.c: Include msvc-inval.h.
48490         (main): Invoke gl_msvc_inval_ensure_handler.
48491         * tests/test-fwrite.c: Include msvc-inval.h.
48492         (main): Invoke gl_msvc_inval_ensure_handler.
48493         * modules/fgetc-tests (Depends-on): Add msvc-inval.
48494         * modules/fputc-tests (Depends-on): Likewise.
48495         * modules/fread-tests (Depends-on): Likewise.
48496         * modules/fwrite-tests (Depends-on): Likewise.
48498 2011-09-27  Bruno Haible  <bruno@clisp.org>
48500         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
48501         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
48502         (raise): Remove older, duplicated declaration.
48503         (_gl_raise_SIGPIPE): New declaration.
48504         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
48505         (rpl_raise): Remove function.
48506         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
48507         a gnulib-defined SIGPIPE here.
48508         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
48509         'sigprocmask' has detected missing signal-blocking and the module
48510         'sigpipe' is enabled.
48511         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48513 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
48515         base64-tests: avoid memory leak
48516         * tests/test-base64.c (main): Plug memory leak.
48518         base32: new module
48519         * modules/base32: New module.
48520         * lib/base32.c: New file.
48521         * lib/base32.h: Likewise.
48522         * m4/base32.m4: Likewise.
48523         * modules/base32-tests: New test.
48524         * tests/test-base32.c: Likewise.
48525         * MODULES.html.sh (Misc): Mention it.
48527 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48529         gnulib: use more-standard license notice wording
48530         * gnulib-tool (func_emit_copyright_notice): When emitting a
48531         license notice into a file, use the standard wording as suggested
48532         by the current information for GNU maintainers, except say "file"
48533         rather than "program".  The new wording gives a license version
48534         number, which addresses an issue raised by Glenn Morris in
48535         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
48536         * m4/onceonly.m4: Use that same wording here, too.
48538         dup2: minor simplification
48539         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
48540         as lib/dup2.c no longer uses 'inline'.
48542 2011-09-25  Bruno Haible  <bruno@clisp.org>
48544         strings: Fix compilation error on MSVC.
48545         * lib/strings.in.h: Include <stddef.h> for size_t.
48547 2011-09-25  Bruno Haible  <bruno@clisp.org>
48549         fflush et al.: Document limitation on MSVC.
48550         * doc/posix-functions/fflush.texi: Document possible crash in handling
48551         mode other than DEFAULT_HANDLING.
48552         * doc/posix-functions/fgetc.texi: Likewise.
48553         * doc/posix-functions/fputc.texi: Likewise.
48554         * doc/posix-functions/fread.texi: Likewise.
48555         * doc/posix-functions/fwrite.texi: Likewise.
48557 2011-09-25  Bruno Haible  <bruno@clisp.org>
48559         msvc-inval: Allow three invalid parameter handling modes.
48560         * lib/msvc-inval.h: Don't include <stdlib.h> here.
48561         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
48562         macros.
48563         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
48564         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
48565         SANE_LIBRARY_HANDLING as a no-op.
48566         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
48567         <stdlib.h>.
48568         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
48570 2011-09-25  Bruno Haible  <bruno@clisp.org>
48572         msvc-inval: Make handler multithread-safe.
48573         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
48574         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
48575         declarations.
48576         (gl_msvc_inval_current): New declaration.
48577         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
48578         Operate on the structure returned by gl_msvc_inval_current().
48579         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
48580         Remove varaiables.
48581         (tls_index, tls_initialized): New variables.
48582         (not_per_thread): New variable.
48583         (gl_msvc_inval_current): New function.
48584         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
48585         returned by gl_msvc_inval_current().
48587 2011-09-25  Bruno Haible  <bruno@clisp.org>
48589         msvc-inval: Install handler globally.
48590         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
48591         !_MSC_VER.
48592         (gl_msvc_invalid_parameter_handler): Remove declaration.
48593         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
48594         declarations.
48595         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
48596         Install the handler globally, don't uninstall it.
48597         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
48598         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
48599         currently valid, call RaiseException instead.
48600         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
48601         for !_MSC_VER.
48603 2011-09-25  Bruno Haible  <bruno@clisp.org>
48605         strerror_r-posix: Fix for MSVC 9.
48606         * lib/strerror_r.c (local_snprintf): New function.
48607         (snprintf): Define to local_snprintf, not to _snprintf.
48609 2011-09-25  Bruno Haible  <bruno@clisp.org>
48611         ftruncate: Support for MSVC 9.
48612         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
48613         (chsize_nothrow): New function.
48614         (chsize): Redefine as a macro.
48615         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
48616         * modules/ftruncate (Depends-on): Add msvc-inval.
48618 2011-09-25  Bruno Haible  <bruno@clisp.org>
48620         New module 'fstat'.
48621         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
48622         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
48623         * lib/fchdir.c (rpl_fstat): Remove function.
48624         * m4/fstat.m4: New file.
48625         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
48626         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
48627         declared.
48628         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
48629         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
48630         * modules/fstat: New file.
48631         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
48632         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
48633         is set.
48634         * doc/posix-functions/fstat.texi: Mention the new module and the
48635         problem on MSVC.
48636         * NEWS: Mention the change.
48637         * modules/acl (Depends-on): Add fstat.
48638         * modules/chdir-safer (Depends-on): Likewise.
48639         * modules/chown (Depends-on): Likewise.
48640         * modules/copy-file (Depends-on): Likewise.
48641         * modules/fchdir (Depends-on): Likewise.
48642         * modules/fdopendir (Depends-on): Likewise.
48643         * modules/fopen (Depends-on): Likewise.
48644         * modules/fts (Depends-on): Likewise.
48645         * modules/getcwd (Depends-on): Likewise.
48646         * modules/isapipe (Depends-on): Likewise.
48647         * modules/linkat (Depends-on): Likewise.
48648         * modules/lseek (Depends-on): Likewise.
48649         * modules/mkdir-p (Depends-on): Likewise.
48650         * modules/open (Depends-on): Likewise.
48651         * modules/openat (Depends-on): Likewise.
48652         * modules/read-file (Depends-on): Likewise.
48653         * modules/renameat (Depends-on): Likewise.
48654         * modules/utimens (Depends-on): Likewise.
48656 2011-09-25  Bruno Haible  <bruno@clisp.org>
48658         linkat: Fix compilation on MSVC 9.
48659         * lib/linkat.c: Don't include <stdint.h>.
48661 2011-09-25  Bruno Haible  <bruno@clisp.org>
48663         fclose: Support for MSVC 9.
48664         * lib/fclose.c: Include msvc-inval.h.
48665         (fclose_nothrow): New function.
48666         (rpl_fclose): Use it.
48667         * modules/fclose (Depends-on): Add msvc-inval.
48668         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
48670 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48672         dup2: minor simplifications
48673         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
48674         that it's a performance win.
48675         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
48676         ! defined __CYGWIN__)" to "ifdef F_GETFL".
48678 2011-09-24  Jim Meyering  <meyering@redhat.com>
48680         test-futimens: avoid a warning from gcc -Wshadow
48681         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
48682         to avoid a shadowing warning.
48684 2011-09-24  Bruno Haible  <bruno@clisp.org>
48686         fdopen: Support for MSVC 9.
48687         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
48688         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
48689         * lib/fdopen.c: Include msvc-inval.h.
48690         (fdopen_nothrow): New function.
48691         (rpl_fdopen): Use it.
48692         * modules/fdopen (Depends-on): Add msvc-inval.
48693         * modules/fclose-tests (Depends-on): Add fdopen.
48694         * modules/fflush-tests (Depends-on): Likewise.
48695         * modules/fgetc-tests (Depends-on): Likewise.
48696         * modules/fputc-tests (Depends-on): Likewise.
48697         * modules/fread-tests (Depends-on): Likewise.
48698         * modules/freopen-tests (Depends-on): Likewise.
48699         * modules/fseeko-tests (Depends-on): Likewise.
48700         * modules/ftello-tests (Depends-on): Likewise.
48701         * modules/fwrite-tests  (Depends-on): Likewise.
48702         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
48704 2011-09-24  Bruno Haible  <bruno@clisp.org>
48706         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
48707         * modules/fgetc-tests (Depends-on): Add unistd.
48708         * modules/fputc-tests (Depends-on): Likewise.
48709         * modules/fread-tests (Depends-on): Likewise.
48710         * modules/fwrite-tests (Depends-on): Likewise.
48712 2011-09-24  Bruno Haible  <bruno@clisp.org>
48714         dup: Simplify autoconf test.
48715         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
48716         on gl_MSVC_INVAL's result.
48718 2011-09-24  Bruno Haible  <bruno@clisp.org>
48720         Tests for function fwrite().
48721         * modules/fwrite-tests: New file.
48722         * tests/test-fwrite.c: New file.
48723         * modules/stdio-tests (Depends-on): Add fwrite-tests.
48725         Tests for function fread().
48726         * modules/fread-tests: New file.
48727         * tests/test-fread.c: New file.
48728         * modules/stdio-tests (Depends-on): Add fread-tests.
48730         Activate fputc tests.
48731         * modules/stdio-tests (Depends-on): Add fputc-tests.
48733         Enhance fgetc, fputc tests.
48734         * tests/test-fgetc.c (main): Also test the stream's error indicator.
48735         * tests/test-fputc.c (main): Likewise.
48737 2011-09-24  Bruno Haible  <bruno@clisp.org>
48739         write: Support for MSVC 9.
48740         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48741         is not 1.
48742         * lib/write.c (write_nothrow): New function.
48743         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
48744         not 1. Use write_nothrow.
48745         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
48746         invalid parameter handler.
48747         (gl_PREREQ_WRITE): New macro.
48748         * modules/write (Depends-on): Add msvc-inval.
48749         (configure.ac): Invoke gl_PREREQ_WRITE.
48750         * doc/posix-functions/write.texi: Mention the problem on MSVC.
48752 2011-09-24  Bruno Haible  <bruno@clisp.org>
48754         read: Fix last commit.
48755         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
48757 2011-09-24  Bruno Haible  <bruno@clisp.org>
48759         dup2: Fix last commit.
48760         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
48761         (rpl_dup2): Disable fcntl workaround on native Windows.
48763         sigprocmask: Make code safer.
48764         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
48765         section that changes macro definitions for this compilation unit.
48767 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48769         dup2: clarify by coalescing Windows-specific material
48770         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
48771         "msvc-nothrow.h"' to the Windows-specific section, so that the
48772         Emacs source need not contain these include files.
48773         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
48774         Windows-specific fixes into this function rather than just the
48775         nothrow fix, as this shortens and clarifies the code.  Always
48776         define as a function, as that's a bit cleaner than having it be
48777         sometimes a function and sometimes a macro.
48778         (rpl_dup2): Move the Windows-specific stuff out of here and into
48779         ms_windows_dup2.  Don't protect the Haiku-related fix with
48780         "#if !defined __linux__", as the same code also works around
48781         a Linux kernel bug, and it doesn't add any system calls on any
48782         platform.  Add comment about FreeBSD 6.1.
48784         sigprocmask: move #include directive
48785         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
48786         Windows-specific section, so that the Emacs source need not
48787         contain msvc-inval.h.
48789 2011-09-23  Bruno Haible  <bruno@clisp.org>
48791         read: Support for MSVC 9.
48792         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48793         is not 1.
48794         * lib/read.c (read_nothrow): New function.
48795         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
48796         read_nothrow.
48797         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
48798         invalid parameter handler.
48799         (gl_PREREQ_READ): New macro.
48800         * modules/read (Depends-on): Add msvc-inval.
48801         (configure.ac): Invoke gl_PREREQ_READ.
48802         * doc/posix-functions/read.texi: Mention the problem on MSVC.
48804 2011-09-23  Bruno Haible  <bruno@clisp.org>
48806         close: Support for MSVC 9.
48807         * lib/close.c: Include <errno.h>, msvc-inval.h.
48808         (close_nothrow): New function.
48809         (rpl_close): Use it.
48810         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
48811         invalid parameter handler.
48812         * modules/close (Depends-on): Add msvc-inval.
48813         * modules/dup2-tests (Depends-on): Add close.
48814         * modules/dup3-tests (Depends-on): Likewise.
48815         * modules/fcntl-tests (Depends-on): Likewise.
48816         * modules/spawn-pipe-tests (Depends-on): Likewise.
48817         * modules/unistd-safer-tests (Depends-on): Likewise.
48818         * doc/posix-functions/close.texi: Mention the problem on MSVC.
48820 2011-09-23  Bruno Haible  <bruno@clisp.org>
48822         New module 'dup'.
48823         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
48824         Allow replacement.
48825         * lib/dup.c: New file.
48826         * lib/fchdir.c (rpl_dup): Remove function.
48827         * m4/dup.m4: New file.
48828         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
48829         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
48830         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
48831         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
48832         * modules/dup: New file.
48833         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
48834         'dup' module is in use.
48835         * modules/fdopendir (Depends-on): Add dup.
48836         * modules/fdutimensat-tests (Depends-on): Likewise.
48837         * modules/fts (Depends-on): Likewise.
48838         * modules/futimens-tests (Depends-on): Likewise.
48839         * modules/posix_spawnp-tests (Depends-on): Likewise.
48840         * modules/unistd-safer-tests (Depends-on): Likewise.
48841         * modules/utimens-tests (Depends-on): Likewise.
48842         * doc/posix-functions/dup.texi: Mention the new module and the problem
48843         on MSVC.
48845 2011-09-23  Bruno Haible  <bruno@clisp.org>
48847         getdtablesize: Support for MSVC 9.
48848         * lib/getdtablesize.c: Include msvc-inval.h.
48849         (_setmaxstdio_nothrow): New function.
48850         (_setmaxstdio): Redefine it.
48851         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
48852         * modules/getdtablesize (Depends-on): Add msvc-inval.
48853         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
48855 2011-09-23  Bruno Haible  <bruno@clisp.org>
48857         signal-h: Rename from signal.
48858         * modules/signal-h: Renamed from modules/signal.
48859         * modules/pthread_sigmask (Depends-on): Update.
48860         * modules/raise (Depends-on): Likewise.
48861         * modules/sigaction (Depends-on): Likewise.
48862         * modules/sigpipe (Depends-on): Likewise.
48863         * modules/sigprocmask (Depends-on): Likewise.
48864         * modules/sys_select (Depends-on): Likewise.
48865         * modules/signal-h-tests: Renamed from modules/signal-tests.
48866         (Files, Depends-on, Makefile.am): Update.
48867         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
48868         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
48869         (Files, Makefile.am): Update.
48870         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
48871         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
48872         * modules/signal: New placeholder file.
48873         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
48874         * doc/posix-headers/signal.texi: Update.
48875         * NEWS: Mention the change.
48877 2011-09-23  Bruno Haible  <bruno@clisp.org>
48879         sigprocmask: Avoid crashes through signal() on MSVC 9.
48880         * lib/sigprocmask.c: Include msvc-inval.h.
48881         (signal_nothrow): New function.
48882         (signal): Redefine it.
48883         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
48884         * modules/sigprocmask (Depends-on): Add msvc-inval.
48885         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
48887 2011-09-23  Bruno Haible  <bruno@clisp.org>
48889         Tests for module 'raise'.
48890         * modules/raise-tests: New file.
48891         * tests/test-raise.c: New file.
48893         raise: Support for MSVC.
48894         * lib/signal.in.h (raise): New declaration.
48895         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
48896         for native Windows platforms.
48897         * m4/raise.m4: New file.
48898         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
48899         HAVE_RAISE, REPLACE_RAISE.
48900         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
48901         REPLACE_RAISE.
48902         * modules/raise (Status, Notice): Remove fields.
48903         (Files): Add m4/raise.m4.
48904         (Depends-on): Add signal, msvc-inval.
48905         (configure.ac): Use the common idioms.
48906         (Maintainer): Add me.
48907         * tests/test-signal-c++.cc: Check the signature of raise.
48908         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
48910 2011-09-23  Bruno Haible  <bruno@clisp.org>
48912         pipe2: Fix compilation on pre-C99 compilers.
48913         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
48915 2011-09-23  Bruno Haible  <bruno@clisp.org>
48917         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
48918         * lib/msvc-nothrow.h: New file.
48919         * lib/msvc-nothrow.c: New file.
48920         * m4/msvc-nothrow.m4: New file.
48921         * modules/msvc-nothrow: New file.
48922         * lib/dup2.c: Include msvc-nothrow.h.
48923         (rpl_dup2): No need to protect _get_osfhandle call here.
48924         * lib/accept4.c: Include msvc-nothrow.h.
48925         * lib/error.c: Likewise.
48926         * lib/fcntl.c: Likewise.
48927         * lib/lseek.c: Likewise.
48928         * lib/nonblocking.c: Likewise.
48929         * lib/poll.c: Likewise.
48930         * lib/read.c: Likewise.
48931         * lib/select.c: Likewise.
48932         * lib/sockets.h: Likewise.
48933         * lib/sockets.c: Likewise.
48934         * lib/stdio-read.c: Likewise.
48935         * lib/stdio-write.c: Likewise.
48936         * lib/write.c: Likewise.
48937         * lib/w32sock.h: Likewise.
48938         * lib/w32spawn.h: Likewise.
48939         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
48940         * lib/fsync.c: Likewise.
48941         * lib/isapipe.c: Likewise.
48942         * modules/dup2 (Depends-on): Add msvc-nothrow.
48943         * modules/accept4 (Depends-on): Likewise.
48944         * modules/error (Depends-on): Likewise.
48945         * modules/fcntl (Depends-on): Likewise.
48946         * modules/lseek (Depends-on): Likewise.
48947         * modules/nonblocking (Depends-on): Likewise.
48948         * modules/poll (Depends-on): Likewise.
48949         * modules/read (Depends-on): Likewise.
48950         * modules/select (Depends-on): Likewise.
48951         * modules/sockets (Depends-on): Likewise.
48952         * modules/sigpipe (Depends-on): Likewise.
48953         * modules/write (Depends-on): Likewise.
48954         * modules/accept (Depends-on): Likewise.
48955         * modules/bind (Depends-on): Likewise.
48956         * modules/connect (Depends-on): Likewise.
48957         * modules/gethostname (Depends-on): Likewise.
48958         * modules/getpeername (Depends-on): Likewise.
48959         * modules/getsockname (Depends-on): Likewise.
48960         * modules/getsockopt (Depends-on): Likewise.
48961         * modules/ioctl (Depends-on): Likewise.
48962         * modules/listen (Depends-on): Likewise.
48963         * modules/recv (Depends-on): Likewise.
48964         * modules/recvfrom (Depends-on): Likewise.
48965         * modules/send (Depends-on): Likewise.
48966         * modules/sendto (Depends-on): Likewise.
48967         * modules/setsockopt (Depends-on): Likewise.
48968         * modules/shutdown (Depends-on): Likewise.
48969         * modules/socket (Depends-on): Likewise.
48970         * modules/execute (Depends-on): Likewise.
48971         * modules/spawn-pipe (Depends-on): Likewise.
48972         * modules/flock (Depends-on): Likewise.
48973         * modules/fsync (Depends-on): Likewise.
48974         * modules/isapipe (Depends-on): Likewise.
48975         * tests/test-cloexec.c: Include msvc-nothrow.h.
48976         * tests/test-dup-safer.c: Likewise.
48977         * tests/test-dup2.c: Likewise.
48978         * tests/test-dup3.c: Likewise.
48979         * tests/test-fcntl.c: Likewise.
48980         * tests/test-pipe.c: Likewise.
48981         * tests/test-pipe2.c: Likewise.
48982         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
48983         * modules/unistd-safer-tests (Depends-on): Likewise.
48984         * modules/dup2-tests (Depends-on): Likewise.
48985         * modules/dup3-tests (Depends-on): Likewise.
48986         * modules/fcntl-tests (Depends-on): Likewise.
48987         * modules/pipe-posix-tests (Depends-on): Likewise.
48988         * modules/pipe2-tests (Depends-on): Likewise.
48990 2011-09-23  Bruno Haible  <bruno@clisp.org>
48992         dup2: Make code more maintainable.
48993         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
48994         (rpl_dup2): Use it.
48995         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
48996         * modules/dup2 (configure.ac): Invoke it.
48997         Reported by Paul Eggert.
48999 2011-09-23  Bruno Haible  <bruno@clisp.org>
49001         msvc-inval: Fix compilation error.
49002         * lib/msvc-inval.h: Include <excpt.h>.
49004 2011-09-23  Bruno Haible  <bruno@clisp.org>
49006         mkdir: Tweak for MSVC 9.
49007         * lib/sys_stat.in.h: Update comments.
49008         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
49010         Tests for module 'chdir'.
49011         * modules/chdir-tests: New file.
49012         * tests/test-chdir.c: New file.
49014         New module 'chdir'.
49015         * modules/chdir: New file.
49016         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
49017         (chdir): New declaration.
49018         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
49019         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
49020         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
49021         * tests/test-unistd-c++.cc: Check signature of chdir.
49022         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
49023         * modules/chdir-long (Depends-on): Add chdir.
49024         * modules/fchdir (Depends-on): Likewise.
49025         * modules/rename (Depends-on): Likewise.
49026         * modules/savewd (Depends-on): Likewise.
49028         rmdir: Support for mingw, MSVC 9.
49029         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
49030         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
49032         getcwd: Tweak for MSVC 9.
49033         * lib/unistd.in.h: Update comments.
49034         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
49036 2011-09-22  Bruno Haible  <bruno@clisp.org>
49038         strerror_r-posix: Avoid a link error on MSVC.
49039         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
49040         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
49042 2011-09-22  Bruno Haible  <bruno@clisp.org>
49044         select: Avoid link errors on MSVC.
49045         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
49046         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
49047         * modules/pselect (Link): Likewise.
49048         * NEWS: Mention the change.
49049         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
49050         test-select-stdin against $(LIB_SELECT).
49051         * modules/pselect-tests (Makefile.am): Link test-pselect against
49052         $(LIB_SELECT).
49054 2011-09-22  Bruno Haible  <bruno@clisp.org>
49056         select: Avoid compilation error on MSVC.
49057         * lib/select.c: Don't include <stdbool.h>.
49059 2011-09-21  Bruno Haible  <bruno@clisp.org>
49061         Consolidate all uses of PATH_MAX in *.m4 files.
49062         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
49063         macros.
49064         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
49065         and gl_PATHMAX_SNIPPET.
49066         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
49067         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
49068         * modules/chdir-long (Files): Add m4/pathmax.m4.
49069         * modules/getcwd (Files): Likewise.
49071 2011-09-21  Bruno Haible  <bruno@clisp.org>
49073         ftruncate: Un-deprecate, concentrate on Win32 support.
49074         * modules/ftruncate (Status, Notice): Remove sections.
49075         (Depends-on): Add largefile.
49076         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
49077         non-mingw platforms.
49078         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
49079         include <io.h>.
49080         * modules/perror-tests (Depends-on): Add ftruncate.
49081         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
49082         'ftruncate' module.
49084 2011-09-21  Bruno Haible  <bruno@clisp.org>
49086         Add dependencies to new dirent related modules.
49087         * modules/opendir (Depends-on): Add closedir.
49088         * modules/getcwd (Depends-on): Add opendir, closedir.
49089         * modules/dirent-safer-tests (Depends-on): Likewise.
49090         * modules/fdopendir-tests (Depends-on): Likewise.
49091         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
49092         * modules/renameat-tests (Depends-on): Likewise.
49094 2011-09-21  Bruno Haible  <bruno@clisp.org>
49096         opendir: Avoid compilation error on mingw.
49097         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
49098         * modules/opendir (Depends-on): Add unistd.
49100 2011-09-21  Bruno Haible  <bruno@clisp.org>
49102         ftruncate tests: Avoid a test failure on mingw.
49103         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
49105 2011-09-21  Bruno Haible  <bruno@clisp.org>
49107         select tests: Avoid test failures on OSF/1 5.1 and mingw.
49108         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
49109         native Windows.
49111 2011-09-21  Bruno Haible  <bruno@clisp.org>
49113         New module 'fdopen'.
49114         * lib/stdio.in.h (fdopen): New declaration.
49115         * lib/fdopen.c: New file.
49116         * m4/fdopen.m4: New file.
49117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
49118         REPLACE_FDOPEN.
49119         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
49120         REPLACE_FDOPEN.
49121         * modules/fdopen: New file.
49122         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
49123         * tests/test-stdio-c++.cc: Check signature of fdopen.
49124         * doc/posix-functions/fdopen.texi: Mention the new module.
49126 2011-09-21  Bruno Haible  <bruno@clisp.org>
49128         unlockpt tests: Avoid test failure on NetBSD 5.1.
49129         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
49130         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
49132 2011-09-21  Bruno Haible  <bruno@clisp.org>
49134         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
49135         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
49136         * tests/test-getlogin_r.c (main): Likewise.
49138 2011-09-20  Bruno Haible  <bruno@clisp.org>
49140         time tests: Don't require pid_t.
49141         * doc/posix-headers/time.texi: Revert last change.
49142         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
49143         * tests/test-time.c: Comment out the check for pid_t.
49145 2011-09-20  Bruno Haible  <bruno@clisp.org>
49147         fsync tests: Avoid a test failure on mingw.
49148         * tests/test-fsync.c (main): Allow a failure with EIO.
49150 2011-09-20  Bruno Haible  <bruno@clisp.org>
49152         euidaccess: Update comments.
49153         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
49155 2011-09-20  Bruno Haible  <bruno@clisp.org>
49157         Ensure EBADF returns for socket functions on mingw.
49158         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
49159         descriptor is invalid.
49160         * lib/bind.c (rpl_bind): Likewise.
49161         * lib/connect.c (rpl_connect): Likewise.
49162         * lib/getpeername.c (rpl_getpeername): Likewise.
49163         * lib/getsockname.c (rpl_getsockname): Likewise.
49164         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49165         * lib/listen.c (rpl_listen): Likewise.
49166         * lib/recv.c (rpl_recv): Likewise.
49167         * lib/recvfrom.c (rpl_recvfrom): Likewise.
49168         * lib/send.c (rpl_send): Likewise.
49169         * lib/sendto.c (rpl_sendto): Likewise.
49170         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49171         * lib/shutdown.c (rpl_shutdown): Likewise.
49173 2011-09-20  Bruno Haible  <bruno@clisp.org>
49175         select tests: EBADF tests.
49176         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
49177         test_bad_fd): New functions.
49178         (test_function): Invoke also test_bad_fd.
49180 2011-09-20  Bruno Haible  <bruno@clisp.org>
49182         Tests for module 'posix_spawn_file_actions_addopen.
49183         * modules/posix_spawn_file_actions_addopen-tests: New file.
49184         * tests/test-posix_spawn_file_actions_addopen.c: New file.
49186         Tests for module 'posix_spawn_file_actions_adddup2'.
49187         * modules/posix_spawn_file_actions_adddup2-tests: New file.
49188         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
49190         Tests for module 'posix_spawn_file_actions_addclose'.
49191         * modules/posix_spawn_file_actions_addclose-tests: New file.
49192         * tests/test-posix_spawn_file_actions_addclose.c: New file.
49194 2011-09-20  Bruno Haible  <bruno@clisp.org>
49196         Tests for module 'unlockpt'.
49197         * modules/unlockpt-tests: New file.
49198         * tests/test-unlockpt.c: New file.
49199         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
49201         Tests for module 'grantpt'.
49202         * modules/grantpt-tests: New file.
49203         * tests/test-grantpt.c: New file.
49204         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
49206 2011-09-20  Bruno Haible  <bruno@clisp.org>
49208         freopen tests: EBADF tests.
49209         * tests/test-freopen.c: Include errno.h, unistd.h.
49210         (main): Add tests for EBADF, commented out for the moment.
49212         fclose tests: EBADF tests.
49213         * tests/test-fclose.c (main): Add tests for EBADF.
49215         fflush tests: EBADF tests.
49216         * tests/test-fflush.c: Include errno.h, macros.h.
49217         (main): Add tests for EBADF.
49219         ftello tests: EBADF tests.
49220         * tests/test-ftello4.sh: New file.
49221         * tests/test-ftello4.c: New file.
49222         * modules/ftello-tests (Files): Add them.
49223         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
49225         fseeko tests: EBADF tests.
49226         * tests/test-fseeko4.sh: New file.
49227         * tests/test-fseeko4.c: New file.
49228         * modules/fseeko-tests (Files): Add them.
49229         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
49231         Tests for function fputc().
49232         * modules/fputc-tests: New file.
49233         * tests/test-fputc.c: New file.
49234         * modules/stdio-tests (Depends-on): Add fputc-tests.
49236         Tests for function fgetc().
49237         * modules/fgetc-tests: New file.
49238         * tests/test-fgetc.c: New file.
49239         * modules/stdio-tests (Depends-on): Add fgetc-tests.
49241         Tests for function fdopen().
49242         * modules/fdopen-tests: New file.
49243         * tests/test-fdopen.c: New file.
49244         * modules/stdio-tests (Depends-on): Add fdopen-tests.
49246         Tests for module 'vdprintf'.
49247         * modules/vdprintf-tests: New file.
49248         * tests/test-vdprintf.c: New file.
49250         Tests for module 'dprintf'.
49251         * modules/dprintf-tests: New file.
49252         * tests/test-dprintf.c: New file.
49254 2011-09-20  Bruno Haible  <bruno@clisp.org>
49256         Tests for module 'ioctl'.
49257         * modules/ioctl-tests: New file.
49258         * tests/test-ioctl.c: New file.
49260 2011-09-20  Bruno Haible  <bruno@clisp.org>
49262         fcntl tests: EBADF tests.
49263         * tests/test-fcntl.c (main): Add more tests for EBADF.
49265 2011-09-20  Bruno Haible  <bruno@clisp.org>
49267         utimensat tests: EBADF tests.
49268         * tests/test-utimensat.c (main): Add tests for EBADF.
49270         renameat tests: EBADF tests.
49271         * tests/test-renameat.c (main): Add tests for EBADF.
49273         mkfifoat tests: EBADF tests.
49274         * tests/test-mkfifoat.c (main): Add tests for EBADF.
49276         readlinkat tests: EBADF tests.
49277         * tests/test-readlinkat.c (main): Add tests for EBADF.
49279         symlinkat tests: EBADF tests.
49280         * tests/test-symlinkat.c (main): Add tests for EBADF.
49282         linkat tests: EBADF tests.
49283         * tests/test-linkat.c (main): Add tests for EBADF.
49285         Tests for module 'faccessat'.
49286         * modules/faccessat-tests: New file.
49287         * tests/test-faccessat.c: New file.
49289         fdopendir tests: EBADF tests.
49290         * tests/test-fdopendir.c (main): Add more tests for EBADF.
49292         openat tests: EBADF tests.
49293         * tests/test-fchownat.c (main): Add tests for EBADF.
49294         * tests/test-fstatat.c (main): Likewise.
49295         * tests/test-mkdirat.c (main): Likewise.
49296         * tests/test-openat.c (main): Likewise.
49297         * tests/test-unlinkat.c (main): Likewise.
49298         * tests/test-fchmodat.c: New file.
49299         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
49300         (Makefile.am): Also run 'test-fchmodat'.
49302 2011-09-20  Bruno Haible  <bruno@clisp.org>
49304         utimens, futimens, fdutimensat tests: EBADF tests.
49305         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
49307         Tests for function fstat().
49308         * modules/fstat-tests: New file.
49309         * tests/test-fstat.c: New file.
49310         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
49312 2011-09-20  Bruno Haible  <bruno@clisp.org>
49314         test-ttyname_r tests: EBADF tests.
49315         * tests/test-ttyname_r.c (main): Add tests for EBADF.
49317         Tests for module 'isatty'.
49318         * modules/isatty-tests: New file.
49319         * tests/test-isatty.c: New file.
49321         Tests for module 'write'.
49322         * modules/write-tests: New file.
49323         * tests/test-write.c: New file.
49325         Tests for module 'read'.
49326         * modules/read-tests: New file.
49327         * tests/test-read.c: New file.
49329         pwrite tests: EBADF tests.
49330         * tests/test-pwrite.c (main): Add tests for EBADF.
49332         pread tests: EBADF tests.
49333         * tests/test-pread.c (main): Add tests for EBADF.
49335         lseek tests: EBADF tests.
49336         * tests/test-lseek.c (main): Add more tests for EBADF.
49338         Tests for module 'ftruncate'.
49339         * modules/ftruncate-tests: New file.
49340         * tests/test-ftruncate.sh: New file.
49341         * tests/test-ftruncate.c: New file.
49343         fsync tests: EBADF tests.
49344         * tests/test-fsync.c (main): Add more tests for EBADF.
49346         fdatasync tests: EBADF tests.
49347         * tests/test-fdatasync.c (main): Add more tests for EBADF.
49349         Tests for module 'fchown'.
49350         * modules/fchown-tests: New file.
49351         * tests/test-fchown.c: New file.
49353         Tests for module 'fchmod'.
49354         * modules/fchmod-tests: New file.
49355         * tests/test-fchmod.c: New file.
49357         fchdir tests: EBADF tests.
49358         * tests/test-fchdir.c (main): Add more tests for EBADF.
49360         dup2 tests: EBADF tests.
49361         * tests/test-dup2.c (main): Add more tests for EBADF.
49363         Tests for module 'dup'.
49364         * modules/dup-tests: New file.
49365         * tests/test-dup.c: New file.
49367         Tests for module 'close'.
49368         * modules/close-tests: New file.
49369         * tests/test-close.c: New file.
49371 2011-09-20  Bruno Haible  <bruno@clisp.org>
49373         Tests for module 'shutdown'.
49374         * modules/shutdown-tests: New file.
49375         * tests/test-shutdown.c: New file.
49377         Tests for module 'setsockopt'.
49378         * modules/setsockopt-tests: New file.
49379         * tests/test-setsockopt.c: New file.
49381         Tests for module 'sendto'.
49382         * modules/sendto-tests: New file.
49383         * tests/test-sendto.c: New file.
49385         Tests for module 'send'.
49386         * modules/send-tests: New file.
49387         * tests/test-send.c: New file.
49389         Tests for module 'recvfrom'.
49390         * modules/recvfrom-tests: New file.
49391         * tests/test-recvfrom.c: New file.
49393         Tests for module 'recv'.
49394         * modules/recv-tests: New file.
49395         * tests/test-recv.c: New file.
49397         Tests for module 'listen'.
49398         * modules/listen-tests: New file.
49399         * tests/test-listen.c: New file.
49401         Tests for module 'getsockopt'.
49402         * modules/getsockopt-tests: New file.
49403         * tests/test-getsockopt.c: New file.
49405         Tests for module 'getsockname'.
49406         * modules/getsockname-tests: New file.
49407         * tests/test-getsockname.c: New file.
49409         Tests for module 'getpeername'.
49410         * modules/getpeername-tests: New file.
49411         * tests/test-getpeername.c: New file.
49413         Tests for module 'connect'.
49414         * modules/connect-tests: New file.
49415         * tests/test-connect.c: New file.
49417         Tests for module 'bind'.
49418         * modules/bind-tests: New file.
49419         * tests/test-bind.c: New file.
49421         accept4 tests: Fix for native Windows.
49422         * tests/test-accept4.c: Include sockets.h.
49423         (main): Invoke gl_sockets_startup.
49424         * modules/accept4-tests (Depends-on): Add sockets.
49426         accept tests: Fix for native Windows.
49427         * tests/test-accept.c: Include sockets.h.
49428         (main): Invoke gl_sockets_startup.
49429         * modules/accept-tests (Depends-on): Add sockets.
49431 2011-09-19  Bruno Haible  <bruno@clisp.org>
49433         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
49434         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
49435         do...while(0).
49436         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
49437         Suggested by Paul Eggert.
49439 2011-09-19  Bruno Haible  <bruno@clisp.org>
49441         sched: Ensure pid_t is defined.
49442         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
49443         not define pid_t.
49444         * lib/sched.in.h: Include <sys/types.h>.
49445         * doc/posix-headers/sched.texi: Mention the pid_t problem.
49446         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49448 2011-09-19  Bruno Haible  <bruno@clisp.org>
49450         msvc-inval: Ensure the entire expansion is a single statement.
49451         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
49452         of braces.
49454 2011-09-19  Jim Meyering  <meyering@redhat.com>
49456         tests: use printf, not echo in init.sh's warn_ function
49457         * tests/init.sh (warn_): Use printf, not echo.  The latter would
49458         misbehave when given strings containing a backslash or starting
49459         with e.g., -n.  James Youngman suggested setting IFS.
49461 2011-09-19  Eric Blake  <eblake@redhat.com>
49463         futimens: enhance test
49464         * tests/test-futimens.h (test_futimens): Also check for EBADF on
49465         closed non-negative fd.
49467         date: accept 'hence' as opposite of 'ago'
49468         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
49469         * tests/test-parse-datetime.c (main): Enhance test.
49470         Suggested by Jesse Wilson.
49472 2011-09-19  Jim Meyering  <meyering@redhat.com>
49474         getcwd: don't fail in a deep directory on a system without openat
49475         Before this change, getcwd would fail when called from a directory
49476         of depth PATH_MAX / 3 or greater.  That was due to the fact that
49477         the non-openat implementation used "..", "../..", "../../..", etc.
49478         to access ancestor directories.  With too many, that string would
49479         be longer than PATH_MAX.
49480         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
49481         using gnulib's openat replacement.
49482         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
49483         we're using the replacement function.
49485 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
49487         maint.mk: avoid warnings from perl about missing files
49488         * top/maint.mk (def_sym_regex): Ignore files listed in
49489         $(gl_other_headers_) that do not exist, say because a project
49490         does not use a corresponding module.
49492 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49494         stat: use pathmax.h only if needed
49495         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
49496         This is better for Emacs, which does not have a mingw port and
49497         therefore can avoid the pathmax module.
49499         utimens: remove dependency on dup2
49500         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
49501         to work around the Linux kernel bug.
49502         * modules/utimens (Depends-on): Remove dup2.
49504 2011-09-18  Bruno Haible  <bruno@clisp.org>
49506         inet_ntop, inet_pton: Look for it also in libresolv.
49507         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
49508         libnsl, search for it in libresolv.
49509         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
49510         Needed on Solaris 7.
49512 2011-09-18  Bruno Haible  <bruno@clisp.org>
49514         accept, accept4 tests: Avoid link error on Solaris.
49515         * modules/accept-tests (Makefile.am): Link test-accept against
49516         $(LIBSOCKET).
49517         * modules/accept4-tests (Makefile.am): Link test-accept4 against
49518         $(LIBSOCKET).
49520         accept4: Avoid link error on Solaris.
49521         * modules/accept4 (Link): New section.
49523         socket functions: Avoid link errors on Solaris.
49524         * modules/accept (Depends-on): Add socketlib.
49525         (Link): New section.
49526         * modules/bind (Depends-on): Add socketlib.
49527         (Link): New section.
49528         * modules/connect (Depends-on): Add socketlib.
49529         (Link): New section.
49530         * modules/getpeername (Depends-on): Add socketlib.
49531         (Link): New section.
49532         * modules/getsockname (Depends-on): Add socketlib.
49533         (Link): New section.
49534         * modules/getsockopt (Depends-on): Add socketlib.
49535         (Link): New section.
49536         * modules/listen (Depends-on): Add socketlib.
49537         (Link): New section.
49538         * modules/recv (Depends-on): Add socketlib.
49539         (Link): New section.
49540         * modules/recvfrom (Depends-on): Add socketlib.
49541         (Link): New section.
49542         * modules/send (Depends-on): Add socketlib.
49543         (Link): New section.
49544         * modules/sendto (Depends-on): Add socketlib.
49545         (Link): New section.
49546         * modules/setsockopt (Depends-on): Add socketlib.
49547         (Link): New section.
49548         * modules/shutdown (Depends-on): Add socketlib.
49549         (Link): New section.
49550         * modules/socket (Depends-on): Add socketlib.
49551         (Link): New section.
49553 2011-09-18  Bruno Haible  <bruno@clisp.org>
49555         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
49556         * tests/test-ptsname.c (main): Terminate the test if it takes longer
49557         than 5 seconds.
49558         * modules/ptsname-tests (configure.ac): Test for alarm.
49560 2011-09-18  Bruno Haible  <bruno@clisp.org>
49562         posix_spawn_file_actions_add*: Fix module dependencies.
49563         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
49564         posix_spawn_file_actions_init.
49565         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
49566         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
49568 2011-09-18  Bruno Haible  <bruno@clisp.org>
49570         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
49571         * tests/test-rename.h (test_rename): Allow error code EEXIST.
49572         * tests/test-renameat.c (main): Likewise.
49574 2011-09-18  Bruno Haible  <bruno@clisp.org>
49576         Tests for module 'accept4'.
49577         * modules/accept4-tests: New file.
49578         * tests/test-accept4.c: New file.
49580 2011-09-18  Bruno Haible  <bruno@clisp.org>
49582         Tests for module 'accept'.
49583         * modules/accept-tests: New file.
49584         * tests/test-accept.c: New file.
49586 2011-09-18  Bruno Haible  <bruno@clisp.org>
49588         dup2: Support for MSVC.
49589         * lib/dup2.c: Include msvc-inval.h.
49590         (rpl_dup2): Handle invalid parameter notifications during dup2 and
49591         _get_osfhandle calls.
49592         * modules/dup2 (Depends-on): Add msvc-inval.
49593         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
49595         New module 'msvc-inval'.
49596         * lib/msvc-inval.h: New file.
49597         * lib/msvc-inval.c: New file.
49598         * m4/msvc-inval.m4: New file.
49599         * modules/msvc-inval: New file.
49601 2011-09-17  Bruno Haible  <bruno@clisp.org>
49603         Tests for module 'pclose'.
49604         * modules/pclose-tests: New file.
49606         New module 'pclose'.
49607         * lib/stdio.in.h (pclose): New declaration.
49608         * lib/pclose.c: New file.
49609         * m4/pclose.m4: New file.
49610         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
49611         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
49612         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
49613         * modules/pclose: New file.
49614         * modules/popen-tests (Depends-on): Add pclose.
49615         * modules/popen-safer-tests (Depends-on): Likewise.
49616         * doc/posix-functions/pclose.texi: Mention the new module.
49618 2011-09-17  Bruno Haible  <bruno@clisp.org>
49620         popen: Support for MSVC.
49621         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
49622         * lib/popen.c (popen): Provide alternate definition for native Windows.
49623         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
49624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
49625         * modules/popen (Depends-on, configure.ac): Update condition.
49626         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
49627         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
49628         fixed.
49630 2011-09-17  Bruno Haible  <bruno@clisp.org>
49632         isnanl, isnand, isnanf: Work around MSVC bug.
49633         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
49635 2011-09-17  Bruno Haible  <bruno@clisp.org>
49637         sys_socket tests: Fix recent mistake.
49638         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
49640 2011-09-17  Bruno Haible  <bruno@clisp.org>
49642         putenv: Support for MSVC.
49643         * modules/putenv (Depends-on): Add environ.
49644         * lib/putenv.c (environ): Disable declaration.
49645         * lib/unistd.in.h: Update comment.
49647 2011-09-17  Bruno Haible  <bruno@clisp.org>
49649         math: Avoid macro redefinition warnings on MSVC.
49650         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
49651         Undefine before redefining.
49653 2011-09-17  Bruno Haible  <bruno@clisp.org>
49655         doc: Mention functions which are declared as macros.
49656         * doc/posix-functions/*[fl].texi: Mention that some functions are
49657         defined as macros with arguments only.
49659 2011-09-17  Bruno Haible  <bruno@clisp.org>
49661         Add dependencies to new dirent related modules.
49662         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
49663         * modules/fts (Depends-on): Likewise.
49664         * modules/glob (Depends-on): Likewise.
49665         * modules/savedir (Depends-on): Likewise.
49666         * modules/scandir (Depends-on): Likewise.
49667         * modules/dirent-safer (Depends-on): Add opendir, closedir.
49668         * modules/fdopendir (Depends-on): Add opendir.
49670 2011-09-17  Bruno Haible  <bruno@clisp.org>
49672         inet_pton: Support for MSVC on Windows Vista or newer.
49673         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
49674         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
49675         HAVE_DECL_INET_PTON is defined.
49676         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
49677         On platforms with <winsock2.h>, test whether inet_pton is declared in
49678         <ws2tcpip.h>. If so, arrange to replace it.
49679         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
49680         REPLACE_INET_PTON.
49681         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
49682         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
49683         (Depends-on, configure.ac): Update condition.
49684         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
49686 2011-09-17  Bruno Haible  <bruno@clisp.org>
49688         inet_ntop: Support for MSVC on Windows Vista or newer.
49689         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
49690         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
49691         HAVE_DECL_INET_NTOP is defined.
49692         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
49693         On platforms with <winsock2.h>, test whether inet_ntop is declared in
49694         <ws2tcpip.h>. If so, arrange to replace it.
49695         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
49696         REPLACE_INET_NTOP.
49697         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
49698         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
49699         (Depends-on, configure.ac): Update condition.
49700         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
49702 2011-09-16  Eric Blake  <eblake@redhat.com>
49704         test-fsync: yet another enhancement
49705         * tests/test-fsync.c (main): Also test behavior on read-only text
49706         file.
49708 2011-09-16  Bruno Haible  <bruno@clisp.org>
49710         Enhance fsync, fdatasync tests.
49711         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
49712         * tests/test-fdatasync.c (main): Likewise.
49714 2011-09-16  Bruno Haible  <bruno@clisp.org>
49716         Support for MSVC compiler: Ensure mode_t gets defined.
49717         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
49718         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49719         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49720         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
49721         * tests/test-fcntl-h.c: Check that mode_t is defined.
49722         * tests/test-sys_stat.c: Likewise.
49723         * tests/test-sys_types.c: Likewise.
49724         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
49725         * doc/posix-headers/sys_stat.texi: Likewise.
49726         * doc/posix-headers/sys_types.texi: Likewise.
49728 2011-09-16  Bruno Haible  <bruno@clisp.org>
49730         sys_stat: Support for MSVC.
49731         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
49732         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
49733         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
49734         MSVC.
49736 2011-09-16  Bruno Haible  <bruno@clisp.org>
49738         Support for MSVC compiler: Ensure off_t gets defined.
49739         * lib/unistd.in.h: Include <sys/types.h>.
49740         * tests/test-fcntl-h.c: Check that off_t is defined.
49741         * tests/test-sys_stat.c: Likewise.
49742         * tests/test-sys_types.c: Likewise.
49744 2011-09-16  Eric Blake  <eblake@redhat.com>
49746         fdatasync: port to Solaris
49747         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
49748         * modules/fdatasync (Link): Document it.
49749         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
49751         fdatasync: port to MacOS X 10.7
49752         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
49753         declared.
49754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
49755         * modules/unistd (Makefile.am): Substitute it.
49756         * lib/unistd.in.h (fdatasync): Declare on MacOS.
49757         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
49759         fdatasync: minor improvements
49760         * modules/fdatasync (Depends-on): Add condition for fsync.
49761         * lib/fdatasync.c (fdatasync): Add comment.
49762         * tests/test-unistd-c++.cc: Test fdatasync.
49764         unistd: update refs to newer POSIX
49765         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
49766         Suggested by Bruno Haible.
49768         fdatasync: new module
49769         * modules/fsync (Description): Document difference to fdatasync.
49770         * modules/fdatasync: New module.
49771         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
49772         * lib/fdatasync.c (fdatasync): Likewise.
49773         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
49774         defaults.
49775         * modules/unistd (Makefile.am): Set witnesses.
49776         * lib/unistd.in.h (fdatasync): Declare.
49777         * MODULES.html.sh: Document it.
49778         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
49779         * modules/fdatasync-tests: New test.
49780         * tests/test-fdatasync.c: Likewise.
49782 2011-09-16  Eric Blake  <eblake@redhat.com>
49784         test-fsync: enhance tests
49785         * modules/fsync-tests (Depends-on): Add errno, for mingw.
49786         * tests/test-fsync.c (main): Enhance test.
49788 2011-09-15  Bruno Haible  <bruno@clisp.org>
49790         Support for MSVC compiler: Ensure ssize_t gets defined.
49791         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
49792         * doc/posix-headers/stdio.texi: Likewise.
49793         * modules/stdio (Depends-on): Add ssize_t.
49794         * modules/sys_socket (Depends-on): Likewise.
49795         * modules/sys_types (Depends-on): Likewise.
49796         * modules/sys_uio (Depends-on): Likewise.
49797         * modules/unistd (Depends-on): Likewise.
49798         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
49799         * tests/test-sys_types.c: Check that ssize_t is defined.
49801 2011-09-14  Bruno Haible  <bruno@clisp.org>
49803         Avoid using #, the m4 comment starter character, near brackets.
49804         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
49805         delimiter character in sed expressions.
49806         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
49807         Suggested by Eric Blake.
49809         Properly quote AC_CHECK_DECLS' 4th argument.
49810         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
49811         argument.
49812         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49813         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49814         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49815         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
49816         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49817         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
49818         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
49819         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
49820         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
49821         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49822         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
49823         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
49824         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49825         * m4/isinf.m4 (gl_ISINF): Likewise.
49826         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49827         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49828         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49829         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
49830         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
49831         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
49832         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49833         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
49834         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
49835         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49836         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49837         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
49839         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49840         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49841         Reported by Eric Blake.
49843         Properly quote AC_CHECK_DECL's 4th argument.
49844         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
49845         argument.
49846         * m4/argp.m4 (gl_ARGP): Likewise.
49847         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49848         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49849         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49850         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49851         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
49852         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
49853         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
49854         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49855         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49856         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49857         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49858         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49859         Reported by Eric Blake.
49861 2011-09-14  Eric Blake  <eblake@redhat.com>
49863         opendir: avoid compile warning
49864         * lib/opendir.c (includes): Always include errno.h.
49865         Reported by Tatsuro MATSUOKA.
49867 2011-09-14  Jim Meyering  <meyering@redhat.com>
49869         maint.mk: sc_tight_scope: propagate failure from sub-make
49870         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
49871         Reported by Martin von Gagern.
49873 2011-09-13  Bruno Haible  <bruno@clisp.org>
49875         tempname: Support for MSVC.
49876         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
49877         MSVC.
49878         * modules/tempname (Depends-on): Add fcntl-h.
49880 2011-09-13  Bruno Haible  <bruno@clisp.org>
49882         sys_time: Support for MSVC.
49883         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
49884         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
49885         include <winsock2.h>.
49886         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
49887         function declarations that collide with POSIX.
49888         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
49889         (Makefile.am): Substitute HAVE_WINSOCK2_H.
49891 2011-09-13  Bruno Haible  <bruno@clisp.org>
49893         stat: Support for MSVC.
49894         * lib/stat.c: Include pathmax.h.
49895         * modules/stat (Depends-on): Add pathmax.
49897         pathmax: Support for native Windows.
49898         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
49900 2011-09-12  Bruno Haible  <bruno@clisp.org>
49902         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
49903         * lib/dirent.in.h (struct dirent): New type.
49904         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
49905         DT_WHT): New macros.
49906         (DIR): New type.
49907         (opendir, closedir): Declare only if the module 'opendir' is enabled.
49908         (readdir, rewinddir): New declarations.
49909         * lib/dirent-private.h: New file.
49910         * lib/opendir.c: New file.
49911         * lib/readdir.c: New file.
49912         * lib/rewinddir.c: New file.
49913         * lib/closedir.c: New file.
49914         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
49915         * m4/opendir.m4: New file.
49916         * m4/readdir.m4: New file.
49917         * m4/rewinddir.m4: New file.
49918         * m4/closedir.m4: New file.
49919         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
49920         REPLACE_CLOSEDIR here.
49921         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
49922         readdir, rewinddir are declared.
49923         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
49924         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
49925         HAVE_REWINDDIR, HAVE_CLOSEDIR.
49926         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
49927         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
49928         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
49929         * modules/opendir: New file.
49930         * modules/readdir: New file.
49931         * modules/rewinddir: New file.
49932         * modules/closedir: New file.
49933         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
49934         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
49935         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
49936         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
49937         * NEWS: Mention the 'fchdir' change.
49939 2011-09-11  Bruno Haible  <bruno@clisp.org>
49941         asm-underscore.m4: Support for MSVC.
49942         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
49943         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
49945 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
49947         Doc about crypt functions.
49948         * doc/posix-functions/crypt.texi: Expand range of glibc versions
49949         needing for _GNU_SOURCE to get crypt.
49950         * doc/posix-functions/encrypt.texi: Likewise.
49951         * doc/posix-functions/setkey.texi: Likewise.
49953 2011-09-11  Bruno Haible  <bruno@clisp.org>
49955         doc: Update regarding MSVC 9.
49956         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
49957         tested".
49958         * doc/posix-functions/*.texi: Update with info about MSVC 9.
49959         * doc/posix-headers/*.texi: Likewise.
49960         * doc/pastposix-functions/*.texi: Likewise.
49961         * doc/glibc-functions/*.texi: Likewise.
49962         * doc/glibc-headers/*.texi: Likewise.
49964 2011-09-11  Bruno Haible  <bruno@clisp.org>
49966         unistd et al.: Don't assume <unistd.h> exists.
49967         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
49968         does not exist.
49969         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
49970         exist. But include <stdlib.h>.
49971         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
49972         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
49973         symlink() does not exist.
49974         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
49975         include <io.h> instead.
49976         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
49977         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
49978         include <direct.h> instead.
49979         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
49980         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
49981         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
49982         <io.h> instead.
49983         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
49984         correctly if the system does not have hard links.
49985         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
49986         <direct.h> instead.
49987         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
49988         it when looking for function declarations.
49989         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
49990         <direct.h> and <io.h> instead.
49991         * doc/posix-headers/unistd.texi: More details about MSVC problem.
49993 2011-09-11  Bruno Haible  <bruno@clisp.org>
49995         strcase: Support for MSVC.
49996         * modules/strcase (Status, Notice): Remove obsoletion mark.
49997         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
49998         * doc/posix-functions/strncasecmp.texi: Likewise.
50000         strings: Don't assume <strings.h> exists.
50001         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
50002         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
50003         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
50004         * doc/posix-headers/strings.texi: Mention the MSVC problem.
50006 2011-09-11  Bruno Haible  <bruno@clisp.org>
50008         dirent: Don't assume <dirent.h> exists.
50009         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
50010         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
50011         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
50012         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
50014 2011-09-11  Bruno Haible  <bruno@clisp.org>
50016         Fix wint_t on MSVC.
50017         * lib/wchar.in.h (wint_t): On MSVC, override it.
50018         * lib/wctype.in.h (wint_t): Likewise.
50019         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
50020         MSVC.
50021         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
50022         * doc/posix-headers/wctype.texi: Likewise.
50024 2011-09-11  Bruno Haible  <bruno@clisp.org>
50026         sys_types: Fix typo.
50027         * lib/sys_types.in.h: Fix typo in comment.
50028         Reported by Paul Eggert.
50030         Support for MSVC compiler: Ensure size_t gets defined.
50031         * modules/strings (Depends-on): Add 'sys_types'.
50032         * modules/sys_uio (Depends-on): Likewise.
50033         * lib/sys_uio.in.h: Update comment.
50035         C++ tests for module 'sys_types'.
50036         * modules/sys_types-c++-tests: New file.
50037         * tests/test-sys_types-c++.cc: New file.
50039         Tests for module 'sys_types'.
50040         * modules/sys_types-tests: New file.
50041         * tests/test-sys_types.c: New file.
50043         New module 'sys_types'.
50044         * lib/sys_types.in.h: New file.
50045         * m4/sys_types_h.m4: New file.
50046         * modules/sys_types: New file.
50047         * doc/posix-headers/sys_types.texi: Mention the new module and the
50048         size_t problem on MSVC 9.
50050 2011-09-11  Bruno Haible  <bruno@clisp.org>
50052         Support for MSVC compiler: Avoid division by a literal 0.
50053         * lib/math.in.h (NAN): Define through a function call also on MSVC.
50054         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
50055         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
50056         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
50057         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
50058         * tests/infinity.h: New file.
50059         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
50060         on MSVC.
50061         * tests/test-ceilf1.c: Include infinity.h.
50062         (main): Use Infinityf.
50063         * tests/test-ceil1.c: Include infinity.h.
50064         (main): Use Infinityd.
50065         * tests/test-ceill.c: Include infinity.h.
50066         (main): Use Infinityl.
50067         * tests/test-dprintf-posix.c: Include infinity.h.
50068         (test_function): Use Infinityd.
50069         * tests/test-floorf1.c: Include infinity.h.
50070         (main): Use Infinityf.
50071         * tests/test-floor1.c: Include infinity.h.
50072         (main): Use Infinityd.
50073         * tests/test-floorl.c: Include infinity.h.
50074         (main): Use Infinityl.
50075         * tests/test-fprintf-posix.c: Include infinity.h.
50076         (test_function): Use Infinityd.
50077         * tests/test-frexp.c: Include infinity.h.
50078         (main): Use Infinityd.
50079         * tests/test-frexpl.c: Include infinity.h.
50080         (main): Use Infinityl.
50081         * tests/test-isfinite.c: Include infinity.h.
50082         (test_isfinitef): Use Infinityf.
50083         (test_isfinited): Use Infinityd.
50084         (test_isfinitel): Use Infinityl.
50085         * tests/test-isinf.c: Include infinity.h.
50086         (test_isinff): Use Infinityf.
50087         (test_isinfd): Use Infinityd.
50088         (test_isinfl): Use Infinityl.
50089         * tests/test-isnan.c: Include infinity.h.
50090         (test_float): Use Infinityf.
50091         (test_double): Use Infinityd.
50092         (test_long_double): Use Infinityl.
50093         * tests/test-isnanf.h: Include infinity.h.
50094         (main): Use Infinityf.
50095         * tests/test-isnand.h: Include infinity.h.
50096         (main): Use Infinityd.
50097         * tests/test-isnanl.h: Include infinity.h.
50098         (main): Use Infinityl.
50099         * tests/test-ldexpl.c: Include infinity.h.
50100         (main): Use Infinityl.
50101         * tests/test-printf-posix.h: Include infinity.h.
50102         (test_function): Use Infinityd.
50103         * tests/test-roundf1.c: Include infinity.h.
50104         (main): Use Infinityf.
50105         * tests/test-round1.c: Include infinity.h.
50106         (main): Use Infinityd.
50107         * tests/test-roundl.c: Include infinity.h.
50108         (main): Use Infinityl.
50109         * tests/test-signbit.c: Include infinity.h.
50110         (test_signbitf): Use Infinityf.
50111         (test_signbitd): Use Infinityd.
50112         (test_signbitl): Use Infinityl.
50113         * tests/test-snprintf-posix.h: Include infinity.h.
50114         (test_function): Use Infinityd, Infinityl.
50115         * tests/test-sprintf-posix.h: Include infinity.h.
50116         (test_function): Use Infinityd, Infinityl.
50117         * tests/test-truncf1.c: Include infinity.h.
50118         (main): Use Infinityf.
50119         * tests/test-trunc1.c: Include infinity.h.
50120         (main): Use Infinityd.
50121         * tests/test-truncl.c: Include infinity.h.
50122         (main): Use Infinityl.
50123         * tests/test-vasnprintf-posix.c: Include infinity.h.
50124         (test_function): Use Infinityd, Infinityl.
50125         * tests/test-vasprintf-posix.c: Include infinity.h.
50126         (test_function): Use Infinityd, Infinityl.
50127         * modules/ceilf-tests (Files): Add tests/infinity.h.
50128         * modules/ceil-tests (Files): Likewise.
50129         * modules/ceill-tests (Files): Likewise.
50130         * modules/dprintf-posix-tests (Files): Likewise.
50131         * modules/floorf-tests (Files): Likewise.
50132         * modules/floor-tests (Files): Likewise.
50133         * modules/floorl-tests (Files): Likewise.
50134         * modules/fprintf-posix-tests (Files): Likewise.
50135         * modules/frexp-tests (Files): Likewise.
50136         * modules/frexp-nolibm-tests (Files): Likewise.
50137         * modules/frexpl-tests (Files): Likewise.
50138         * modules/frexpl-nolibm-tests (Files): Likewise.
50139         * modules/isfinite-tests (Files): Likewise.
50140         * modules/isinf-tests (Files): Likewise.
50141         * modules/isnan-tests (Files): Likewise.
50142         * modules/isnanf-tests (Files): Likewise.
50143         * modules/isnanf-nolibm-tests (Files): Likewise.
50144         * modules/isnand-tests (Files): Likewise.
50145         * modules/isnand-nolibm-tests (Files): Likewise.
50146         * modules/isnanl-tests (Files): Likewise.
50147         * modules/isnanl-nolibm-tests (Files): Likewise.
50148         * modules/ldexpl-tests (Files): Likewise.
50149         * modules/printf-posix-tests (Files): Likewise.
50150         * modules/roundf-tests (Files): Likewise.
50151         * modules/round-tests (Files): Likewise.
50152         * modules/roundl-tests (Files): Likewise.
50153         * modules/signbit-tests (Files): Likewise.
50154         * modules/snprintf-posix-tests (Files): Likewise.
50155         * modules/sprintf-posix-tests (Files): Likewise.
50156         * modules/truncf-tests (Files): Likewise.
50157         * modules/trunc-tests (Files): Likewise.
50158         * modules/truncl-tests (Files): Likewise.
50159         * modules/vasnprintf-posix-tests (Files): Likewise.
50160         * modules/vasprintf-posix-tests (Files): Likewise.
50161         * modules/vdprintf-posix-tests (Files): Likewise.
50162         * modules/vfprintf-posix-tests (Files): Likewise.
50163         * modules/vprintf-posix-tests (Files): Likewise.
50164         * modules/vsnprintf-posix-tests (Files): Likewise.
50165         * modules/vsprintf-posix-tests (Files): Likewise.
50166         * modules/xprintf-posix-tests (Files): Likewise.
50168 2011-09-11  Bruno Haible  <bruno@clisp.org>
50170         Ensure pid_t gets defined.
50171         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
50172         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
50173         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
50174         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
50175         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
50176         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
50177         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
50178         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50179         * tests/test-fcntl-h.c: Check that pid_t is defined.
50180         * tests/test-sched.c: Likewise.
50181         * tests/test-termios.c: Likewise.
50182         * tests/test-time.c: Likewise.
50183         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
50184         * doc/posix-headers/signal.texi: Likewise.
50185         * doc/posix-headers/sys_types.texi: Likewise.
50186         * doc/posix-headers/time.texi: Likewise.
50188 2011-09-11  Bruno Haible  <bruno@clisp.org>
50190         acl: Fix compilation on Solaris 10 (older version).
50191         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
50192         of ACE_EVERYONE.
50193         * lib/set-mode-acl.c (qset_acl): Likewise.
50194         Reported by Christian Jullien <eligis@orange.fr>.
50196 2011-09-10  Bruno Haible  <bruno@clisp.org>
50198         iconv, unsetenv: Add support for MSVC compiler.
50199         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
50200         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
50202 2011-09-10  Bruno Haible  <bruno@clisp.org>
50204         *printf: Add support for MSVC compiler.
50205         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
50206         handles the exception caused by the %n directive. When cross-compiling,
50207         guess no on native Windows.
50208         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
50209         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
50210         emulate it through vsnprintf.
50211         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
50212         * doc/posix-functions/dprintf.texi: Update documentation regarding
50213         MSVC 9.
50214         * doc/posix-functions/fprintf.texi: Likewise.
50215         * doc/posix-functions/printf.texi: Likewise.
50216         * doc/posix-functions/snprintf.texi: Likewise.
50217         * doc/posix-functions/sprintf.texi: Likewise.
50218         * doc/posix-functions/swprintf.texi: Likewise.
50219         * doc/posix-functions/vdprintf.texi: Likewise.
50220         * doc/posix-functions/vfprintf.texi: Likewise.
50221         * doc/posix-functions/vprintf.texi: Likewise.
50222         * doc/posix-functions/vsnprintf.texi: Likewise.
50223         * doc/posix-functions/vsprintf.texi: Likewise.
50224         * doc/glibc-functions/asprintf.texi: Likewise.
50225         * doc/glibc-functions/obstack_printf.texi: Likewise.
50226         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50227         * doc/glibc-functions/vasprintf.texi: Likewise.
50229 2011-09-10  Bruno Haible  <bruno@clisp.org>
50231         nocrash: Add support for native Windows.
50232         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
50234 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
50235             Bruno Haible  <bruno@clisp.org>
50237         absolute-header, include-next: Add support for MSVC compiler.
50238         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
50239         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
50240         directory separator in #line directives.
50241         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
50242         recognize also backslash as directory separator in #line directives.
50244 2011-09-08  Jim Meyering  <meyering@redhat.com>
50246         maint.mk: mark the post-release commit log with "maint: " prefix
50247         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
50248         one-line commit-log summary.
50250 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
50251             Bruno Haible  <bruno@clisp.org>
50253         Doc about crypt functions.
50254         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
50255         systems.
50256         * doc/posix-functions/encrypt.texi: Likewise.
50257         * doc/posix-functions/setkey.texi: Likewise.
50259 2011-09-08  Simon Josefsson  <simon@josefsson.org>
50261         * lib/gc.h: Fix copyright header.
50263 2011-09-07  Bruno Haible  <bruno@clisp.org>
50265         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
50266         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
50267         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
50269 2011-09-07  Bruno Haible  <bruno@clisp.org>
50271         openat: Work around compilation error with OSF/1 5.1 DTK cc.
50272         * lib/fopen.c: Use different syntax for include of <stdio.h>.
50273         * lib/freopen.c: Likewise.
50274         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
50275         * lib/lstat.c: Likewise.
50276         * lib/stat.c: Likewise.
50277         * lib/open.c: Use different syntax for include of <fcntl.h>.
50278         * lib/openat.c: Include fcntl.h again, explicitly.
50280 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
50282         parse-datetime: document the newly accepted format
50283         * doc/parse-datetime.texi (Combined date and time of day items):
50284         New section.
50286 2011-09-06  Bruno Haible  <bruno@clisp.org>
50288         acl: Fix a test failure on newer Solaris 10 with ZFS.
50289         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
50290         ENOSYS as no ACL.
50291         Reported by Jim Meyering.
50293 2011-09-06  Bruno Haible  <bruno@clisp.org>
50295         acl: Update for AIX >= 5.3 with NFS.
50296         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
50297         ENOSYS as no ACL.
50299         acl: Fix a test failure on AIX >= 5.3 with NFS.
50300         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
50301         as no ACL.
50303 2011-09-06  Bruno Haible  <bruno@clisp.org>
50305         acl: Fix a test failure on IRIX 6.5 with NFS.
50306         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
50307         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
50308         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
50309         * lib/copy-acl.c (qcopy_acl): Likewise.
50311 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50313         openat: port to AIX 7.1 with large files
50314         AIX 7.1 does a "#define openat open64at" if large files are in use,
50315         so we can't simply #undef openat.  Use the orig_openat trick (similar
50316         to orig_open in lib/open.c) to work around the problem.  Problem
50317         reported by Kevin Brott for GNU tar, in the thread containing
50318         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
50319         * lib/openat.c (__need_system_fcntl_h): Define first.
50320         Include <fcntl.h> and <sys/types.h> before undefining.
50321         (orig_openat) [HAVE_OPENAT]: New inline function.
50322         (openat) [HAVE_OPENAT]: Do not undef.
50323         (rpl_openat): Use orig_openat, not openat.
50325 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
50326             Bruno Haible  <bruno@clisp.org>
50328         acl: Avoid errors on NonStop Kernel.
50329         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
50330         ENOTSUP errors.
50332 2011-09-05  Bruno Haible  <bruno@clisp.org>
50334         acl: Clean up Solaris code.
50335         * lib/acl-internal.h: Remove no-op #if.
50336         * lib/file-has-acl.c: Likewise.
50337         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
50338         * lib/copy-acl.c (qcopy_acl): Likewise.
50340 2011-09-05  Bruno Haible  <bruno@clisp.org>
50342         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
50343         binaries built on the original Solaris 10.
50344         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
50345         trivial.
50347 2011-09-05  Bruno Haible  <bruno@clisp.org>
50349         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
50350         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
50351         10.
50352         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
50353         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
50354         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
50355         instead of acl_get, facl_get, acl_set, facl_set.
50357 2011-09-05  Bruno Haible  <bruno@clisp.org>
50359         copy-file: Try unit tests on more file systems.
50360         * tests/test-copy-file-1.sh: New file.
50361         * tests/test-copy-file-2.sh: New file.
50362         * modules/copy-file-tests (Files): Add them.
50363         (Makefile.am): Add them to TESTS.
50365         acl: Try unit tests on more file systems.
50366         * tests/test-file-has-acl-1.sh: New file.
50367         * tests/test-file-has-acl-2.sh: New file.
50368         * tests/test-set-mode-acl-1.sh: New file.
50369         * tests/test-set-mode-acl-2.sh: New file.
50370         * tests/test-copy-acl-1.sh: New file.
50371         * tests/test-copy-acl-2.sh: New file.
50372         * modules/acl-tests (Files): Add them.
50373         (Makefile.am): Add them to TESTS.
50375 2011-09-04  Bruno Haible  <bruno@clisp.org>
50377         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
50378         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
50379         10.
50380         (OLD_ALLOW, OLD_DENY): New macros.
50381         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
50382         ACE_ACCESS_ALLOWED_ACE_TYPE.
50383         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
50384         ACE_ACCESS_DENIED_ACE_TYPE.
50385         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
50386         (NEW_ACE_EXECUTE): Fix value.
50387         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
50388         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
50389         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
50390         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
50391         NEW_ACE_SYNCHRONIZE): New macros.
50392         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
50393         instead of acl_fromtext, acl_set, facl_set.
50394         Fixes a coreutils/tests/cp/perm failure.
50396 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
50398         openat: test for fstatat (..., 0) bug
50399         Further testing with tar suggests that fstatat (..., 0)
50400         does not work in general, on AIX 7.1; see
50401         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
50402         So, give up entirely on AIX 7.1's fstatat, and fall back on our
50403         replacement fstatat (which is what older AIX releases were using
50404         anyway).
50405         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
50406         use is now changed to orig_fstatat.  This was probably the right
50407         thing to do anyway.
50408         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
50409         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
50410         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
50411         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
50412         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
50413         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
50414         if the bug is found.
50416         openat: test for fstatat (AT_FDCWD, ..., 0) bug
50417         This tests for another fstatat bug on AIX 7.1:
50418         fstatat (AT_FDCWD, ..., 0) does not work.  See
50419         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
50420         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
50421         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
50422         (rpl_fstatat): Adjust so that it works around either (or both)
50423         bugs if present.
50424         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
50426 2011-09-03  Karl Berry  <karl@gnu.org>
50428         * doc/regex.texi (Character Class Operators): Avoid literal ":"
50429         in index entries.
50431 2011-09-02  Bruno Haible  <bruno@clisp.org>
50433         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
50434         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
50435         values of AR, ARFLAGS, RANLIB.
50436         Reported by John W. Eaton <jwe@gnu.org> for Octave.
50438 2011-09-02  Bruno Haible  <bruno@clisp.org>
50440         Find 'ar' program that fits with --host argument.
50441         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
50443 2011-09-02  Bruno Haible  <bruno@clisp.org>
50445         tests: init.sh: Support any non-GNU diff.
50446         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
50447         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
50448         Solaris 8.
50450 2011-09-02  Bruno Haible  <bruno@clisp.org>
50452         tests: init.sh: work also with any non-GNU diff that supports -u
50453         * tests/init.sh: Relax check for diff -u support.
50454         Rather than checking for GNU diff via --version, simply check
50455         for support for -u itself.  Useful at least on OpenBSD 4.9,
50456         AIX 7.1, IRIX 6.5, and Solaris 10.
50458 2011-09-01  Bruno Haible  <bruno@clisp.org>
50460         strtoimax, strtoumax: Document problem on HP-UX 11.
50461         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
50462         * doc/posix-functions/strtoumax.texi: Likewise.
50464 2011-09-01  Bruno Haible  <bruno@clisp.org>
50466         strtoumax: Avoid link error on OSF/1 with DTK cc.
50467         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
50468         defined as a function.
50469         * modules/strtoumax (Depends-on, configure.ac): Test only whether
50470         strtoumax is defined, not whether it is declared.
50472 2011-09-01  Bruno Haible  <bruno@clisp.org>
50474         strtoimax: Avoid link error on OSF/1 with DTK cc.
50475         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
50476         defined as a function.
50477         * modules/strtoimax (Depends-on, configure.ac): Test only whether
50478         strtoimax is defined, not whether it is declared.
50480 2011-09-01  Bruno Haible  <bruno@clisp.org>
50482         imaxdiv: Avoid link error on OSF/1 with DTK cc.
50483         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
50484         as a function.
50485         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
50486         whether it is declared.
50488 2011-09-01  Bruno Haible  <bruno@clisp.org>
50490         imaxabs: Avoid link error on OSF/1 with DTK cc.
50491         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
50492         as a function.
50493         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
50494         whether it is declared.
50496 2011-09-01  Bruno Haible  <bruno@clisp.org>
50498         Tests for module 'strtoumax'.
50499         * modules/strtoumax-tests: New file.
50500         * tests/test-strtoumax.c: New file.
50502         Tests for module 'strtoimax'.
50503         * modules/strtoimax-tests: New file.
50504         * tests/test-strtoimax.c: New file.
50506         Tests for module 'imaxdiv'.
50507         * modules/imaxdiv-tests: New file.
50508         * tests/test-imaxdiv.c: New file.
50510         Tests for module 'imaxabs'.
50511         * modules/imaxabs-tests: New file.
50512         * tests/test-imaxabs.c: New file.
50514 2011-09-01  Bruno Haible  <bruno@clisp.org>
50516         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
50517         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
50518         pthread_create.
50520 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50522         openat: work around AIX 7.1 fstatat issue
50523         This should fix the problem that was not properly fixed
50524         in the previous change, dated 2011-08-30.
50525         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
50526         __need_system_stat_h defined.
50527         (orig_fstatat) [HAVE_FSTATAT]: New function.
50528         (rpl_fstatat): Go back to the old way of doing things,
50529         except call orig_fstatat instead of fstatat.
50530         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
50531         Remove unnecessary check whether fstatat fills in st_size etc.
50533 2011-09-01  Bruno Haible  <bruno@clisp.org>
50535         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
50536         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
50537         just include the system's header.
50539 2011-08-31  Jim Meyering  <meyering@redhat.com>
50541         tests: avoid spurious assertion failure in test-float.c on ppc64
50542         * tests/test-float.c (test_long_double): Comment out an assertion,
50543         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
50544         with gcc-4.4.4.
50546         maint: indent with spaces, not TABs
50547         I need to get in the habit of running gnulib's "make check".
50548         Both of these would have been caught.
50549         * m4/largefile.m4: Indent with spaces, not TABs.
50550         * lib/parse-datetime.y (iso_8601_time): Likewise.
50551         Spotted by Pádraig Brady.
50553         test-parse-datetime.c: accommodate a relatively strict gcc warning
50554         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
50555         to avoid a warning from gcc's -Werror=missing-declarations.
50556         Insert a few spaces-before-funcall-parenthesis.
50558 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
50560         parse-datetime: accept ISO 8601 date and time rep with "T" separator
50561         The parser now accepts ISO 8601 date-time strings with "T" as the
50562         separator.  It has long parsed dates like "2004-02-29 16:21:42"
50563         with a space between the date and time strings.  Now it also parses
50564         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
50565         variants like "2004-02-29T16:21:42.333-07:00"
50566         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
50567         of day representation using the 'T' separator character.
50568         * doc/parse-datetime.texi (General date syntax): replace use of
50569         deprecated --iso-8601 option with --rfc-3339 in example of date
50570         command output formats that can be parsed.
50571         * tests/test-parse-datetime.c (tm_diff): New function, taken from
50572         lib/parse-datetime.y.
50573         (gmt_offset): New function.
50574         (main): Add additional test cases to validate ISO8601 extended
50575         date and time of day parsing.
50577 2011-08-31  Bruno Haible  <bruno@clisp.org>
50579         freopen: Documentation.
50580         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
50581         name.
50582         Reported by Claudio Bley <claudio.bley@gmail.com>.
50584 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
50586         freopen: Don't crash if the filename argument is NULL.
50587         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
50588         NULL.
50590 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50592         openat: work around AIX 7.1 fstatat bug
50593         Problem reported by Kevin Brott for GNU tar, in the thread containing
50594         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
50595         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
50596         FSTATAT_ST_SIZE_ETC_BROKEN.
50597         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
50598         rpl_fstatat.
50599         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
50600         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
50601         AC_CHECK_FUNCS_ONCE for fstatat.
50602         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
50603         fchmodat, mkdirat, openat and unlinkat.
50605 2011-08-30  Bruno Haible  <bruno@clisp.org>
50607         Avoid endless recursions if config.h includes some header files.
50608         * lib/fopen.c (__need_FILE): Define already before including config.h.
50609         * lib/freopen.c (__need_FILE): Likewise.
50610         * lib/open.c (__need_system_fcntl_h): Likewise.
50611         * lib/stat.c (__need_system_sys_stat_h): Likewise.
50612         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
50613         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
50615 2011-08-25  Karl Berry  <karl@gnu.org>
50617         * config/srclist.txt (ylwrap): new try.
50618         * build-aux/ylwrap: new file.
50620 2011-08-23  Bruno Haible  <bruno@clisp.org>
50622         tmpdir: Use a good default directory on native Windows.
50623         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
50624         (P_tmpdir): Default to _P_tmpdir on native Windows.
50625         (path_search): On native Windows, try the value returned by GetTempPath
50626         before trying P_tmpdir.
50627         * modules/tmpdir (Depends-on): Add pathmax.
50628         Suggested by John Darrington <john@darrington.wattle.id.au>.
50630 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
50632         doc: fix typo in README-release
50633         * top/README-release: Capitalize first word of a sentence.
50635 2011-08-19  Jim Meyering  <meyering@redhat.com>
50637         fts: do not exhaust memory when processing million-entry directories
50638         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
50639         directory would require about 256*N bytes of memory.  Thus, it was
50640         easy to construct a directory too large to be processed by any of
50641         those tools.  With this change, fts' maximum memory utilization is
50642         now limited to around 30MB.
50643         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
50644         (fts_read): When we've processed the final entry (i.e., when
50645         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
50646         using the parent entry to read any remaining entries.  Dispatch
50647         depending on what fts_build returns:
50648         - NULL+stop, aka failure: stop
50649         - NULL otherwise: move up in the dir hierarchy
50650         - non-NULL: handle this new entry
50651         (fts_build): Declare and use new local, continue_readdir.
50652         Prepare to be called from fts_read, when the entries
50653         from a partially-read directory have just been exhausted.
50654         In that case, we'll skip the opendir and instead use the parent's
50655         fts_dirp and derive dir_fd from that.
50656         Finally, in the readdir loop, if we read max_entries entries,
50657         exit the loop ensuring *not* to call closedir.  This is required
50658         so that fts_dirp can be reused on a subsequent call.
50659         Prompted by Ben England's report of memory exhaustion in find
50660         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
50662         maint: fts: move decl of `dp' down into while loop; split a long line
50663         * lib/fts.c (fts_build): No semantic change.
50665         fts: add/use new struct member, fts_dirp
50666         We are about to use this to manage any directory with
50667         too many entries to read all of them into memory at once.
50668         To do that, we'll need to save the DIR* pointer in each
50669         affected FTSENT struct.
50670         * lib/fts_.h: Include <dirent.h>.
50671         (struct FTSENT) [fts_dirp]: New member.
50672         * lib/fts.c (closedir_and_clear): Define.
50673         Use it in place of closedir so that we are sure to
50674         clear the new fts_dirp member when done with it.
50675         (fts_alloc): Initialize the new member.
50676         (fts_lfree): Free, if needed.
50678         maint: fts: give __opendir2 a new parameter and rename
50679         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
50680         than surreptitiously using sole caller's "dir_fd".
50681         (fts_opendir): Rename from __opendir2.
50683         maint: fts.c: remove __opendir2's now-unused parameter, oflag
50684         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
50686         maint: fts.c: correct off-by-one indentation
50687         * lib/fts.c (fts_build): Correct indentation, change style
50688         of a couple of block comments, and bracing style.
50690         maint: fts.c: move __opendir2 #define "up" out of function body
50691         * lib/fts.c (__opendir2): Move "up".  No semantic change.
50693         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
50694         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
50695         out for a long time and besides was useful only on BSD systems.
50697 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
50699         regex: port to Stratus OpenVOS
50700         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
50701         define to empty, rather than attempting nonportable optimizations.
50702         Problem reported by Paul Green in:
50703         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
50704         and fix suggested by Eric Blake in:
50705         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
50707 2011-08-17  Eric Blake  <eblake@redhat.com>
50709         getcwd: fix test failures on mingw
50710         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
50711         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
50712         test if long directory cannot be created, and allow mingw errno.
50714         getcwd-lgpl: fix m4 to match relaxed test for BSD
50715         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
50716         (gl_FUNC_GETCWD_SIGNATURE): New macro.
50717         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
50718         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
50719         signature problem.
50721         getcwd: fix compilation on mingw64
50722         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
50723         getcwd.
50724         Reported by Marc-André Lureau.
50726         pipe2: silence compiler warning
50727         * lib/pipe2.c (pipe2): Hide label if it is not used.
50729 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
50731         relocatable-prog: fix link error
50732         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
50733         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
50734         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
50735         into modules/relocatable-lib without noticing that
50736         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
50737         also needs to build relocatable.c.
50739 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50741         getaddrinfo: fix sh typo in gai_strerrorA decl checking
50742         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
50743         shell code: it contained a 'break' that was not in a loop.
50744         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
50745         via a shell-language loop; this may have been true in old Autoconf
50746         versions, but it's not true in Autoconf 2.68.  I found this bug
50747         when testing coreutils git on Solaris 8, whose shell complains
50748         about the syntax error.
50750 2011-08-12  Simon Josefsson  <simon@josefsson.org>
50752         * lib/base64.c: Fix comment to reference RFC 4648.
50753         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
50754         <gvtulder@gmail.com>.
50756 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50758         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
50760         po/Makefile.in.in: fix make -q problem
50761         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
50762         rule, since there's no file named 'check-macro-version' and its
50763         use as a file breaks make -q.
50764         (all): Don't depend on check-macro-version.
50765         (CHECK_MACRO_VERSION): New macro.
50766         (stamp-po): Use it.
50768         configmake: fix make -q problem
50769         * modules/configmake (configmake.h): Update configmake.h's time stamp
50770         even if the file does not change.  Otherwise, 'make -q' fails.
50771         Problem reported by Simon Josefsson in
50772         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
50774 2011-08-11  Jim Meyering  <meyering@redhat.com>
50776         git-version-gen: correct the advice in a comment
50777         * build-aux/git-version-gen: Correct comment.
50778         Don't recommend to list .tarball-version in .gitignore.
50780 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50782         base64: fix off-by-one buffer size bug
50783         Problem and (trivial) fix reported by Gijs van Tulder in
50784         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
50785         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
50786         * tests/test-base64.c (main): Catch the bug.
50788 2011-08-10  Eric Blake  <eblake@redhat.com>
50790         closein: correct comments
50791         * lib/closein.c (close_stdin): Improve comments.
50793 2011-08-09  Bruno Haible  <bruno@clisp.org>
50795         More tests for 'fseeko'.
50796         * tests/test-fseeko3.c: New file, from Eric Blake.
50797         * tests/test-fseeko3.sh: New file.
50798         * modules/fseeko-tests (Files): Add them.
50799         (TESTS): Add test-fseeko3.sh.
50800         (check_PROGRAMS): Add test-fseeko3.
50802 2011-08-09  Eric Blake  <eblake@redhat.com>
50804         fseeko: remove unneeded hack
50805         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
50807         fseeko: fix bug on glibc
50808         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
50809         Reported by John W. Eaton.
50811 2011-08-08  Bruno Haible  <bruno@clisp.org>
50813         unictype/base: Fix interoperability with preinstalled libunistring.
50814         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
50815         Reported by Simon Josefsson.
50817 2011-08-08  Bruno Haible  <bruno@clisp.org>
50819         iswblank: Detect declaration correctly.
50820         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
50821         AC_CHECK_DECLS invocation.
50823 2011-08-08  Bruno Haible  <bruno@clisp.org>
50825         tcgetsid: Detect declaration correctly.
50826         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
50827         AC_CHECK_DECLS invocation.
50828         Reported by Simon Josefsson.
50830 2011-08-08  Eric Blake  <eblake@redhat.com>
50832         largefile: fix typo that regressed large file support
50833         * modules/largefile (configure.ac-early): Fix section name.
50835 2011-08-06  Karl Berry  <karl@gnu.org>
50837         * MODULES.html.sh (func_all_files): _Noreturn is no longer
50838         a separate module.
50840 2011-08-05  Simon Josefsson  <simon@josefsson.org>
50842         openat: Fix warnings and commens when building unlinkat.c on Hurd.
50843         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
50844         get prototype for free.
50846 2011-08-04  Bruno Haible  <bruno@clisp.org>
50848         Tests for module 'pathmax'.
50849         * modules/pathmax-tests: New file.
50850         * tests/test-pathmax.c: New file.
50852         canonicalize-lgpl: Support larger filenames on the Hurd.
50853         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
50854         Reported by Paul Eggert.
50856         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
50857         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
50858         * lib/chdir-long.h: Include pathmax.h.
50859         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
50860         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
50861         (PATH_MAX): Remove code that is done by pathmax.h.
50862         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
50863         * lib/tmpfile.c: Add a comment.
50864         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
50865         * modules/chdir-long (Depends-on): Add pathmax.
50866         * modules/getcwd (Depends-on): Add pathmax.
50867         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
50868         is not defined.
50869         * doc/posix-headers/limits.texi: Mention the pathmax module.
50870         * NEWS: Mention the change.
50872 2011-08-02  Bruno Haible  <bruno@clisp.org>
50874         pthread_sigmask: Actually use results of gl_THREADLIB.
50875         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
50876         gl_THREADLIB, not gl_[]THREADLIB.
50877         Reported by Eric Blake.
50879 2011-08-02  Jim Meyering  <meyering@redhat.com>
50881         maint.mk: relax the default _gl_TS_function_match regexp
50882         * top/maint.mk (_gl_TS_function_match): Don't require at least one
50883         space between function name and "(" in an "extern" declaration.
50884         That would fail to match a decl with no space there: extern void foo();
50886 2011-07-31  Iain Nicol  <iain@thenicols.net>
50888         git-version-gen: document that EXTRA_DIST must include .version
50889         * build-aux/git-version-gen: In the how-to-use comment, document
50890         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
50891         will fail when run from an unpacked distribution tarball.
50893 2011-08-01  Bruno Haible  <bruno@clisp.org>
50895         wctype-h: Fix last change.
50896         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
50897         REPLACE_TOWLOWER to 0.
50898         Reported by Sam Steingold <sds@gnu.org>.
50900 2011-07-31  Bruno Haible  <bruno@clisp.org>
50902         frexpl: Update autoconf test.
50903         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
50904         according to changes of 2011-06-20.
50906 2011-07-31  Bruno Haible  <bruno@clisp.org>
50908         sys_utsname: Add support for Minix.
50909         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
50910         <sys/utsname.h>.
50911         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
50912         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
50914 2011-07-31  Bruno Haible  <bruno@clisp.org>
50916         strings: Add support for Minix.
50917         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
50918         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
50919         * doc/posix-headers/strings.texi: Document the Minix problem.
50921 2011-07-31  Bruno Haible  <bruno@clisp.org>
50923         wctype-h: Add support for Minix.
50924         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
50925         REPLACE_TOWLOWER.
50926         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
50927         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
50928         REPLACE_ISWCNTRL.
50930 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
50932         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
50933         This is a performance improvement for 64-bit hosts: it causes the
50934         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
50936 2011-07-31  Bruno Haible  <bruno@clisp.org>
50938         stdioext: Add support for Minix.
50939         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
50940         * lib/fpurge.c (fpurge): Likewise.
50941         * lib/freadahead.c (freadahead): Likewise.
50942         * lib/freadable.c (freadable): Likewise.
50943         * lib/freading.c (freading): Likewise.
50944         * lib/freadptr.c (freadptr): Likewise.
50945         * lib/freadseek.c (freadptrinc): Likewise.
50946         * lib/fseeko.c (rpl_fseeko): Likewise.
50947         * lib/fseterr.c (fseterr): Likewise.
50948         * lib/fwritable.c (fwritable): Likewise.
50949         * lib/fwriting.c (fwriting): Likewise.
50950         * lib/fflush.c (clear_ungetc_buffer): Update comment.
50951         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
50953 2011-07-31  Bruno Haible  <bruno@clisp.org>
50955         errno: Port to Minix.
50956         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
50957         ECONNABORTED are defined.
50958         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
50959         GNULIB_defined_ECONNABORTED): New macros.
50960         * lib/strerror-override.h (strerror_override): Test also
50961         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
50962         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
50963         ECONNABORTED.
50964         * doc/posix-headers/errno.texi: Mention the Minix problem.
50966 2011-07-31  Bruno Haible  <bruno@clisp.org>
50968         Work around declaration collisions on Minix.
50969         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
50970         defined, set REPLACE_MBSINIT.
50971         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
50972         defined, set REPLACE_MBRTOWC.
50973         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
50974         set REPLACE_MBRLEN.
50975         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
50976         defined, set REPLACE_MBSRTOWCS.
50977         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
50978         defined, set REPLACE_WCRTOMB.
50979         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
50980         defined, set REPLACE_WCSRTOMBS.
50982 2011-07-31  Bruno Haible  <bruno@clisp.org>
50984         Add support for Minix with ACK compiler.
50985         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
50986         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
50987         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
50989 2011-07-31  Bruno Haible  <bruno@clisp.org>
50991         Documentation about Minix.
50992         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
50993         * doc/glibc-headers/*.texi: Likewise.
50994         * doc/posix-functions/*.texi: Likewise.
50995         * doc/glibc-functions/*.texi: Likewise.
50997 2011-07-31  Bruno Haible  <bruno@clisp.org>
50999         snippet/warn-on-use: Fix indentation.
51000         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
51002 2011-07-25  Jim Meyering  <meyering@redhat.com>
51004         tests: test-update-copyright.sh: remove unnecessary "rm" commands
51005         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
51006         commands.
51008 2011-07-27  Jim Meyering  <meyering@redhat.com>
51010         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
51011         * top/maint.mk (gl_extract_significant_defines_): Now that
51012         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
51013         gnulib/lib/signal.in.h, and now that we recommend to
51014         define-if-undefined those two symbols in application code,
51015         we must filter them out of the "significant" list.
51016         This avoids a "make syntax-check" failure in coreutils.
51018 2011-07-26  Eric Blake  <eblake@redhat.com>
51020         warnings: add comments about previous patch
51021         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
51022         * m4/include_next.m4: Likewise.
51023         * m4/warn-on-use.m4: Likewise.
51024         * m4/warnings.m4: Likewise, and simplify use.
51025         Suggested by Stefano Lattarini.
51027         include-next, warnings: support older autoconf
51028         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
51029         AS_VAR_PUSHDEF in a way that works with older autoconf.
51030         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
51031         Reported by Daniel P. Berrange.
51033 2011-07-25  Bruno Haible  <bruno@clisp.org>
51035         fseek, ftell: Fix doc.
51036         * doc/posix-functions/fseek.texi: Reword statement about
51037         AC_SYS_LARGEFILE.
51038         * doc/posix-functions/ftell.texi: Likewise.
51040 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51041             Bruno Haible  <bruno@clisp.org>
51043         Add dependencies to the 'largefile' module.
51044         * modules/fopen (Depends-on): Add 'largefile'.
51045         * modules/freopen (Depends-on): Likewise.
51046         * modules/fseeko (Depends-on): Likewise.
51047         * modules/ftello (Depends-on): Likewise.
51048         * modules/glob (Depends-on): Likewise.
51049         * modules/lseek (Depends-on): Likewise.
51050         * modules/lstat (Depends-on): Likewise.
51051         * modules/mkostemp (Depends-on): Likewise.
51052         * modules/mkostemps (Depends-on): Likewise.
51053         * modules/mkstemp (Depends-on): Likewise.
51054         * modules/mkstemps (Depends-on): Likewise.
51055         * modules/open (Depends-on): Likewise.
51056         * modules/openat (Depends-on): Likewise.
51057         * modules/pread (Depends-on): Likewise.
51058         * modules/pwrite (Depends-on): Likewise.
51059         * modules/scandir (Depends-on): Likewise.
51060         * modules/stat (Depends-on): Likewise.
51061         * modules/tmpfile (Depends-on): Likewise.
51062         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
51063         since the containing module now depends on the largefile module.
51064         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
51065         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
51066         off_t is fixed by gnulib.
51067         * doc/posix-functions/freopen.texi: Likewise.
51068         * doc/posix-functions/fseeko.texi: Likewise.
51069         * doc/posix-functions/fstatat.texi: Likewise.
51070         * doc/posix-functions/ftello.texi: Likewise.
51071         * doc/posix-functions/glob.texi: Likewise.
51072         * doc/posix-functions/lseek.texi: Likewise.
51073         * doc/posix-functions/lstat.texi: Likewise.
51074         * doc/posix-functions/mkstemp.texi: Likewise.
51075         * doc/posix-functions/open.texi: Likewise.
51076         * doc/posix-functions/openat.texi: Likewise.
51077         * doc/posix-functions/pread.texi: Likewise.
51078         * doc/posix-functions/pwrite.texi: Likewise.
51079         * doc/posix-functions/scandir.texi: Likewise.
51080         * doc/posix-functions/stat.texi: Likewise.
51081         * doc/posix-functions/tmpfile.texi: Likewise.
51082         * doc/glibc-functions/mkostemp.texi: Likewise.
51083         * doc/glibc-functions/mkostemps.texi: Likewise.
51084         * doc/glibc-functions/mkstemps.texi: Likewise.
51086 2011-07-25  Bruno Haible  <bruno@clisp.org>
51088         fcntl: Move AC_LIBOBJ invocation to module description.
51089         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
51090         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
51092         fcntl: Remove call-in from fchdir.m4.
51093         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
51094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
51096         dup3: Remove potential call-in from fchdir.m4.
51097         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
51098         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
51100         dup2: Move AC_LIBOBJ invocation to module description.
51101         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
51102         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
51103         Don't invoke AC_LIBOBJ.
51104         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
51106         dup2: Remove call-in from fchdir.m4.
51107         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
51108         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
51110         fclose: Move AC_LIBOBJ invocation to module description.
51111         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
51112         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
51113         to 1.
51114         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
51116         fclose: Remove call-in from close.m4.
51117         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
51118         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
51120         close: Move AC_LIBOBJ invocation to module description.
51121         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
51122         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
51123         1.
51124         * modules/close (configure.ac): Invoke AC_LIBOBJ.
51126         close: Remove call-in from fchdir.m4.
51127         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
51128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
51130         open: Move AC_LIBOBJ invocation to module description.
51131         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
51132         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
51133         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
51135         open: Remove call-in from fchdir.m4.
51136         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
51137         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
51139         fchdir: Start to remove gl_REPLACE_* idiom.
51140         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
51141         (gl_FUNC_FCHDIR): Invoke it.
51143 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51145         * lib/ftell.c (ftell): Comment out cast.
51147         close: use gl_REPLACE_FCLOSE only if defined
51148         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
51149         is defined.  The close module doesn't depend on the fclose module
51150         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
51151         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
51152         I reproduced the problem with "./gnulib-tool --test close sys_socket".
51154 2011-07-24  Jim Meyering  <meyering@redhat.com>
51156         test-select.h: avoid warning when using gcc's -Wmissing-declarations
51157         * tests/test-select.h (test_function): Declare as "static".
51159 2011-07-24  Bruno Haible  <bruno@clisp.org>
51161         doc: Mention the effects of AC_SYS_LARGEFILE.
51162         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
51163         on this function.
51164         * doc/posix-functions/aio_error.texi: Likewise.
51165         * doc/posix-functions/aio_fsync.texi: Likewise.
51166         * doc/posix-functions/aio_read.texi: Likewise.
51167         * doc/posix-functions/aio_return.texi: Likewise.
51168         * doc/posix-functions/aio_suspend.texi: Likewise.
51169         * doc/posix-functions/aio_write.texi: Likewise.
51170         * doc/posix-functions/fgetpos.texi: Likewise.
51171         * doc/posix-functions/fopen.texi: Likewise.
51172         * doc/posix-functions/freopen.texi: Likewise.
51173         * doc/posix-functions/fsetpos.texi: Likewise.
51174         * doc/posix-functions/fstatvfs.texi: Likewise.
51175         * doc/posix-functions/ftruncate.texi: Likewise.
51176         * doc/posix-functions/ftw.texi: Likewise.
51177         * doc/posix-functions/getrlimit.texi: Likewise.
51178         * doc/posix-functions/glob.texi: Likewise.
51179         * doc/posix-functions/lio_listio.texi: Likewise.
51180         * doc/posix-functions/lockf.texi: Likewise.
51181         * doc/posix-functions/mkstemp.texi: Likewise.
51182         * doc/posix-functions/mmap.texi: Likewise.
51183         * doc/posix-functions/nftw.texi: Likewise.
51184         * doc/posix-functions/openat.texi: Likewise.
51185         * doc/posix-functions/opendir.texi: Likewise.
51186         * doc/posix-functions/posix_fadvise.texi: Likewise.
51187         * doc/posix-functions/posix_fallocate.texi: Likewise.
51188         * doc/posix-functions/pread.texi: Likewise.
51189         * doc/posix-functions/pwrite.texi: Likewise.
51190         * doc/posix-functions/readdir.texi: Likewise.
51191         * doc/posix-functions/readdir_r.texi: Likewise.
51192         * doc/posix-functions/rewinddir.texi: Likewise.
51193         * doc/posix-functions/scandir.texi: Likewise.
51194         * doc/posix-functions/seekdir.texi: Likewise.
51195         * doc/posix-functions/setrlimit.texi: Likewise.
51196         * doc/posix-functions/statvfs.texi: Likewise.
51197         * doc/posix-functions/telldir.texi: Likewise.
51198         * doc/posix-functions/tmpfile.texi: Likewise.
51199         * doc/posix-functions/truncate.texi: Likewise.
51200         * doc/glibc-functions/fallocate.texi: Likewise.
51201         * doc/glibc-functions/fstatfs.texi: Likewise.
51202         * doc/glibc-functions/fts_children.texi: Likewise.
51203         * doc/glibc-functions/fts_read.texi: Likewise.
51204         * doc/glibc-functions/getdirentries.texi: Likewise.
51205         * doc/glibc-functions/mkostemp.texi: Likewise.
51206         * doc/glibc-functions/mkostemps.texi: Likewise.
51207         * doc/glibc-functions/mkstemps.texi: Likewise.
51208         * doc/glibc-functions/preadv.texi: Likewise.
51209         * doc/glibc-functions/pwritev.texi: Likewise.
51210         * doc/glibc-functions/sendfile.texi: Likewise.
51211         * doc/glibc-functions/statfs.texi: Likewise.
51213 2011-07-24  Bruno Haible  <bruno@clisp.org>
51215         doc: Fix typo.
51216         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
51218 2011-07-24  Bruno Haible  <bruno@clisp.org>
51220         doc: Mention fsusage.
51221         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
51223 2011-07-24  Bruno Haible  <bruno@clisp.org>
51225         doc: Mention new glibc headers and functions.
51226         * doc/glibc-headers/gshadow.texi: New file.
51227         * doc/glibc-functions/endsgent.texi: New file.
51228         * doc/glibc-functions/fgetsgent.texi: New file.
51229         * doc/glibc-functions/fgetsgent_r.texi: New file.
51230         * doc/glibc-functions/getsgent.texi: New file.
51231         * doc/glibc-functions/getsgent_r.texi: New file.
51232         * doc/glibc-functions/getsgnam.texi: New file.
51233         * doc/glibc-functions/getsgnam_r.texi: New file.
51234         * doc/glibc-functions/putsgent.texi: New file.
51235         * doc/glibc-functions/setsgent.texi: New file.
51236         * doc/glibc-functions/sgetsgent.texi: New file.
51237         * doc/glibc-functions/sgetsgent_r.texi: New file.
51238         * doc/glibc-functions/malloc_info.texi: New file.
51239         * doc/glibc-functions/preadv.texi: New file.
51240         * doc/glibc-functions/pwritev.texi: New file.
51241         * doc/glibc-functions/register_printf_modifier.texi: New file.
51242         * doc/glibc-functions/register_printf_specifier.texi: New file.
51243         * doc/glibc-functions/register_printf_type.texi: New file.
51244         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
51245         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
51246         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
51247         * doc/glibc-functions/pthread_getname_np.texi: New file.
51248         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
51249         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
51250         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
51251         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
51252         * doc/glibc-functions/pthread_setname_np.texi: New file.
51253         * doc/glibc-functions/pthread_sigqueue.texi: New file.
51254         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
51255         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
51256         * doc/glibc-functions/qsort_r.texi: New file.
51257         * doc/glibc-functions/quick_exit.texi: New file.
51258         * doc/glibc-functions/syncfs.texi: New file.
51259         * doc/gnulib.texi: Include them.
51260         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
51261         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
51262         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
51263         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
51264         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
51265         * doc/glibc-functions/execvpe.texi: Likewise.
51267 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51269         ftell: don't include <unistd.h>
51270         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
51271         guaranteed to define off_t, and the ftell module depends on the
51272         stdio module.
51274         ftell: do not assume wraparound signed arithmetic
51275         * lib/ftell.c: Include <limits.h>.
51276         (ftell): Don't assume wraparound signed arithmetic.
51278 2011-07-24  Bruno Haible  <bruno@clisp.org>
51280         close: No longer depend on module 'fclose'.
51281         * modules/close (Depends-on): Remove fclose.
51282         * NEWS: Mention the change.
51283         Suggested by Sam Steingold <sds@gnu.org>.
51285 2011-07-24  Bruno Haible  <bruno@clisp.org>
51287         fsusage: Enable large volume support on AIX >= 5.2.
51288         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
51289         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
51290         instead of STAT_STATVFS.
51291         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
51293         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
51294         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
51295         f_blocks field only on MacOS X.
51297         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
51298         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
51299         * modules/fsusage (Depends-on): Add largefile.
51301 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51303         * README: Modernize discussion of signed integers.
51304         Assuming overflow wraparound is no longer safe.
51305         Mention ones' complement and signed magnitude.
51307 2011-07-22  Bruno Haible  <bruno@clisp.org>
51309         select tests, pselect tests: Refactor.
51310         * tests/test-select.h: New file, extracted from tests/test-select.c.
51311         (select_fn): New type.
51312         (test, do_select, do_select_nowait, do_select_wait, test_tty,
51313         test_connect_first, test_accept_first, test_pair, test_socket_pair,
51314         test_pipe): Add my_select argument.
51315         (test_function): Renamed from main. Add my_select argument.
51316         * tests/test-select.c: Move most code to tests/test-select.h. Include
51317         test-select.h.
51318         * modules/select-tests (Files): Add tests/test-select.h.
51319         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
51320         (my_select, main): New functions.
51321         * modules/pselect-tests (Files): Add tests/test-select.h,
51322         tests/macros.h, tests/signature.h.
51323         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
51324         (configure.ac): Check for <sys/wait.h>.
51326 2011-07-22  Bruno Haible  <bruno@clisp.org>
51328         sys_select tests: Check the signature of FD_*.
51329         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
51330         signature tests from here...
51331         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
51332         here.
51333         * modules/sys_select-tests (Files): Add tests/signature.h.
51335 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51337         largefile: new module, replacing large-inode
51338         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
51339         * MODULES.html.sh: Add largefile, remove large-inode.
51340         * modules/largefile, m4/largefile.m4: New files.
51341         * modules/large-inode, m4/large-inode.m4: Remove.
51343         fsusage: port to MacOS X 10.7 with 4 TiB file systems
51344         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
51345         implementations that use only 32 bits to count blocks.
51346         On typical hosts with 1024-byte blocks, this fails with file
51347         systems as small as 4 TiB.  Problem reported by Herb Wartens
51348         <http://debbugs.gnu.org/9140> and this should also fix a similar
51349         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
51351         large-inode: New module
51352         * MODULES.html.sh: Add it.
51353         * modules/large-inode, m4/large-inode.m4: New files.
51355         extensions: Enable extensions on MacOS X 10.5 and later.
51356         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
51358 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
51360         file-has-acl: use acl_extended_file_nofollow if available
51361         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
51362         (acl_extended_file): New macro.
51363         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
51364         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
51366 2011-07-21  Bruno Haible  <bruno@clisp.org>
51368         Declare system functions in a way that works with C++.
51369         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
51370         declare fdopendir as extern "C".
51371         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
51372         declare frexpl as extern "C".
51373         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
51374         declare gai_strerror as extern "C".
51375         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
51376         programs, declare gai_strerror as extern "C".
51377         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
51378         declare getlogin_r as extern "C".
51379         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
51380         as extern "C".
51381         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
51382         declare ldexpl as extern "C".
51383         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
51384         as extern "C".
51385         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
51386         program, declare getmntinfo as extern "C".
51387         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
51388         stpncpy as extern "C".
51389         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
51390         program, declare __xpg_strerror_r as extern "C".
51391         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
51392         strndup as extern "C".
51393         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
51394         declare memset and bzero as extern "C".
51395         Reported by Sam Steingold <sds@gnu.org>.
51397 2011-07-12  Jim Meyering  <meyering@redhat.com>
51399         maint.mk: prohibit inclusion of "verify.h" without use
51400         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
51402 2011-07-19  Pádraig Brady  <P@draigBrady.com>
51404         timer-time: A new module to check for timer_settime()
51405         * m4/timer_time.m4: Check for the posix function.
51406         * modules/timer-time: Add the new module.
51407         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
51408         Mention it.
51410 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
51411             Bruno Haible  <bruno@clisp.org>
51413         pthread_sigmask: assume POSIX threads if --avoid=threadlib
51414         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
51415         not defined, assume POSIX threads and look for pthread_sigmask in
51416         $LIBS, without changing $CPPFLAGS.
51418 2011-07-19  Bruno Haible  <bruno@clisp.org>
51420         strstr: Update cross-compilation guess.
51421         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
51422         CPUs, guess no, in view of glibc
51423         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
51424         Suggested by Eric Blake. Reported by Reuben Thomas.
51426 2011-07-19  Pádraig Brady  <P@draigBrady.com>
51428         getopt-gnu: suppress core dumps from detection code
51429         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
51430         to suppress core dumps that may well occur on glibc systems.
51431         * modules/getopt-gnu: Depend on nocrash.
51433 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51435         pthread_sigmask: ensure usleep is declared
51436         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
51437         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
51439 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51441         doc: Document NonStop portability issues.
51442         * doc/posix-functions/sigaction.texi (sigaction):
51443         * doc/posix-headers/signal.texi (signal.h):
51444         Document NonStop.  See Joachim Schmitz in
51445         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
51447 2011-07-15  Bruno Haible  <bruno@clisp.org>
51449         ffsl, ffsll: Avoid unportable behaviour.
51450         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
51452 2011-07-15  Bruno Haible  <bruno@clisp.org>
51454         ffs: More tests.
51455         * tests/test-ffs.c (NBITS): New macro.
51456         (main): Add more tests.
51457         * tests/test-ffsl.c (NBITS): New macro.
51458         (main): Add more tests.
51459         * tests/test-ffsll.c (NBITS): New macro.
51460         (main): Add more tests.
51462 2011-07-15  Eric Blake  <eblake@redhat.com>
51464         ffsl, ffsll: new modules
51465         * modules/ffsl: New file.
51466         * modules/ffsll: Likewise.
51467         * m4/ffsl.m4: Likewise.
51468         * m4/ffsll.m4: Likewise.
51469         * lib/ffsl.c: Likewise.
51470         * lib/ffsl.h: Likewise.
51471         * lib/ffsll.c: Likewise.
51472         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
51473         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
51474         * modules/string (Makefile.am): Substitute witnesses.
51475         * lib/strings.in.h (ffsl, ffsll): Declare.
51476         * modules/ffsl-tests: New test file.
51477         * modules/ffsll-tests: Likewise.
51478         * tests/test-ffsl.c: Likewise.
51479         * tests/test-ffsll.c: Likewise.
51480         * MODULES.html.sh (Integer arithmetic functions): Mention it.
51481         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
51482         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
51484         ffs: fix m4 prerequisite
51485         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
51487         ffs: avoid undefined behavior
51488         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
51489         * tests/test-ffs.c (naive, main): Avoid signed shifts.
51490         Reported by Bruno Haible.
51492 2011-07-12  Bruno Haible  <bruno@clisp.org>
51494         pthread_sigmask: Rely on module 'threadlib'.
51495         * modules/pthread_sigmask (Depends-on): Add threadlib.
51496         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
51497         is defined.
51499 2011-07-12  Bruno Haible  <bruno@clisp.org>
51501         regex: Depend on module 'strcase'.
51502         * modules/regex (Depends-on): Add strcase, for strcasecmp().
51504 2011-07-12  Jim Meyering  <meyering@redhat.com>
51506         warn-on-use: fix typo in file name
51507         * modules/snippet/warn-on-use (Files): Correct file name:
51508         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
51510 2011-07-12  Bruno Haible  <bruno@clisp.org>
51512         strings: Document module.
51513         * doc/posix-headers/strings.texi: Mention module 'strings'.
51515 2011-07-12  Bruno Haible  <bruno@clisp.org>
51517         Rename module '_Noreturn' to 'snippet/_Noreturn'.
51518         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
51519         (Files, Makefile.am): Update.
51520         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
51521         * modules/stdlib (Depends-on): Update.
51523 2011-07-12  Bruno Haible  <bruno@clisp.org>
51525         * NEWS: Mention the changes.
51527         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
51528         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
51529         (Files, Makefile.am): Update.
51530         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
51531         * modules/arpa_inet (Depends-on): Update.
51532         * modules/ctype (Depends-on): Update.
51533         * modules/dirent (Depends-on): Update.
51534         * modules/fcntl-h (Depends-on): Update.
51535         * modules/glob (Depends-on): Update.
51536         * modules/iconv-h (Depends-on): Update.
51537         * modules/inttypes-incomplete (Depends-on): Update.
51538         * modules/langinfo (Depends-on): Update.
51539         * modules/locale (Depends-on): Update.
51540         * modules/math (Depends-on): Update.
51541         * modules/netdb (Depends-on): Update.
51542         * modules/poll-h (Depends-on): Update.
51543         * modules/pty (Depends-on): Update.
51544         * modules/search (Depends-on): Update.
51545         * modules/signal (Depends-on): Update.
51546         * modules/spawn (Depends-on): Update.
51547         * modules/stdio (Depends-on): Update.
51548         * modules/stdlib (Depends-on): Update.
51549         * modules/string (Depends-on): Update.
51550         * modules/strings (Depends-on): Update.
51551         * modules/sys_file (Depends-on): Update.
51552         * modules/sys_ioctl (Depends-on): Update.
51553         * modules/sys_select (Depends-on): Update.
51554         * modules/sys_socket (Depends-on): Update.
51555         * modules/sys_stat (Depends-on): Update.
51556         * modules/sys_time (Depends-on): Update.
51557         * modules/sys_times (Depends-on): Update.
51558         * modules/sys_utsname (Depends-on): Update.
51559         * modules/sys_wait (Depends-on): Update.
51560         * modules/termios (Depends-on): Update.
51561         * modules/time (Depends-on): Update.
51562         * modules/unistd (Depends-on): Update.
51563         * modules/wchar (Depends-on): Update.
51564         * modules/wctype-h (Depends-on): Update.
51565         * MODULES.html.sh (Support for building libraries and executables):
51566         Update.
51568         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
51569         * modules/snippet/unused-parameter: Renamed from
51570         modules/unused-parameter.
51571         (Files, Makefile.am): Update.
51572         * build-aux/snippet/unused-parameter.h: Renamed from
51573         build-aux/unused-parameter.h.
51574         * modules/selinux-h (Depends-on): Update.
51575         * modules/unistr/base (Depends-on): Update.
51576         * MODULES.html.sh (Core language properties): Update.
51578         Rename module 'link-warning' to 'snippet/link-warning'.
51579         * modules/snippet/link-warning: Renamed from modules/link-warning.
51580         (Files, Makefile.am): Update.
51581         * build-aux/snippet/link-warning.h: Renamed from
51582         build-aux/link-warning.h.
51583         * MODULES.html.sh (Support for building libraries and executables):
51584         Update.
51586         Rename module 'c++defs' to 'snippet/c++defs'.
51587         * modules/snippet/c++defs: Renamed from modules/c++defs.
51588         (Files, Makefile.am): Update.
51589         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
51590         * modules/arpa_inet (Depends-on): Update.
51591         * modules/ctype (Depends-on): Update.
51592         * modules/dirent (Depends-on): Update.
51593         * modules/fcntl-h (Depends-on): Update.
51594         * modules/glob (Depends-on): Update.
51595         * modules/iconv-h (Depends-on): Update.
51596         * modules/langinfo (Depends-on): Update.
51597         * modules/locale (Depends-on): Update.
51598         * modules/math (Depends-on): Update.
51599         * modules/netdb (Depends-on): Update.
51600         * modules/poll-h (Depends-on): Update.
51601         * modules/pty (Depends-on): Update.
51602         * modules/search (Depends-on): Update.
51603         * modules/signal (Depends-on): Update.
51604         * modules/spawn (Depends-on): Update.
51605         * modules/stdio (Depends-on): Update.
51606         * modules/stdlib (Depends-on): Update.
51607         * modules/string (Depends-on): Update.
51608         * modules/strings (Depends-on): Update.
51609         * modules/sys_ioctl (Depends-on): Update.
51610         * modules/sys_select (Depends-on): Update.
51611         * modules/sys_socket (Depends-on): Update.
51612         * modules/sys_stat (Depends-on): Update.
51613         * modules/sys_time (Depends-on): Update.
51614         * modules/sys_wait (Depends-on): Update.
51615         * modules/termios (Depends-on): Update.
51616         * modules/time (Depends-on): Update.
51617         * modules/unistd (Depends-on): Update.
51618         * modules/wchar (Depends-on): Update.
51619         * modules/wctype-h (Depends-on): Update.
51621         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
51622         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
51623         (Files, Makefile.am): Update.
51624         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
51625         * modules/argv-iter (Depends-on): Update.
51626         * modules/arpa_inet (Depends-on): Update.
51627         * modules/dirent (Depends-on): Update.
51628         * modules/fcntl-h (Depends-on): Update.
51629         * modules/fnmatch (Depends-on): Update.
51630         * modules/getopt-posix (Depends-on): Update.
51631         * modules/glob (Depends-on): Update.
51632         * modules/iconv-h (Depends-on): Update.
51633         * modules/inttypes-incomplete (Depends-on): Update.
51634         * modules/locale (Depends-on): Update.
51635         * modules/math (Depends-on): Update.
51636         * modules/netdb (Depends-on): Update.
51637         * modules/search (Depends-on): Update.
51638         * modules/signal (Depends-on): Update.
51639         * modules/spawn (Depends-on): Update.
51640         * modules/stdio (Depends-on): Update.
51641         * modules/stdlib (Depends-on): Update.
51642         * modules/string (Depends-on): Update.
51643         * modules/strings (Depends-on): Update.
51644         * modules/sys_socket (Depends-on): Update.
51645         * modules/sys_stat (Depends-on): Update.
51646         * modules/sys_time (Depends-on): Update.
51647         * modules/sys_times (Depends-on): Update.
51648         * modules/sys_utsname (Depends-on): Update.
51649         * modules/time (Depends-on): Update.
51650         * modules/unistd (Depends-on): Update.
51651         * modules/wchar (Depends-on): Update.
51652         * MODULES.html.sh (Support for building libraries and executables):
51653         Update.
51655 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
51657         Improvements on _Noreturn and related modules.
51659         modules/_Exit-tests: test _Noreturn too
51660         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
51661         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
51662         (main): Use them.
51664         stdnoreturn, stdnoreturn-tests: remove modules
51665         They're not needed here and a bit premature for use elsewhere.  See
51666         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
51667         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
51668         * tests/test-stdnoreturn.c: Remove files.
51669         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
51670         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
51671         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
51672         and using noreturn.
51673         * modules/openat, modules/sigpipe-die, modules/xalloc:
51674         * modules/xmemdup0, modules/xstrtol:
51675         Remove dependency on stdnoreturn.
51677         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
51678         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
51679         Reparenthesize to avoid GCC warning.
51680         Support Microsoft's syntax.
51681         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
51683         _Noreturn-tests: remove module
51684         * modules/_Noreturn-tests: Remove.
51685         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
51686         * tests/test-_Noreturn.c: Remove.
51687         * tests/test-stdnoreturn.c: Merge from the old
51688         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
51690 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
51692         _Noreturn, stdnoreturn, and related modules.
51694         * top/maint.mk: Adjust to new noreturn support.
51695         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
51696         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
51698         xalloc: use stdnoreturn.h
51699         * lib/xalloc.h: Include <stdnoreturn.h>.
51700         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51701         * modules/xalloc (Depends-on): Add stdnoreturn.
51703         xstrtol: use stdnoreturn.h
51704         * lib/xstrtol.h: Include <stdnoreturn.h>.
51705         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51706         * modules/xstrtol (Depends-on): Add stdnoreturn.
51708         xmemdup0: use stdnoreturn.h
51709         * lib/xmemdup0.h: Include <stdnoreturn.h>.
51710         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51711         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
51713         sigpipe-die: use stdnoreturn.h
51714         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
51715         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51716         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
51718         openat: use stdnoreturn.h
51719         * lib/openat.h: Include <stdnoreturn.h>.
51720         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51721         * modules/openat (Depends-on): Add stdnoreturn.
51723         * lib/openat-die.c (openat_save_fail): Modernize comment.
51725         * lib/xalloc-die.c (xalloc_die): Modernize comment.
51727         * lib/glthread/thread.h: Modernize comment.
51729         obstack: use _Noreturn
51730         * lib/obstack.c (__attribute__): Remove macro.
51731         (print_and_abort): Use _Noreturn.
51733         c-stack: use _Noreturn
51734         * lib/c-stack.c (die, overflow_handler, segv_handler):
51735         Use _Noreturn rather than __attribute__((noreturn)).
51737         argmatch-tests, exclude_tests: use _Noreturn
51738         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
51739         Remove.
51740         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
51742         stdlib: use _Noreturn
51743         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
51744         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
51745         * modules/stdlib (Depends-on): Add _Noreturn.
51746         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
51748         stdnoreturn-tests: new module
51749         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
51751         stdnoreturn: new module
51752         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
51753         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
51755         _Noreturn-tests: new module
51756         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
51758         _Noreturn: new module
51759         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
51760         New section, mentioning it.
51761         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
51763         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
51765 2011-07-11  Eric Blake  <eblake@redhat.com>
51767         ffs: new module
51768         * modules/ffs: New file.
51769         * m4/ffs.m4: Likewise.
51770         * lib/ffs.c: Likewise.
51771         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
51772         * modules/strings (Makefile.am): Substitute witness.
51773         (Depends-on): Add c++defs.
51774         * lib/strings.in.h (ffs): Declare.
51775         * modules/ffs-tests: New test file.
51776         * tests/test-ffs.c: Test new module.
51777         * MODULES.html.sh (Integer arithmetic functions): Mention it.
51778         * doc/posix-functions/ffs.texi (ffs): Likewise.
51780         regex: avoid compiler warning
51781         * lib/regex.c (includes): Include <strings.h>, for use of
51782         strcasecmp in regcomp.c.
51783         Reported by Joachim Schmitz.
51785 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51787         stdint: respect system's intmax_t if INTMAX_MAX
51788         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
51789         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
51790         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
51791         long but int64_t is long long, and where we will clash with the
51792         system intmax_t if we override it.  See
51793         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
51794         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
51795         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
51796         similarly for UINTMAX_C.
51798 2011-07-08  Bruno Haible  <bruno@clisp.org>
51800         pthread_sigmask tests: Avoid a compiler warning.
51801         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
51802         non-zero.
51804         sigprocmask tests: A better way to avoid a compiler warning.
51805         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
51806         (main): Complain if system() returns non-zero.
51807         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
51809 2011-07-08  Bruno Haible  <bruno@clisp.org>
51811         pthread_sigmask: Work around IRIX bug.
51812         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
51813         bug.
51814         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
51815         there may be unblocked pending signals.
51816         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
51818 2011-07-08  Bruno Haible  <bruno@clisp.org>
51820         pthread_sigmask: Work around Cygwin bug.
51821         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
51822         bug.
51823         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
51824         the system's pthread_sigmask function.
51825         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
51827 2011-07-08  Bruno Haible  <bruno@clisp.org>
51829         pthread_sigmask: Work around bug in single-threaded implementation.
51830         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
51831         FreeBSD, HP-UX, Solaris bug.
51832         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
51833         * lib/pthread_sigmask.c: Include <stddef.h>.
51834         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
51835         the system's pthread_sigmask function.
51836         * modules/pthread_sigmask (configure.ac): Invoke
51837         gl_PREREQ_PTHREAD_SIGMASK.
51838         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
51839         HP-UX, Solaris.
51841 2011-07-08  Eric Blake  <eblake@redhat.com>
51843         test-sigprocmask: avoid compiler warning
51844         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
51845         * tests/test-sigprocmask.c (main): Use it to silence warning.
51846         Reported by Jim Meyering.
51848         test-snprintf: avoid compiler warning
51849         * tests/test-snprintf.c (main): Avoid shadowed declaration.
51850         * tests/test-vsnprintf.c (main): Likewise.
51851         Reported by Jim Meyering.
51853 2011-07-08  Bruno Haible  <bruno@clisp.org>
51855         Tests for module 'pthread_sigmask'.
51856         * modules/pthread_sigmask-tests: New file.
51857         * tests/test-pthread_sigmask1.c: New file, based on
51858         tests/test-sigprocmask.c.
51859         * tests/test-pthread_sigmask2.c: New file.
51861 2011-07-08  Jim Meyering  <meyering@redhat.com>
51863         test-getopt.h: avoid warning about an unused variable
51864         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
51866 2011-07-07  Jim Meyering  <meyering@redhat.com>
51868         maint: reduce list of files exempt from sc_prohibit_leading_TABs
51869         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
51870         now that it no longer contains leading TABs.
51871         Remove unused "url=FIXME" statement.
51873 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51875         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
51876         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51877         When gl_THREADLIB is not in use, assume that the POSIX sematics
51878         are desired.  This is better for Emacs, which uses POSIX semantics
51879         on GNUish and/or POSIXish platforms, and does not use threads at
51880         all otherwise.
51882         pthread_sigmask: fix typo when testing for libraries
51883         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51884         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
51886 2011-07-08  Eric Blake  <eblake@redhat.com>
51888         fts: introduce FTS_NOATIME
51889         * lib/fts_.h (FTS_NOATIME): New bit flag.
51890         (FTS_OPTIONMASK): Adjust.
51891         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
51892         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
51894 2011-07-08  Bruno Haible  <bruno@clisp.org>
51896         Tests for module 'thread'.
51897         * modules/thread-tests: New file.
51898         * tests/test-thread_self.c: New file.
51899         * tests/test-thread_create.cc: New file.
51901 2011-07-08  Bruno Haible  <bruno@clisp.org>
51903         thread: Avoid gcc warnings when using gl_thread_self().
51904         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
51905         'void *'.
51906         (gl_thread_self_pointer): Update.
51908 2011-07-07  Bruno Haible  <bruno@clisp.org>
51910         signal-c++-tests: Check declaration of pthread_sigmask.
51911         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
51912         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
51913         $(LIB_PTHREAD_SIGMASK).
51915 2011-07-07  Bruno Haible  <bruno@clisp.org>
51917         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
51918         * lib/signal.in.h (pthread_sigmask): Override if
51919         REPLACE_PTHREAD_SIGMASK is 1.
51920         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51921         REPLACE_PTHREAD_SIGMASK.
51922         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
51923         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
51924         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
51925         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51926         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
51928 2011-07-07  Bruno Haible  <bruno@clisp.org>
51930         pthread_sigmask: Ensure declaration in <signal.h>.
51931         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
51932         include <pthread.h>.
51933         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
51934         problem.
51936 2011-07-07  Bruno Haible  <bruno@clisp.org>
51938         pthread_sigmask: Document the module.
51939         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
51941 2011-07-07  Bruno Haible  <bruno@clisp.org>
51943         pthread_sigmask: Follow gnulib conventions.
51944         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
51945         gl_PTHREAD_SIGMASK.
51946         * modules/pthread_sigmask (configure.ac): Update.
51948 2011-07-07  Bruno Haible  <bruno@clisp.org>
51950         pthread_sigmask: Make declaration C++ safe.
51951         * lib/signal.in.h: In two special conditions, just do an #include_next.
51952         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51953         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
51954         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51955         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51956         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
51957         not REPLACE_PTHREAD_MASK.
51958         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
51959         not REPLACE_PTHREAD_MASK.
51960         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51962 2011-07-07  Bruno Haible  <bruno@clisp.org>
51964         pthread_sigmask: Fix return value.
51965         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
51966         * lib/pthread_sigmask.c: New file.
51967         * modules/pthread_sigmask (Files): Add it.
51968         (configure.ac): Invoke AC_LIBOBJ.
51970 2011-07-07  Eric Blake  <eblake@redhat.com>
51972         getopt: more portable argv creation
51973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
51974         const, use char arrays rather than strings.
51975         Suggested by Paul Eggert.
51977 2011-07-07  Bruno Haible  <bruno@clisp.org>
51979         Tests for module 'sigprocmask'.
51980         * modules/sigprocmask-tests: New file.
51981         * tests/test-sigprocmask.c: New file.
51983 2011-07-07  Bruno Haible  <bruno@clisp.org>
51985         float tests: Tweak.
51986         * tests/test-float.c (main): Tweak skip message.
51988 2011-07-07  Eric Blake  <eblake@redhat.com>
51990         getopt: avoid compiler warning during configure
51991         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
51992         assigning string literals to non-const pointer.
51994         getopt-gnu: avoid crash in glibc getopt
51995         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
51996         * tests/test-getopt.h (test_getopt): Enhance test.
51997         * tests/test-getopt_long.h (test_getopt_long): Likewise.
51998         * doc/posix-functions/getopt.texi (getopt): Document it.
51999         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
52000         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52001         Likewise.
52003 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
52005         getopt: handle W; without long options in getopt [BZ #12922]
52006         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
52007         but no long options are defined, just return 'W'.
52009 2011-07-07  Bruno Haible  <bruno@clisp.org>
52011         Avoid literal tabs.
52012         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
52013         variable containing a tab instead of a literal tab.
52014         Reported by Jim Meyering.
52016 2011-07-07  Bruno Haible  <bruno@clisp.org>
52018         Comments.
52019         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
52021 2011-07-06  Bruno Haible  <bruno@clisp.org>
52023         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
52024         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
52025         <winsock2.h>.
52026         (rpl_fd_isset, FD_ISSET): New definitions, copied from
52027         lib/sys_socket.in.h.
52028         (close, gethostname): Hide declarations from <winsock2.h>.
52029         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52030         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
52031         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
52032         (select): Don't override if gnulib's <sys/select.h> was already
52033         included.
52034         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
52035         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
52036         setsockopt, shutdown, select): Tweak indentation.
52038 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52040         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
52041         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
52042         in an application that does not use the sys_select module.
52044 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
52046         poll: do not return 0 on timeout=-1
52047         * lib/poll.c: Loop with yield if no events occurred.
52049 2011-07-06  Eric Blake  <eblake@redhat.com>
52051         pthread_sigmask: always replace when not using pthread
52052         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
52053         replacement when using some threading other than pthread.  Fix
52054         logic bug.
52056 2011-07-06  Bruno Haible  <bruno@clisp.org>
52058         Comments.
52059         * m4/printf.m4: Update comments about mingw.
52061 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52063         sys_select: define sigset_t more portably
52064         * lib/sys_select.in.h: Always include <sys/types.h>, since
52065         we now need sigset_t and mingw defines it there.
52066         Include <signal.h> before split inclusion guard, to avoid
52067         mishaps on Solaris, whose <signal.h> eventually includes us.
52068         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
52069         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
52070         which come from ...
52071         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52072         gl_CHECK_TYPE_SIGSET_T.
52073         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
52074         does the real work.
52075         * modules/sys_select (Depends-on): Add 'signal'.
52077         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
52078         Suggested by Bruno Haible.
52080         pselect: Use pthread_sigmask, not sigprocmask.
52081         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
52082         multithreaded apps better than sigprocmask does.
52083         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
52084         sigprocmask directly.
52086 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52088         * lib/pselect.c (pselect): Use plain name, without "rpl_".
52089         Don't #undef,  since we don't need any underlying pselect.
52090         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
52091         (Depends-on): Add select.
52092         (Link): Add $(LIBSOCKET).
52093         These changes suggested by Bruno Haible.
52095         pselect: document better
52096         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
52097         * doc/posix-functions/pselect.texi (pselect): Document new module.
52099         pthread_sigmask: new module
52100         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
52101         * doc/posix-functions/pthread_sigmask.texi: Document new module.
52102         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
52103         This is done only as a macro; I don't know how well that'll
52104         work for C++.  Move <sys/types.h> include before the include_next,
52105         to avoid mishap on Solaris.
52106         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
52107         * modules/signal (Makefile.am): Substitute the check's results.
52108         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
52110         test-pselect: new module
52111         * modules/pselect-tests, tests/test-pselect.c: New files.
52112         * tests/test-select.c, tests/test-sys_select-c++.cc:
52113         If TEST_PSELECT is defined, test pselect instead of testing select.
52115         * tests/test-sys_select.c (sigset_t): Test for it, too.
52116         Suggested by Bruno Haible.
52118 2011-07-05  Eric Blake  <eblake@redhat.com>
52120         snprintf: guarantee %1$d, for libintl
52121         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
52122         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52123         * doc/posix-functions/snprintf.texi (snprintf): Update.
52124         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52125         * tests/test-snprintf.c (main): Enhance test.
52126         * tests/test-vsnprintf.c (main): Likewise.
52128 2011-07-05  Jim Meyering  <meyering@redhat.com>
52130         maint: exempt stdio-read.c and stdio-write.c from the cppi check
52131         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
52132         per Bruno's request, to accommodate this idiom (no space after "#")
52133         even when the function is inside an #if block:
52134         char *
52135         gets (char *s)
52136         #undef gets
52137         {
52138           ...
52139         }
52141 2011-07-04  Jim Meyering  <meyering@redhat.com>
52143         maint: indent with spaces, not TABs, and add a rule to check this
52144         * tests/test-userspec.c: Indent with spaces, not TABs.
52145         * tests/test-argp.c: Likewise.
52146         * tests/test-c-stack2.sh: Likewise.
52147         * tests/test-parse-duration.sh: Likewise
52148         * m4/strtod.m4: Likewise.
52149         * m4/alloca.m4: Likewise.
52150         * m4/pselect.m4: Likewise.
52151         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
52153 2011-07-03  Jim Meyering  <meyering@redhat.com>
52155         maint.mk: correct omissions in prohibit_argmatch_without_use check
52156         This rule would mistakenly report that argmatch.h is included without
52157         use even when both the argmatch and invalid_arg macro were used.
52158         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
52159         of argmatch and invalid_arg.
52161 2011-07-03  Bruno Haible  <bruno@clisp.org>
52163         Comments about EINTR.
52164         * lib/safe-read.h: Explain the purpose of this module.
52165         * lib/safe-write.h: Likewise.
52166         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
52167         module.
52168         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
52169         module.
52170         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52172 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52174         xnanosleep: Rewrite to use new dtotimespec module.
52175         It has the conversion code that used to be in xnanosleep.
52176         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
52177         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
52178         (TIME_T_MAX): Remove.
52179         (xnanosleep): Rewrite in terms of dtotimespec.
52180         * modules/xnanosleep (Depends-on): Add dtotimespec.
52181         Remove intprops, stdbool.
52183         timespec-add, timespec-sub: new modules
52184         * lib/timespec.h (timespec_add, timespec_sub): New decls.
52185         * lib/timespec-add.c, lib/timespec-sub.c:
52186         * modules/timespec-add, modules/timespec-sub: New files.
52188         dtotimespec: new module
52189         * lib/timespec.h (dtotimespec): New decl.
52190         * lib/dtotimespec.c, modules/dtotimespec: New files.
52192         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
52194         pselect: new module
52195         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
52196         (pselect): New decls.
52197         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
52198         since the standard pselect decl uses 'restrict'.
52199         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
52200         HAVE_PSELECT, REPLACE_PSELECT.
52201         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
52202         HAVE_PSELECT, REPLACE_PSELECT.
52203         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
52205         sys_select: don't depend on sys_socket
52206         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
52207         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
52208         This fix works on GNU and GNU-like platforms, but has not been tested
52209         on native Windows.
52210         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
52211         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
52212         gl_HEADER_SYS_SOCKET.
52213         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
52214         gl_PREREQ_SYS_H_WINSOCK2.
52216 2011-06-29  Eric Blake  <eblake@redhat.com>
52218         pipe2: fix C89 compile problem
52219         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
52220         Reported by Bruno Haible.
52222         pipe, pipe2: don't corrupt fd on error
52223         * lib/pipe.c (pipe): Leave fd unchanged on error.
52224         * lib/pipe2.c (pipe2): Likewise.
52225         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
52226         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
52228 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
52230         mmap-anon: do not use regular expressions inadvertently
52231         * m4/mmap-anon.m4: Remove trailing period from strings sought
52232         in the output.
52234 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
52236         nanosleep: fix integer overflow problem
52237         * lib/nanosleep.c (my_usleep): Don't assume signed integer
52238         arithmetic wraps around on overflow.
52240         nanosleep: simplify carrying
52241         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
52242         first call to the underyling nanosleep, not for the last one.
52243         This doesn't fix any bugs, but it simplifies the computation of
52244         the remaining delay.  Found while auditing integer overflow issues.
52246         dup2: remove test for existence of fcntl
52247         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
52248         "#if HAVE_FCNTL", in the configure-time test program.
52249         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
52250         and therefore speeds up "configure" a bit.  Found while
52251         adding the dup2 module to Emacs.
52253 2011-06-24  Eric Blake  <eblake@redhat.com>
52255         maint.mk: enhance useless header checks
52256         * top/maint.mk (_sc_header_without_use): Check both include
52257         styles.
52258         (sc_prohibit_assert_without_use)
52259         (sc_prohibit_close_stream_without_use)
52260         (sc_prohibit_getopt_without_use)
52261         (sc_prohibit_quotearg_without_use)
52262         (sc_prohibit_quote_without_use)
52263         (sc_prohibit_long_options_without_use)
52264         (sc_prohibit_inttostr_without_use)
52265         (sc_prohibit_ignore_value_without_use)
52266         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
52267         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
52268         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
52269         (sc_prohibit_hash_pjw_without_use)
52270         (sc_prohibit_safe_read_without_use)
52271         (sc_prohibit_argmatch_without_use)
52272         (sc_prohibit_canonicalize_without_use)
52273         (sc_prohibit_root_dev_ino_without_use)
52274         (sc_prohibit_openat_without_use)
52275         (sc_prohibit_c_ctype_without_use)
52276         (sc_prohibit_signal_without_use)
52277         (sc_prohibit_stdio--_without_use)
52278         (sc_prohibit_stdio-safer_without_use)
52279         (sc_prohibit_strings_without_use)
52280         (sc_prohibit_intprops_without_use)
52281         (sc_prohibit_stddef_without_use)
52282         (sc_prohibit_xfreopen_without_use): Update clients.
52284 2011-06-24  Jim Meyering  <meyering@redhat.com>
52286         syntax-check: keep one maint.mk rule in sync with its header
52287         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
52288         of the bug Eric has just fixed, with today's commit 25e4c2ec.
52289         I prefer to avoid temporary files here, so use <(...), but that
52290         is not supported by /bin/sh, so...
52291         (SHELL): Define to /bin/bash.
52293 2011-06-24  Eric Blake  <eblake@redhat.com>
52295         maint.mk: update sc_prohibit_intprops_without_use
52296         * top/maint.mk (_intprops_names): Match recent changes.
52298 2011-06-24  Bruno Haible  <bruno@clisp.org>
52300         strerror-override: No-op tweak.
52301         * lib/strerror-override.h (strerror_override): Reorder conditions,
52302         for consistency with lib/strerror-override.c.
52304 2011-06-23  Eric Blake  <eblake@redhat.com>
52306         maint.mk: test further PATH_MAX issues
52307         * top/maint.mk (sc_prohibit_path_max_array): Rename...
52308         (sc_prohibit_path_max_allocation): ...and also test alloca.
52309         Suggested by Jim Meyering.
52311 2011-06-22  Eric Blake  <eblake@redhat.com>
52313         maint.mk: add syntax-check to avoid char[PATH_MAX]
52314         * top/maint.mk (sc_prohibit_path_max_array): New rule.
52316         stat: be robust to PATH_MAX definition
52317         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
52318         * modules/stat (Depends-on): Add verify.
52320         link: work around IRIX bug
52321         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
52322         * lib/link.c (rpl_link): Work around it.
52323         * tests/test-link.h (test_link): Enhance test.
52324         * doc/posix-functions/link.texi (link): Document the bug.
52326         getopt: silence clang warning
52327         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
52328         dereference.
52329         Reported by Gustavo Martin Domato.
52331 2011-06-22  Jim Meyering  <meyering@redhat.com>
52333         bootstrap: do not insert a blank line into each .gitignore file
52334         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
52336 2011-06-21  Eric Blake  <eblake@redhat.com>
52338         perror: test for output mismatch
52339         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
52340         perror on IRIX.
52342         strerror_r: fix OpenBSD behavior on out-of-range
52343         * lib/strerror_r.c (strerror_r): Always use maximal string.
52344         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
52346         strerror_r: fix OpenBSD behavior on 0
52347         * lib/strerror-override.c (strerror_override): Also override 0
52348         when needed.
52349         * lib/strerror-override.h (strerror_override): Likewise.
52350         * lib/strerror.c (strerror): Simplify, now that 0 override is done
52351         earlier.
52352         * lib/strerror_r.c (strerror_r): Likewise.
52353         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
52354         behavior...
52355         (gl_FUNC_STRERROR_0): ...into new macro.
52356         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
52357         is overridden.
52358         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
52359         * modules/strerror-override (Files): Add strerror.m4.
52360         (configure.ac): Also provide override for 0 when needed.
52361         * doc/posix-functions/strerror.texi (strerror): Document this.
52362         * doc/posix-functions/perror.texi (perror): Likewise.
52364         perror: adjust array size
52365         * modules/perror (Depends-on): Add strerror-override.
52366         * lib/perror.c (perror): Use it to avoid magic number.
52368         strerror-override: reduce size
52369         * lib/strerror-override.c (strerror_override): Use fewer lines.
52371 2011-06-20  Bruno Haible  <bruno@clisp.org>
52373         pathmax: Ensure correct value for PATH_MAX on HP-UX.
52374         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
52376 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52378         alloca: port to compilers that can optimize like GCC 4.6.0
52379         * lib/alloca.c (find_stack_direction): New signature, taken from
52380         Autoconf git.  This works with GCC 4.6.0.  This code should never
52381         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
52382         be used with other compilers that optimize as well as GCC 4.6.0 does.
52383         (alloca): Adjust to new signature.
52384         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
52385         New macro, which patches Autoconf in a similar way.
52387         c-stack: stop worrying about stack direction
52388         * lib/c-stack.c (find_stack_direction): Remove.
52389         (segv_handler): Don't worry about stack direction growth, as it's
52390         too much of a pain to configure this correctly, given how compilers
52391         are optimizing-away our stack-growth detection code.  Instead, assume
52392         that any access to just before or just after the stack is OK.
52393         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52394         Don't require AC_FUNC_ALLOCA; no longer needed.
52396 2011-06-20  Eric Blake  <eblake@redhat.com>
52398         test-stat: don't allocate PATH_MAX bytes
52399         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
52400         PATH_MAX-sized buffer.
52401         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
52402         * modules/stat-tests (Depends-on): Likewise.
52403         * tests/test-fstatat.c (includes): Drop pathmax.h.
52404         * tests/test-stat.c (includes): Likewise.
52405         Reported by Bruno Haible.
52407 2011-06-20  Bruno Haible  <bruno@clisp.org>
52409         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
52410         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
52411         * lib/float.c: New file.
52412         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
52413         REPLACE_FLOAT_LDBL.
52414         * modules/float (Files): Add lib/float.c.
52415         (configure.ac): Invoke AC_LIBOBJ.
52416         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
52418 2011-06-20  Bruno Haible  <bruno@clisp.org>
52420         Tests for module 'float'.
52421         * modules/float-tests: New file.
52422         * tests/test-float.c: New file.
52424 2011-06-19  Bruno Haible  <bruno@clisp.org>
52426         isinf: Coding style.
52427         * lib/isinf.c: Use GNU coding style.
52429 2011-06-19  Bruno Haible  <bruno@clisp.org>
52431         linkat test: Avoid test failure on AIX 7.1.
52432         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
52433         * tests/test-link.h (test_link): Likewise.
52435 2011-06-19  Bruno Haible  <bruno@clisp.org>
52437         pread test: Avoid test failure on OpenBSD 4.9.
52438         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
52440 2011-06-19  Bruno Haible  <bruno@clisp.org>
52442         sprintf-posix: Fix test failure on AIX 7.1.
52443         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
52444         * doc/posix-functions/dprintf.texi: Mention limited precision problem
52445         on AIX.
52446         * doc/posix-functions/fprintf.texi: Likewise.
52447         * doc/posix-functions/printf.texi: Likewise.
52448         * doc/posix-functions/snprintf.texi: Likewise.
52449         * doc/posix-functions/sprintf.texi: Likewise.
52450         * doc/posix-functions/vdprintf.texi: Likewise.
52451         * doc/posix-functions/vfprintf.texi: Likewise.
52452         * doc/posix-functions/vprintf.texi: Likewise.
52453         * doc/posix-functions/vsnprintf.texi: Likewise.
52454         * doc/posix-functions/vsprintf.texi: Likewise.
52456 2011-06-19  Bruno Haible  <bruno@clisp.org>
52458         roundl-ieee: Fix test failure on AIX 7.1.
52459         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
52460         * doc/posix-functions/roundl.texi: Mention problem with negative
52461         arguments.
52463 2011-06-19  Bruno Haible  <bruno@clisp.org>
52465         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
52466         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
52467         * doc/posix-functions/round.texi: Mention problem with negative
52468         arguments.
52469         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
52471 2011-06-19  Bruno Haible  <bruno@clisp.org>
52473         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
52474         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
52475         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
52476         * doc/posix-functions/roundf.texi: Mention problem with negative
52477         arguments.
52478         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
52480 2011-06-19  Bruno Haible  <bruno@clisp.org>
52482         ceilf-ieee: Work around bug on MacOS X 10.5.
52483         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
52485         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
52486         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
52487         IEEE compliant, avoid compiler optimizations.
52488         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
52489         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
52490         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
52491         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
52492         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
52493         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
52494         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
52495         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
52496         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
52497         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
52499 2011-06-19  Bruno Haible  <bruno@clisp.org>
52501         ceilf-ieee: Work around bug on AIX 7.1.
52502         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
52503         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
52505 2011-06-19  Bruno Haible  <bruno@clisp.org>
52507         ceil-ieee: Work around bug on AIX 7.1.
52508         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
52509         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
52511 2011-06-18  Bruno Haible  <bruno@clisp.org>
52513         fsync test: Avoid test failure on MacOS X and AIX.
52514         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
52515         EINVAL.
52517 2011-06-18  Bruno Haible  <bruno@clisp.org>
52519         openat, fdopendir tests: Fix link errors.
52520         * modules/openat-tests (Depends-on): Add progname.
52521         * modules/fdopendir-tests (Depends-on): Likewise.
52522         * tests/test-fchownat.c: Include progname.h.
52523         (main): Call set_program_name.
52524         * tests/test-fstatat.c: Include progname.h.
52525         (main): Call set_program_name.
52526         * tests/test-mkdirat.c: Include progname.h.
52527         (main): Call set_program_name.
52528         * tests/test-openat.c: Include progname.h.
52529         (main): Call set_program_name.
52530         * tests/test-unlinkat.c: Include progname.h.
52531         (main): Call set_program_name.
52532         * tests/test-fdopendir.c: Include progname.h.
52533         (main): Call set_program_name.
52535 2011-06-18  Bruno Haible  <bruno@clisp.org>
52537         Doc update.
52538         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
52539         HP-UX.
52540         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
52542 2011-06-18  Bruno Haible  <bruno@clisp.org>
52544         getcwd tests: Avoid compilation error on HP-UX 11.31.
52545         * modules/getcwd-tests (Depends-on): Add pathmax.
52546         * tests/test-getcwd.c: Include pathmax.h.
52548 2011-06-18  Bruno Haible  <bruno@clisp.org>
52550         isfinite, isinf: Fix link error on AIX 6 and 7.
52551         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
52552         needed, also test the macro with a 'float' argument.
52553         * m4/isinf.m4 (gl_ISINF): Likewise.
52555 2011-06-18  Bruno Haible  <bruno@clisp.org>
52557         getloadavg: Don't clobber LIBS. Regression from previous commit.
52558         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
52559         AC_CHECK_LIB from here...
52560         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
52561         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
52562         gl_func_getloadavg_done.
52563         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52565 2011-06-18  Bruno Haible  <bruno@clisp.org>
52567         clean-temp: Improve documentation.
52568         * lib/clean-temp.h: Explain better how to use this module.
52569         Reported by John Darrington <john@darrington.wattle.id.au>.
52571 2011-06-17  Bruno Haible  <bruno@clisp.org>
52573         pread, pwrite: Avoid cc warning on AIX.
52574         * lib/unistd.in.h (pread): Undefine before defining as a macro.
52575         (pwrite): Likewise.
52577 2011-06-17  Bruno Haible  <bruno@clisp.org>
52579         spawn-pipe tests: Fix link error.
52580         * tests/test-spawn-pipe-child.c: Undefine fprintf.
52581         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52583 2011-06-17  Bruno Haible  <bruno@clisp.org>
52585         Tests: Remove unnecessary dependency.
52586         * modules/canonicalize-tests (Depends-on): Remove progname.
52587         * modules/chown-tests (Depends-on): Likewise.
52588         * modules/dirname-tests (Depends-on): Likewise.
52589         * modules/fdopendir-tests (Depends-on): Likewise.
52590         * modules/fdutimensat-tests (Depends-on): Likewise.
52591         * modules/hash-tests (Depends-on): Likewise.
52592         * modules/lchown-tests (Depends-on): Likewise.
52593         * modules/linkat-tests (Depends-on): Likewise.
52594         * modules/renameat-tests (Depends-on): Likewise.
52595         * modules/spawn-pipe-tests (Depends-on): Likewise.
52596         * modules/utimensat-tests (Depends-on): Likewise.
52598 2011-06-17  Bruno Haible  <bruno@clisp.org>
52600         spawn-pipe tests: Fix link error.
52601         * tests/test-spawn-pipe-child.c: Undefine fflush.
52603 2011-06-17  Bruno Haible  <bruno@clisp.org>
52605         Fix tests link errors.
52606         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
52607         * modules/chown-tests (Makefile.am): Don't link test-chown with
52608         LIBINTL.
52609         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
52610         LIBINTL.
52611         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
52612         LIBINTL.
52613         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
52614         LIBINTL.
52616 2011-06-16  Bruno Haible  <bruno@clisp.org>
52618         crypto/gc-sha1: Fix recent regression.
52619         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
52620         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
52622         crypto/gc-md5: Fix recent regression.
52623         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
52625         crypto/gc-md4: Fix recent regression.
52626         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
52627         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
52629         crypto/gc-arctwo: Fix recent regression.
52630         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
52631         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
52633         crypto/gc-rijndael: Fix recent regression.
52634         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
52635         (configure.ac): Invoke AC_LIBOBJ here.
52636         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
52637         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52639         crypto/gc-hmac-sha1: Fix recent regression.
52640         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
52641         (configure.ac): Invoke AC_LIBOBJ here.
52642         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
52643         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52645         crypto/gc-hmac-md5: Fix recent regression.
52646         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
52647         (configure.ac): Invoke AC_LIBOBJ here.
52648         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
52649         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52651         crypto/gc-des: Fix recent regression.
52652         * modules/crypto/gc-des (Files): Remove m4/des.m4.
52653         (configure.ac): Invoke AC_LIBOBJ here.
52654         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
52655         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52657         crypto/gc-arcfour: Fix recent regression.
52658         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
52659         (configure.ac): Invoke AC_LIBOBJ here.
52660         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
52661         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52663 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
52665         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
52666         After the 2011-05-21 change, this macro requires
52667         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
52668         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52670 2011-06-16  Bruno Haible  <bruno@clisp.org>
52672         fprintftime: Move AC_LIBOBJ invocations to module description.
52673         * m4/fprintftime.m4: Remove file.
52674         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
52675         (configure.ac): Remove gl_FPRINTFTIME call.
52676         (Makefile.am): Augment lib_SOURCES.
52677         Reported by Jim Meyering.
52679 2011-06-16  Bruno Haible  <bruno@clisp.org>
52681         tmpfile-safer: Finish 2011-05-23 commit.
52682         * m4/stdio-safer.m4: Really remove file.
52683         Reported by Jim Meyering.
52685 2011-06-16  Bruno Haible  <bruno@clisp.org>
52687         syntax-check: Fix typo.
52688         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
52689         printf-posix.m4.
52690         Reported by Jim Meyering.
52692 2011-06-13  Jim Meyering  <meyering@redhat.com>
52694         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
52695         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
52697 2011-05-23  Bruno Haible  <bruno@clisp.org>
52699         yesno: Move AC_LIBOBJ invocations to module description.
52700         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
52701         * modules/yesno (Makefile.am): Augment lib_SOURCES.
52703 2011-05-23  Bruno Haible  <bruno@clisp.org>
52705         xstrtol: Move AC_LIBOBJ invocations to module description.
52706         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
52707         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
52709 2011-05-23  Bruno Haible  <bruno@clisp.org>
52711         xstrtold: Move AC_LIBOBJ invocations to module description.
52712         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
52713         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
52715 2011-05-23  Bruno Haible  <bruno@clisp.org>
52717         xstrtod: Move AC_LIBOBJ invocations to module description.
52718         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
52719         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
52721 2011-05-23  Bruno Haible  <bruno@clisp.org>
52723         xnanosleep: Move AC_LIBOBJ invocations to module description.
52724         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
52725         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
52727 2011-05-23  Bruno Haible  <bruno@clisp.org>
52729         xgetcwd: Move AC_LIBOBJ invocations to module description.
52730         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
52731         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
52733 2011-05-23  Bruno Haible  <bruno@clisp.org>
52735         xalloc: Move AC_LIBOBJ invocations to module description.
52736         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
52737         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
52739 2011-05-23  Bruno Haible  <bruno@clisp.org>
52741         write-any-file: Move AC_LIBOBJ invocations to module description.
52742         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
52743         invocation.
52744         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
52746 2011-05-23  Bruno Haible  <bruno@clisp.org>
52748         utimens: Move AC_LIBOBJ invocations to module description.
52749         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
52750         * modules/utimens (Makefile.am): Augment lib_SOURCES.
52752 2011-05-23  Bruno Haible  <bruno@clisp.org>
52754         utimecmp: Move AC_LIBOBJ invocations to module description.
52755         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
52756         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
52758 2011-05-23  Bruno Haible  <bruno@clisp.org>
52760         userspec: Move AC_LIBOBJ invocations to module description.
52761         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
52762         * modules/userspec (Makefile.am): Augment lib_SOURCES.
52764 2011-05-23  Bruno Haible  <bruno@clisp.org>
52766         unlinkdir: Move AC_LIBOBJ invocations to module description.
52767         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
52768         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
52770 2011-05-23  Bruno Haible  <bruno@clisp.org>
52772         unistd-safer: Move AC_LIBOBJ invocations to module description.
52773         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
52774         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
52776 2011-05-23  Bruno Haible  <bruno@clisp.org>
52778         tempname: Move AC_LIBOBJ invocations to module description.
52779         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
52780         * modules/tempname (Makefile.am): Augment lib_SOURCES.
52782 2011-05-23  Bruno Haible  <bruno@clisp.org>
52784         strftime: Move AC_LIBOBJ invocations to module description.
52785         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
52786         * modules/strftime (Makefile.am): Augment lib_SOURCES.
52788 2011-05-23  Bruno Haible  <bruno@clisp.org>
52790         stdlib-safer: Move AC_LIBOBJ invocations to module description.
52791         * m4/stdlib-safer.m4: Remove file.
52792         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
52793         (configure.ac): Remove gl_STDLIB_SAFER call.
52794         (Makefile.am): Augment lib_SOURCES.
52796 2011-05-23  Bruno Haible  <bruno@clisp.org>
52798         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
52799         * m4/stdio-safer.m4: Remove file.
52800         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
52801         (configure.ac): Remove gl_TMPFILE_SAFER call.
52802         (Makefile.am): Augment lib_SOURCES.
52804 2011-05-23  Bruno Haible  <bruno@clisp.org>
52806         popen-safer: Move AC_LIBOBJ invocations to module description.
52807         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
52808         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
52809         (configure.ac): Remove gl_POPEN_SAFER call.
52810         (Makefile.am): Augment lib_SOURCES.
52812 2011-05-23  Bruno Haible  <bruno@clisp.org>
52814         freopen-safer: Move AC_LIBOBJ invocations to module description.
52815         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
52816         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
52817         (configure.ac): Remove gl_FREOPEN_SAFER call.
52818         (Makefile.am): Augment lib_SOURCES.
52820 2011-05-23  Bruno Haible  <bruno@clisp.org>
52822         fopen-safer: Move AC_LIBOBJ invocations to module description.
52823         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
52824         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
52825         (configure.ac): Remove gl_FOPEN_SAFER call.
52826         (Makefile.am): Augment lib_SOURCES.
52828 2011-05-23  Bruno Haible  <bruno@clisp.org>
52830         crypto/sha512: Move AC_LIBOBJ invocations to module description.
52831         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
52832         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
52834 2011-05-23  Bruno Haible  <bruno@clisp.org>
52836         crypto/sha256: Move AC_LIBOBJ invocations to module description.
52837         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
52838         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
52840 2011-05-23  Bruno Haible  <bruno@clisp.org>
52842         crypto/sha1: Move AC_LIBOBJ invocations to module description.
52843         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
52844         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
52846 2011-05-23  Bruno Haible  <bruno@clisp.org>
52848         settime: Move AC_LIBOBJ invocations to module description.
52849         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
52850         * modules/settime (Makefile.am): Augment lib_SOURCES.
52852 2011-05-23  Bruno Haible  <bruno@clisp.org>
52854         savedir: Move AC_LIBOBJ invocations to module description.
52855         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
52856         * modules/savedir (Makefile.am): Augment lib_SOURCES.
52858 2011-05-23  Bruno Haible  <bruno@clisp.org>
52860         save-cwd: Move AC_LIBOBJ invocations to module description.
52861         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
52862         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
52864 2011-05-23  Bruno Haible  <bruno@clisp.org>
52866         same: Move AC_LIBOBJ invocations to module description.
52867         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
52868         * modules/same (Makefile.am): Augment lib_SOURCES.
52870 2011-05-23  Bruno Haible  <bruno@clisp.org>
52872         safe-write: Move AC_LIBOBJ invocations to module description.
52873         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
52874         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
52875         instead of gl_SAFE_WRITE.
52876         (Makefile.am): Augment lib_SOURCES.
52878 2011-05-23  Bruno Haible  <bruno@clisp.org>
52880         safe-read: Move AC_LIBOBJ invocations to module description.
52881         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
52882         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
52883         of gl_SAFE_READ.
52884         (Makefile.am): Augment lib_SOURCES.
52886 2011-05-23  Bruno Haible  <bruno@clisp.org>
52888         safe-alloc: Move AC_LIBOBJ invocations to module description.
52889         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
52890         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
52892 2011-05-23  Bruno Haible  <bruno@clisp.org>
52894         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
52895         * m4/rijndael.m4: Remove file.
52896         * modules/crypto/rijndael (Files): Remove it.
52897         (configure.ac): Remove gl_RIJNDAEL call.
52898         (Makefile.am): Augment lib_SOURCES.
52900 2011-05-23  Bruno Haible  <bruno@clisp.org>
52902         readtokens: Move AC_LIBOBJ invocations to module description.
52903         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
52904         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
52906 2011-05-23  Bruno Haible  <bruno@clisp.org>
52908         read-file: Move AC_LIBOBJ invocations to module description.
52909         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
52910         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
52911         of gl_FUNC_READ_FILE.
52912         (Makefile.am): Augment lib_SOURCES.
52914 2011-05-23  Bruno Haible  <bruno@clisp.org>
52916         quotearg: Move AC_LIBOBJ invocations to module description.
52917         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
52918         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
52920 2011-05-23  Bruno Haible  <bruno@clisp.org>
52922         quote: Move AC_LIBOBJ invocations to module description.
52923         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
52924         * modules/quote (Makefile.am): Augment lib_SOURCES.
52926 2011-05-23  Bruno Haible  <bruno@clisp.org>
52928         posixver: Move AC_LIBOBJ invocations to module description.
52929         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
52930         * modules/posixver (Makefile.am): Augment lib_SOURCES.
52932 2011-05-23  Bruno Haible  <bruno@clisp.org>
52934         posixtm: Move AC_LIBOBJ invocations to module description.
52935         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
52936         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
52938 2011-05-23  Bruno Haible  <bruno@clisp.org>
52940         physmem: Move AC_LIBOBJ invocations to module description.
52941         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
52942         * modules/physmem (Makefile.am): Augment lib_SOURCES.
52944 2011-05-23  Bruno Haible  <bruno@clisp.org>
52946         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
52947         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
52948         invocation.
52949         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
52951 2011-05-23  Bruno Haible  <bruno@clisp.org>
52953         mpsort: Move AC_LIBOBJ invocations to module description.
52954         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
52955         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
52957 2011-05-23  Bruno Haible  <bruno@clisp.org>
52959         modechange: Move AC_LIBOBJ invocations to module description.
52960         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
52961         * modules/modechange (Makefile.am): Augment lib_SOURCES.
52963 2011-05-23  Bruno Haible  <bruno@clisp.org>
52965         mkdir-p: Move AC_LIBOBJ invocations to module description.
52966         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
52967         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
52969 2011-05-23  Bruno Haible  <bruno@clisp.org>
52971         mkancesdirs: Move AC_LIBOBJ invocations to module description.
52972         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
52973         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
52975 2011-05-23  Bruno Haible  <bruno@clisp.org>
52977         mgetgroups: Move AC_LIBOBJ invocations to module description.
52978         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
52979         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
52981 2011-05-23  Bruno Haible  <bruno@clisp.org>
52983         memxor: Move AC_LIBOBJ invocations to module description.
52984         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
52985         * modules/memxor (Makefile.am): Augment lib_SOURCES.
52987 2011-05-23  Bruno Haible  <bruno@clisp.org>
52989         memcoll: Move AC_LIBOBJ invocations to module description.
52990         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
52991         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
52993 2011-05-23  Bruno Haible  <bruno@clisp.org>
52995         memcasecmp: Move AC_LIBOBJ invocations to module description.
52996         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
52997         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
52999 2011-05-23  Bruno Haible  <bruno@clisp.org>
53001         crypto/md5: Move AC_LIBOBJ invocations to module description.
53002         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
53003         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
53005 2011-05-23  Bruno Haible  <bruno@clisp.org>
53007         crypto/md4: Move AC_LIBOBJ invocations to module description.
53008         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
53009         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
53011 2011-05-23  Bruno Haible  <bruno@clisp.org>
53013         crypto/md2: Move AC_LIBOBJ invocations to module description.
53014         * m4/md2.m4: Remove file.
53015         * modules/crypto/md2 (Files): Remove it.
53016         (configure.ac): Remove gl_MD2 call.
53017         (Makefile.am): Augment lib_SOURCES.
53019 2011-05-23  Bruno Haible  <bruno@clisp.org>
53021         long-options: Move AC_LIBOBJ invocations to module description.
53022         * m4/long-options.m4: Remove file.
53023         * modules/long-options (Files): Remove it.
53024         (configure.ac): Remove gl_LONG_OPTIONS call.
53025         (Makefile.am): Augment lib_SOURCES.
53027 2011-05-23  Bruno Haible  <bruno@clisp.org>
53029         i-ring: Move AC_LIBOBJ invocations to module description.
53030         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
53031         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
53033 2011-05-23  Bruno Haible  <bruno@clisp.org>
53035         idcache: Move AC_LIBOBJ invocations to module description.
53036         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
53037         * modules/idcache (Makefile.am): Augment lib_SOURCES.
53039 2011-05-23  Bruno Haible  <bruno@clisp.org>
53041         human: Move AC_LIBOBJ invocations to module description.
53042         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
53043         * modules/human (Makefile.am): Augment lib_SOURCES.
53045 2011-05-23  Bruno Haible  <bruno@clisp.org>
53047         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
53048         * m4/hmac-sha1.m4: Remove file.
53049         * modules/crypto/hmac-sha1 (Files): Remove it.
53050         (configure.ac): Remove gl_HMAC_SHA1 call.
53051         (Makefile.am): Augment lib_SOURCES.
53053 2011-05-23  Bruno Haible  <bruno@clisp.org>
53055         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
53056         * m4/hmac-md5.m4: Remove file.
53057         * modules/crypto/hmac-md5 (Files): Remove it.
53058         (configure.ac): Remove gl_HMAC_MD5 call.
53059         (Makefile.am): Augment lib_SOURCES.
53061 2011-05-23  Bruno Haible  <bruno@clisp.org>
53063         hash: Move AC_LIBOBJ invocations to module description.
53064         * m4/hash.m4: Remove file.
53065         * modules/hash (Files): Remove it.
53066         (configure.ac): Remove gl_HASH call.
53067         (Makefile.am): Augment lib_SOURCES.
53069 2011-05-23  Bruno Haible  <bruno@clisp.org>
53071         hard-locale: Move AC_LIBOBJ invocations to module description.
53072         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
53073         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
53075 2011-05-23  Bruno Haible  <bruno@clisp.org>
53077         getugroups: Move AC_LIBOBJ invocations to module description.
53078         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
53079         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
53081 2011-05-23  Bruno Haible  <bruno@clisp.org>
53083         gettime: Move AC_LIBOBJ invocations to module description.
53084         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
53085         * modules/gettime (Makefile.am): Augment lib_SOURCES.
53087 2011-05-23  Bruno Haible  <bruno@clisp.org>
53089         getndelim2: Move AC_LIBOBJ invocations to module description.
53090         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
53091         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
53093 2011-05-23  Bruno Haible  <bruno@clisp.org>
53095         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
53096         * m4/gc-pbkdf2-sha1.m4: Remove file.
53097         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
53098         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
53099         (Makefile.am): Augment lib_SOURCES.
53101 2011-05-23  Bruno Haible  <bruno@clisp.org>
53103         fts: Move AC_LIBOBJ invocations to module description.
53104         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
53105         * modules/fts (configure.ac): ... to here.
53107 2011-05-23  Bruno Haible  <bruno@clisp.org>
53109         file-type: Move AC_LIBOBJ invocations to module description.
53110         * m4/file-type.m4: Remove file.
53111         * modules/file-type (Files): Remove it.
53112         (configure.ac): Remove gl_FILE_TYPE call.
53113         (Makefile.am): Augment lib_SOURCES.
53115 2011-05-23  Bruno Haible  <bruno@clisp.org>
53117         filenamecat*: Respect rules for use of AC_LIBOBJ.
53118         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
53119         Remove AC_LIBOBJ invocation.
53120         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
53121         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
53123 2011-05-23  Bruno Haible  <bruno@clisp.org>
53125         filemode: Move AC_LIBOBJ invocations to module description.
53126         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
53127         * modules/filemode (Makefile.am): Augment lib_SOURCES.
53129 2011-05-23  Bruno Haible  <bruno@clisp.org>
53131         openat-safer: Move AC_LIBOBJ invocations to module description.
53132         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
53133         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
53135 2011-05-23  Bruno Haible  <bruno@clisp.org>
53137         fcntl-safer: Move AC_LIBOBJ invocations to module description.
53138         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
53139         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
53141 2011-05-23  Bruno Haible  <bruno@clisp.org>
53143         exclude: Move AC_LIBOBJ invocations to module description.
53144         * m4/exclude.m4: Remove file.
53145         * modules/exclude (Files): Remove it.
53146         (configure.ac): Remove gl_EXCLUDE call.
53147         (Makefile.am): Augment lib_SOURCES.
53149 2011-05-23  Bruno Haible  <bruno@clisp.org>
53151         dirname*: Respect rules for use of AC_LIBOBJ.
53152         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
53153         invocations.
53154         * modules/dirname (Makefile.am): Augment lib_SOURCES.
53155         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
53157 2011-05-23  Bruno Haible  <bruno@clisp.org>
53159         dirent-safer: Move AC_LIBOBJ invocations to module description.
53160         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
53161         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
53163 2011-05-23  Bruno Haible  <bruno@clisp.org>
53165         crypto/des: Move AC_LIBOBJ invocations to module description.
53166         * m4/des.m4: Remove file.
53167         * modules/crypto/des (Files): Remove it.
53168         (configure.ac): Remove gl_DES call.
53169         (Makefile.am): Augment lib_SOURCES.
53171 2011-05-23  Bruno Haible  <bruno@clisp.org>
53173         cycle-check: Move AC_LIBOBJ invocations to module description.
53174         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
53175         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
53177 2011-05-23  Bruno Haible  <bruno@clisp.org>
53179         c-strtold: Move AC_LIBOBJ invocations to module description.
53180         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
53181         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
53183 2011-05-23  Bruno Haible  <bruno@clisp.org>
53185         c-strtod: Move AC_LIBOBJ invocations to module description.
53186         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
53187         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
53189 2011-05-23  Bruno Haible  <bruno@clisp.org>
53191         crc: Move AC_LIBOBJ invocations to module description.
53192         * m4/crc.m4: Remove file.
53193         * modules/crc (Files): Remove it.
53194         (configure.ac): Remove gl_CRC call.
53195         (Makefile.am): Augment lib_SOURCES.
53197 2011-05-23  Bruno Haible  <bruno@clisp.org>
53199         close-stream: Move AC_LIBOBJ invocations to module description.
53200         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
53201         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
53203 2011-05-23  Bruno Haible  <bruno@clisp.org>
53205         closeout: Move AC_LIBOBJ invocations to module description.
53206         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
53207         * modules/closeout (Makefile.am): Augment lib_SOURCES.
53209 2011-05-23  Bruno Haible  <bruno@clisp.org>
53211         closein: Move AC_LIBOBJ invocations to module description.
53212         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
53213         * modules/closein (Makefile.am): Augment lib_SOURCES.
53215 2011-05-23  Bruno Haible  <bruno@clisp.org>
53217         cloexec: Move AC_LIBOBJ invocations to module description.
53218         * m4/cloexec.m4: Remove file.
53219         * modules/cloexec (Files): Remove it.
53220         (configure.ac): Remove gl_CLOEXEC call.
53221         (Makefile.am): Augment lib_SOURCES.
53223 2011-05-23  Bruno Haible  <bruno@clisp.org>
53225         check-version: Move AC_LIBOBJ invocations to module description.
53226         * m4/check-version.m4: Remove file.
53227         * modules/check-version (Files): Remove it.
53228         (configure.ac): Remove gl_CHECK_VERSION call.
53229         (Makefile.am): Augment lib_SOURCES.
53231 2011-05-23  Bruno Haible  <bruno@clisp.org>
53233         chdir-safer: Move AC_LIBOBJ invocations to module description.
53234         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
53235         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
53237 2011-05-23  Bruno Haible  <bruno@clisp.org>
53239         canonicalize: Move AC_LIBOBJ invocations to module description.
53240         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
53241         AC_LIBOBJ invocation.
53242         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
53244 2011-05-23  Bruno Haible  <bruno@clisp.org>
53246         canon-host: Move AC_LIBOBJ invocations to module description.
53247         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
53248         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
53249         instead of gl_CANON_HOST.
53250         (Makefile.am): Augment lib_SOURCES.
53252 2011-05-23  Bruno Haible  <bruno@clisp.org>
53254         backupfile: Move AC_LIBOBJ invocations to module description.
53255         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
53256         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
53258 2011-05-23  Bruno Haible  <bruno@clisp.org>
53260         argmatch: Move AC_LIBOBJ invocations to module description.
53261         * m4/argmatch.m4: Remove file.
53262         * modules/argmatch (Files): Remove it.
53263         (configure.ac): Remove gl_ARGMATCH call.
53264         (Makefile.am): Augment lib_SOURCES.
53266 2011-05-23  Bruno Haible  <bruno@clisp.org>
53268         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
53269         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
53270         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
53272 2011-05-23  Bruno Haible  <bruno@clisp.org>
53274         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
53275         * m4/arcfour.m4: Remove file.
53276         * modules/crypto/arcfour (Files): Remove it.
53277         (configure.ac): Remove gl_ARCFOUR call.
53278         (Makefile.am): Augment lib_SOURCES.
53280 2011-05-22  Bruno Haible  <bruno@clisp.org>
53282         write: Move AC_LIBOBJ invocations to module description.
53283         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
53284         * modules/write (configure.ac): ... to here.
53286 2011-05-22  Bruno Haible  <bruno@clisp.org>
53288         wmemset: Move AC_LIBOBJ invocations to module description.
53289         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
53290         here...
53291         * modules/wmemset (configure.ac): ... to here.
53293 2011-05-22  Bruno Haible  <bruno@clisp.org>
53295         wmemmove: Move AC_LIBOBJ invocations to module description.
53296         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
53297         here...
53298         * modules/wmemmove (configure.ac): ... to here.
53300 2011-05-22  Bruno Haible  <bruno@clisp.org>
53302         wmemcpy: Move AC_LIBOBJ invocations to module description.
53303         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
53304         here...
53305         * modules/wmemcpy (configure.ac): ... to here.
53307 2011-05-22  Bruno Haible  <bruno@clisp.org>
53309         wmemcmp: Move AC_LIBOBJ invocations to module description.
53310         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
53311         here...
53312         * modules/wmemcmp (configure.ac): ... to here.
53314 2011-05-22  Bruno Haible  <bruno@clisp.org>
53316         wmemchr: Move AC_LIBOBJ invocations to module description.
53317         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
53318         here...
53319         * modules/wmemchr (configure.ac): ... to here.
53321 2011-05-22  Bruno Haible  <bruno@clisp.org>
53323         wcswidth: Move AC_LIBOBJ invocations to module description.
53324         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
53325         here...
53326         * modules/wcswidth (configure.ac): ... to here.
53328 2011-05-22  Bruno Haible  <bruno@clisp.org>
53330         wcwidth: Respect rules for use of AC_LIBOBJ.
53331         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
53332         invocation from here...
53333         * modules/wcwidth (configure.ac): ... to here.
53334         (Depends-on): Update conditions.
53336 2011-05-22  Bruno Haible  <bruno@clisp.org>
53338         wctype: Move AC_LIBOBJ invocations to module description.
53339         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
53340         invocation from here...
53341         * modules/wctype (configure.ac): ... to here.
53342         (Depends-on): Update conditions.
53344 2011-05-22  Bruno Haible  <bruno@clisp.org>
53346         wctrans: Move AC_LIBOBJ invocations to module description.
53347         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
53348         invocation from here...
53349         * modules/wctrans (configure.ac): ... to here.
53351 2011-05-22  Bruno Haible  <bruno@clisp.org>
53353         wctomb: Move AC_LIBOBJ invocations to module description.
53354         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
53355         invocations from here...
53356         * modules/wctomb (configure.ac): ... to here.
53358 2011-05-22  Bruno Haible  <bruno@clisp.org>
53360         wctob: Move AC_LIBOBJ invocations to module description.
53361         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
53362         gl_PREREQ_WCTOB invocations from here...
53363         * modules/wctob (configure.ac): ... to here.
53364         (Depends-on): Update conditions.
53366 2011-05-22  Bruno Haible  <bruno@clisp.org>
53368         wcsxfrm: Move AC_LIBOBJ invocations to module description.
53369         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
53370         here...
53371         * modules/wcsxfrm (configure.ac): ... to here.
53373 2011-05-22  Bruno Haible  <bruno@clisp.org>
53375         wcstok: Move AC_LIBOBJ invocations to module description.
53376         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
53377         * modules/wcstok (configure.ac): ... to here.
53379 2011-05-22  Bruno Haible  <bruno@clisp.org>
53381         wcsstr: Move AC_LIBOBJ invocations to module description.
53382         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
53383         * modules/wcsstr (configure.ac): ... to here.
53385 2011-05-22  Bruno Haible  <bruno@clisp.org>
53387         wcsspn: Move AC_LIBOBJ invocations to module description.
53388         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
53389         * modules/wcsspn (configure.ac): ... to here.
53391 2011-05-22  Bruno Haible  <bruno@clisp.org>
53393         wcsrtombs: Move AC_LIBOBJ invocations to module description.
53394         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
53395         gl_PREREQ_WCSRTOMBS invocations from here...
53396         * modules/wcsrtombs (configure.ac): ... to here.
53398 2011-05-22  Bruno Haible  <bruno@clisp.org>
53400         wcsrchr: Move AC_LIBOBJ invocations to module description.
53401         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
53402         here...
53403         * modules/wcsrchr (configure.ac): ... to here.
53405 2011-05-22  Bruno Haible  <bruno@clisp.org>
53407         wcspbrk: Move AC_LIBOBJ invocations to module description.
53408         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
53409         here...
53410         * modules/wcspbrk (configure.ac): ... to here.
53412 2011-05-22  Bruno Haible  <bruno@clisp.org>
53414         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
53415         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
53416         gl_PREREQ_WCSNRTOMBS invocations from here...
53417         * modules/wcsnrtombs (configure.ac): ... to here.
53419 2011-05-22  Bruno Haible  <bruno@clisp.org>
53421         wcsnlen: Move AC_LIBOBJ invocations to module description.
53422         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
53423         here...
53424         * modules/wcsnlen (configure.ac): ... to here.
53426 2011-05-22  Bruno Haible  <bruno@clisp.org>
53428         wcsncpy: Move AC_LIBOBJ invocations to module description.
53429         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
53430         here...
53431         * modules/wcsncpy (configure.ac): ... to here.
53433 2011-05-22  Bruno Haible  <bruno@clisp.org>
53435         wcsncmp: Move AC_LIBOBJ invocations to module description.
53436         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
53437         here...
53438         * modules/wcsncmp (configure.ac): ... to here.
53440 2011-05-22  Bruno Haible  <bruno@clisp.org>
53442         wcsncat: Move AC_LIBOBJ invocations to module description.
53443         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
53444         here...
53445         * modules/wcsncat (configure.ac): ... to here.
53447 2011-05-22  Bruno Haible  <bruno@clisp.org>
53449         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
53450         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
53451         from here...
53452         * modules/wcsncasecmp (configure.ac): ... to here.
53454 2011-05-22  Bruno Haible  <bruno@clisp.org>
53456         wcslen: Move AC_LIBOBJ invocations to module description.
53457         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
53458         * modules/wcslen (configure.ac): ... to here.
53460 2011-05-22  Bruno Haible  <bruno@clisp.org>
53462         wcsdup: Move AC_LIBOBJ invocations to module description.
53463         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
53464         * modules/wcsdup (configure.ac): ... to here.
53466 2011-05-22  Bruno Haible  <bruno@clisp.org>
53468         wcscspn: Move AC_LIBOBJ invocations to module description.
53469         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
53470         here...
53471         * modules/wcscspn (configure.ac): ... to here.
53473 2011-05-22  Bruno Haible  <bruno@clisp.org>
53475         wcscpy: Move AC_LIBOBJ invocations to module description.
53476         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
53477         * modules/wcscpy (configure.ac): ... to here.
53479 2011-05-22  Bruno Haible  <bruno@clisp.org>
53481         wcscoll: Move AC_LIBOBJ invocations to module description.
53482         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
53483         here...
53484         * modules/wcscoll (configure.ac): ... to here.
53486 2011-05-22  Bruno Haible  <bruno@clisp.org>
53488         wcscmp: Move AC_LIBOBJ invocations to module description.
53489         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
53490         * modules/wcscmp (configure.ac): ... to here.
53492 2011-05-22  Bruno Haible  <bruno@clisp.org>
53494         wcschr: Move AC_LIBOBJ invocations to module description.
53495         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
53496         * modules/wcschr (configure.ac): ... to here.
53498 2011-05-22  Bruno Haible  <bruno@clisp.org>
53500         wcscat: Move AC_LIBOBJ invocations to module description.
53501         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
53502         * modules/wcscat (configure.ac): ... to here.
53504 2011-05-22  Bruno Haible  <bruno@clisp.org>
53506         wcscasecmp: Move AC_LIBOBJ invocations to module description.
53507         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
53508         here...
53509         * modules/wcscasecmp (configure.ac): ... to here.
53511 2011-05-22  Bruno Haible  <bruno@clisp.org>
53513         wcrtomb: Move AC_LIBOBJ invocations to module description.
53514         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
53515         invocations from here...
53516         * modules/wcrtomb (configure.ac): ... to here.
53518 2011-05-22  Bruno Haible  <bruno@clisp.org>
53520         wcpncpy: Move AC_LIBOBJ invocations to module description.
53521         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
53522         here...
53523         * modules/wcpncpy (configure.ac): ... to here.
53525 2011-05-22  Bruno Haible  <bruno@clisp.org>
53527         wcpcpy: Move AC_LIBOBJ invocations to module description.
53528         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
53529         * modules/wcpcpy (configure.ac): ... to here.
53531 2011-05-22  Bruno Haible  <bruno@clisp.org>
53533         waitpid: Move AC_LIBOBJ invocations to module description.
53534         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
53535         invocation from here...
53536         * modules/waitpid (configure.ac): ... to here.
53538 2011-05-22  Bruno Haible  <bruno@clisp.org>
53540         utimensat: Move AC_LIBOBJ invocations to module description.
53541         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
53542         here...
53543         * modules/utimensat (configure.ac): ... to here.
53545 2011-05-22  Bruno Haible  <bruno@clisp.org>
53547         usleep: Move AC_LIBOBJ invocations to module description.
53548         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
53549         here...
53550         * modules/usleep (configure.ac): ... to here.
53552 2011-05-22  Bruno Haible  <bruno@clisp.org>
53554         unlockpt: Move AC_LIBOBJ invocations to module description.
53555         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
53556         gl_PREREQ_UNLOCKPT invocations from here...
53557         * modules/unlockpt (configure.ac): ... to here.
53559 2011-05-22  Bruno Haible  <bruno@clisp.org>
53561         unlink: Respect rules for use of AC_LIBOBJ.
53562         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
53563         * modules/unlink (configure.ac): ... to here.
53565 2011-05-22  Bruno Haible  <bruno@clisp.org>
53567         uname: Move AC_LIBOBJ invocations to module description.
53568         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
53569         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
53570         here...
53571         * modules/uname (configure.ac): ... to here.
53573 2011-05-22  Bruno Haible  <bruno@clisp.org>
53575         ttyname_r: Move AC_LIBOBJ invocations to module description.
53576         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
53577         gl_PREREQ_TTYNAME_R invocations from here...
53578         * modules/ttyname_r (configure.ac): ... to here.
53580 2011-05-22  Bruno Haible  <bruno@clisp.org>
53582         tsearch: Move AC_LIBOBJ invocations to module description.
53583         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
53584         invocations from here...
53585         * modules/tsearch (configure.ac): ... to here.
53587 2011-05-22  Bruno Haible  <bruno@clisp.org>
53589         towctrans: Move AC_LIBOBJ invocations to module description.
53590         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
53591         AC_LIBOBJ invocation from here...
53592         * modules/towctrans (configure.ac): ... to here.
53594 2011-05-22  Bruno Haible  <bruno@clisp.org>
53596         tmpfile: Move AC_LIBOBJ invocations to module description.
53597         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
53598         invocations from here...
53599         * modules/tmpfile (configure.ac): ... to here.
53601 2011-05-22  Bruno Haible  <bruno@clisp.org>
53603         times: Move AC_LIBOBJ invocations to module description.
53604         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
53605         * modules/times (configure.ac): ... to here.
53607 2011-05-22  Bruno Haible  <bruno@clisp.org>
53609         time_r: Move AC_LIBOBJ invocations to module description.
53610         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
53611         invocations from here...
53612         * modules/time_r (configure.ac): ... to here.
53614 2011-05-22  Bruno Haible  <bruno@clisp.org>
53616         timegm: Move AC_LIBOBJ invocations to module description.
53617         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
53618         invocations from here...
53619         * modules/timegm (configure.ac): ... to here.
53621 2011-05-22  Bruno Haible  <bruno@clisp.org>
53623         tcgetsid: Move AC_LIBOBJ invocations to module description.
53624         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
53625         and gl_PREREQ_TCGETSID invocations from here...
53626         * modules/tcgetsid (configure.ac): ... to here.
53627         (Depends-on): Update conditions.
53629 2011-05-22  Bruno Haible  <bruno@clisp.org>
53631         symlinkat: Move AC_LIBOBJ invocations to module description.
53632         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
53633         here...
53634         * modules/symlinkat (configure.ac): ... to here.
53636 2011-05-22  Bruno Haible  <bruno@clisp.org>
53638         symlink: Move AC_LIBOBJ invocations to module description.
53639         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
53640         here...
53641         * modules/symlink (configure.ac): ... to here.
53643 2011-05-22  Bruno Haible  <bruno@clisp.org>
53645         strverscmp: Move AC_LIBOBJ invocations to module description.
53646         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
53647         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
53648         from here...
53649         * modules/strverscmp (configure.ac): ... to here.
53651 2011-05-22  Bruno Haible  <bruno@clisp.org>
53653         strtok_r: Move AC_LIBOBJ invocations to module description.
53654         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
53655         and gl_PREREQ_STRTOK_R invocations from here...
53656         * modules/strtok_r (configure.ac): ... to here.
53657         (Depends-on): Update conditions.
53659 2011-05-22  Bruno Haible  <bruno@clisp.org>
53661         strtoumax: Move AC_LIBOBJ invocations to module description.
53662         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
53663         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
53664         from here...
53665         * modules/strtoumax (configure.ac): ... to here.
53667 2011-05-22  Bruno Haible  <bruno@clisp.org>
53669         strtoimax: Move AC_LIBOBJ invocations to module description.
53670         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
53671         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
53672         from here...
53673         * modules/strtoimax (configure.ac): ... to here.
53675 2011-05-22  Bruno Haible  <bruno@clisp.org>
53677         strtoull: Move AC_LIBOBJ invocations to module description.
53678         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
53679         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
53680         from here...
53681         * modules/strtoull (configure.ac): ... to here.
53683 2011-05-22  Bruno Haible  <bruno@clisp.org>
53685         strtoll: Move AC_LIBOBJ invocations to module description.
53686         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
53687         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
53688         here...
53689         * modules/strtoll (configure.ac): ... to here.
53691 2011-05-22  Bruno Haible  <bruno@clisp.org>
53693         strtoul: Move AC_LIBOBJ invocations to module description.
53694         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
53695         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
53696         * modules/strtoul (configure.ac): ... to here.
53698 2011-05-22  Bruno Haible  <bruno@clisp.org>
53700         strtol: Move AC_LIBOBJ invocations to module description.
53701         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
53702         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
53703         * modules/strtol (configure.ac): ... to here.
53705 2011-05-22  Bruno Haible  <bruno@clisp.org>
53707         strtod: Move AC_LIBOBJ invocations to module description.
53708         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
53709         invocations from here...
53710         * modules/strtod (configure.ac): ... to here.
53712 2011-05-22  Bruno Haible  <bruno@clisp.org>
53714         strstr*: Move AC_LIBOBJ invocations to module description.
53715         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
53716         invocations from here...
53717         * modules/strstr-simple (configure.ac): ... to here.
53718         * modules/strstr (configure.ac): ... and here.
53720 2011-05-22  Bruno Haible  <bruno@clisp.org>
53722         strsignal: Move AC_LIBOBJ invocations to module description.
53723         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
53724         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
53725         * modules/strsignal (configure.ac): ... to here.
53726         (Depends-on): Update conditions.
53728 2011-05-22  Bruno Haible  <bruno@clisp.org>
53730         strsep: Move AC_LIBOBJ invocations to module description.
53731         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
53732         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
53733         here...
53734         * modules/strsep (configure.ac): ... to here.
53736 2011-05-22  Bruno Haible  <bruno@clisp.org>
53738         strptime: Move AC_LIBOBJ invocations to module description.
53739         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
53740         gl_PREREQ_STRPTIME invocations from here...
53741         * modules/strptime (configure.ac): ... to here.
53743 2011-05-22  Bruno Haible  <bruno@clisp.org>
53745         strpbrk: Move AC_LIBOBJ invocations to module description.
53746         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
53747         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
53748         here...
53749         * modules/strpbrk (configure.ac): ... to here.
53751 2011-05-22  Bruno Haible  <bruno@clisp.org>
53753         strnlen: Move AC_LIBOBJ invocations to module description.
53754         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
53755         invocations from here...
53756         * modules/strnlen (configure.ac): ... to here.
53758 2011-05-22  Bruno Haible  <bruno@clisp.org>
53760         strndup: Move AC_LIBOBJ invocations to module description.
53761         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
53762         invocations from here...
53763         * modules/strndup (configure.ac): ... to here.
53764         (Depends-on): Update conditions.
53766 2011-05-22  Bruno Haible  <bruno@clisp.org>
53768         strncat: Move AC_LIBOBJ invocations to module description.
53769         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
53770         invocations from here...
53771         * modules/strncat (configure.ac): ... to here.
53773 2011-05-22  Bruno Haible  <bruno@clisp.org>
53775         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
53776         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
53777         invocations from here...
53778         * modules/strdup (configure.ac): ... to here.
53779         * modules/strdup-posix (configure.ac): ... and here.
53781 2011-05-22  Bruno Haible  <bruno@clisp.org>
53783         strcspn: Move AC_LIBOBJ invocations to module description.
53784         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
53785         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
53786         here...
53787         * modules/strcspn (configure.ac): ... to here.
53789 2011-05-22  Bruno Haible  <bruno@clisp.org>
53791         strchrnul: Move AC_LIBOBJ invocations to module description.
53792         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
53793         gl_PREREQ_STRCHRNUL invocations from here...
53794         * modules/strchrnul (configure.ac): ... to here.
53796 2011-05-22  Bruno Haible  <bruno@clisp.org>
53798         strcasestr*: Move AC_LIBOBJ invocations to module description.
53799         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
53800         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
53801         * modules/strcasestr-simple (configure.ac): ... to here.
53802         * modules/strcasestr (configure.ac): ... and here.
53804 2011-05-22  Bruno Haible  <bruno@clisp.org>
53806         strcase: Move AC_LIBOBJ invocations to module description.
53807         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
53808         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
53809         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
53810         gl_PREREQ_STRNCASECMP invocations from here...
53811         * modules/strcase (configure.ac): ... to here.
53813 2011-05-22  Bruno Haible  <bruno@clisp.org>
53815         stpncpy: Move AC_LIBOBJ invocations to module description.
53816         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
53817         here...
53818         * modules/stpncpy (configure.ac): ... to here.
53820 2011-05-22  Bruno Haible  <bruno@clisp.org>
53822         stpcpy: Move AC_LIBOBJ invocations to module description.
53823         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
53824         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
53825         here...
53826         * modules/stpcpy (configure.ac): ... to here.
53828 2011-05-21  Bruno Haible  <bruno@clisp.org>
53830         stat: Move AC_LIBOBJ invocations to module description.
53831         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
53832         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
53833         here...
53834         * modules/stat (configure.ac): ... to here.
53836 2011-05-21  Bruno Haible  <bruno@clisp.org>
53838         sleep: Move AC_LIBOBJ invocations to module description.
53839         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
53840         * modules/sleep (configure.ac): ... to here.
53842 2011-05-21  Bruno Haible  <bruno@clisp.org>
53844         signbit: Move AC_LIBOBJ invocations to module description.
53845         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
53846         * modules/signbit (configure.ac): ... to here.
53848 2011-05-21  Bruno Haible  <bruno@clisp.org>
53850         sigprocmask: Move AC_LIBOBJ invocations to module description.
53851         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
53852         gl_PREREQ_SIGPROMASK invocations from here...
53853         * modules/sigprocmask (configure.ac): ... to here.
53855 2011-05-21  Bruno Haible  <bruno@clisp.org>
53857         sigaction: Move AC_LIBOBJ invocations to module description.
53858         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
53859         gl_PREREQ_SIGACTION invocations from here...
53860         * modules/sigaction (configure.ac): ... to here.
53862 2011-05-21  Bruno Haible  <bruno@clisp.org>
53864         sig2str: Move AC_LIBOBJ invocations to module description.
53865         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
53866         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
53867         here...
53868         * modules/sig2str (configure.ac): ... to here.
53870 2011-05-21  Bruno Haible  <bruno@clisp.org>
53872         setlocale: Move AC_LIBOBJ invocations to module description.
53873         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
53874         gl_PREREQ_SETLOCALE invocations from here...
53875         * modules/setlocale (configure.ac): ... to here.
53877 2011-05-21  Bruno Haible  <bruno@clisp.org>
53879         unsetenv: Move AC_LIBOBJ invocations to module description.
53880         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
53881         and gl_PREREQ_UNSETENV invocations from here...
53882         * modules/unsetenv (configure.ac): ... to here.
53883         (Depends-on): Update.
53885 2011-05-21  Bruno Haible  <bruno@clisp.org>
53887         setenv: Move AC_LIBOBJ invocations to module description.
53888         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
53889         here...
53890         * modules/setenv (configure.ac): ... to here.
53892 2011-05-21  Bruno Haible  <bruno@clisp.org>
53894         selinux-h: Move AC_LIBOBJ invocations to module description.
53895         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
53896         AC_LIBOBJ invocation from here...
53897         * modules/selinux-h (configure.ac): ... to here.
53899 2011-05-21  Bruno Haible  <bruno@clisp.org>
53901         select: Respect rules for use of AC_LIBOBJ.
53902         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
53903         here...
53904         * modules/select (configure.ac): ... to here.
53906 2011-05-21  Bruno Haible  <bruno@clisp.org>
53908         scandir: Move AC_LIBOBJ invocations to module description.
53909         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
53910         invocations from here...
53911         * modules/scandir (configure.ac): ... to here.
53913 2011-05-21  Bruno Haible  <bruno@clisp.org>
53915         rpmatch: Move AC_LIBOBJ invocations to module description.
53916         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
53917         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
53918         here...
53919         * modules/rpmatch (configure.ac): ... to here.
53921 2011-05-21  Bruno Haible  <bruno@clisp.org>
53923         rmdir: Respect rules for use of AC_LIBOBJ.
53924         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
53925         * modules/rmdir (configure.ac): ... to here.
53927 2011-05-21  Bruno Haible  <bruno@clisp.org>
53929         renameat: Move AC_LIBOBJ invocations to module description.
53930         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
53931         here...
53932         * modules/renameat (configure.ac): ... to here.
53934 2011-05-21  Bruno Haible  <bruno@clisp.org>
53936         rename: Respect rules for use of AC_LIBOBJ.
53937         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
53938         here...
53939         * modules/rename (configure.ac): ... to here.
53941 2011-05-21  Bruno Haible  <bruno@clisp.org>
53943         remove: Move AC_LIBOBJ invocations to module description.
53944         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
53945         here...
53946         * modules/remove (configure.ac): ... to here.
53948 2011-05-21  Bruno Haible  <bruno@clisp.org>
53950         relocatable-lib: Move AC_LIBOBJ invocations to module description.
53951         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
53952         macro.
53953         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
53954         * modules/relocatable-lib (configure.ac): ... to here.
53955         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53956         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
53958 2011-05-21  Bruno Haible  <bruno@clisp.org>
53960         relocatable-prog: Move AC_LIBOBJ invocations to module description.
53961         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
53962         here...
53963         * modules/relocatable-prog (configure.ac): ... to here.
53965 2011-05-21  Bruno Haible  <bruno@clisp.org>
53967         regex: Move AC_LIBOBJ invocations to module description.
53968         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
53969         invocations from here...
53970         * modules/regex (configure.ac): ... to here.
53972 2011-05-21  Bruno Haible  <bruno@clisp.org>
53974         realloc-*: Move AC_LIBOBJ invocations to module description.
53975         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
53976         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
53977         AC_LIBOBJ invocations from here...
53978         * modules/realloc-gnu (configure.ac): ... to here.
53979         * modules/realloc-posix (configure.ac): ... and here.
53981 2011-05-21  Bruno Haible  <bruno@clisp.org>
53983         readutmp: Move AC_LIBOBJ invocations to module description.
53984         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
53985         * modules/readutmp (configure.ac): ... to here.
53987 2011-05-21  Bruno Haible  <bruno@clisp.org>
53989         readlinkat: Move AC_LIBOBJ invocations to module description.
53990         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
53991         here...
53992         * modules/readlinkat (configure.ac): ... to here.
53994 2011-05-21  Bruno Haible  <bruno@clisp.org>
53996         readlink: Move AC_LIBOBJ invocations to module description.
53997         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
53998         gl_PREREQ_READLINK invocations from here...
53999         * modules/readlink (configure.ac): ... to here.
54001 2011-05-21  Bruno Haible  <bruno@clisp.org>
54003         readline: Move AC_LIBOBJ invocations to module description.
54004         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
54005         gl_PREREQ_READLINE invocations from here...
54006         * modules/readline (configure.ac): ... to here.
54008 2011-05-21  Bruno Haible  <bruno@clisp.org>
54010         read: Move AC_LIBOBJ invocations to module description.
54011         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
54012         * modules/read (configure.ac): ... to here.
54014 2011-05-21  Bruno Haible  <bruno@clisp.org>
54016         rawmemchr: Move AC_LIBOBJ invocations to module description.
54017         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
54018         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
54019         from here...
54020         * modules/rawmemchr (configure.ac): ... to here.
54022 2011-05-21  Bruno Haible  <bruno@clisp.org>
54024         random_r: Move AC_LIBOBJ invocations to module description.
54025         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
54026         gl_PREREQ_RANDOM_R invocations from here...
54027         * modules/random_r (configure.ac): ... to here.
54029 2011-05-21  Bruno Haible  <bruno@clisp.org>
54031         pwrite: Move AC_LIBOBJ invocations to module description.
54032         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
54033         * modules/pwrite (configure.ac): ... to here.
54035 2011-05-21  Bruno Haible  <bruno@clisp.org>
54037         putenv: Move AC_LIBOBJ invocations to module description.
54038         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
54039         * modules/putenv (configure.ac): ... to here.
54041 2011-05-21  Bruno Haible  <bruno@clisp.org>
54043         login_tty: Move AC_LIBOBJ invocations to module description.
54044         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
54045         * modules/login_tty (configure.ac): ... to here.
54047 2011-05-21  Bruno Haible  <bruno@clisp.org>
54049         openpty: Move AC_LIBOBJ invocations to module description.
54050         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
54051         * modules/openpty (configure.ac): ... to here.
54053 2011-05-21  Bruno Haible  <bruno@clisp.org>
54055         forkpty: Move AC_LIBOBJ invocations to module description.
54056         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
54057         * modules/forkpty (configure.ac): ... to here.
54059 2011-05-21  Bruno Haible  <bruno@clisp.org>
54061         ptsname: Move AC_LIBOBJ invocations to module description.
54062         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
54063         invocations from here...
54064         * modules/ptsname (configure.ac): ... to here.
54066 2011-05-21  Bruno Haible  <bruno@clisp.org>
54068         pread: Move AC_LIBOBJ invocations to module description.
54069         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
54070         * modules/pread (configure.ac): ... to here.
54072 2011-05-21  Bruno Haible  <bruno@clisp.org>
54074         posix_spawn*: Move AC_LIBOBJ invocations to module description.
54075         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
54076         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
54077         * modules/posix_spawn (configure.ac): ... to here.
54078         * modules/posix_spawnp (configure.ac): ... and here.
54080 2011-05-21  Bruno Haible  <bruno@clisp.org>
54082         popen: Move AC_LIBOBJ invocations to module description.
54083         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
54084         invocations from here...
54085         * modules/popen (configure.ac): ... to here.
54087 2011-05-21  Bruno Haible  <bruno@clisp.org>
54089         poll: Move AC_LIBOBJ invocations to module description.
54090         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
54091         invocations from here...
54092         * modules/poll (configure.ac): ... to here.
54094 2011-05-21  Bruno Haible  <bruno@clisp.org>
54096         pipe-posix: Move AC_LIBOBJ invocations to module description.
54097         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
54098         * modules/pipe-posix (configure.ac): ... to here.
54100 2011-05-21  Bruno Haible  <bruno@clisp.org>
54102         openat: Respect rules for use of AC_LIBOBJ.
54103         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
54104         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
54105         * modules/openat (configure.ac): ... to here.
54107 2011-05-21  Bruno Haible  <bruno@clisp.org>
54109         obstack-printf*: Move AC_LIBOBJ invocations to module description.
54110         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
54111         invocation from here...
54112         * modules/obstack-printf (configure.ac): ... to here.
54113         * modules/obstack-printf-posix (configure.ac): ... and here.
54115 2011-05-21  Bruno Haible  <bruno@clisp.org>
54117         nl_langinfo: Move AC_LIBOBJ invocations to module description.
54118         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
54119         from here...
54120         * modules/nl_langinfo (configure.ac): ... to here.
54122 2011-05-21  Bruno Haible  <bruno@clisp.org>
54124         nanosleep: Move AC_LIBOBJ invocations to module description.
54125         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
54126         gl_PREREQ_NANOSLEEP invocations from here...
54127         * modules/nanosleep (configure.ac): ... to here.
54129 2011-05-21  Bruno Haible  <bruno@clisp.org>
54131         mountlist: Move AC_LIBOBJ invocations to module description.
54132         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
54133         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
54134         * modules/mountlist (configure.ac): ... to here.
54136 2011-05-21  Bruno Haible  <bruno@clisp.org>
54138         mktime: Respect rules for use of AC_LIBOBJ.
54139         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
54140         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
54141         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
54142         (gl_FUNC_MKTIME_INTERNAL): ... and here...
54143         * modules/mktime (configure.ac): ... to here.
54144         * modules/mktime-internal (configure.ac): ... and here.
54145         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
54147 2011-05-21  Bruno Haible  <bruno@clisp.org>
54149         mkstemps: Move AC_LIBOBJ invocations to module description.
54150         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
54151         here...
54152         * modules/mkstemps (configure.ac): ... to here.
54154 2011-05-21  Bruno Haible  <bruno@clisp.org>
54156         mkstemp: Move AC_LIBOBJ invocations to module description.
54157         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
54158         gl_PREREQ_MKSTEMP invocations from here...
54159         * modules/mkstemp (configure.ac): ... to here.
54161 2011-05-21  Bruno Haible  <bruno@clisp.org>
54163         mkostemps: Move AC_LIBOBJ invocations to module description.
54164         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
54165         here...
54166         * modules/mkostemps (configure.ac): ... to here.
54168 2011-05-21  Bruno Haible  <bruno@clisp.org>
54170         mkostemp: Move AC_LIBOBJ invocations to module description.
54171         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
54172         gl_PREREQ_MKOSTEMP invocations from here...
54173         * modules/mkostemp (configure.ac): ... to here.
54175 2011-05-21  Bruno Haible  <bruno@clisp.org>
54177         mknod: Move AC_LIBOBJ invocations to module description.
54178         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
54179         * modules/mknod (configure.ac): ... to here.
54181 2011-05-21  Bruno Haible  <bruno@clisp.org>
54183         mkfifoat: Move AC_LIBOBJ invocations to module description.
54184         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
54185         here...
54186         * modules/mkfifoat (configure.ac): ... to here.
54188 2011-05-21  Bruno Haible  <bruno@clisp.org>
54190         mkfifo: Respect rules for use of AC_LIBOBJ.
54191         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
54192         here...
54193         * modules/mkfifo (configure.ac): ... to here.
54195 2011-05-21  Bruno Haible  <bruno@clisp.org>
54197         mkdtemp: Move AC_LIBOBJ invocations to module description.
54198         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
54199         invocations from here...
54200         * modules/mkdtemp (configure.ac): ... to here.
54202 2011-05-21  Bruno Haible  <bruno@clisp.org>
54204         mkdir: Move AC_LIBOBJ invocations to module description.
54205         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
54206         * modules/mkdir (configure.ac): ... to here.
54208 2011-05-21  Bruno Haible  <bruno@clisp.org>
54210         memset: Move AC_LIBOBJ invocations to module description.
54211         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
54212         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
54213         here...
54214         * modules/memset (configure.ac): ... to here.
54216 2011-05-21  Bruno Haible  <bruno@clisp.org>
54218         memrchr: Move AC_LIBOBJ invocations to module description.
54219         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
54220         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
54221         here...
54222         * modules/memrchr (configure.ac): ... to here.
54224 2011-05-21  Bruno Haible  <bruno@clisp.org>
54226         mempcpy: Move AC_LIBOBJ invocations to module description.
54227         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
54228         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
54229         here...
54230         * modules/mempcpy (configure.ac): ... to here.
54232 2011-05-21  Bruno Haible  <bruno@clisp.org>
54234         memmove: Move AC_LIBOBJ invocations to module description.
54235         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
54236         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
54237         here...
54238         * modules/memmove (configure.ac): ... to here.
54240 2011-05-21  Bruno Haible  <bruno@clisp.org>
54242         memmem*: Move AC_LIBOBJ invocations to module description.
54243         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
54244         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
54245         here...
54246         (gl_FUNC_MEMMEM): ... and here...
54247         * modules/memmem-simple (configure.ac): ... to here.
54248         * modules/memmem (configure.ac): ... and here.
54250 2011-05-21  Bruno Haible  <bruno@clisp.org>
54252         memcpy: Move AC_LIBOBJ invocations to module description.
54253         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
54254         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
54255         here...
54256         * modules/memcpy (configure.ac): ... to here.
54258 2011-05-21  Bruno Haible  <bruno@clisp.org>
54260         memcmp: Simplify autoconf macro.
54261         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
54262         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
54263         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
54265 2011-05-21  Bruno Haible  <bruno@clisp.org>
54267         memcmp: Move AC_LIBOBJ invocations to module description.
54268         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
54269         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
54270         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
54271         * modules/memcmp (configure.ac): ... to here.
54272         (Depends-on): Update conditions.
54274 2011-05-21  Bruno Haible  <bruno@clisp.org>
54276         memchr: Respect rules for use of AC_LIBOBJ.
54277         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
54278         invocations from here...
54279         * modules/memchr (configure.ac): ... to here.
54281 2011-05-21  Bruno Haible  <bruno@clisp.org>
54283         mbtowc: Move AC_LIBOBJ invocations to module description.
54284         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
54285         invocations from here...
54286         * modules/mbtowc (configure.ac): ... to here.
54288 2011-05-21  Bruno Haible  <bruno@clisp.org>
54290         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
54291         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
54292         gl_PREREQ_MBSRTOWCS invocations from here...
54293         * modules/mbsrtowcs (configure.ac): ... to here.
54295 2011-05-21  Bruno Haible  <bruno@clisp.org>
54297         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
54298         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
54299         gl_PREREQ_MBSNRTOWCS invocations from here...
54300         * modules/mbsnrtowcs (configure.ac): ... to here.
54302 2011-05-21  Bruno Haible  <bruno@clisp.org>
54304         mbsinit: Move AC_LIBOBJ invocations to module description.
54305         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
54306         invocations from here...
54307         * modules/mbsinit (configure.ac): ... to here.
54309 2011-05-21  Bruno Haible  <bruno@clisp.org>
54311         mbrlen: Move AC_LIBOBJ invocations to module description.
54312         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
54313         invocations from here...
54314         * modules/mbrlen (configure.ac): ... to here.
54316 2011-05-21  Bruno Haible  <bruno@clisp.org>
54318         mbrtowc: Respect rules for use of AC_LIBOBJ.
54319         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
54320         invocations from here...
54321         * modules/mbrtowc (configure.ac): ... to here.
54323 2011-05-21  Bruno Haible  <bruno@clisp.org>
54325         malloc-*: Move AC_LIBOBJ invocations to module description.
54326         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
54327         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
54328         AC_LIBOBJ invocations from here...
54329         * modules/malloc-gnu (configure.ac): ... to here.
54330         * modules/malloc-posix (configure.ac): ... and here.
54332 2011-05-21  Bruno Haible  <bruno@clisp.org>
54334         lstat, openat: Respect rules for use of AC_LIBOBJ.
54335         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
54336         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
54337         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
54338         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
54339         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
54340         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
54341         here.
54342         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
54344 2011-05-21  Bruno Haible  <bruno@clisp.org>
54346         lseek: Move AC_LIBOBJ invocations to module description.
54347         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
54348         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
54349         * modules/lseek (configure.ac): ... to here.
54351 2011-05-21  Bruno Haible  <bruno@clisp.org>
54353         linkat: Move AC_LIBOBJ invocations to module description.
54354         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
54355         here...
54356         * modules/linkat (configure.ac): ... to here.
54358 2011-05-21  Bruno Haible  <bruno@clisp.org>
54360         link: Respect rules for use of AC_LIBOBJ.
54361         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
54362         * modules/link (configure.ac): ... to here.
54364 2011-05-21  Bruno Haible  <bruno@clisp.org>
54366         lchown: Move AC_LIBOBJ invocations to module description.
54367         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
54368         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
54369         * modules/lchown (configure.ac): ... to here.
54371 2011-05-21  Bruno Haible  <bruno@clisp.org>
54373         iswctype: Move AC_LIBOBJ invocations to module description.
54374         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
54375         here...
54376         * modules/iswctype (configure.ac): ... to here.
54378 2011-05-21  Bruno Haible  <bruno@clisp.org>
54380         iswblank: Move AC_LIBOBJ invocations to module description.
54381         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
54382         here...
54383         * modules/iswblank (configure.ac): ... to here.
54385 2011-05-21  Bruno Haible  <bruno@clisp.org>
54387         atanl: Move AC_LIBOBJ invocations to module description.
54388         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
54389         * modules/atanl (configure.ac): ... to here.
54391 2011-05-21  Bruno Haible  <bruno@clisp.org>
54393         acosl: Move AC_LIBOBJ invocations to module description.
54394         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
54395         * modules/acosl (configure.ac): ... to here.
54397 2011-05-21  Bruno Haible  <bruno@clisp.org>
54399         asinl: Respect rules for use of AC_LIBOBJ.
54400         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
54401         * modules/asinl (configure.ac): ... to here.
54403 2011-05-21  Bruno Haible  <bruno@clisp.org>
54405         tanl: Move AC_LIBOBJ invocations to module description.
54406         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
54407         * modules/tanl (configure.ac): ... to here.
54409 2011-05-21  Bruno Haible  <bruno@clisp.org>
54411         cosl: Move AC_LIBOBJ invocations to module description.
54412         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
54413         * modules/cosl (configure.ac): ... to here.
54415 2011-05-21  Bruno Haible  <bruno@clisp.org>
54417         sinl: Move AC_LIBOBJ invocations to module description.
54418         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
54419         * modules/sinl (configure.ac): ... to here.
54421 2011-05-21  Bruno Haible  <bruno@clisp.org>
54423         logl: Move AC_LIBOBJ invocations to module description.
54424         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
54425         * modules/logl (configure.ac): ... to here.
54427 2011-05-21  Bruno Haible  <bruno@clisp.org>
54429         expl: Move AC_LIBOBJ invocations to module description.
54430         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
54431         * modules/expl (configure.ac): ... to here.
54433 2011-05-21  Bruno Haible  <bruno@clisp.org>
54435         roundl: Move AC_LIBOBJ invocations to module description.
54436         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
54437         * modules/roundl (configure.ac): ... to here.
54439 2011-05-21  Bruno Haible  <bruno@clisp.org>
54441         round: Move AC_LIBOBJ invocations to module description.
54442         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
54443         * modules/round (configure.ac): ... to here.
54445 2011-05-21  Bruno Haible  <bruno@clisp.org>
54447         roundf: Move AC_LIBOBJ invocations to module description.
54448         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
54449         * modules/roundf (configure.ac): ... to here.
54451 2011-05-21  Bruno Haible  <bruno@clisp.org>
54453         truncl: Move AC_LIBOBJ invocations to module description.
54454         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
54455         * modules/truncl (configure.ac): ... to here.
54457 2011-05-21  Bruno Haible  <bruno@clisp.org>
54459         trunc: Move AC_LIBOBJ invocations to module description.
54460         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
54461         * modules/trunc (configure.ac): ... to here.
54463 2011-05-21  Bruno Haible  <bruno@clisp.org>
54465         truncf: Move AC_LIBOBJ invocations to module description.
54466         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
54467         * modules/truncf (configure.ac): ... to here.
54469 2011-05-21  Bruno Haible  <bruno@clisp.org>
54471         ceill: Move AC_LIBOBJ invocations to module description.
54472         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
54473         * modules/ceill (configure.ac): ... to here.
54475 2011-05-21  Bruno Haible  <bruno@clisp.org>
54477         ceil: Move AC_LIBOBJ invocations to module description.
54478         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
54479         * modules/ceil (configure.ac): ... to here.
54481 2011-05-21  Bruno Haible  <bruno@clisp.org>
54483         ceilf: Move AC_LIBOBJ invocations to module description.
54484         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
54485         * modules/ceilf (configure.ac): ... to here.
54487 2011-05-21  Bruno Haible  <bruno@clisp.org>
54489         floorl: Respect rules for use of AC_LIBOBJ.
54490         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
54491         * modules/floorl (configure.ac): ... to here.
54493 2011-05-21  Bruno Haible  <bruno@clisp.org>
54495         floor: Respect rules for use of AC_LIBOBJ.
54496         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
54497         * modules/floor (configure.ac): ... to here.
54499 2011-05-21  Bruno Haible  <bruno@clisp.org>
54501         floorf: Move AC_LIBOBJ invocations to module description.
54502         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
54503         * modules/floorf (configure.ac): ... to here.
54505 2011-05-20  Bruno Haible  <bruno@clisp.org>
54507         sqrtl: Respect rules for use of AC_LIBOBJ.
54508         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
54509         * modules/sqrtl (configure.ac): ... to here.
54511 2011-05-20  Bruno Haible  <bruno@clisp.org>
54513         ldexpl: Respect rules for use of AC_LIBOBJ.
54514         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
54515         * modules/ldexpl (configure.ac): ... to here.
54517 2011-05-20  Bruno Haible  <bruno@clisp.org>
54519         frexpl*: Respect rules for use of AC_LIBOBJ.
54520         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
54521         invocation from here...
54522         * modules/frexpl (configure.ac): ... to here.
54523         * modules/frexpl-nolibm (configure.ac): ... and here.
54525 2011-05-20  Bruno Haible  <bruno@clisp.org>
54527         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
54528         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
54529         invocation from here...
54530         * modules/frexp (configure.ac): ... to here.
54531         * modules/frexp-nolibm (configure.ac): ... and here.
54533 2011-05-20  Bruno Haible  <bruno@clisp.org>
54535         isnan: Respect rules for use of AC_LIBOBJ.
54536         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
54537         invocations here.
54538         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
54539         REPLACE_ISNAN.
54540         * modules/isnand (configure.ac): Likewise.
54541         * modules/isnanl (configure.ac): Likewise.
54543 2011-05-20  Bruno Haible  <bruno@clisp.org>
54545         isnanl*: Respect rules for use of AC_LIBOBJ.
54546         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
54547         invocation from here...
54548         * modules/isnanl (configure.ac): ... to here.
54549         * modules/isnanl-nolibm (configure.ac): ... and here.
54551 2011-05-20  Bruno Haible  <bruno@clisp.org>
54553         isnand*: Move AC_LIBOBJ invocations to module description.
54554         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
54555         invocation from here...
54556         * modules/isnand (configure.ac): ... to here.
54557         * modules/isnand-nolibm (configure.ac): ... and here.
54559 2011-05-20  Bruno Haible  <bruno@clisp.org>
54561         isnanf*: Move AC_LIBOBJ invocations to module description.
54562         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
54563         invocation from here...
54564         * modules/isnanf (configure.ac): ... to here.
54565         * modules/isnanf-nolibm (configure.ac): ... and here.
54567 2011-05-20  Bruno Haible  <bruno@clisp.org>
54569         isnan*: Separate the AC_LIBOBJ invocations.
54570         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
54571         AC_LIBOBJ invocation.
54572         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
54573         here.
54574         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
54575         AC_LIBOBJ invocation.
54576         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
54577         here.
54578         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
54579         AC_LIBOBJ invocation.
54580         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
54581         here.
54582         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
54584 2011-05-08  Bruno Haible  <bruno@clisp.org>
54586         isinf: Move AC_LIBOBJ invocations to module description.
54587         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
54588         * modules/isinf (configure.ac): ... to here.
54590 2011-05-08  Bruno Haible  <bruno@clisp.org>
54592         isfinite: Move AC_LIBOBJ invocations to module description.
54593         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
54594         * modules/isfinite (configure.ac): ... to here.
54596 2011-05-08  Bruno Haible  <bruno@clisp.org>
54598         isblank: Move AC_LIBOBJ invocations to module description.
54599         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
54600         here...
54601         * modules/isblank (configure.ac): ... to here.
54603 2011-05-08  Bruno Haible  <bruno@clisp.org>
54605         isapipe: Move AC_LIBOBJ invocations to module description.
54606         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
54607         gl_PREREQ_ISAPIPE invocations from here...
54608         * modules/isapipe (configure.ac): ... to here.
54609         (Depends-on): Update condition.
54611 2011-05-08  Bruno Haible  <bruno@clisp.org>
54613         ioctl: Move AC_LIBOBJ invocations to module description.
54614         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
54615         invocations from here...
54616         * modules/ioctl (configure.ac): ... to here.
54617         (Depends-on): Update condition.
54619 2011-05-08  Bruno Haible  <bruno@clisp.org>
54621         imaxdiv: Move AC_LIBOBJ invocations to module description.
54622         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
54623         invocations from here...
54624         * modules/imaxdiv (configure.ac): ... to here.
54626 2011-05-08  Bruno Haible  <bruno@clisp.org>
54628         imaxabs: Move AC_LIBOBJ invocations to module description.
54629         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
54630         invocations from here...
54631         * modules/imaxabs (configure.ac): ... to here.
54633 2011-05-08  Bruno Haible  <bruno@clisp.org>
54635         getaddrinfo: Move AC_LIBOBJ invocations to module description.
54636         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
54637         AC_LIBOBJ invocations from here...
54638         * modules/getaddrinfo (configure.ac): ... to here.
54639         (Depends-on): Add conditions.
54641 2011-05-08  Bruno Haible  <bruno@clisp.org>
54643         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
54644         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
54645         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
54646         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
54647         (gl_PREREQ_INET_PTON): ... from here.
54648         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
54649         gl_PREREQ_INET_PTON here.
54650         (Depends-on): Update condition.
54652 2011-05-08  Bruno Haible  <bruno@clisp.org>
54654         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
54655         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
54656         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
54657         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
54658         (gl_PREREQ_INET_NTOP): ... from here.
54659         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
54660         gl_PREREQ_INET_NTOP here.
54661         (Depends-on): Update condition.
54663 2011-05-08  Bruno Haible  <bruno@clisp.org>
54665         iconv_open: Move AC_LIBOBJ invocations to module description.
54666         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
54667         AC_LIBOBJ invocations from here...
54668         * modules/iconv_open (configure.ac): ... to here.
54670 2011-05-08  Bruno Haible  <bruno@clisp.org>
54672         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
54673         If module 'iconv_open' is among the main modules and module
54674         'iconv_open-utf' is among the tests dependencies, then
54675         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
54676         return the special iconv_t values. Therefore iconv() and iconv_close()
54677         must support these special iconv_t values, already in lib, not only in
54678         tests.
54679         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
54680         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
54681         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
54682         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
54683         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
54684         (Depends-on): Add the dependencies of iconv_open-utf.
54685         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
54686         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
54687         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
54689 2011-05-08  Bruno Haible  <bruno@clisp.org>
54691         group-member: Move AC_LIBOBJ invocations to module description.
54692         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
54693         gl_PREREQ_GROUP_MEMBER invocations from here...
54694         * modules/group-member (configure.ac): ... to here.
54696 2011-05-08  Bruno Haible  <bruno@clisp.org>
54698         grantpt: Move AC_LIBOBJ invocations to module description.
54699         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
54700         invocations from here...
54701         * modules/grantpt (configure.ac): ... to here.
54703 2011-05-08  Bruno Haible  <bruno@clisp.org>
54705         glob: Move AC_LIBOBJ invocations to module description.
54706         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
54707         from here...
54708         * modules/glob (configure.ac): ... to here.
54710 2011-05-08  Bruno Haible  <bruno@clisp.org>
54712         getusershell: Move AC_LIBOBJ invocations to module description.
54713         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
54714         Move AC_LIBOBJ invocation from here...
54715         * modules/getusershell (configure.ac): ... to here.
54716         (Depends-on): Update condition.
54718 2011-05-08  Bruno Haible  <bruno@clisp.org>
54720         gettimeofday: Move AC_LIBOBJ invocations to module description.
54721         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54722         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
54723         gl_PREREQ_GETTIMEOFDAY invocations from here...
54724         * modules/gettimeofday (configure.ac): ... to here.
54726 2011-05-08  Bruno Haible  <bruno@clisp.org>
54728         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
54729         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
54730         just gl_FUNC_TZSET.
54731         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
54732         (gl_FUNC_TZSET_CLOBBER): Remove actions.
54733         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
54734         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
54736 2011-05-08  Bruno Haible  <bruno@clisp.org>
54738         getsubopt: Move AC_LIBOBJ invocations to module description.
54739         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
54740         gl_PREREQ_GETSUBOPT invocations from here...
54741         * modules/getsubopt (configure.ac): ... to here.
54743 2011-05-08  Bruno Haible  <bruno@clisp.org>
54745         getpass-gnu: Move AC_LIBOBJ invocations to module description.
54746         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
54747         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
54748         * modules/getpass-gnu (configure.ac): ... to here.
54750 2011-05-08  Bruno Haible  <bruno@clisp.org>
54752         getpass: Move AC_LIBOBJ invocations to module description.
54753         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
54754         gl_PREREQ_GETPASS invocations from here...
54755         * modules/getpass (configure.ac): ... to here.
54757 2011-05-08  Bruno Haible  <bruno@clisp.org>
54759         getpagesize: Move AC_LIBOBJ invocations to module description.
54760         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
54761         from here...
54762         * modules/getpagesize (configure.ac): ... to here.
54764 2011-05-08  Bruno Haible  <bruno@clisp.org>
54766         getopt: Move AC_LIBOBJ invocations to module description.
54767         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
54768         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
54769         invocations from here...
54770         * modules/getopt-gnu (configure.ac): ... to here.
54771         * modules/getopt-posix (configure.ac): ... and here.
54772         (Depends-on): Update condition.
54774 2011-05-08  Bruno Haible  <bruno@clisp.org>
54776         getopt, argp: Respect rules for use of AC_LIBOBJ.
54777         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
54778         (gl_REPLACE_GETOPT_ALWAYS): New macro.
54779         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
54780         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
54782 2011-05-08  Bruno Haible  <bruno@clisp.org>
54784         getlogin_r: Move AC_LIBOBJ invocations to module description.
54785         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
54786         gl_PREREQ_GETLOGIN_R invocations from here...
54787         * modules/getlogin_r (configure.ac): ... to here.
54789 2011-05-08  Bruno Haible  <bruno@clisp.org>
54791         getlogin: Move AC_LIBOBJ invocations to module description.
54792         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
54793         here...
54794         * modules/getlogin (configure.ac): ... to here.
54796 2011-05-08  Bruno Haible  <bruno@clisp.org>
54798         getloadavg: Move AC_LIBOBJ invocations to module description.
54799         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
54800         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
54801         * modules/getloadavg (configure.ac): ... to here.
54803 2011-05-08  Bruno Haible  <bruno@clisp.org>
54805         gethrxtime: Move AC_LIBOBJ invocations to module description.
54806         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
54807         LIB_GETHRXTIME from here...
54808         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
54809         invocations from here...
54810         * modules/gethrxtime (configure.ac): ... to here.
54812 2011-05-08  Bruno Haible  <bruno@clisp.org>
54814         gethostname: Move AC_LIBOBJ invocations to module description.
54815         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
54816         gl_PREREQ_GETHOSTNAME invocations from here...
54817         * modules/gethostname (configure.ac): ... to here.
54819 2011-05-08  Bruno Haible  <bruno@clisp.org>
54821         getgroups: Move AC_LIBOBJ invocations to module description.
54822         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
54823         here...
54824         * modules/getgroups (configure.ac): ... to here.
54826 2011-05-08  Bruno Haible  <bruno@clisp.org>
54828         getdtablesize: Move AC_LIBOBJ invocations to module description.
54829         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
54830         invocation from here...
54831         * modules/getdtablesize (configure.ac): ... to here.
54833 2011-05-08  Bruno Haible  <bruno@clisp.org>
54835         getdomainname: Move AC_LIBOBJ invocations to module description.
54836         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
54837         gl_PREREQ_GETDOMAINNAME invocations from here...
54838         * modules/getdomainname (configure.ac): ... to here.
54840 2011-05-08  Bruno Haible  <bruno@clisp.org>
54842         getline: Move AC_LIBOBJ invocations to module description.
54843         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
54844         invocations from here...
54845         * modules/getline (configure.ac): ... to here.
54847 2011-05-08  Bruno Haible  <bruno@clisp.org>
54849         getline: Simplify.
54850         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
54851         It's already handled through the module dependency.
54853 2011-05-08  Bruno Haible  <bruno@clisp.org>
54855         getdelim: Move AC_LIBOBJ invocations to module description.
54856         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
54857         and gl_PREREQ_GETDELIM invocations from here...
54858         * modules/getdelim (configure.ac): ... to here.
54859         (Depends-on): Fix condition.
54861 2011-05-08  Bruno Haible  <bruno@clisp.org>
54863         getcwd: Move AC_LIBOBJ invocations to module description.
54864         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
54865         invocations from here...
54866         * modules/getcwd (configure.ac): ... to here.
54868 2011-05-08  Bruno Haible  <bruno@clisp.org>
54870         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
54871         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
54872         here...
54873         * modules/getcwd-lgpl (configure.ac): ... to here.
54875 2011-05-07  Bruno Haible  <bruno@clisp.org>
54877         crypto/gc: Move AC_LIBOBJ invocations to module description.
54878         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
54879         * modules/crypto/gc (configure.ac): ... to here.
54881 2011-05-07  Bruno Haible  <bruno@clisp.org>
54883         fwriting: Move AC_LIBOBJ invocations to module description.
54884         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
54885         here...
54886         * modules/fwriting (configure.ac): ... to here.
54888 2011-05-07  Bruno Haible  <bruno@clisp.org>
54890         fwritable: Move AC_LIBOBJ invocations to module description.
54891         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
54892         here...
54893         * modules/fwritable (configure.ac): ... to here.
54895 2011-05-07  Bruno Haible  <bruno@clisp.org>
54897         futimens: Move AC_LIBOBJ invocations to module description.
54898         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
54899         here...
54900         * modules/futimens (configure.ac): ... to here.
54902 2011-05-07  Bruno Haible  <bruno@clisp.org>
54904         ftruncate: Move AC_LIBOBJ invocations to module description.
54905         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
54906         gl_PREREQ_FTRUNCATE invocations from here...
54907         * modules/ftruncate (configure.ac): ... to here.
54909 2011-05-07  Bruno Haible  <bruno@clisp.org>
54911         fsync: Move AC_LIBOBJ invocations to module description.
54912         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
54913         invocations from here...
54914         * modules/fsync (configure.ac): ... to here.
54916 2011-05-07  Bruno Haible  <bruno@clisp.org>
54918         fsusage: Move AC_LIBOBJ invocations to module description.
54919         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
54920         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
54921         * modules/fsusage (configure.ac): ... to here.
54923 2011-05-07  Bruno Haible  <bruno@clisp.org>
54925         freopen: Move AC_LIBOBJ invocations to module description.
54926         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
54927         invocations from here...
54928         * modules/freopen (configure.ac): ... to here.
54930 2011-05-07  Bruno Haible  <bruno@clisp.org>
54932         free: Move AC_LIBOBJ invocations to module description.
54933         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
54934         invocations from here...
54935         * modules/free (configure.ac): ... to here.
54937 2011-05-07  Bruno Haible  <bruno@clisp.org>
54939         freadable: Move AC_LIBOBJ invocations to module description.
54940         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
54941         here...
54942         * modules/freadable (configure.ac): ... to here.
54944 2011-05-07  Bruno Haible  <bruno@clisp.org>
54946         fpurge: Move AC_LIBOBJ invocations to module description.
54947         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
54948         invocations from here...
54949         * modules/fpurge (configure.ac): ... to here.
54951 2011-05-07  Bruno Haible  <bruno@clisp.org>
54953         fpending: Move AC_LIBOBJ invocations to module description.
54954         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
54955         gl_FUNC_FPENDING.
54956         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
54957         invocations from here...
54958         * modules/fpending (configure.ac): ... to here.
54960 2011-05-07  Bruno Haible  <bruno@clisp.org>
54962         fopen: Move AC_LIBOBJ invocations to module description.
54963         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
54964         invocations from here...
54965         * modules/fopen (configure.ac): ... to here.
54967 2011-05-07  Bruno Haible  <bruno@clisp.org>
54969         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
54970         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
54971         gl_FUNC_FNMATCH_POSIX.
54972         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
54973         invocations from here...
54974         * modules/fnmatch (configure.ac): ... to here.
54975         * modules/fnmatch-gnu (configure.ac): ... and here.
54977 2011-05-07  Bruno Haible  <bruno@clisp.org>
54979         flock: Move AC_LIBOBJ invocations to module description.
54980         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
54981         invocations from here...
54982         * modules/flock (configure.ac): ... to here.
54984 2011-05-07  Bruno Haible  <bruno@clisp.org>
54986         fileblocks: Move AC_LIBOBJ invocations to module description.
54987         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
54988         gl_PREREQ_FILEBLOCKS invocations from here...
54989         * modules/fileblocks (configure.ac): ... to here.
54991 2011-05-06  Bruno Haible  <bruno@clisp.org>
54993         fflush: Move AC_LIBOBJ invocations to module description.
54994         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
54995         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
54996         invocations from here...
54997         * modules/fflush (configure.ac): ... to here.
54999 2011-05-06  Bruno Haible  <bruno@clisp.org>
55001         fdopendir: Move AC_LIBOBJ invocations to module description.
55002         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
55003         here...
55004         * modules/fdopendir (configure.ac): ... to here.
55005         (Depends-on): Improve conditions.
55007 2011-05-06  Bruno Haible  <bruno@clisp.org>
55009         _Exit: Move AC_LIBOBJ invocations to module description.
55010         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
55011         invocations from here...
55012         * modules/_Exit (configure.ac): ... to here.
55014 2011-05-21  Bruno Haible  <bruno@clisp.org>
55016         euidaccess: Respect rules for use of AC_LIBOBJ.
55017         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
55018         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
55019         from here...
55020         * modules/euidaccess (configure.ac): ... to here.
55022 2011-05-06  Bruno Haible  <bruno@clisp.org>
55024         error: Move AC_LIBOBJ invocations to module description.
55025         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
55026         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
55027         invocations from here...
55028         * modules/error (configure.ac): ... to here.
55030 2011-05-06  Bruno Haible  <bruno@clisp.org>
55032         duplocale: Move AC_LIBOBJ invocations to module description.
55033         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
55034         gl_PREREQ_DUPLOCALE invocations from here...
55035         * modules/duplocale (configure.ac): ... to here.
55037 2011-05-05  Bruno Haible  <bruno@clisp.org>
55039         dirfd: Move AC_LIBOBJ invocations to module description.
55040         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
55041         gl_FUNC_DIRFD.
55042         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
55043         here...
55044         * modules/dirfd (configure.ac): ... to here.
55045         (Depends-on): Fix condition.
55047 2011-05-05  Bruno Haible  <bruno@clisp.org>
55049         chown: Respect rules for use of AC_LIBOBJ.
55050         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
55051         * modules/chown (configure.ac): ... to here.
55053 2011-05-05  Bruno Haible  <bruno@clisp.org>
55055         chdir-long: Move AC_LIBOBJ invocations to module description.
55056         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
55057         gl_PREREQ_CHDIR_LONG invocations from here...
55058         * modules/chdir-long (configure.ac): ... to here.
55060 2011-05-05  Bruno Haible  <bruno@clisp.org>
55062         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
55063         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
55064         from here...
55065         * modules/canonicalize-lgpl (configure.ac): ... to here.
55067 2011-05-05  Bruno Haible  <bruno@clisp.org>
55069         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
55070         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
55071         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
55072         REPLACE_CALLOC.
55073         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
55074         * modules/calloc-gnu (configure.ac): Likewise.
55076 2011-05-05  Bruno Haible  <bruno@clisp.org>
55078         btowc: Move AC_LIBOBJ invocations to module description.
55079         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
55080         invocations from here...
55081         * modules/btowc (configure.ac): ... to here.
55083 2011-05-21  Bruno Haible  <bruno@clisp.org>
55085         atexit: Move AC_LIBOBJ invocations to module description.
55086         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
55087         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
55088         here...
55089         * modules/atexit (configure.ac): ... to here.
55091 2011-05-05  Bruno Haible  <bruno@clisp.org>
55093         atoll: Move AC_LIBOBJ invocations to module description.
55094         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
55095         invocations from here...
55096         * modules/atoll (configure.ac): ... to here.
55098 2011-05-05  Bruno Haible  <bruno@clisp.org>
55100         argz: Move AC_LIBOBJ invocations to module description.
55101         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
55102         * modules/argz (configure.ac): ... to here.
55104 2011-05-05  Bruno Haible  <bruno@clisp.org>
55106         alphasort: Move AC_LIBOBJ invocations to module description.
55107         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
55108         gl_PREREQ_ALPHASORT invocations from here...
55109         * modules/alphasort (configure.ac): ... to here.
55111 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55113         verify: new macro verify_expr; verify_true deprecated
55114         * NEWS: Mention this.
55115         * doc/verify.texi (Compile-time Assertions): Document this.
55116         * lib/verify.h (verify_true): Deprecate.
55117         (verify_expr): New macro.
55118         * tests/test-verify.c (function): Test verify_expr.
55120 2011-06-14  Jim Meyering  <meyering@redhat.com>
55122         init.sh: give more portable redirection-related advice in a comment
55123         * tests/init.sh (stderr_fileno_): Update the advice in comments.
55124         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
55125         for lots of discussion.  Stefano Lattarini suggested the solution
55126         of putting "9>&2" after the command.  Reported by Bruno Haible.
55128 2011-06-13  Bruno Haible  <bruno@clisp.org>
55130         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
55131         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
55132         'none'.
55134 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
55136         ftoastr: use strtof only if HAVE_STRTOF
55137         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
55138         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
55139         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
55140         * modules/ftoastr (configure.ac): Check for strtof.
55142 2011-06-13  Bruno Haible  <bruno@clisp.org>
55144         gnulib-tool: Addendum to 2011-06-08 commit.
55145         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
55146         and --witness-c-macro have been given, augment AM_CPPFLAGS.
55148 2011-06-13  Bruno Haible  <bruno@clisp.org>
55150         fseeko: Provide a non-inline replacement of fseek().
55151         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
55152         * modules/fseeko (Depends-on): Add fseek.
55153         * modules/fseek (License): Change to LGPLv2+.
55155 2011-06-13  Bruno Haible  <bruno@clisp.org>
55157         ftello: Provide a non-inline replacement of ftell().
55158         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
55159         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
55160         not have ftello() (such as on mingw).
55161         * modules/ftello (Depends-on): Add ftell.
55162         * modules/ftell (License): Change to LGPLv2+.
55164 2011-05-07  Bruno Haible  <bruno@clisp.org>
55166         ftell: Move AC_LIBOBJ invocations to module description.
55167         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
55168         * modules/ftell (configure.ac): ... to here.
55170 2011-05-07  Bruno Haible  <bruno@clisp.org>
55172         ftello: Respect rules for use of AC_LIBOBJ.
55173         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
55174         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
55175         here...
55176         * modules/ftello (configure.ac): ... to here.
55178 2011-05-07  Bruno Haible  <bruno@clisp.org>
55180         fseeko: Simplify.
55181         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
55182         (gl_FUNC_FSEEKO): Inline it here.
55184 2011-05-07  Bruno Haible  <bruno@clisp.org>
55186         fseek: Move AC_LIBOBJ invocations to module description.
55187         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
55188         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
55189         * modules/fseek (configure.ac): ... to here.
55191 2011-05-07  Bruno Haible  <bruno@clisp.org>
55193         fseek: Respect rules for use of AC_LIBOBJ.
55194         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
55195         here...
55196         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
55198 2011-05-07  Bruno Haible  <bruno@clisp.org>
55200         fseeko: Respect rules for use of AC_LIBOBJ.
55201         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
55202         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
55203         here...
55204         * modules/fseeko (configure.ac): ... to here.
55206 2011-06-13  Bruno Haible  <bruno@clisp.org>
55208         gnulib-tool: Allow comments in the 'Depends-on' section.
55209         * doc/gnulib.texi (Module description): Mention comment syntax in the
55210         Depends-on section.
55211         * gnulib-tool (func_get_dependencies): Filter out comment lines.
55213 2011-06-13  Bruno Haible  <bruno@clisp.org>
55215         file-set.h: guard __attibute__ use, now that it's not always defined
55216         * lib/file-set.h (record_file): Use __attribute__ only with compiler
55217         versions that support it.  This fixes a coreutils build failure with
55218         the vendor cc on HP-UX 11.31.
55220 2011-06-12  Bruno Haible  <bruno@clisp.org>
55222         acl: Add support for HP-UX >= 11.11 JFS ACLs.
55223         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
55224         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
55225         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
55226         (acl, aclsort): New declarations.
55227         (aclv_nontrivial): New declaration.
55228         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
55229         (file_has_acl): Read also the second kind of HP-UX ACLs.
55230         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
55231         kind of HP-UX ACLs if the first kind fails.
55232         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
55233         second kind of HP-UX ACLs.
55234         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
55235         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
55236         agree.
55237         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
55238         hpuxjfs.
55239         Handle hpuxjfs.
55240         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
55241         hpuxjfs.
55242         Handle hpuxjfs.
55243         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
55244         (func_test_same_acls): Use both lsacl and getacl.
55245         Handle hpuxjfs.
55246         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
55247         (func_test_same_acls): Use both lsacl and getacl.
55248         Handle hpuxjfs.
55250 2011-06-12  Bruno Haible  <bruno@clisp.org>
55252         acl: Complete the 2010-08-10 fix.
55253         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
55254         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
55255         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
55256         explicitly.
55257         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
55258         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
55260 2011-06-12  Bruno Haible  <bruno@clisp.org>
55262         spawn-pipe tests: Comments.
55263         * tests/test-spawn-pipe-child.c (main): Update comment.
55264         Reported by James Youngman <jay@gnu.org>.
55266 2011-06-11  James Youngman  <jay@gnu.org>
55268         New module 'stat-size'.
55269         * modules/stat-size: New module.  Provides macros for accessing
55270         file size information in instances of struct stat.  Depends on the
55271         fileblocks module because it calls st_blocks.
55272         * lib/stat-size.h: New file, adapted from coreutils' system.h.
55273         * doc/gnulib.texi: Include stat-size.texi.
55274         * doc/stat-size.texi: Documentation for this module.
55275         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
55276         * m4/fileblocks.m4: Mention that stat-size depends on the call to
55277         AC_STRUCT_ST_BLOCKS.
55279 2011-06-09  Bruno Haible  <bruno@clisp.org>
55281         thread: Support pthreads-win32.
55282         * lib/glthread/thread.h (gl_thread_self): Define differently on
55283         pthreads-win32.
55284         (gl_null_thread): New declaration.
55285         (gl_thread_self_pointer): New macro.
55286         * lib/glthread/thread.c (gl_null_thread): New constant.
55287         * tests/test-lock.c: Use gl_thread_self_pointer instead of
55288         gl_thread_self.
55289         * tests/test-tls.c: Likewise.
55290         Suggested by Paul Eggert. Reported by Eric Blake.
55292 2011-06-09  Bruno Haible  <bruno@clisp.org>
55294         thread: Fix confusion between NULL and 0.
55295         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
55296         Reported by Paul Eggert.
55298 2011-06-09  Bruno Haible  <bruno@clisp.org>
55300         spawn-pipe tests: Avoid test failure on HP-UX 11.
55301         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
55302         is closed.
55304 2011-06-09  Bruno Haible  <bruno@clisp.org>
55306         acl tests: Fix compilation error on HP-UX 11.
55307         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
55309 2011-06-09  Bruno Haible  <bruno@clisp.org>
55311         rmdir: Avoid test failure on HP-UX 10.20.
55312         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
55313         EEXIST.
55315 2011-06-08  Eric Blake  <eblake@redhat.com>
55317         perror: fix test on mingw
55318         * modules/perror-tests (Depends-on): Add dup2.
55320         strerror_r-posix: fix on MacOS
55321         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
55322         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
55323         logic bug.
55324         * lib/strerror_r.c (strerror_r): Fix the bug.
55325         * lib/strerror.c (strerror): Likewise.
55326         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
55327         problem.
55328         * doc/posix-functions/strerror.texi (strerror): Likewise.
55329         * doc/posix-functions/perror.texi (perror): Likewise.
55330         * tests/test-strerror.c (main): Enhance test.
55331         * tests/test-strerror_r.c (main): Likewise.
55333 2011-06-08  Bruno Haible  <bruno@clisp.org>
55335         gnulib-tool: Better isolation between different gnulib-tool invocations.
55336         * gnulib-tool: New option --witness-c-macro.
55337         (witness_c_macro): New variable.
55338         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
55339         AM_CPPFLAGS define it as a C macro.
55340         (func_emit_tests_Makefile_am): Likewise.
55341         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
55342         read it from there.
55343         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
55344         m4_define, not AC_DEFUN.
55345         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
55346         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
55347         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
55348         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
55349         s|...|...|, to substitute the values of the GNULIB_* module indicator
55350         variables.
55351         * modules/dirent (Makefile.am): Likewise.
55352         * modules/fcntl-h (Makefile.am): Likewise.
55353         * modules/iconv-h (Makefile.am): Likewise.
55354         * modules/langinfo (Makefile.am): Likewise.
55355         * modules/locale (Makefile.am): Likewise.
55356         * modules/math (Makefile.am): Likewise.
55357         * modules/netdb (Makefile.am): Likewise.
55358         * modules/poll-h (Makefile.am): Likewise.
55359         * modules/pty (Makefile.am): Likewise.
55360         * modules/search (Makefile.am): Likewise.
55361         * modules/signal (Makefile.am): Likewise.
55362         * modules/spawn (Makefile.am): Likewise.
55363         * modules/stdio (Makefile.am): Likewise.
55364         * modules/stdlib (Makefile.am): Likewise.
55365         * modules/string (Makefile.am): Likewise.
55366         * modules/sys_ioctl (Makefile.am): Likewise.
55367         * modules/sys_select (Makefile.am): Likewise.
55368         * modules/sys_socket (Makefile.am): Likewise.
55369         * modules/sys_stat (Makefile.am): Likewise.
55370         * modules/sys_times (Makefile.am): Likewise.
55371         * modules/sys_utsname (Makefile.am): Likewise.
55372         * modules/sys_wait (Makefile.am): Likewise.
55373         * modules/termios (Makefile.am): Likewise.
55374         * modules/time (Makefile.am): Likewise.
55375         * modules/unistd (Makefile.am): Likewise.
55376         * modules/wchar (Makefile.am): Likewise.
55378 2011-06-08  Eric Blake  <eblake@redhat.com>
55380         strerror: simplify replacement
55381         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
55382         * modules/strerror (configure.ac): No prereqs needed here...
55383         * modules/strerror-override (configure.ac): ...but this needs it.
55384         (Files): Add file for needed prereq macro.
55386 2011-06-08  Bruno Haible  <bruno@clisp.org>
55388         strerror_r-posix: Tweaks.
55389         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
55390         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
55391         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
55392         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
55393         (gl_FUNC_STRERROR_R): ... to here.
55394         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
55396 2011-06-07  Eric Blake  <eblake@redhat.com>
55398         perror: document fixed bugs
55399         * doc/posix-functions/perror.texi (perror): Document recent
55400         patches.
55402 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
55404         stat-time: get_stat_birthtime failure is better-defined
55405         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
55406         return a timestamp whose tv_sec and tv_nsec values are both -1.
55407         Previously, the spec said only that the tv_nsec value was negative.
55408         This upward-compatible change simplifies GNU tar a bit.
55410 2011-06-07  Eric Blake  <eblake@redhat.com>
55412         strerror_r-posix: work around cygwin 1.7.9
55413         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
55414         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
55415         bug without replacing strerror_r.
55416         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
55417         strerror_r is buggy, but without requiring strerror_r compilation.
55418         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
55420         test-perror: relax test to ignore cygwin bug
55421         * tests/test-perror2.c (main): Relax test on requiring detection
55422         of stream errors, and use unbuffered stream.
55423         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
55424         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
55425         * doc/posix-functions/fputc.texi (fputc): Likewise.
55426         * doc/posix-functions/fputs.texi (fputs): Likewise.
55427         * doc/posix-functions/fputws.texi (fputws): Likewise.
55428         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
55429         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
55430         * doc/posix-functions/getopt.texi (getopt): Likewise.
55431         * doc/posix-functions/perror.texi (perror): Likewise.
55432         * doc/posix-functions/printf.texi (printf): Likewise.
55433         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
55434         * doc/posix-functions/psignal.texi (psignal): Likewise.
55435         * doc/posix-functions/putc.texi (putc): Likewise.
55436         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
55437         Likewise.
55438         * doc/posix-functions/putchar.texi (putchar): Likewise.
55439         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
55440         Likewise.
55441         * doc/posix-functions/puts.texi (puts): Likewise.
55442         * doc/posix-functions/putwc.texi (putwc): Likewise.
55443         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
55444         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
55445         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
55446         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
55447         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
55448         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
55449         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
55450         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
55452 2011-05-22  Bruno Haible  <bruno@clisp.org>
55454         strerror: Move AC_LIBOBJ invocations to module description.
55455         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
55456         gl_PREREQ_STRERROR invocations from here...
55457         * modules/strerror (configure.ac): ... to here.
55459 2011-05-21  Bruno Haible  <bruno@clisp.org>
55461         perror: Use common idiom.
55462         * modules/perror (configure.ac): Reorder statements.
55464 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
55466         tests: fix usage message in 'mktempd_'
55467         * tests/init.sh (mktempd_): In the usage message, use literal
55468         'mktempd_', not '$ME' (which is even undefined), as the name of
55469         the subroutine.
55471 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
55473         tests init: new function 'fatal_', for hard errors
55474         Before this patch, the only way offered by tests/init.sh to
55475         properly signal a hard error was the `framework_failure_'
55476         function.  But the error message issued by that function,
55477         as its name would suggest, refers to a set-up failure in the
55478         testsuite, while hard errors can obviously also be due to
55479         other reasons.  The best way to fix this inconsistency is to
55480         introduce a new function with a more general error message.
55481         * tests/init.sh (fatal_): New function.
55483 2011-06-06  Eric Blake  <eblake@redhat.com>
55485         canonicalize-lgpl: use common idiom
55486         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
55487         over newer POSIX -Rf.
55488         Reported by Bruno Haible.
55490         canonicalize-lgpl: work around AIX realpath bug
55491         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
55492         * doc/posix-functions/realpath.texi (realpath): Document it.
55493         Reported by Bruno Haible.
55495         strerror: work around FreeBSD bug
55496         * lib/strerror.c (strerror): Special case 0.
55497         Reported by Bruno Haible.
55499         strerror-override: avoid bloating errno module
55500         * modules/errno (Files, configure.ac): Move replacement strings...
55501         * modules/strerror-override: ...to new module.
55502         * modules/strerror (Depends-on): Add strerror-override.
55503         * modules/strerror_r-posix (Depends-on): Likewise.
55504         * MODULES.html.sh: Document new module.
55505         Reported by Bruno Haible.
55507 2011-06-06  Bruno Haible  <bruno@clisp.org>
55509         spawn-pipe tests: Rename program.
55510         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
55511         * tests/test-spawn-pipe-child.c: Update comment.
55512         * tests/test-spawn-pipe.sh: Update.
55513         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
55515         spawn-pipe tests: Link the child program only against libc.
55516         * tests/test-spawn-pipe-child.c: New file, extracted from
55517         tests/test-spawn-pipe.c.
55518         (main): Expect only one argument.
55519         (is_open): New function, copied from tests/test-pipe.c.
55520         * tests/test-spawn-pipe.c: Don't include <errno.h>.
55521         (child_main): Remove function.
55522         (test_pipe): Pass only one argument to the child program.
55523         (main): Remove child process code. Expect the child program's name as
55524         first argument.
55525         * tests/test-spawn-pipe.sh: Pass the child program's name as first
55526         argument.
55527         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
55528         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
55529         test-spawn-pipe-child against no libraries.
55531 2011-06-06  Bruno Haible  <bruno@clisp.org>
55533         careadlinkat: Avoid mismatch between ssize_t and int.
55534         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
55535         * lib/careadlinkat.c (careadlinkatcwd): Define always.
55537 2011-06-06  Jim Meyering  <meyering@redhat.com>
55539         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
55540         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
55541         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
55543 2011-06-05  Bruno Haible  <bruno@clisp.org>
55545         ansi-c++-opt: Interoperability with libtool.
55546         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
55547         set the variable to "no", not to ":".
55548         * NEWS: Mention the change.
55550 2011-06-05  Bruno Haible  <bruno@clisp.org>
55552         acl: Fix test failure on AIX 7.
55553         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
55554         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
55556 2011-06-05  Bruno Haible  <bruno@clisp.org>
55558         pipe-filter-ii: Fix test failure on AIX and IRIX.
55559         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
55560         with EAGAIN, retry with a smaller buffer size.
55562 2011-06-05  Bruno Haible  <bruno@clisp.org>
55564         localename: Fix link dependencies.
55565         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
55566         * modules/localename-tests (Makefile.am): Link test-localename with
55567         $(LIBTHREAD).
55569 2011-06-05  Bruno Haible  <bruno@clisp.org>
55571         error: Avoid gcc warning.
55572         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
55574 2011-06-05  Bruno Haible  <bruno@clisp.org>
55576         unsetenv: Avoid gcc warning.
55577         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
55579 2011-06-05  Bruno Haible  <bruno@clisp.org>
55581         setenv: Avoid gcc warning.
55582         * lib/setenv.c (setenv): Provide declaration if system lacks it.
55584 2011-06-05  Bruno Haible  <bruno@clisp.org>
55586         sys_select: Ensure memset is declared also on AIX 7.
55587         * lib/sys_select.in.h: Include <string.h> also on AIX.
55588         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
55589         self-contained also on AIX 7.1.
55591 2011-06-04  Jim Meyering  <meyering@redhat.com>
55593         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
55594         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
55595         function name, "error".
55596         (_gl_translatable_diag_func_re): New configurable variable.
55598 2011-06-04  Bruno Haible  <bruno@clisp.org>
55600         getopt: Avoid gcc warning.
55601         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
55603 2011-06-04  Bruno Haible  <bruno@clisp.org>
55605         strerror_r: Fix comments.
55606         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
55607         commit.
55609 2011-06-04  Bruno Haible  <bruno@clisp.org>
55611         perror: Fix compilation error.
55612         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
55613         Undefine fprintf, not sprintf.
55614         * modules/perror (Depends-on): Remove intprops, verify.
55616 2011-06-04  Bruno Haible  <bruno@clisp.org>
55618         setlocale: Enable replacement on Cygwin 1.5.
55619         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
55620         Cygwin 1.5.x.
55621         * doc/posix-functions/setlocale.texi: Mention that the problem with the
55622         LC_CTYPE category also exists on Cygwin 1.5.x.
55624 2011-06-04  Bruno Haible  <bruno@clisp.org>
55626         strerror-override: Don't disable symbol renamings.
55627         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
55628         * lib/strerror-override.c: Include config.h.
55629         (strerror_override): Don't undefine.
55631 2011-06-03  Bruno Haible  <bruno@clisp.org>
55633         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
55634         * lib/localename.h: Update copyright header.
55635         * lib/localename.c: Likewise.
55636         * lib/relocatable.h: Likewise.
55637         * lib/relocatable.c: Likewise.
55639 2011-06-02  Bruno Haible  <bruno@clisp.org>
55641         doc: Fix a module name.
55642         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
55644 2011-06-02  Bruno Haible  <bruno@clisp.org>
55646         pipe2: Remove dependency on 'nonblocking' module.
55647         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
55648         O_NONBLOCK is defined by gnulib.
55649         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
55650         is zero.
55651         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
55652         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
55653         defined by gnulib.
55654         (get_nonblocking_flag): New function.
55655         (main): Test O_NONBLOCK flag only if it is nonzero.
55656         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
55658 2011-06-03  Jim Meyering  <meyering@redhat.com>
55660         maint: three new prohibit-header-without-use rules
55661         Prohibit use of cloexec.h, posixver.h, same.h without use.
55662         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
55663         (sc_prohibit_posixver_without_use): Likewise.
55664         (sc_prohibit_same_without_use): Likewise.
55666 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55668         allocator: 'die' routine is now given requested size
55669         * lib/allocator.h (struct allocator.die): New size arg.
55670         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
55671         If the actual problem is an ssize_t limitation, not a size_t or
55672         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
55674 2011-06-01  Eric Blake  <eblake@redhat.com>
55676         strerror: drop strerror_r dependency
55677         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
55678         * lib/strerror-override.c (strerror_override): ...to new file.
55679         * lib/strerror-override.h: Add prototype.
55680         * lib/strerror-impl.h: Delete.
55681         * lib/strerror.c (strerror): New implementation.
55682         * modules/errno (Files): Add new files.
55683         (configure.ac): Compile new file as appropriate.
55684         * modules/strerror (Files): Drop unused file.
55685         (Depends-on): Drop strerror_r-posix.
55686         * MODULES.html.sh: Document strerror_r-posix.
55687         Requested by Sam Steingold.
55689         perror: call strerror_r directly
55690         * modules/perror (Files): Drop strerror-impl.h.
55691         * lib/perror.c (perror): Use our own stack buffer, rather than
55692         calling a wrapper that uses static storage.
55693         * doc/posix-functions/perror.texi (perror): Document a limitation
55694         of our replacement.
55696         strerror_r: fix includes for FreeBSD
55697         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
55698         since we use abort on some platforms.
55699         Reported by Matthias Bolte.
55701 2011-05-31  Bruno Haible  <bruno@clisp.org>
55703         Fix link errors in tests: openat-die uses gettext-h.
55704         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
55705         against $(LIBINTL).
55706         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
55707         against $(LIBINTL).
55708         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
55709         $(LIBINTL).
55710         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
55711         against $(LIBINTL).
55712         * modules/linkat-tests (Makefile.am): Link test-linkat against
55713         $(LIBINTL).
55714         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
55715         $(LIBINTL).
55716         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
55717         against $(LIBINTL).
55718         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
55719         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
55720         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
55721         $(LIBINTL).
55722         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
55723         $(LIBINTL).
55724         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
55725         $(LIBINTL).
55726         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55728 2011-05-31  Bruno Haible  <bruno@clisp.org>
55730         Fix link errors in tests: wait-process uses gettext-h.
55731         * modules/nonblocking-pipe-tests (Makefile.am): Set
55732         test_nonblocking_pipe_main_LDADD.
55733         * modules/nonblocking-socket-tests (Makefile.am): Link
55734         test-nonblocking-socket-main against $(LIBINTL).
55735         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55737 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
55739         assert-h: work around 'verify' incompatibility
55740         * lib/verify.h: Use @...@ directives, not ifdef.
55741         * modules/assert-h (assert.h): Implement the directives.
55742         (assert.h): Substitute the symbol-prefix more consistently.
55744 2011-05-29  Jim Meyering  <meyering@redhat.com>
55746         trim: remove three superfluous assignments
55747         * lib/trim.c (trim2): Remove three superfluous assignments
55748         and correct brace positioning.
55750 2011-05-29  Bruno Haible  <bruno@clisp.org>
55752         wctype-h: Avoid namespace pollution on Solaris 2.6.
55753         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
55754         identifiers.
55755         * doc/posix-headers/wctype.texi: Mention the problem.
55756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55758 2011-05-28  Jim Meyering  <meyering@redhat.com>
55760         parse-datetime.y: accommodate -Wstrict-overflow
55761         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
55762         placate -Wstrict-overflow.
55764         trim: avoid a warning from -O2 -Wstrict-overflow
55765         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
55767 2011-05-29  Bruno Haible  <bruno@clisp.org>
55769         gnulib-tool: Fix bug in yesterday's commit.
55770         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
55771         twice.
55773 2011-05-29  Bruno Haible  <bruno@clisp.org>
55775         Allow multiple gnulib generated include files to be combined.
55776         * gnulib-tool (func_compute_include_guard_prefix): New function.
55777         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
55778         ${gl_include_guard_prefix} references.
55779         (func_import, func_create_testdir): Invoke
55780         func_compute_include_guard_prefix.
55781         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
55782         * lib/ctype.in.h: Likewise.
55783         * lib/dirent.in.h: Likewise.
55784         * lib/errno.in.h: Likewise.
55785         * lib/fcntl.in.h: Likewise.
55786         * lib/float.in.h: Likewise.
55787         * lib/getopt.in.h: Likewise.
55788         * lib/iconv.in.h: Likewise.
55789         * lib/langinfo.in.h: Likewise.
55790         * lib/locale.in.h: Likewise.
55791         * lib/math.in.h: Likewise.
55792         * lib/netdb.in.h: Likewise.
55793         * lib/netinet_in.in.h: Likewise.
55794         * lib/poll.in.h: Likewise.
55795         * lib/pthread.in.h: Likewise.
55796         * lib/pty.in.h: Likewise.
55797         * lib/sched.in.h: Likewise.
55798         * lib/se-selinux.in.h: Likewise.
55799         * lib/search.in.h: Likewise.
55800         * lib/signal.in.h: Likewise.
55801         * lib/spawn.in.h: Likewise.
55802         * lib/stdarg.in.h: Likewise.
55803         * lib/stddef.in.h: Likewise.
55804         * lib/stdint.in.h: Likewise.
55805         * lib/stdio.in.h: Likewise.
55806         * lib/stdlib.in.h: Likewise.
55807         * lib/string.in.h: Likewise.
55808         * lib/strings.in.h: Likewise.
55809         * lib/sys_file.in.h: Likewise.
55810         * lib/sys_ioctl.in.h: Likewise.
55811         * lib/sys_select.in.h: Likewise.
55812         * lib/sys_socket.in.h: Likewise.
55813         * lib/sys_stat.in.h: Likewise.
55814         * lib/sys_time.in.h: Likewise.
55815         * lib/sys_times.in.h: Likewise.
55816         * lib/sys_uio.in.h: Likewise.
55817         * lib/sys_utsname.in.h: Likewise.
55818         * lib/sys_wait.in.h: Likewise.
55819         * lib/sysexits.in.h: Likewise.
55820         * lib/termios.in.h: Likewise.
55821         * lib/time.in.h: Likewise.
55822         * lib/unistd.in.h: Likewise.
55823         * lib/wchar.in.h: Likewise.
55824         * lib/wctype.in.h: Likewise.
55825         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
55826         * modules/ctype (Makefile.am): Likewise.
55827         * modules/dirent (Makefile.am): Likewise.
55828         * modules/errno (Makefile.am): Likewise.
55829         * modules/fcntl-h (Makefile.am): Likewise.
55830         * modules/float (Makefile.am): Likewise.
55831         * modules/getopt-posix (Makefile.am): Likewise.
55832         * modules/iconv-h (Makefile.am): Likewise.
55833         * modules/langinfo (Makefile.am): Likewise.
55834         * modules/locale (Makefile.am): Likewise.
55835         * modules/math (Makefile.am): Likewise.
55836         * modules/netdb (Makefile.am): Likewise.
55837         * modules/netinet_in (Makefile.am): Likewise.
55838         * modules/poll-h (Makefile.am): Likewise.
55839         * modules/pthread (Makefile.am): Likewise.
55840         * modules/pty (Makefile.am): Likewise.
55841         * modules/sched (Makefile.am): Likewise.
55842         * modules/search (Makefile.am): Likewise.
55843         * modules/selinux-h (Makefile.am): Likewise.
55844         * modules/signal (Makefile.am): Likewise.
55845         * modules/spawn (Makefile.am): Likewise.
55846         * modules/stdarg (Makefile.am): Likewise.
55847         * modules/stddef (Makefile.am): Likewise.
55848         * modules/stdint (Makefile.am): Likewise.
55849         * modules/stdio (Makefile.am): Likewise.
55850         * modules/stdlib (Makefile.am): Likewise.
55851         * modules/string (Makefile.am): Likewise.
55852         * modules/strings (Makefile.am): Likewise.
55853         * modules/sys_file (Makefile.am): Likewise.
55854         * modules/sys_ioctl (Makefile.am): Likewise.
55855         * modules/sys_select (Makefile.am): Likewise.
55856         * modules/sys_socket (Makefile.am): Likewise.
55857         * modules/sys_stat (Makefile.am): Likewise.
55858         * modules/sys_time (Makefile.am): Likewise.
55859         * modules/sys_times (Makefile.am): Likewise.
55860         * modules/sys_uio (Makefile.am): Likewise.
55861         * modules/sys_utsname (Makefile.am): Likewise.
55862         * modules/sys_wait (Makefile.am): Likewise.
55863         * modules/sysexits (Makefile.am): Likewise.
55864         * modules/termios (Makefile.am): Likewise.
55865         * modules/time (Makefile.am): Likewise.
55866         * modules/unistd (Makefile.am): Likewise.
55867         * modules/wchar (Makefile.am): Likewise.
55868         * modules/wctype-h (Makefile.am): Likewise.
55869         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
55871 2011-05-29  Bruno Haible  <bruno@clisp.org>
55873         assert-h: Allow multiple gnulib generated replacements to coexist.
55874         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
55876 2011-05-29  Bruno Haible  <bruno@clisp.org>
55878         argp: Allow coexistence with strerror_r-posix module.
55879         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
55880         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
55881         by gnulib's <string.h> replacement), assume it has the POSIX signature,
55882         not the glibc signature.
55884 2011-05-28  Bruno Haible  <bruno@clisp.org>
55886         gnulib-tool: Alternative structure of testdirs, similar to --import.
55887         * gnulib-tool: New option --single-configure.
55888         (func_usage): Document it.
55889         (single_configure): New variable.
55890         (func_modules_transitive_closure_separately,
55891         func_modules_transitive_closure_separately,
55892         func_determine_use_libtests, func_modules_add_dummy_separately,
55893         func_modules_to_filelist_separately): New functions, extracted from
55894         func_import.
55895         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
55896         (func_import): Use the new functions.
55897         (func_create_testdir): Set final_modules. Handle $single_configure =
55898         true case.
55900 2011-05-28  Bruno Haible  <bruno@clisp.org>
55902         getloadavg: Remove an unreliable safety check.
55903         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
55904         getloadavg.c is in place.
55905         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
55906         Reported by Sam Steingold <sds@gnu.org>.
55908 2011-05-28  Bruno Haible  <bruno@clisp.org>
55910         doc: Cleanup yet another file produced by texinfo.tex.
55911         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
55913 2011-05-28  Bruno Haible  <bruno@clisp.org>
55915         Finish the conditional dependencies mechanism.
55916         * gnulib-tool: New option --no-conditional-dependencies.
55917         (func_usage): Document it. Don't mark --conditional-dependencies as
55918         experimental.
55919         (cond_dependencies): The possible values can now be true, false, empty.
55920         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
55921         (func_import): Store setting in gnulib-cache.m4 and read it from there.
55922         * doc/gnulib-tool.texi (Conditional dependencies): New section.
55924 2011-05-28  Bruno Haible  <bruno@clisp.org>
55926         doc: Use a recent texinfo.tex.
55927         * doc/Makefile (tex_opts): New variable.
55928         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
55930 2011-05-28  Jim Meyering  <meyering@redhat.com>
55932         intprops.h: adjust comment to match code change
55933         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
55934         only once, it *may* have side effects.  Also fix an unrelated typo.
55935         (_GL_INT_SIGNED): Likewise.
55937 2011-05-26  Simon Josefsson  <simon@josefsson.org>
55939         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
55941 2011-05-26  Bruno Haible  <bruno@clisp.org>
55943         mbsrchr: Avoid collision with system function on Interix.
55944         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
55945         Reported by Markus Duft <mduft@gentoo.org>.
55947 2011-05-15  James Youngman  <jay@gnu.org>
55949         getopt: for ambiguous options, enumerate the possibilities.
55950         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
55951         the ambiguous options when an ambiguous prefix is given. This was
55952         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
55953         glibc change was
55954         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
55956 2011-05-25  Eric Blake  <eblake@redhat.com>
55958         getcwd: work around mingw bug
55959         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
55960         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55961         Reported by Matthias Bolte.
55963 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
55965         test-intprops: disable -Wtype-limits diagnostics
55966         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
55967         diagnostics.  Otherwise, the integer overflow macros generate many
55968         diagnostics.  Reported by Jim Meyering in
55969         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55971         intprops: shorten, to pacify gcc -Woverlength-strings
55972         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
55973         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
55974         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
55975         likely to run afoul of C compiler limits for string constant lengths.
55976         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55978 2011-05-24  Eric Blake  <eblake@redhat.com>
55980         docs: document recently fixed glibc printf bug
55981         * doc/posix-functions/fprintf.texi (fprintf): Document it.
55982         * doc/posix-functions/printf.texi (printf): Likewise.
55983         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
55984         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
55986         closein-tests: convert to init.sh
55987         * modules/closein-tests (Files): Add init.sh
55988         * tests/test-closein.sh Use it.
55990         yesno-tests: convert to init.sh
55991         * modules/yesno-tests (Files): Add init.sh.
55992         * tests/test-yesno.sh: Use it.
55994         atexit-tests: ensure reliable exit status
55995         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
55996         Reported by Bruno Haible.
55998 2011-05-24  Bruno Haible  <bruno@clisp.org>
56000         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
56001         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
56002         gl_PREREQ_STRERROR_R invocations from here...
56003         * modules/strerror_r-posix (configure.ac): ... to here.
56005 2011-05-24  Eric Blake  <eblake@redhat.com>
56007         strerror_r: fix missing header
56008         * lib/strerror_r.c: Avoid compiler warning about snprintf.
56010         strerror_r: fix AIX test failures
56011         * lib/strerror_r.c (strerror_r): Convert silent truncation to
56012         ERANGE failure.
56014         strerror_r: fix Solaris test failures
56015         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
56016         failures.
56017         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
56019         strerror_r: enforce POSIX recommendations
56020         * lib/strerror_r.c (safe_copy): New helper method.
56021         (strerror_r): Guarantee a non-empty string.
56022         * tests/test-strerror_r.c (main): Enhance tests to incorporate
56023         recent POSIX rulings and to match our strerror guarantees.
56024         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
56026 2011-05-24  Jim Meyering  <meyering@redhat.com>
56028         test-perror2.c: avoid warning about unused variable
56029         * tests/test-perror2.c (main): Remove declaration of unused "fp".
56031 2011-05-24  Eric Blake  <eblake@redhat.com>
56033         perror: avoid spurious test failure on HP-UX
56034         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
56036         tests: fix logic bug in init.sh
56037         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
56038         shell.
56040 2011-05-24  Jim Meyering  <meyering@redhat.com>
56042         utimensat: do not reference an out-of-scope buffer
56043         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
56044         declared in an inner scope, yet "times" would be dereferenced outside
56045         the scope in which "ts" was valid.
56046         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
56047         of ts[2] "out/up", so that the use of aliased "times" (via
56048         "times = ts;") does not end up referencing an out-of-scope "ts"
56050         opendir-safer.c: don't clobber errno; don't close negative FD
56051         * lib/opendir-safer.c (opendir_safer):
56052         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
56053         file descriptor, and more importantly, don't clobber the
56054         offending errno value with EINVAL.  Before, upon failure
56055         of dup_safer, we would pass the negative file descriptor to
56056         fdopendir, which would clobber errno.
56058 2011-05-23  Bruno Haible  <bruno@clisp.org>
56060         idcache: Fix module description.
56061         * modules/idcache (Include): Set to "idcache.h".
56063 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
56065         gnulib-tool: fix portability problem with MacOS sed
56066         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
56067         before the "}".  Problem reported by Leo in
56068         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
56069         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
56070         sed_extract_condition1, sed_extract_condition2.
56072 2011-05-23  Bruno Haible  <bruno@clisp.org>
56074         hash: Simplify autoconf macro.
56075         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
56077 2011-05-23  Bruno Haible  <bruno@clisp.org>
56079         getugroups: Fix module description.
56080         * modules/getugroups (Include): Set to "getugroups.h".
56082 2011-05-23  Bruno Haible  <bruno@clisp.org>
56084         linkat: Simplify autoconf macro.
56085         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
56087 2011-05-23  Bruno Haible  <bruno@clisp.org>
56088             Eric Blake  <eblake@redhat.com>
56090         linkat, renameat: Update dependencies.
56091         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
56092         * modules/linkat (Depends-on): Likewise. Remove also readlink,
56093         symlinkat.
56095 2011-05-23  Jim Meyering  <meyering@redhat.com>
56097         maint.mk: more tight_scope improvements
56098         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
56099         (_gl_TS_headers): Define only in if-0'd block.
56100         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
56101         sometimes we must *not* use it.  Adjust uses accordingly.
56102         (sc_tight_scope): Use much simpler grep-based test to determine
56103         whether we skip this rule.
56105         maint.mk: generalize/improve the tight-scope rule
56106         * top/maint.mk: Emit a warning when the test is skipped.
56107         (_gl_TS_dir): Add $(srcdir)/ prefix.
56108         (_gl_TS_function_match): Simplify, rather than trying
56109         to enumerate common types.  Otherwise, it would fail to match an
56110         "extern unsigned char const *" declaration in idutils.
56111         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
56112         a way to support use of that type of macro.
56113         (_gl_TS_var_match): Simplify regexp.
56114         (_gl_TS_obj_files): New configurable variable.
56115         (_gl_TS_headers): Likewise.
56117 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
56119         verify: fix bug when gnulib <assert.h> is also included
56120         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
56121         is defined, not if _GL_STATIC_ASSERT_H is not defined.
56122         Perhaps there's a better way, but this fixes the immediate problem.
56123         Problem reported by Bruno Haible in
56124         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
56126 2011-05-22  Bruno Haible  <bruno@clisp.org>
56128         xgetcwd: Simplify autoconf macro.
56129         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
56131 2011-05-22  Bruno Haible  <bruno@clisp.org>
56133         New module 'mktime-internal'.
56134         * modules/mktime-internal: New file.
56135         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
56136         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
56137         mktime_internal as a C macro if libc has __mktime_internal.
56138         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
56139         conditions.
56140         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
56142 2011-05-22  Bruno Haible  <bruno@clisp.org>
56144         timegm: Correct mktime replacement statements.
56145         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
56146         defining mktime as a C macro. This completes a 2009-07-28 commit.
56148 2011-05-22  Bruno Haible  <bruno@clisp.org>
56150         timegm: Simplify autoconf macro.
56151         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
56153 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
56155         clock-time: change to LGPLv2+.
56156         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
56157         BSD-like but we have no mark for that; this is good enough for now.
56159 2011-05-21  Bruno Haible  <bruno@clisp.org>
56161         strerror_r: Fix comments.
56162         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
56164 2011-05-21  Bruno Haible  <bruno@clisp.org>
56166         relocatable-prog-wrapper: Fix possible link error.
56167         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
56168         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
56169         (gl_FUNC_SETENV): ... to here.
56170         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
56171         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
56173 2011-05-21  Bruno Haible  <bruno@clisp.org>
56175         relocatable-prog-wrapper: Assume strerror() exists.
56176         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
56177         m4/strerror.m4.
56178         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
56179         * lib/relocwrapper.c: Remove mention of strerror module.
56180         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
56181         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
56182         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
56183         C macro.
56185 2011-05-21  Bruno Haible  <bruno@clisp.org>
56187         select: Simplify replacement idiom.
56188         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
56189         Win32 platforms.
56190         * lib/sys_select.in.h (select): Simplify accordingly.
56191         * modules/select (Depends-on): Likewise.
56193 2011-05-21  Bruno Haible  <bruno@clisp.org>
56195         mkdir-p: Simplify autoconf macro.
56196         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
56197         gl_FUNC_LCHOWN.
56199 2011-05-21  Eric Blake  <eblake@redhat.com>
56201         strerror_r: avoid clobbering strerror on cygwin
56202         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
56203         fall back instead to sys_errlist.
56204         * modules/strerror (configure.ac): Add witness.
56205         * tests/test-strerror_r.c (main): Enhance test.
56206         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
56207         * tests/test-perror2.c (main): Free memory before exit.
56209 2011-05-21  Bruno Haible  <bruno@clisp.org>
56211         mkdtemp: Use gnulib naming conventions.
56212         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
56213         * modules/mkdtemp (configure.ac): Update.
56215 2011-05-20  Eric Blake  <eblake@redhat.com>
56217         strerror_r: avoid corrupting errno on Solaris
56218         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
56219         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
56221         strerror_r: avoid compiler warning
56222         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
56224         strerror_r: simplify AIX code
56225         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
56227         test-perror: avoid spurious failure on FreeBSD
56228         * modules/perror-tests (Depends-on): Add strerror, now that
56229         strerror_r no longer pulls it in.
56231 2011-05-20  Bruno Haible  <bruno@clisp.org>
56233         strerror_r-posix: Remove unused dependencies.
56234         * modules/strerror_r-posix (Depends-on): Remove strerror.
56235         Reported by Eric Blake.
56237 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56239         intprops: remove assumption about A|B representation
56240         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
56241         is a valid integer if both A and B are.  Although this is true for
56242         all known practical hosts, the C standard doesn't guarantee it,
56243         and the code need not assume it.  Also, this change may work around
56244         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
56245         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
56247 2011-05-20  Eric Blake  <eblake@redhat.com>
56249         perror: work around FreeBSD bug
56250         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
56251         is broken.  Move AC_LIBOBJ...
56252         * modules/perror (configure.ac): Here.
56253         * doc/posix-functions/perror.texi (perror): Document this.
56254         * tests/test-perror2.c (main): Enhance test.
56256         test-perror: check for strerror interactions
56257         * tests/macros.h (STREQ): Add macro.
56258         * modules/perror-tests (Files): Add second test.
56259         * tests/test-perror2.c (main): New file.
56260         * doc/posix-functions/perror.texi (perror): Document glibc bug.
56262         test-perror: rewrite to use init script
56263         * modules/perror-tests (Files): Add init.sh.
56264         * tests/test-perror.sh: Use temporary directory.
56266 2011-05-20  Jim Meyering  <meyering@redhat.com>
56268         maint: replace misused "a" with "an"
56269         * doc/intprops.texi: "a integer"
56270         * doc/regex.texi: "a explanation"
56271         * lib/alignof.h: "a object"
56272         * lib/argmatch.h: "a explanation"
56273         * lib/argp-help.c: "a option" and "a OPTION_DOC"
56274         * lib/stdint.in.h: "a integer"
56275         * lib/userspec.c: "a owner"
56276         * doc/gnulib.texi: Fix "a idea", and reword.
56278 2011-05-19  Jim Meyering  <meyering@redhat.com>
56280         maint: correct misuse of "a" and "an"
56281         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
56282         * lib/argp-help.c: "an docum...": s/an/a/
56283         * lib/argp-parse.c: "An vector": s/An/A/
56284         * lib/execute.c: "an native": s/an/a/
56285         * lib/spawn-pipe.c: Likewise.
56286         * lib/gc.h: "an Gc_rc": s/an/a/
56287         * lib/unigbrk.in.h: "an grapheme": s/an/a/
56288         * lib/fts.c: "an stat.st_dev": s/an/a/
56290 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56292         intprops-tests: work around HP-UX 11.23 cc bug with constants
56293         * tests/test-intprops.c (VERIFY): New macro.
56294         (main): Use it, instead of verify, to work around the compiler bug; see
56295         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
56297         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
56298         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
56299         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
56300         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
56301         (_GL_REMAINDER_OVERFLOW): Use it.
56303         intprops-tests: revert unsigned part of previous change
56304         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
56305         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
56306         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
56307         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
56309 2011-05-19  Bruno Haible  <bruno@clisp.org>
56311         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
56312         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
56313         strerror_r() returned without filling the buffer.
56314         Reported by Eric Blake.
56316 2011-05-19  Eric Blake  <eblake@redhat.com>
56318         strerror_r: guarantee unchanged errno
56319         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
56320         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
56321         failure.
56322         * tests/test-strerror_r.c (main): Enhance test.
56324 2011-05-19  Bruno Haible  <bruno@clisp.org>
56326         strerror_r: Reorder #if blocks.
56327         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
56328         for consistency with the previous commit.
56330 2011-05-19  Bruno Haible  <bruno@clisp.org>
56332         perror: Avoid clobbering the strerror buffer when possible.
56333         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
56334         * lib/strerror.c: Include it.
56335         * modules/strerror (Files): Add lib/strerror-impl.h.
56336         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
56337         (my_strerror): New function, defined through lib/strerror-impl.h.
56338         (perror): Use it instead of strerror.
56339         * modules/perror (Files): Add lib/strerror-impl.h.
56340         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
56342 2011-05-19  Eric Blake  <eblake@redhat.com>
56344         strerror_r: fix on newer cygwin
56345         * lib/strerror_r.c (strerror_r): Cygwin now has
56346         __xpg_strerror_r, use it.
56348 2011-05-19  Bruno Haible  <bruno@clisp.org>
56350         strerror_r: Avoid clobbering the strerror buffer when possible.
56351         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
56352         (sys_nerr, sys_errlist): New declarations.
56353         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
56354         HP-UX, native Win32, IRIX, and 32-bit Solaris.
56355         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
56357 2011-05-19  Bruno Haible  <bruno@clisp.org>
56359         strerror_r: Fix test failure on mingw.
56360         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
56361         EXTEND_STRERROR_R.
56362         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
56363         macros from errno.in.h instead.
56365 2011-05-19  Eric Blake  <eblake@redhat.com>
56367         strerror: relax test for Solaris
56368         * tests/test-strerror.c (main): Permit Solaris behavior.
56369         * tests/test-strerror_r.c (main): Likewise.
56371         strerror: enforce POSIX ruling on strerror(0)
56372         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
56373         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
56374         * lib/strerror_r.c (rpl_strerror_r): Work around it.
56375         * doc/posix-functions/strerror.texi (strerror): Document it.
56376         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
56377         * tests/test-strerror.c (main): Strengthen test.
56378         * tests/test-strerror_r.c (main): Likewise.
56380 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56382         intprop-tests: port to older and more-pedantic compilers
56383         * modules/intprops-tests (Files): Add tests/macros.h.
56384         * tests/test-intprops.c: Include macros.h.
56385         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
56386         it's no longer documented to expand to an integer constant expression.
56387         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
56388         argument is floating point, as it's no longer documented to expand
56389         to an integer constant expression in that case.
56390         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
56391         compiler bugs reported by Bruno Haible.  See
56392         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
56393         (U0, U1): New constants, to work around the same bugs.  Also,
56394         in tests, use e.g., "(unsigned int) 39" rather than "39u".
56396         intprops: work around C compiler bugs
56397         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
56398         bug in Sun C 5.11 2010/08/13 and other compilers; see
56399         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
56401         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
56402         * doc/intprops.texi (Integer Type Determination): Fix
56403         documentation for TYPE_IS_INTEGER: it returns an constant
56404         expression, not an integer constant expression.  Fix doc for
56405         TYPE_SIGNED: it returns an integer constant expression only if its
56406         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
56407         hardly worth documented that way....)
56409 2011-05-18  Bruno Haible  <bruno@clisp.org>
56411         strerror_r: Avoid clobbering the strerror buffer when possible.
56412         * lib/strerror_r.c (strerror_r): Merge the three implementations.
56413         Handle gnulib defined errno values here. When strerror() returns NULL
56414         or an empty string, return EINVAL.
56415         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
56416         gnulib defined errno values here.
56417         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
56419 2011-05-18  Eric Blake  <eblake@redhat.com>
56421         fnmatch: avoid compiler warning
56422         * lib/fnmatch_loop.c (FCT): Use correct type.
56423         Reported by Matthias Bolte.
56425 2011-05-13  Jim Meyering  <meyering@redhat.com>
56427         maint.mk: three new prohibit_<HDR>_without_use rules
56428         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
56429         (sc_prohibit_stdio-safer_without_use): Likewise.
56430         (sc_prohibit_xfreopen_without_use): Likewise.
56432 2011-05-17  Jim Meyering  <meyering@redhat.com>
56434         announce-gen: fail if the NEWS delta is empty
56435         If there's nothing noteworthy in NEWS, then either you forgot
56436         or you shouldn't be releasing.
56437         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
56439 2011-05-17  Pádraig Brady  <P@draigBrady.com>
56441         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
56442         reserved symbols starting with double underscore from the check.
56444 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56446         intprops: add doc
56447         * doc/intprops.texi: New file, documenting intprops.
56448         * doc/gnulib.texi (Particular Modules): Include it.
56450         verify: add doc to gnulib manual and fix example
56451         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
56452         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
56453         (Compile-time Assertions): Fix example so it can't overflow.
56455 2011-05-17  Jim Meyering  <meyering@redhat.com>
56457         warnings.m4: don't usurp save_CPPFLAGS variable name
56458         * m4/warnings.m4: Prefix local temporary variable name with gl_.
56460         doc: fix typo
56461         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
56463 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56464             Bruno Haible  <bruno@clisp.org>
56466         doc: Tweak recent change.
56467         * README (Portability guidelines): Tweak new text.
56468         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
56469         Interix 6.1.
56471 2011-05-16  Eric Blake  <eblake@redhat.com>
56473         inttypes: avoid autoconf warning
56474         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
56475         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56477 2011-05-16  Sam Steingold  <sds@gnu.org>
56478         and Eric Blake  <eblake@redhat.com>
56480         vc-list-files: accept multiple directory operands
56481         * build-aux/vc-list-files: Iterate over all remaining operands.
56483 2011-05-16  Bruno Haible  <bruno@clisp.org>
56485         Fix confusion regarding deprecated modules.
56486         * modules/calloc (Status, Notice): Mark module as deprecated, not
56487         obsolete.
56488         * modules/fnmatch-posix (Status, Notice): Likewise.
56489         * modules/getdate (Status, Notice): Likewise.
56490         * modules/getopt (Status, Notice): Likewise.
56491         * modules/malloc (Status, Notice): Likewise.
56492         * modules/pipe (Status, Notice): Likewise.
56493         * modules/realloc (Status, Notice): Likewise.
56494         * modules/rename-dest-slash (Status, Notice): Likewise.
56495         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
56496         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
56497         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
56498         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
56499         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
56501 2011-05-16  Bruno Haible  <bruno@clisp.org>
56503         doc: List the target platforms.
56504         * doc/gnulib-intro.texi (Target Platforms): New section.
56505         * doc/gnulib.texi (Introduction): Update menu.
56506         * README (Portability guidelines): Refer to the new section. Update
56507         statement about oldest supported environment. Remove rationale why
56508         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
56509         unportable C89 function.
56510         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
56511         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
56513 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56515         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
56517 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56519         intprops-tests: new module
56520         * modules/intprops-tests, tests/test-intprops.c: New files.
56522         intprops: add safe, portable integer overflow checking
56523         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
56524         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
56525         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
56526         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
56527         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
56528         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
56529         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
56530         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
56531         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
56532         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
56533         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
56535 2011-05-12  James Youngman  <jay@gnu.org>
56537         Add a test for glibc's Bugzilla bug #12378.
56538         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
56539         doesn't allow the literal matching of a lone "[" (which is
56540         required by POSIX).
56541         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
56543 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
56545         Sync glibc change fixing Bugzilla bug #12378.
56546         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
56547         beginning and fall back to matching as normal character if the
56548         string ends before the matching ']' is found.  This is what POSIX
56549         requires.
56551 2011-05-13  Eric Blake  <eblake@redhat.com>
56553         getcwd-lgpl: relax test for FreeBSD
56554         * doc/posix-functions/getcwd.texi (getcwd): Document portability
56555         issue.
56556         * tests/test-getcwd-lgpl.c (main): Relax test.
56557         Reported by Matthias Bolte.
56559 2011-05-11  Eric Blake  <eblake@redhat.com>
56561         test-fflush: silence compiler warning
56562         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
56564 2011-05-11  Bruno Haible  <bruno@clisp.org>
56566         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
56567         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
56568         * modules/canonicalize (Depends-on): Add 'nocrash'.
56569         * modules/canonicalize-lgpl (Depends-on): Likewise.
56570         * doc/posix-functions/realpath.texi: Update platforms list.
56571         Reported by Ryan Schmidt <ryandesign@macports.org>.
56573 2011-05-11  Bruno Haible  <bruno@clisp.org>
56575         group-member: Declare function in <unistd.h>.
56576         * lib/unistd.in.h (group_member): New declaration.
56577         * lib/group-member.h: Remove file.
56578         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
56579         * tests/test-unistd-c++.cc: Check signature of group_member.
56580         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
56581         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
56582         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
56583         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
56584         HAVE_GROUP_MEMBER.
56585         * modules/group-member (Files): Remove lib/group-member.h.
56586         (Depends-on): Add unistd. Specify conditions.
56587         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56588         (Include): Change to <unistd.h>.
56589         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
56590         HAVE_GROUP_MEMBER.
56591         * NEWS: Mention the change.
56592         * lib/euidaccess.c: Don't include group-member.h.
56594 2011-05-11  Bruno Haible  <bruno@clisp.org>
56596         group-member: Document module.
56597         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
56598         module.
56600 2011-05-11  Bruno Haible  <bruno@clisp.org>
56602         fclose: Fix mistake earlier today.
56603         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
56605 2011-05-11  Eric Blake  <eblake@redhat.com>
56607         fclose: preserve fflush errors
56608         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
56609         Reported by Jim Meyering.
56611         bootstrap: support a prereq of 'rpcgen -' on RHEL5
56612         * build-aux/bootstrap (check_versions): When no specific version
56613         is required, merely check that the app produces an exit status
56614         that indicates its existence.
56616         maint.mk: drop redundant check
56617         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
56618         the same but better.
56620 2011-05-11  Bruno Haible  <bruno@clisp.org>
56622         fclose: Fix possible link error.
56623         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
56624         unregister_shadow_fd. Improve comments.
56625         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
56626         Eric Blake.
56628 2011-05-11  Jim Meyering  <meyering@redhat.com>
56630         maint.mk: improve "can not" detection and generalize rule name
56631         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
56632         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
56633         Use the same technique as in sc_prohibit_doubled_word, so that
56634         we recognize "can not" also when the words are separated by a newline.
56635         Suggested by Eric Blake.
56636         (perl_filename_lineno_text_): Define.  Factored out of...
56637         (prohibit_doubled_word_): ...here.  Use the new definition.
56638         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
56639         (prohibit_undesirable_word_seq_RE_): New overridable variable.
56640         (ignore_undesirable_word_sequence_RE_): New overridable variable.
56642 2011-05-10  Eric Blake  <eblake@redhat.com>
56644         fclose: avoid double close race when possible
56645         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
56646         all but WINDOWS_SOCKETS.
56648 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
56650         openat: correct new comment
56651         * lib/openat-proc.c (openat_proc_name): Correct the comment.
56653 2011-05-10  Jim Meyering  <meyering@redhat.com>
56655         openat: add comments
56656         * lib/openat-proc.c (openat_proc_name): Add comments,
56657         mostly from Eric Blake.
56659 2011-05-09  Eric Blake  <eblake@redhat.com>
56661         openat: reduce syscalls in first probe of /proc
56662         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
56663         be a directory.  Simplify the probe for .. bugs.
56664         * modules/openat (Depends-on): Drop same-inode.
56665         Reported by Bastien ROUCARIES.
56667 2011-05-09  Jim Meyering  <meyering@redhat.com>
56669         maint.mk: change semantics/name of tight_scope variables
56670         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
56671         Rename variables to align with semantics that make them more useful.
56673         maint.mk: tweak new rule's name not to impinge
56674         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
56675         (sc_tight_scope): Use new rule name rather than $@-0.
56677         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
56678         * top/maint.mk (sc_tight_scope): New rule.
56679         (sc_tight_scope-0): New rule, ifdef'd out.
56680         (_gl_TS_dir): Default.
56681         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
56682         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
56684 2011-05-09  Simon Josefsson  <simon@josefsson.org>
56686         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
56687         Haible <bruno@clisp.org>.
56689 2011-05-08  Bruno Haible  <bruno@clisp.org>
56691         Comments.
56692         * m4/isnanf.m4: Add comment.
56693         * m4/isnanl.m4: Likewise.
56695 2011-05-08  Bruno Haible  <bruno@clisp.org>
56697         glob: Remove obsolete macro.
56698         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
56700 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
56702         intprops: Sun C 5.11 supports __typeof__
56703         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
56704         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
56705         which is new.
56706         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
56708         intprops: switch to usual gnulib indenting and naming
56709         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
56710         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
56712         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
56714 2011-05-08  Jim Meyering  <meyering@redhat.com>
56716         maint.mk: suppress "Entering/Leaving directory" diag in announcement
56717         * top/maint.mk (release-prep): Use make's --no-print-directory
56718         option when generating the announcement.  This eliminates the
56719         pesky "make[2]: Entering/Leaving directory" diagnostics in the
56720         generated announcement template.
56722 2011-05-08  Bruno Haible  <bruno@clisp.org>
56724         tzset: Fix gettimeofday wrapper on Solaris 2.6.
56725         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
56726         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
56728 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
56730         ignore-value, verify: Omit include files from lib_SOURCES.
56731         * modules/ignore-value, modules/verify (Makefile.am):
56732         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
56733         that leads Automake to duplicate use of am__objects_... variables
56734         in Makefile.in.  See
56735         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
56737 2011-05-07  Bruno Haible  <bruno@clisp.org>
56739         fclose: Simplify autoconf macro.
56740         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
56741         defined.
56743 2011-05-07  Bruno Haible  <bruno@clisp.org>
56745         canonicalize-lgpl: Fix autoconf macro ordering bug.
56746         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
56747         gl_STDLIB_H_DEFAULTS.
56749 2011-05-06  Eric Blake  <eblake@redhat.com>
56751         maintainer-makefile: make sc_po_check easier to tune
56752         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
56753         to probe for strings, such as an alternate location for gnulib.
56755         fclose: guarantee behavior on seekable stdin
56756         * modules/fclose (Depends-on): Add fflush.
56757         * doc/posix-functions/fclose.texi (fclose): Document this.
56758         * tests/test-fclose.c (main): Make test for this unconditional.
56760 2011-05-06  Bruno Haible  <bruno@clisp.org>
56762         fflush, fpurge: Relicense under LGPLv2+.
56763         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
56764         * modules/fpurge (License): Likewise.
56765         With permission from Eric Blake and Jim Meyering.
56766         Suggested by Eric Blake.
56768 2011-05-06  Karl Berry  <karl@gnu.org>
56770         * MODULES.html.sh (func_all_modules): remove exit.
56772 2011-05-06  Jim Meyering  <meyering@redhat.com>
56774         maint.mk: use info-gnu@ as the default only for a stable release
56775         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
56776         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
56777         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
56778         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
56780 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56782         assert-h: new module, which supports C1X-style static_assert
56783         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
56784         * lib/verify.h: Revamp so that this can be copied into assert.h,
56785         while retaining the ability to use it standalone as before.
56786         Rename private identifiers so as not to encroach on the
56787         standard C namespace, since this is now used by assert.h.
56788         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
56789         the old verify_true.
56790         (_GL_VERIFY_TRUE): New macro, with much of the contents of
56791         the old verify_true.  Use _GL_VERIFY_TYPE.
56792         (_GL_VERIFY): New macro, with much of the contents of the old verify.
56793         (static_assert): New macro, if _GL_STATIC_ASSERT_H
56794         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
56795         defined when this file is copied into the replacement assert.h.
56796         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
56797         and _Static_assert is not built in.
56798         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
56799         defined, and use the new macros mentioned above.
56800         * doc/posix-headers/assert.texi: Document this.
56802 2011-05-05  Bruno Haible  <bruno@clisp.org>
56804         fclose, fflush: Respect rules for use of AC_LIBOBJ.
56805         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
56806         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
56807         gl_REPLACE_FCLOSE here.
56808         * modules/fflush (Depends-on): Remove fclose.
56809         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
56810         combination with module 'fclose'.
56812 2011-05-05  Bruno Haible  <bruno@clisp.org>
56814         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
56815         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
56816         gl_FUNC_FFLUSH.
56817         (gl_FUNC_FFLUSH): Use it.
56818         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
56819         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
56820         gl_REPLACE_FSEEKO here.
56822 2011-05-05  Bruno Haible  <bruno@clisp.org>
56824         tzset: Relicense under LGPL.
56825         * modules/tzset (License): Change to LGPL.
56826         No agreement needed; it's a no-op.
56828         strtoimax, strtoumax: Relicense under LGPL.
56829         * modules/strtoimax (License): Change to LGPL.
56830         * modules/strtoumax (License): Likewise.
56831         With permission from Jim Meyering, Paul Eggert:
56832         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
56833         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
56835         getgroups: Relicense under LGPL.
56836         * modules/getgroups (License): Change to LGPL.
56837         With permission from Jim Meyering, Paul Eggert, Eric Blake:
56838         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56839         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56840         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56842         nanosleep: Relicense under LGPL.
56843         * modules/nanosleep (License): Change to LGPL.
56844         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
56845         Haible:
56846         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56847         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56848         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56849         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56851         futimens: Relicense under LGPL.
56852         * modules/futimens (License): Change to LGPL.
56853         With permission from Eric Blake:
56854         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56856         fflush: Relicense under LGPL.
56857         * modules/fflush (License): Change to LGPL.
56858         With permission from Eric Blake, Bruno Haible, Jim Meyering:
56859         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56860         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56861         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
56863         tmpfile: Relicense under LGPL.
56864         * modules/tmpfile (License): Change to LGPL.
56865         With permission from Ben Pfaff:
56866         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56868         isfinite: Relicense under LGPL.
56869         * modules/isfinite (License): Change to LGPL.
56870         With permission from Ben Pfaff, Bruno Haible:
56871         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56872         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
56874         acosl..tanl: Relicense under LGPL.
56875         * modules/acosl (License): Change to LGPL.
56876         * modules/asinl (License): Likewise.
56877         * modules/atanl (License): Likewise.
56878         * modules/cosl (License): Likewise.
56879         * modules/expl (License): Likewise.
56880         * modules/logl (License): Likewise.
56881         * modules/sinl (License): Likewise.
56882         * modules/sqrtl (License): Likewise.
56883         * modules/tanl (License): Likewise.
56884         Source code originally from glibc and Paolo Bonzini. Agreements:
56885         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
56886         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
56888 2011-05-05  Bruno Haible  <bruno@clisp.org>
56890         signal: Define sighandler_t.
56891         * lib/signal.in.h (sighandler_t): New type.
56892         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
56893         whether sighandler_t is defined.
56894         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
56895         * modules/signal (Depends-on): Add extensions.
56896         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
56897         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
56898         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
56900 2011-05-05  Eric Blake  <eblake@redhat.com>
56902         maint: remove useless REPLACE_*_H macros
56903         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
56904         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
56905         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
56906         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
56907         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
56908         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
56909         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
56910         * m4/btowc.m4: Update callers.
56911         * m4/dirfd.m4: Likewise.
56912         * m4/duplocale.m4: Likewise.
56913         * m4/fchdir.m4: Likewise.
56914         * m4/fdopendir.m4: Likewise.
56915         * m4/inet_ntop.m4: Likewise.
56916         * m4/inet_pton.m4: Likewise.
56917         * m4/ioctl.m4: Likewise.
56918         * m4/mbrlen.m4: Likewise.
56919         * m4/mbrtowc.m4: Likewise.
56920         * m4/mbsinit.m4: Likewise.
56921         * m4/mbsnrtowcs.m4: Likewise.
56922         * m4/mbsrtowcs.m4: Likewise.
56923         * m4/poll.m4: Likewise.
56924         * m4/setlocale.m4: Likewise.
56925         * m4/wcrtomb.m4: Likewise.
56926         * m4/wcsnrtombs.m4: Likewise.
56927         * m4/wcsrtombs.m4: Likewise.
56928         * m4/wctob.m4: Likewise.
56929         * m4/wcwidth.m4: Likewise.
56930         * modules/posix_spawn: Likewise.
56931         * modules/posix_spawn_file_actions_addclose: Likewise.
56932         * modules/posix_spawn_file_actions_adddup2: Likewise.
56933         * modules/posix_spawn_file_actions_addopen: Likewise.
56934         * modules/posix_spawn_file_actions_destroy: Likewise.
56935         * modules/posix_spawn_file_actions_init: Likewise.
56936         * modules/posix_spawnattr_destroy: Likewise.
56937         * modules/posix_spawnattr_getflags: Likewise.
56938         * modules/posix_spawnattr_getpgroup: Likewise.
56939         * modules/posix_spawnattr_getschedparam: Likewise.
56940         * modules/posix_spawnattr_getschedpolicy: Likewise.
56941         * modules/posix_spawnattr_getsigdefault: Likewise.
56942         * modules/posix_spawnattr_getsigmask: Likewise.
56943         * modules/posix_spawnattr_init: Likewise.
56944         * modules/posix_spawnattr_setflags: Likewise.
56945         * modules/posix_spawnattr_setpgroup: Likewise.
56946         * modules/posix_spawnattr_setschedparam: Likewise.
56947         * modules/posix_spawnattr_setschedpolicy: Likewise.
56948         * modules/posix_spawnattr_setsigdefault: Likewise.
56949         * modules/posix_spawnattr_setsigmask: Likewise.
56950         * modules/posix_spawnp: Likewise.
56952 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
56954         Add option to do-release-commit-and-tag to specify branch.
56955         * build-aux/do-release-commit-and-tag: Add --branch.
56957 2011-05-03  Bruno Haible  <bruno@clisp.org>
56959         Avoid unnecessary compilation units, through conditional dependencies.
56960         * modules/accept (Depends-on): Add conditions to the dependencies.
56961         * modules/acosl (Depends-on): Likewise.
56962         * modules/argz (Depends-on): Likewise.
56963         * modules/asinl (Depends-on): Likewise.
56964         * modules/atanl (Depends-on): Likewise.
56965         * modules/atoll (Depends-on): Likewise.
56966         * modules/bind (Depends-on): Likewise.
56967         * modules/btowc (Depends-on): Likewise.
56968         * modules/canonicalize-lgpl (Depends-on): Likewise.
56969         * modules/ceil (Depends-on): Likewise.
56970         * modules/ceilf (Depends-on): Likewise.
56971         * modules/ceill (Depends-on): Likewise.
56972         * modules/chdir-long (Depends-on): Likewise.
56973         * modules/chown (Depends-on): Likewise.
56974         * modules/close (Depends-on): Likewise.
56975         * modules/connect (Depends-on): Likewise.
56976         * modules/cosl (Depends-on): Likewise.
56977         * modules/dirfd (Depends-on): Likewise.
56978         * modules/dprintf (Depends-on): Likewise.
56979         * modules/dprintf-posix (Depends-on): Likewise.
56980         * modules/error (Depends-on): Likewise.
56981         * modules/euidaccess (Depends-on): Likewise.
56982         * modules/expl (Depends-on): Likewise.
56983         * modules/faccessat (Depends-on): Likewise.
56984         * modules/fchdir (Depends-on): Likewise.
56985         * modules/fclose (Depends-on): Likewise.
56986         * modules/fcntl (Depends-on): Likewise.
56987         * modules/fdopendir (Depends-on): Likewise.
56988         * modules/fflush (Depends-on): Likewise.
56989         * modules/floor (Depends-on): Likewise.
56990         * modules/floorf (Depends-on): Likewise.
56991         * modules/floorl (Depends-on): Likewise.
56992         * modules/fnmatch (Depends-on): Likewise.
56993         * modules/fopen (Depends-on): Likewise.
56994         * modules/fprintf-posix (Depends-on): Likewise.
56995         * modules/frexp (Depends-on): Likewise.
56996         * modules/frexp-nolibm (Depends-on): Likewise.
56997         * modules/frexpl (Depends-on): Likewise.
56998         * modules/frexpl-nolibm (Depends-on): Likewise.
56999         * modules/fseek (Depends-on): Likewise.
57000         * modules/fsusage (Depends-on): Likewise.
57001         * modules/ftell (Depends-on): Likewise.
57002         * modules/ftello (Depends-on): Likewise.
57003         * modules/futimens (Depends-on): Likewise.
57004         * modules/getcwd (Depends-on): Likewise.
57005         * modules/getcwd-lgpl (Depends-on): Likewise.
57006         * modules/getdelim (Depends-on): Likewise.
57007         * modules/getdomainname (Depends-on): Likewise.
57008         * modules/getgroups (Depends-on): Likewise.
57009         * modules/gethostname (Depends-on): Likewise.
57010         * modules/getline (Depends-on): Likewise.
57011         * modules/getlogin_r (Depends-on): Likewise.
57012         * modules/getopt-posix (Depends-on): Likewise.
57013         * modules/getpeername (Depends-on): Likewise.
57014         * modules/getsockname (Depends-on): Likewise.
57015         * modules/getsockopt (Depends-on): Likewise.
57016         * modules/getsubopt (Depends-on): Likewise.
57017         * modules/getusershell (Depends-on): Likewise.
57018         * modules/glob (Depends-on): Likewise.
57019         * modules/grantpt (Depends-on): Likewise.
57020         * modules/iconv_open (Depends-on): Likewise.
57021         * modules/iconv_open-utf (Depends-on): Likewise.
57022         * modules/inet_ntop (Depends-on): Likewise.
57023         * modules/inet_pton (Depends-on): Likewise.
57024         * modules/ioctl (Depends-on): Likewise.
57025         * modules/isapipe (Depends-on): Likewise.
57026         * modules/isfinite (Depends-on): Likewise.
57027         * modules/isinf (Depends-on): Likewise.
57028         * modules/lchown (Depends-on): Likewise.
57029         * modules/ldexpl (Depends-on): Likewise.
57030         * modules/link (Depends-on): Likewise.
57031         * modules/linkat (Depends-on): Likewise.
57032         * modules/listen (Depends-on): Likewise.
57033         * modules/logl (Depends-on): Likewise.
57034         * modules/lstat (Depends-on): Likewise.
57035         * modules/mbrlen (Depends-on): Likewise.
57036         * modules/mbrtowc (Depends-on): Likewise.
57037         * modules/mbsinit (Depends-on): Likewise.
57038         * modules/mbsnrtowcs (Depends-on): Likewise.
57039         * modules/mbsrtowcs (Depends-on): Likewise.
57040         * modules/mbtowc (Depends-on): Likewise.
57041         * modules/memcmp (Depends-on): Likewise.
57042         * modules/mkdir (Depends-on): Likewise.
57043         * modules/mkdtemp (Depends-on): Likewise.
57044         * modules/mkfifo (Depends-on): Likewise.
57045         * modules/mkfifoat (Depends-on): Likewise.
57046         * modules/mknod (Depends-on): Likewise.
57047         * modules/mkostemp (Depends-on): Likewise.
57048         * modules/mkostemps (Depends-on): Likewise.
57049         * modules/mkstemp (Depends-on): Likewise.
57050         * modules/mkstemps (Depends-on): Likewise.
57051         * modules/mktime (Depends-on): Likewise.
57052         * modules/nanosleep (Depends-on): Likewise.
57053         * modules/open (Depends-on): Likewise.
57054         * modules/openat (Depends-on): Likewise.
57055         * modules/perror (Depends-on): Likewise.
57056         * modules/poll (Depends-on): Likewise.
57057         * modules/popen (Depends-on): Likewise.
57058         * modules/posix_spawn (Depends-on): Likewise.
57059         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
57060         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
57061         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
57062         * modules/posix_spawnp (Depends-on): Likewise.
57063         * modules/pread (Depends-on): Likewise.
57064         * modules/printf-posix (Depends-on): Likewise.
57065         * modules/ptsname (Depends-on): Likewise.
57066         * modules/putenv (Depends-on): Likewise.
57067         * modules/pwrite (Depends-on): Likewise.
57068         * modules/readline (Depends-on): Likewise.
57069         * modules/readlink (Depends-on): Likewise.
57070         * modules/readlinkat (Depends-on): Likewise.
57071         * modules/recv (Depends-on): Likewise.
57072         * modules/recvfrom (Depends-on): Likewise.
57073         * modules/regex (Depends-on): Likewise.
57074         * modules/remove (Depends-on): Likewise.
57075         * modules/rename (Depends-on): Likewise.
57076         * modules/renameat (Depends-on): Likewise.
57077         * modules/rmdir (Depends-on): Likewise.
57078         * modules/round (Depends-on): Likewise.
57079         * modules/roundf (Depends-on): Likewise.
57080         * modules/roundl (Depends-on): Likewise.
57081         * modules/rpmatch (Depends-on): Likewise.
57082         * modules/select (Depends-on): Likewise.
57083         * modules/send (Depends-on): Likewise.
57084         * modules/sendto (Depends-on): Likewise.
57085         * modules/setenv (Depends-on): Likewise.
57086         * modules/setlocale (Depends-on): Likewise.
57087         * modules/setsockopt (Depends-on): Likewise.
57088         * modules/shutdown (Depends-on): Likewise.
57089         * modules/sigaction (Depends-on): Likewise.
57090         * modules/signbit (Depends-on): Likewise.
57091         * modules/sigprocmask (Depends-on): Likewise.
57092         * modules/sinl (Depends-on): Likewise.
57093         * modules/sleep (Depends-on): Likewise.
57094         * modules/snprintf (Depends-on): Likewise.
57095         * modules/snprintf-posix (Depends-on): Likewise.
57096         * modules/socket (Depends-on): Likewise.
57097         * modules/sprintf-posix (Depends-on): Likewise.
57098         * modules/sqrtl (Depends-on): Likewise.
57099         * modules/stat (Depends-on): Likewise.
57100         * modules/strchrnul (Depends-on): Likewise.
57101         * modules/strdup-posix (Depends-on): Likewise.
57102         * modules/strerror (Depends-on): Likewise.
57103         * modules/strerror_r-posix (Depends-on): Likewise.
57104         * modules/strndup (Depends-on): Likewise.
57105         * modules/strnlen (Depends-on): Likewise.
57106         * modules/strptime (Depends-on): Likewise.
57107         * modules/strsep (Depends-on): Likewise.
57108         * modules/strsignal (Depends-on): Likewise.
57109         * modules/strstr-simple (Depends-on): Likewise.
57110         * modules/strtod (Depends-on): Likewise.
57111         * modules/strtoimax (Depends-on): Likewise.
57112         * modules/strtok_r (Depends-on): Likewise.
57113         * modules/strtoumax (Depends-on): Likewise.
57114         * modules/symlink (Depends-on): Likewise.
57115         * modules/symlinkat (Depends-on): Likewise.
57116         * modules/tanl (Depends-on): Likewise.
57117         * modules/tcgetsid (Depends-on): Likewise.
57118         * modules/tmpfile (Depends-on): Likewise.
57119         * modules/trunc (Depends-on): Likewise.
57120         * modules/truncf (Depends-on): Likewise.
57121         * modules/truncl (Depends-on): Likewise.
57122         * modules/uname (Depends-on): Likewise.
57123         * modules/unlink (Depends-on): Likewise.
57124         * modules/unlockpt (Depends-on): Likewise.
57125         * modules/unsetenv (Depends-on): Likewise.
57126         * modules/usleep (Depends-on): Likewise.
57127         * modules/utimensat (Depends-on): Likewise.
57128         * modules/vasprintf (Depends-on): Likewise.
57129         * modules/vdprintf (Depends-on): Likewise.
57130         * modules/vdprintf-posix (Depends-on): Likewise.
57131         * modules/vfprintf-posix (Depends-on): Likewise.
57132         * modules/vprintf-posix (Depends-on): Likewise.
57133         * modules/vsnprintf (Depends-on): Likewise.
57134         * modules/vsnprintf-posix (Depends-on): Likewise.
57135         * modules/vsprintf-posix (Depends-on): Likewise.
57136         * modules/wcrtomb (Depends-on): Likewise.
57137         * modules/wcscasecmp (Depends-on): Likewise.
57138         * modules/wcscspn (Depends-on): Likewise.
57139         * modules/wcsdup (Depends-on): Likewise.
57140         * modules/wcsncasecmp (Depends-on): Likewise.
57141         * modules/wcsnrtombs (Depends-on): Likewise.
57142         * modules/wcspbrk (Depends-on): Likewise.
57143         * modules/wcsrtombs (Depends-on): Likewise.
57144         * modules/wcsspn (Depends-on): Likewise.
57145         * modules/wcsstr (Depends-on): Likewise.
57146         * modules/wcstok (Depends-on): Likewise.
57147         * modules/wcswidth (Depends-on): Likewise.
57148         * modules/wctob (Depends-on): Likewise.
57149         * modules/wctomb (Depends-on): Likewise.
57150         * modules/wctype (Depends-on): Likewise.
57151         * modules/wcwidth (Depends-on): Likewise.
57152         * modules/write (Depends-on): Likewise.
57154 2011-05-03  Bruno Haible  <bruno@clisp.org>
57156         Support for conditional dependencies.
57157         * doc/gnulib.texi (Module description): Document the syntax of
57158         conditional dependencies.
57159         * gnulib-tool: New option --conditional-dependencies.
57160         (func_usage): Document it.
57161         (cond_dependencies): New variable.
57162         (func_get_automake_snippet_conditional,
57163         func_get_automake_snippet_unconditional): New functions, extracted from
57164         func_get_automake_snippet.
57165         (func_get_automake_snippet): Use them.
57166         (sed_first_32_chars): New variable.
57167         (func_module_shellfunc_name): New function.
57168         (func_module_shellvar_name): New function.
57169         (func_module_conditional_name): New function.
57170         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
57171         func_cond_module_condition): New functions.
57172         (func_modules_transitive_closure): Add support for conditional
57173         dependencies.
57174         (func_emit_lib_Makefile_am): For a conditional module, enclose the
57175         conditional automake snippet in an automake conditional.
57176         (func_emit_autoconf_snippets): Emit shell functions that contain the
57177         code for conditional modules.
57178         (func_import, func_create_testdir): Update specification.
57180 2011-05-03  Eric Blake  <eblake@redhat.com>
57182         test-getaddrinfo: report error information
57183         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
57185 2011-05-03  Jim Meyering  <meyering@redhat.com>
57187         bootstrap: avoid build failure when $GZIP is set
57188         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
57189         program name.  If defined at all, it is supposed to list gzip options.
57190         Reported by Alan Curry in http://debbugs.gnu.org/8609
57192 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
57194         readme-release: new module with release instructions
57195         * modules/readme-release: New module.
57196         * top/README-release: New file, from coreutils, grep, diffutils.
57197         * MODULES.html.sh (Support for maintaining and releasing): Add it.
57199 2011-05-02  Eric Blake  <eblake@redhat.com>
57201         fflush: also replace fclose when fixing fflush
57202         * modules/fflush (Depends-on): Add fclose.
57203         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
57204         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
57205         memstreams with no backing fd.
57206         * doc/posix-functions/fclose.texi (fclose): Document the use of
57207         fflush module to fix the bug.
57208         * tests/test-fclose.c (main): Relax test when fclose is used in
57209         isolation.
57211         fclose: add some tests
57212         * modules/fclose-tests: New test module.
57213         * tests/test-fclose.c: New file.
57214         * doc/posix-functions/fclose.texi (fclose): Document the bug.
57216         fclose: reduced dependencies
57217         * modules/fclose (Depends-on): Switch from fflush/fseeko to
57218         simpler lseek.
57219         * lib/fclose.c (rpl_fclose): Likewise.
57220         Reported by Simon Josefsson.
57222         exit: drop remaining clients
57223         * modules/argmatch (Depends-on): Replace exit with stdlib.
57224         * modules/copy-file (Depends-on): Likewise.
57225         * modules/execute (Depends-on): Likewise.
57226         * modules/exitfail (Depends-on): Likewise.
57227         * modules/obstack (Depends-on): Likewise.
57228         * modules/pagealign_alloc (Depends-on): Likewise.
57229         * modules/pipe-filter-gi (Depends-on): Likewise.
57230         * modules/pipe-filter-ii (Depends-on): Likewise.
57231         * modules/savewd (Depends-on): Likewise.
57232         * modules/spawn-pipe (Depends-on): Likewise.
57233         * modules/wait-process (Depends-on): Likewise.
57234         * modules/xsetenv (Depends-on): Likewise.
57235         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
57236         * modules/git-merge-changelog (Depends-on): Likewise.
57237         * modules/long-options (Depends-on): Likewise.
57238         * modules/pt_chown (Depends-on): Likewise.
57239         * modules/sysexits (Depends-on): Likewise.
57241         freading: relax license from LGPLv3+ to LGPLv2+
57242         * modules/freading (License): Relax LGPL version.
57244 2011-05-02  Bruno Haible  <bruno@clisp.org>
57246         fchdir: Remove unused dependencies.
57247         * modules/fchdir (Depends-on): Remove include_next.
57249 2011-05-02  Bruno Haible  <bruno@clisp.org>
57251         gnulib-tool: Refactor.
57252         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
57253         from func_emit_autoconf_snippets.
57254         (func_emit_autoconf_snippets): Use it.
57256 2011-05-02  Simon Josefsson  <simon@josefsson.org>
57258         * NEWS: Document removal of 'exit'.
57259         * modules/exit: Remove file.
57261 2011-05-01  Bruno Haible  <bruno@clisp.org>
57263         Update DEPENDENCIES.
57264         * DEPENDENCIES (gettext): Recommend the newest release.
57265         Reported by Simon Josefsson.
57267 2011-05-01  Bruno Haible  <bruno@clisp.org>
57269         gnulib-tool: Reduce code duplication.
57270         * gnulib-tool (func_emit_autoconf_snippets): New function.
57271         (func_import, func_create_testdir): Use it.
57273 2011-04-30  Eric Blake  <eblake@redhat.com>
57275         fclose: don't fail on non-seekable input stream
57276         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
57277         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
57278         since fflush is allowed to fail in that case.
57280 2011-04-30  Bruno Haible  <bruno@clisp.org>
57282         dup3: cleanup
57283         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
57285 2011-04-30  Bruno Haible  <bruno@clisp.org>
57287         netdb: Make it work in C++ mode.
57288         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
57289         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
57290         module.
57291         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
57292         gl_MODULE_INDICATOR_FOR_TESTS.
57293         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
57294         * modules/netdb-c++-tests: New file.
57295         * tests/test-netdb-c++.cc: New file.
57297 2011-04-30  Bruno Haible  <bruno@clisp.org>
57299         New modules 'vfscanf', 'vscanf'.
57300         * modules/vfscanf: New file.
57301         * modules/vscanf: New file.
57302         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
57303         here.
57304         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
57305         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
57307 2011-04-30  Bruno Haible  <bruno@clisp.org>
57309         passfd: Add comments.
57310         * lib/passfd.c: Add comments about platforms.
57312 2011-04-30  Bruno Haible  <bruno@clisp.org>
57314         sys_uio: Make <sys/uio.h> self-contained.
57315         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
57316         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
57318 2011-04-30  Bruno Haible  <bruno@clisp.org>
57320         sys_socket: Ensure 'struct iovec' definition.
57321         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
57322         <sys/socket.h>.
57323         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
57325 2011-04-30  Bruno Haible  <bruno@clisp.org>
57327         sys_uio: Protect definition of 'struct iovec'.
57328         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
57329         it as a C struct.
57331 2011-04-30  Bruno Haible  <bruno@clisp.org>
57333         manywarnings: fix indentation
57334         * m4/manywarnings.m4: Indent by 2 spaces consistently.
57336 2011-04-30  Pádraig Brady  <P@draigBrady.com>
57338         manywarnings: add -Wno-missing-field-initializers if needed.
57339         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
57340         option if it's needed to allow initialization with { 0, }
57342 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
57344         announce-gen: cosmetic improvement
57345         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
57347 2011-04-29  Jim Meyering  <meyering@redhat.com>
57349         vc-list-files: indent with spaces, not TABs
57350         * build-aux/vc-list-files: Convert leading TABs to spaces,
57351         to match the style of most other files in gnulib.
57353         announce-gen: indent with spaces, not TABs
57354         * build-aux/announce-gen: Convert all TABs to spaces, to match
57355         the style of most other files in gnulib.
57357 2011-04-29  Eric Blake  <eblake@redhat.com>
57359         quotearg: avoid uninitialized variable use
57360         * lib/quotearg.c (quoting_options_from_style): Initialize
57361         remaining fields, and ensure that custom styles are only used via
57362         quoting_options rather than quoting_style.
57364 2011-04-29  Jim Meyering  <meyering@redhat.com>
57366         maint.mk: remove unused VC-tag variable
57367         * top/maint.mk (VC-tag): Remove unused variable.
57369 2011-04-29  Bruno Haible  <bruno@clisp.org>
57371         netdb: fix gai_strerror replacements
57372         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
57373         * modules/netdb: Substitute it.
57375 2011-04-29  Jim Meyering  <meyering@redhat.com>
57377         test-getcwd.c: avoid new set-but-not-used warning
57378         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
57379         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
57380         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
57381         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
57383         test-hash.c: avoid a new shadowing warning
57384         * tests/test-hash.c (main): Don't shadow "dup".
57386 2011-04-28  Eric Blake  <eblake@redhat.com>
57388         getaddrinfo: fix gai_strerror signature
57389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
57390         and work around mingw with UNICODE defined.
57391         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
57392         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
57393         * modules/netdb (Makefile.am): Substitute it.
57394         * lib/netdb.in.h (gai_strerror): Declare replacement.
57395         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
57396         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
57397         the fix.
57399         getsockopt: avoid compiler warning
57400         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
57401         Reported by Matthias Bolte.
57403         tests: drop unused link dependency
57404         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
57405         * modules/dirent-safer-tests (Makefile.am): Likewise.
57406         * modules/fdopendir-tests (Makefile.am): Likewise.
57407         * modules/mkfifoat-tests (Makefile.am): Likewise.
57408         * modules/openat-safer-tests (Makefile.am): Likewise.
57409         * modules/openat-tests (Makefile.am): Likewise.
57410         * modules/readlinkat-tests (Makefile.am): Likewise.
57411         * modules/symlinkat-tests (Makefile.am): Likewise.
57412         * modules/linkat-tests (Makefile.am): Likewise.
57413         (Depends-on): Switch to filenamecat-lgpl.
57414         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
57415         LIBINTL.
57416         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
57417         * tests/test-linkat.c (main): Don't require xalloc.
57419         hash, mgetgroups: drop xalloc dependency
57420         * lib/hash.c (includes): Adjust includes.
57421         * lib/mgetgroups.c (includes): Likewise.
57422         (xgetgroups): Move...
57423         * lib/xgetgroups.c: ...to new file.
57424         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
57425         * modules/xgetgroups: New file, split from...
57426         * modules/mgetgroups: ...here.
57427         (Depends-on): Add xalloc-oversized.
57428         * modules/hash (Depends-on): Likewise.
57429         * modules/hash-tests (Depends-on): Drop xalloc.
57430         (test_hash_LDADD): Drop unused library.
57431         * tests/test-hash.c (main): Break xalloc dependency.
57432         (includes): Drop unused include.
57434         xalloc-oversized: new module
57435         * modules/xalloc-oversized: New module.
57436         * modules/xalloc (Depends-on): Add it.
57437         * lib/xalloc.h (xalloc_oversized): Move...
57438         * lib/xalloc-oversized.h: ...into new file.
57440         utimecmp: drop dependency on xmalloc
57441         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
57442         due to memory pressure.
57443         * modules/utimecmp (Depends-on): Drop xalloc.
57445 2011-04-27  Eric Blake  <eblake@redhat.com>
57447         getcwd: fix mingw bugs
57448         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
57449         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
57450         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
57452 2011-04-27  Bruno Haible  <bruno@clisp.org>
57454         mkstemps: Ensure declaration on MacOS X 10.5.
57455         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
57456         * doc/glibc-functions/mkstemps.texi: Document header file problem on
57457         MacOS X.
57459 2011-04-27  Bruno Haible  <bruno@clisp.org>
57461         mkstemp: More documentation.
57462         * doc/posix-functions/mkstemp.texi: Document header file problem on
57463         MacOS X.
57465 2011-04-27  Bruno Haible  <bruno@clisp.org>
57467         mkstemp: Tweak configure message when cross-compiling.
57468         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
57469         result as a guess.
57471 2011-04-27  Bruno Haible  <bruno@clisp.org>
57473         clean-temp: Clarify what it does.
57474         * lib/clean-temp.h: Add more comments.
57475         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
57476         module.
57477         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
57478         * doc/glibc-functions/mkstemps.texi: Likewise.
57479         * doc/glibc-functions/mkostemps.texi: Likewise.
57481 2011-04-27  Eric Blake  <eblake@redhat.com>
57483         fchdir: avoid extra chdir and fix test
57484         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
57485         getcwd-lgpl.
57486         * lib/fchdir.c (get_name): Any absolute name will do; it does not
57487         have to be canonical.
57488         (canonicalize_file_name): Drop unused macro.
57489         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
57491         filenamecat-lgpl: fix licence
57492         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
57493         when it was first created.
57495         linkat, renameat: add missing dependency
57496         * modules/linkat (Depends-on): Require getcwd-lgpl.
57497         * modules/renameat (Depends-on): Likewise.
57499         tests: reduce dependencies
57500         * tests/test-linkat.c (main): Use lighter-weight getcwd.
57501         * tests/test-renameat.c (main): Likewise.
57502         * modules/linkat-tests (Depends-on): Relax dependency.
57503         * modules/renameat-tests (Depends-on): Likewise.
57504         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
57505         dependency explicit.
57507         save-cwd: reduce default dependency
57508         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
57509         * lib/save-cwd.c: Update comments.
57510         * NEWS: Document the semantic change.
57512         getcwd: enhance tests
57513         * tests/test-getcwd-lgpl.c: New file, taken from...
57514         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
57515         repeat long path stress tests from m4 probe.
57516         * modules/getcwd-lgpl-tests: New module.
57517         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
57518         * m4/getcwd-abort-bug.m4: Update comment.
57519         * m4/getcwd-path-max.m4: Likewise.
57521         getcwd-lgpl: new module
57522         * modules/getcwd-lgpl: New module.
57523         * lib/getcwd-lgpl.c: New file.
57524         * doc/posix-functions/getcwd.texi (getcwd): Document it.
57525         * MODULES.html.sh (lacking POSIX:2008): Likewise.
57526         * modules/getcwd (configure.ac): Set C witness.
57527         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
57529         getcwd: tweak comments
57530         * m4/getcwd-abort-bug.m4: Fix comments.
57531         * m4/getcwd-path-max.m4: Likewise.
57532         * m4/getcwd.m4: Likewise.
57534 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
57535         and Eric Blake  <eblake@redhat.com>
57537         mkstemp: replace if system version uses wrong permissions
57538         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
57539         read/write mode bits set in file created by mkstemp.
57540         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
57542 2011-04-27  Eric Blake  <eblake@redhat.com>
57544         passfd: avoid compiler warning
57545         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
57546         Reported by Laine Stump.
57548 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
57550         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
57551         required by the NetBSD (and perhaps other 4.4BSD derived) join.
57553 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
57554         and Eric Blake  <eblake@redhat.com>
57556         mkstemp: mention clean-temp module
57557         * lib/mkstemp.c: Add comment.
57558         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
57560 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
57562         inttypes: also provide default values for 32-bit tests
57563         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
57564         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
57566 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
57568         strtoumax: remove dependency on strtoimax
57569         This is like the strtoull change of yesterday.
57570         * modules/strtoumax (Files): Add lib/strtoimax.c.
57571         (Depends-on): Remove strtoimax and add verify.
57573         inttypes-incomplete: new module
57574         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
57575         all but the PRI* and SCN* parts of gl_INTTYPES_H.
57576         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
57577         of gl_INTTYPES_H.
57578         (gl_INTTYPES_H): Rewrite in terms of these new macros.
57579         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
57580         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
57581         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
57582         * modules/strtoumax, modules/xstrtol (Depends-on):
57583         Depend on inttypes-incomplete, not inttypes.
57584         * modules/inttypes-incomplete: New module, containing the contents
57585         of the old modules/inttypes module, except that the Files: section
57586         omits m4/inttypes-pri.m4, and the configure.ac section invokes
57587         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
57588         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
57589         (Depends-on): Depend only on inttypes-incomplete.
57590         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
57592         inttypes: omit now-redundant strtoimax and strtoumax work
57593         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
57594         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
57596         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
57597         This supports apps that need pointers to strtoimax and strtoumax,
57598         and ports to HP-UX 11.00 64.bit, which has macros that expand to
57599         nonexistent functions.  See
57600         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
57601         et seq.
57602         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
57603         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
57604         a macro.
57605         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57607 2011-04-25  Simon Josefsson  <simon@josefsson.org>
57609         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
57611 2011-04-25  Bruno Haible  <bruno@clisp.org>
57613         strtol, strtoul: Mark modules as obsolete.
57614         * modules/strtol (Status, Notice): New sections.
57615         * modules/strtoul (Status, Notice): New sections.
57617 2011-04-25  Bruno Haible  <bruno@clisp.org>
57619         strtod: Remove check for strtod, unless supporting old platforms.
57620         * modules/strtod-obsolete: New file.
57621         * m4/strtod-obsolete.m4: New file.
57622         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
57623         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
57624         * modules/strtod (Depends-on): Add strtod-obsolete.
57625         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
57627 2011-04-25  Bruno Haible  <bruno@clisp.org>
57629         strcase: Make module obsolete.
57630         * modules/strcase (Status, Notice): New sections.
57632 2011-04-25  Bruno Haible  <bruno@clisp.org>
57634         dup2: Remove check for dup2, unless supporting old obsolete platforms.
57635         * modules/dup2-obsolete: New file.
57636         * m4/dup2-obsolete.m4: New file.
57637         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
57638         gl_FUNC_DUP2_OBSOLETE is not also defined.
57639         * modules/dup2 (Depends-on): Add dup2-obsolete.
57640         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
57642 2011-04-25  Bruno Haible  <bruno@clisp.org>
57644         strnlen: Avoid memchr related link error on old obsolete platforms.
57645         * modules/memchr-obsolete: New file.
57646         * m4/memchr-obsolete.m4: New file.
57647         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
57648         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
57649         * modules/memchr (Depends-on): Add memchr-obsolete.
57650         * modules/strnlen (Depends-on): Likewise.
57651         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
57653 2011-04-25  Jim Meyering  <meyering@redhat.com>
57655         maint.mk: makefile_at_at_check extend and clean up
57656         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
57657         in addition to */Makefile.am.
57658         Exempt legitimate uses of @VAR@ notation, e.g.,
57659         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
57660         Remove obsolete coreutils-specific comment.
57661         Prompted by discussion here:
57662         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
57664 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57666         strtoul: remove dependency on strtol
57667         This is so that 'configure' need not check for strtol merely because
57668         the application needs strtoul.
57669         * modules/strtoul (Files): Add lib/strtol.c.
57670         (Depends-on): Remove strtol.
57672         strtoull: remove dependency on strtoul
57673         This is like the strtoll change.
57674         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
57675         (Depends-on): Remove strtoul.
57677         strtoll: remove dependency on strtol
57678         This is so that 'configure' need not check for strtol merely because
57679         the application needs strtoll.
57680         * modules/strtoll (Files): Add lib/strtol.c.
57681         (Depends-on): Remove strtol.
57683 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57685         inttypes: Move some configure check to module 'imaxdiv'.
57686         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
57687         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
57688         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
57690 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57692         inttypes: Move some configure check to module 'imaxabs'.
57693         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
57694         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
57695         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
57697 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57699         inttypes: Remove configure tests that are not needed since 2009-12-31.
57700         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
57701         gl_cv_header_working_inttypes_h.
57703 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57705         * modules/strnlen (Depends-on): Remove memchr.
57706         The strnlen implementation doesn't need the memchr module's fixes; see
57707         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
57709         strtol: remove dependency on wchar
57710         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
57711         * modules/strtol (Depends-on): Remove wchar.
57713 2011-04-21  Eric Blake  <eblake@redhat.com>
57715         passfd: fix test regression on Linux
57716         * modules/passfd-tests (configure.ac): Correct socketpair check.
57718         passfd: speed up configure and drop unused code
57719         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
57720         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
57721         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
57722         Instead of probing at configure for unix_scm_rights_bsd44_way,
57723         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
57724         check to a struct member probe.
57725         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
57726         (sendfd, recvfd): Update preprocessor checks.
57727         * modules/passfd (Files): Reflect rename, and drop unused file.
57728         (Depends-on): Drop unused dependency.
57730         passfd: allow compilation on mingw
57731         * modules/sys_socket (Depends-on): Add sys_uio.
57732         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
57733         iovec and a minimal struct msghdr.
57734         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
57735         * tests/test-sys_socket.c (main): Enhance test.
57736         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
57737         guaranteed to provide what we need.
57738         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
57739         * modules/passfd-tests (Depends-on): Add sys_wait.
57740         * tests/test-passfd.c (main): Skip test on mingw, for now.
57741         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
57742         partial 'struct msghdr' implementation.
57744         sys_uio: new module
57745         * modules/sys_uio: New module.
57746         * modules/sys_uio-tests: Likewise.
57747         * lib/sys_uio.in.h: New file.
57748         * m4/sys_uio_h.m4: Likewise.
57749         * tests/test-sys_uio.c: Likewise.
57750         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
57751         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
57753 2011-04-20  Jim Meyering  <meyering@redhat.com>
57755         useless-if-before-free: avoid false-positive
57756         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
57757         disjunct so that it too requires a terminating ";".  Without that,
57758         this script would identify as useless one statement from gcc that
57759         was not:
57760           if (aligned_ptr)
57761             free (((void **) aligned_ptr) [-1]);
57763 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
57765         doc: update users.txt.
57766         * users.txt: Add barcode.
57768 2011-04-19  Bruno Haible  <bruno@clisp.org>
57770         ioctl: Remove link dependency on native Windows.
57771         * lib/fd-hook.h: Renamed from lib/close-hook.h.
57772         (gl_close_fn, gl_ioctl_fn): New types.
57773         (struct fd_hook): Renamed from struct close_hook. Change type of
57774         private_close_fn field. Add private_ioctl_fn field.
57775         (close_hook_fn): Add parameter for primary close method.
57776         (execute_close_hooks, execute_all_close_hooks): Likewise.
57777         (ioctl_hook_fn): New type.
57778         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
57779         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57780         argument.
57781         (unregister_fd_hook): Renamed from unregister_close_hook.
57782         * lib/fd-hook.c: Renamed from lib/close-hook.c.
57783         Don't include <unistd.h>.
57784         (close): Remove undef.
57785         (anchor): Update.
57786         (execute_close_hooks): Add argument for primary close method.
57787         (execute_all_close_hooks): Likewise.
57788         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
57789         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57790         argument. Allow each argument to be NULL.
57791         (unregister_fd_hook): Renamed from unregister_close_hook.
57792         * lib/close.c (rpl_close): Pass 'close' function pointer to
57793         execute_all_close_hooks.
57794         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
57795         (primary_ioctl): New function.
57796         (ioctl): Don't call ioctlsocket here. Instead, call
57797         execute_all_ioctl_hooks.
57798         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
57799         close method.
57800         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
57801         (fd_sockets_hook): Renamed from close_sockets_hook.
57802         (gl_sockets_startup, gl_sockets_cleanup): Update.
57803         * modules/fd-hook: Renamed from modules/close-hook. Update.
57804         * modules/close (Depends-on): Add fd-hook, remove close-hook.
57805         * modules/sockets (Depends-on): Likewise.
57806         * modules/ioctl (Depends-on): Add fd-hook.
57807         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
57808         GNULIB_SOCKET.
57810 2011-04-19  Bruno Haible  <bruno@clisp.org>
57812         Move the support of O_NONBLOCK in open() to the 'open' module.
57813         * modules/nonblocking (Depends-on): Remove 'open'.
57814         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
57815         gl_cv_have_open_O_NONBLOCK.
57816         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
57817         O_NONBLOCK support.
57818         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
57820 2011-04-17  Bruno Haible  <bruno@clisp.org>
57822         pipe2: Simplify code.
57823         * lib/pipe2.c (pipe2): Reduce code duplication.
57825 2011-04-17  Bruno Haible  <bruno@clisp.org>
57827         nonblocking: Add comment.
57828         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
57830 2011-04-17  Bruno Haible  <bruno@clisp.org>
57832         nonblocking: Add tests for sockets.
57833         * tests/test-nonblocking-socket.sh: New file.
57834         * tests/test-nonblocking-socket-main.c: New file.
57835         * tests/test-nonblocking-socket-child.c: New file.
57836         * tests/test-nonblocking-socket.h: New file.
57837         * tests/socket-server.h: New file.
57838         * tests/socket-client.h: New file.
57839         * modules/nonblocking-socket-tests: New file.
57840         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
57842 2011-04-17  Bruno Haible  <bruno@clisp.org>
57844         nonblocking: Add tests for pipes.
57845         * tests/test-nonblocking-pipe.sh: New file.
57846         * tests/test-nonblocking-pipe-main.c: New file.
57847         * tests/test-nonblocking-pipe-child.c: New file.
57848         * tests/test-nonblocking-pipe.h: New file.
57849         * tests/test-nonblocking-writer.h: New file.
57850         * tests/test-nonblocking-reader.h: New file.
57851         * tests/test-nonblocking-misc.h: New file.
57852         * modules/nonblocking-pipe-tests: New file.
57853         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
57855 2011-04-16  Bruno Haible  <bruno@clisp.org>
57857         gettext: Clarify the needed programmer actions.
57858         * modules/gettext (Notice): New field.
57859         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57861 2011-04-16  Bruno Haible  <bruno@clisp.org>
57863         strchrnul: Tweak last commit.
57864         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
57865         bug.
57866         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
57867         as in _GL_FUNCDECL_SYS.
57868         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
57869         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
57871 2011-04-15  Eric Blake  <eblake@redhat.com>
57873         strchrnul: work around cygwin bug
57874         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
57875         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
57876         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
57877         * modules/string (Makefile.am): Substitute it.
57878         * lib/string.in.h (strchrnul): Use it.
57880 2011-04-15  Bruno Haible  <bruno@clisp.org>
57882         Don't require lib/stdio-write.c when only module 'stdio' is used.
57883         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
57884         invocation.
57885         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
57887 2011-04-14  Bruno Haible  <bruno@clisp.org>
57889         Support non-blocking pipe I/O in read() on native Windows.
57890         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
57891         (read): New declaration.
57892         * lib/read.c: New file.
57893         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
57894         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
57895         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
57896         vscanf): New declarations.
57897         * lib/stdio-read.c: New file.
57898         * m4/read.m4: New file.
57899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
57900         REPLACE_READ.
57901         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
57902         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57903         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
57904         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
57905         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
57906         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57907         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57908         * modules/read: New file.
57909         * modules/nonblocking (Files): Add lib/stdio-read.c.
57910         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
57911         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
57912         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57913         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57914         * modules/pread (Depends-on): Add read.
57915         * modules/safe-read (Depends-on): Likewise.
57916         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
57917         gets, scanf, vfscanf, vscanf): Verify signatures.
57918         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
57919         problem with non-blocking pipes.
57920         * doc/posix-functions/fgetc.texi: Likewise.
57921         * doc/posix-functions/fgets.texi: Likewise.
57922         * doc/posix-functions/fread.texi: Likewise.
57923         * doc/posix-functions/fscanf.texi: Likewise.
57924         * doc/posix-functions/getc.texi: Likewise.
57925         * doc/posix-functions/getchar.texi: Likewise.
57926         * doc/posix-functions/gets.texi: Likewise.
57927         * doc/posix-functions/scanf.texi: Likewise.
57928         * doc/posix-functions/vfscanf.texi: Likewise.
57929         * doc/posix-functions/vscanf.texi: Likewise.
57931 2011-04-14  Bruno Haible  <bruno@clisp.org>
57933         Support non-blocking pipe I/O in write() on native Windows.
57934         * lib/write.c (rpl_write): Split a write request that failed merely
57935         because the byte count was larger than the pipe buffer's size.
57936         * doc/posix-functions/write.texi: Mention the problem with large byte
57937         counts.
57939 2011-04-14  Bruno Haible  <bruno@clisp.org>
57941         wchar: Ensure that wchar_t gets defined on uClibc.
57942         * lib/wchar.in.h: On uClibc, include <stddef.h>.
57943         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
57945 2011-04-13  Bruno Haible  <bruno@clisp.org>
57947         safe-write, full-read: Avoid unnecessary compilation units.
57948         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
57949         (Depends-on): Remove safe-read. Add ssize_t.
57950         * modules/full-read (Files): Add lib/full-write.c.
57951         (Depends-on): Add full-write.
57953 2011-04-13  Bruno Haible  <bruno@clisp.org>
57955         Support non-blocking pipe I/O and SIGPIPE in pwrite().
57956         * modules/pwrite (Depends-on): Add 'write'.
57958 2011-04-13  Bruno Haible  <bruno@clisp.org>
57960         Support non-blocking pipe I/O in write() on native Windows.
57961         * lib/unistd.in.h (write): Enable replacement also if
57962         GNULIB_UNISTD_H_NONBLOCKING is 1.
57963         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
57964         (rpl_write): When failing to write on a non-blocking pipe, change
57965         errno from ENOSPC to EAGAIN.
57966         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
57967         putchar, puts, vfprintf, vprintf): Enable replacement also if
57968         GNULIB_STDIO_H_NONBLOCKING is 1.
57969         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
57970         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
57971         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
57972         CALL_WITH_SIGPIPE_EMULATION.
57973         (CALL_WITH_SIGPIPE_EMULATION): Use them.
57974         * m4/nonblocking.m4: New file.
57975         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
57976         for non-blocking I/O support.
57977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57978         GNULIB_UNISTD_H_NONBLOCKING.
57979         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
57980         required for non-blocking I/O support.
57981         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
57982         * modules/nonblocking (Files): Add m4/nonblocking.m4,
57983         lib/stdio-write.c, m4/asm-underscore.m4.
57984         (Depends-on): Add stdio, unistd.
57985         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
57986         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
57987         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
57988         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
57989         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
57990         problem with non-blocking pipes.
57991         * doc/posix-functions/fputc.texi: Likewise.
57992         * doc/posix-functions/fputs.texi: Likewise.
57993         * doc/posix-functions/fwrite.texi: Likewise.
57994         * doc/posix-functions/printf.texi: Likewise.
57995         * doc/posix-functions/putc.texi: Likewise.
57996         * doc/posix-functions/putchar.texi: Likewise.
57997         * doc/posix-functions/puts.texi: Likewise.
57998         * doc/posix-functions/vfprintf.texi: Likewise.
57999         * doc/posix-functions/vprintf.texi: Likewise.
58000         * doc/posix-functions/write.texi: Likewise.
58002 2011-04-10  Jim Meyering  <meyering@redhat.com>
58004         maint.mk: prohibit doubled words
58005         Detect them also when they're separated by a newline.
58006         There are 3 ways to customize it:
58007           - disable the test on a per file basis, as usual with rules using
58008             $(VC_LIST_EXCEPT)
58009           - replace the default doubled-word-selecting regexp (affects all files)
58010           - ignore a particular file-vs-doubled-word match
58011         I nearly used that last one to ignore the "is is" match in
58012         coreutils' NEWS file, since the text was "ls -is is ..."
58013         To do that, I would have added this line to cfg.mk:
58014           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
58015         but it would have ignored any "is is" match in NEWS.
58016         Low probability, but still...
58017         Instead, I changed the text, slightly:
58018           -  ls -is is now consistent with ls -lis in ignoring values returned
58019           +  "ls -is" is now consistent with ls -lis in ignoring values returned
58020         * top/maint.mk (prohibit_double_word_RE_): Provide default.
58021         (prohibit_doubled_word_): Define.
58022         (sc_prohibit_doubled_word): New rule.
58023         (sc_prohibit_the_the): Remove.  Subsumed by the above.
58025 2011-04-10  Jim Meyering  <meyering@redhat.com>
58027         maint: fix doubled-word typo in comment
58028         * m4/gethostname.m4: s/is is/it is/
58029         * m4/getdomainname.m4: Likewise.
58031 2011-04-10  Jim Meyering  <meyering@redhat.com>
58033         maint: remove doubled word: s/it it/it/
58034         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
58036 2011-04-10  Jim Meyering  <meyering@redhat.com>
58038         maint.mk: remove useless semicolon and backslash
58039         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
58040         semicolon and backslash.
58042 2011-04-10  Bruno Haible  <bruno@clisp.org>
58044         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
58045         * modules/stdint-tests (Depends-on): Add wchar.
58047 2011-04-10  Jim Meyering  <meyering@redhat.com>
58049         maint: remove doubled words in comments, e.g., s/a a/a/
58050         * lib/strptime.c (day_of_the_week): s/the the/the/
58051         * tests/test-chown.h (test_chown): s/a a/a/
58053         test-chown.h: correct a cast
58054         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
58055         when the destination is a stat.st_gid.
58057 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
58059         getaddrinfo: Fix test for sa_len member.
58060         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
58061         include <sys/types.h> before <sys/socket.h>.
58063 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
58065         maint: change "can not" to "cannot"
58066         * doc/posix-functions/iconv.texi (iconv): This one crossed line
58067         boundaries.
58069 2011-04-09  Jim Meyering  <meyering@redhat.com>
58071         maint: change "a a" to "a"
58072         * tests/test-lchown.h (test_lchown): s/a a/a/
58074         maint.mk: prohibit \<the the\>
58075         * top/maint.mk (sc_prohibit_the_the): New rule.
58077         maint: fix "the the" in comment
58078         * lib/count-one-bits.h: s/the the/the/
58080         maint: change "can not" to "cannot"
58081         But do not change the occurrences in maintain.texi or in
58082         build-aux/po/Makefile.in.in, which I presume comes from gettext.
58083         * doc/gnulib-tool.texi: s/can not/cannot/
58084         * doc/posix-functions/accept.texi (accept): Likewise.
58085         * doc/posix-functions/socket.texi (socket): Likewise.
58086         * lib/mbrtowc.c: Likewise.
58088         maint.mk: prohibit use of "can not"
58089         * top/maint.mk (sc_prohibit_can_not): New rule.
58090         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
58092 2011-04-09  Bruno Haible  <bruno@clisp.org>
58094         careadlinkat: Guard against misuse of careadlinkatcwd.
58095         * lib/careadlinkat.c: Include <stdlib.h>.
58096         (careadlinkatcwd): Check that the fd argument is as expected.
58098 2011-04-09  Bruno Haible  <bruno@clisp.org>
58100         careadlinkat: Use common coding style.
58101         * lib/careadlinkat.c: Move gnulib includes after system includes.
58103 2011-04-09  Bruno Haible  <bruno@clisp.org>
58105         careadlinkat: Clarify specification.
58106         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
58107         (careadlinkatcwd): Add comment.
58108         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
58110 2011-04-09  Bruno Haible  <bruno@clisp.org>
58112         areadlinkat: Avoid link error on many platforms.
58113         * modules/areadlinkat (Depends-on): Add areadlink.
58115 2011-04-09  Bruno Haible  <bruno@clisp.org>
58117         allocator, careadlinkat: Fix double-inclusion guard.
58118         * lib/allocator.h: Fix double-inclusion guard.
58119         * lib/careadlinkat.h: Likewise.
58121 2011-04-09  Bruno Haible  <bruno@clisp.org>
58123         relocatable-prog-wrapper: Update after module 'areadlink' changed.
58124         * lib/relocwrapper.c: Update dependencies hierarchy.
58125         * build-aux/install-reloc: Update list of files to be compiled.
58126         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
58127         lib/allocator.[hc].
58129 2011-04-08  Eric Blake  <eblake@redhat.com>
58131         strftime: silence gnulib-tool warning
58132         * modules/strftime-tests (Depends-on): Drop automatic dependency.
58134 2011-04-08  Bruno Haible  <bruno@clisp.org>
58136         verify: Fix syntax error with GCC 4.6 in C++ mode.
58137         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
58138         (HAVE_STATIC_ASSERT): New macro.
58139         (verify_true, verify): Use 'static_assert' if it is supported and
58140         '_Static_assert' is not supported.
58142 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
58144         allocator: New module.
58145         * modules/allocator, lib/allocator.c: New files.
58146         * lib/allocator.h (stdlib_allocator): New decl.
58147         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
58148         Remove.  Do not include <stdlib.h>.
58149         (careadlinkat): Use stdlib_allocator instead of rolling our own.
58150         * modules/careadlinkat (Files): Remove lib/allocator.h.
58151         (Depends-on): Add allocator.
58153         stdlib: let modules use system malloc, realloc
58154         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
58155         if !_GL_USE_STDLIB_ALLOC.
58156         (malloc, realloc): Limit this change to a smaller scope.
58158         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
58159         (malloc, realloc): Don't #undef; no longer needed.
58160         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
58161         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
58162         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
58163         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
58164         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
58165         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
58166         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
58167         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
58169         careadlinkat: rename members to avoid problem
58170         * lib/allocator.h (struct allocator): Rename members from
58171         malloc/realloc to allocate/reallocate, to avoid problems if malloc
58172         and realloc are #define'd.  Reported by Eric Blake in
58173         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
58174         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
58176 2011-04-08  Eric Blake  <eblake@redhat.com>
58178         nonblocking: reduce dependency
58179         * tests/test-nonblocking.c: Only test sockets when in use.
58180         * modules/nonblocking-tests (Depends-on): Drop socket.
58181         (Makefile.am): Link even if sockets are not present.
58182         * modules/pipe2-tests (Makefile.am): Likewise.
58183         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
58185         pipe2: fix O_NONBLOCK support on mingw
58186         * modules/pipe2 (Depends-on): Add nonblocking.
58187         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
58188         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
58189         * tests/test-nonblocking.c (main): Likewise.
58190         * modules/pipe2-tests (Makefile.am): Avoid link failure.
58192         fcntl-h: fix O_ACCMODE on cygwin
58193         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
58194         * lib/fcntl.in.h (O_ACCMODE): Fix it.
58196         pipe-filter: drop O_NONBLOCK workarounds
58197         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
58198         * modules/pipe-filter-ii (Depends-on): Likewise.
58199         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
58201         nonblocking: provide O_NONBLOCK for mingw
58202         * modules/nonblocking (Depends-on): Add open.
58203         (configure.ac): Set new witness macro.
58204         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
58205         * modules/fcntl-h (Makefile.am): Substitute it.
58206         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
58207         nonblocking module is in use.
58208         * lib/nonblocking.c: Adjust portability test.
58209         * lib/open.c (open): Don't let native open see gnulib flag.
58210         * tests/test-fcntl-h.c (main): Enhance test.
58211         * tests/test-open.h (test_open): Likewise.
58212         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
58214         careadlinkat: fix compilation error on mingw
58215         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
58216         within struct allocator.
58218 2011-04-06  Eric Blake  <eblake@redhat.com>
58220         binary-io: relicense under LGPLv2+
58221         * modules/binary-io (License): Relax to LGPLv2+.
58222         Requested for libvirt, and required by pipe2.
58224 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
58226         verify: use _Static_assert if available
58227         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
58228         (verify_true, verify): Use it if available.  This generates better
58229         diagnostics with GCC 4.6.0 and later.
58231 2011-04-05  Bruno Haible  <bruno@clisp.org>
58233         Remove leftover generated .h files after config.status changed.
58235         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
58236         GL_GENERATE_ALLOCA_H.
58237         * modules/alloca-opt (Makefile.am): Remove alloca.h if
58238         GL_GENERATE_ALLOCA_H evaluates to false.
58240         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
58241         GL_GENERATE_ARGZ_H.
58242         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
58243         evaluates to false.
58245         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
58246         GL_GENERATE_BYTESWAP_H.
58247         * modules/byteswap (Makefile.am): Remove byteswap.h if
58248         GL_GENERATE_BYTESWAP_H evaluates to false.
58250         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
58251         GL_GENERATE_ERRNO_H.
58252         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
58253         evaluates to false.
58255         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
58256         GL_GENERATE_FLOAT_H.
58257         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
58258         evaluates to false.
58260         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
58261         GL_GENERATE_FNMATCH_H.
58262         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
58263         GL_GENERATE_FNMATCH_H evaluates to false.
58265         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
58266         GL_GENERATE_GLOB_H.
58267         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
58268         evaluates to false.
58270         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
58271         automake conditional GL_GENERATE_ICONV_H.
58272         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
58273         evaluates to false.
58275         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
58276         GL_GENERATE_NETINET_IN_H.
58277         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
58278         GL_GENERATE_NETINET_IN_H evaluates to false.
58280         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
58281         conditional GL_GENERATE_PTHREAD_H.
58282         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
58283         * modules/pthread (Makefile.am): Remove pthread.h if
58284         GL_GENERATE_PTHREAD_H evaluates to false.
58286         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
58287         GL_GENERATE_SCHED_H.
58288         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
58289         evaluates to false.
58291         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
58292         conditional GL_GENERATE_SELINUX_CONTEXT_H.
58293         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
58294         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
58296         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
58297         GL_GENERATE_STDARG_H.
58298         * modules/stdarg (Makefile.am): Remove stdarg.h if
58299         GL_GENERATE_STDARG_H evaluates to false.
58301         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
58302         GL_GENERATE_STDBOOL_H.
58303         * modules/stdbool (Makefile.am): Remove stdbool.h if
58304         GL_GENERATE_STDBOOL_H evaluates to false.
58306         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
58307         conditional GL_GENERATE_STDDEF_H.
58308         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
58309         * modules/stddef (Makefile.am): Remove stddef.h if
58310         GL_GENERATE_STDDEF_H evaluates to false.
58312         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
58313         GL_GENERATE_STDINT_H.
58314         * modules/stdint (Makefile.am): Remove stdint.h if
58315         GL_GENERATE_STDINT_H evaluates to false.
58317         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
58318         GL_GENERATE_SYSEXITS_H.
58319         * modules/sysexits (Makefile.am): Remove sysexits.h if
58320         GL_GENERATE_SYSEXITS_H evaluates to false.
58322         Reported by Karl Berry and Ralf Wildenhues.
58324 2011-04-05  Bruno Haible  <bruno@clisp.org>
58326         Ensure to rebuild generated .h files when config.status has changed.
58327         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
58328         config.status.
58329         * modules/ctype (Makefile.am): Likewise.
58330         * modules/dirent (Makefile.am): Likewise.
58331         * modules/errno (Makefile.am): Likewise.
58332         * modules/fcntl-h (Makefile.am): Likewise.
58333         * modules/float (Makefile.am): Likewise.
58334         * modules/getopt-posix (Makefile.am): Likewise.
58335         * modules/glob (Makefile.am): Likewise.
58336         * modules/iconv-h (Makefile.am): Likewise.
58337         * modules/inttypes (Makefile.am): Likewise.
58338         * modules/langinfo (Makefile.am): Likewise.
58339         * modules/locale (Makefile.am): Likewise.
58340         * modules/math (Makefile.am): Likewise.
58341         * modules/netdb (Makefile.am): Likewise.
58342         * modules/netinet_in (Makefile.am): Likewise.
58343         * modules/poll-h (Makefile.am): Likewise.
58344         * modules/pthread (Makefile.am): Likewise.
58345         * modules/pty (Makefile.am): Likewise.
58346         * modules/sched (Makefile.am): Likewise.
58347         * modules/search (Makefile.am): Likewise.
58348         * modules/selinux-h (Makefile.am): Likewise.
58349         * modules/signal (Makefile.am): Likewise.
58350         * modules/spawn (Makefile.am): Likewise.
58351         * modules/stdarg (Makefile.am): Likewise.
58352         * modules/stdbool (Makefile.am): Likewise.
58353         * modules/stddef (Makefile.am): Likewise.
58354         * modules/stdint (Makefile.am): Likewise.
58355         * modules/stdio (Makefile.am): Likewise.
58356         * modules/stdlib (Makefile.am): Likewise.
58357         * modules/string (Makefile.am): Likewise.
58358         * modules/strings (Makefile.am): Likewise.
58359         * modules/sys_file (Makefile.am): Likewise.
58360         * modules/sys_ioctl (Makefile.am): Likewise.
58361         * modules/sys_select (Makefile.am): Likewise.
58362         * modules/sys_socket (Makefile.am): Likewise.
58363         * modules/sys_stat (Makefile.am): Likewise.
58364         * modules/sys_time (Makefile.am): Likewise.
58365         * modules/sys_times (Makefile.am): Likewise.
58366         * modules/sys_utsname (Makefile.am): Likewise.
58367         * modules/sys_wait (Makefile.am): Likewise.
58368         * modules/sysexits (Makefile.am): Likewise.
58369         * modules/termios (Makefile.am): Likewise.
58370         * modules/time (Makefile.am): Likewise.
58371         * modules/unistd (Makefile.am): Likewise.
58372         * modules/wchar (Makefile.am): Likewise.
58373         * modules/wctype-h (Makefile.am): Likewise.
58374         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
58376 2011-04-05  Bruno Haible  <bruno@clisp.org>
58378         pipe2: Relicense under LGPLv2+.
58379         * modules/pipe2 (License): Change to LGPLv2+.
58380         Requested by Eric Blake, for libvirt.
58382 2011-04-05  Bruce Korb  <bkorb@gnu.org>
58384         bootstrap: compute gnulib_extra_files after updating build_aux
58385         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
58386         change build_aux or also supply gnulib_extra_files.  Handle correctly.
58388 2011-04-05  Eric Blake  <eblake@redhat.com>
58390         bootstrap: preserve git whitelist item sorting
58391         * build-aux/bootstrap (sort_patterns): New function.
58392         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
58394 2011-04-05  Simon Josefsson  <simon@josefsson.org>
58396         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
58397         sc_space_tab check.
58399 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
58401         areadlink, areadlinkat: rewrite in terms of careadlinkat
58402         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
58403         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
58404         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
58405         (malloc, realloc): Remove #undefs.
58406         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
58407         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
58408         readlink, ssize_t, stdint, unistd.
58409         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
58410         areadlink, stdint.
58412         careadlinkat: new module
58413         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
58414         * modules/careadlinkat: New files, written by me with
58415         a review and feedback from Ben Pfaff in
58416         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
58418 2011-04-01  Bruno Haible  <bruno@clisp.org>
58420         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
58421         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
58422         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
58423         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
58424         Reported by Bruce Korb <bruce.korb@gmail.com>.
58426 2011-04-01  Bruno Haible  <bruno@clisp.org>
58428         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
58429         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
58430         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
58431         * modules/wcpcpy (Depends-on): Add extensions.
58432         * modules/wcpncpy (Depends-on): Likewise.
58433         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
58434         systems.
58435         * doc/posix-functions/wcpncpy.texi: Likewise.
58436         * doc/posix-functions/wcwidth.texi: Likewise.
58438 2011-03-31  Eric Blake  <eblake@redhat.com>
58440         nonblocking: fix mingw test failures
58441         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
58442         non-blocking flag on regular file.
58443         (get_nonblocking_flag): Set errno on invalid fd.
58444         * tests/test-nonblocking.c (main): Avoid test failure on
58445         directories if fchdir is not active.
58446         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
58448 2011-03-31  Bruno Haible  <bruno@clisp.org>
58450         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
58451         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
58452         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
58453         Reported by Simon Josefsson <simon@josefsson.org>.
58455 2011-03-31  Bruno Haible  <bruno@clisp.org>
58456         and Eric Blake  <eblake@redhat.com>
58458         nonblocking: new module
58459         * modules/nonblocking: New module.
58460         * modules/nonblocking-tests: Likewise.
58461         * lib/nonblocking.h: New file.
58462         * lib/nonblocking.c: Likewise.
58463         * tests/test-nonblocking.c: New test.
58464         * lib/ioctl.c (ioctl) [mingw]: Update comment.
58466 2011-03-30  Bruno Haible  <bruno@clisp.org>
58468         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
58469         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
58470         instead of 'printf' format for GCC >= 4.4.
58471         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
58472         (fprintf, printf, vfprintf, vprintf): Declare with
58473         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
58474         the system's vfprintf() function.
58475         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
58477 2011-03-30  Eric Blake  <eblake@redhat.com>
58479         passfd: fix scoping bug
58480         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
58481         before sendmsg/recvmsg.
58483         passfd: standardize coding conventions
58484         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
58485         can be learned at compile time.
58486         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
58487         ifdefs.
58488         (sendfd, recvfd): Follow gnulib code conventions.
58490         passfd: fix incorrect sendmsg arguments
58491         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
58492         incorrect msg_controllen value.
58493         * modules/passfd-tests (Depends-on): Check for alarm.
58494         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
58495         Reported by Bastien ROUCARIES.
58497 2011-03-30  Bruno Haible  <bruno@clisp.org>
58499         c-strcasestr: Relicense under LGPLv2+.
58500         * modules/c-strcasestr (License): Change to LGPLv2+.
58501         Requested by Eric Blake, for libvirt.
58503 2011-03-30  Simon Josefsson  <simon@josefsson.org>
58505         * users.txt: Add libidn2.  Fix libtasn1 link.
58507 2011-03-30  Jim Meyering  <meyering@redhat.com>
58509         tests: readlink* ("",... fails with EINVAL on newer kernels
58510         readlink and readlinkat have typically failed with ENOENT for
58511         the invalid, empty file name,  "".  However, with the advent
58512         of linux-2.6.39, they fail with EINVAL.
58513         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
58514         when operating on the empty file name.
58515         * tests/test-readlink.h (test_readlink): Likewise.
58517 2011-03-29  Bruno Haible  <bruno@clisp.org>
58519         Relicense some modules under LGPLv2+, for libidn2.
58520         * modules/array-mergesort (License): Change to LGPLv2+.
58521         * modules/c-strcaseeq (License): Likewise.
58522         * modules/striconveh (License): Likewise.
58523         * modules/striconveha (License): Likewise.
58524         * modules/uniconv/base (License): Likewise.
58525         * modules/uniconv/u8-conv-from-enc (License): Likewise.
58526         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
58527         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
58528         * modules/unictype/base (License): Likewise.
58529         * modules/unictype/bidiclass-of (License): Likewise.
58530         * modules/unictype/category-M (License): Likewise.
58531         * modules/unictype/category-none (License): Likewise.
58532         * modules/unictype/category-of (License): Likewise.
58533         * modules/unictype/category-test (License): Likewise.
58534         * modules/unictype/category-test-withtable (License): Likewise.
58535         * modules/unictype/combining-class (License): Likewise.
58536         * modules/unictype/joiningtype-of (License): Likewise.
58537         * modules/unictype/scripts (License): Likewise.
58538         * modules/uninorm/base (License): Likewise.
58539         * modules/uninorm/canonical-decomposition (License): Likewise.
58540         * modules/uninorm/composition (License): Likewise.
58541         * modules/uninorm/decompose-internal (License): Likewise.
58542         * modules/uninorm/decomposition-table (License): Likewise.
58543         * modules/uninorm/nfc (License): Likewise.
58544         * modules/uninorm/nfd (License): Likewise.
58545         * modules/uninorm/u32-normalize (License): Likewise.
58546         * modules/unistr/base (License): Likewise.
58547         * modules/unistr/u32-cpy (License): Likewise.
58548         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
58549         * modules/unistr/u32-to-u8 (License): Likewise.
58550         * modules/unistr/u32-uctomb (License): Likewise.
58551         * modules/unistr/u8-check (License): Likewise.
58552         * modules/unistr/u8-mblen (License): Likewise.
58553         * modules/unistr/u8-mbtouc (License): Likewise.
58554         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
58555         * modules/unistr/u8-mbtoucr (License): Likewise.
58556         * modules/unistr/u8-prev (License): Likewise.
58557         * modules/unistr/u8-strlen (License): Likewise.
58558         * modules/unistr/u8-to-u32 (License): Likewise.
58559         * modules/unistr/u8-uctomb (License): Likewise.
58560         * modules/unitypes (License): Likewise.
58561         Requested by Simon Josefsson.
58563 2011-03-29  Simon Josefsson  <simon@josefsson.org>
58565         lib-symbol-visibility: Add a notice.
58566         * modules/lib-symbol-visibility (Notice): New field.
58568 2011-03-29  Bruno Haible  <bruno@clisp.org>
58570         getaddrinfo: Doc fix.
58571         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
58572         section "fixed in Gnulib".
58574 2011-03-28  Simon Josefsson  <simon@josefsson.org>
58576         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
58577         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
58579 2011-03-26  Bruno Haible  <bruno@clisp.org>
58581         unictype/property-byname: Reduce the number of load-time relocations.
58582         * lib/unictype/pr_byname.c: Include <stdlib.h>.
58583         (UC_PROPERTY_INDEX_*): New enumeration values.
58584         (uc_property_byname): Convert an index from the lookup table to an
58585         uc_property_t.
58586         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
58587         values.
58589 2011-03-26  Bruno Haible  <bruno@clisp.org>
58591         unictype/property-byname: Allow omitted word separators and aliases.
58592         * lib/unictype/pr_byname.gperf: Add property names without word
58593         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
58594         for 'space'.
58596 2011-03-26  Bruno Haible  <bruno@clisp.org>
58598         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
58599         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
58600         also hyphens to space.
58601         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
58602         without spaces.
58603         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
58605 2011-03-26  Bruno Haible  <bruno@clisp.org>
58607         unictype/joiningtype-byname: Recognize long names as well.
58608         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
58609         a long name.
58610         * lib/unictype/joiningtype_byname.c: Include <string.h>,
58611         unictype/joiningtype_byname.h.
58612         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
58613         * lib/unictype/joiningtype_byname.gperf: New file.
58614         * modules/unictype/joiningtype-byname (Files): Add
58615         lib/unictype/joiningtype_byname.gperf.
58616         (Depends-on): Add gperf.
58617         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
58618         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
58619         long names.
58621         Tests for module 'unictype/joiningtype-longname'.
58622         * modules/unictype/joiningtype-longname-tests: New file.
58623         * tests/unictype/test-joiningtype_longname.c: New file.
58625         New module 'unictype/joiningtype-longname'.
58626         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
58627         * lib/unictype/joiningtype_longname.c: New file.
58628         * modules/unictype/joiningtype-longname: New file.
58629         * modules/unictype/joiningtype-all (Depends-on): Add
58630         unictype/joiningtype-longname.
58632 2011-03-26  Bruno Haible  <bruno@clisp.org>
58634         unictype/bidiclass-byname: Recognize long names as well.
58635         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
58636         name.
58637         * lib/unictype/bidi_byname.c: Include <string.h>,
58638         unictype/bidi_byname.h.
58639         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
58640         * lib/unictype/bidi_byname.gperf: New file.
58641         * modules/unictype/bidiclass-byname (Files): Add
58642         lib/unictype/bidi_byname.gperf.
58643         (Depends-on): Add gperf.
58644         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
58645         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
58646         long names.
58648         Tests for module 'unictype/bidiclass-longname'.
58649         * modules/unictype/bidiclass-longname-tests: New file.
58650         * tests/unictype/test-bidi_longname.c: New file.
58652         New module 'unictype/bidiclass-longname'.
58653         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
58654         * lib/unictype/bidi_longname.c: New file.
58655         * modules/unictype/bidiclass-longname: New file.
58656         * modules/unictype/bidiclass-all (Depends-on): Add
58657         unictype/bidiclass-longname.
58659 2011-03-26  Bruno Haible  <bruno@clisp.org>
58661         unictype/bidi*: Rename modules.
58662         * modules/unictype/bidiclass-all: Renamed from
58663         modules/unictype/bidicategory-all.
58664         * modules/unictype/bidiclass-name: Renamed from
58665         modules/unictype/bidiclass-name.
58666         (Description): Update.
58667         * modules/unictype/bidiclass-name-tests: Renamed from
58668         modules/unictype/bidicategory-name-tests.
58669         * modules/unictype/bidiclass-byname: Renamed from
58670         modules/unictype/bidicategory-byname.
58671         (Description): Update.
58672         * modules/unictype/bidiclass-byname-tests: Renamed from
58673         modules/unictype/bidicategory-byname-tests.
58674         * modules/unictype/bidiclass-of: Renamed from
58675         modules/unictype/bidicategory-of.
58676         (Description): Update.
58677         * modules/unictype/bidiclass-of-tests: Renamed from
58678         modules/unictype/bidicategory-of-tests.
58679         * modules/unictype/bidiclass-test: Renamed from
58680         modules/unictype/bidicategory-test.
58681         (Description): Update.
58682         * modules/unictype/bidiclass-test-tests: Renamed from
58683         modules/unictype/bidicategory-test-tests.
58684         * modules/unictype/bidicategory-all: New file, a simple redirection.
58685         * modules/unictype/bidicategory-name: Likewise.
58686         * modules/unictype/bidicategory-byname: Likewise.
58687         * modules/unictype/bidicategory-of: Likewise.
58688         * modules/unictype/bidicategory-test: Likewise.
58689         * modules/unictype/property-bidi-* (Dependencies): Update.
58690         * lib/unictype/bidi_*.c: Update comment.
58692 2011-03-26  Bruno Haible  <bruno@clisp.org>
58694         unictype/bidi*: Rename functions, part 2.
58695         * modules/unictype/bidicategory-name (configure.ac): Update required
58696         libunistring version.
58697         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
58699 2011-03-25  Bruno Haible  <bruno@clisp.org>
58701         New module 'unictype/combining-class-all'.
58702         * modules/unictype/combining-class-all: New file.
58704         Tests for module 'unictype/combining-class-byname'.
58705         * modules/unictype/combining-class-byname-tests: New file.
58706         * tests/unictype/test-combiningclass_byname.c: New file.
58708         New module 'unictype/combining-class-byname'.
58709         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
58710         * lib/unictype/combiningclass_byname.c: New file.
58711         * lib/unictype/combiningclass_byname.gperf: New file.
58712         * modules/unictype/combining-class-byname: New file.
58714         Tests for module 'unictype/combining-class-longname'.
58715         * modules/unictype/combining-class-longname-tests: New file.
58716         * tests/unictype/test-combiningclass_longname.c: New file.
58718         New module 'unictype/combining-class-longname'.
58719         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
58720         * lib/unictype/combiningclass_longname.c: New file.
58721         * modules/unictype/combining-class-longname: New file.
58723         Tests for module 'unictype/combining-class-name'.
58724         * modules/unictype/combining-class-name-tests: New file.
58725         * tests/unictype/test-combiningclass_name.c: New file.
58727         New module 'unictype/combining-class-name'.
58728         * lib/unictype.in.h (uc_combining_class_name): New declaration.
58729         * lib/unictype/combiningclass_name.c: New file.
58730         * modules/unictype/combining-class-name: New file.
58732 2011-03-25  Bruno Haible  <bruno@clisp.org>
58734         unictype/combining-class: Rename source files.
58735         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
58736         of unictype/combining.h.
58737         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
58738         Update.
58739         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
58740         * modules/unictype/combining-class (Description): Fix.
58741         (Files, Makefile.am): Update.
58742         * tests/unictype/test-combiningclass.c: Renamed from
58743         tests/unictype/test-combining.c.
58744         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
58746 2011-03-25  Bruno Haible  <bruno@clisp.org>
58748         unictype: Update list of canonical combining classes.
58749         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
58751 2011-03-25  Bruno Haible  <bruno@clisp.org>
58753         unictype/category-byname: Recognize long names as well.
58754         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
58755         a long name.
58756         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
58757         unictype/categ_byname.h.
58758         (UC_CATEGORY_INDEX_*): New enumeration values.
58759         (uc_general_category_byname): Use uc_general_category_lookup and
58760         convert from index to value.
58761         * lib/unictype/categ_byname.gperf: New file.
58762         * modules/unictype/category-byname (Files): Add
58763         lib/unictype/categ_byname.gperf.
58764         (Depends-on): Add gperf.
58765         (Makefile.am): Add rule for generating unictype/categ_byname.h.
58766         * tests/unictype/test-categ_byname.c (main): Test the recognition of
58767         long names.
58769         Tests for module 'unictype/category-longname'.
58770         * modules/unictype/category-longname-tests: New file.
58771         * tests/unictype/test-categ_longname.c: New file.
58773         New module 'unictype/category-longname'.
58774         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
58775         * lib/unictype/categ_longname.c: New file.
58776         * modules/unictype/category-longname: New file.
58777         * modules/unictype/category-all (Depends-on): Add it.
58779 2011-03-25  Bruno Haible  <bruno@clisp.org>
58781         Tests for module 'unictype/category-LC'.
58782         * modules/unictype/category-LC-tests: New file.
58783         * tests/unictype/test-categ_LC.c: New file, automatically generated.
58785         New module 'unictype/category-LC'.
58786         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
58787         (UC_CATEGORY_LC): New declaration.
58788         (UC_CASED_LETTER): New macro.
58789         * lib/gen-uni-tables.c (is_category_LC): New function.
58790         (output_categories): Also handle category LC.
58791         (UC_CATEGORY_MASK_LC): New enumeration value.
58792         (general_category_byname): Also handle category LC.
58793         * lib/unictype/categ_LC.c: New file.
58794         * lib/unictype/categ_LC.h: New file, automatically generated.
58795         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
58796         category LC.
58797         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
58798         * modules/unictype/category-LC: New file.
58799         * modules/unictype/category-byname (Depends-on): Add
58800         unictype/category-LC.
58801         * modules/unictype/category-all (Depends-on): Likewise.
58803 2011-03-25  Eric Blake  <eblake@redhat.com>
58805         xmalloc: revert yesterday's regression
58806         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
58807         realloc's underlying behavior (allowing allocation of zero-size
58808         objects, especially if malloc-gnu is also in use).
58810 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
58812         maint.mk: add missing version to VC-tag
58813         * top/maint.mk: git tag was missing actual tag name; add it.
58815         valgrind: do leak checking, and exit with code 1 on error (not 0)
58816         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
58817         to VALGRIND.
58819 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
58821         posix-modules: say what it does.
58822         * posix-modules: Add a line to the --help output saying what it does.
58824 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
58826         xmalloc: Do not leak if underlying realloc is C99 compatible.
58827         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
58828         This avoids a leak on C99-based systems.  See
58829         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
58831 2011-03-24  Eric Blake  <eblake@redhat.com>
58833         realloc: document portability problem
58834         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
58835         passing 0 size to realloc.
58837 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
58839         doc: update users.txt
58840         * users.txt: Add cvsps, tmpwatch
58842 2011-03-23  Matt Rice  <ratmice@gmail.com>
58844         doc: update users.txt
58845         * users.txt: Add gdb.
58847 2011-03-23  Jim Meyering  <meyering@redhat.com>
58849         doc: update users.txt
58850         Looking through matches up to the following URL (there are still
58851         several more pages), I found several projects that use gnulib:
58852         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
58853         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
58854         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
58856 2011-03-22  Bruno Haible  <bruno@clisp.org>
58858         unictype/bidi*: Rename functions.
58859         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
58860         uc_bidi_class, uc_is_bidi_class): New declarations.
58861         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
58862         uc_bidi_category_byname.
58863         (uc_bidi_category_byname): New function.
58864         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
58865         u_bidi_category_name.
58866         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
58867         (uc_bidi_category_name): New function.
58868         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
58869         uc_bidi_category.
58870         (uc_bidi_category): New function.
58871         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
58872         uc_is_bidi_category. Invoke uc_bidi_class.
58873         (uc_is_bidi_category): New function.
58874         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
58875         instead of uc_bidi_category_byname.
58876         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
58877         instead of uc_bidi_category_name.
58878         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
58879         uc_bidi_category.
58880         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
58881         instead of uc_is_bidi_category.
58883 2011-03-21  Bruno Haible  <bruno@clisp.org>
58885         New module 'unictype/joininggroup-all'.
58886         * modules/unictype/joininggroup-all: New file.
58888         Tests for module 'unictype/joininggroup-of'.
58889         * modules/unictype/joininggroup-of-tests: New file.
58890         * tests/unictype/test-joininggroup_of.c: New file.
58891         * tests/unictype/test-joininggroup_of.h: New file, automatically
58892         generated by gen-uni-tables.
58894         New module 'unictype/joininggroup-of'.
58895         * modules/unictype/joininggroup-of: New file.
58896         * lib/unictype/joininggroup_of.c: New file.
58897         * lib/unictype/joininggroup_of.h: New file, automatically generated by
58898         gen-uni-tables.
58900         Tests for module 'unictype/joininggroup-byname'.
58901         * modules/unictype/joininggroup-byname-tests: New file.
58902         * tests/unictype/test-joininggroup_byname.c: New file.
58904         New module 'unictype/joininggroup-byname'.
58905         * modules/unictype/joininggroup-byname: New file.
58906         * lib/unictype/joininggroup_byname.c: New file.
58907         * lib/unictype/joininggroup_byname.gperf: New file.
58909         Tests for module 'unictype/joininggroup-name'.
58910         * modules/unictype/joininggroup-name-tests: New file.
58911         * tests/unictype/test-joininggroup_name.c: New file.
58913         New module 'unictype/joininggroup-name'.
58914         * modules/unictype/joininggroup-name: New file.
58915         * lib/unictype/joininggroup_name.c: New file.
58916         * lib/unictype/joininggroup_name.h: New file.
58918         New module 'unictype/joiningtype-all'.
58919         * modules/unictype/joiningtype-all: New file.
58921         Tests for module 'unictype/joiningtype-of'.
58922         * modules/unictype/joiningtype-of-tests: New file.
58923         * tests/unictype/test-joiningtype_of.c: New file.
58924         * tests/unictype/test-joiningtype_of.h: New file, automatically
58925         generated by gen-uni-tables.
58927         New module 'unictype/joiningtype-of'.
58928         * modules/unictype/joiningtype-of: New file.
58929         * lib/unictype/joiningtype_of.c: New file.
58930         * lib/unictype/joiningtype_of.h: New file, automatically generated by
58931         gen-uni-tables.
58933         Tests for module 'unictype/joiningtype-byname'.
58934         * modules/unictype/joiningtype-byname-tests: New file.
58935         * tests/unictype/test-joiningtype_byname.c: New file.
58937         New module 'unictype/joiningtype-byname'.
58938         * modules/unictype/joiningtype-byname: New file.
58939         * lib/unictype/joiningtype_byname.c: New file.
58941         Tests for module 'unictype/joiningtype-name'.
58942         * modules/unictype/joiningtype-name-tests: New file.
58943         * tests/unictype/test-joiningtype_name.c: New file.
58945         New module 'unictype/joiningtype-name'.
58946         * modules/unictype/joiningtype-name: New file.
58947         * lib/unictype/joiningtype_name.c: New file.
58949         unictype: Add support for Arabic shaping properties.
58950         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
58951         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
58952         declarations.
58953         (UC_JOINING_GROUP_*): New enumeration values.
58954         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
58955         declarations.
58956         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
58957         (unicode_joining_type): New variable.
58958         (UC_JOINING_GROUP_*): New enumeration values.
58959         (unicode_joining_group): New variable.
58960         (fill_arabicshaping, joining_type_as_c_identifier,
58961         output_joining_type_test, output_joining_type,
58962         joining_group_as_c_identifier, output_joining_group_test,
58963         output_joining_group): New functions.
58964         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
58965         fill_arabicshaping and output_joining_type_test, output_joining_type,
58966         output_joining_group_test, output_joining_group.
58967         Reported by Simon Josefsson.
58969 2011-03-21  Jim Meyering  <meyering@redhat.com>
58971         strftime: fix a bug in yesterday's change
58972         * lib/strftime.c (add): Accommodate width's initial value of -1.
58973         Otherwise, nstrftime would copy uninitialized data into
58974         the result buffer.
58976 2011-03-21  Jim Meyering  <meyering@redhat.com>
58978         tests: add strftime-tests module
58979         * tests/test-strftime.c: New file.
58980         * modules/strftime-tests: New module.
58982 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58984         strftime: don't assume a byte count fits in 'int'
58985         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
58986         found this problem by static analysis, using gcc -Wstrict-overflow
58987         (GCC 4.5.2, x86-64).  This reported an optimization that depended
58988         on an integer overflow having undefined behavior, but it turns out
58989         that the argument is a size, which might not fit in 'int' anyway,
58991 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58993         stdio: don't require ignore_value around fwrite
58995         This patch works around libc bug 11959
58996         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
58997         Without this patch, applications must often write
58998         ignore_value (fwrite (...)) even though the ignore_value is
58999         not helpful here.  It's common to write many objects, using
59000         fwrite/printf/etc., and then use ferror to detect output error.
59002         I considered making this patch optional, but decided against it,
59003         because libc is obviously being inconsistent here: there is no
59004         reason libc should insist that user code must inspect fwrite
59005         return's value without also insisting that it inspect printf's,
59006         putchar's, etc.  If user code wants to have a strict style where
59007         all these functions' values are checked (so that ferror need not
59008         be checked), we could add support for that style in a new gnulib
59009         module, but in the meantime it's better to be consistent and to
59010         support common usage.
59012         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
59013         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
59014         that we are compiling in checking mode, and if not C++, and
59015         if not already wrapping fwrite for some other reason.
59016         (fwrite): #define to rpl_fwrite if the latter is defined.
59018 2011-03-20  Bruno Haible  <bruno@clisp.org>
59020         verror: Fix compilation error introduced on 2011-02-13.
59021         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
59022         instead of __attribute__.
59023         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
59025 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
59026             Bruno Haible  <bruno@clisp.org>
59028         socklen: do not depend on sys_socket
59029         While trying to modify Emacs to use gnulib's socklen module,
59030         I discovered a circular dependency: socklen depends on sys_socket
59031         and vice versa.  Emacs can use socklen, but it does not need
59032         sys_socket because it has its own substitute for sys/socket.h.
59033         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
59034         gl_TYPE_SOCKLEN_T.
59035         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
59036         gl_PREREQ_SYS_H_SOCKET.
59037         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
59038         gl_PREREQ_SYS_H_SOCKET.
59039         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
59040         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
59041         * modules/socklen (Depends-on): Do not depend on sys_socket.
59042         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
59044 2011-03-20  Jim Meyering  <meyering@redhat.com>
59046         maint.mk: sort file names *after* new transformation
59047         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
59048         prefix would have led to an unwarranted failure in GNU parted.
59049         Sort after that transformation.
59051 2011-03-19  Jim Meyering  <meyering@redhat.com>
59053         maint.mk: fix po-file syntax-check rule
59054         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
59055         Patch by Bruno Haible.
59057 2011-03-19  Bruno Haible  <bruno@clisp.org>
59059         socklen: Update comment.
59060         * m4/socklen.m4: Update comment about platforms.
59062 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59063             Bruno Haible  <bruno@clisp.org>
59065         inet_ntop, inet_pton: Simplify.
59066         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
59067         documented to provide socklen_t and we already depend on sys_socket.
59068         * modules/inet_pton (Depends-on): Likewise.
59069         * lib/arpa_inet.in.h: Adjust comment.
59071 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59072             Bruno Haible  <bruno@clisp.org>
59074         netdb: Simplify.
59075         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
59076         documented to provide socklen_t and we already depend on sys_socket.
59077         * lib/netdb.in.h: Adjust comment.
59079 2011-03-19  Bruno Haible  <bruno@clisp.org>
59081         sys_socket, netdb: Document problem with socklen_t.
59082         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
59083         platforms.
59084         * doc/posix-headers/netdb.texi: Likewise.
59086 2011-03-18  Eric Blake  <eblake@redhat.com>
59088         maint.mk: let po check work in VPATH build
59089         * top/maint.mk (po_file): Allow cfg.mk override.
59090         (sc_po_check): Allow VPATH use.
59091         Reported by Jiri Denemark.
59093 2011-03-16  Jim Meyering  <meyering@redhat.com>
59095         maint.mk: allow fine-grained syntax-check exclusion via Make variables
59096         Before, you would have had to create one .x-sc_ file per rule in order
59097         to exempt offending files.  Now, you may instead use a Make variable --
59098         usually defined in cfg.mk -- whose name identifies the affected rule.
59099         * top/maint.mk (_sc_excl): Define.
59100         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
59101         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
59103 2011-03-13  Bruno Haible  <bruno@clisp.org>
59105         ignore-value tests: Avoid warnings.
59106         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
59107         empty for gcc < 3.4.
59109 2011-03-13  Bruno Haible  <bruno@clisp.org>
59111         passfd: Fix link error on Solaris.
59112         * modules/passfd (Description): Correct.
59113         (Depends-on): Add socketlib.
59114         (Link): New section.
59115         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
59117 2011-03-13  Bruno Haible  <bruno@clisp.org>
59119         passfd: Fix link error on AIX 5.2.
59120         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
59122 2011-03-13  Bruno Haible  <bruno@clisp.org>
59124         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
59125         * lib/sys_socket.in.h: Include <stddef.h>.
59126         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
59127         CMSG_FIRSTHDR. Remove unused variable.
59129 2011-03-13  Bruno Haible  <bruno@clisp.org>
59131         passfd: Fix compilation error on OpenBSD.
59132         * lib/passfd.c: Include <sys/uio.h>.
59134 2011-03-13  Bruno Haible  <bruno@clisp.org>
59136         passfd test: Fix warnings.
59137         * tests/test-passfd.c: Include <sys/wait.h>.
59138         (main): Fix typo.
59140 2011-03-13  Bruno Haible  <bruno@clisp.org>
59142         passfd module, part 4, tweaks.
59143         * tests/test-passfd.c: Reorder includes.
59144         (main): Fix perror and printf calls.
59146 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
59148         passfd module, part 4.
59149         * modules/passfd-tests: New file.
59150         * tests/test-passfd.c: New file.
59152 2011-03-13  Jim Meyering  <meyering@redhat.com>
59154         Makefile: rely on GNU make; derive syntax-check rule names
59155         Rather than requiring that each sc_ rule be listed as a dependent
59156         of "check", use features of GNU make to derive the list.
59157         * Makefile (syntax-check-rules): Define.
59158         (check): Depend on the new variable, not the hard-coded list.
59160 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
59161             Bruno Haible  <bruno@clisp.org>
59163         passfd module, part 3.
59164         * lib/passfd.h (recvfd): Add a flags argument.
59165         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
59166         (recvfd): Add a flags argument.
59167         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
59168         exists.
59169         * modules/passfd (Depends-on): Add cloexec.
59170         Suggested by Eric Blake.
59172 2011-03-13  Bruno Haible  <bruno@clisp.org>
59174         passfd module, part 2, tweaks.
59175         * modules/passfd (Files): Reorder.
59176         (Depends-on): Remove errno.
59177         (Include): Remove <sys/socket.h>, <sys/un.h>.
59178         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
59179         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
59180         specification header. Include <sys/socket.h> always. Don't include
59181         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
59182         (sendfd): Clarify that it sets errno when it fails.
59183         (recvfd): Fix specification.
59185 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
59187         passfd module, part 2.
59188         * modules/passfd: New file.
59189         * lib/passfd.h: New file.
59190         * lib/passfd.c: New file.
59192 2011-03-12  Bruno Haible  <bruno@clisp.org>
59194         wcswidth, mbswidth: Avoid integer overflow.
59195         * lib/wcswidth.c: Include <limits.h>.
59196         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
59197         * lib/mbswidth.c: Include <limits.h>.
59198         (mbsnwidth): Avoid 'int' overflow.
59199         Reported by Jim Meyering.
59201 2011-03-12  Bruno Haible  <bruno@clisp.org>
59203         futimens, utimensat: Avoid endless recursion on Solaris 10.
59204         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
59205         Solaris.
59206         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
59207         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
59209 2011-03-11  Jim Meyering  <meyering@redhat.com>
59211         maint.mk: relax a regexp to accommodate other formatting styles
59212         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
59213         between "ngettext" and the following "(".
59215 2011-03-11  Pádraig Brady  <P@draigBrady.com>
59217         maint.mk: suppress a false positive warning
59218         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
59219         diagnostics are marked with ngettext.
59221 2011-03-10  Eric Blake  <eblake@redhat.com>
59223         wchar: add explicit dependencies, for Tru64
59224         * modules/mbmemcasecoll (Depends-on): Add wchar.
59225         * modules/mbtowc (Depends-on): Likewise.
59226         * modules/vasnprintf (Depends-on): Likewise.
59227         * modules/unistdio/u-printf-args (Depends-on): Likewise.
59228         * modules/wctomb (Depends-on): Likewise.
59229         Reported by Peter O'Gorman.
59231 2011-03-08  Bruno Haible  <bruno@clisp.org>
59233         passfd module, part 1, tweaks.
59234         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
59235         Improve indentation. Improve AC_MSG_CHECKING messages.
59236         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
59237         gl_SOCKET_FAMILIES.
59239 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
59241         passfd module, part 1.
59242         * m4/afunix.m4: New file.
59243         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
59244         sockets.
59246 2011-03-08  Bruno Haible  <bruno@clisp.org>
59248         regex-quote: New API.
59249         * lib/regex-quote.h: Include <stdbool.h>.
59250         (struct regex_quote_spec): New type.
59251         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
59252         New declarations.
59253         (regex_quote_length, regex_quote_copy, regex_quote): Take a
59254         'const struct regex_quote_spec *' argument.
59255         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
59256         (pcre_special): New constant.
59257         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
59258         New functions.
59259         (regex_quote_length, regex_quote_copy, regex_quote): Take a
59260         'const struct regex_quote_spec *' argument.
59261         * modules/regex-quote (Depends-on): Add stdbool.
59262         * tests/test-regex-quote.c (check): Update for new API. Add test for
59263         anchored results.
59264         * NEWS: Mention the API change.
59265         Reported by Reuben Thomas and Eric Blake.
59267 2011-03-06  Bruno Haible  <bruno@clisp.org>
59269         regex-quote: Fix creation of POSIX extended regular expressions.
59270         * lib/regex-quote.c (ere_special): Add grouping and alternation
59271         operators.
59273 2011-03-05  Bruno Haible  <bruno@clisp.org>
59275         doc: Improve doc regarding autopoint vs. gnulib.
59276         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
59277         disable autopoint while running autoreconf.
59278         Suggested by Ralf Wildenhues.
59280 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59282         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
59283         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
59285 2011-03-03  Bruce Korb  <bkorb@gnu.org>
59287         parse-duration: remove xalloc.h dependency
59288         * lib/parse-duration.c (parse_period): handle NULL return from
59289         strdup instead of calling xstrdup().
59290         * modules/parse-duration: remove "xalloc" dependency
59292 2011-03-03  Matthew Booth  <mbooth@redhat.com>
59294         bootstrap: honor m4_base when running aclocal
59295         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
59297 2011-03-02  Jim Meyering  <meyering@redhat.com>
59299         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
59300         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
59301         on request from Matt Booth.
59303 2011-03-01  Eric Blake  <eblake@redhat.com>
59305         test-link: work on Hurd
59306         * tests/test-link.h (test_link): Hurd rejects linking directories
59307         with EISDIR instead of the POSIX-mandated EPERM.
59309 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
59311         stdio: simplify by moving files to printf-posix, sigpipe
59312         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
59313         since this symbol is needed only if printf is replaced.
59314         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
59315         Require gl_ASM_SYMBOL_PREFIX.
59316         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
59317         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
59318         (Depends-on): Add 'raise'.
59319         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
59320         * modules/stdio (Files): Remove lib/stdio-write.c,
59321         m4/asm-underscore.m4.
59322         (Depends-on): Remove 'raise'.
59324         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
59325         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
59326         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
59327         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
59329 2011-02-28  Bruno Haible  <bruno@clisp.org>
59331         localcharset: Assume ANSI C behaviour of free().
59332         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
59333         calling free().
59334         Suggested by Simon Josefsson <simon@josefsson.org>.
59336 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
59337             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
59338             Bruno Haible  <bruno@clisp.org>  (tiny change)
59340         On Cygwin, use /proc file system instead of win32 API.
59341         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
59342         Win32 file names.
59343         (DllMain): Simplify by removing Cygwin specific code.
59344         (find_shared_library_fullname): Use Linux specific implementation also
59345         for Cygwin.
59346         (get_shared_library_fullname): Update accordingly.
59347         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
59348         Win32 file names.
59349         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
59350         Cygwin specific code.
59352 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
59353             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
59355         Fix OpenMP flag detection for various Fortran compilers.
59356         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
59357         OpenMP-conditional compilation construct, to force compile
59358         failure with missing OpenMP flag.
59359         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
59361 2011-02-25  Eric Blake  <eblake@redhat.com>
59363         strstr: expand test coverage
59364         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
59365         compilation.
59366         * tests/test-memmem.c (main): Duplicate tests.
59367         * tests/test-strcasestr.c (main): Likewise.
59368         * tests/test-c-strcasestr.c (main): Likewise.
59370 2011-02-25  Jim Meyering  <meyering@redhat.com>
59372         maint.mk: detect missing-NL-at-EOF, too
59373         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
59374         it also detects when a file lacks a newline at EOF.
59375         (require_exactly_one_NL_at_EOF_): Renamed from
59376         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
59377         since people may well have .x-sc_... file names tied to the
59378         existing name.  Suggested by Eric Blake.
59380 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59382         dirname: move m4/dos.m4 functionality into lib/dosname.h
59384         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
59385         extracts symbols from it, puts them into config.h; but it's much
59386         easier to use the symbols directly.  filename.h already does this,
59387         but it disagrees with dos.m4 in some respects.  This patch
59388         introduces a different include file dosname.h that packages up
59389         dos.m4, and then later we can work on merging filename.h and
59390         dosname.h.  Applications that need only the easy-to-configure
59391         symbols should consider including dosname.h rather than dirname.h.
59392         * NEWS: Mention incompatible changes.
59393         * m4/dos.m4: Remove.
59394         * lib/dosname.h, modules/dosname: New files.
59395         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
59396         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
59397         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
59398         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
59399         Include dosname.h, not dirname.h.
59400         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
59401         Include dosname.h, for definitions of symbols like ISSLASH
59402         that used to be in config.h.
59403         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
59404         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
59405         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59406         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59407         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
59408         * modules/rmdir (Files): Likewise.
59409         * modules/stat (Files): Likewise.
59410         * modules/unlink (Files): Likewise.
59411         * modules/dirname-lgpl (Depends-on): Add dosname.
59412         * modules/lstat (Depends-on): Likewise.
59413         * modules/openat (Depends-on): Likewise.
59414         * modules/rmdir (Depends-on): Likewise.
59415         * modules/savewd (Depends-on): Likewise.
59416         * modules/stat (Depends-on): Likewise.
59417         * modules/unlink (Depends-on): Likewise.
59418         * modules/openat (Depends-on): Remove dirname-lgpl.
59419         * modules/savewd (Depends-on): Likewise.
59420         * tests/test-dirname.c: Do not use removed symbols like
59421         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
59422         the remaining symbols, e.g., ISSLASH ('\\').
59424 2011-02-25  Eric Blake  <eblake@redhat.com>
59426         strstr: revert patches that introduced bug and pessimization
59427         * lib/str-two-way.h: Add another reference.
59428         (two_way_short_needle, two_way_long_needle): Revert changes from
59429         2011-02-24; they pessimize search speed.
59430         (critical_factorization): Partially revert changes from
59431         2010-06-22; they violate the requirement that the left half of the
59432         needle be smaller than the period of the needle.
59434 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59436         filenamecat: remove unnecessary dependency on dirname-lgpl
59437         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
59438         is no direct dependency, just an indirect one via filenamecat-lgpl.
59440         remove: remove unnecessary use of m4/dos.m4
59441         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
59442         * modules/remove (FILES): Remove m4/dos.m4.
59444         * lib/openat-proc.c: Don't include dirname.h; not needed.
59446         backupfile: remove unnecessary use of m4/dos.m4
59447         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
59448         of its symbols are used by the backupfile code.  backupfile.c does
59449         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
59450         for the rare case of programs that want all their backup file
59451         names to live within 8+3 limits, and dos.m4 doesn't address that.
59452         * modules/backupfile (Files): Remove m4/dos.m4.
59454 2011-02-24  Jim Meyering  <meyering@redhat.com>
59456         strstr: fix a bug whereby strstr would mistakenly return NULL
59457         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
59458         in period calculation.
59459         (two_way_long_needle): Likewise.
59460         The original problem was reported by Mike Stump in
59461         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
59462         Ralf Wildenhues provided the short needle and haystack.
59463         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
59464         Add a more involved test to trigger the bug in two_way_long_needle.
59466 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
59468         gnulib-tool: remove use of bold display in help screen
59469         * gnulib-tool (func_usage): Do not use bold display anymore in the
59470         help screen.  That was just meant to be a temporary emphasis for a
59471         backward-incompatible change.
59473 2011-02-23  Bruno Haible  <bruno@clisp.org>
59475         Fix misindentation of preprocessor directives.
59476         * lib/argp-namefrob.h: Reindent preprocessor directives.
59477         * lib/getopt_int.h (struct _getopt_data): Likewise.
59478         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
59479         * lib/vasnprintf.c (decode_long_double): Likewise.
59480         * tests/test-argmatch.c: Insert blank lines, for clarity.
59481         * tests/test-exclude.c: Likewise.
59483 2011-02-22  Bruno Haible  <bruno@clisp.org>
59485         ioctl: Fix for MacOS X in 64-bit mode.
59486         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
59487         value.
59488         Suggested by Eric Blake.
59489         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
59491 2011-02-22  Jim Meyering  <meyering@redhat.com>
59493         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
59494         * Makefile (sc_cpp_indent_check): Don't limit the check to files
59495         in lib/.
59497 2011-02-22  Eric Blake  <eblake@redhat.com>
59499         maint: avoid any CDPATH issue
59500         * Makefile (sc_cpp_indent_check): Anchor cd argument.
59502         maint: adjust cpp indentation for my modules, as well
59503         * Makefile (sc_cpp_indent_check): Add my name.
59504         * lib/fbufmode.c: Filter through cppi.
59505         * lib/fpurge.c: Likewise.
59506         * lib/freadable.c: Likewise.
59507         * lib/freading.c: Likewise.
59508         * lib/fwritable.c: Likewise.
59509         * lib/fwriting.c: Likewise.
59510         * lib/sigaction.c: Likewise.
59512 2011-02-22  Jim Meyering  <meyering@redhat.com>
59514         maint: adjust cpp indentation to reflect nesting depth
59515         I.e., in a block of code that begins with an unnested "#if",
59516         put one space between the "#" in column 1 and following token.
59517         For example,
59518         -#include <sys/vfs.h>
59519         +# include <sys/vfs.h>
59520         Do this only in .c files that are part of a module I maintain.
59521         * lib/linkat.c: Filter through cppi.
59522         * lib/nanosleep.c: Likewise.
59523         * lib/openat.c: Likewise.
59524         * lib/openat-die.c: Likewise.
59525         * lib/dup3.c: Likewise.
59526         * lib/fchownat.c: Likewise.
59527         * lib/flock.c: Likewise.
59528         * lib/fsync.c: Likewise.
59529         * lib/fts.c: Likewise.
59530         * lib/getpass.c: Likewise.
59531         * lib/gettimeofday.c: Likewise.
59532         * lib/userspec.c: Likewise.
59533         * Makefile (sc_cpp_indent_check): New rule, to check this.
59535 2011-02-22  Bruno Haible  <bruno@clisp.org>
59537         New module 'wctomb'.
59538         * lib/stdlib.in.h (wctomb): New declaration.
59539         * lib/wctomb.c: New file.
59540         * lib/wctomb-impl.h: New file.
59541         * m4/wctomb.m4: New file.
59542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
59543         REPLACE_WCTOMB.
59544         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
59545         REPLACE_WCTOMB.
59546         * modules/wctomb: New file.
59547         * tests/test-stdlib-c++.cc: Test signature of wctomb.
59548         * doc/posix-functions/wctomb.texi: Mention the new module.
59549         * modules/wctob (Depends-on): Add wctomb.
59551 2011-02-22  Bruno Haible  <bruno@clisp.org>
59553         New module 'mbtowc'.
59554         * lib/stdlib.in.h (mbtowc): New declaration.
59555         * lib/mbtowc.c: New file.
59556         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
59557         * m4/mbtowc.m4: New file.
59558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
59559         REPLACE_MBTOWC.
59560         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
59561         REPLACE_MBTOWC.
59562         * modules/mbtowc: New file.
59563         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
59564         * doc/posix-functions/mbtowc.texi: Mention the new module.
59565         * modules/btowc (Depends-on): Add mbtowc.
59567 2011-02-22  Bruno Haible  <bruno@clisp.org>
59569         wcrtomb: Add more tests for native Windows platforms.
59570         * tests/test-wcrtomb-w32-1.sh: New file.
59571         * tests/test-wcrtomb-w32-2.sh: New file.
59572         * tests/test-wcrtomb-w32-3.sh: New file.
59573         * tests/test-wcrtomb-w32-4.sh: New file.
59574         * tests/test-wcrtomb-w32-5.sh: New file.
59575         * tests/test-wcrtomb-w32.c: New file.
59576         * modules/wcrtomb-tests (Files): Add them.
59577         (Makefile.am): Arrange to run these tests.
59578         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
59579         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
59581 2011-02-20  Bruno Haible  <bruno@clisp.org>
59583         wcrtomb: Enhance test.
59584         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
59586 2011-02-20  Bruno Haible  <bruno@clisp.org>
59588         mbrtowc: Tiny optimization.
59589         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
59591 2011-02-20  Jim Meyering  <meyering@redhat.com>
59593         test-exclude.c: remove unmatched #endif
59594         * tests/test-exclude.c: Remove stray #endif, left over from
59595         the change of a week ago.
59597 2011-02-19  Jim Meyering  <meyering@redhat.com>
59599         git-version-gen: skip "-dirty" check when appropriate
59600         * build-aux/git-version-gen: Don't run any git commands when the
59601         version string comes from .tarball-version.  Prior to this, we
59602         would run git update-index --refresh even from a just-unpacked
59603         tarball directory, and that could affect a .git/ directory in a
59604         parent of the build directory.  Reported by Mike Frysinger.
59606 2011-02-19  Bruno Haible  <bruno@clisp.org>
59608         unictype/property-byname: Reduce the size of the 'data' segment.
59609         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
59611 2011-02-19  Bruno Haible  <bruno@clisp.org>
59613         unictype/scripts: Reduce the size of the 'data' segment.
59614         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
59615         '%pic'.
59616         * lib/unictype/scripts_byname.gperf: Regenerated.
59618 2011-02-19  Bruno Haible  <bruno@clisp.org>
59620         stdint: Update documentation.
59621         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
59623 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
59625         stdint: omit redundant check for wchar.h
59626         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
59627         always tests whether wchar.h exists, so remove the now-redundant test.
59629 2011-02-18  Bruno Haible  <bruno@clisp.org>
59631         stdint: Cut dependency to module 'wchar'.
59632         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
59633         include the necessary prerequisites.
59634         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
59635         * modules/stdint (Depends-on): Remove wchar.
59636         (Makefile.am): Substitute HAVE_WCHAR_H.
59637         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
59639 2011-02-18  Eric Blake  <eblake@redhat.com>
59641         longlong: skip, rather than fail, on cross-compilation
59642         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
59643         when cross-compiling; regression from 2011-02-16.
59645 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
59647         * NEWS: Mention 2011-02-08 change to stdlib.
59649 2011-02-17  Bruno Haible  <bruno@clisp.org>
59651         getloadavg: Add comments about platforms.
59652         * m4/getloadavg.m4: Add comment.
59653         * lib/getloadavg.c: Likewise.
59655 2011-02-17  Bruno Haible  <bruno@clisp.org>
59657         getloadavg: Fix link error on Solaris 2.6.
59658         * modules/getloadavg (Link): New section.
59659         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
59660         linking test-getloadavg.
59661         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
59662         getloadavg.
59664 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
59666         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
59667         It was 'int', but this doesn't match the IRIX 6.5 manual.
59668         Suggested by Bruno Haible in
59669         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
59671 2011-02-17  Bruno Haible  <bruno@clisp.org>
59673         havelib: Fix comments.
59674         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
59675         change.
59677 2011-02-17  Bruno Haible  <bruno@clisp.org>
59679         havelib: Update config.rpath.
59680         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
59682 2011-02-17  Bruno Haible  <bruno@clisp.org>
59684         getloadavg test: Add some plausibility checks.
59685         * tests/test-getloadavg.c (check_avg): Print a warning when the value
59686         is improbable.
59688 2011-02-16  Eric Blake  <eblake@redhat.com>
59690         maintainer-makefile: make syntax-check a no-op from tarballs
59691         * top/maint.mk (no-vc-detected): New rule.
59692         (local-checks-available): Use it to avoid hanging if someone tries
59693         'make syntax-check' from a tarball.  Also append to any non-syntax
59694         checks already defined in cfg.mk.
59696 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
59698         longlong: tune, particularly for common case of c99
59700         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
59701         or running anything if c99, or if unsigned long long int does not
59702         work.  In either case, we know the answer without further tests.
59703         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
59704         it at most once, and use its results for both long long int and
59705         unsigned long long int.  This is more likely to be efficient in
59706         the common case where the program wants to check for both long
59707         long int and unsigned long long int.
59708         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
59709         since the answer is already known.
59711 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
59713         getloadavg: set errno
59714         * lib/getloadavg.c: Set errno when returning -1.  If no other
59715         error number looks appropriate, set it to ENOSYS if the getloadavg
59716         looks like it can't possibly ever work, ENOTSUP otherwise.
59717         Suggested by Bruno Haible in
59718         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
59720         getloadavg: trim unused parts and speed up 'configure'
59721         * NEWS: Document this.
59722         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
59723         always compiled if getloadavg is absent.
59724         Move test code to ...
59725         * tests/test-getloadavg.c: New file, containing previous
59726         contents of test from lib/getloadavg.c.  It also contains
59727         suggestions by Bruno Haible in
59728         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
59729         * modules/getloadavg-tests: New file.
59730         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
59731         Do tests in the same order as they're needed for getloadavg.c.
59732         Omit setgid-related tests that generate symbols KMEM_GROUP,
59733         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
59734         Do only the tests that are needed to see whether the system has
59735         getloadavg, moving the other tests into ...
59736         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
59737         NLIST_NAME_UNION; nobody should be using it.  Do not define
59738         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
59739         relevant, as the user of this module shouldn't care how getloadavg
59740         is implemented.
59742         getloadavg: omit unused var
59743         * lib/getloadavg.c (getloadavg): Omit unused local variable.
59745 2011-02-15  Jim Meyering  <meyering@redhat.com>
59747         doc: update users.txt
59748         * users.txt: Update iwhd's URL.
59750 2011-02-13  Bruno Haible  <bruno@clisp.org>
59752         Consistent macro naming for macros that use GCC __attribute__.
59753         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
59754         _ATTRIBUTE_NONNULL_.
59755         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
59756         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
59757         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
59758         ATTRIBUTE_DEPRECATED.
59759         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
59760         ATTRIBUTE_NORETURN.
59761         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59762         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59763         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59764         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59765         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
59766         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
59767         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
59768         ATTRIBUTE_SENTINEL.
59769         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
59770         ATTRIBUTE_RETURN_CHECK.
59771         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
59772         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
59773         ATTRIBUTE_NORETURN.
59774         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
59775         Reported by Paul Eggert.
59777 2011-02-13  Bruno Haible  <bruno@clisp.org>
59779         Don't interfere with a program's definition of __attribute__.
59780         * lib/argp.h (__attribute__): Remove definition.
59781         (_GL_ATTRIBUTE_FORMAT): New macro.
59782         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
59783         * lib/argp-fmtstream.h (__attribute__): Remove definition.
59784         (_GL_ATTRIBUTE_FORMAT): New macro.
59785         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
59786         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
59787         GCC 3 or newer.
59788         * lib/error.h (__attribute__): Remove definition.
59789         (_GL_ATTRIBUTE_FORMAT): New macro.
59790         (error, error_at_line): Use it.
59791         * lib/hash.h (__attribute__): Remove definition.
59792         (ATTRIBUTE_WUR): Update definition. Define always.
59793         * lib/openat.h (__attribute__): Remove definition.
59794         (ATTRIBUTE_NORETURN): Update definition. Define always.
59795         * lib/sigpipe-die.h (__attribute__): Remove definition.
59796         (ATTRIBUTE_NORETURN): Update definition. Define always.
59797         * lib/vasnprintf.h (__attribute__): Remove definition.
59798         (_GL_ATTRIBUTE_FORMAT): New macro.
59799         (asnprintf, vasnprintf): Use it.
59800         * lib/xalloc.h (__attribute__): Remove definition.
59801         (ATTRIBUTE_NORETURN): Update definition. Define always.
59802         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
59803         * lib/xmemdup0.h (__attribute__): Remove definition.
59804         (ATTRIBUTE_NORETURN): Update definition. Define always.
59805         * lib/xprintf.h (__attribute__): Remove definition.
59806         (_GL_ATTRIBUTE_FORMAT): New macro.
59807         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
59808         * lib/xstrtol.h (__attribute__): Remove definition.
59809         (ATTRIBUTE_NORETURN): Update definition. Define always.
59810         * lib/xvasprintf.h (__attribute__): Remove definition.
59811         (_GL_ATTRIBUTE_FORMAT): New macro.
59812         (xasprintf, xvasprintf): Use it.
59813         * tests/test-argmatch.c (__attribute__): Remove definition.
59814         (ATTRIBUTE_NORETURN): Update definition. Define always.
59815         * tests/test-exclude.c (__attribute__): Remove definition.
59816         (ATTRIBUTE_NORETURN): Update definition. Define always.
59817         Reported by Paul Eggert.
59819 2011-02-13  Bruno Haible  <bruno@clisp.org>
59821         mbrtowc: Add more tests for native Windows platforms.
59822         * tests/test-mbrtowc-w32-1.sh: New file.
59823         * tests/test-mbrtowc-w32-2.sh: New file.
59824         * tests/test-mbrtowc-w32-3.sh: New file.
59825         * tests/test-mbrtowc-w32-4.sh: New file.
59826         * tests/test-mbrtowc-w32-5.sh: New file.
59827         * tests/test-mbrtowc-w32.c: New file.
59828         * modules/mbrtowc-tests (Files): Add them.
59829         (Makefile.am): Arrange to run these tests.
59830         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
59831         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
59833 2011-02-13  Bruno Haible  <bruno@clisp.org>
59835         mbrtowc: Work around native Windows bug.
59836         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
59837         guess when no suitable locale for testing was found.
59838         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
59840 2011-02-13  Bruno Haible  <bruno@clisp.org>
59842         mbsinit: Work around mingw bug.
59843         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
59844         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
59845         Windows.
59846         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
59848 2011-02-13  Bruno Haible  <bruno@clisp.org>
59850         mbsinit: Don't crash for a NULL argument.
59851         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
59852         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
59854 2011-02-13  Bruno Haible  <bruno@clisp.org>
59856         Don't interfere with a program's definition of __attribute__.
59857         * lib/stdio.in.h (__attribute__): Remove definition.
59858         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
59859         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
59860         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
59861         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
59862         * lib/string.in.h (__attribute__): Remove definition.
59863         Reported by Paul Eggert.
59865 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59867         stdlib: don't get in the way of non-GCC __attribute__
59868         See thread starting at
59869         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
59870         Revert previous stdlib change, installing the following instead:
59871         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
59872         to get in the way of a non-GCC compiler that supports __attribute__.
59873         (_GL_ATTRIBUTE_RETURN): New macro.
59874         (_Exit): Use it instead of __attribute__.
59876 2011-02-12  Bruno Haible  <bruno@clisp.org>
59878         quotearg test: Avoid test failure on mingw.
59879         * tests/test-quotearg.sh: Convert the locale identifier from native
59880         Windows syntax to Unix syntax.
59882 2011-02-12  Bruno Haible  <bruno@clisp.org>
59884         setlocale: Prefer gnulib's override over libintl's override.
59885         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
59886         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
59887         GNULIB_defined_setlocale is set.
59889 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59891         stdlib: support non-GCC __attribute__
59893         Fix a serious and tricky problem encountered when attempting to
59894         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
59895         5.5, but it crashed due to memory corruption on Solaris 10 with
59896         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
59897         bits that are otherwise zero.  This tagging is optional inside
59898         Emacs but is preferred and is used when __attribute__ ((__aligned
59899         (8))) works, as it does with both recent-enough GCC and with Sun C
59900         5.11.  However, Sun C 5.11 is not GCC and does not #define
59901         __GNUC__ and __GNUC_MINOR__.
59903         When I added the getloadavg module to Emacs, it brought in
59904         stdlib.in.h, which contained this fragment:
59906            #ifndef __attribute__
59907            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
59908            #  define __attribute__(Spec)   /* empty */
59909            # endif
59910            #endif
59912         When files that include <stdlib.h> were compiled with Sun C 5.11,
59913         the above code disabled __attribute__ ((__aligned (8))), which
59914         caused variables to not be properly aligned, which eventually led
59915         to the pointer corruption mentioned above.  (This was a bit hard
59916         to diagnose, unfortunately.)
59918         Several "#define __attribute__(X) /* empty */" code snippets need
59919         to be eradicated from Gnulib to work with non-GCC compilers that
59920         support __attribute__.  The Autoconf way to do this is to test for
59921         each kind of attribute that we want support for, and selectively
59922         enable that in source code.
59924         Fix this problem just for stdlib.h, by adding a test for the
59925         __noreturn__ attribute, and change stdlib.in.h to use that test
59926         when needed.  This technique can be easily generalized to the
59927         other *.in.h files and attributes, and a similar technique can be
59928         used for *.h and *.c files.  This patch is enough to solve the
59929         problem for Emacs + getloadavg, and I thought I'd publish it for
59930         feedback before undertaking further, similar fixes in other
59931         modules.
59933         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
59934         because it's not needed for stdlib.h.  It merely substitutes the
59935         value directly into stdlib.h.  We may well need to #define it, or
59936         similar symbols, for other modules, but it's nice to also have an
59937         option to not #define it for applications like Emacs that do not
59938         need it.
59940         * lib/stdlib.in.h (__attribute__): Do not #define.
59941         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
59942         be defined only if the _Exit module is also used.
59943         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
59944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
59945         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
59946         platforms.
59947         * modules/_Exit (Files): Add m4/attribute.m4.
59948         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
59949         * m4/attribute.m4: New file.
59951 2011-02-12  Bruno Haible  <bruno@clisp.org>
59953         wcsrtombs: Work around bug on native Windows.
59954         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
59955         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
59956         instead of len.
59957         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
59959 2011-02-12  Bruno Haible  <bruno@clisp.org>
59961         mbsrtowcs: Work around bug on native Windows.
59962         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
59963         against mingw bug.
59964         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
59966 2011-02-12  Bruno Haible  <bruno@clisp.org>
59968         Avoid setlocale bugs in tests.
59969         * modules/btowc (Dependencies): Add setlocale.
59970         * modules/c-strcase (Dependencies): Likewise.
59971         * modules/mbmemcasecmp (Dependencies): Likewise.
59972         * modules/mbmemcasecoll (Dependencies): Likewise.
59973         * modules/mbrtowc (Dependencies): Likewise.
59974         * modules/mbscasecmp (Dependencies): Likewise.
59975         * modules/mbscasestr (Dependencies): Likewise.
59976         * modules/mbschr (Dependencies): Likewise.
59977         * modules/mbscspn (Dependencies): Likewise.
59978         * modules/mbsinit (Dependencies): Likewise.
59979         * modules/mbsncasecmp (Dependencies): Likewise.
59980         * modules/mbsnrtowcs (Dependencies): Likewise.
59981         * modules/mbspbrk (Dependencies): Likewise.
59982         * modules/mbspcasecmp (Dependencies): Likewise.
59983         * modules/mbsrchr (Dependencies): Likewise.
59984         * modules/mbsrtowcs (Dependencies): Likewise.
59985         * modules/mbsspn (Dependencies): Likewise.
59986         * modules/mbsstr (Dependencies): Likewise.
59987         * modules/nl_langinfo (Dependencies): Likewise.
59988         * modules/quotearg (Dependencies): Likewise.
59989         * modules/unicase/locale-language (Dependencies): Likewise.
59990         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
59991         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
59992         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
59993         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
59994         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
59995         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
59996         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
59997         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
59998         * modules/vasnprintf-posix (Dependencies): Likewise.
59999         * modules/wcrtomb (Dependencies): Likewise.
60000         * modules/wcsnrtombs (Dependencies): Likewise.
60001         * modules/wcsrtombs (Dependencies): Likewise.
60003 2011-02-12  Bruno Haible  <bruno@clisp.org>
60005         setlocale: Workaround native Windows bug.
60006         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
60007         succeeds but sets LC_CTYPE to "C", report a failure.
60008         * tests/test-setlocale2.sh: New file.
60009         * tests/test-setlocale2.c: New file.
60010         * modules/setlocale-tests (Files): Add the new files.
60011         (Makefile.am): Enable test-setlocale2.sh test.
60012         * doc/posix-functions/setlocale.texi: Mention workaround.
60014 2011-02-11  Bruno Haible  <bruno@clisp.org>
60016         Tests for module 'setlocale'.
60017         * modules/setlocale-tests: New file.
60018         * tests/test-setlocale1.sh: New file.
60019         * tests/test-setlocale1.c: New file.
60021         New module 'setlocale'.
60022         * lib/locale.in.h (setlocale): New declaration.
60023         * lib/setlocale.c: New file, based on
60024         gettext/gettext-runtime/intl/setlocale.c.
60025         * m4/setlocale.m4: New file.
60026         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
60027         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
60028         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
60029         REPLACE_SETLOCALE.
60030         * modules/setlocale: New file.
60031         * tests/test-locale-c++.cc: Test the declaration of setlocale.
60032         * doc/posix-functions/setlocale.texi: Mention the new module.
60034 2011-02-11  Bruno Haible  <bruno@clisp.org>
60036         Prepare for locale dependent tests on mingw.
60037         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
60038         because it has the wrong locale encoding.
60039         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
60040         French_France.1252 instead of "fr".
60041         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
60042         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
60043         because it has the wrong locale encoding.
60044         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
60045         native Windows, try Turkish_Turkey.65001.
60046         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
60047         Chinese_China.54936.
60049         Prepare for locale dependent tests on mingw.
60050         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
60051         differently.
60052         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
60053         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
60054         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60055         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60057 2011-02-11  Eric Blake  <eblake@redhat.com>
60059         strptime: avoid compiler warnings
60060         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
60061         compiler warnings about dead code.
60062         Reported by Daniel P. Berrange.
60064 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
60066         doc: update users.txt
60067         * users.txt: Add rcs.
60069 2011-02-10  John W. Eaton  <jwe@gnu.org>
60071         doc: update users.txt
60072         * users.txt: Add octave.
60074 2011-02-10  Jim Meyering  <meyering@redhat.com>
60076         doc: update users.txt
60077         * users.txt: Add iwhd.
60079 2011-02-09  Bruno Haible  <bruno@clisp.org>
60081         gnulib-tool: Make copyright notice adjustment more robust.
60082         * gnulib-tool (func_import): In sed_transform_main_lib_file,
60083         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
60084         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
60085         License".
60086         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
60088 2011-02-06  Bruno Haible  <bruno@clisp.org>
60090         New module 'towctrans'.
60091         * modules/towctrans: New file.
60092         * lib/wctype.in.h (towctrans): New declaration.
60093         * lib/towctrans.c: New file.
60094         * lib/towctrans-impl.h: New file.
60095         * m4/towctrans.m4: New file.
60096         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
60097         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
60098         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
60099         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
60100         * doc/posix-functions/towctrans.texi: Mention the new module.
60102 2011-02-06  Bruno Haible  <bruno@clisp.org>
60104         New module 'wctrans'.
60105         * modules/wctrans: New file.
60106         * lib/wctype.in.h (wctrans): New declaration.
60107         * lib/wctrans.c: New file.
60108         * lib/wctrans-impl.h: New file.
60109         * m4/wctrans.m4: New file.
60110         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
60111         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
60112         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
60113         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
60114         * doc/posix-functions/wctrans.texi: Mention the new module.
60116 2011-02-06  Bruno Haible  <bruno@clisp.org>
60118         New module 'iswctype'.
60119         * modules/iswctype: New file.
60120         * lib/wctype.in.h (iswctype): New declaration.
60121         * lib/iswctype.c: New file.
60122         * lib/iswctype-impl.h: New file.
60123         * m4/iswctype.m4: New file.
60124         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
60125         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
60126         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
60127         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
60128         * doc/posix-functions/iswctype.texi: Mention the new module and the
60129         HP-UX 11.00 problem.
60131 2011-02-06  Bruno Haible  <bruno@clisp.org>
60133         New module 'wctype'.
60134         * modules/wctype: Change to represent the wctype() substitute.
60135         * lib/wctype.in.h (wctype): New declaration.
60136         * lib/wctype.c: New file.
60137         * lib/wctype-impl.h: New file.
60138         * m4/wctype.m4: New file.
60139         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
60140         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
60141         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
60142         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
60143         * doc/posix-functions/wctype.texi: Mention the new module and the
60144         HP-UX 11.00 problem.
60146 2011-02-06  Bruno Haible  <bruno@clisp.org>
60148         wctype-h: Ensure wctype_t and wctrans_t are defined.
60149         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
60150         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
60151         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
60152         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
60153         HAVE_WCTRANS_T.
60154         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
60156 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
60158         flock: fix license typo
60160         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
60161         omitted.
60163 2011-02-08  Bruno Haible  <bruno@clisp.org>
60165         Split large sed scripts, for HP-UX sed.
60166         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
60167         to avoid HP-UX limit of 99 commands, in the near future.
60168         * modules/stdlib (Makefile.am): Likewise.
60169         * modules/unistd (Makefile.am): Likewise.
60170         * modules/wchar (Makefile.am): Likewise.
60171         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60172         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
60173         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
60175 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
60176             Bruno Haible  <bruno@clisp.org>
60178         stdlib: improve random_r modularization
60179         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
60180         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
60181         you also need the random_r module to get this material right.
60182         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
60183         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
60184         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
60186 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
60188         stdlib: don't depend on stdint
60189         * lib/stdlib.in.h: Don't include <stdint.h> merely because
60190         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
60191         be independent of whether stdint.h is needed.
60192         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
60193         here, instead of ...
60194         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
60195         struct random_data should be using the random_r module, not just
60196         the stdlib module (which wouldn't make sense: what package needs
60197         just struct random_data without also needing random_r?).
60198         * modules/stdlib (Depends-on): Remove stdint.
60200         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
60201         See the thread rooted at
60202         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
60203         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
60204         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
60205         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
60206         __VMS)); previously it was always included (via fcntl--.h).
60207         (getloadavg): Do not use c_strtod.  Instead, approximate it by
60208         hand; this is good enough for load averages.  Also, do not use
60209         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
60210         flags directly if available and don't bother otherwise.  (Packages
60211         that need the extra reliability should use the modules that define
60212         these flags on older platforms that lack them.)
60213         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
60214         fcntl-safer.
60216 2011-02-08  Jim Meyering  <meyering@redhat.com>
60218         di-set.h, ino-map.h: add multiple-inclusion guard
60219         Technically, the guard is required only for ino-map.h, due to its
60220         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
60221         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
60222         * lib/ino-map.h: Likewise.
60224 2011-02-06  Bruno Haible  <bruno@clisp.org>
60226         iswblank: Ensure declaration on glibc systems.
60227         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
60228         * modules/iswblank (Dependencies): Add 'extensions'.
60229         * doc/posix-functions/iswblank.texi: Document the glibc problem.
60231 2011-02-06  Bruno Haible  <bruno@clisp.org>
60233         New module 'iswblank'.
60234         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
60235         * modules/iswblank: New file.
60236         * modules/wctype-h (Files): Remove lib/iswblank.c.
60237         (Makefile.am): Substitute GNULIB_ISWBLANK.
60238         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
60239         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
60240         (gl_WCTYPE_H_DEFAULTS): New macro.
60241         (gl_WCTYPE_H): Require it. Remove iswblank related code.
60242         * modules/iswblank-tests: New file.
60243         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
60244         * tests/test-wctype-h.c (main): Remove iswblank tests.
60245         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
60246         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
60247         of 'wctype-h'.
60248         * NEWS: Mention the change.
60249         * modules/mbchar (Depends-on): Add iswblank.
60251 2011-02-08  Bruno Haible  <bruno@clisp.org>
60253         di-set tests: Refactor.
60254         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
60255         unnecessary includes.
60256         (ASSERT): Remove macro.
60257         (main): Make C90 compliant by avoiding variable declaration after
60258         statement.
60259         * modules/di-set-tests (Files): Add tests/macros.h.
60261 2011-02-08  Bruno Haible  <bruno@clisp.org>
60263         ino-map tests: Refactor.
60264         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
60265         unnecessary includes.
60266         (ASSERT): Remove macro.
60267         (main): Make C90 compliant by avoiding variable declaration after
60268         statement.
60269         * modules/ino-map-tests (Files): Add tests/macros.h.
60271 2011-02-08  Jim Meyering  <meyering@redhat.com>
60273         di-set: add "const" to a cast
60274         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
60275         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
60277 2011-02-06  Bruno Haible  <bruno@clisp.org>
60279         Rename module 'wctype' to 'wctype-h'.
60280         * modules/wctype-h: Renamed from modules/wctype.
60281         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
60282         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
60283         (Files, Depends-on, Makefile.am): Update.
60284         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
60285         (Files, Makefile.am): Update.
60286         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
60287         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
60288         * doc/posix-headers/wctype.texi: Update.
60289         * doc/posix-functions/iswalnum.texi: Update.
60290         * doc/posix-functions/iswalpha.texi: Update.
60291         * doc/posix-functions/iswblank.texi: Update.
60292         * doc/posix-functions/iswcntrl.texi: Update.
60293         * doc/posix-functions/iswdigit.texi: Update.
60294         * doc/posix-functions/iswgraph.texi: Update.
60295         * doc/posix-functions/iswlower.texi: Update.
60296         * doc/posix-functions/iswprint.texi: Update.
60297         * doc/posix-functions/iswpunct.texi: Update.
60298         * doc/posix-functions/iswspace.texi: Update.
60299         * doc/posix-functions/iswupper.texi: Update.
60300         * doc/posix-functions/iswxdigit.texi: Update.
60301         * doc/posix-functions/towlower.texi: Update.
60302         * doc/posix-functions/towupper.texi: Update.
60303         * NEWS: Mention the change.
60304         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
60305         * modules/mbchar (Dependencies): Likewise.
60306         * modules/mbswidth (Dependencies): Likewise.
60307         * modules/quotearg (Dependencies): Likewise.
60308         * modules/regex (Dependencies): Likewise.
60309         * modules/wcscasecmp (Dependencies): Likewise.
60310         * modules/wcsncasecmp (Dependencies): Likewise.
60311         * modules/wcwidth (Dependencies): Likewise.
60313 2011-02-06  Bruno Haible  <bruno@clisp.org>
60315         New module 'wcswidth'.
60316         * modules/wcswidth: New file.
60317         * lib/wchar.in.h (wcswidth): New declaration.
60318         * lib/wcswidth.c: New file.
60319         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
60320         * m4/wcswidth.m4: New file.
60321         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
60322         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
60323         REPLACE_WCSWIDTH.
60324         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
60325         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
60326         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
60327         * doc/posix-functions/wcswidth.texi: Mention the new module.
60329 2011-02-06  Bruno Haible  <bruno@clisp.org>
60331         New module 'wcstok'.
60332         * modules/wcstok: New file.
60333         * lib/wchar.in.h (wcstok): New declaration.
60334         * lib/wcstok.c: New file.
60335         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
60336         * m4/wcstok.m4: New file.
60337         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
60338         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
60339         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
60340         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
60341         * doc/posix-functions/wcstok.texi: Mention the new module.
60343 2011-02-06  Bruno Haible  <bruno@clisp.org>
60345         New module 'wcsstr'.
60346         * modules/wcsstr: New file.
60347         * lib/wchar.in.h (wcsstr): New declaration.
60348         * lib/wcsstr.c: New file.
60349         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
60350         * m4/wcsstr.m4: New file.
60351         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
60352         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
60353         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
60354         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
60355         * doc/posix-functions/wcsstr.texi: Mention the new module.
60357 2011-02-06  Bruno Haible  <bruno@clisp.org>
60359         New module 'wcspbrk'.
60360         * modules/wcspbrk: New file.
60361         * lib/wchar.in.h (wcspbrk): New declaration.
60362         * lib/wcspbrk.c: New file.
60363         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
60364         * m4/wcspbrk.m4: New file.
60365         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
60366         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
60367         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
60368         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
60369         * doc/posix-functions/wcspbrk.texi: Mention the new module.
60371 2011-02-06  Bruno Haible  <bruno@clisp.org>
60373         New module 'wcsspn'.
60374         * modules/wcsspn: New file.
60375         * lib/wchar.in.h (wcsspn): New declaration.
60376         * lib/wcsspn.c: New file.
60377         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
60378         * m4/wcsspn.m4: New file.
60379         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
60380         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
60381         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
60382         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
60383         * doc/posix-functions/wcsspn.texi: Mention the new module.
60385 2011-02-06  Bruno Haible  <bruno@clisp.org>
60387         New module 'wcscspn'.
60388         * modules/wcscspn: New file.
60389         * lib/wchar.in.h (wcscspn): New declaration.
60390         * lib/wcscspn.c: New file.
60391         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
60392         * m4/wcscspn.m4: New file.
60393         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
60394         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
60395         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
60396         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
60397         * doc/posix-functions/wcscspn.texi: Mention the new module.
60399 2011-02-06  Bruno Haible  <bruno@clisp.org>
60401         New module 'wcsrchr'.
60402         * modules/wcsrchr: New file.
60403         * lib/wchar.in.h (wcsrchr): New declaration.
60404         * lib/wcsrchr.c: New file.
60405         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
60406         * m4/wcsrchr.m4: New file.
60407         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
60408         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
60409         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
60410         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
60411         * doc/posix-functions/wcsrchr.texi: Mention the new module.
60413 2011-02-06  Bruno Haible  <bruno@clisp.org>
60415         New module 'wcschr'.
60416         * modules/wcschr: New file.
60417         * lib/wchar.in.h (wcschr): New declaration.
60418         * lib/wcschr.c: New file.
60419         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
60420         * m4/wcschr.m4: New file.
60421         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
60422         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
60423         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
60424         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
60425         * doc/posix-functions/wcschr.texi: Mention the new module.
60427 2011-02-06  Bruno Haible  <bruno@clisp.org>
60429         New module 'wcsdup'.
60430         * modules/wcsdup: New file.
60431         * lib/wchar.in.h (wcsdup): New declaration.
60432         * lib/wcsdup.c: New file.
60433         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
60434         * m4/wcsdup.m4: New file.
60435         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
60436         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
60437         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
60438         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
60439         * doc/posix-functions/wcsdup.texi: Mention the new module.
60441 2011-02-06  Bruno Haible  <bruno@clisp.org>
60443         New module 'wcsxfrm'.
60444         * modules/wcsxfrm: New file.
60445         * lib/wchar.in.h (wcsxfrm): New declaration.
60446         * lib/wcsxfrm.c: New file.
60447         * lib/wcsxfrm-impl.h: New file.
60448         * m4/wcsxfrm.m4: New file.
60449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
60450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
60451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
60452         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
60453         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
60455 2011-02-06  Bruno Haible  <bruno@clisp.org>
60457         New module 'wcscoll'.
60458         * modules/wcscoll: New file.
60459         * lib/wchar.in.h (wcscoll): New declaration.
60460         * lib/wcscoll.c: New file.
60461         * lib/wcscoll-impl.h: New file.
60462         * m4/wcscoll.m4: New file.
60463         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
60464         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
60465         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
60466         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
60467         * doc/posix-functions/wcscoll.texi: Mention the new module.
60469 2011-02-06  Bruno Haible  <bruno@clisp.org>
60471         New module 'wcsncasecmp'.
60472         * modules/wcsncasecmp: New file.
60473         * lib/wchar.in.h (wcsncasecmp): New declaration.
60474         * lib/wcsncasecmp.c: New file.
60475         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
60476         * m4/wcsncasecmp.m4: New file.
60477         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
60478         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
60479         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
60480         HAVE_WCSNCASECMP.
60481         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
60482         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
60484 2011-02-06  Bruno Haible  <bruno@clisp.org>
60486         New module 'wcscasecmp'.
60487         * modules/wcscasecmp: New file.
60488         * lib/wchar.in.h (wcscasecmp): New declaration.
60489         * lib/wcscasecmp.c: New file.
60490         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
60491         * m4/wcscasecmp.m4: New file.
60492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
60493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
60494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
60495         HAVE_WCSCASECMP.
60496         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
60497         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
60499 2011-02-05  Bruno Haible  <bruno@clisp.org>
60501         New module 'wcsncmp'.
60502         * modules/wcsncmp: New file.
60503         * lib/wchar.in.h (wcsncmp): New declaration.
60504         * lib/wcsncmp.c: New file.
60505         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
60506         * m4/wcsncmp.m4: New file.
60507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
60508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
60509         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
60510         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
60511         * doc/posix-functions/wcsncmp.texi: Mention the new module.
60513 2011-02-05  Bruno Haible  <bruno@clisp.org>
60515         New module 'wcscmp'.
60516         * modules/wcscmp: New file.
60517         * lib/wchar.in.h (wcscmp): New declaration.
60518         * lib/wcscmp.c: New file.
60519         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
60520         * m4/wcscmp.m4: New file.
60521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
60522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
60523         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
60524         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
60525         * doc/posix-functions/wcscmp.texi: Mention the new module.
60527 2011-02-05  Bruno Haible  <bruno@clisp.org>
60529         New module 'wcsncat'.
60530         * modules/wcsncat: New file.
60531         * lib/wchar.in.h (wcsncat): New declaration.
60532         * lib/wcsncat.c: New file.
60533         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
60534         * m4/wcsncat.m4: New file.
60535         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
60536         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
60537         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
60538         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
60539         * doc/posix-functions/wcsncat.texi: Mention the new module.
60541 2011-02-05  Bruno Haible  <bruno@clisp.org>
60543         New module 'wcscat'.
60544         * modules/wcscat: New file.
60545         * lib/wchar.in.h (wcscat): New declaration.
60546         * lib/wcscat.c: New file.
60547         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
60548         * m4/wcscat.m4: New file.
60549         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
60550         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
60551         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
60552         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
60553         * doc/posix-functions/wcscat.texi: Mention the new module.
60555 2011-02-05  Bruno Haible  <bruno@clisp.org>
60557         New module 'wcpncpy'.
60558         * modules/wcpncpy: New file.
60559         * lib/wchar.in.h (wcpncpy): New declaration.
60560         * lib/wcpncpy.c: New file.
60561         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
60562         * m4/wcpncpy.m4: New file.
60563         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
60564         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
60565         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
60566         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
60567         * doc/posix-functions/wcpncpy.texi: Mention the new module.
60569 2011-02-05  Bruno Haible  <bruno@clisp.org>
60571         New module 'wcsncpy'.
60572         * modules/wcsncpy: New file.
60573         * lib/wchar.in.h (wcsncpy): New declaration.
60574         * lib/wcsncpy.c: New file.
60575         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
60576         * m4/wcsncpy.m4: New file.
60577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
60578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
60579         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
60580         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
60581         * doc/posix-functions/wcsncpy.texi: Mention the new module.
60583 2011-02-05  Bruno Haible  <bruno@clisp.org>
60585         New module 'wcpcpy'.
60586         * modules/wcpcpy: New file.
60587         * lib/wchar.in.h (wcpcpy): New declaration.
60588         * lib/wcpcpy.c: New file.
60589         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
60590         * m4/wcpcpy.m4: New file.
60591         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
60592         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
60593         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
60594         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
60595         * doc/posix-functions/wcpcpy.texi: Mention the new module.
60597 2011-02-05  Bruno Haible  <bruno@clisp.org>
60599         New module 'wcscpy'.
60600         * modules/wcscpy: New file.
60601         * lib/wchar.in.h (wcscpy): New declaration.
60602         * lib/wcscpy.c: New file.
60603         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
60604         * m4/wcscpy.m4: New file.
60605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
60606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
60607         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
60608         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
60609         * doc/posix-functions/wcscpy.texi: Mention the new module.
60611 2011-02-05  Bruno Haible  <bruno@clisp.org>
60613         New module 'wcsnlen'.
60614         * modules/wcsnlen: New file.
60615         * lib/wchar.in.h (wcsnlen): New declaration.
60616         * lib/wcsnlen.c: New file.
60617         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
60618         * m4/wcsnlen.m4: New file.
60619         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
60620         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
60621         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
60622         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
60623         * doc/posix-functions/wcsnlen.texi: Mention the new module.
60625 2011-02-05  Bruno Haible  <bruno@clisp.org>
60627         New module 'wcslen'.
60628         * modules/wcslen: New file.
60629         * lib/wchar.in.h (wcslen): New declaration.
60630         * lib/wcslen.c: New file.
60631         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
60632         * m4/wcslen.m4: New file.
60633         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
60634         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
60635         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
60636         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
60637         * doc/posix-functions/wcslen.texi: Mention the new module.
60639 2011-02-05  Bruno Haible  <bruno@clisp.org>
60641         New module 'wmemset'.
60642         * modules/wmemset: New file.
60643         * lib/wchar.in.h (wmemset): New declaration.
60644         * lib/wmemset.c: New file.
60645         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
60646         * m4/wmemset.m4: New file.
60647         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
60648         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
60649         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
60650         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
60651         * doc/posix-functions/wmemset.texi: Mention the new module.
60653 2011-02-05  Bruno Haible  <bruno@clisp.org>
60655         New module 'wmemmove'.
60656         * modules/wmemmove: New file.
60657         * lib/wchar.in.h (wmemmove): New declaration.
60658         * lib/wmemmove.c: New file.
60659         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
60660         * m4/wmemmove.m4: New file.
60661         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
60662         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
60663         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
60664         HAVE_WMEMMOVE.
60665         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
60666         * doc/posix-functions/wmemmove.texi: Mention the new module.
60668 2011-02-05  Bruno Haible  <bruno@clisp.org>
60670         New module 'wmemcpy'.
60671         * modules/wmemcpy: New file.
60672         * lib/wchar.in.h (wmemcpy): New declaration.
60673         * lib/wmemcpy.c: New file.
60674         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
60675         * m4/wmemcpy.m4: New file.
60676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
60677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
60678         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
60679         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
60680         * doc/posix-functions/wmemcpy.texi: Mention the new module.
60682 2011-02-05  Bruno Haible  <bruno@clisp.org>
60684         New module 'wmemcmp'.
60685         * modules/wmemcmp: New file.
60686         * lib/wchar.in.h (wmemcmp): New declaration.
60687         * lib/wmemcmp.c: New file.
60688         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
60689         * m4/wmemcmp.m4: New file.
60690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
60691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
60692         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
60693         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
60694         * doc/posix-functions/wmemcmp.texi: Mention the new module.
60696 2011-02-07  Jim Meyering  <meyering@redhat.com>
60698         di-set, ino-map: new modules, from coreutils
60699         * lib/di-set.c: New file.
60700         * lib/di-set.h: Likewise.
60701         * lib/ino-map.c: Likewise.
60702         * lib/ino-map.h: Likewise.
60703         * modules/di-set: Likewise.
60704         * modules/di-set-tests: Likewise.
60705         * modules/ino-map: Likewise.
60706         * modules/ino-map-tests: Likewise.
60707         * tests/test-di-set.c: Likewise.
60708         * tests/test-ino-map.c: Likewise.
60710 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
60712         getloadavg: merge minor changes from Emacs
60714         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
60715         (getloadavg): Use memset, not bzero.
60717         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
60718         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
60719         clash (bug#86).
60721 2010-11-14  Bruno Haible  <bruno@clisp.org>
60723         Allow multiple gnulib generated replacements to coexist.
60724         * lib/getopt.in.h (struct option): Avoid identical redefinition.
60725         * lib/inttypes.in.h (imaxdiv_t): Likewise.
60726         * lib/langinfo.in.h (nl_item): Likewise.
60727         * lib/math.in.h (_NaN, NAN): Likewise.
60728         * lib/netdb.in.h (struct addrinfo): Likewise.
60729         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
60730         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
60731         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
60732         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
60733         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
60734         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
60735         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
60736         pthread_mutexattr_init, pthread_mutexattr_settype,
60737         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
60738         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
60739         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
60740         pthread_spin_trylock, pthread_spin_unlock): Likewise.
60741         * lib/sched.in.h (struct sched_param): Likewise.
60742         * lib/se-selinux.in.h (security_class_t, security_context_t,
60743         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
60744         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
60745         lsetfilecon, fsetfilecon, security_check_context,
60746         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
60747         Likewise.
60748         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
60749         Likewise.
60750         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
60751         _gl_function_taking_int_returning_void_t, union sigval,
60752         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
60753         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
60754         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60755         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
60756         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
60757         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
60758         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
60759         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
60760         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
60761         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
60762         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
60763         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
60764         socklen_t, rpl_fd_isset): Likewise.
60765         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
60766         * lib/sys_time.in.h (struct timeval): Likewise.
60767         * lib/sys_times.in.h (struct tms): Likewise.
60768         * lib/sys_utsname.in.h (struct utsname):
60769         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
60770         * lib/unistd.in.h (getpagesize): Likewise.
60771         * lib/wchar.in.h (mbstate_t): Likewise.
60772         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60773         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
60774         towlower, towupper): Likewise.
60775         Reported by Sam Steingold <sds@gnu.org>.
60777 2011-02-05  Eric Blake  <eblake@redhat.com>
60779         unsetenv: work around Haiku issues
60780         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
60781         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
60783 2010-12-30  Bruce Korb  <bkorb@gnu.org>
60785         libposix: avoid calling error() within libposix
60786         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
60787         is defined.
60789 2011-02-05  Eric Blake  <eblake@redhat.com>
60791         strerror_r-posix: port to cygwin
60792         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
60793         implementation.
60794         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
60795         * tests/test-strerror_r.c (main): Fix test.
60796         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
60797         issue.
60799 2011-02-05  Bruno Haible  <bruno@clisp.org>
60801         New module 'wmemchr'.
60802         * modules/wmemchr: New file.
60803         * lib/wchar.in.h (wmemchr): New declaration.
60804         * lib/wmemchr.c: New file.
60805         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
60806         * m4/wmemchr.m4: New file.
60807         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
60808         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
60809         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
60810         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
60811         * doc/posix-functions/wmemchr.texi: Mention the new module.
60813 2011-02-04  Eric Blake  <eblake@redhat.com>
60815         fdopendir: detect FreeBSD bug
60816         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
60817         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
60819 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60821         stdbool: do not define HAVE_STDBOOL_H
60822         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
60823         AC_HEADER_STDBOOL.  All uses changed.  Do not define
60824         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
60825         imported from the latest Autoconf git.  It was motivated by Emacs,
60826         which uses gnulib but does not need HAVE_STDBOOL_H.
60828 2011-02-04  Bruno Haible  <bruno@clisp.org>
60830         wcsnrtombs: Prepare for new module wwcsnrtombs.
60831         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
60832         * lib/wcsnrtombs.c: Include it.
60833         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
60835         wcsrtombs: Prepare for new module wwcsrtombs.
60836         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
60837         * lib/wcsrtombs.c: Include it.
60838         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
60840         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
60841         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
60842         * lib/mbsnrtowcs.c: Include it.
60843         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
60845         mbsrtowcs: Prepare for new module mbsrtowwcs.
60846         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
60847         * lib/mbsrtowcs.c: Include it.
60848         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
60850 2011-02-04  Bruno Haible  <bruno@clisp.org>
60852         vasnprintf: Reduce use of malloc for small format strings.
60853         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
60854         (arguments): Add room for the first 7 arguments.
60855         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
60856         (char_directives, u8_directives, u16_directives, u32_directives): Add
60857         room for the first 7 directives.
60858         * lib/printf-parse.c: Include <string.h>.
60859         (PRINTF_PARSE): Change memory handling code so that it uses the first
60860         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
60861         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
60862         Reported by Pádraig Brady <P@draigbrady.com>.
60864 2011-01-31  Eric Blake  <eblake@redhat.com>
60866         dup2: work around Haiku bug
60867         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
60868         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
60869         * doc/posix-functions/dup2.texi (dup2): Document the bug.
60870         * tests/test-dup2.c (main): Enhance test.
60872 2011-01-31  Simon Josefsson  <simon@josefsson.org>
60874         doc: off_t is not available in eglibc 2.11.2 stdio.h.
60875         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
60876         declared by eglibc 2.11.2.
60877         * lib/stdio.in.h: Likewise.
60879 2011-01-31  Eric Blake  <eblake@redhat.com>
60881         ignore-value: add missing test dependency
60882         * tests/test-ignore-value.c: Revert previous change; stdio.h
60883         provides off_t.
60884         * modules/ignore-value-tests (Depends-on): Add missing dependency.
60886 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
60888         mktime: clarify long_int width checking
60889         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
60890         the top level, to make it clearer that the assumption about
60891         long_int width is being checked.  See
60892         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
60894 2011-01-30  Simon Josefsson  <simon@josefsson.org>
60896         ignore-value: Fix self-test.
60897         * tests/test-ignore-value.c: Include sys/types.h for off_t.
60899 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60901         TYPE_MAXIMUM: avoid theoretically undefined behavior
60902         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
60903         negative number, which the C Standard says has undefined behavior.
60904         In practice this is not a problem, but might as well do it by the book.
60905         Reported by Rich Felker and Eric Blake; see
60906         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
60907         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
60908         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60910         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
60911         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60912         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
60914         mktime: #undef mktime before #defining it
60915         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
60917         mktime: systematically normalize tm_isdst comparisons
60918         * lib/mktime.c (isdst_differ): New function.
60919         (__mktime_internal): Use it systematically for all isdst comparisons.
60920         This completes the fix for libc BZ #6723, and removes the need for
60921         normalizing tm_isdst.  See
60922         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
60923         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
60925         mktime: fix some integer overflow issues and sidestep the rest
60927         This was prompted by a bug report by Benjamin Lindner for MinGW
60928         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
60929         His bug is due to signed integer overflow (0 - INT_MIN), and I
60930         I scanned through mktime.c looking for other integer overflow
60931         problems, fixing all the bugs I found.
60933         Although the C Standard says the resulting code is still not safe
60934         in the presence of integer overflow, in practice it should be good
60935         enough for all real-world two's-complement implementations, except
60936         for debugging environments that deliberately trap on integer
60937         overflow (e.g., gcc -ftrapv).
60939         * lib/mktime.c (WRAPV): New macro.
60940         (SHR): Also check that long_int and time_t shift right in the
60941         usual way, before using the fast-but-unportable method.
60942         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
60943         used.  The code already assumed two's complement, so there's
60944         no need to test for alternatives.  All uses removed.
60945         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
60946         the C standard.  Problem reported by Rich Felker in
60947         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
60948         (twos_complement_arithmetic): Also check long_int and time_t.
60949         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
60950         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
60951         (__mktime_internal): Avoid integer overflow with unary subtraction
60952         in two instances where -1 - X is an adequate replacement for -X,
60953         since the calculations are approximate.
60955 2011-01-29  Eric Blake  <eblake@redhat.com>
60957         mktime: avoid infinite loop
60958         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
60959         type; behavior is still undefined but portable to all known targets.
60960         Reported by Rich Felker.
60962 2011-01-29  Simon Josefsson  <simon@josefsson.org>
60964         rename, unlink, same-inode: Relicense.
60965         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
60966         * modules/unlink (License): Likewise.
60967         * modules/same-inode (License): Likewise.
60969 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60971         mktime: avoid problems on NetBSD 5 / i386
60972         * lib/mktime.c (long_int): New type.  This works around a problem
60973         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
60974         but time_t is 64 bits, and where I expect the existing code is
60975         wrong in some cases.
60976         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
60977         (ydhms_diff): Bring back the compile-time check for wide-enough
60978         year and yday.
60980         mktime: fix misspelling in comment
60981         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
60982         This merges all recent glibc changes of importance.
60984 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60986         move-if-change: cope with concurrent mv of identical file.
60987         * build-aux/move-if-change (CMPPROG): Accept environment
60988         variable as an override for `cmp'.
60989         (usage): Document CMPPROG.
60990         Adjust comparison to drop stdout.  Cope with failure of mv if
60991         the target file exists and is identical to the source, for
60992         parallel builds.
60993         Report from H.J. Lu against binutils in PR binutils/12283.
60995 2011-01-28  Bruce Korb  <bkorb@gnu.org>
60997         * users.txt: Mention sharutils.
60999 2011-01-28  Simon Josefsson  <simon@josefsson.org>
61001         * users.txt: Mention OATH Toolkit.
61003 2011-01-27  Bruno Haible  <bruno@clisp.org>
61005         Prepare for supporting FreeBSD 10.
61006         * build-aux/config.libpath: Remove handling of freebsd1*.
61008 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
61010         Prepare for supporting FreeBSD 10.
61011         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
61012         match FreeBSD 10.0.
61014 2011-01-27  Bruno Haible  <bruno@clisp.org>
61016         vma-iter, get-rusage-as: Add OpenBSD support.
61017         * modules/vma-iter (configure.ac): Test for mquery.
61018         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
61019         * lib/vma-iter.c: Include <sys/mman.h>.
61020         (vma_iterate): Add an implementation based on mquery().
61021         * lib/resource-ext.h (get_rusage_as): Update comments.
61022         * lib/get-rusage-as.c: Likewise.
61023         * lib/get-rusage-data.c: Likewise.
61025 2011-01-26  Karl Berry  <karl@gnu.org>
61027         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
61028         variables to make it easier to override the makeinfo program used.
61030 2011-01-26  Eric Blake  <eblake@redhat.com>
61032         fcntl: work around Haiku F_DUPFD bugs
61033         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
61034         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
61035         cloexec bit on duplication.
61036         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
61038 2011-01-26  Bruno Haible  <bruno@clisp.org>
61040         Enable memory leak tests on AIX.
61041         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
61042         * tests/test-fprintf-posix3.c (main): Likewise.
61044 2011-01-26  Bruno Haible  <bruno@clisp.org>
61046         Tests for module 'get-rusage-data'.
61047         * modules/get-rusage-data-tests: New file.
61048         * tests/test-get-rusage-data.c: New file.
61050         New module 'get-rusage-data'.
61051         * lib/resource-ext.h (get_rusage_data): New declaration.
61052         * lib/get-rusage-data.c: New file.
61053         * modules/get-rusage-data: New file.
61055 2011-01-25  Bruno Haible  <bruno@clisp.org>
61057         get-rusage-as: Allow for easier testing.
61058         * lib/resource-ext.h (get_rusage_as): Add comment.
61059         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
61060         (main): New function for interactive testing.
61062 2011-01-25  Bruno Haible  <bruno@clisp.org>
61064         vma-iter: Treat Haiku like BeOS.
61065         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
61066         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
61068 2011-01-25  Eric Blake  <eblake@redhat.com>
61070         c-stack: fix regression on cygwin when libsigsegv is present
61071         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
61073 2011-01-24  Bruno Haible  <bruno@clisp.org>
61075         vma-iter: Avoid empty intervals.
61076         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
61077         on an empty interval.
61079 2011-01-24  Jim Meyering  <meyering@redhat.com>
61081         u64: remove unnecessary #include
61082         * lib/u64.h: Don't include <stddef.h>.  It was not used.
61084 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61086         Allow the user to avoid the HAVE_RAW_DECL_* macros.
61087         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
61089 2011-01-23  Bruno Haible  <bruno@clisp.org>
61091         New module 'vma-iter'.
61092         * lib/vma-iter.h: New file.
61093         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
61094         * modules/vma-iter: New file.
61095         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
61096         for get_rusage_as_via_iterator.
61097         (vma_iterate_callback): New function.
61098         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
61099         * modules/get-rusage-as (Depends-on): Add vma-iter.
61101 2011-01-23  Bruno Haible  <bruno@clisp.org>
61103         uninorm: Tweak includes.
61104         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
61105         Reported by Jim Meyering.
61107 2011-01-23  Bruno Haible  <bruno@clisp.org>
61109         get-rusage-as: Improve on NetBSD.
61110         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
61111         /proc, like on FreeBSD.
61113 2011-01-23  Jim Meyering  <meyering@redhat.com>
61115         xreadlink.h: remove unnecessary #include
61116         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
61118         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
61119         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
61121 2011-01-23  Bruno Haible  <bruno@clisp.org>
61123         get-rusage-as: Fix bug.
61124         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
61125         original limit when aborting the first loop.
61127 2011-01-23  Bruno Haible  <bruno@clisp.org>
61129         wctype: Ensure valid C syntax.
61130         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
61131         unconditionally, instead of gl_NEXT_HEADERS conditionally.
61133 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
61135         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
61136         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
61137         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
61138         as they are needed only for configure's test case.
61139         This removes two unnecessary symbols from config.h.
61141         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
61142         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
61143         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
61144         AC_CHECK_HEADERS_ONCE on a header that we also invoke
61145         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
61146         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
61147         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
61148         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
61149         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
61150         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61151         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
61152         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61153         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
61154         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
61155         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
61156         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
61157         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
61158         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
61160 2011-01-21  Eric Blake  <eblake@redhat.com>
61162         maintainer-makefile: work with older git for submodule check
61163         * top/maint.mk (public-submodule-commit): Rewrite to avoid
61164         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
61165         Reported by Matthias Bolte.
61167         bootstrap: minor portability fixes
61168         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
61169         (usage): Omit leading capital and trailing . on help phrases, per
61170         GNU Coding Standards.
61171         (check_versions, top level): Prefix messages with script name.
61173 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
61175         bootstrap: support --no-git option
61176         * build-aux/bootstrap: Add --no-git option, to be used when
61177         --gnulib-srcdir points to the exact desired checkout.
61179 2011-01-21  Eric Blake  <eblake@redhat.com>
61181         strerror_r-posix: work with glibc 2.13
61182         * lib/strerror_r.c (strerror_r): Fix return type.
61184 2011-01-21  Pádraig Brady  <P@draigBrady.com>
61185             Bruno Haible  <bruno@clisp.org>
61187         uN_strstr: New unit tests.
61188         * modules/unistr/u8-strstr-tests: New file.
61189         * modules/unistr/u16-strstr-tests: New file.
61190         * modules/unistr/u32-strstr-tests: New file.
61191         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
61192         * tests/unistr/test-u8-strstr.c: New file.
61193         * tests/unistr/test-u16-strstr.c: New file.
61194         * tests/unistr/test-u32-strstr.c: New file.
61196 2011-01-21  Pádraig Brady  <P@draigBrady.com>
61197             Bruno Haible  <bruno@clisp.org>
61199         Make uN_strstr functions O(n) worst-case.
61200         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
61201         16-bit and 32-bit unit cases, use the unibyte algorithm from
61202         lib/mbsstr.c.
61203         * lib/unistr/u8-strstr.c: Include <string.h>.
61204         (UNIT_IS_UINT8_T): New macro.
61205         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
61206         (U_STRLEN, U_STRNLEN): New macros.
61207         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
61208         (U_STRLEN, U_STRNLEN): New macros.
61209         * modules/unistr/u8-strstr (Depends-on): Add strstr.
61210         (configure.ac): Update required libunistring version.
61211         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
61212         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
61213         malloca.
61214         (configure.ac): Update required libunistring version.
61215         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
61216         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
61217         malloca.
61218         (configure.ac): Update required libunistring version.
61220 2011-01-21  Pádraig Brady  <P@draigBrady.com>
61221             Bruno Haible  <bruno@clisp.org>
61223         Prepare for faster uN_strstr functions.
61224         * lib/str-kmp.h: Support definable UNITs.
61225         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
61226         needle_len argument.
61227         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
61228         * lib/mbscasestr.c (mbscasestr): Likewise.
61230 2011-01-21  Pádraig Brady  <P@draigBrady.com>
61232         malloca-tests: make faster by unsetting MALLOC_PERTURB_
61233         * tests/test-malloca.c (main): Unset the environment variable
61234         to greatly speed up the test.
61235         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
61236         * modules/malloca-tests: Depend on unsetenv.
61238 2011-01-21  Pádraig Brady  <P@draigBrady.com>
61240         ignore-value: remove stdint dependency
61241         * lib/ignore-value.h: Remove <stdint.h>
61242         * modules/ignore-value: Remove stdint dependency.
61244 2011-01-21  Jim Meyering  <meyering@redhat.com>
61246         maint.mk: adjust variable name to be consistent with other gl_ vars
61247         * top/maint.mk (gl_public_submodule_commit): Rename the variable
61248         to be lower case.
61250 2011-01-20  Jim Meyering  <meyering@redhat.com>
61252         maint.mk: make "check" depend on public-submodule-commit by default
61253         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
61255 2011-01-20  Bruno Haible  <bruno@clisp.org>
61257         mbfile, mbiter: Complete change from 2008-12-21.
61258         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
61259         * m4/mbiter.m4 (gl_MBITER): Likewise.
61261 2011-01-20  Jim Meyering  <meyering@redhat.com>
61263         init.sh: insert space between each function name and "()"
61264         * tests/init.sh: Make it a little easier to see that a function's
61265         name is "warn_", and not "warn" when looking at the first part of
61266         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
61268 2011-01-20  Jim Meyering  <meyering@redhat.com>
61270         mountlist: clean up code formatting
61271         * lib/mountlist.c (read_file_system_list): Split a long line,
61272         correct bracing style, use NULL in place of "(struct statfs *)0",
61273         don't parenthesize return value, add spaces around "=" and after
61274         ";-in-for-stmt".
61276 2011-01-14  Markus Duft  <mduft@gentoo.org>
61278         mountlist: add support for Interix
61279         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
61280         Apply statvfs to all entries of /dev/fs.
61281         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
61282         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
61284 2011-01-20  Jim Meyering  <meyering@redhat.com>
61286         maint.mk: improve the public-submodule-commit rule
61287         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
61288         to suppress printing of its commands... unless V=1.
61289         Add git submodule's --quiet option to suppress printing of e.g.,
61290         "Entering gnulib" output.
61291         "cd" into $(srcdir) before running git submodule.
61293 2011-01-20  Bruno Haible  <bruno@clisp.org>
61295         include_next: Fix bug introduced on 2011-01-18.
61296         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
61297         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
61298         ac_cv_header_... variable if the second argument is not 'check'.
61299         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
61300         gl_NEXT_HEADERS_INTERNAL.
61302 2011-01-20  Bruno Haible  <bruno@clisp.org>
61304         Allow the user to avoid the GNULIB_TEST_* macros.
61305         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
61306         Suggested by Paul Eggert.
61308 2011-01-14  Jim Meyering  <meyering@redhat.com>
61310         bootstrap: avoid failure when there is no .gitmodules file
61311         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
61312         has been assigned to, even when its value is the empty string.
61313         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
61314         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
61315         Reported by John W. Eaton <jwe@gnu.org>.
61317 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61319         assume <ctype.h>, ..., <time.h> exist
61320         For years gnulib has been assuming the existence of the headers
61321         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
61322         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
61323         them, since they don't appear to be needed.
61324         * README (Portability guidelines): Document this.
61325         * lib/flock.c: Assume <fcntl.h> exists.
61326         * lib/regex_internal.h: Assume <locale.h> exists.
61327         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
61328         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
61329         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
61330         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
61331         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
61332         * m4/regex.m4 (gl_REGEX): Likewise.
61333         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
61334         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
61335         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
61336         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
61337         * tests/test-argp.c: Likewise.
61338         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
61340         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
61341         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
61342         AA_APPLE_UNIVERSAL_BUILD.  See
61343         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
61344         * NEWS: Document this.
61346 2011-01-19  Eric Blake  <eblake@redhat.com>
61348         c-stack: assume stack overflow if SA_SIGINFO unsupported
61349         * lib/c-stack.c (SIGACTION_WORKS): Rename...
61350         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
61351         sigaction will work.
61352         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
61353         behavior match Linux.
61354         * tests/test-c-stack.c (main): Prefer NULL for pointers.
61356         stdbool-tests: accommodate Haiku
61357         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
61359         binary-io: fix O_TEXT on Haiku
61360         * modules/binary-io (Depends-on): Add fcntl-h.
61361         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
61362         than blindly undefining O_TEXT.
61363         Reported by Scott McCreary.
61365 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61367         include_next: do not check for standard headers like stddef.h
61369         I found this problem when modifying Emacs to use gnulib.
61370         I noticed that it added HAVE_STDDEF_H to config.h, even though
61371         gnulib always assumes <stddef.h> exists as per README and this
61372         symbol is unnecessary.
61373         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
61374         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
61375         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
61376         faster for headers like stddef.h that are known to exist.
61377         (gl_CHECK_NEXT_HEADERS): Use it.
61378         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
61379         rather than gl_CHECK_NEXT_HEADERS.
61380         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
61381         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
61383 2011-01-18  Eric Blake  <eblake@redhat.com>
61385         ansi-c++-opt: skip C++ dependency style if C++ is unused
61386         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
61387         tests when we know C++ compilation is not desired.
61388         Reported by Scott McCreary.
61390 2011-01-18  Bruno Haible  <bruno@clisp.org>
61392         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
61393         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
61394         (main): Perform test also when getrlimit and setrlimit don't exist or
61395         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
61396         limiting the address space size using setrlimit, compare the address
61397         space size before and after the test.
61398         * tests/test-dprintf-posix2.c: Likewise.
61399         * tests/test-fprintf-posix3.sh: Update skip messages.
61400         * tests/test-dprintf-posix2.sh: Likewise.
61401         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
61402         * modules/dprintf-posix-tests (Depends-on): Likewise.
61403         Reported by Bruce Korb <bkorb@gnu.org> and
61404         Gary V. Vaughan <gary@gnu.org>.
61406 2011-01-18  Bruno Haible  <bruno@clisp.org>
61408         get-rusage-as: Improvement for Cygwin.
61409         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
61410         areas that are merely reserved.
61412 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61414         strftime: remove dependencies on multibyte modules
61416         strftime depended on mbrlen, mbsinit, and wchar, but these modules
61417         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
61418         only if __osf__ is defined, and I suspect OSF doesn't need these
61419         other modules.  If my guess is wrong, we'll need to come up with a
61420         variant of strftime that doesn't need the multibyte modules.
61422         I discovered this problem when attempting modify Emacs to use the
61423         strftime module.  With the previous gnulib, this caused Emacs to
61424         need 31 new files, ranging from lib/config.charset to
61425         m4/wint_t.m4.  This was overkill and I expect would be offputting
61426         to the Emacs maintainers.  After this change, only 6 new files are
61427         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
61428         stdbool.m4, and tm_gmtoff.m4.
61430         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
61431         Suggested by Bruno Haible in
61432         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
61433         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
61434         and do not check for wchar.h.
61435         * modules/strftime (Files): Remove m4/mbstate_t.m4.
61436         (Depends-on): Remove mbrlen, mbsinit, wchar.
61438 2011-01-18  Bruno Haible  <bruno@clisp.org>
61440         Tests for module 'get-rusage-as'.
61441         * modules/get-rusage-as-tests: New file.
61442         * tests/test-get-rusage-as.c: New file.
61444         New module 'get-rusage-as'.
61445         * modules/get-rusage-as: New file.
61446         * lib/resource-ext.h: New file.
61447         * lib/get-rusage-as.c: New file.
61449 2011-01-17  Eric Blake  <eblake@redhat.com>
61451         sigaction: relax license from LGPLv3+ to LGPLv2+
61452         * modules/sigaction (License): Relax to LGPLv2+.
61454 2011-01-14  Bruno Haible  <bruno@clisp.org>
61456         filemode: Make function declarations usable in C++ mode.
61457         * lib/filemode.h: Enclose function declarations in extern "C" block.
61458         Reported by John W. Eaton <jwe@gnu.org>.
61460 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
61462         save-cwd: no longer include "xgetcwd.h"
61463         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
61464         This avoids a compilation failure in projects that use save-cwd
61465         without also using the xgetcwd module.
61467 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61469         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
61470         This is so that a program like Emacs, which needs only dtoastr,
61471         does not have to bother with distributing and compiling ftoastr
61472         and ldtoastr.
61473         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
61474         * modules/dtoastr, modules/ldtoastr: New files.
61475         * modules/ftoastr: Now works just for 'float'.
61476         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
61477         (Makefile.am): Remove ftoastr.h (not needed and no effect),
61478         dtoastr.c, ldtoastr.c.
61480 2011-01-11  Jim Meyering  <meyering@redhat.com>
61482         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
61483         There is no need to work around the lack of the fchdir function,
61484         since gnulib can now provide a replacement when required.
61485         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
61486         * modules/save-cwd (Depends-on): Add fchdir.
61488 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61490         openat, save-cwd: avoid xmalloc
61492         This removes a direct (but undocumented) dependency of openat on
61493         xalloc, along with an indirect dependency via save-cwd.  It also
61494         removes a dependency of save-cwd on xgetcwd, and thereby
61495         indirectly on xalloc.  This change causes the openat substitute
61496         to fall back on save_cwd when memory is tight, and for save_cwd to
61497         fail instead of dying when memory is tight, but that's good enough.
61498         Problem and initial idea for fix reported by Bastien Roucaries in
61499         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
61501         * lib/openat-proc.c: Include stdlib.h (for malloc), not
61502         xalloc.h (for xmalloc).
61503         (openat_proc_name): Use malloc, not xmalloc.
61504         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
61505         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
61507         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
61508         This avoids heap allocation for file names whose lengths are in
61509         the range 512..1023, with the upper bound increasing to at most
61510         4031 depending on the platform's PATH_MAX.  (We do not want
61511         pathmax.h here as it might supply a non-constant PATH_MAX.)
61512         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
61513         Perhaps they should be moved to malloca.h?
61514         (OPENAT_BUFFER_SIZE): Use them.
61516 2011-01-10  Bruno Haible  <bruno@clisp.org>
61518         doc: Update users.txt.
61519         * users.txt: Add recutils.
61521 2011-01-09  Karl Berry  <karl@gnu.org>
61523         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
61525         * doc/configmake.texi: New file.
61526         * doc/gnulib.texi: Include it.
61527         * modules/configmake: Move documentation from here.
61529 2011-01-09  Bruno Haible  <bruno@clisp.org>
61531         Update to Unicode 6.0.0.
61532         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
61533         (get_lbp): Update for Unicode 6.0.0.
61534         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
61535         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
61536         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
61537         U+11001, U+11038..U+11046. Remove U+06DE.
61538         (uc_width): Fix bounds of planes.
61539         * tests/uniwidth/test-uc_width2.sh: Same updates as in
61540         lib/uniwidth/width.c.
61541         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
61542         trailing whitespace removed.
61543         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
61544         without comments, but with the original copyright notice.
61545         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
61546         * lib/unicase/ignorable.h: Likewise.
61547         * lib/unicase/tocasefold.h: Likewise.
61548         * lib/unicase/tolower.h: Likewise.
61549         * lib/unicase/totitle.h: Likewise.
61550         * lib/unicase/toupper.h: Likewise.
61551         * lib/unictype/bidi_of.h: Likewise.
61552         * lib/unictype/blocks.h: Likewise.
61553         * lib/unictype/categ_C.h: Likewise.
61554         * lib/unictype/categ_Cn.h: Likewise.
61555         * lib/unictype/categ_L.h: Likewise.
61556         * lib/unictype/categ_Ll.h: Likewise.
61557         * lib/unictype/categ_Lm.h: Likewise.
61558         * lib/unictype/categ_Lo.h: Likewise.
61559         * lib/unictype/categ_Lu.h: Likewise.
61560         * lib/unictype/categ_M.h: Likewise.
61561         * lib/unictype/categ_Mc.h: Likewise.
61562         * lib/unictype/categ_Me.h: Likewise.
61563         * lib/unictype/categ_Mn.h: Likewise.
61564         * lib/unictype/categ_N.h: Likewise.
61565         * lib/unictype/categ_Nd.h: Likewise.
61566         * lib/unictype/categ_No.h: Likewise.
61567         * lib/unictype/categ_P.h: Likewise.
61568         * lib/unictype/categ_Po.h: Likewise.
61569         * lib/unictype/categ_S.h: Likewise.
61570         * lib/unictype/categ_Sc.h: Likewise.
61571         * lib/unictype/categ_Sk.h: Likewise.
61572         * lib/unictype/categ_Sm.h: Likewise.
61573         * lib/unictype/categ_So.h: Likewise.
61574         * lib/unictype/categ_of.h: Likewise.
61575         * lib/unictype/combining.h: Likewise.
61576         * lib/unictype/ctype_alnum.h: Likewise.
61577         * lib/unictype/ctype_alpha.h: Likewise.
61578         * lib/unictype/ctype_graph.h: Likewise.
61579         * lib/unictype/ctype_lower.h: Likewise.
61580         * lib/unictype/ctype_print.h: Likewise.
61581         * lib/unictype/ctype_punct.h: Likewise.
61582         * lib/unictype/ctype_upper.h: Likewise.
61583         * lib/unictype/decdigit.h: Likewise.
61584         * lib/unictype/digit.h: Likewise.
61585         * lib/unictype/numeric.h: Likewise.
61586         * lib/unictype/pr_alphabetic.h: Likewise.
61587         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61588         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61589         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61590         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61591         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61592         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61593         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61594         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61595         * lib/unictype/pr_case_ignorable.h: Likewise.
61596         * lib/unictype/pr_cased.h: Likewise.
61597         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
61598         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
61599         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
61600         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
61601         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
61602         * lib/unictype/pr_combining.h: Likewise.
61603         * lib/unictype/pr_composite.h: Likewise.
61604         * lib/unictype/pr_currency_symbol.h: Likewise.
61605         * lib/unictype/pr_decimal_digit.h: Likewise.
61606         * lib/unictype/pr_deprecated.h: Likewise.
61607         * lib/unictype/pr_format_control.h: Likewise.
61608         * lib/unictype/pr_grapheme_base.h: Likewise.
61609         * lib/unictype/pr_grapheme_extend.h: Likewise.
61610         * lib/unictype/pr_grapheme_link.h: Likewise.
61611         * lib/unictype/pr_id_continue.h: Likewise.
61612         * lib/unictype/pr_id_start.h: Likewise.
61613         * lib/unictype/pr_ideographic.h: Likewise.
61614         * lib/unictype/pr_lowercase.h: Likewise.
61615         * lib/unictype/pr_math.h: Likewise.
61616         * lib/unictype/pr_numeric.h: Likewise.
61617         * lib/unictype/pr_other_alphabetic.h: Likewise.
61618         * lib/unictype/pr_other_id_continue.h: Likewise.
61619         * lib/unictype/pr_other_math.h: Likewise.
61620         * lib/unictype/pr_punctuation.h: Likewise.
61621         * lib/unictype/pr_sentence_terminal.h: Likewise.
61622         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61623         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61624         * lib/unictype/pr_unified_ideograph.h: Likewise.
61625         * lib/unictype/pr_uppercase.h: Likewise.
61626         * lib/unictype/pr_xid_continue.h: Likewise.
61627         * lib/unictype/pr_xid_start.h: Likewise.
61628         * lib/unictype/scripts.h: Likewise.
61629         * lib/unictype/scripts_byname.gperf: Likewise.
61630         * lib/unictype/sy_java_ident.h: Likewise.
61631         * lib/unigbrk/gbrkprop.h: Likewise.
61632         * lib/unilbrk/lbrkprop1.h: Likewise.
61633         * lib/unilbrk/lbrkprop2.h: Likewise.
61634         * lib/uninorm/decomposition-table2.h: Likewise.
61635         * lib/uniwbrk/wbrkprop.h: Likewise.
61636         * tests/unicase/test-cased.c: Likewise.
61637         * tests/unicase/test-ignorable.c: Likewise.
61638         * tests/unicase/test-uc_tolower.c: Likewise.
61639         * tests/unicase/test-uc_totitle.c: Likewise.
61640         * tests/unicase/test-uc_toupper.c: Likewise.
61641         * tests/unictype/test-categ_C.c: Likewise.
61642         * tests/unictype/test-categ_Cn.c: Likewise.
61643         * tests/unictype/test-categ_L.c: Likewise.
61644         * tests/unictype/test-categ_Ll.c: Likewise.
61645         * tests/unictype/test-categ_Lm.c: Likewise.
61646         * tests/unictype/test-categ_Lo.c: Likewise.
61647         * tests/unictype/test-categ_Lu.c: Likewise.
61648         * tests/unictype/test-categ_M.c: Likewise.
61649         * tests/unictype/test-categ_Mc.c: Likewise.
61650         * tests/unictype/test-categ_Me.c: Likewise.
61651         * tests/unictype/test-categ_Mn.c: Likewise.
61652         * tests/unictype/test-categ_N.c: Likewise.
61653         * tests/unictype/test-categ_Nd.c: Likewise.
61654         * tests/unictype/test-categ_No.c: Likewise.
61655         * tests/unictype/test-categ_P.c: Likewise.
61656         * tests/unictype/test-categ_Po.c: Likewise.
61657         * tests/unictype/test-categ_S.c: Likewise.
61658         * tests/unictype/test-categ_Sc.c: Likewise.
61659         * tests/unictype/test-categ_Sk.c: Likewise.
61660         * tests/unictype/test-categ_Sm.c: Likewise.
61661         * tests/unictype/test-categ_So.c: Likewise.
61662         * tests/unictype/test-ctype_alnum.c: Likewise.
61663         * tests/unictype/test-ctype_alpha.c: Likewise.
61664         * tests/unictype/test-ctype_graph.c: Likewise.
61665         * tests/unictype/test-ctype_lower.c: Likewise.
61666         * tests/unictype/test-ctype_print.c: Likewise.
61667         * tests/unictype/test-ctype_punct.c: Likewise.
61668         * tests/unictype/test-ctype_upper.c: Likewise.
61669         * tests/unictype/test-decdigit.h: Likewise.
61670         * tests/unictype/test-digit.h: Likewise.
61671         * tests/unictype/test-numeric.h: Likewise.
61672         * tests/unictype/test-pr_alphabetic.c: Likewise.
61673         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61674         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61675         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61676         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61677         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61678         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61679         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61680         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61681         * tests/unictype/test-pr_case_ignorable.c: Likewise.
61682         * tests/unictype/test-pr_cased.c: Likewise.
61683         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
61684         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
61685         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
61686         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
61687         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
61688         * tests/unictype/test-pr_combining.c: Likewise.
61689         * tests/unictype/test-pr_composite.c: Likewise.
61690         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61691         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61692         * tests/unictype/test-pr_deprecated.c: Likewise.
61693         * tests/unictype/test-pr_format_control.c: Likewise.
61694         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61695         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61696         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61697         * tests/unictype/test-pr_id_continue.c: Likewise.
61698         * tests/unictype/test-pr_id_start.c: Likewise.
61699         * tests/unictype/test-pr_ideographic.c: Likewise.
61700         * tests/unictype/test-pr_lowercase.c: Likewise.
61701         * tests/unictype/test-pr_math.c: Likewise.
61702         * tests/unictype/test-pr_numeric.c: Likewise.
61703         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61704         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61705         * tests/unictype/test-pr_other_math.c: Likewise.
61706         * tests/unictype/test-pr_punctuation.c: Likewise.
61707         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61708         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61709         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61710         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61711         * tests/unictype/test-pr_uppercase.c: Likewise.
61712         * tests/unictype/test-pr_xid_continue.c: Likewise.
61713         * tests/unictype/test-pr_xid_start.c: Likewise.
61714         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61715         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61716         changes.
61717         * lib/unictype/categ_Cc.h: Likewise.
61718         * lib/unictype/categ_Cf.h: Likewise.
61719         * lib/unictype/categ_Co.h: Likewise.
61720         * lib/unictype/categ_Cs.h: Likewise.
61721         * lib/unictype/categ_Lt.h: Likewise.
61722         * lib/unictype/categ_Nl.h: Likewise.
61723         * lib/unictype/categ_Pc.h: Likewise.
61724         * lib/unictype/categ_Pd.h: Likewise.
61725         * lib/unictype/categ_Pe.h: Likewise.
61726         * lib/unictype/categ_Pf.h: Likewise.
61727         * lib/unictype/categ_Pi.h: Likewise.
61728         * lib/unictype/categ_Ps.h: Likewise.
61729         * lib/unictype/categ_Z.h: Likewise.
61730         * lib/unictype/categ_Zl.h: Likewise.
61731         * lib/unictype/categ_Zp.h: Likewise.
61732         * lib/unictype/categ_Zs.h: Likewise.
61733         * lib/unictype/ctype_blank.h: Likewise.
61734         * lib/unictype/ctype_cntrl.h: Likewise.
61735         * lib/unictype/ctype_digit.h: Likewise.
61736         * lib/unictype/ctype_space.h: Likewise.
61737         * lib/unictype/ctype_xdigit.h: Likewise.
61738         * lib/unictype/mirror.h: Likewise.
61739         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61740         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61741         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61742         * lib/unictype/pr_bidi_control.h: Likewise.
61743         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61744         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61745         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61746         * lib/unictype/pr_bidi_pdf.h: Likewise.
61747         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61748         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61749         * lib/unictype/pr_dash.h: Likewise.
61750         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61751         * lib/unictype/pr_diacritic.h: Likewise.
61752         * lib/unictype/pr_extender.h: Likewise.
61753         * lib/unictype/pr_hex_digit.h: Likewise.
61754         * lib/unictype/pr_hyphen.h: Likewise.
61755         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61756         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61757         * lib/unictype/pr_ignorable_control.h: Likewise.
61758         * lib/unictype/pr_iso_control.h: Likewise.
61759         * lib/unictype/pr_join_control.h: Likewise.
61760         * lib/unictype/pr_left_of_pair.h: Likewise.
61761         * lib/unictype/pr_line_separator.h: Likewise.
61762         * lib/unictype/pr_logical_order_exception.h: Likewise.
61763         * lib/unictype/pr_non_break.h: Likewise.
61764         * lib/unictype/pr_not_a_character.h: Likewise.
61765         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61766         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61767         * lib/unictype/pr_other_id_start.h: Likewise.
61768         * lib/unictype/pr_other_lowercase.h: Likewise.
61769         * lib/unictype/pr_other_uppercase.h: Likewise.
61770         * lib/unictype/pr_paired_punctuation.h: Likewise.
61771         * lib/unictype/pr_paragraph_separator.h: Likewise.
61772         * lib/unictype/pr_pattern_syntax.h: Likewise.
61773         * lib/unictype/pr_pattern_white_space.h: Likewise.
61774         * lib/unictype/pr_private_use.h: Likewise.
61775         * lib/unictype/pr_quotation_mark.h: Likewise.
61776         * lib/unictype/pr_radical.h: Likewise.
61777         * lib/unictype/pr_soft_dotted.h: Likewise.
61778         * lib/unictype/pr_space.h: Likewise.
61779         * lib/unictype/pr_titlecase.h: Likewise.
61780         * lib/unictype/pr_variation_selector.h: Likewise.
61781         * lib/unictype/pr_white_space.h: Likewise.
61782         * lib/unictype/pr_zero_width.h: Likewise.
61783         * lib/unictype/sy_c_ident.h: Likewise.
61784         * lib/unictype/sy_c_whitespace.h: Likewise.
61785         * lib/unictype/sy_java_whitespace.h: Likewise.
61786         * lib/uninorm/composition-table.gperf: Likewise.
61787         * lib/uninorm/decomposition-table1.h: Likewise.
61788         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
61789         LB8.
61790         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61791         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61792         * modules/unictype/*: Bump version number of expected libunistring
61793         version.
61795 2011-01-09  Bruno Haible  <bruno@clisp.org>
61797         Update to Unicode 5.2.0.
61798         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
61799         trailing whitespace removed.
61801 2011-01-09  Bruno Haible  <bruno@clisp.org>
61803         New Unicode character properties, from Unicode 5.2.0.
61804         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
61805         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
61806         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
61807         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
61808         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
61809         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
61810         uc_is_property_cased, uc_is_property_case_ignorable,
61811         uc_is_property_changes_when_lowercased,
61812         uc_is_property_changes_when_uppercased,
61813         uc_is_property_changes_when_titlecased,
61814         uc_is_property_changes_when_casefolded,
61815         uc_is_property_changes_when_casemapped): New declarations.
61816         * lib/unictype/pr_byname.gperf: Add the new properties.
61817         * modules/unictype/property-byname (Depends-on): Depend on the new
61818         properties modules.
61819         * modules/unictype/property-all (Depends-on): Likewise.
61820         * MODULES.html.sh (Unicode string functions): Add
61821         unictype/property-case-ignorable, unictype/property-cased,
61822         unictype/property-changes-when-casefolded,
61823         unictype/property-changes-when-casemapped,
61824         unictype/property-changes-when-lowercased,
61825         unictype/property-changes-when-titlecased,
61826         unictype/property-changes-when-uppercased.
61828         New module 'unictype/property-changes-when-casemapped'.
61829         * modules/unictype/property-changes-when-casemapped: New file.
61830         * lib/unictype/pr_changes_when_casemapped.c: New file.
61831         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
61832         generated by gen-uni-tables.
61833         * modules/unictype/property-changes-when-casemapped-tests: New file.
61834         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
61835         automatically generated by gen-uni-tables.
61837         New module 'unictype/property-changes-when-casefolded'.
61838         * modules/unictype/property-changes-when-casefolded: New file.
61839         * lib/unictype/pr_changes_when_casefolded.c: New file.
61840         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
61841         generated by gen-uni-tables.
61842         * modules/unictype/property-changes-when-casefolded-tests: New file.
61843         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
61844         automatically generated by gen-uni-tables.
61846         New module 'unictype/property-changes-when-titlecased'.
61847         * modules/unictype/property-changes-when-titlecased: New file.
61848         * lib/unictype/pr_changes_when_titlecased.c: New file.
61849         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
61850         generated by gen-uni-tables.
61851         * modules/unictype/property-changes-when-titlecased-tests: New file.
61852         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
61853         automatically generated by gen-uni-tables.
61855         New module 'unictype/property-changes-when-uppercased'.
61856         * modules/unictype/property-changes-when-uppercased: New file.
61857         * lib/unictype/pr_changes_when_uppercased.c: New file.
61858         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
61859         generated by gen-uni-tables.
61860         * modules/unictype/property-changes-when-uppercased-tests: New file.
61861         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
61862         automatically generated by gen-uni-tables.
61864         New module 'unictype/property-changes-when-lowercased'.
61865         * modules/unictype/property-changes-when-lowercased: New file.
61866         * lib/unictype/pr_changes_when_lowercased.c: New file.
61867         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
61868         generated by gen-uni-tables.
61869         * modules/unictype/property-changes-when-lowercased-tests: New file.
61870         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
61871         automatically generated by gen-uni-tables.
61873         New module 'unictype/property-case-ignorable'.
61874         * modules/unictype/property-case-ignorable: New file.
61875         * lib/unictype/pr_case_ignorable.c: New file.
61876         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
61877         by gen-uni-tables.
61878         * modules/unictype/property-case-ignorable-tests: New file.
61879         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
61880         generated by gen-uni-tables.
61882         New module 'unictype/property-cased'.
61883         * modules/unictype/property-cased: New file.
61884         * lib/unictype/pr_cased.c: New file.
61885         * lib/unictype/pr_cased.h: New file, automatically generated by
61886         gen-uni-tables.
61887         * modules/unictype/property-cased-tests: New file.
61888         * tests/unictype/test-pr_cased.c: New file, automatically generated by
61889         gen-uni-tables.
61891 2011-01-09  Bruno Haible  <bruno@clisp.org>
61893         Update to Unicode 5.2.0.
61894         * lib/gen-uni-tables.c (output_predicate, output_category,
61895         output_combclass, output_bidi_category, output_decimal_digit_test,
61896         output_decimal_digit, output_digit_test, output_digit,
61897         output_numeric_test, output_numeric, output_mirror, output_scripts,
61898         output_scripts_byname, output_blocks, output_ident_category): Fix
61899         comment header.
61900         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
61901         get_wbp.
61902         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
61903         items.
61904         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
61905         Changes_When_Lowercased, Changes_When_Uppercased,
61906         Changes_When_Titlecased, Changes_When_Casefolded,
61907         Changes_When_Casemapped.
61908         (is_property_alphabetic, is_property_default_ignorable_code_point):
61909         Update for Unicode 5.2.0.
61910         (is_property_cased, is_property_case_ignorable,
61911         is_property_changes_when_lowercased,
61912         is_property_changes_when_uppercased,
61913         is_property_changes_when_titlecased,
61914         is_property_changes_when_casefolded,
61915         is_property_changes_when_casemapped): New functions.
61916         (output_properties): Output also the properties cased, case_ignorable,
61917         changes_when_lowercased, changes_when_uppercased,
61918         changes_when_titlecased, changes_when_casefolded,
61919         changes_when_casemapped.
61920         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
61921         Unicode TR#11 revision 17 -> 19.
61922         (LBP_CP): New enumeration value.
61923         (LBP_*): Adjust values accordingly.
61924         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61925         TR#14 revision 22 -> 24.
61926         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
61927         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
61928         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61929         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
61930         is_WBP_MIDLETTER.
61931         (output_composition_tables): Allow for 24 bits instead of 16 bits in
61932         the code1 and code2 of each composition rule.
61933         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
61934         * lib/unicase/ignorable.h: Likewise.
61935         * lib/unicase/tocasefold.h: Likewise.
61936         * lib/unicase/tolower.h: Likewise.
61937         * lib/unicase/totitle.h: Likewise.
61938         * lib/unicase/toupper.h: Likewise.
61939         * lib/unictype/bidi_of.h: Likewise.
61940         * lib/unictype/blocks.h: Likewise.
61941         * lib/unictype/categ_C.h: Likewise.
61942         * lib/unictype/categ_Cf.h: Likewise.
61943         * lib/unictype/categ_Cn.h: Likewise.
61944         * lib/unictype/categ_L.h: Likewise.
61945         * lib/unictype/categ_Ll.h: Likewise.
61946         * lib/unictype/categ_Lm.h: Likewise.
61947         * lib/unictype/categ_Lo.h: Likewise.
61948         * lib/unictype/categ_Lu.h: Likewise.
61949         * lib/unictype/categ_M.h: Likewise.
61950         * lib/unictype/categ_Mc.h: Likewise.
61951         * lib/unictype/categ_Mn.h: Likewise.
61952         * lib/unictype/categ_N.h: Likewise.
61953         * lib/unictype/categ_Nd.h: Likewise.
61954         * lib/unictype/categ_Nl.h: Likewise.
61955         * lib/unictype/categ_No.h: Likewise.
61956         * lib/unictype/categ_P.h: Likewise.
61957         * lib/unictype/categ_Pd.h: Likewise.
61958         * lib/unictype/categ_Po.h: Likewise.
61959         * lib/unictype/categ_S.h: Likewise.
61960         * lib/unictype/categ_Sc.h: Likewise.
61961         * lib/unictype/categ_So.h: Likewise.
61962         * lib/unictype/categ_of.h: Likewise.
61963         * lib/unictype/combining.h: Likewise.
61964         * lib/unictype/ctype_alnum.h: Likewise.
61965         * lib/unictype/ctype_alpha.h: Likewise.
61966         * lib/unictype/ctype_graph.h: Likewise.
61967         * lib/unictype/ctype_lower.h: Likewise.
61968         * lib/unictype/ctype_print.h: Likewise.
61969         * lib/unictype/ctype_punct.h: Likewise.
61970         * lib/unictype/ctype_upper.h: Likewise.
61971         * lib/unictype/decdigit.h: Likewise.
61972         * lib/unictype/digit.h: Likewise.
61973         * lib/unictype/numeric.h: Likewise.
61974         * lib/unictype/pr_alphabetic.h: Likewise.
61975         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61976         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61977         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61978         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61979         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61980         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61981         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61982         * lib/unictype/pr_combining.h: Likewise.
61983         * lib/unictype/pr_composite.h: Likewise.
61984         * lib/unictype/pr_currency_symbol.h: Likewise.
61985         * lib/unictype/pr_dash.h: Likewise.
61986         * lib/unictype/pr_decimal_digit.h: Likewise.
61987         * lib/unictype/pr_deprecated.h: Likewise.
61988         * lib/unictype/pr_diacritic.h: Likewise.
61989         * lib/unictype/pr_extender.h: Likewise.
61990         * lib/unictype/pr_grapheme_base.h: Likewise.
61991         * lib/unictype/pr_grapheme_extend.h: Likewise.
61992         * lib/unictype/pr_grapheme_link.h: Likewise.
61993         * lib/unictype/pr_id_continue.h: Likewise.
61994         * lib/unictype/pr_id_start.h: Likewise.
61995         * lib/unictype/pr_ideographic.h: Likewise.
61996         * lib/unictype/pr_ignorable_control.h: Likewise.
61997         * lib/unictype/pr_logical_order_exception.h: Likewise.
61998         * lib/unictype/pr_lowercase.h: Likewise.
61999         * lib/unictype/pr_numeric.h: Likewise.
62000         * lib/unictype/pr_other_alphabetic.h: Likewise.
62001         * lib/unictype/pr_punctuation.h: Likewise.
62002         * lib/unictype/pr_sentence_terminal.h: Likewise.
62003         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62004         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62005         * lib/unictype/pr_unified_ideograph.h: Likewise.
62006         * lib/unictype/pr_uppercase.h: Likewise.
62007         * lib/unictype/pr_xid_continue.h: Likewise.
62008         * lib/unictype/pr_xid_start.h: Likewise.
62009         * lib/unictype/pr_zero_width.h: Likewise.
62010         * lib/unictype/scripts.h: Likewise.
62011         * lib/unictype/scripts_byname.gperf: Likewise.
62012         * lib/unictype/sy_java_ident.h: Likewise.
62013         * lib/unigbrk/gbrkprop.h: Likewise.
62014         * lib/unilbrk/lbrkprop1.h: Likewise.
62015         * lib/unilbrk/lbrkprop2.h: Likewise.
62016         * lib/unilbrk/lbrktables.h: Likewise.
62017         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
62018         LBP_CP. Implement rule LB30.
62019         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
62020         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
62021         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
62022         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
62023         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
62024         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
62025         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
62026         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
62027         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
62028         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
62029         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
62030         bits instead of 16 bits in the code1 and code2 of each composition
62031         rule.
62032         (uc_composition): Update for Unicode 5.2.0.
62033         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
62034         * lib/uninorm/decomposition-table2.h: Likewise.
62035         * lib/uniwbrk/wbrkprop.h: Likewise.
62036         * tests/unicase/test-cased.c: Likewise.
62037         * tests/unicase/test-ignorable.c: Likewise.
62038         * tests/unicase/test-uc_tolower.c: Likewise.
62039         * tests/unicase/test-uc_totitle.c: Likewise.
62040         * tests/unicase/test-uc_toupper.c: Likewise.
62041         * tests/unictype/test-categ_C.c: Likewise.
62042         * tests/unictype/test-categ_Cf.c: Likewise.
62043         * tests/unictype/test-categ_Cn.c: Likewise.
62044         * tests/unictype/test-categ_L.c: Likewise.
62045         * tests/unictype/test-categ_Ll.c: Likewise.
62046         * tests/unictype/test-categ_Lm.c: Likewise.
62047         * tests/unictype/test-categ_Lo.c: Likewise.
62048         * tests/unictype/test-categ_Lu.c: Likewise.
62049         * tests/unictype/test-categ_M.c: Likewise.
62050         * tests/unictype/test-categ_Mc.c: Likewise.
62051         * tests/unictype/test-categ_Mn.c: Likewise.
62052         * tests/unictype/test-categ_N.c: Likewise.
62053         * tests/unictype/test-categ_Nd.c: Likewise.
62054         * tests/unictype/test-categ_Nl.c: Likewise.
62055         * tests/unictype/test-categ_No.c: Likewise.
62056         * tests/unictype/test-categ_P.c: Likewise.
62057         * tests/unictype/test-categ_Pd.c: Likewise.
62058         * tests/unictype/test-categ_Po.c: Likewise.
62059         * tests/unictype/test-categ_S.c: Likewise.
62060         * tests/unictype/test-categ_Sc.c: Likewise.
62061         * tests/unictype/test-categ_So.c: Likewise.
62062         * tests/unictype/test-ctype_alnum.c: Likewise.
62063         * tests/unictype/test-ctype_alpha.c: Likewise.
62064         * tests/unictype/test-ctype_graph.c: Likewise.
62065         * tests/unictype/test-ctype_lower.c: Likewise.
62066         * tests/unictype/test-ctype_print.c: Likewise.
62067         * tests/unictype/test-ctype_punct.c: Likewise.
62068         * tests/unictype/test-ctype_upper.c: Likewise.
62069         * tests/unictype/test-decdigit.h: Likewise.
62070         * tests/unictype/test-digit.h: Likewise.
62071         * tests/unictype/test-numeric.h: Likewise.
62072         * tests/unictype/test-pr_alphabetic.c: Likewise.
62073         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62074         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62075         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62076         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62077         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62078         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62079         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62080         * tests/unictype/test-pr_combining.c: Likewise.
62081         * tests/unictype/test-pr_composite.c: Likewise.
62082         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62083         * tests/unictype/test-pr_dash.c: Likewise.
62084         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62085         * tests/unictype/test-pr_deprecated.c: Likewise.
62086         * tests/unictype/test-pr_diacritic.c: Likewise.
62087         * tests/unictype/test-pr_extender.c: Likewise.
62088         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62089         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62090         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62091         * tests/unictype/test-pr_id_continue.c: Likewise.
62092         * tests/unictype/test-pr_id_start.c: Likewise.
62093         * tests/unictype/test-pr_ideographic.c: Likewise.
62094         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62095         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62096         * tests/unictype/test-pr_lowercase.c: Likewise.
62097         * tests/unictype/test-pr_numeric.c: Likewise.
62098         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62099         * tests/unictype/test-pr_punctuation.c: Likewise.
62100         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62101         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62102         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62103         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62104         * tests/unictype/test-pr_uppercase.c: Likewise.
62105         * tests/unictype/test-pr_xid_continue.c: Likewise.
62106         * tests/unictype/test-pr_xid_start.c: Likewise.
62107         * tests/unictype/test-pr_zero_width.c: Likewise.
62108         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
62109         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
62110         changed behaviour: line breaking is now disallowed between a letter
62111         or '=' and '('.
62112         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
62113         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
62114         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
62115         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
62116         * tests/uniwidth/test-uc_width2.sh: Same updates as in
62117         lib/uniwidth/width.c.
62118         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
62119         without comments, but with the original copyright notice.
62120         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
62121         changes.
62122         * lib/unictype/categ_Cc.h: Likewise.
62123         * lib/unictype/categ_Co.h: Likewise.
62124         * lib/unictype/categ_Cs.h: Likewise.
62125         * lib/unictype/categ_Lt.h: Likewise.
62126         * lib/unictype/categ_Me.h: Likewise.
62127         * lib/unictype/categ_Pc.h: Likewise.
62128         * lib/unictype/categ_Pe.h: Likewise.
62129         * lib/unictype/categ_Pf.h: Likewise.
62130         * lib/unictype/categ_Pi.h: Likewise.
62131         * lib/unictype/categ_Ps.h: Likewise.
62132         * lib/unictype/categ_Sk.h: Likewise.
62133         * lib/unictype/categ_Sm.h: Likewise.
62134         * lib/unictype/categ_Z.h: Likewise.
62135         * lib/unictype/categ_Zl.h: Likewise.
62136         * lib/unictype/categ_Zp.h: Likewise.
62137         * lib/unictype/categ_Zs.h: Likewise.
62138         * lib/unictype/ctype_blank.h: Likewise.
62139         * lib/unictype/ctype_cntrl.h: Likewise.
62140         * lib/unictype/ctype_digit.h: Likewise.
62141         * lib/unictype/ctype_space.h: Likewise.
62142         * lib/unictype/ctype_xdigit.h: Likewise.
62143         * lib/unictype/mirror.h: Likewise.
62144         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62145         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62146         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62147         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62148         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62149         * lib/unictype/pr_bidi_control.h: Likewise.
62150         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62151         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62152         * lib/unictype/pr_bidi_pdf.h: Likewise.
62153         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62154         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62155         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62156         * lib/unictype/pr_format_control.h: Likewise.
62157         * lib/unictype/pr_hex_digit.h: Likewise.
62158         * lib/unictype/pr_hyphen.h: Likewise.
62159         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62160         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62161         * lib/unictype/pr_iso_control.h: Likewise.
62162         * lib/unictype/pr_join_control.h: Likewise.
62163         * lib/unictype/pr_left_of_pair.h: Likewise.
62164         * lib/unictype/pr_line_separator.h: Likewise.
62165         * lib/unictype/pr_math.h: Likewise.
62166         * lib/unictype/pr_non_break.h: Likewise.
62167         * lib/unictype/pr_not_a_character.h: Likewise.
62168         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62169         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62170         * lib/unictype/pr_other_id_continue.h: Likewise.
62171         * lib/unictype/pr_other_id_start.h: Likewise.
62172         * lib/unictype/pr_other_lowercase.h: Likewise.
62173         * lib/unictype/pr_other_math.h: Likewise.
62174         * lib/unictype/pr_other_uppercase.h: Likewise.
62175         * lib/unictype/pr_paired_punctuation.h: Likewise.
62176         * lib/unictype/pr_paragraph_separator.h: Likewise.
62177         * lib/unictype/pr_pattern_syntax.h: Likewise.
62178         * lib/unictype/pr_pattern_white_space.h: Likewise.
62179         * lib/unictype/pr_private_use.h: Likewise.
62180         * lib/unictype/pr_quotation_mark.h: Likewise.
62181         * lib/unictype/pr_radical.h: Likewise.
62182         * lib/unictype/pr_soft_dotted.h: Likewise.
62183         * lib/unictype/pr_space.h: Likewise.
62184         * lib/unictype/pr_titlecase.h: Likewise.
62185         * lib/unictype/pr_variation_selector.h: Likewise.
62186         * lib/unictype/pr_white_space.h: Likewise.
62187         * lib/unictype/sy_c_ident.h: Likewise.
62188         * lib/unictype/sy_c_whitespace.h: Likewise.
62189         * lib/unictype/sy_java_whitespace.h: Likewise.
62190         * modules/uni*/*: Bump version number of expected libunistring version.
62191         Reported by Simon Josefsson.
62193 2011-01-09  Karl Heuer  <kwzh@gnu.org>
62195         useless-if-before-free: fix typo in --help and make the internal,
62196         automatic version date update process work once again.
62197         --help output contained a NUL character instead of the
62198         backslash-zero that was intended.  Also, the "must lie within
62199         the first 8 lines" line is on line 9, and hence not getting
62200         automatically updated.
62201         * build-aux/useless-if-before-free: Fix the former by adding a
62202         backslash, and the latter by condensing the three lines of what-it-does
62203         to a single line, leaving one line of slack for the future.
62205 2011-01-09  Bruno Haible  <bruno@clisp.org>
62207         uniwidth/width: Fix width of U+1D173..U+1D17A.
62208         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
62209         symbolic_width, output_width_property_test): New functions.
62210         (main): Invoke output_nonspacing_property, output_width_property_test.
62211         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
62212         U+1D173..U+1D17A.
62213         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
62214         1.
62215         * modules/uniwidth/*: Bump version number of expected libunistring
62216         version.
62217         * modules/unilbrk/*: Likewise.
62219 2011-01-08  Bruno Haible  <bruno@clisp.org>
62221         uninorm tests: Preserve copyright of Unicode data file.
62222         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
62223         Mention modifications.
62225 2011-01-08  Bruno Haible  <bruno@clisp.org>
62227         gen-uni-tables: Prepare for Unicode 5.2.0.
62228         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
62229         (debug_output_lbp, output_lbp): Update.
62231 2011-01-08  Bruno Haible  <bruno@clisp.org>
62233         unilbrk: Clarify gen-uni-tables.c code.
62234         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
62235         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
62236         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
62238 2011-01-07  Bruno Haible  <bruno@clisp.org>
62240         strtod: Restore errno when successfully parsing Infinity or NaN.
62241         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
62242         restore the original errno.
62244 2011-01-07  Bruno Haible  <bruno@clisp.org>
62246         remove test: Avoid failure on HP-UX 11.
62247         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
62249 2011-01-07  Bruno Haible  <bruno@clisp.org>
62251         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
62252         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
62253         error code.
62255 2011-01-07  Pádraig Brady  <P@draigBrady.com>
62257         ignore-value: fixup comments, and add Eric Blake
62258         as an author since he rewrote the macros.
62259         * lib/ignore-value.h (ignore_value):  State that
62260         we now support aggregates.  Also specify exactly
62261         when the GCC warn_unused_result feature was added.
62263 2011-01-06  Eric Blake  <eblake@redhat.com>
62265         ignore-value: support aggregate types
62266         * lib/ignore-value.h (ignore_value): Provide separate gcc
62267         definition.
62268         * modules/ignore-value-tests: New test module.
62269         * tests/test-ignore-value.c: New test.
62271         maint.mk: improve sc_prohibit_strcmp regex
62272         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
62273         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
62274         definition of STRNEQ.
62276         signal: work around Haiku issue with SIGBUS
62277         * lib/siglist.h: Add comment.
62278         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
62279         strsignal's favoring of SIGSEGV.
62280         * tests/test-signal.c (main): Avoid test failure.
62281         * doc/posix-headers/signal.texi (signal.h): Document the issue.
62282         Reported by Scott McCreary.
62284         maint.mk: add pre-release check to ensure submodule commits are public
62285         * top/maint.mk (public-submodule-commit): New rule.
62286         (submodule-checks): New variable.
62287         (alpha beta stable): Depend on the variable.
62289 2011-01-05  Pádraig Brady  <P@draigBrady.com>
62290         and Jim Meyering  <meyering@redhat.com>
62292         ignore-value: make ignore_value more generic; deprecate ignore_ptr
62293         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
62294         (ATTRIBUTE_DEPRECATED): Define.
62295         (_ignore_case): New function.
62296         (ignore_value): New macro, to replace the old function.
62297         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
62298         * modules/ignore-value (Depends-on): Add stdint.
62300 2011-01-04  Eric Blake  <eblake@redhat.com>
62302         doc: regenerate INSTALL
62303         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
62304         @firstparagraphindent support, now that autoconf dropped it.
62305         (INSTALL_PRELUDE): Reinstate old macro.
62306         * doc/install.texi: Resync from autoconf.
62307         * doc/INSTALL: Reflect recent autoconf update.
62308         * doc/INSTALL.ISO: Likewise.
62309         * doc/INSTALL.UTF-8: Likewise.
62310         Reported by Karl Berry.
62312 2011-01-04  Bruce Korb  <address@hidden>
62314         git-version-gen: avoid a sub-shell
62315         * build-aux/git-version-gen: Redirect stderr in `...` via
62316         "exec 2>...", rather than via an added sub-shell.
62318 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
62320         git-version-gen: use (...) rather than sh -c '...'
62321         * build-aux/git-version-gen: Rather than hard-coding a shell's name
62322         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
62324 2011-01-03  Jim Meyering  <meyering@redhat.com>
62326         git-version-gen: convert leading TABs to spaces
62327         * build-aux/git-version-gen: Expand leading TABs.
62329         git-version-gen: handle failed "git rev-list"
62330         * build-aux/git-version-gen: Rather than leaking a "fatal" error
62331         from git and proceeding as if it had succeeded but printed no SHA1
62332         checksums, suppress the diagnostic and handle the failure.
62333         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
62335         git-version-gen: include command name in one more diagnostic
62336         * build-aux/git-version-gen: When the required .tarball-version file
62337         was missing or unreadable, you might see the diagnostic from "cat",
62338         but no trace of the name of the invoking script.  Now, you still see
62339         the diagnostic from cat, but also get one from "git-version-gen: ".
62340         Inspired by a patch from Bruce Korb.
62342         update-copyright: adjust test to match changed code
62343         * tests/test-update-copyright.sh: Change test's expected output
62344         to match new actual output.
62346 2011-01-02  Bruno Haible  <bruno@clisp.org>
62348         getlogin_r: Avoid test failure on HP-UX 11.
62349         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
62350         ERANGE when the second argument is zero.
62351         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
62352         portability problem.
62354 2011-01-02  Bruce Korb  <bkorb@gnu.org>
62356         * build-aux/update-copyright: doc Simon's changes
62358 2011-01-02  Simon Josefsson  <simon@josefsson.org>
62360         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
62361         environment variable.
62363 2011-01-02  Bruno Haible  <bruno@clisp.org>
62365         unigbrk: Avoid gcc warnings.
62366         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
62367         unused variable.
62368         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
62369         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
62370         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
62371         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
62372         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
62373         Change type of first argument to 'const char *'.
62374         (main): Remove unused variable.
62375         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
62376         type of first argument to 'const char *'.
62377         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
62378         Likewise.
62379         (main): Change type of variable 's'.
62380         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
62381         to 'int'.
62383 2011-01-02  Bruno Haible  <bruno@clisp.org>
62385         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
62386         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
62387         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
62388         bug.
62389         * lib/pwrite.c: Undo 2010-12-31 patch.
62390         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
62392 2011-01-02  Bruno Haible  <bruno@clisp.org>
62394         pread: Fix test whether it works.
62395         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
62397 2011-01-02  Bruno Haible  <bruno@clisp.org>
62399         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
62400         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
62401         ends in "6". Don't require a specific month name. Try also the locale
62402         names found on HP-UX 11 and Solaris 7.
62404 2011-01-02  Bruno Haible  <bruno@clisp.org>
62406         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
62407         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
62408         C linkage.
62409         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
62411 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
62413         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
62414         for consistency, since the "cluster" term is not used elsewhere.
62415         * lib/unigbrk.in.h: Update name.
62416         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
62417         * lib/unigbrk/u16-grapheme-next.c: Update name.
62418         * lib/unigbrk/u16-grapheme-prev.c: Update name.
62419         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
62420         * lib/unigbrk/u32-grapheme-next.c: Update name.
62421         * lib/unigbrk/u32-grapheme-prev.c: Update name.
62422         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
62423         * lib/unigbrk/u8-grapheme-next.c: Update name.
62424         * lib/unigbrk/u8-grapheme-prev.c: Update name.
62425         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
62426         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
62427         Suggested by Bruno Haible.
62429 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
62431         Remove module 'u8-grapheme-len' as too redundant with
62432         'u8-grapheme-next'.
62433         * modules/unigbrk/u8-grapheme-len: Delete file.
62434         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
62435         * lib/unigbrk.in.h: Remove prototype for deleted function.
62436         * lib/unigbrk/u8-grapheme-len.c: Delete file.
62437         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
62439         Remove module 'u16-grapheme-len' as too redundant with
62440         'u16-grapheme-next'.
62441         * modules/unigbrk/u16-grapheme-len: Delete file.
62442         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
62443         * lib/unigbrk.in.h: Remove prototype for deleted function.
62444         * lib/unigbrk/u16-grapheme-len.c: Delete file.
62445         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
62447         Remove module 'u32-grapheme-len' as too redundant with
62448         'u32-grapheme-next'.
62449         * modules/unigbrk/u32-grapheme-len: Delete file.
62450         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
62451         * lib/unigbrk.in.h: Remove prototype for deleted function.
62452         * lib/unigbrk/u32-grapheme-len.c: Delete file.
62453         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
62455         Suggested by Bruno Haible.
62457 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
62459         * unigbrk.in.h: Fix typo: "ben" => "been".
62460         Reported by Bruno Haible.
62462 2011-01-01  Jim Meyering  <meyering@redhat.com>
62464         maint: update almost all copyright ranges to include 2011
62465         Run the new "make update-copyright" rule.
62467 2011-01-01  Jim Meyering  <meyering@redhat.com>
62469         maint: update-copyright: exempt doc/INSTALL*
62470         * Makefile (update-copyright): Also exclude doc/INSTALL*,
62471         since they are generated.  Suggested by Bruno Haible.
62473 2011-01-01  Jim Meyering  <meyering@redhat.com>
62475         maint: refine the update-copyright rule
62476         * Makefile (update-copyright): Also exclude any file that includes
62477         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
62478         code that merely generates the comment.
62480 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
62482         New module 'u8-grapheme-len'.
62483         * modules/unigbrk/u8-grapheme-len: New file.
62484         * modules/unigbrk/u8-grapheme-len-tests: New file.
62485         * lib/unigbrk.in.h: Add prototype for new function.
62486         * lib/unigbrk/u8-grapheme-len.c: New file.
62487         * tests/unigbrk/test-u8-grapheme-len.c: New file.
62489         New module 'u16-grapheme-len'.
62490         * modules/unigbrk/u16-grapheme-len: New file.
62491         * modules/unigbrk/u16-grapheme-len-tests: New file.
62492         * lib/unigbrk.in.h: Add prototype for new function.
62493         * lib/unigbrk/u16-grapheme-len.c: New file.
62494         * tests/unigbrk/test-u16-grapheme-len.c: New file.
62496         New module 'u32-grapheme-len'.
62497         * modules/unigbrk/u32-grapheme-len: New file.
62498         * modules/unigbrk/u32-grapheme-len-tests: New file.
62499         * lib/unigbrk.in.h: Add prototype for new function.
62500         * lib/unigbrk/u32-grapheme-len.c: New file.
62501         * tests/unigbrk/test-u32-grapheme-len.c: New file.
62503         New module 'u8-grapheme-next'.
62504         * modules/unigbrk/u8-grapheme-next: New file.
62505         * modules/unigbrk/u8-grapheme-next-tests: New file.
62506         * lib/unigbrk.in.h: Add prototype for new function.
62507         * lib/unigbrk/u8-grapheme-next.c: New file.
62508         * tests/unigbrk/test-u8-grapheme-next.c: New file.
62510         New module 'u16-grapheme-next'.
62511         * modules/unigbrk/u16-grapheme-next: New file.
62512         * modules/unigbrk/u16-grapheme-next-tests: New file.
62513         * lib/unigbrk.in.h: Add prototype for new function.
62514         * lib/unigbrk/u16-grapheme-next.c: New file.
62515         * tests/unigbrk/test-u16-grapheme-next.c: New file.
62517         New module 'u32-grapheme-next'.
62518         * modules/unigbrk/u32-grapheme-next: New file.
62519         * modules/unigbrk/u32-grapheme-next-tests: New file.
62520         * lib/unigbrk.in.h: Add prototype for new function.
62521         * lib/unigbrk/u32-grapheme-next.c: New file.
62522         * tests/unigbrk/test-u32-grapheme-next.c: New file.
62524         New module 'u8-grapheme-prev'.
62525         * modules/unigbrk/u8-grapheme-prev: New file.
62526         * modules/unigbrk/u8-grapheme-prev-tests: New file.
62527         * lib/unigbrk.in.h: Add prototype for new function.
62528         * lib/unigbrk/u8-grapheme-prev.c: New file.
62529         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
62531         New module 'u16-grapheme-prev'.
62532         * modules/unigbrk/u16-grapheme-prev: New file.
62533         * modules/unigbrk/u16-grapheme-prev-tests: New file.
62534         * lib/unigbrk.in.h: Add prototype for new function.
62535         * lib/unigbrk/u16-grapheme-prev.c: New file.
62536         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
62538         New module 'u32-grapheme-prev'.
62539         * modules/unigbrk/u32-grapheme-prev: New file.
62540         * modules/unigbrk/u32-grapheme-prev-tests: New file.
62541         * lib/unigbrk.in.h: Add prototype for new function.
62542         * lib/unigbrk/u32-grapheme-prev.c: New file.
62543         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
62545         New module 'u8-grapheme-breaks'.
62546         * modules/unigbrk/u8-grapheme-breaks: New file.
62547         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
62548         * lib/unigbrk.in.h: Add prototype for new function.
62549         * lib/unigbrk/u8-grapheme-breaks.c: New file.
62550         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
62552         New module 'u16-grapheme-breaks'.
62553         * modules/unigbrk/u16-grapheme-breaks: New file.
62554         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
62555         * lib/unigbrk.in.h: Add prototype for new function.
62556         * lib/unigbrk/u16-grapheme-breaks.c: New file.
62557         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
62559         New module 'u32-grapheme-breaks'.
62560         * modules/unigbrk/u32-grapheme-breaks: New file.
62561         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
62562         * lib/unigbrk.in.h: Add prototype for new function.
62563         * lib/unigbrk/u32-grapheme-breaks.c: New file.
62564         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
62566         New module 'ulc-grapheme-breaks'.
62567         * modules/unigbrk/ulc-grapheme-breaks: New file.
62568         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
62569         * m4/locale-ar.m4: New file.
62570         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
62571         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
62572         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
62574 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
62576         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
62577         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
62578         modified how this file was generated before I initially submitted
62579         the module, but failed to regenerate it.  This meant that several
62580         of the level2 entries were wrong.
62581         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
62582         Remove the division-by-2 that is folded into the table now that
62583         gbrkprop.h has been regenerated properly.  Now -1 entries are
62584         handled correctly.
62586         New module 'unigbrk/uc-gbrk-prop-tests'.
62587         * modules/unigbrk/uc-gbrk-prop-tests: New file.
62588         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
62589         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
62590         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
62592 2011-01-01  Bruno Haible  <bruno@clisp.org>
62594         Avoid use of hexadecimal escapes.
62595         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
62596         instead of hexadecimal escapes.
62598 2011-01-01  Jim Meyering  <meyering@redhat.com>
62600         maint: new rule to update copyright year ranges
62601         * Makefile (update-copyright): New rule.
62603         maint: indent with TABs in Makefile
62604         * Makefile: Expand leading sequences of spaces to TABs
62606         version-etc: update the copyright year it reports
62607         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
62609 2010-12-31  Bruno Haible  <bruno@clisp.org>
62611         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
62612         * lib/isfinite.c (zerof, zerod, zerol): New variables.
62613         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
62614         zero.
62616 2010-12-31  Bruno Haible  <bruno@clisp.org>
62618         pwrite: Work around HP-UX 11.11 bug.
62619         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
62620         works and set REPLACE_PWRITE if not.
62621         * lib/pwrite.c (pwrite): Add an implementation that uses the system
62622         function.
62623         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
62625 2010-12-31  Bruno Haible  <bruno@clisp.org>
62627         pread: Work around HP-UX 11 bugs.
62628         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
62629         and set REPLACE_PREAD if not.
62630         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
62632 2010-12-31  Eric Blake  <eblake@redhat.com>
62634         nl_langinfo: fix YESEXPR on Irix 6.5
62635         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
62636         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
62637         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
62638         it.
62640 2010-12-31  Bruno Haible  <bruno@clisp.org>
62642         iconv: Document HP-UX 11 bug.
62643         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
62645 2010-12-31  Bruno Haible  <bruno@clisp.org>
62647         ldexpl: Fix link error on HP-UX 11.
62648         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
62649         LDEXPL_LIBM, using $ISNANL_LIBM.
62651 2010-12-31  Eric Blake  <eblake@redhat.com>
62653         ftello: avoid compilation failure with SunStudio c89
62654         * lib/ftello.c (ftello): Use lseek, not llseek.
62656         tests: avoid failing coreutils tests on cygwin
62657         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
62658         (create_exe_shims_): Return 0 when skipping.
62660 2010-12-31  Bruno Haible  <bruno@clisp.org>
62662         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
62663         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
62665 2010-12-31  Bruno Haible  <bruno@clisp.org>
62667         waitpid: Fix link error in C++ mode.
62668         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
62670 2010-12-31  Bruno Haible  <bruno@clisp.org>
62672         isnan: Use GCC built-ins when possible.
62673         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
62674         __builtin_isnan.
62675         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
62676         (isnan): Define using GCC built-ins for GCC >= 4.0.
62678 2010-12-31  Bruno Haible  <bruno@clisp.org>
62680         isnand: Fix mistake.
62681         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
62682         __builtin_isnand.
62684 2010-12-31  Bruno Haible  <bruno@clisp.org>
62686         open: Avoid C++ error on HP-UX 11.
62687         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
62689 2010-12-31  Bruno Haible  <bruno@clisp.org>
62691         time_r: Add missing declarations on HP-UX 11.
62692         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
62693         instead of HAVE_LOCALTIME_R.
62694         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
62695         HAVE_LOCALTIME_R always.
62696         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
62697         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
62698         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
62699         HAVE_LOCALTIME_R.
62700         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
62701         * doc/posix-functions/localtime_r.texi: Likewise.
62703 2010-12-29  Eric Blake  <eblake@redhat.com>
62705         mountlist: tweak previous commit
62706         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
62707         Reported by Paul Eggert.
62709         mountlist: fix local drive detection on cygwin
62710         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
62711         that works for cygwin.
62713 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62715         ftoastr, snprintf: ftoastr + snprintf module
62716         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
62717         since the snprintf module now should be good enough here.
62718         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
62719         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
62720         and gl_MODULE_INDICATOR([snprintf]), but the former enables
62721         GNULIB_SNPRINTF only for the test directory, and the latter
62722         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
62723         seems to suffice by itself.
62725 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62727         alloca: one step towards thread-safety
62728         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
62729         need for a static variable.  All callers changed.  This does not
62730         make the alloca replacement thread-safe, but it's one step.
62732         tests: minor indenting change
62733         * tests/init.sh: Sync from coreutils housekeeping patch
62734         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
62735         to keep lines within 80 columns.
62737 2010-12-28  Jim Meyering  <meyering@redhat.com>
62739         regex: don't infloop on persistent failing calloc
62740         * lib/regexec.c (build_trtable): Return failure indication upon
62741         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
62742         In glibc, this was fixed for version 2.13:
62743         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
62745 2010-12-28  Bruno Haible  <bruno@clisp.org>
62746             Paul Eggert <eggert@cs.ucla.edu>
62748         linkat: Make implementation robust against system behaviour variations.
62749         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
62750         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
62751         way, and to -2 if it needs a generic runtime test.
62752         * lib/linkat.c (solaris_optimized_link_immediate,
62753         solaris_optimized_link_follow): New functions.
62754         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
62755         (check_same_link): Use it.
62757 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
62759         New module 'unigbrk/base'.
62760         * modules/unigbrk/base: New file.
62761         * lib/unigbrk.in.h: New file.
62763         New module 'unigbrk/uc-gbrk-prop'.
62764         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
62765         * modules/unigbrk/uc-gbrk-prop: New file.
62766         * lib/unigbrk/gbrkprop.h: New file.
62767         * lib/unigbrk/uc-gbrk-prop.c: New file.
62769         New module 'unigbrk/uc-is-grapheme-break'.
62770         * modules/unigbrk/uc-is-grapheme-break: New file.
62771         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
62772         * lib/unigbrk/uc-is-grapheme-break.c: New file.
62773         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
62774         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
62775         * tests/unigbrk/GraphemeBreakTest.txt: New file.
62777         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
62779 2010-12-27  Bruno Haible  <bruno@clisp.org>
62781         linkat test: Avoid failure on Solaris 11 2010-11.
62782         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
62784 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62786         utimens: work around glibc rounding bug on more platforms
62787         * lib/utimens.c (fdutimens): Work around rounding bug even if
62788         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
62789         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
62791 2010-12-27  Bruno Haible  <bruno@clisp.org>
62793         select tests: Improve comments.
62794         * tests/test-select.c (do_select): Add comments.
62796 2010-12-27  Bruno Haible  <bruno@clisp.org>
62798         select tests: Safer way of handling timeout.
62799         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
62800         at every invocation.
62802 2010-12-27  Bruno Haible  <bruno@clisp.org>
62804         select tests: Use 'bool' where appropriate.
62805         * tests/test-select.c (connect_to_socket): Change argument type to
62806         'bool'.
62808 2010-12-27  Bruno Haible  <bruno@clisp.org>
62810         select tests: Use existing modules.
62811         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
62812         (configure.ac): Don't test for unistd.h.
62813         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
62814         declared in <unistd.h>.
62816 2010-12-27  Bruno Haible  <bruno@clisp.org>
62818         mbrtowc: Work around a Solaris 7 bug.
62819         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
62820         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
62821         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
62822         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
62823         MBRTOWC_NULL_ARG1_BUG.
62824         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
62825         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
62826         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
62827         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
62829 2010-12-27  Jim Meyering  <meyering@redhat.com>
62831         read-file.c: tweak syntax
62832         * lib/read-file.c (fread_file): Remove space after "*" in function
62833         definitions.
62835 2010-12-27  Bruno Haible  <bruno@clisp.org>
62837         times test: Avoid gcc warnings on OSF/1.
62838         * tests/test-times.c (main): Cast printf arguments from clock_t to
62839         'long int'.
62841 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62843         utimens: work around glibc rounding bug on older Linux kernels
62844         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
62845         on Linux with a glibc whose utimes might not work, then work
62846         around a longstanding glibc bug involving rounding rather than
62847         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
62848         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62850 2010-12-26  Bruno Haible  <bruno@clisp.org>
62852         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
62853         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
62854         _GL_CXXALIAS_SYS.
62855         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62857 2010-12-26  Bruno Haible  <bruno@clisp.org>
62859         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
62860         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
62861         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62862         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
62863         looking for the declaration.
62864         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62865         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
62866         problem.
62867         * doc/posix-functions/inet_pton.texi: Likewise.
62869 2010-12-26  Bruno Haible  <bruno@clisp.org>
62871         arpa_inet: Use the common idioms with C++ support.
62872         * lib/arpa_inet.in.h: Include c++defs.h.
62873         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
62874         support.
62875         * modules/arpa_inet (Depends-on): Add c++defs.
62876         (Makefile.am): Substitute the contents of c++defs.h.
62877         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
62878         * modules/arpa_inet-c++-tests: New file.
62879         * tests/test-arpa_inet-c++.cc: New file.
62881 2010-12-25  Bruno Haible  <bruno@clisp.org>
62883         Fix more C++ link errors on Solaris 8.
62884         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
62885         $(LIB_EACCESS).
62886         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
62887         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
62888         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
62889         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
62890         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
62892 2010-12-25  Bruno Haible  <bruno@clisp.org>
62894         printf-posix: Fix link error when a non-GCC compiler is used.
62895         * lib/stdio.in.h (printf): When not using GCC, override printf
62896         correctly.
62897         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62899 2010-12-25  Bruno Haible  <bruno@clisp.org>
62901         strerror_r-posix: Update doc.
62902         * doc/posix-functions/strerror_r.texi: Update doc about the return
62903         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
62905 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62907         utimens: simplify the logic of the previous change
62908         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
62909         This should not affect whether the test succeeds or fails.
62911         utimens: configure better on hosts with NFS clock skew
62912         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
62913         uses the clock of the local host.  It might use the clock of the
62914         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
62915         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62917 2010-12-25  Bruno Haible  <bruno@clisp.org>
62919         ptsname test: Avoid failure on Solaris.
62920         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
62921         open a pseudo-terminal; don't use BSD-style ptys.
62922         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
62924 2010-12-25  Bruno Haible  <bruno@clisp.org>
62926         ptsname: Avoid ERANGE failure on some systems.
62927         * lib/ptsname.c (buffer): Increase size.
62929 2010-12-25  Bruno Haible  <bruno@clisp.org>
62931         rename, renameat: Avoid test failures at NFS mounted locations.
62932         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
62933         so that subsequent mkdir calls succeed.
62935 2010-12-25  Bruno Haible  <bruno@clisp.org>
62937         iswblank: Fix C++ link error on Solaris 8.
62938         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
62939         _GL_FUNCDECL_SYS.
62941 2010-12-25  Bruno Haible  <bruno@clisp.org>
62943         unistd: Fix C++ link error on Solaris 8.
62944         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
62946 2010-12-25  Bruno Haible  <bruno@clisp.org>
62948         readlink doc: Mention an old glibc bug.
62949         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
62951 2010-12-25  Bruno Haible  <bruno@clisp.org>
62953         fcntl-h: Fix for use of C++ on glibc systems.
62954         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62955         also on glibc systems in C++ mode.
62956         Reported by Gary V. Vaughan <gary@gnu.org>.
62958 2010-12-25  Bruno Haible  <bruno@clisp.org>
62960         roundl-ieee: Make it work on OSF/1 5.1 with cc.
62961         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
62963 2010-12-25  Bruno Haible  <bruno@clisp.org>
62965         truncl-ieee: Make it work on OSF/1 5.1 with cc.
62966         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
62967         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
62968         test whether truncl works according to ISO C 99 with IEC 60559.
62969         * m4/truncl-ieee.m4: New file.
62970         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
62971         m4/signbit.m4.
62972         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
62974 2010-12-25  Bruno Haible  <bruno@clisp.org>
62976         ceill-ieee: Make it work on OSF/1 5.1 with cc.
62977         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
62978         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
62979         test whether ceill works according to ISO C 99 with IEC 60559.
62980         * m4/ceill-ieee.m4: New file.
62981         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
62982         m4/signbit.m4.
62983         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
62985 2010-12-25  Bruno Haible  <bruno@clisp.org>
62987         Ensure all prerequisites of <wchar.h> are included.
62988         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
62989         before <wchar.h>.
62990         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62991         gl_MBRLEN_NUL_RETVAL): Likewise.
62992         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62993         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
62994         AC_FUNC_MBRTOWC): Likewise.
62995         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62996         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
62997         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62998         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
62999         Likewise.
63000         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
63001         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
63002         (gl_WCHAR_H): Improve comments.
63003         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
63005 2010-12-25  Bruno Haible  <bruno@clisp.org>
63007         strtok_r: Fix C syntax error in autoconf macro.
63008         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
63009         characters in test program.
63011 2010-12-24  Bruno Haible  <bruno@clisp.org>
63013         ceil, trunc, round: Fix gcc warnings.
63014         * lib/ceil.c (MIN): Undefine before redefining.
63015         * lib/trunc.c (MIN): Likewise.
63016         * lib/round.c (MIN): Likewise.
63017         Include <math.h> first.
63019 2010-12-24  Bruno Haible  <bruno@clisp.org>
63021         select tests: Avoid failures on OSF/1 5.1.
63022         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
63023         failure of closing the last socket; it may fail with ECONNRESET.
63025 2010-12-24  Eric Blake  <eblake@redhat.com>
63027         stdint: avoid HP-UX 10.20 preprocessor bug
63028         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
63029         than #if.
63030         * tests/test-floor2.c (main): Likewise.
63031         Reported by Peter O'Gorman.
63033         pipe: make obsoletion transition easier
63034         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
63035         * modules/pipe (Files): Include revived file.
63036         (Include): Drop reference, to mirror getdate's behavior.
63038 2010-12-24  Bruno Haible  <bruno@clisp.org>
63040         sys_socket: Hide mismatch of declarations on NonStop Kernel.
63041         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
63042         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
63043         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63045 2010-12-24  Bruno Haible  <bruno@clisp.org>
63047         gethostname: Ensure declaration on NonStop Kernel.
63048         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
63049         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63051 2010-12-24  Bruno Haible  <bruno@clisp.org>
63053         sys_select: Ensure all necessary types on NonStop Kernel.
63054         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
63055         include <sys/time.h>.
63056         * doc/posix-headers/sys_select.texi: Mention that it's missing on
63057         NonStop Kernel.
63058         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63060 2010-12-24  Bruno Haible  <bruno@clisp.org>
63062         sys_select: Remove unneeded include.
63063         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
63064         have <sys/select.h>.
63066 2010-12-24  Bruno Haible  <bruno@clisp.org>
63068         gethostname: Provide a fallback for HOST_NAME_MAX.
63069         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
63070         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
63071         instead.
63072         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63074 2010-12-24  Bruno Haible  <bruno@clisp.org>
63076         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
63077         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
63078         (SA_RESTART): Likewise.
63079         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63081 2010-12-24  Bruno Haible  <bruno@clisp.org>
63083         signal: Define NSIG.
63084         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
63085         * tests/test-signal.c (nsig): New variable.
63086         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63088 2010-12-24  Bruno Haible  <bruno@clisp.org>
63090         rename, renameat: Avoid test failures on OSF/1 5.1.
63091         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
63092         alternative error codes.
63093         * tests/test-renameat.c (main): Likewise.
63095 2010-12-24  Bruno Haible  <bruno@clisp.org>
63097         *printf: Detect large precisions bug on Solaris 10/SPARC.
63098         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
63099         by Paul Eggert.
63100         * tests/test-snprintf-posix.h (test_function): Add this test code here
63101         too.
63102         * tests/test-sprintf-posix.h (test_function): Likewise.
63103         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63104         * tests/test-vasprintf-posix.c (test_function): Likewise.
63105         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
63106         around by gnulib.
63107         * doc/posix-functions/printf.texi: Likewise.
63108         * doc/posix-functions/snprintf.texi: Likewise.
63109         * doc/posix-functions/sprintf.texi: Likewise.
63110         * doc/posix-functions/vfprintf.texi: Likewise.
63111         * doc/posix-functions/vprintf.texi: Likewise.
63112         * doc/posix-functions/vsnprintf.texi: Likewise.
63113         * doc/posix-functions/vsprintf.texi: Likewise.
63114         * doc/posix-functions/dprintf.texi: Undo last commit.
63115         * doc/posix-functions/vdprintf.texi: Likewise.
63117 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63119         tests: port test-fdutimensat.c to Solaris 8
63120         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
63121         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
63122         On Solaris 8, it fails with errno == ENOSYS, because there is no
63123         futimens (so it can't use the fd), and there is no lutimens (so it
63124         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
63126         vsnprintf: make more consistent with snprintf; doc fixes
63128         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
63129         the byte count return problem was promoted from the snprintf-posix
63130         to the snprintf module.
63131         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
63132         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
63133         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
63134         * tests/test-snprintf.c (main): Check the byte count returned.
63135         * tests/test-vsnprintf.c (main): Likewise.
63137 2010-12-23  Eric Blake  <eblake@redhat.com>
63139         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
63140         * modules/sigpipe (License): Relax license.
63142 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
63144         doc: document Solaris printf bug with large float precisions
63145         * doc/posix-functions/dprintf.texi (dprintf):
63146         * doc/posix-functions/fprintf.texi (fprintf):
63147         * doc/posix-functions/printf.texi (printf):
63148         * doc/posix-functions/snprintf.texi (snprintf):
63149         * doc/posix-functions/sprintf.texi (sprintf):
63150         * doc/posix-functions/vdprintf.texi (vdprintf):
63151         * doc/posix-functions/vfprintf.texi (vfprintf):
63152         * doc/posix-functions/vprintf.texi (vprintf):
63153         * doc/posix-functions/vsnprintf.texi (vsnprintf):
63154         * doc/posix-functions/vsprintf.texi (vsprintf):
63155         Mention that these functions mishandle large floating point
63156         precisions on Solaris 10.  The same bug is also present in Solaris
63157         8, and I assume earlier.  This causes "cd gnulib-tests; make
63158         check" to fail on Solaris 8 (and I assume, later) when building
63159         the latest coreutils, in test-vasprintf-posix's call to
63160         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
63161         the wide flavors (e.g., wprintf) so this patch just updates the
63162         documentation for the narrow ones.
63164         test-posixtm.c: add two tests
63165         * tests/test-posixtm.c: Add two tests, to highlight the
63166         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
63167         around this bug; this is merely to document it.
63169 2010-12-22  Bruno Haible  <bruno@clisp.org>
63171         getlogin_r: Work around portability problem on OSF/1.
63172         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
63173         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
63174         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
63175         test for a truncated result.
63176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
63177         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
63178         * modules/getlogin_r (Depends-on): Add memchr.
63179         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
63181 2010-12-22  Bruno Haible  <bruno@clisp.org>
63183         ptsname: Avoid test failure on OSF/1 5.1.
63184         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
63185         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
63186         (same_slave): New function.
63187         (main): Use it to compare ptsname's result with the expected file name.
63189 2010-12-22  Bruno Haible  <bruno@clisp.org>
63191         Port extended stdio modules to HP NonStop Kernel.
63192         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
63193         macros.
63194         * lib/fbufmode.c: Update comments.
63195         * lib/fflush.c: Likewise.
63196         * lib/fpurge.c: Likewise.
63197         * lib/freadable.c: Likewise.
63198         * lib/freadahead.c: Likewise.
63199         * lib/freading.c: Likewise.
63200         * lib/freadptr.c: Likewise.
63201         * lib/freadseek.c: Likewise.
63202         * lib/fseeko.c: Likewise.
63203         * lib/fseterr.c: Likewise.
63204         * lib/fwritable.c: Likewise.
63205         * lib/fwriting.c: Likewise.
63206         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
63208 2010-12-22  Bruno Haible  <bruno@clisp.org>
63210         ttyname_r: Work around bug on OSF/1 5.1.
63211         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
63212         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
63213         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
63214         present.
63215         * lib/ttyname_r.c (ttyname_r): Update comments.
63217 2010-12-22  Bruno Haible  <bruno@clisp.org>
63219         round: Implement result sign according to IEEE 754.
63220         * lib/round.c (MIN, MINUS_ZERO): New macros.
63221         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
63222         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
63223         * tests/test-round-ieee.c (main): Likewise.
63224         * tests/test-roundl-ieee.c (main): Likewise.
63226         trunc: Implement result sign according to IEEE 754.
63227         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
63228         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
63229         * tests/test-trunc2.c: Include minus-zero.h.
63230         (MINUS_ZERO): New macro.
63231         (trunc_reference): Keep in sync with lib/trunc.c.
63232         * tests/test-truncf2.c: Include minus-zero.h.
63233         (MINUS_ZERO): New macro.
63234         (truncf_reference): Keep in sync with lib/trunc.c.
63235         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
63236         * tests/test-trunc-ieee.c (main): Likewise.
63237         * tests/test-truncl-ieee.c (main): Likewise.
63239         ceil: Implement result sign according to IEEE 754.
63240         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
63241         (FUNC): Return -0.0 for -1 < x < 0.
63242         * tests/test-ceil2.c: Include minus-zero.h.
63243         (MINUS_ZERO): New macro.
63244         (ceil_reference): Keep in sync with lib/ceil.c.
63245         * tests/test-ceilf2.c: Include minus-zero.h.
63246         (MINUS_ZERO): New macro.
63247         (ceilf_reference): Keep in sync with lib/ceil.c.
63248         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
63249         * tests/test-ceil-ieee.c (main): Likewise.
63250         * tests/test-ceill-ieee.c (main): Likewise.
63252         floor: Implement result sign according to IEEE 754.
63253         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
63254         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
63255         * tests/test-floorf2.c (floorf_reference): Likewise.
63256         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
63257         * tests/test-floor-ieee.c (main): Likewise.
63258         * tests/test-floorl-ieee.c (main): Likewise.
63260 2010-12-22  Bruno Haible  <bruno@clisp.org>
63262         getaddrinfo: Update doc.
63263         * doc/posix-functions/gai_strerror.texi: Return type is also different
63264         on AIX and HP-UX.
63266 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
63268         getaddrinfo, inet_ntop: Update doc for Solaris.
63269         * doc/posix-functions/gai_strerror.texi: Return type is also an
63270         issue on Solaris 9 and earlier.
63271         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
63272         on Solaris 10 and earlier.
63274 2010-12-21  Bruno Haible  <bruno@clisp.org>
63276         New module 'roundl-ieee'.
63277         * modules/roundl-ieee: New file.
63278         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
63279         test whether roundl works according to ISO C 99 with IEC 60559.
63280         * m4/roundl-ieee.m4: New file.
63281         * modules/roundl-ieee-tests: New file.
63282         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
63283         * tests/test-roundl.c (main): Remove signbit tests.
63284         * modules/roundl-tests (Depends-on): Remove signbit.
63285         * doc/posix-functions/roundl.texi: Mention the new module.
63287 2010-12-21  Bruno Haible  <bruno@clisp.org>
63289         New module 'truncl-ieee'.
63290         * modules/truncl-ieee: New file.
63291         * modules/truncl-ieee-tests: New file.
63292         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
63293         * tests/test-truncl.c (main): Remove signbit tests.
63294         * modules/truncl-tests (Depends-on): Remove signbit.
63295         * doc/posix-functions/truncl.texi: Mention the new module.
63297 2010-12-21  Bruno Haible  <bruno@clisp.org>
63299         New module 'ceill-ieee'.
63300         * modules/ceill-ieee: New file.
63301         * modules/ceill-ieee-tests: New file.
63302         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
63303         * tests/test-ceill.c (main): Remove signbit tests.
63304         * modules/ceill-tests (Depends-on): Remove signbit.
63305         * doc/posix-functions/ceill.texi: Mention the new module.
63307 2010-12-21  Bruno Haible  <bruno@clisp.org>
63309         New module 'floorl-ieee'.
63310         * modules/floorl-ieee: New file.
63311         * modules/floorl-ieee-tests: New file.
63312         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
63313         * tests/test-floorl.c (main): Remove signbit tests.
63314         * modules/floorl-tests (Depends-on): Remove signbit.
63315         * doc/posix-functions/floorl.texi: Mention the new module.
63317 2010-12-21  Bruno Haible  <bruno@clisp.org>
63319         New module 'round-ieee'.
63320         * modules/round-ieee: New file.
63321         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
63322         whether round works according to ISO C 99 with IEC 60559.
63323         * m4/round-ieee.m4: New file.
63324         * modules/round-ieee-tests: New file.
63325         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
63326         * tests/test-round1.c (main): Remove signbit tests.
63327         * modules/round-tests (Depends-on): Remove 'signbit'.
63328         * doc/posix-functions/round.texi: Mention the new module.
63330 2010-12-21  Bruno Haible  <bruno@clisp.org>
63332         New module 'trunc-ieee'.
63333         * modules/trunc-ieee: New file.
63334         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
63335         whether trunc works according to ISO C 99 with IEC 60559.
63336         * m4/trunc-ieee.m4: New file.
63337         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
63338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
63339         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
63340         * modules/trunc-ieee-tests: New file.
63341         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
63342         * tests/test-trunc1.c (main): Remove signbit tests.
63343         * modules/trunc-tests (Depends-on): Remove 'signbit'.
63344         * doc/posix-functions/trunc.texi: Mention the new module.
63346 2010-12-21  Bruno Haible  <bruno@clisp.org>
63348         New module 'ceil-ieee'.
63349         * modules/ceil-ieee: New file.
63350         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
63351         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
63352         ISO C 99 with IEC 60559.
63353         * m4/ceil-ieee.m4: New file.
63354         * modules/ceil (Files): Add lib/ceil.c.
63355         (Depends-on): Add 'float'.
63356         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
63357         * lib/math.in.h (ceil): New declaration.
63358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
63359         REPLACE_CEIL.
63360         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
63361         * modules/ceil-ieee-tests: New file.
63362         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
63363         * tests/test-math-c++.cc: Check the signature of 'ceil'.
63364         * doc/posix-functions/ceil.texi: Mention the new module.
63366 2010-12-21  Bruno Haible  <bruno@clisp.org>
63368         New module 'floor-ieee'.
63369         * modules/floor-ieee: New file.
63370         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
63371         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
63372         ISO C 99 with IEC 60559.
63373         * m4/floor-ieee.m4: New file.
63374         * modules/floor (Files): Add lib/floor.c.
63375         (Depends-on): Add 'float'.
63376         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
63377         * lib/math.in.h (floor): New declaration.
63378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
63379         REPLACE_FLOOR.
63380         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
63381         * modules/floor-ieee-tests: New file.
63382         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
63383         * tests/test-math-c++.cc: Check the signature of 'floor'.
63384         * doc/posix-functions/floor.texi: Mention the new module.
63386 2010-12-21  Bruno Haible  <bruno@clisp.org>
63388         New module 'roundf-ieee'.
63389         * modules/roundf-ieee: New file.
63390         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
63391         test whether roundf works according to ISO C 99 with IEC 60559.
63392         * m4/roundf-ieee.m4: New file.
63393         * modules/roundf-ieee-tests: New file.
63394         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
63395         * tests/test-roundf1.c (main): Remove signbit tests.
63396         * modules/roundf-tests (Depends-on): Remove 'signbit'.
63397         * doc/posix-functions/roundf.texi: Mention the new module.
63399 2010-12-21  Bruno Haible  <bruno@clisp.org>
63401         New module 'truncf-ieee'.
63402         * modules/truncf-ieee: New file.
63403         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
63404         test whether truncf works according to ISO C 99 with IEC 60559.
63405         * m4/truncf-ieee.m4: New file.
63406         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
63407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
63408         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
63409         * modules/truncf-ieee-tests: New file.
63410         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
63411         * tests/test-truncf1.c (main): Remove signbit tests.
63412         * modules/truncf-tests (Depends-on): Remove 'signbit'.
63413         * doc/posix-functions/truncf.texi: Mention the new module.
63415 2010-12-21  Bruno Haible  <bruno@clisp.org>
63417         New module 'ceilf-ieee'.
63418         * modules/ceilf-ieee: New file.
63419         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
63420         test whether ceilf works according to ISO C 99 with IEC 60559.
63421         * m4/ceilf-ieee.m4: New file.
63422         * modules/ceilf-ieee-tests: New file.
63423         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
63424         * tests/test-ceilf1.c (main): Remove signbit tests.
63425         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
63426         * doc/posix-functions/ceilf.texi: Mention the new module.
63428 2010-12-21  Bruno Haible  <bruno@clisp.org>
63430         New module 'floorf-ieee'.
63431         * modules/floorf-ieee: New file.
63432         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
63433         test whether floorf works according to ISO C 99 with IEC 60559.
63434         * m4/floorf-ieee.m4: New file.
63435         * modules/floorf-ieee-tests: New file.
63436         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
63437         * tests/test-floorf1.c (main): Remove signbit tests.
63438         * modules/floorf-tests (Depends-on): Remove 'signbit'.
63439         * doc/posix-functions/floorf.texi: Mention the new module.
63441 2010-12-21  Bruno Haible  <bruno@clisp.org>
63443         Support for minus zero in autoconf macros.
63444         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
63445         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
63446         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
63447         * tests/minus-zero.h: Update comments.
63449 2010-12-21  Bruno Haible  <bruno@clisp.org>
63451         Tests for module 'ceil'.
63452         * modules/ceil-tests: New file.
63453         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
63454         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
63456 2010-12-21  Bruno Haible  <bruno@clisp.org>
63458         Tests for module 'floor'.
63459         * modules/floor-tests: New file.
63460         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
63461         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
63463 2010-12-21  Bruno Haible  <bruno@clisp.org>
63465         math: Fix indentation.
63466         * lib/math.in.h (floorf): Fix indentation.
63468 2010-12-21  Bruno Haible  <bruno@clisp.org>
63470         Fix cross-compilation guesses on Solaris.
63471         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
63472         not match "solaris2.10".
63473         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63474         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
63475         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
63477 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
63479         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
63480         This fixes a problem observed with the latest coreutils snapshot
63481         that caused a test to fail on Solaris 8.  src/csplit.c's call
63482         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
63483         earlier, instead of returning the number of bytes that would have
63484         been generated; this causes csplit to incorrectly report memory
63485         exhaustion.
63486         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
63487         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
63488         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
63489         comments to match.
63490         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
63491         Fix typo in matching older versions of Solaris: "solaris2.10"
63492         is matched by the shell pattern "solaris2.[0-9]*".  This matters
63493         only for guessing while cross-compiling.
63494         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
63496 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
63498         ftoastr: fix comment again
63499         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
63500         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
63501         Also, simplify example a bit by using flags = 0.
63503 2010-12-20  Bruno Haible  <bruno@clisp.org>
63505         round*, trunc*: Update documentation regarding glibc.
63506         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
63507         * doc/posix-functions/round.texi: Likewise.
63508         * doc/posix-functions/roundl.texi: Likewise.
63509         * doc/posix-functions/truncf.texi: Likewise.
63510         * doc/posix-functions/trunc.texi: Likewise.
63511         * doc/posix-functions/truncl.texi: Likewise.
63513 2010-12-20  Bruno Haible  <bruno@clisp.org>
63515         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
63516         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
63517         * doc/posix-functions/round.texi: Likewise.
63518         * doc/posix-functions/roundl.texi: Likewise.
63520 2010-12-20  Bruno Haible  <bruno@clisp.org>
63522         ttyname_r: Add missing declaration on HP-UX 11.
63523         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
63524         HAVE_TTYNAME_R.
63525         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
63526         declared. Set HAVE_TTYNAME_R always.
63527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63528         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
63529         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
63530         HAVE_TTYNAME_R.
63531         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
63533 2010-12-20  Bruno Haible  <bruno@clisp.org>
63535         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
63536         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
63537         * doc/posix-functions/getlogin_r.texi: Likewise.
63538         * tests/test-getlogin.c: Include <errno.h>.
63539         (main): Avoid test failure on HP-UX 11.11.
63540         * tests/test-getlogin_r.c (main): Likewise.
63542 2010-12-20  Bruno Haible  <bruno@clisp.org>
63544         getlogin_r: Add missing declaration on HP-UX 11.
63545         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
63546         declared also when it exists as a function.
63547         * doc/posix-functions/getlogin_r.texi: Document this workaround.
63549 2010-12-20  Bruno Haible  <bruno@clisp.org>
63551         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
63552         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
63553         through wcrtomb.
63555 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
63557         ftoastr: fix comment
63558         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
63559         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
63561 2010-12-19  Bruno Haible  <bruno@clisp.org>
63563         isnan: Ensure it is a macro.
63564         * lib/math.in.h (isnan): Define as a macro if not already a macro.
63565         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
63566         Solaris.
63568 2010-12-19  Bruno Haible  <bruno@clisp.org>
63570         ldexpl test: Fix link error on OSF/1 5.1.
63571         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
63573 2010-12-19  Bruno Haible  <bruno@clisp.org>
63575         wctype: Make it work in C++ mode on OSF/1 5.1.
63576         * lib/wctype.in.h (iswblank): Declare but not define here.
63577         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
63578         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
63579         * modules/wctype (Files): Add lib/iswblank.c.
63581 2010-12-19  Bruno Haible  <bruno@clisp.org>
63583         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
63584         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
63585         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
63587 2010-12-19  Bruno Haible  <bruno@clisp.org>
63589         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
63590         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
63591         _POSIX_PII_SOCKET.
63592         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
63593         * doc/posix-functions/recvfrom.texi: Likewise.
63594         * doc/posix-functions/send.texi: Likewise.
63595         * doc/posix-functions/sendto.texi: Likewise.
63597 2010-12-19  Bruno Haible  <bruno@clisp.org>
63599         tcgetsid: Add missing declaration on OSF/1 5.1.
63600         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
63601         HAVE_TCGETSID.
63602         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
63603         Don't set HAVE_TCGETSID.
63604         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
63605         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
63606         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
63607         HAVE_TCGETSID.
63608         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
63610 2010-12-19  Bruno Haible  <bruno@clisp.org>
63612         stdio: Fix problem with popen() declaration on OSF/1 5.1.
63613         * lib/stdio.in.h: During the include_next statement, let recursive
63614         includes of this file include only the system header file.
63616 2010-12-19  Bruno Haible  <bruno@clisp.org>
63618         iconv_open: Fix regression from 2010-12-04.
63619         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
63620         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
63622 2010-12-19  Bruno Haible  <bruno@clisp.org>
63624         stdbool test: Avoid a gcc warning.
63625         * tests/test-stdbool.c (main): Fail if e1 is false.
63626         Reported by Jim Meyering.
63628 2010-12-19  Jim Meyering  <meyering@redhat.com>
63630         setenv: restore to working order
63631         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
63632         mistakenly removed.
63633         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
63634         HAVE_SETENV.
63635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
63636         HAVE_SETENV.
63638 2010-12-19  Bruno Haible  <bruno@clisp.org>
63640         Document some different function declarations on OSF/1 5.1.
63641         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
63642         * doc/posix-functions/inet_ntop.texi: Likewise.
63643         * doc/posix-functions/gethostname.texi: Likewise.
63644         * lib/unistd.in.h (gethostname): Update comment.
63646 2010-12-19  Bruno Haible  <bruno@clisp.org>
63648         doc: Mention vasprintf-posix module.
63649         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
63650         the 'vasprintf-posix' module.
63651         * doc/glibc-functions/vasprintf.texi: Likewise.
63653 2010-12-19  Bruno Haible  <bruno@clisp.org>
63655         unsetenv: Add missing declaration on OSF/1 5.1.
63656         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
63657         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
63658         Don't set HAVE_UNSETENV. In the test program, set _BSD.
63659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
63660         not HAVE_UNSETENV.
63661         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
63662         HAVE_UNSETENV.
63663         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
63665 2010-12-19  Bruno Haible  <bruno@clisp.org>
63667         setenv: Add missing declaration on OSF/1 5.1.
63668         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
63669         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
63670         declared. Don't set HAVE_SETENV.
63671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
63672         not HAVE_SETENV.
63673         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
63674         HAVE_SETENV.
63675         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
63677 2010-12-19  Bruno Haible  <bruno@clisp.org>
63679         nl_langinfo tests: Avoid gcc warning.
63680         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
63682 2010-12-19  Bruno Haible  <bruno@clisp.org>
63684         mknod: Avoid error in C++ mode on OSF/1 with GCC.
63685         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
63686         _GL_CXXALIAS_SYS.
63688 2010-12-19  Bruno Haible  <bruno@clisp.org>
63690         stdbool: Relax test.
63691         * tests/test-stdbool.c (e): Don't require that casts from a variable's
63692         address to 'bool' work in static initializer, for compilers other than
63693         GCC.
63695 2010-12-19  Bruno Haible  <bruno@clisp.org>
63697         ftello: Add missing declaration on OSF/1 5.1.
63698         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
63699         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
63700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
63701         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
63702         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
63704 2010-12-19  Bruno Haible  <bruno@clisp.org>
63706         fseeko: Add missing declaration on OSF/1 5.1.
63707         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
63708         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
63709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
63710         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
63711         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
63713 2010-12-19  Bruno Haible  <bruno@clisp.org>
63715         fchdir: Add missing declaration on OSF/1 5.1.
63716         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
63717         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
63718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
63719         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
63720         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
63722 2010-12-19  Bruno Haible  <bruno@clisp.org>
63724         relocatable-prog-wrapper: Separate from relocatable-prog.
63725         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
63726         uninstall-relocwrapper rule here.
63727         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
63728         Reported by Ian Beckwith <ianb@erislabs.net>.
63730 2010-12-19  Bruno Haible  <bruno@clisp.org>
63732         unistr/u8-mbsnlen: Add missing dependency.
63733         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
63734         Reported by Ian Beckwith <ianb@erislabs.net>.
63736 2010-12-19  Bruno Haible  <bruno@clisp.org>
63738         iconv: Make it possible again to use this module without 'iconv-h'.
63739         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
63740         if it is not defined.
63741         Reported by Ian Beckwith <ianb@erislabs.net>.
63743 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63745         acl: port to Solaris 8 when copying from tmpfs to ufs
63746         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
63747         error number.  Problem observed on Solaris 8 with latest
63748         coreutils, with "mv A B", where A is on a tmpfs file system and B
63749         is on a ufs file system.  This caused coreutils' mv/part-symlink
63750         test to fail.
63752         tests: set fail=0 at start
63753         * tests/init.sh (setup_): Move fail=0 initialization here ...
63754         (mktempd_): ... from here, so that tests can rely on fail being
63755         set to 0 initially.  This fixes a problem in coreutils; see:
63756         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
63758 2010-12-18  Bruno Haible  <bruno@clisp.org>
63760         memmem-simple: Stylistic changes.
63761         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
63762         Fix preprocessor directive indentation.
63764 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63766         memmem, memmem-simple: reorganize and expand empty needle check
63767         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
63768         functional checks to memmem-simple so that one has a fully functional
63769         memmem by using just this module.
63770         Restrict the performance only check to the memmem module.
63771         Also expand the empty needle check to ensure the correct
63772         pointer is returned, not just a non NULL pointer.
63773         * doc/glibc-functions/memmem.texi: Rearrange the portability
63774         documentation to correlate with the rearranged checks.
63775         Clarify exactly how the memmem and memmem-simple modules
63776         relate to each other.
63778 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63779             Bruno Haible  <bruno@clisp.org>
63781         Improve cross-compilation guesses for uClibc.
63782         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
63783         that uClibc does not have the glibc bug.
63784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
63785         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
63787 2010-12-14  Eric Blake  <eblake@redhat.com>
63789         configmake: provide fallbacks for oldest supported autotools
63790         * m4/configmake.m4: New file.
63791         * modules/configmake (Files): Ship it.
63792         (configure.ac): Use it to guarantee fallbacks.
63794 2010-12-13  Pádraig Brady  <P@draigBrady.com>
63796         read-file: Improve handling of large files
63797         * lib/read-file.c (fread_file): Minimize realloc()s
63798         for regular files, and better manage sizes around SIZE_MAX.
63800 2010-12-13  Eric Blake  <eblake@redhat.com>
63802         cloexec, fcntl: relax license
63803         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
63804         consent from all contributors.
63805         * modules/fcntl (License): Likewise.
63807 2010-12-10  Bruno Haible  <bruno@clisp.org>
63809         Tests for module 'pipe-posix'.
63810         * modules/pipe-posix-tests: New file.
63811         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
63813 2010-12-10  Bruno Haible  <bruno@clisp.org>
63815         pipe-posix: Make it work in C++ mode.
63816         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
63817         (pipe): Use common idiom, not a macro definition.
63818         * lib/pipe.c: New file.
63819         * m4/pipe.m4: New file.
63820         * modules/pipe-posix (Description): Enhance.
63821         (Files): Add lib/pipe.c, m4/pipe.m4.
63822         (configure.ac): Invoke gl_FUNC_PIPE.
63823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
63824         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
63825         * tests/test-unistd-c++.cc: Check the signature of pipe.
63827 2010-12-10  Bruno Haible  <bruno@clisp.org>
63829         Rename module 'pipe' to 'spawn-pipe'.
63830         * modules/spawn-pipe: New file, renamed from modules/pipe.
63831         (Files, configure.ac, Makefile.am): Update.
63832         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
63833         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
63834         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
63835         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
63836         "spawn-pipe.h" instead of "pipe.h".
63837         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
63838         to gl_SPAWN_PIPE.
63839         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
63840         (Files, Makefile.am): Update.
63841         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
63842         Update.
63843         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
63844         Include "spawn-pipe.h" instead of "pipe.h".
63845         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
63846         * lib/javacomp.c: Likewise.
63847         * lib/javaversion.c: Likewise.
63848         * lib/pipe-filter-gi.c: Likewise.
63849         * lib/pipe-filter-ii.c: Likewise.
63850         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
63851         * modules/javacomp (Depends-on): Likewise.
63852         * modules/javaversion (Depends-on): Likewise.
63853         * modules/pipe-filter-gi (Depends-on): Likewise.
63854         * modules/pipe-filter-ii (Depends-on): Likewise.
63855         * MODULES.html.sh (Executing programs): Update.
63856         * NEWS: Mention the change.
63858 2010-12-10  Eric Blake  <eblake@redhat.com>
63860         pipe-posix: new module
63861         * modules/pipe-posix: New file.
63862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
63863         (gl_UNISTD_H): Check for declaration.
63864         * modules/unistd (Makefile.am): Substitute it.
63865         * lib/unistd.in.h (pipe): Provide it for mingw.
63866         * doc/posix-functions/pipe.texi (pipe): Update documentation.
63867         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
63869 2010-12-07  Bruno Haible  <bruno@clisp.org>
63871         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
63872         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
63873         u8_strcmp_gnu.
63874         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
63876 2010-12-06  Bruno Haible  <bruno@clisp.org>
63878         Update internal documentation.
63879         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
63881 2010-12-04  Bruno Haible  <bruno@clisp.org>
63883         Put more information about failed tests into the test return codes.
63884         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
63885         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
63886         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63887         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63888         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
63889         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63890         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63891         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
63892         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
63893         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63894         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
63895         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63896         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
63897         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63898         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
63899         returns a bit mask.
63900         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
63901         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
63902         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
63903         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
63904         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63905         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
63906         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63907         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
63908         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
63909         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
63910         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
63911         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
63912         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
63913         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
63914         * m4/link.m4 (gl_FUNC_LINK): Likewise.
63915         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63916         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
63917         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
63918         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63919         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
63920         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63921         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
63922         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
63923         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63924         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63925         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
63926         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
63927         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
63928         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
63929         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
63930         gl_PRINTF_PRECISION): Likewise.
63931         * m4/regex.m4 (gl_REGEX): Likewise.
63932         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
63933         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
63934         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
63935         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63936         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63937         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63938         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
63939         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
63940         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63941         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63942         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63943         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
63944         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
63945         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63946         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63947         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63948         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
63949         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
63950         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63951         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
63952         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
63953         enumerated value.
63954         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
63956 2010-12-04  Bruno Haible  <bruno@clisp.org>
63958         Update for Solaris 11 2010-11.
63959         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
63960         Express, released in November 2010.
63962 2010-12-04  Bruno Haible  <bruno@clisp.org>
63964         nproc: Relax license.
63965         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
63966         and Paul Eggert.
63967         Requested by Ludovic Courtès <ludo@gnu.org>.
63969 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63971         utimecmp: fine-grained src to nearby coarse-grained dest
63973         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
63974         and the source is on a file system with higher-resolution time
63975         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
63976         not work, and the time stamps are close together, the algorithm to
63977         determine the exact resolution from the read-back mtime was buggy:
63978         it had a "!=" where it should have had an "==".  This bug has been
63979         in the code ever since it was introduced to gnulib.
63980         Problem reported by Dan Jacobson in
63981         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
63983 2010-11-30  Bruno Haible  <bruno@clisp.org>
63985         strerror_r-posix: Fix autoconf test.
63986         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
63988 2010-11-28  Bruno Haible  <bruno@clisp.org>
63989             Paul Eggert  <eggert@cs.ucla.edu>
63991         Tests for module 'getdomainname'.
63992         * modules/getdomainname-tests: New file.
63993         * tests/test-getdomainname.c: New file, based on
63994         tests/test-gethostname.c.
63996 2010-11-28  Bruno Haible  <bruno@clisp.org>
63997             Paul Eggert  <eggert@cs.ucla.edu>
63999         getdomainname: Use the system function when possible.
64000         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
64001         (getdomainname): Replace if needed. Provide the declaration if it is
64002         missing. Don't use _GL_CXXALIAS_SYS_CAST.
64003         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
64004         (getdomainname): When the system has getdomainname, call the system
64005         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
64006         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
64007         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
64008         found in libnsl. Look for the declaration also in <netdb.h>. Replace
64009         the function if its second argument is of type 'int' or if it is found
64010         in libnsl.
64011         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
64012         <sys/systeminfo.h> and sysinfo().
64013         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
64014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64015         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
64016         HAVE_GETDOMAINNAME.
64017         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
64018         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
64019         * doc/glibc-functions/getdomainname.texi: Document the problems with
64020         the getdomainname declaration.
64022 2010-11-28  Bruno Haible  <bruno@clisp.org>
64024         sys_socket: Ensure ss_family field on AIX.
64025         * lib/sys_socket.in.h (ss_family): New macro definition.
64026         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
64027         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
64028         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
64029         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
64030         * modules/sys_socket (Makefile.am): Substitute
64031         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
64032         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
64034 2010-11-27  Bruno Haible  <bruno@clisp.org>
64036         readline: Improve configure output.
64037         * m4/readline.m4 (gl_FUNC_READLINE): Make the
64038         "checking for readline..." result understandable.
64040 2010-11-27  Bruno Haible  <bruno@clisp.org>
64042         *printf-posix: Detect a bug on Solaris 10/x86.
64043         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
64044         for floating-point output.
64045         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
64046         directive.
64047         * tests/test-snprintf-posix.h (test_function): Likewise.
64048         * tests/test-sprintf-posix.h (test_function): Likewise.
64049         * tests/test-vasprintf-posix.c (test_function): Likewise.
64050         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
64051         * doc/posix-functions/printf.texi: Likewise.
64052         * doc/posix-functions/snprintf.texi: Likewise.
64053         * doc/posix-functions/sprintf.texi: Likewise.
64054         * doc/posix-functions/vfprintf.texi: Likewise.
64055         * doc/posix-functions/vprintf.texi: Likewise.
64056         * doc/posix-functions/vsnprintf.texi: Likewise.
64057         * doc/posix-functions/vsprintf.texi: Likewise.
64058         * doc/glibc-functions/obstack_printf.texi: Likewise.
64059         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
64061 2010-11-27  Bruno Haible  <bruno@clisp.org>
64063         Fix link error when module libunistring-optional is in use.
64064         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
64065         * modules/striconveha-tests (Makefile.am): Likewise.
64067 2010-11-27  Bruno Haible  <bruno@clisp.org>
64069         regex: Mention link dependencies.
64070         * modules/regex (Link): New section.
64071         * modules/rpmatch (Link): Likewise.
64072         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
64074 2010-11-27  Bruno Haible  <bruno@clisp.org>
64076         ftoastr: Fix compilation error on Solaris.
64077         * lib/ftoastr.c: Include <config.h>.
64079 2010-11-27  Bruno Haible  <bruno@clisp.org>
64081         getloadavg: Update documentation.
64082         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
64084 2010-11-27  Bruno Haible  <bruno@clisp.org>
64086         sys_socket: Fix test whether the functions are declared.
64087         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
64088         not <sys/select.h>.
64090 2010-11-27  Bruno Haible  <bruno@clisp.org>
64092         getpass: Make sure to get system declaration on some platforms.
64093         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
64094         gl_USE_SYSTEM_EXTENSIONS.
64095         * modules/getpass (Depends-on): Add extensions.
64097 2010-11-26  Bruno Haible  <bruno@clisp.org>
64099         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
64100         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
64101         'iconv' module is present.
64102         (ICONV_CONST): New macro.
64103         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
64104         ICONV_CONST.
64105         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
64106         set ICONV_CONST.
64107         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
64108         here.
64109         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
64110         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
64111         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
64112         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
64113         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
64114         present.
64116 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64118         ftoastr: comment fix
64119         * lib/ftoastr.c: "little" -> "little or no" in comment
64121 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
64123         stdint: port to GCC 4.3 + OSX + Octave
64124         On this platform, stdint.h is buggy and defines int64_t to long
64125         long int.  The replacement defined it to long int, causing
64126         problems with C++ style name mangling.  Instead, trust the system
64127         definition if INT64_MAX is defined, and likewise for the unsigned
64128         variant.   Problem reported by Jarno Rajahalme in
64129         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
64130         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
64131         and don't mess with int64_t and INT64_MAX in this case.
64132         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
64134 2010-11-24  Bruno Haible  <bruno@clisp.org>
64136         doc: Corrections regarding MacOS X 10.4 and 10.5.
64137         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
64138         MacOS X.
64139         Reported by Simon Josefsson.
64141 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
64143         Uninstall ".bin" files installed by relocwrapper.
64144         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
64145         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
64146         unless it is already there.
64148 2010-11-21  Bruno Haible  <bruno@clisp.org>
64150         Update for NetBSD 5.0.
64151         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
64152         NetBSD; the test fails on NetBSD 5.0.
64153         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
64154         about NetBSD.
64156 2010-11-21  Bruno Haible  <bruno@clisp.org>
64158         Update for HP-UX 11.23 and HP-UX 11.31.
64159         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
64160         HP-UX.
64162 2010-11-21  Bruno Haible  <bruno@clisp.org>
64164         Update for MacOS X 10.5.
64165         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
64166         MacOS X; the test fails on MacOS X 10.5.8.
64167         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
64168         about MacOS X.
64170 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
64172         bootstrap: add bootstrap_sync option.
64173         See discussion at
64174         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
64175         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
64176         * build-aux/bootstrap: Accept --bootstrap-sync to update
64177         bootstrap if it is not identical to the local gnulib's
64178         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
64179         enable this by default.  Accept --no-bootstrap-sync to disable
64180         it.
64182 2010-11-20  Bruno Haible  <bruno@clisp.org>
64184         Ensure that <features.h> is included before __GLIBC__ is tested.
64185         * lib/printf-parse.h: Include <features.h>.
64186         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
64187         Reported by Mike Frysinger <vapier@gentoo.org>.
64189         Ensure that <features.h> is included before __GLIBC__ is tested.
64190         * lib/wchar.in.h: Include <features.h>.
64191         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
64192         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
64193         Reported by Mike Frysinger <vapier@gentoo.org>.
64195         Ensure that <features.h> is included before __GLIBC__ is tested.
64196         * lib/arpa_inet.in.h: Include <features.h>.
64197         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
64198         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
64199         Reported by Mike Frysinger <vapier@gentoo.org>.
64201         Ensure that <features.h> is included before __GLIBC__ is tested.
64202         * build-aux/link-warning.h: Include <features.h>.
64203         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
64204         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
64205         Reported by Mike Frysinger <vapier@gentoo.org>.
64207         Ensure that <features.h> is included before __GLIBC__ is tested.
64208         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
64209         Reported by Mike Frysinger <vapier@gentoo.org>.
64211 2010-11-20  Bruno Haible  <bruno@clisp.org>
64213         memmem: Fix autoconf test.
64214         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
64216 2010-11-20  Bruno Haible  <bruno@clisp.org>
64218         Port to uClibc.
64219         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
64220         * lib/fcntl.in.h: Likewise.
64221         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
64222         * lib/mbrtowc.c (mbrtowc): Likewise.
64223         * lib/relocatable.c (find_shared_library_fullname): Likewise.
64224         * lib/strerror_r.c: Likewise.
64225         * lib/unistr/u8-strnlen.c: Likewise.
64226         * lib/vasnprintf.c (decimal_point_char): Likewise.
64227         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
64228         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
64229         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
64230         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
64231         * tests/test-sigaction.c (handler, main): Likewise.
64232         * lib/freading.h: Treat uClibc like a non-glibc platform.
64233         * lib/freading.c: Likewise.
64234         * lib/gettext.h: Likewise.
64235         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
64236         Likewise.
64237         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
64238         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64239         * lib/propername.c (proper_name_utf8): Likewise.
64240         * lib/spawn.in.h: Likewise.
64241         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
64242         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
64243         mem_cd_iconveh_internal): Likewise.
64244         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
64245         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
64246         strstr, strcasestr): Likewise.
64247         * lib/unicodeio.c (unicode_to_mb): Likewise.
64248         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
64249         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
64250         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
64251         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
64252         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
64253         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
64254         * lib/unistr/u8-stpncpy.c: Likewise.
64255         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64256         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
64257         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64258         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64259         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
64260         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
64261         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
64262         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
64263         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
64264         Likewise.
64265         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64266         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64267         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
64268         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64269         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64270         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
64271         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64272         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
64273         * tests/test-getopt.h (OPTIND_MIN): Likewise.
64274         * tests/test-striconveha.c (main): Likewise.
64275         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64276         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
64277         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
64278         * doc/posix-functions/getline.texi: Likewise.
64279         Reported by Mike Frysinger <vapier@gentoo.org>.
64281 2010-11-20  Bruno Haible  <bruno@clisp.org>
64283         nproc: Fix condition.
64284         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
64285         HAVE_PTHREAD_AFFINITY_NP.
64287 2010-11-20  Bruno Haible  <bruno@clisp.org>
64289         Fix a comment.
64290         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
64292 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
64294         ftoastr: don't assume snprintf
64295         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
64296         Implement a subset of snprintf here, by using sprintf safely.
64297         * modules/ftoastr (Depends-on): Remove snprintf.
64299 2010-11-19  Jim Meyering  <meyering@redhat.com>
64301         test-rename.h: fix compilation failure
64302         * tests/test-rename.h (test_rename): Add omitted "}".
64304 2010-11-17  Jim Meyering  <meyering@redhat.com>
64306         maint.mk: add a URL discussing the no-@acronym policy
64307         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
64309 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
64311         ftoastr: depend on snprintf, improve comments
64312         * lib/ftoastr.c: Also mention Loitsch's draft.
64313         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
64314         needed in the current implementation, but it might simplify
64315         speeding up the code later.
64316         * modules/ftoastr: Depend on snprintf; this improves portability.
64317         Suggested by Bruno Haible in the same email.
64319         ftoastr: port to hosts lacking strtof and strtold
64320         Problem reported by Bruno Haible in
64321         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
64322         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
64323         environment and strtold (and presumably strtof) are not available.
64324         * modules/ftoastr (Files): Add m4/c-strtod.m4.
64325         (configure.ac): Require gl_C99_STRTOLD.
64327 2010-11-18  Bruno Haible  <bruno@clisp.org>
64329         c-strtold: Avoid link error on AIX 7.
64330         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
64331         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
64332         (gl_C_STRTOLD): Test whether strtold_l exists.
64333         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64335 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64337         intprops: new macro INT_BITS_STRLEN_BOUND
64338         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
64339         ftoastr.h.  This exposes an internal of intprops.h that was formerly
64340         not exposed.  Also, it uses a slightly tighter bound than before;
64341         though this makes no practical difference, we might as well be as
64342         tight as we easily can.
64344         ftoastr: new module, for lossless conversion of floats to short strings
64345         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
64346         * modules/ftoastr: New files.
64348 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64350         bootstrap: port to Solaris sed
64351         * build-aux/bootstrap (get_version): Port to Solaris sed.
64352         See Ralf Wildenhues's note in
64353         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
64355 2010-11-14  Jim Meyering  <meyering@redhat.com>
64357         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
64358         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
64359         and move definition closer to sole use.
64361 2010-11-13  Jim Meyering  <meyering@redhat.com>
64363         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
64364         Now we require at least autoconf-2.59, which means the work-around
64365         is no longer needed.
64366         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
64367         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64368         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64369         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64370         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64372 2010-11-13  Bruno Haible  <bruno@clisp.org>
64374         rename, renameat: Avoid test failures at NFS mounted locations.
64375         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
64376         functions.
64377         (test_rename): Use assert_nonexistent.
64378         * tests/test-rename.c: Include <dirent.h>.
64379         * tests/test-renameat.c: Likewise.
64380         Reported by Gary V. Vaughan <gary@gnu.org>.
64382         rename, renameat: Document Linux bug with NFS
64383         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
64384         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
64385         * doc/posix-functions/renameat.texi: Likewise.
64386         Suggested by Eric Blake.
64388 2010-11-13  Bruno Haible  <bruno@clisp.org>
64390         rename test: Add comments.
64391         * tests/test-rename.h (test_rename): Add structure and comments.
64393 2010-11-13  Eric Blake  <eblake@redhat.com>
64395         maintainer-makefile: cover a few more files
64396         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
64397         scripts generated within C files, for libvirt.
64399 2010-11-13  Bruno Haible  <bruno@clisp.org>
64401         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
64402         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
64403         character, return the number of bytes that belong together, not always
64404         1.
64405         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
64406         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
64407         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
64408         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
64409         number of bytes of an invalid character.
64410         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
64411         (main): Invoke it.
64412         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
64413         results.
64414         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
64415         malformed byte sequences.
64416         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
64417         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
64418         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
64419         Reported by Ben Pfaff and Paolo Bonzini.
64421 2010-11-13  Bruno Haible  <bruno@clisp.org>
64423         openat: Work around glibc bug with fchownat() and empty file names.
64424         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
64425         (gl_FUNC_FCHOWNAT): Invoke it.
64426         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
64427         * doc/posix-functions/fchownat.texi: Document the glibc bug.
64428         Reported by Gary V. Vaughan <gary@gnu.org>.
64430 2010-11-13  Bruno Haible  <bruno@clisp.org>
64432         openat: Ensure autoconf macro ordering.
64433         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
64434         gl_USE_SYSTEM_EXTENSIONS.
64435         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
64437 2010-11-13  Bruno Haible  <bruno@clisp.org>
64439         Update comments.
64440         * lib/unistr/u8-check.c: Update file name in comments.
64441         * lib/unistr/u8-mblen.c: Likewise.
64442         * lib/unistr/u8-prev.c: Likewise.
64443         * lib/unistr/u8-strmblen.c: Likewise.
64444         * lib/unistr/u8-strmbtouc.c: Likewise.
64446 2010-11-13  Jim Meyering  <meyering@redhat.com>
64448         tests: avoid test failure on Solaris 10 due to lack of PATH export
64449         * tests/test-update-copyright.sh: Don't forget to export PATH.
64451         init.sh: ensure that IFS is defined, just in case...
64452         * tests/init.sh (setup_): Ensure that IFS is defined,
64453         so that saving and restoring it works as expected.  This
64454         appears to be useful at least for an old version of dash
64455         from a long time ago (RH 6).  See here for details:
64456         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
64458         maint.mk: tighten "test a == b" check
64459         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
64460         test to files that contain something like #!/bin/sh.
64461         Without this, coreutils would get two false positives in
64462         the comments of C source files.
64464 2010-11-12  Eric Blake  <eblake@redhat.com>
64466         bootstrap: fix typo in previous attempt
64467         * build-aux/bootstrap (buildreq): Correct the grouping.
64468         Reported by Paul Eggert.
64470         maintainer-makefile: prohibit test x == x
64471         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
64472         Based on a report by Matthias Bolte.
64474         bootstrap: allow FreeBSD gzip
64475         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
64476         which has no '.' and goes to stderr.
64477         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
64478         Reported by Matthias Bolte.
64480         maintainer-makefile: check for i18n setup
64481         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
64482         will likely work.
64484 2010-11-12  Bruno Haible  <bruno@clisp.org>
64486         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
64487         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
64488         * lib/nanosleep.c (nanosleep): Likewise.
64490 2010-11-11  Bruno Haible  <bruno@clisp.org>
64492         fcntl-h: Fix for use of C++ on glibc systems.
64493         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
64494         also on glibc systems in C++ mode.
64495         Reported by Gary V. Vaughan <gary@gnu.org>.
64497 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64499         mknod: avoid false failure with dash
64500         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
64502 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
64504         unlink: Fix "is it should" typo in diagnostic.
64505         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
64506         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
64508 2010-11-11  Bruno Haible  <bruno@clisp.org>
64510         Tests for module 'strerror_r-posix'.
64511         * modules/strerror_r-posix-tests: New file.
64512         * tests/test-strerror_r.c: New file.
64513         * tests/test-string-c++.cc: Check the signature of strerror_r.
64515         New module 'strerror_r-posix'.
64516         * lib/string.in.h (strerror_r): New declaration.
64517         * lib/strerror_r.c: New file.
64518         * m4/strerror_r.m4: New file.
64519         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
64520         of strerror_r.
64521         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
64522         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
64523         * modules/strerror_r-posix: New file.
64524         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
64525         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
64526         * doc/posix-functions/strerror_r.texi: Mention the new module and the
64527         portability problems.
64529 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
64531         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
64532         line is also considered for output. Quoted function name in shell
64533         command, so temporary files for functions like MyClass::operator()
64534         are removed correctly without errors.
64536 2010-11-09  Bruno Haible  <bruno@clisp.org>
64538         * doc/posix-functions/strerror.texi: List more failing platforms.
64540         * doc/posix-functions/strerror.texi: Add a comment.
64542 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64544         fdopendir: fix bug on MacOS X when low on file descriptors
64546         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
64547         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
64548         All callers changed.
64549         (fdopendir): Invoke save_cwd at the top level, not after using
64550         multiple dup() calls to use up file descriptors.  Then retry
64551         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
64552         less than the maximum number of open file descriptors, because
64553         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
64554         on Mac OS X 10.6.4 for tar 1.24
64555         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
64556         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
64557         and for tar 1.25
64558         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
64560 2010-11-07  Bruno Haible  <bruno@clisp.org>
64562         vasnprintf: Support I flag on glibc systems.
64563         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
64564         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
64565         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
64566         snprintf function.
64567         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
64568         glibc systems.
64569         * tests/test-vasnprintf-posix3.c: New file.
64570         * modules/vasnprintf-posix-tests (Files): Add it.
64571         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
64573 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64575         [html] Fix copy/paste bug: Use unique name for compiler warnings.
64576         * MODULES.html.sh: For compiler warnings, use name
64577         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
64579 2010-11-05  Eric Blake  <eblake@redhat.com>
64581         ceil, floor: avoid spurious failure with icc
64582         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
64583         [denormals-as-zero] when optimizing without -mieee-fp option.
64584         * tests/test-floorf2.c (floorf_reference): Likewise.
64585         * tests/test-ceilf1.c (dummy): New function.
64586         (main): Use it to outsmart icc's optimization.
64587         * tests/test-floorf1.c (dummy, main): Likewise.
64589         tests: require working signbit
64590         * modules/ceilf-tests (Depends-on): Add signbit.
64591         * modules/ceill-tests (Depends-on): Likewise.
64592         * modules/floorf-tests (Depends-on): Likewise.
64593         * modules/floorl-tests (Depends-on): Likewise.
64594         * modules/round-tests (Depends-on): Likewise.
64595         * modules/roundf-tests (Depends-on): Likewise.
64596         * modules/roundl-tests (Depends-on): Likewise.
64597         * modules/trunc-tests (Depends-on): Likewise.
64598         * modules/truncf-tests (Depends-on): Likewise.
64599         * modules/truncl-tests (Depends-on): Likewise.
64601         strtod: work around icc bug
64602         * lib/strtod.c (minus_zero): Define to working value.
64603         (strtod): Use it to avoid icc bug.
64605         copysign: enhance tests
64606         * modules/copysign-tests (Files): Add minus-zero.h.
64607         * tests/test-copysign.c (main): Also test zeros.
64609 2010-11-04  Eric Blake  <eblake@redhat.com>
64611         ceil, floor, round, trunc: enhance tests of -0
64612         * tests/test-ceilf1.c (main): Ensure correct sign of result.
64613         * tests/test-ceill.c (main): Likewise.
64614         * tests/test-floorf1.c (main): Likewise.
64615         * tests/test-floorl.c (main): Likewise.
64616         * tests/test-round1.c (main): Likewise.
64617         * tests/test-roundf1.c (main): Likewise.
64618         * tests/test-roundl.c (main): Likewise.
64619         * tests/test-trunc1.c (main): Likewise.
64620         * tests/test-truncf1.c (main): Likewise.
64621         * tests/test-truncl.c (main): Likewise.
64623 2010-11-04  Eric Blake  <eblake@redhat.com>
64625         frexp, tests: work around ICC bug with -zero
64626         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
64627         works with more compilers.
64628         * tests/minus-zero.h: New file.
64629         * modules/ceilf-tests (Files): Include it.
64630         * modules/ceill-tests (Files): Likewise.
64631         * modules/floorf-tests (Files): Likewise.
64632         * modules/floorl-tests (Files): Likewise.
64633         * modules/frexp-nolibm-tests (Files): Likewise.
64634         * modules/frexp-tests (Files): Likewise.
64635         * modules/frexpl-nolibm-tests (Files): Likewise.
64636         * modules/frexpl-tests (Files): Likewise.
64637         * modules/isnan-tests (Files): Likewise.
64638         * modules/isnand-nolibm-tests (Files): Likewise.
64639         * modules/isnand-tests (Files): Likewise.
64640         * modules/isnanf-nolibm-tests (Files): Likewise.
64641         * modules/isnanf-tests (Files): Likewise.
64642         * modules/isnanl-nolibm-tests (Files): Likewise.
64643         * modules/isnanl-tests (Files): Likewise.
64644         * modules/round-tests (Files): Likewise.
64645         * modules/roundf-tests (Files): Likewise.
64646         * modules/roundl-tests (Files): Likewise.
64647         * modules/ldexpl-tests (Files): Likewise.
64648         * modules/signbit-tests (Files): Likewise.
64649         * modules/snprintf-posix-tests (Files): Likewise.
64650         * modules/sprintf-posix-tests (Files): Likewise.
64651         * modules/strtod-tests (Files): Likewise.
64652         * modules/trunc-tests (Files): Likewise.
64653         * modules/truncf-tests (Files): Likewise.
64654         * modules/truncl-tests (Files): Likewise.
64655         * modules/vsnprintf-posix-tests (Files): Likewise.
64656         * modules/vsprintf-posix-tests (Files): Likewise.
64657         * modules/vasnprintf-posix-tests (Files): Likewise.
64658         * modules/vasprintf-posix-tests (Files): Likewise.
64659         * tests/test-ceilf1.c (main): Use it.
64660         * tests/test-ceill.c (main): Likewise.
64661         * tests/test-floorf1.c (main): Likewise.
64662         * tests/test-floorl.c (main): Likewise.
64663         * tests/test-frexp.c (main): Likewise.
64664         * tests/test-frexpl.c (main): Likewise.
64665         * tests/test-isnan.c (main): Likewise.
64666         * tests/test-isnand.h (main): Likewise.
64667         * tests/test-isnanf.h (main): Likewise.
64668         * tests/test-isnanl.h (main): Likewise.
64669         * tests/test-ldexpl.c (main): Likewise.
64670         * tests/test-round.c (main): Likewise.
64671         * tests/test-roundf.c (main): Likewise.
64672         * tests/test-roundl.c (main): Likewise.
64673         * tests/test-signbit.c (test_signbitf, test_signbitd)
64674         (test_signbitl): Likewise.
64675         * tests/test-snprintf-posix.h (test_function): Likewise.
64676         * tests/test-sprintf-posix.h (test_function): Likewise.
64677         * tests/test-strtod.c (main): Likewise.
64678         * tests/test-trunc1.c (main): Likewise.
64679         * tests/test-truncf1.c (main): Likewise.
64680         * tests/test-truncl.c (main): Likewise.
64682         isnanl: work around icc bug
64683         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
64685 2010-11-03  Eric Blake  <eblake@redhat.com>
64687         tests: fix compiler warnings
64688         * tests/test-getopt.h (test_getopt): Fix condition.
64689         * tests/test-getopt_long.h (test_getopt_long): Likewise.
64690         * tests/test-pipe2.c (main): Likewise.
64691         * tests/test-quotearg-simple.c (main): Avoid icc warning.
64693         utimens: fix broken m4 test
64694         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
64696 2010-10-28  Bruno Haible  <bruno@clisp.org>
64698         posix_spawn*, getdtablesize: Relax license.
64699         * modules/posix_spawn (License): Change to LGPLv2+.
64700         * modules/posix_spawnp (License): Likewise.
64701         * modules/posix_spawn-internal (License): Likewise.
64702         * modules/posix_spawnattr_init (License): Likewise.
64703         * modules/posix_spawnattr_getflags (License): Likewise.
64704         * modules/posix_spawnattr_setflags (License): Likewise.
64705         * modules/posix_spawnattr_getpgroup (License): Likewise.
64706         * modules/posix_spawnattr_setpgroup (License): Likewise.
64707         * modules/posix_spawnattr_getschedparam (License): Likewise.
64708         * modules/posix_spawnattr_setschedparam (License): Likewise.
64709         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
64710         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
64711         * modules/posix_spawnattr_getsigdefault (License): Likewise.
64712         * modules/posix_spawnattr_setsigdefault (License): Likewise.
64713         * modules/posix_spawnattr_getsigmask (License): Likewise.
64714         * modules/posix_spawnattr_setsigmask (License): Likewise.
64715         * modules/posix_spawnattr_destroy (License): Likewise.
64716         * modules/posix_spawn_file_actions_init (License): Likewise.
64717         * modules/posix_spawn_file_actions_addclose (License): Likewise.
64718         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
64719         * modules/posix_spawn_file_actions_addopen (License): Likewise.
64720         * modules/posix_spawn_file_actions_destroy (License): Likewise.
64721         * modules/getdtablesize (License): Likewise.
64722         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
64724 2010-10-26  Bruno Haible  <bruno@clisp.org>
64726         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
64727         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
64728         Cygwin and mingw.
64729         Suggested by Eric Blake.
64731 2010-10-26  Bruno Haible  <bruno@clisp.org>
64733         stdio: Work around compilation error due to renameat() on Solaris 10.
64734         * lib/stdio.in.h: Include <unistd.h> on Solaris.
64735         * lib/renameat.c: Don't include <unistd.h> here.
64736         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
64737         Reported by Paul Eggert and Eric Blake.
64739 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64741         renameat: port to Solaris 10, which declares renameat in unistd.h
64743         * lib/renameat.c: Include unistd.h before stdio.h, because
64744         Solaris 10 declares renameat in unistd.h.  Problem encountered
64745         when building GNU tar 1.24 on Solaris 10.
64747 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64749         fdopendir: fix C89 compilation
64750         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
64751         compilers.
64753 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
64755         inttostr: simplify by removing unnecessary redundancy
64756         * lib/anytostr.c: Don't include verify.h.
64757         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
64758         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
64759         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
64760         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
64761         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
64762         Likewise.
64763         * modules/inttostr (Depends-on): Remove 'verify'.
64765 2010-10-23  Bruno Haible  <bruno@clisp.org>
64767         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
64768         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
64769         Reported by Eric Blake.
64771 2010-10-23  Bruno Haible  <bruno@clisp.org>
64773         Tests: Fix LOCALE_JA on MirBSD 10.
64774         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
64775         to an UTF-8 locale.
64776         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
64777         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64778         Reported by Eric Blake.
64780 2010-10-21  Bruno Haible  <bruno@clisp.org>
64782         nl_langinfo test: Avoid test failure on NetBSD 5.
64783         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
64784         Reported by Eric Blake.
64786 2010-10-21  Eric Blake  <eblake@redhat.com>
64788         c-stack: work around libsigsegv 2.8 bug
64789         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
64790         overflow on at least PowerPC64.
64792 2010-10-17  Bruno Haible  <bruno@clisp.org>
64794         userspec: Drop redundant file.
64795         * modules/userspec (Files): Remove lib/inttostr.h.
64797 2010-10-17  Bruno Haible  <bruno@clisp.org>
64799         nl_langinfo tests: Silence some warnings.
64800         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
64801         Reported by Jim Meyering.
64803 2010-10-17  Bruno Haible  <bruno@clisp.org>
64805         Make use of GCC's attribute __alloc_size__.
64806         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
64807         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
64808         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
64809         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
64810         __alloc_size__.
64811         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
64812         Suggested by Jim Meyering.
64814 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
64816         bootstrap: anchor .gitignore entries.
64817         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
64818         with...
64819         (insert_vc_ignore): ... this new function, which prepends `/' to
64820         all .gitignore entries before passing them to
64821         insert_sorted_if_absent.
64823 2010-10-16  Bruno Haible  <bruno@clisp.org>
64825         nextafter: Fix configure check.
64826         * modules/nextafter (configure.ac): Correct expected prototype.
64828 2010-10-16  Bruno Haible  <bruno@clisp.org>
64830         termios: Update documentation.
64831         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
64833 2010-10-16  Bruno Haible  <bruno@clisp.org>
64835         tests: Make them compile with TinyCC.
64836         * tests/test-strstr.c (main): Remove parentheses around array
64837         initializer.
64839 2010-10-15  Eric Blake  <eblake@redhat.com>
64841         ignore-value: make header idempotent
64842         * lib/ignore-value.h: Add double-inclusion guards.
64843         Reported by Stefan Berger.
64845 2010-10-15  Jim Meyering  <meyering@redhat.com>
64847         GNUmakefile: handle "stable" target, not "major"
64848         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
64849         lists in maint.mk and announce-gen.  Without this, "make stable"
64850         would fail to ensure that $(VERSION) is up to date.
64852 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
64854         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
64855         & co.
64857 2010-10-14  Bruno Haible  <bruno@clisp.org>
64859         vasnprintf: Don't set errno to 0.
64860         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
64861         block that sets it to 0.
64862         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
64864 2010-10-14  Bruno Haible  <bruno@clisp.org>
64866         socketlib: Fix.
64867         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
64868         gl_PREREQ_SYS_H_WINSOCK2.
64869         Reported by Ian Beckwith <ianb@erislabs.net>.
64871 2010-10-13  Jim Meyering  <meyering@redhat.com>
64873         test-select-stdin.c: avoid warn_unused_result warnings
64874         * tests/test-select-stdin.c: Include "macros.h".
64875         ASSERT that read and fflush succeed.
64877 2010-10-13  Jim Meyering  <meyering@redhat.com>
64879         git-version-gen: do require git-VC'd files in cwd
64880         * build-aux/git-version-gen: Reject a git version string
64881         if there are no commits associated with the current directory.
64882         This avoids an unlikely false-positive (unrelated dir whose parent
64883         repository also contains a tag matching v*), as pointed out
64884         by Giuseppe Scrivano in
64885         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
64887 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64889         argv-iter: omit nonconforming declaration
64890         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
64891         enum arg_iter_err declaration, which doesn't conform to C99.
64892         Solaris 10 cc warns about this.
64894 2010-10-13  Eric Blake  <eblake@redhat.com>
64896         termios: fix compilation on mingw
64897         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
64898         (gl_TERMIOS_H): Adjust it on mingw.
64899         * modules/termios (Makefile.am): Substitute new key.
64900         * lib/termios.in.h (includes): Make include_next conditional.
64901         * doc/posix-headers/termios.texi (termios.h): Update
64902         documentation.
64903         Reported by Daniel P. Berrange.
64905 2010-10-13  Jim Meyering  <meyering@redhat.com>
64907         git-version-gen: don't require that .git/ be in the current dir
64908         * build-aux/git-version-gen: Adjust this script so that it works
64909         when run from any working directory beneath the top-level .git/-
64910         containing directory.  Inspired by a patch from Giuseppe Scrivano,
64911         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
64913         test-select: avoid warn_unused_result warnings
64914         * tests/test-select.c: Include "macros.h".
64915         ASSERT that each call to read, write, and pipe succeeds.
64916         While not technically required, also check each "close".
64917         * modules/select-tests (Files): Add tests/macros.h.
64919         test-symlinkat: remove declaration of unused local
64920         * tests/test-symlinkat.c (main): Remove unused local, "buf".
64922         test-inttostr: avoid shadowing warnings
64923         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
64924         and use malloc rather than the stack for the same reason as
64925         mentioned in the comment justifying the other allocation.
64927 2010-10-11  Bruno Haible  <bruno@clisp.org>
64929         stdlib: Allow multiple gnulib generated replacements to coexist.
64930         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
64931         Reported by Sam Steingold <sds@gnu.org>.
64933 2010-10-11  Jim Meyering  <meyering@redhat.com>
64935         fix a documentation typo
64936         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
64938 2010-10-11  Eric Blake  <eblake@redhat.com>
64940         futimens: work around Solaris 11 bug
64941         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
64942         * tests/test-futimens.h (test_futimens): Enhance, rather than
64943         weaken test.
64944         * doc/posix-functions/futimens.texi (futimens): Document the bug.
64946 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64948         Indentation.
64949         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
64950         higher-level operators more to the left.
64952 2010-10-11  Jim Meyering  <meyering@redhat.com>
64954         test-futimens: avoid unwarranted test failure on Solaris 5.11
64955         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
64956         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
64957         because it tries to dereference the NULL name argument.
64959 2010-10-11  Bruno Haible  <bruno@clisp.org>
64961         Indentation.
64962         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
64963         indentation.
64965 2010-10-11  Jim Meyering  <meyering@redhat.com>
64967         spawn.in.h: make indentation consistent with parentheses
64968         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
64969         Make indentation consistent with parentheses.
64971 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
64973         Fix mismatched parens in previous commit
64974         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
64975         parens.
64977 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64979         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
64981         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
64982         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
64983         * lib/malloca.c: Include "verify.h".
64984         (verify1): Remove, replacing with a verify call.
64985         * lib/relocwrapper.c (verify1): Likewise.
64986         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
64987         Likewise.
64988         * modules/malloca (Depends-on): Add 'verify'.
64989         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
64990         * modules/vasnprintf (Depends-on): Add 'verify'.
64991         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64992         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64993         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64994         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64995         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64996         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64997         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64999         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
65001         Formerly the style was sometimes 2*X - 1, because the C standard
65002         was wrongly thought to disallow ?: in integral constant expressions.
65003         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
65004         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
65005         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
65006         * lib/stdint.in.h (_verify_intmax_size): Likewise.
65007         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
65008         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
65009         verify that time_t cannot be floating.
65011 2010-10-08  Eric Blake  <eblake@redhat.com>
65013         time: enforce recent POSIX ruling that time_t is integral
65014         * lib/time.in.h (__time_t_must_be_integral): Detect any
65015         problematic systems, allowing the rest of gnulib to assume POSIX.
65017 2010-10-08  Jim Meyering  <meyering@redhat.com>
65019         fdopendir: fix a bug on systems lacking openat and /proc support
65020         OpenBSD 4.7 is one such system.  The most noticeable effect was
65021         failure of any application making nontrivial use of fts: rm, du,
65022         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
65023           ./rm: traversal failed: `a': Bad file descriptor
65024         Debugging that, you see that even though FD 6 was closed just
65025         prior to the opendir call in fd_clone_opendir, its resulting
65026         dir->dd_fd was 8, rather than the expected value of 6:
65028         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
65029         93                close (fd);
65030         (gdb) n
65031         94                dir = fd_clone_opendir (dupfd);
65032         (gdb) n
65033         95                saved_errno = errno;
65034         (gdb) p dir->dd_fd
65035         $11 = 8
65037         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
65038         The problem is that on OpenBSD, fd_clone_opendir has to resort
65039         to using the old-style save/restore CWD mechanism, due to its
65040         lack of openat/proc support, and *that* would steal the FD (6)
65041         that opendir was supposed to use.
65043         The fix is to squirrel away the desired FD so that save_cwd uses a
65044         different one, and then free the dest FD right before calling opendir.
65045         That guarantees opendir will use the required file descriptor.
65047         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
65049 2010-10-08  Bruno Haible  <bruno@clisp.org>
65051         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
65052         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
65054 2010-10-08  Bruno Haible  <bruno@clisp.org>
65056         nanosleep: Make replacement POSIX compliant.
65057         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
65058         is out of range.
65059         Reported by Jim Meyering.
65061 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65063         bootstrap: add hook for altering gnulib.mk, for Bison
65064         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
65065         the Bison bootstrapping process can rewrite file names and variables
65066         in this file before later parts of 'bootstrap' use the file.
65067         Bison wants to include lib/gnulib.mk from the top-level makefile,
65068         so it needs the file names in this file to be relative to the top
65069         level, not relative to lib; plus it needs variable names to be
65070         rewritten.
65071         (slurp): Use the new function.
65073         bootstrap: reformat for readability
65074         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
65076 2010-10-08  Eric Blake  <eblake@redhat.com>
65078         docs: update cygwin progress
65079         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
65080         1.7.7.
65081         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
65082         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
65083         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
65084         * doc/posix-functions/carg.texi (carg): Likewise.
65085         * doc/posix-functions/cargf.texi (cargf): Likewise.
65086         * doc/posix-functions/casin.texi (casin): Likewise.
65087         * doc/posix-functions/casinf.texi (casinf): Likewise.
65088         * doc/posix-functions/casinh.texi (casinh): Likewise.
65089         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
65090         * doc/posix-functions/catan.texi (catan): Likewise.
65091         * doc/posix-functions/catanf.texi (catanf): Likewise.
65092         * doc/posix-functions/catanh.texi (catanh): Likewise.
65093         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
65094         * doc/posix-functions/ccos.texi (ccos): Likewise.
65095         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
65096         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
65097         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
65098         * doc/posix-functions/cexp.texi (cexp): Likewise.
65099         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
65100         * doc/posix-functions/cimag.texi (cimag): Likewise.
65101         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
65102         * doc/posix-functions/clog.texi (clog): Likewise.
65103         * doc/posix-functions/clogf.texi (clogf): Likewise.
65104         * doc/posix-functions/conj.texi (conj): Likewise.
65105         * doc/posix-functions/conjf.texi (conjf): Likewise.
65106         * doc/posix-functions/cpow.texi (cpow): Likewise.
65107         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
65108         * doc/posix-functions/cproj.texi (cproj): Likewise.
65109         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
65110         * doc/posix-functions/creal.texi (creal): Likewise.
65111         * doc/posix-functions/crealf.texi (crealf): Likewise.
65112         * doc/posix-functions/csin.texi (csin): Likewise.
65113         * doc/posix-functions/csinf.texi (csinf): Likewise.
65114         * doc/posix-functions/csinh.texi (csinh): Likewise.
65115         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
65116         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
65117         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
65118         * doc/posix-functions/ctan.texi (ctan): Likewise.
65119         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
65120         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
65121         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
65122         * doc/posix-headers/complex.texi (complex.h): Likewise.
65124 2010-10-07  Jim Meyering  <meyering@redhat.com>
65126         parse-datetime: avoid compilation failure on OpenBSD 4.7
65127         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
65128         This works around a compilation failure on OpenBSD 4.7:
65129         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
65131 2010-10-07  Eric Blake  <eblake@redhat.com>
65133         docs: update cygwin progress
65134         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
65135         1.7.6.
65136         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
65137         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
65138         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
65139         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
65140         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
65141         Likewise.
65142         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
65143         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
65144         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
65145         Likewise.
65146         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
65147         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
65148         Likewise.
65149         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
65150         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
65151         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
65152         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
65153         Likewise.
65154         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
65155         Likewise.
65156         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
65158         docs: update parse-datetime history
65159         * doc/parse-datetime.texi (Authors of parse_datetime): Better
65160         documentation of this function's history and alternatives.
65162         cygwin: use more robust version check
65163         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
65164         exclude an eventual cygwin 1.9.1.
65165         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
65166         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
65167         (gl_FUNC_STRCASESTR): Likewise.
65168         Reported by Bruno Haible.
65170 2010-10-06  Bruno Haible  <bruno@clisp.org>
65172         string, sys_select: Avoid #including large headers unless necessary.
65173         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
65174         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
65175         OSF/1, BeOS, Haiku.
65176         Reported by Jim Meyering.
65178 2010-10-05  Eric Blake  <eblake@redhat.com>
65180         memmem, strstr, strcasestr: fix bug with long periodic needle
65181         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
65182         periodic needle having false positive.
65183         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
65184         and cygwin 1.7.7.
65185         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
65186         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
65187         (gl_FUNC_STRCASESTR): Likewise.
65188         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
65189         * tests/test-memmem.c (main): Expose the bug.
65190         * tests/test-strcasestr.c (main): Likewise.
65191         * tests/test-strstr.c (main): Likewise.
65192         * tests/test-c-strcasestr.c (main): Likewise.
65193         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
65194         * doc/posix-functions/strstr.texi (strstr): Likewise.
65195         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
65196         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
65198 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65200         parse-datetime: do some more renaming
65201         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
65202         parse_datetime, not get_date.  Mention the renaming.
65203         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
65204         in comments.
65205         * m4/bison.m4: Likewise.
65207 2010-10-05  Eric Blake  <eblake@redhat.com>
65209         parse-datetime: better name than get_date
65210         * NEWS: Reword the deprecation notice.
65211         * modules/get_date: Rename to modules/parse-datetime.
65212         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
65213         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
65214         * lib/get_date.y: Rename to lib/parse-datetime.y.
65215         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
65216         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
65217         * doc/getdate.texi: Provide fallback wrapper.
65218         * lib/getdate.h: Move guts, and wrap...
65219         * lib/parse-datetime.h: ...new file.
65220         * lib/parse-datetime.y (get_date): Rename...
65221         (parse_datetime): ...to this.
65222         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
65223         (gl_PARSE_DATETIME): ...to this.
65224         * doc/posix-functions/getdate.texi (get_date): Provide fallback
65225         documentation.
65226         * modules/getdate (Files): Provide fallback docs and header.
65227         (Notice, Depends-on): Update references.
65228         * tests/test-parse-datetime.c: Likewise.
65229         * DEPENDENCIES: Likewise.
65230         * MODULES.html.sh (Date and time <time.h>): Likewise.
65231         * doc/parse-datetime.texi (Date input formats)
65232         (Authors of parse_datetime): Likewise.
65233         * modules/parse-datetime (Files, configure.ac, Makefile.am)
65234         (Include): Likewise.
65235         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
65236         * gnulib-tool: Likewise.
65237         * m4/bison.m4 (gl_BISON): Likewise.
65238         Suggested by Bruno Haible.
65240 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65242         more ports to Solaris tr, which needs [] around ranges
65243         * gnulib-tool: Solaris tr needs [] around ranges.
65244         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
65245         * tests/test-pipe-filter-gi1.c (main): Likewise.
65246         * tests/test-pipe-filter-ii1.c (main): Likewise.
65248 2010-10-05  Eric Blake  <eblake@redhat.com>
65250         bootstrap: fix Solaris regression
65251         * build-aux/bootstrap (check_versions): Solaris tr still needs []
65252         around ranges.
65253         Reported by Pádraig Brady.
65255         bootstrap: work with pkg-config
65256         * build-aux/bootstrap (check_versions): Also transliterate - in
65257         prerequisite name.
65258         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
65259         prerequisites that were already found, to avoid confusion.
65260         Reported by Justin Clift.
65262         faccessat: remove unused wrappers
65263         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
65264         presence of these wrappers dragged in -lgen on Solaris.
65265         Reported by Clemens Brogi; fix suggested by Paul Eggert.
65267 2010-10-05  Jim Meyering  <meyering@redhat.com>
65269         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
65270         * Makefile (sc_pragma_columns): New syntax-check rule.
65272 2010-10-04  Bruno Haible  <bruno@clisp.org>
65274         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
65275         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
65276         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
65277         Reported by Bruce Korb and Eric Blake.
65279 2010-10-04  Bruno Haible  <bruno@clisp.org>
65281         threadlib: Make option --with-libpth-prefix work.
65282         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
65283         use $LIBPTH, not just -lpth.
65285 2010-10-04  Bruno Haible  <bruno@clisp.org>
65287         Avoid line length limitation from HP NonStop system header files.
65288         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
65289         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
65290         * lib/ctype.in.h: Likewise.
65291         * lib/dirent.in.h: Likewise.
65292         * lib/errno.in.h: Likewise.
65293         * lib/fcntl.in.h: Likewise.
65294         * lib/float.in.h: Likewise.
65295         * lib/getopt.in.h: Likewise.
65296         * lib/iconv.in.h: Likewise.
65297         * lib/inttypes.in.h: Likewise.
65298         * lib/langinfo.in.h: Likewise.
65299         * lib/locale.in.h: Likewise.
65300         * lib/math.in.h: Likewise.
65301         * lib/netdb.in.h: Likewise.
65302         * lib/netinet_in.in.h: Likewise.
65303         * lib/poll.in.h: Likewise.
65304         * lib/pthread.in.h: Likewise.
65305         * lib/pty.in.h: Likewise.
65306         * lib/sched.in.h: Likewise.
65307         * lib/se-selinux.in.h: Likewise.
65308         * lib/search.in.h: Likewise.
65309         * lib/signal.in.h: Likewise.
65310         * lib/spawn.in.h: Likewise.
65311         * lib/stdarg.in.h: Likewise.
65312         * lib/stddef.in.h: Likewise.
65313         * lib/stdint.in.h: Likewise.
65314         * lib/stdio.in.h: Likewise.
65315         * lib/stdlib.in.h: Likewise.
65316         * lib/string.in.h: Likewise.
65317         * lib/strings.in.h: Likewise.
65318         * lib/sys_file.in.h: Likewise.
65319         * lib/sys_ioctl.in.h: Likewise.
65320         * lib/sys_select.in.h: Likewise.
65321         * lib/sys_socket.in.h: Likewise.
65322         * lib/sys_stat.in.h: Likewise.
65323         * lib/sys_time.in.h: Likewise.
65324         * lib/sys_times.in.h: Likewise.
65325         * lib/sys_utsname.in.h: Likewise.
65326         * lib/sys_wait.in.h: Likewise.
65327         * lib/sysexits.in.h: Likewise.
65328         * lib/termios.in.h: Likewise.
65329         * lib/time.in.h: Likewise.
65330         * lib/unistd.in.h: Likewise.
65331         * lib/wchar.in.h: Likewise.
65332         * lib/wctype.in.h: Likewise.
65333         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
65334         * modules/ctype (Makefile.am): Likewise.
65335         * modules/dirent (Makefile.am): Likewise.
65336         * modules/errno (Makefile.am): Likewise.
65337         * modules/fcntl-h (Makefile.am): Likewise.
65338         * modules/float (Makefile.am): Likewise.
65339         * modules/getopt-posix (Makefile.am): Likewise.
65340         * modules/iconv-h (Makefile.am): Likewise.
65341         * modules/inttypes (Makefile.am): Likewise.
65342         * modules/langinfo (Makefile.am): Likewise.
65343         * modules/locale (Makefile.am): Likewise.
65344         * modules/math (Makefile.am): Likewise.
65345         * modules/netdb (Makefile.am): Likewise.
65346         * modules/netinet_in (Makefile.am): Likewise.
65347         * modules/poll-h (Makefile.am): Likewise.
65348         * modules/pthread (Makefile.am): Likewise.
65349         * modules/pty (Makefile.am): Likewise.
65350         * modules/sched (Makefile.am): Likewise.
65351         * modules/search (Makefile.am): Likewise.
65352         * modules/selinux-h (Makefile.am): Likewise.
65353         * modules/signal (Makefile.am): Likewise.
65354         * modules/spawn (Makefile.am): Likewise.
65355         * modules/stdarg (Makefile.am): Likewise.
65356         * modules/stddef (Makefile.am): Likewise.
65357         * modules/stdint (Makefile.am): Likewise.
65358         * modules/stdio (Makefile.am): Likewise.
65359         * modules/stdlib (Makefile.am): Likewise.
65360         * modules/string (Makefile.am): Likewise.
65361         * modules/strings (Makefile.am): Likewise.
65362         * modules/sys_file (Makefile.am): Likewise.
65363         * modules/sys_ioctl (Makefile.am): Likewise.
65364         * modules/sys_select (Makefile.am): Likewise.
65365         * modules/sys_socket (Makefile.am): Likewise.
65366         * modules/sys_stat (Makefile.am): Likewise.
65367         * modules/sys_time (Makefile.am): Likewise.
65368         * modules/sys_times (Makefile.am): Likewise.
65369         * modules/sys_utsname (Makefile.am): Likewise.
65370         * modules/sys_wait (Makefile.am): Likewise.
65371         * modules/sysexits (Makefile.am): Likewise.
65372         * modules/termios (Makefile.am): Likewise.
65373         * modules/time (Makefile.am): Likewise.
65374         * modules/unistd (Makefile.am): Likewise.
65375         * modules/wchar (Makefile.am): Likewise.
65376         * modules/wctype (Makefile.am): Likewise.
65378 2010-10-04  Bruno Haible  <bruno@clisp.org>
65380         read-file tests: Avoid a test failure on NonStop Kernel.
65381         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
65382         a regular file.
65383         Reported by Joachim Schmitz <schmitz@hp.com>.
65385 2010-10-03  Bruno Haible  <bruno@clisp.org>
65387         gnulib-tool: Fixes for --create-testdir with --libtool.
65388         * gnulib-tool (func_get_automake_snippet): Don't augment
65389         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
65390         an executable.
65391         (func_create_testdir): Handle module 'alloca' like func_import.
65392         Reported by Bruce Korb <bruce.korb@gmail.com>.
65394 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65396         Avoid some lines longer than 80 characters.
65397         * lib/stdint.in.h: Break long comment lines.
65398         * lib/math.in.h: Likewise.
65399         (_GL_NUM_UINT_WORDS): New macro, for readability.
65400         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
65401         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
65402         * lib/stdlib.in.h: Likewise.
65403         * lib/spawn.in.h: Likewise.
65404         * lib/sys_socket.in.h: Update an URL.
65405         * lib/sys_stat.in.h: Break long line.
65407 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
65409         Improve pmccabe2html.
65410         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
65411         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
65412         when the sources change. Remove the line in the HTML about "Used
65413         ranges" (which implied that there might be other unused ranges),
65414         rename "Resume" to "Summary" (easier to understand for more users).
65415         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
65416         styles, and some unnecessary blank lines.
65418 2010-10-03  Bruno Haible  <bruno@clisp.org>
65419             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
65421         acl: Add support for ACLs on NonStop Kernel.
65422         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
65423         Check whether the function aclsort() exists.
65424         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
65425         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
65426         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
65427         (acl_nontrivial [HAVE_ACLSORT]: New function.
65428         (file_has_acl): Implement for NonStop Kernel.
65429         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
65430         (qset_acl): Implement for NonStop Kernel.
65431         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
65432         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
65433         (main): Implement for NonStop Kernel.
65434         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
65435         Kernel. Handle this flavor.
65436         * tests/test-set-mode-acl.sh: Likewise.
65437         * tests/test-copy-acl.sh: Likewise.
65438         * tests/test-copy-file.sh: Likewise.
65440 2010-10-03  Bruno Haible  <bruno@clisp.org>
65442         Info about ACLs on NonStop Kernel.
65443         * doc/acl-resources.txt: Add info about NonStop Kernel.
65444         References by Joachim Schmitz <schmitz@hp.com>.
65446 2010-10-02  Bruno Haible  <bruno@clisp.org>
65448         Define missing EDQUOT on NonStop Kernel.
65449         * lib/errno.in.h (EDQUOT): Assign a value if missing.
65450         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
65451         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
65452         missing.
65453         * doc/posix-headers/errno.texi: Mention the NSK bug.
65454         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
65455         Reported by Joachim Schmitz <schmitz@hp.com>.
65457 2010-10-02  Bruno Haible  <bruno@clisp.org>
65459         Update doc for POSIX:2008.
65460         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
65461         Update URL of POSIX specification.
65463 2010-10-02  Bruno Haible  <bruno@clisp.org>
65465         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
65466         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
65467         from gnulib, not from Automake.
65469 2010-10-02  Bruno Haible  <bruno@clisp.org>
65471         New module 'system-posix'.
65472         * modules/system-posix: New file.
65473         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
65474         module is present.
65475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65476         GNULIB_SYSTEM_POSIX.
65477         * modules/stdlib (Depends-on): Remove sys_wait.
65478         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
65479         * doc/posix-functions/system.texi: Mention the new module.
65480         * doc/posix-headers/stdlib.texi: Likewise.
65481         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
65482         define test_sys_wait_macros to a no-op.
65483         Reported by Sam Steingold <sds@gnu.org>.
65485 2010-09-30  Bruno Haible  <bruno@clisp.org>
65487         More renaming from 'getdate' to 'get_date'.
65488         * doc/get_date.texi: Renamed from doc/getdate.texi.
65489         * modules/get_date (Files): Update.
65490         * MODULES.html.sh (Date and time <time.h>): Update.
65491         * DEPENDENCIES: Update.
65492         * gnulib-tool: Update comment.
65493         * m4/bison.m4 (gl_BISON): Likewise.
65494         * m4/get_date.m4 (gl_GET_DATE): Likewise.
65496 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
65498         bootstrap: support ACLOCAL_FLAGS during aclocal
65499         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
65500         can add additional -I dir for third-party .m4 files.
65502 2010-09-30  Eric Blake  <eblake@redhat.com>
65504         bootstrap: use glibtoolize on MacOS
65505         * build-aux/bootstrap (check_versions): Convert libtool into
65506         libtoolize.
65507         (tool search): Move libtool check earlier, and look for
65508         glibtoolize for MacOS.
65509         (gnulib_tool_options): Auto-add --libtool when appropriate.
65510         Reported by Justin Clift.
65512         poll: fix typo that broke test on MacOS
65513         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
65514         Reported by Justin Clift.
65516         getdate: rename to get_date
65517         Note: getdate.h is not renamed, to minimize client impact.
65518         * modules/getdate: Mark obsolete.  Move old contents...
65519         * modules/get_date: ...to new module name.
65520         * modules/getdate-tests: Move...
65521         * modules/get_date-tests: ...here.
65522         * m4/getdate.m4: Move...
65523         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
65524         * lib/getdate.y: Move...
65525         * lib/get_date.y: ...here.
65526         * tests/test-getdate.c: Move...
65527         * tests/test-get_date.c: ...here.
65528         * doc/posix-functions/getdate.texi (getdate): Update name.
65529         * NEWS: Mention the change.
65531 2010-09-29  Bruno Haible  <bruno@clisp.org>
65533         Separate the module 'waitpid' from the module 'sys_wait'.
65534         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
65535         present.
65536         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
65537         gl_MODULE_INDICATOR_FOR_TESTS.
65538         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
65539         * modules/sys_wait (Depends-on): Remove waitpid.
65540         (Makefile.am): Substitute GNULIB_WAITPID.
65541         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
65542         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
65543         signature only if the 'waitpid' module is present.
65544         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
65545         * NEWS: Mention the change.
65546         * modules/grantpt (Depends-on): Add waitpid.
65547         * modules/wait-process (Depends-on): Likewise.
65549 2010-09-29  Bruno Haible  <bruno@clisp.org>
65551         More tests for module 'sys_wait'.
65552         * modules/sys_wait-c++-tests: New file.
65553         * tests/test-sys_wait-c++.cc: New file.
65554         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
65555         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
65557 2010-09-29  Bruno Haible  <bruno@clisp.org>
65559         New module 'waitpid'.
65560         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
65561         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
65562         Don't include <process.h>.
65563         (waitpid): Declare only, using modern idiom.
65564         * m4/waitpid.m4: New file.
65565         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
65566         * modules/waitpid: New file.
65567         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
65568         (Makefile.am): Update.
65569         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
65571 2010-09-28  Bruno Haible  <bruno@clisp.org>
65573         poll: Assume ANSI C.
65574         * lib/poll.c (poll): Use an ANSI C declaration.
65576 2010-09-28  Bruno Haible  <bruno@clisp.org>
65578         poll-h: Create poll.h on all platforms.
65579         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
65580         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
65581         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
65582         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
65583         (gl_REPLACE_POLL_H): Don't set POLL_H.
65584         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
65585         * modules/poll-h (Depends-on): Add include_next.
65586         (Makefile.am): Create poll.h unconditionally. Substitute also
65587         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
65589 2010-09-28  Bruno Haible  <bruno@clisp.org>
65591         Tests for module 'poll-h'.
65592         * modules/poll-h-c++-tests: New file.
65593         * tests/test-poll-h-c++.cc: New file.
65595         Tests for module 'poll-h'.
65596         * modules/poll-h-tests: New file.
65597         * tests/test-poll-h.c: New file.
65599 2010-09-28  Bruno Haible  <bruno@clisp.org>
65601         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
65602         * modules/poll-h (Depends-on): Add 'extensions'.
65604 2010-09-28  Bruno Haible  <bruno@clisp.org>
65606         New module 'poll-h'.
65607         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
65608         (poll): Use modern idiom.
65609         * modules/poll-h: New file.
65610         * modules/poll (Files): Remove lib/poll.in.h.
65611         (Depends-on): Add poll-h.
65612         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
65613         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
65614         * m4/poll_h.m4: New file.
65615         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
65616         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
65617         and invoke gl_REPLACE_POLL_H.
65618         * lib/poll.c: Use common idiom.
65619         * tests/test-poll.c: Likewise.
65620         * doc/posix-headers/poll.texi: Mention the poll-h module.
65621         Suggested by Eric Blake.
65623 2010-09-26  Bruno Haible  <bruno@clisp.org>
65625         sys_wait: Implement WSTOPSIG.
65626         * lib/sys_wait.in.h (WSTOPSIG): New macro.
65627         Reported by Simon Josefsson.
65629 2010-09-26  Simon Josefsson  <simon@josefsson.org>
65631         stdlib, sys_wait: Avoid compilation error on mingw.
65632         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
65634 2010-09-26  Bruno Haible  <bruno@clisp.org>
65636         stdlib tests: Avoid code duplication.
65637         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
65638         * modules/sys_wait-tests (Files): Likewise.
65639         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
65640         * tests/test-stdlib.c: Include test-sys_wait.h.
65641         (main): Invoke test_sys_wait_macros.
65642         * tests/test-sys_wait.c: Include test-sys_wait.h.
65643         (main): Invoke test_sys_wait_macros.
65645 2010-09-25  Simon Josefsson  <simon@josefsson.org>
65647         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
65648         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
65649         sure Windows sockets are working before calling getaddrinfo.
65650         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
65651         * doc/gnulib.texi (Windows sockets): Fix typo.
65653 2010-09-25  Bruno Haible  <bruno@clisp.org>
65655         Tests for module 'regex-quote'.
65656         * modules/regex-quote-tests: New file.
65657         * tests/test-regex-quote.c: New file.
65659         New module 'regex-quote'.
65660         * lib/regex-quote.h: New file.
65661         * lib/regex-quote.c: New file.
65662         * modules/regex-quote: New file.
65663         Suggested by Reuben Thomas <rrt@sc3d.org>.
65665 2010-09-24  Bruno Haible  <bruno@clisp.org>
65667         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
65668         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
65670 2010-09-23  Bruno Haible  <bruno@clisp.org>
65672         setenv: Relax license.
65673         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
65674         Blake.
65675         Requested by Eric Blake.
65677 2010-09-22  Bruno Haible  <bruno@clisp.org>
65679         termios: Relax license.
65680         * modules/termios (License): Change to LGPLv2+.
65681         Requested by Eric Blake.
65683 2010-09-22  Bruno Haible  <bruno@clisp.org>
65685         threadlib: Allow the package to change the default to 'no'.
65686         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
65687         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
65688         Reported by Paul Eggert.
65690 2010-09-22  Pádraig Brady  <P@draigbrady.com>
65691             Bruno Haible  <bruno@clisp.org>
65693         Fix endless loop in mbmemcasecoll.
65694         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
65695         byte.
65696         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
65698 2010-09-22  Bruno Haible  <bruno@clisp.org>
65700         Tests for module 'memcoll'.
65701         * modules/memcoll-tests: New file.
65702         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
65704         memcoll, xmemcoll: Clarify size vs. length.
65705         * modules/memcoll.c (memcoll0): Clarify specification.
65706         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
65707         passed to collate_error.
65709 2010-09-22  Bruno Haible  <bruno@clisp.org>
65711         Tests for module 'memcasecmp'.
65712         * modules/memcasecmp-tests: New file.
65713         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
65715 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65717         * lib/pthread.in.h: Add split double-inclusion guard, and include
65718         system <pthread.h> if there is one.  Use @@-style as in other
65719         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
65720         pthread.h doesn't.
65721         (pthread_mutexattr_destroy, pthread_mutexattr_init):
65722         (pthread_mutexattr_settype, pthread_mutex_trylock):
65723         New static inline functions, if there's no system <pthread.h>.
65724         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
65725         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
65726         Approximate with mutexes if the system lacks spinlocks, as in
65727         MacOS.
65728         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
65729         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
65730         @@-style.  Check for spinlocks separately.
65731         (gl_PTHREAD_DEFAULTS): New macro.
65732         * modules/pthread: Redo to use a more typical style for in.h files.
65734 2010-09-21  Eric Blake  <eblake@redhat.com>
65736         net_if: enhance tests
65737         * tests/test-net_if.c (main): Move signature checks earlier.
65738         Print failures to stderr.
65739         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
65740         Document the bug that we do not yet fix.
65742 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65744         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
65745         about gnulib, not GSS.
65747 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65749         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
65750         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
65751         for Emacs.
65752         * build-aux/pmccabe2html: Make Makefile.am example code more
65753         cut-and-paste friendly.
65755 2010-09-21  Simon Josefsson  <simon@josefsson.org>
65757         * tests/test-net_if.c: New file.
65758         * modules/net_if-tests: New file.
65760 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65762         pthread: add pthread_spin_destroy
65763         * lib/pthread.in.h (pthread_spin_destroy): New function.
65765 2010-09-19  Bruno Haible  <bruno@clisp.org>
65767         gnulib-tool: Fix --help output.
65768         * gnulib-tool (func_usage): Fix help message.
65769         Reported by Reuben Thomas <rrt@sc3d.org>.
65771 2010-09-18  Jim Meyering  <meyering@redhat.com>
65773         maint.mk: avoid unexpanded \n in two diagnostics
65774         * top/maint.mk (sc_prohibit_always_true_header_tests):
65775         Don't use a literal \n in a halt=... assignment.  It would not be
65776         expanded, and the two \n bytes would appear in the diagnostic output
65777         rather than the desired newline.  Use halt=$$(printf ... instead.
65778         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
65780 2010-09-18  Bruno Haible  <bruno@clisp.org>
65782         netinet_in: Doc tweak.
65783         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
65784         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65786 2010-09-18  Jim Meyering  <meyering@redhat.com>
65788         init.sh: correct an outdated comment
65789         * tests/init.sh (create_exe_shims_):  s/function/alias/
65791         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
65792         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
65793         a file named "*.exe" is removed between the glob expansion and the
65794         processing of that oddly named file.
65796 2010-09-17  Eric Blake  <eblake@redhat.com>
65798         mirbsd: add some more support
65799         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
65800         in BSD family.
65801         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
65802         devices as OpenBSD.
65803         * m4/host-os.m4 (mirbsd): Add MirBSD.
65805         tests: fix unportable assumption on sys/wait.h
65806         * tests/test-sys_wait.c (main): Relax test.
65807         * tests/test-stdlib.c (main): Likewise.
65809         init.sh: accommodate directory with no .exes
65810         * tests/init.sh: Accomodate directory containing only scripts.
65812         tests: avoid compiler warning
65813         * tests/test-stdlib.c (main): Use the variable.
65815         fdutimens, fdutimensat: update signature, again
65816         * lib/utimens.h (gl_futimens): Delete, and move signature...
65817         (fdutimens): ...here.
65818         (fdutimensat): Rearrange signature.
65819         (lutimensat): Rename variable for clarity.
65820         * lib/fdutimensat.c (fdutimensat): Update signature.
65821         * lib/utimens.c (fdutimens): Likewise.
65822         (gl_futimens): Delete.
65823         (utimens, lutimens): Update callers.
65824         * lib/futimens.c (futimens): Likewise.
65825         * tests/test-fdutimensat.c: Likewise.
65826         * tests/test-utimens.c: Likewise.
65827         * tests/test-futimens.h: Update comment.
65828         * NEWS: Mention this.
65829         Suggested by Paul Eggert.
65831 2010-09-17  Bruno Haible  <bruno@clisp.org>
65833         Take over the maintenance of some older macros from Autoconf.
65834         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
65835         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
65836         GNU Autoconf.
65837         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
65838         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
65840 2010-09-17  Eric Blake  <eblake@redhat.com>
65842         fdutimensat: drop atflag validation
65843         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
65844         with valid fd, to close a race scenario where futimens is
65845         unsupported and FILE was replaced by a symlink.
65846         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
65847         accordingly.
65848         Suggested by Paul Eggert.
65850 2010-09-16  Bruno Haible  <bruno@clisp.org>
65852         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
65853         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
65855 2010-09-16  Bruno Haible  <bruno@clisp.org>
65857         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
65858         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
65859         login_tty exists.
65860         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65862 2010-09-16  Bruno Haible  <bruno@clisp.org>
65864         login_tty: Make the replacement code work on BSD systems.
65865         * lib/login_tty.c: Include <sys/ioctl.h>.
65866         (login_tty): Use ioctl TIOCSCTTY when available.
65867         * modules/login_tty (Depends-on): Add sys_ioctl.
65868         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65870 2010-09-16  Bruno Haible  <bruno@clisp.org>
65872         login_tty: Stricter unit test.
65873         * modules/login_tty-tests (Depends-on): Add tcgetsid.
65874         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
65875         and tcgetsid() after login_tty.
65876         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65878 2010-09-16  Bruno Haible  <bruno@clisp.org>
65880         New module 'tcgetsid'.
65881         * lib/tcgetsid.c: New file.
65882         * m4/tcgetsid.m4: New file.
65883         * modules/tcgetsid: New file.
65884         * modules/termios (Depends-on): Add c++defs, warn-on-use.
65885         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
65886         GNULIB_TCGETSID, HAVE_TCGETSID.
65887         * lib/termios.in.h: Include <sys/types.h>.
65888         (tcgetsid): New declaration.
65889         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
65890         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
65891         * doc/posix-functions/tcgetsid.texi: Mention the new module.
65892         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
65894 2010-09-16  Bruno Haible  <bruno@clisp.org>
65896         Tests for module 'termios'.
65897         * modules/termios-c++-tests: New file.
65898         * modules/termios-tests: New file.
65899         * tests/test-termios-c++.cc: New file.
65900         * tests/test-termios.c: New file.
65902         New module 'termios'.
65903         * modules/termios: New file.
65904         * lib/termios.in.h: New file.
65905         * m4/termios_h.m4: New file.
65906         * doc/posix-headers/termios.texi: Mention the new module.
65908 2010-09-16  Eric Blake  <eblake@redhat.com>
65910         fdutimensat: add an atflag parameter
65911         * lib/fdutimensat.c (fdutimensat): Add new parameter.
65912         * lib/utimens.h (fdutimensat): Update prototype.
65913         * tests/test-fdutimensat.c: Adjust test to match.
65914         * NEWS: Document the change.
65915         Suggested by Paul Eggert.
65917 2010-09-16  Bruno Haible  <bruno@clisp.org>
65919         Fix typos in comments.
65920         * lib/striconveh.h: Fix typo in comment.
65921         * lib/login_tty.c (login_tty): Likewise.
65923 2010-09-15  Bruno Haible  <bruno@clisp.org>
65925         stdlib: clarify MirBSD WEXITSTATUS bug
65926         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
65927         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65929 2010-09-15  Eric Blake  <eblake@redhat.com>
65931         stdlib: work around MirBSD WEXITSTATUS bug
65932         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
65933         * modules/stdlib (Depends-on): Add sys_wait.
65934         * tests/test-sys_wait.c (main): Enhance test.
65935         * tests/test-stdlib.c (main): Likewise.
65936         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
65938         docs: mention MacOS issue with WEXITSTATUS(constant)
65939         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
65940         issue.
65941         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65943         strnlen: add tests
65944         * modules/strnlen-tests: New file.
65945         * tests/test-strnlen.c: Likewise.
65947 2010-09-14  Bruno Haible  <bruno@clisp.org>
65949         unistr/base: Avoid link errors when module 'libunistring' is also used.
65950         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
65951         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
65952         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
65953         Declare also when HAVE_LIBUNISTRING is set.
65954         Reported by Pádraig Brady <P@draigbrady.com>.
65956 2010-09-14  Eric Blake  <eblake@redhat.com>
65958         test-rawmemchr: make more robust
65959         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
65960         (Depends-on, configure.ac): Add needed prerequisites to use it.
65961         * modules/memchr-tests (Files, Depends-on, configure.ac):
65962         Likewise, to avoid implicit reliance on memchr module prereqs.
65963         * tests/test-memchr.c (main): Ensure proper masking.
65964         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
65965         reads.
65967         memchr: detect glibc Alpha bug
65968         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
65969         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
65970         Alpha.
65971         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
65972         * tests/test-memchr.c (main): Enhance test.
65973         Reported by Nelson H. F. Beebe.
65975 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65977         fts, getcwd, glob: audit for dirfd returning -1
65978         * lib/fts.c (opendir): Remove #define; no longer used.
65979         (opendirat): New arg PDIR_FD.  All callers changed.
65980         (fts_build, _opendir2): Use new opendirat to avoid the need for
65981         dirfd, or for checking whether dirfd returns a negative value.
65982         Don't use opendir; always use openat followed by fdopendir.
65983         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
65984         it.
65985         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
65986         returns -1 here.
65987         * modules/fts (Depends-on): Remove dirfd.
65988         * modules/getcwd (Depends-on): Likewise.
65990 2010-09-13  Eric Blake  <eblake@redhat.com>
65992         float: fix broken MirBSD header
65993         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
65994         * doc/posix-headers/float.texi (float.h): Document it.
65996 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65998         fts: use O_NOFOLLOW to avoid race condition when opening a directory
65999         * lib/fts.c (opendirat): New arg extra_flags.
66000         (__opendir2): Use it to avoid following symlinks when opening
66001         a directory, if symlinks are not supposed to be followed.  See
66002         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
66004         fdopendir: preserve argument fd before returning
66005         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
66006         (fdopendir_with_dup, fd_clone_opendir): New static functions.
66007         (fdopendir): Use them, arranging for FD to be open to the same
66008         directory that it was when it started.  (It might be temporarily
66009         closed while fdopendir is running, so this not thread- or
66010         signal-safe.)  Be careful to do the right thing even when file
66011         descriptors are scarce and dup fails with errno == EMFILE.  See
66012         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
66014 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
66016         regex: Pass the system regex if its only problem is 32-bit regoff_t.
66017         * NEWS: Document change.
66018         * m4/regex.m4: Disable test for regoff_t size.
66020 2010-09-13  Jim Meyering  <meyering@redhat.com>
66022         fts: don't operate on an invalid file descriptor after failed dup
66023         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
66024         negative file descriptor.
66026 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66028         savedir: add streamsavedir, deprecate fdsavedir
66029         * NEWS: Mention deprecation of fdsavedir.
66030         * lib/savedir.c (streamsavedir): New extern function, whose name
66031         ends in "savedir" to be consistent with the others.  This differs
66032         from savedirstream in that it doesn't close its argument.  The
66033         next version of GNU tar will use this instead of fdsavedir, to
66034         avoid some race conditions and conserve file descriptors.
66035         (savedirstream): Reimplement as a wrapper around streamsavedir.
66036         (fdsavedir): Add a comment deprecating this function.  As far as
66037         I know, only GNU tar used it, and GNU tar doesn't need it any more.
66038         * lib/savedir.h (streamsavedir): New decl.
66039         (fdsavedir): Add a comment deprecating this.
66041 2010-09-10  Bruno Haible  <bruno@clisp.org>
66043         langinfo: Fix last commit.
66044         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
66045         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
66046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66048 2010-09-10  Bruno Haible  <bruno@clisp.org>
66050         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
66051         * lib/progreloc.c (O_EXEC): Define fallback.
66053 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
66055         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
66056         * NEWS: Document recent changes to fcntl-h.
66057         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
66058         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
66059         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
66060         Similarly for O_SEARCH; this last was already true, but not documented.
66061         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
66062         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
66063         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
66064         Likewise.
66065         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
66066         is zero, not whether it is defined.
66067         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
66068         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
66069         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
66071 2010-09-10  Bruno Haible  <bruno@clisp.org>
66073         langinfo, nl_langinfo: Fix for IRIX 5.3.
66074         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
66075         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
66076         HAVE_LANGINFO_YESEXPR.
66077         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
66078         HAVE_LANGINFO_YESEXPR.
66079         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
66080         HAVE_LANGINFO_T_FMT_AMPM is 0.
66081         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
66082         HAVE_LANGINFO_YESEXPR is 0.
66083         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
66084         NOEXPR.
66085         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
66086         * doc/posix-functions/nl_langinfo.texi: Likewise.
66087         Reported by Eric Blake.
66089 2010-09-10  Bruno Haible  <bruno@clisp.org>
66091         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
66092         * doc/glibc-functions/login_tty.texi: Mention the include file problem
66093         on FreeBSD 8.0 and OpenBSD 4.6.
66094         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
66095         * m4/pty_h.m4 (gl_PTY_H): Likewise.
66096         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
66097         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
66098         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
66099         ac_includes_default.
66100         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
66102 2010-09-09  Eric Blake  <eblake@redhat.com>
66104         strsignal: work around NetBSD bug
66105         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
66106         * lib/string.in.h (includes): Likewise.
66107         * doc/posix-functions/strsignal.texi (strsignal): Document the
66108         bug.
66109         Reported by Nelson H. F. Beebe.
66111         gnulib-tool: work with NetBSD /bin/sh
66112         * gnulib-tool (func_cache_var, func_cache_lookup_module)
66113         (func_get_description, func_get_comment, func_get_status)
66114         (func_get_notice, func_get_applicability, func_get_filelist)
66115         (func_get_dependencies, func_get_autoconf_early_snippet)
66116         (func_get_autoconf_snippet, func_get_automake_snippet)
66117         (func_get_include_directive, func_get_link_directive)
66118         (func_get_license, func_get_maintainer, func_import): Avoid
66119         shell syntax errors from parsing syntax extensions.
66121 2010-09-09  Bruno Haible  <bruno@clisp.org>
66123         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
66124         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
66125         a reliable way to determine whether the 'alias' command works.
66127 2010-09-08  Jim Meyering  <meyering@redhat.com>
66129         init.sh: penalize a set-x-impaired shell; don't disqualify it
66130         * tests/init.sh: Too many shells corrupt application stderr when
66131         you set -x, so we can't afford to disqualify them, since at least
66132         on Irix-6.5, that would disqualify all bourne shells.
66133         Instead, use a two-pass approach.
66134         On the first pass, try to find a shell that meets the stricter
66135         condition that set -x does not corrupt stderr.
66136         If no shell meets the stricter condition, retest each candidate
66137         shell, but without that extra condition.  Finally, when
66138         VERBOSE=yes is requested and set -x might cause trouble, simply
66139         issue a warning and refrain from enabling debug output.
66141 2010-09-08  Eric Blake  <eblake@redhat.com>
66143         unsetenv: fix OpenBSD bug
66144         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
66145         * doc/posix-functions/unsetenv.texi (unsetenv): Update
66146         documentation.
66147         Reported by Jim Meyering.
66149         strtod: work around IRIX 6.5 bug
66150         * lib/strtod.c (strtod): Reparse number on shorter string if
66151         exponent parse was invalid.
66152         * tests/test-strtod.c (main): Add check for "0x1p 2".
66153         Reported by Tom G. Christensen.
66155         getopt: optimize previous patch
66156         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
66157         empty variable.  Speed up awk script.
66158         Reported by Paolo Bonzini.
66160 2010-09-08  Jim Meyering  <meyering@redhat.com>
66162         test.sh: disqualify shells for which set -x corrupts stderr
66163         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
66164         and OpenBSD 4.7.  They make it so with "set -x", environment settings
66165         appear in stderr output.  For example, this command:
66166             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
66167         prints "P=1" on those two systems:
66169 2010-09-08  Bruno Haible  <bruno@clisp.org>
66171         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
66172         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
66173         commands, because some shells ignore redirections when there is an
66174         error in the command lookup.
66175         Reported by Eric Blake.
66177 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
66179         * lib/regex.h: Fix a mention of `regex_compile' (should be
66180         `re_compile_pattern').
66181         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
66182         (re_set_registers): Correct name of parameter in comment.
66184         * doc/regex.texi: Add documentation for missing syntax flags.
66185         Remove commented-out documentation of defunct syntax option
66186         RE_NO_EMPTY_ALTS.
66187         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
66188         Add documentation of re_set_registers.
66189         Document trick to re-use a pattern buffer by setting fastmap manually.
66190         Update documentation of struct re_pattern_buffer per public members.
66191         Uncomment documentation of equivalence class operators and
66192         collating symbol operators, since they are now implemented,
66193         Explain leftmost-longest matching in relation to alternatives.
66194         Tidy documentation of substring matching.
66195         Remove POSIX documentation, which is done better in
66196         glibc, and refer the reader there. Keep BSD API documentation, as
66197         that is not readily available elsewhere.
66199 2010-09-07  Eric Blake  <eblake@redhat.com>
66201         getopt: handle POSIXLY_CORRECT set but not exported
66202         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
66203         export state of POSIXLY_CORRECT, due to bash set -o posix.
66204         Reported by Dustin J. Mitchell.
66206 2010-09-05  Bruno Haible  <bruno@clisp.org>
66208         gnulib-tool: Highlight the changed options.
66209         * gnulib-tool (func_usage): Display the --import, --add-import,
66210         --remove-import explanations in bold font.
66212 2010-09-06  Karl Berry  <karl@gnu.org>
66214         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
66216 2010-09-05  Bruno Haible  <bruno@clisp.org>
66218         uniwidth/width: Update comment.
66219         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
66220         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
66222 2010-09-05  Bruno Haible  <bruno@clisp.org>
66224         isinf, isnan: Relax license.
66225         * modules/isinf (License): Change from GPL to LGPL, with consent from
66226         Ben Pfaff.
66227         * modules/isnan (License): Likewise.
66228         Requested by Ludovic Courtès.
66230 2010-09-04  Bruno Haible  <bruno@clisp.org>
66232         gnulib-tool: Help migration from --import to --add-import or --update.
66233         * gnulib-tool: Emit a verbose error message when --import is used
66234         without any module name.
66236 2010-09-04  Bruno Haible  <bruno@clisp.org>
66238         Update doc about gnulib-tool.
66239         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
66240         'gnulib-tool --update' in more detail.
66241         Reported by Eric Blake.
66243 2010-09-04  Bruno Haible  <bruno@clisp.org>
66245         gnulib-tool: Change --import. New options --add/remove-import.
66246         * gnulib-tool: New options --add-import, --remove-import.
66247         (func_usage): Document them.
66248         (have_associative): Define always.
66249         (func_import): In import mode, don't merge the specified settings with
66250         the cached settings. Implement remove-import mode.
66251         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
66252         Explain when to use them versus --import.
66253         (Simple update): Use --add-import instead of --import.
66254         * NEWS: Mention the change.
66256 2010-09-04  Bruno Haible  <bruno@clisp.org>
66258         * doc/gnulib-tool.texi (Initial import): Update paragraph about
66259         separate gnulib.mk.
66261 2010-09-04  Bruno Haible  <bruno@clisp.org>
66263         gnulib-tool: Don't talk about CVS any more.
66264         * gnulib-tool (func_usage, func_import): Write "version control"
66265         instead of CVS.
66267 2010-09-04  Jim Meyering  <meyering@redhat.com>
66269         maint.mk: avoid obscure sc_copyright_check failure in coreutils
66270         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
66271         false positives (whose names may be ill-chosen) when searching
66272         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
66273         would cause a false-positive.
66275         avoid coreutils "make distcheck" failure
66276         Coreutils tests with an absolute build directory name that contains
66277         a space.  Not quoting this directory name caused a failure.
66278         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
66279         * tests/test-vc-list-files-cvs.sh: Likewise.
66281 2010-09-04  Bruno Haible  <bruno@clisp.org>
66283         gnulib-tool: Avoid error when run in a package without Makefile.am.
66284         * gnulib-tool: When collecting the m4dirs in a package that does not
66285         have a Makefile.am, eliminate those directories that contain no
66286         gnulib-cache.m4. Fix expression that counts these directories.
66288 2010-09-04  Bruno Haible  <bruno@clisp.org>
66290         update-copyright test: Improve output when perl is missing or too old.
66291         * tests/test-update-copyright.sh: Move test of Perl version down after
66292         the test whether Perl exists. Provide an explanation relating Perl's
66293         error message to Automake's SKIP: message.
66295 2010-09-04  Bruno Haible  <bruno@clisp.org>
66297         Don't augment PATH in TESTS_ENVIRONMENT.
66298         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
66299         set abs_aux_dir instead of augmenting PATH.
66300         * modules/vc-list-files-tests (Makefile.am): Likewise.
66301         * tests/test-update-copyright.sh: Augment PATH here.
66302         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
66303         path_prepend_.
66304         * tests/test-vc-list-files-git.sh: Likewise.
66306 2010-09-04  Jim Meyering  <meyering@redhat.com>
66308         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
66309         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
66311 2010-09-04  Bruno Haible  <bruno@clisp.org>
66313         strdup: Fix compilation error in C++ mode.
66314         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
66315         the macro.
66317 2010-09-04  Bruno Haible  <bruno@clisp.org>
66319         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
66320         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
66321         macro into a function.
66322         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66324 2010-09-04  Bruno Haible  <bruno@clisp.org>
66326         Set PATH_SEPARATOR the same way autoconf does.
66327         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
66328         the value of PATH_SEPARATOR the same way autoconf-generated configure
66329         scripts do.
66330         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
66331         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
66333 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
66335         Set PATH_SEPARATOR the same way autoconf does.
66336         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
66337         the same way autoconf-generated configure scripts do.
66338         * posix-modules: Likewise.
66340 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66342         hash: fix safe_hasher const typo
66343         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
66344         const; otherwise, there is a type error later.
66346 2010-09-02  Jim Meyering  <meyering@redhat.com>
66348         test-update-copyright.sh: require perl 5.8.0
66349         * tests/test-update-copyright.sh: Require 5.8.0,
66350         which Tom G. Christensen has confirmed is adequate,
66351         while 5.6.1 is not.
66353 2010-09-02  Eric Blake  <eblake@redhat.com>
66355         tests: init.sh improvements for re-exec'ing with zsh
66356         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
66357         -vx through shell re-exec.
66358         Reported by Tom G. Christensen.
66360         wctype: fix typo in previous commit
66361         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
66362         Reported by Ludovic Courtès.
66364 2010-09-02  Jim Meyering  <meyering@redhat.com>
66366         test-update-copyright.sh: skip test if Perl is too old
66367         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
66368         Reported by Tom G. Christensen.
66370 2010-09-02  Bruno Haible  <bruno@clisp.org>
66372         wctype: Avoid compilation error on IRIX 6.5.30.
66373         * lib/wctype.in.h (iswblank): Declare with a replacement if
66374         REPLACE_ISWBLANK is set.
66375         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
66376         declared. Set REPLACE_ISWBLANK.
66377         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
66378         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
66379         * doc/posix-headers/wctype.texi: Likewise.
66380         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66382 2010-09-01  Bruno Haible  <bruno@clisp.org>
66384         New module 'socketlib'.
66385         * modules/socketlib: New file.
66386         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
66387         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
66388         * modules/sockets (Depends-on): Add socketlib.
66389         Suggested by Sam Steingold <sds@gnu.org>.
66391 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66393         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
66395         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
66396         when one needs search access to a directory but not read access.
66397         On systems where it is available, it works in some cases where
66398         O_RDONLY does not, namely on directories that are searchable but
66399         not readable, and which need only to be searchable.  If O_SEARCH
66400         is not available, fall back to the traditional method of using
66401         O_RDONLY.
66403         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
66404         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
66405         when opening a directory that needs only to be searchable.
66406         * lib/chdir-safer.c (chdir_no_follow): Likewise.
66407         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
66408         * lib/openat-proc.c (openat_proc_name): Likewise.
66409         * lib/openat.c (openat_needs_fchdir): Likewise.
66410         * lib/save-cwd.c (save_cwd): Likewise.
66411         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
66413 2010-08-28  Bruno Haible  <bruno@clisp.org>
66415         New module 'host-cpu-c-abi'.
66416         * modules/host-cpu-c-abi: New file.
66417         * m4/host-cpu-c-abi.m4: New file, based on part of
66418         clisp/src/m4/general.m4.
66419         Requested by Sam Steingold <sds@gnu.org>.
66421 2010-08-31  Eric Blake  <eblake@redhat.com>
66422         and Jim Meyering  <meyering@redhat.com>
66424         hash: factor, and guard against misbehaving hasher function
66425         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
66426         of table->hasher's return value.  Also protect against a hash value
66427         so large that adding it to table->bucket results in a NULL pointer.
66428         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
66429         Use it in place of open-coded check-and-abort.
66431 2010-08-30  Bruno Haible  <bruno@clisp.org>
66433         hash: silence spurious clang warning
66434         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
66435         Reported by Eric Blake.
66437 2010-08-30  Eric Blake  <eblake@redhat.com>
66439         strstr, memmem, strcasestr: avoid leaked shell message
66440         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
66441         FreeBSD.
66442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66443         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66445         tests: silence clang warning
66446         * tests/test-malloca.c (do_allocation): Avoid dead store.
66448 2010-08-29  Bruno Haible  <bruno@clisp.org>
66450         gettext: Fix recent mistake.
66451         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
66453 2010-08-29  Bruno Haible  <bruno@clisp.org>
66455         selinux-h: Offer a --without-selinux option.
66456         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
66457         --without-selinux was specified, skip all tests and define
66458         HAVE_SELINUX_SELINUX_H to 0.
66459         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
66460         set LIB_SELINUX to empty.
66461         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
66462         gl_LIBSELINUX. If --without-selinux was specified, replace
66463         selinux/context.h.
66464         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
66466 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66467             Bruno Haible  <bruno@clisp.org>
66469         Make the module 'realloc-gnu' work again on AIX and OSF/1.
66470         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
66471         of HAVE_REALLOC.
66472         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
66473         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
66474         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
66475         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
66477 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66478             Bruno Haible  <bruno@clisp.org>
66480         Make the module 'calloc-gnu' work again on AIX and OSF/1.
66481         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
66482         HAVE_CALLOC.
66483         * lib/xmalloc.c: Update accordingly.
66484         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
66485         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
66486         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
66488 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66489             Bruno Haible  <bruno@clisp.org>
66491         Make the module 'malloc-gnu' work again on AIX and OSF/1.
66492         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
66493         HAVE_MALLOC.
66494         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
66495         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
66496         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
66498 2010-08-29  Bruno Haible  <bruno@clisp.org>
66500         Update modules list.
66501         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
66502         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
66503         (String handling <string.h>): Add astrxfrm.
66504         (File system functions): Add readlinkat.
66506 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66508         Tests for module 'realloc-gnu'.
66509         * modules/realloc-gnu-tests: New file.
66510         * tests/test-realloc-gnu.c: New file.
66512         Tests for module 'calloc-gnu'.
66513         * modules/calloc-gnu-tests: New file.
66514         * tests/test-calloc-gnu.c: New file.
66516         Tests for module 'malloc-gnu'.
66517         * modules/malloc-gnu-tests: New file.
66518         * tests/test-malloc-gnu.c: New file.
66520 2010-08-28  Bruno Haible  <bruno@clisp.org>
66522         Rename module 'realloc' -> 'realloc-gnu'.
66523         * modules/realloc-gnu: New file, copied from modules/realloc.
66524         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
66525         obsolete.
66526         * modules/mgetgroups (Depends-on): Update.
66527         * doc/posix-functions/realloc.texi: Update.
66528         * NEWS: Mention the change.
66530         Rename module 'calloc' -> 'calloc-gnu'.
66531         * modules/calloc-gnu: New file, copied from modules/calloc.
66532         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
66533         obsolete.
66534         * doc/posix-functions/calloc.texi: Update.
66535         * NEWS: Mention the change.
66537         Rename module 'malloc' -> 'malloc-gnu'.
66538         * modules/malloc-gnu: New file, copied from modules/malloc.
66539         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
66540         obsolete.
66541         * modules/argp (Depends-on): Update.
66542         * modules/regex (Depends-on): Update.
66543         * doc/posix-functions/malloc.texi: Update.
66544         * NEWS: Mention the change.
66546 2010-08-28  Eric Blake  <eblake@redhat.com>
66548         pread, pwrite: add missing dependency
66549         * modules/pread (Depends-on): Add extensions.
66550         * modules/pwrite (Depends-on): Likewise.
66552 2010-08-28  Bruno Haible  <bruno@clisp.org>
66554         unistr/u*-strchr: Fix tests dependencies.
66555         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
66556         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
66557         Reported by Ian Beckwith <ianb@erislabs.net>.
66559 2010-08-28  Bruno Haible  <bruno@clisp.org>
66561         read-file: Don't occupy too much unused memory.
66562         * lib/read-file.c (fread_file): Shrink the buffer at the end.
66564 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
66565             Eric Blake  <eblake@redhat.com>
66566             Bruno Haible  <bruno@clisp.org>
66568         read-file: Avoid memory reallocations with regular files.
66569         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
66570         (fread_file): With regular files, use the remaining length as the
66571         initial buffer size.  Check against overflow.
66572         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
66573         sys_stat.
66575 2010-08-28  Bruno Haible  <bruno@clisp.org>
66577         ftello: Relax license.
66578         * modules/ftello (License): Relax to LGPLv2+.
66579         Reported by Eric Blake.
66581 2010-08-28  Bruno Haible  <bruno@clisp.org>
66583         Avoid relocwrapper link errors due to gnulib replacement functions.
66584         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
66585         function.
66586         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66588 2010-08-28  Bruno Haible  <bruno@clisp.org>
66590         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
66591         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
66592         defined.
66593         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
66594         Suggested by Eric Blake.
66596 2010-08-28  Bruno Haible  <bruno@clisp.org>
66598         sys_socket, netdb: Ensure socklen_t gets defined.
66599         * modules/sys_socket (Depends-on): Add socklen.
66600         * modules/netdb (Depends-on): Likewise.
66601         * modules/getaddrinfo (Depends-on): Remove socklen.
66602         * modules/getsockopt (Depends-on): Likewise.
66603         * modules/setsockopt (Depends-on): Likewise.
66604         * tests/test-sys_socket.c: Check that socklen_t is defined.
66605         * tests/test-netdb.c: Likewise.
66606         * m4/socklen.m4: Update comments.
66607         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66609 2010-08-27  Eric Blake  <eblake@redhat.com>
66611         login_tty: add missing dependency
66612         * modules/login_tty (Depends-on): Add pty.
66614 2010-08-26  Eric Blake  <eblake@redhat.com>
66616         lib-symbol-versions: fix m4 quoting
66617         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
66618         format for AC_LINK_IFELSE.
66620         glob: fix compile test
66621         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
66623         btowc: fix missing file
66624         * modules/btowc (Files): Also ship locale-fr.m4.
66626         lseek: fix link test
66627         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
66628         AC_LINK_IFELSE.
66630         include_next: silence autoconf 2.68 warning
66631         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
66632         AC_COMPILE_IFELSE as special.
66633         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
66634         autoconf < 2.68.
66636         acl: fix compilation test
66637         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
66638         AC_COMPILE_IFELSE.
66640 2010-08-26  Bruno Haible  <bruno@clisp.org>
66642         Modernize AC_TRY_RUN invocations.
66643         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
66644         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
66645         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
66646         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
66647         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
66648         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
66649         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
66650         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66651         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66652         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
66653         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
66654         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
66655         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
66656         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
66657         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
66658         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
66659         gl_MBRLEN_NUL_RETVAL): Likewise.
66660         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
66661         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
66662         Likewise.
66663         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
66664         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
66665         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
66666         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
66667         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
66668         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
66669         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
66670         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
66671         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
66672         Likewise.
66673         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
66674         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
66675         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66676         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66677         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66678         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
66679         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
66680         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
66681         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
66682         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66684 2010-08-26  Bruno Haible  <bruno@clisp.org>
66686         Modernize AC_TRY_LINK invocations.
66687         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
66688         AC_TRY_LINK.
66689         * m4/argp.m4 (gl_ARGP): Likewise.
66690         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
66691         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
66692         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
66693         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
66694         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
66695         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
66696         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
66697         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
66698         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
66699         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
66700         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
66701         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
66702         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
66703         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66704         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
66705         * m4/hostent.m4 (gl_HOSTENT): Likewise.
66706         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
66707         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
66708         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
66709         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
66710         Likewise.
66711         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
66712         Likewise.
66713         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
66714         Likewise.
66715         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
66716         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
66717         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
66718         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
66719         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
66720         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66721         * m4/servent.m4 (gl_SERVENT): Likewise.
66722         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
66723         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
66724         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
66725         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
66726         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66727         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
66728         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
66729         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66730         * modules/tsearch-tests (configure.ac): Likewise.
66732 2010-08-26  Bruno Haible  <bruno@clisp.org>
66734         Modernize AC_TRY_COMPILE invocations.
66735         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
66736         AC_TRY_COMPILE.
66737         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
66738         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
66739         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
66740         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66741         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
66742         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66743         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66744         * m4/lock.m4 (gl_LOCK): Likewise.
66745         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
66746         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66747         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
66748         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
66749         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
66750         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
66751         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
66752         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
66753         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
66754         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
66755         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
66756         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66757         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
66758         extraneous semicolon.
66760 2010-08-26  Jim Meyering  <meyering@redhat.com>
66762         stat-time: relax license LGPL
66763         * modules/stat-time (License): Change from GPL to LGPL,
66764         with consent from all contributors, for use in libguile.
66765         Requested by Ludovic Courtès.
66767 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
66769         poll: return immediately on POLLHUP.
66770         * lib/poll.c (poll): Always set timeout before wait_timeout is
66771         computed.
66773 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66775         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
66776         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
66777         rmdir ("dir/.//"), unlinkat.
66779 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66781         stdbool: avoid spurious failure with modern xlc
66782         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66784 2010-08-24  Bruno Haible  <bruno@clisp.org>
66786         getloadavg: simplify code
66787         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
66788         gl_have_func. Update comments.
66790 2010-08-24  Eric Blake  <eblake@redhat.com>
66792         getloadavg: don't define SVR4 on cygwin
66793         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
66794         only define SVR4 when -lkvm is required.
66795         Reported by Yaakov Selkowitz.
66797 2010-08-24  Bruno Haible  <bruno@clisp.org>
66799         priv-set: fix comment
66800         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
66802 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66804         priv-set: fix comments
66805         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
66806         to match code, as suggested by David Bartley in:
66807         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
66809 2010-08-23  Eric Blake  <eblake@redhat.com>
66811         stdbool: avoid rejecting clang
66812         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66813         * tests/test-stdbool.c: Enable more tests if using the system
66814         <stdbool.h> instead of the gnulib replacement.
66815         (main): Move xlc bug test to a runtime test for all compilers.
66816         Reported by Anders Kaseorg.
66818         argz: fix shell quoting issue
66819         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
66820         Reported by Charles Wilson.
66822 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
66823             Erik Faye-Lund <kusmabite@gmail.com>
66825         poll, select: handle ERROR_BROKEN_PIPE.
66826         * lib/poll.c (win32_compute_revents): Return POLLHUP when
66827         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66828         * lib/select.c (win32_compute_revents): Do not mark a pipe
66829         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66831 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
66833         fts: allow compilation with C++
66834         * lib/fts_.h: Specify extern "C" linkage with C++.
66836 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66838         Fix gnulib-tool sed script de-commentation for AIX sed.
66839         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
66840         sed.
66842 2010-08-17  Eric Blake  <eblake@redhat.com>
66844         test-stddef: test for (some) offsetof bugs
66845         * tests/test-stddef.c: Enhance test to ensure correct type of
66846         offsetof.
66847         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
66848         that we are not fixing at this time.
66850 2010-08-15  Bruno Haible  <bruno@clisp.org>
66852         stpncpy: Allow stpncpy to be defined as a macro.
66853         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
66854         if it's already correctly declared.
66855         * lib/string.in.h (stpncpy): Undefine before redefining.
66856         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
66858 2010-08-14  Bruno Haible  <bruno@clisp.org>
66860         Rename module 'memxfrm' to 'amemxfrm'.
66861         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
66862         (amemxfrm): Renamed from memxfrm.
66863         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
66864         (amemxfrm): Renamed from memxfrm.
66865         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
66866         * NEWS: Mention the change.
66867         * MODULES.html.sh (String handling <string.h>): Update.
66868         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
66869         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
66870         * lib/unicase/u16-casexfrm.c: Likewise.
66871         * lib/unicase/u32-casexfrm.c: Likewise.
66872         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
66873         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
66874         * lib/uninorm/u16-normxfrm.c: Likewise.
66875         * lib/uninorm/u32-normxfrm.c: Likewise.
66876         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
66877         memxfrm.
66878         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
66879         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
66880         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
66881         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
66882         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
66883         Suggested by Paul Eggert.
66885 2010-08-14  Bruno Haible  <bruno@clisp.org>
66887         Tests for module 'astrxfrm'.
66888         * modules/astrxfrm-tests: New file.
66889         * tests/test-astrxfrm.c: New file.
66891         New module 'astrxfrm'.
66892         * lib/astrxfrm.h: New file.
66893         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
66894         * modules/astrxfrm: New file.
66896 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
66898         regex: Tweak doc.
66899         * doc/regex.texi (Overview): Don't mention regex.c.
66900         (GNU Regular Expression Compiling): Likewise.
66901         (Match-end-of-line Operator): Mention 'not_eol'.
66903 2010-08-14  Brian Gough  <bjg@gnu.org>
66904             Bruno Haible  <bruno@clisp.org>
66906         git-merge-changelog: add doc relating to use with bzr and hg.
66907         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
66909 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
66911         pthread: fix pthread.h creation for srcdir != builddir
66912         * modules/pthread (Makefile.am): Fix the rule to work also in a
66913         non-srcdir build.
66915 2010-08-13  Karl Berry  <karl@gnu.org>
66917         * doc/regex.texi (Predefined Syntaxes): @smallexample.
66918         * doc/posix-*/*: force line break before @url of POSIX
66919         specifications.
66920         Suggested by Werner Lemberg.
66922 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66924         strtod: fix const diagnostic
66925         * lib/strtod.c (strtod): Don't assign const char * to char *,
66926         as this elicits a warning from GCC when warnings are enabled.
66928 2010-08-10  Pádraig Brady  <P@draigbrady.com>
66929         and Eric Blake  <eblake@redhat.com>
66931         copy-acl: ignore ENOTSUP on HP-UX
66932         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
66933         so that it is available for HP-UX.
66934         * lib/copy-acl.c (qcopy_acl): Use it.
66935         Reported by Patrick M. Callahan.
66937 2010-08-10  Eric Blake  <eblake@redhat.com>
66939         open, chown: relax license
66940         * modules/open (License): Change to LGPLv2+, with consent by all
66941         authors, for use in augeas.
66942         * modules/chown (License): Likewise.
66943         * modules/lchown (Likewise): Likewise.
66944         Requested by Adam Stokes.
66946 2010-08-09  Karl Berry  <karl@gnu.org>
66948         * build-aux/ar-lib: new file, import from Automake.
66949         * config/srclist.txt: autocheck for updates.
66951 2010-08-09  Eric Blake  <eblake@redhat.com>
66953         readlinkat: adjust client modules
66954         * modules/areadlinkat (Depends-on): Use readlinkat, not
66955         symlinkat.
66956         * modules/areadlinkat-with-size (Depends-on): Likewise.
66958         mknod: be more vocal about danger of running tests as root
66959         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
66960         root, since that is just asking for problems.
66961         Suggested by Bruno Haible, based on a report by Rainer Tammer.
66963         readlinkat: split into its own module
66964         * modules/symlinkat: Split readlinkat...
66965         * modules/readlinkat: ...into separate module.
66966         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
66967         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
66968         * lib/symlinkat.c (readlinkat): Move...
66969         * lib/readlinkat.c: ...into new file.
66970         * modules/symlinkat-tests: Split readlinkat test...
66971         * modules/readlinkat-tests: ...into separate module.
66972         * tests/test-symlinkat.c: Split...
66973         * tests/test-readlinkat.c: ...into new file.
66974         * NEWS: Document the split.
66975         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
66976         * lib/unistd.in.h (readlinkat): Likewise.
66977         Suggested by Bruno Haible.
66979 2010-08-08  Bruno Haible  <bruno@clisp.org>
66981         memxfrm: Speed up.
66982         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
66983         that usually only one call to strxfrm is necessary for each string
66984         part.
66985         Reported by Paul Eggert <eggert@cs.ucla.edu>.
66987 2010-08-07  Karl Berry  <karl@gnu.org>
66989         * doc/posix-headers/limits.texi,
66990         * doc/posix-functions/malloc.texi,
66991         * doc/posix-functions/strsignal.texi: missing @item.
66992         * doc/ld-version-script.texi: spurious leading i.
66993         * doc/regex.texi (Interval Operators): no commas inside @var.
66995 2010-08-01  Bruno Haible  <bruno@clisp.org>
66997         Integrate the regex documentation.
66998         * doc/gnulib.texi: Define 'cn' index.
66999         (Regular expressions): New a chapter that includes regex.texi and
67000         regexprops-generic.texi.
67001         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
67002         syntax.
67004         Whitespace cleanup.
67005         * doc/regex.texi: Remove trailing spaces.
67007         Add regex documentation.
67008         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
67009         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
67010         Written by Kathy A. Hargreaves and Karl Berry.
67012 2010-08-01  Bruno Haible  <bruno@clisp.org>
67014         link: Update documentation.
67015         * doc/posix-functions/link.texi: Update regarding Solaris.
67017 2010-07-31  Bruno Haible  <bruno@clisp.org>
67019         Update modules list.
67020         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
67021         (String handling <string.h>): Add memcmp2, memxfrm.
67022         (Container data structures): Add xlist, xsublist, xoset.
67023         (Core language properties): Add alignof, unused-parameter.
67024         (Process control, Numeric conversion functions <stdlib.h>): Renamed
67025         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
67026         (Unibyte characters <ctype.h>): New section.
67027         (String handling <string.h>): New section.
67028         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
67029         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
67030         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
67031         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
67032         tan, tanh, tanl, y0, y1, yn.
67033         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
67034         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
67035         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
67036         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
67037         unlockpt, vdprintf, vdprintf-posix.
67038         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
67039         (File system functions): Add concat-filename, sys_file, sys_ioctl,
67040         xconcat-filename.
67041         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
67042         getdtablesize, pipe2, pipe2-safer.
67043         (Security): New section.
67044         (Networking functions): Add accept4.
67045         (Signal handling): Add sigpipe.
67046         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
67047         mbmemcasecoll.
67048         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
67049         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
67050         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
67051         pipe-filter-ii.
67052         (Misc): Add argp-version-etc, login_tty, parse-duration.
67054 2010-07-31  Bruno Haible  <bruno@clisp.org>
67056         Improve doc in MODULES.html.
67057         * modules/linkat (Description): Add the word "function".
67058         * modules/mkfifo (Description): Likewise.
67059         * modules/mknod (Description): Likewise.
67060         * modules/remove (Description): Likewise.
67061         * modules/renameat (Description): Likewise.
67062         * modules/stat (Description): Likewise.
67063         * modules/symlink (Description): Likewise.
67064         * modules/unlink (Description): Likewise.
67066 2010-07-31  Bruno Haible  <bruno@clisp.org>
67068         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
67069         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
67070         option --enable/disable-c++ instead of --enable/disable-cxx.
67071         * NEWS: Mention the change.
67073 2010-07-31  Bruno Haible  <bruno@clisp.org>
67075         readlink, areadlink: Relax test a bit.
67076         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
67077         alternative to ENOTDIR.
67078         * tests/test-areadlink.h (test_areadlink): Likewise.
67079         Reported by Rainer Tammer.
67081 2010-07-31  Bruno Haible  <bruno@clisp.org>
67083         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
67084         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
67085         character, perform the search using U_STRCHR.
67086         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
67087         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
67088         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
67089         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
67090         Suggested by Paolo Bonzini.
67092 2010-07-31  Bruno Haible  <bruno@clisp.org>
67094         unistr/u*-strstr: Fix dependencies.
67095         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
67096         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
67097         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
67099 2010-07-31  Bruno Haible  <bruno@clisp.org>
67101         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
67102         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
67103         the beginning of the loop.
67104         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
67105         cases in 'switch' statement.
67107         unistr/u8-strchr: Fix several bugs.
67108         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
67109         the string. When not found, return NULL, not a pointer near the end.
67111         More tests for unistr/u8-strchr.
67112         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
67113         that the function does not read past the first occurrence of the byte
67114         being searched.
67115         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
67116         * tests/unistr/test-u16-strchr.c (main): New function.
67117         * tests/unistr/test-u32-strchr.c (main): New function.
67119 2010-07-31  Bruno Haible  <bruno@clisp.org>
67121         posix-modules: Ignore backup files of documentation files.
67122         * posix-modules: grep only through files named *.texi.
67124 2010-07-31  Bruno Haible  <bruno@clisp.org>
67126         symlinkat: Fix documentation.
67127         * doc/posix-functions/readlinkat.texi: Fix module name.
67129 2010-07-31  Bruno Haible  <bruno@clisp.org>
67131         fchownat: Replace also when chown has the trailing slash bug.
67132         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
67133         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
67134         introduced on 2010-04-10.
67135         Reported by Rainer Tammer.
67137 2010-07-31  Bruno Haible  <bruno@clisp.org>
67139         linkat: Work around AIX 7.1 bug.
67140         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
67141         whether linkat handles trailing slash correctly. If not, replace linkat
67142         and define LINKAT_TRAILING_SLASH_BUG.
67143         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
67144         check whether (fd1,file1) points to a directory if file1 or file2 ends
67145         in a slash. Code taken from lib/link.c.
67146         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
67147         Reported by Rainer Tammer.
67149 2010-07-31  Bruno Haible  <bruno@clisp.org>
67151         Correctly determine whether pow is available in libc on AIX 7 with xlc.
67152         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
67153         This disables an xlc optimization that was causing wrong test results.
67154         Reported by Rainer Tammer.
67156 2010-07-31  Bruno Haible  <bruno@clisp.org>
67158         iconv: Work around AIX 6.1..7.1 bug.
67159         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
67160         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
67161         cross-compiling, guess no on all versions of AIX.
67162         Reported by Rainer Tammer.
67164 2010-07-31  Bruno Haible  <bruno@clisp.org>
67166         readlink: Relax test a bit.
67167         * tests/test-readlink.h (test_readlink): Allow different errno value
67168         when readlink is called with a file name that ends in / and refers to
67169         a file.
67170         Suggested by Eric Blake.
67171         Reported by Rainer Tammer.
67173 2010-07-31  Bruno Haible  <bruno@clisp.org>
67175         copysign: Does not require -lm on glibc systems.
67176         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
67177         gl_COMMON_DOUBLE_MATHFUNC.
67178         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
67180 2010-07-31  Bruno Haible  <bruno@clisp.org>
67182         duplocale: Work around AIX 7.1 bug.
67183         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
67184         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
67185         * lib/duplocale.c (rpl_duplocale): Update comment.
67186         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
67187         Reported by Rainer Tammer.
67189 2010-07-30  Bruno Haible  <bruno@clisp.org>
67191         dirfd: Avoid link error on AIX 7.1.
67192         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
67193         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
67194         exist, set REPLACE_DIRFD.
67195         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
67196         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
67197         * doc/posix-functions/dirfd.texi: Update.
67198         Reported by Rainer Tammer.
67200 2010-07-30  Eric Blake  <eblake@redhat.com>
67202         strtod: next round of AIX fixes
67203         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
67204         exponent.
67205         * tests/test-strtod.c (main): Enhance tests.
67206         * doc/posix-functions/strtod.texi (strtod): Document next bug.
67207         Reported by Rainer Tammer.
67209         futimens: fix configure check
67210         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
67211         Reported by Bruno Haible.
67213 2010-07-30  Bruno Haible  <bruno@clisp.org>
67215         getline: Update regarding AIX.
67216         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
67217         Reported by Rainer Tammer.
67219 2010-07-30  Bruno Haible  <bruno@clisp.org>
67221         wcwidth: Drop replacement on AIX 7.
67222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
67223         AIX 7.
67224         Reported by Rainer Tammer.
67226 2010-07-30  Bruno Haible  <bruno@clisp.org>
67228         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
67229         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
67230         a 'char *'.
67231         Reported by Rainer Tammer.
67233 2010-07-30  Bruno Haible  <bruno@clisp.org>
67235         unlink: Update regarding AIX.
67236         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
67237         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
67238         Reported by Rainer Tammer.
67240 2010-07-30  Bruno Haible  <bruno@clisp.org>
67242         symlink: Update regarding AIX.
67243         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
67244         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
67245         Reported by Rainer Tammer.
67247 2010-07-30  Bruno Haible  <bruno@clisp.org>
67249         strndup: Update regarding AIX.
67250         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
67251         AIX 7.
67252         Reported by Rainer Tammer.
67254 2010-07-30  Bruno Haible  <bruno@clisp.org>
67256         stat: Update regarding AIX.
67257         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
67258         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
67259         Reported by Rainer Tammer.
67261 2010-07-30  Bruno Haible  <bruno@clisp.org>
67263         truncl: Fix autoconf test.
67264         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
67265         whether truncl works.
67266         Reported by Rainer Tammer.
67268 2010-07-30  Bruno Haible  <bruno@clisp.org>
67270         round: Update regarding AIX.
67271         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
67272         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
67273         Reported by Rainer Tammer.
67275 2010-07-30  Bruno Haible  <bruno@clisp.org>
67277         rename: Update regarding AIX.
67278         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
67279         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
67280         Reported by Rainer Tammer.
67282 2010-07-30  Bruno Haible  <bruno@clisp.org>
67284         printf.m4: Update regarding AIX.
67285         * m4/printf.m4: Update comments regarding AIX.
67286         Reported by Rainer Tammer.
67288 2010-07-30  Bruno Haible  <bruno@clisp.org>
67290         iconv: Update regarding AIX.
67291         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
67292         AIX 7.
67293         Reported by Rainer Tammer.
67295 2010-07-30  Bruno Haible  <bruno@clisp.org>
67297         getopt: Update regarding AIX.
67298         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
67299         no on AIX.
67300         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
67301         Reported by Rainer Tammer.
67303 2010-07-30  Bruno Haible  <bruno@clisp.org>
67305         ldexpl; Update regarding AIX.
67306         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
67307         on AIX 7.
67308         Reported by Rainer Tammer.
67310 2010-07-30  Bruno Haible  <bruno@clisp.org>
67312         frexpl: Update regarding AIX.
67313         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
67314         on AIX 7.
67315         Reported by Rainer Tammer.
67317 2010-07-30  Bruno Haible  <bruno@clisp.org>
67319         open, fopen: Update regarding AIX.
67320         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
67321         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
67322         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
67323         * doc/posix-functions/fopen.texi: Likewise.
67324         Reported by Rainer Tammer.
67326 2010-07-30  Bruno Haible  <bruno@clisp.org>
67328         chown: Update doc regarding AIX.
67329         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
67330         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
67331         Reported by Rainer Tammer.
67333 2010-07-30  Eric Blake  <eblake@redhat.com>
67335         strtod: fix bug in replacement function on AIX
67336         * lib/strtod.c (strtod): Special case broken "0x" parse in
67337         underlying strtod.
67338         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
67339         * doc/posix-functions/strtod.texi (strtod): Likewise.
67340         Reported by Rainer Tammer.
67342 2010-07-30  Bruno Haible  <bruno@clisp.org>
67344         mbrlen: Fix cross-compilation guess for AIX.
67345         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
67346         guess. Leftover from 2008-12-22.
67348 2010-07-30  Bruno Haible  <bruno@clisp.org>
67350         mbrtowc: Fix cross-compilation guess for AIX.
67351         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
67352         guess. Leftover from 2008-12-21.
67354 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
67356         init.sh: work around trap limitation of some shells
67357         * tests/init.sh (setup_): Move exit trap outside of shell function.
67359 2010-07-29  Eric Blake  <eblake@redhat.com>
67361         strtod: aid debugging
67362         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
67363         understanding why strtod is rejected.
67365 2010-07-28  Bruno Haible  <bruno@clisp.org>
67367         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
67368         * lib/unistr/u8-chr.c: Include <string.h>.
67369         * tests/unistr/test-u8-chr.c: Likewise.
67370         * tests/unistr/test-u16-chr.c: Likewise.
67371         * tests/unistr/test-u32-chr.c: Likewise.
67372         * tests/unistr/test-u8-strchr.c: Likewise.
67373         * tests/unistr/test-u16-strchr.c: Likewise.
67374         * tests/unistr/test-u32-strchr.c: Likewise.
67375         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
67376         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
67377         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
67378         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
67380 2010-07-28  Bruno Haible  <bruno@clisp.org>
67382         Use spaces for indentation, not tabs.
67383         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
67385 2010-07-27  Bruno Haible  <bruno@clisp.org>
67387         mbspcasecmp: Fix function specification.
67388         * lib/string.in.h (mbspcasecmp): Fix specification comment.
67389         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
67390         Reported by Eric Blake <eblake@redhat.com>.
67392 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
67394         timespec: use cast and not conditional, as truncation isn't possible
67395         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
67396         instead of a conditional.  Comment about the situation in more detail.
67397         This undoes most of the 2009-10-29 patch.
67399 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
67401         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
67402         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
67403         * lib/unistr/u8-strchr.c: Likewise.
67404         * modules/unistr/u8-chr: Depend on memchr.
67406         unistr/u*-strchr: add tests
67407         * modules/unistr/u8-strchr-tests: New file.
67408         * modules/unistr/u16-strchr-tests: New file.
67409         * modules/unistr/u32-strchr-tests: New file.
67410         * tests/unistr/test-strchr.h: New file.
67411         * tests/unistr/test-u8-strchr.c: New file.
67412         * tests/unistr/test-u16-strchr.c: New file.
67413         * tests/unistr/test-u32-strchr.c: New file.
67415         unistr/u*-chr: test multibyte sequences more
67416         * tests/unistr/test-chr.h: Do complete testing of the characters in the
67417         test vector.
67418         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
67419         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
67420         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
67422         unistr/u*-chr: test multibyte sequences
67423         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
67425         unistr/u*-chr: prepare for multibyte tests
67426         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
67427         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
67428         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
67429         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
67430         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
67431         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
67433 2010-07-18  Bruno Haible  <bruno@clisp.org>
67435         unistr/u8-strchr: Optimize non-ASCII argument case.
67436         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
67437         because the first byte often matches anyway.
67438         Reported by Pádraig Brady <P@draigbrady.com>.
67440 2010-07-15  Karl Berry  <karl@gnu.org>
67442         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
67444 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
67446         getcwd: on Solaris, work better if ancestors are inaccessible
67447         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
67448         buffer and size, try again with a large buffer.  This works better
67449         on Solaris, since its getcwd succeeds even if the path to the root
67450         is inaccessible, and this is helpful in common cases such as .zfs
67451         hidden directories.  Problem reported by J Chapman Flack in
67452         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
67453         Use system getcwd if it's declared, not merely if it's partly
67454         working; use the partly-working test only to avoid needless effort
67455         if the system getcwd fails.
67456         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
67457         comment that was already obsolete and is now even more obsolete.
67458         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
67459         now might call strdup.
67461 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
67463         pthread: Add enough so that coreutils/src/sort.c compiles.
67464         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
67465         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
67466         gnulib. Include <sched.h> and <time.h>, as per POSIX.
67467         Include <sys/types.h>, in case it defines pthread_t.
67468         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
67469         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
67470         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
67471         (pthread_rwlockattr_t, pthread_spinlock_t):
67472         New typedefs, if HAVE_PTHREAD_T is not defined.
67473         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
67474         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
67475         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
67476         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
67477         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
67478         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
67479         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
67480         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
67481         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
67482         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
67483         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
67484         New macros.
67485         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
67486         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
67487         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
67488         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
67489         (pthread_spin_unlock): New dummy functions.
67490         (pthread_create): Return EAGAIN; don't set errno.
67491         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
67492         require AC_C_INLINE.
67493         * modules/pthread (Depends-on): Add sched, time.
67494         (pthread.h): Use AM_V_GEN.
67496 2010-07-13  Bruno Haible  <bruno@clisp.org>
67498         striconveh: Don't malloc memory if the result buffer is sufficient.
67499         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
67500         buffer if its size is sufficient.
67501         Reported by Ludovic Courtès <ludo@gnu.org>.
67503 2010-07-13  Bruno Haible  <bruno@clisp.org>
67505         strtod: Add safety check.
67506         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
67508 2010-07-12  Bruno Haible  <bruno@clisp.org>
67510         Unify tests that set gl_cv_func_ldexpl_no_libm.
67511         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
67512         gl_FUNC_LDEXPL.
67513         (gl_FUNC_LDEXPL): Invoke it.
67514         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67516 2010-07-12  Bruno Haible  <bruno@clisp.org>
67518         Unify tests that set gl_cv_func_ldexp_no_libm.
67519         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
67520         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
67521         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
67522         (configure.ac): Simply invoke gl_FUNC_LDEXP.
67523         * modules/strtod (Files): Add m4/ldexp.m4.
67525 2010-07-12  Bruno Haible  <bruno@clisp.org>
67527         Unify tests that set gl_cv_func_frexpl_no_libm.
67528         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
67529         gl_FUNC_FREXPL_NO_LIBM.
67530         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
67531         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67533 2010-07-12  Bruno Haible  <bruno@clisp.org>
67535         Unify tests that set gl_cv_func_frexp_no_libm.
67536         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
67537         gl_FUNC_FREXP_NO_LIBM.
67538         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
67539         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
67541 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
67543         memcoll: clarify sizes versus lengths, document better, and tweak perf
67544         * lib/memcoll.c (strcoll_loop, memcoll0):
67545         Improve quality of descriptive comments.  Name variables
67546         consistently as to whether they are lengths (which do not include
67547         terminating null) versus sizes (which do).
67548         * lib/xmemcoll.c (xmemcoll0): Likewise.
67549         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
67550         returned when s1size == 0; this is easier to compile and saves
67551         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
67553 2010-07-12  Bruno Haible  <bruno@clisp.org>
67555         Tests for module '_Exit'.
67556         * modules/_Exit-tests: New file.
67557         * tests/test-_Exit.sh: New file.
67558         * tests/test-_Exit.c: New file.
67560         New module '_Exit'.
67561         * lib/stdlib.in.h (__attribute__): New macro.
67562         (_Exit): New declaration.
67563         * lib/_Exit.c: New file.
67564         * m4/_Exit.m4: New file.
67565         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
67566         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
67567         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
67568         * modules/_Exit: New file.
67569         * tests/test-stdlib-c++.cc (_Exit): Check signature.
67570         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
67572 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
67574         strtod: make it more-accurate typically, and don't require libm
67575         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
67576         Include limits.h.  Don't include string.h.
67577         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
67578         (locale_isspace): New function, so that no casts are needed to
67579         check whether *s is a space.
67580         (ldexp): Provide an unused dummy if not available.
67581         (scale_radix_exp, parse_number, underlying_strtod): New functions.
67582         (strtod): Use them.  This implementation prefers to use the
67583         underlying strtod if available, falling back on our own code
67584         only to fix known bugs.  This is more likely to produce an
67585         accurate result.  Also, it avoids the use of libm functions.
67586         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
67587         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
67588         was absent, but it caused a test failure with coreutils.
67589         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
67590         with libm.
67591         * modules/strtod (Makefile.am, Link): libm is no longer needed.
67592         * modules/strtod-tests (Makefile.am): Likewise.
67594 2010-07-11  Pádraig Brady  <P@draigBrady.com>
67595             Bruno Haible  <bruno@clisp.org>
67597         unistr/u8-strchr: Optimize ASCII argument case.
67598         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
67600 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67602         (x)memcoll: minor tweaks
67603         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
67604         is after the type that it qualifies.
67605         (memcoll0): Likewise.
67606         * lib/memcoll.h (memcoll0): Likewise.
67607         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
67608         * lib/xmemcoll.h (xmemcoll0): Likewise.
67609         * lib/memcoll.c (memcoll0): Correct the comment.  This function
67610         differs from memcoll in that the NUL byte is part of the argument.
67611         Omit the abort-checks, as performance is a real issue here.  Plus,
67612         the checks were wrong anyway (an off-by-one error).  Omit local
67613         variable 'diff', as it's a bit clearer that way.
67614         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
67615         no longer needed.
67617 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
67619         (x)memcoll: speedup when input is known to be NUL delimited
67620         * lib/memcoll.c: Include stdlib.
67621         (memcoll0): New function.
67622         (strcoll_loop): New function, refactored for use in both memcoll
67623         and memcoll0.
67624         * lib/memcoll.h (memcoll0): Add prototype.
67625         * lib/xmemcoll.c (xmemcoll0): New function.
67626         (collate_error): New function, refactored for use in both xmemcoll
67627         and xmemcoll0.
67628         * lib/xmemcoll.h (xmemcoll0): Add prototype.
67629         * m4/memcoll.m4: add inline invocation.
67631 2010-07-06  Pádraig Brady  <P@draigBrady.com>
67633         * build-aux/bootstrap: Remove any local translations
67634         from the translation project synchronization directory,
67635         so that local only translations are not distributed.
67637 2010-07-04  Bruno Haible  <bruno@clisp.org>
67639         fsusage: Clarify which code applies to which platforms.
67640         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
67641         platform.
67642         * lib/fsusage.c (get_fs_usage): Likewise.
67644 2010-07-04  Bruno Haible  <bruno@clisp.org>
67646         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
67647         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
67648         Reported by Martin Lambers <marlam@marlam.de>.
67650 2010-07-04  Jim Meyering  <meyering@redhat.com>
67652         hash: once again explicitly disallow insertion of NULL
67653         * lib/hash.c (hash_insert0): Reinstate just-removed test:
67654         inserting a NULL pointer cannot work with these functions.
67655         Add a comment with details.
67656         This reverts part of the 2010-07-01 commit, 5bef1a35
67657         "hash: extend module to deal with non-pointer keys".
67659 2010-07-01  Bruno Haible  <bruno@clisp.org>
67661         stdbool: Update doc.
67662         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
67663         Info from Christian Weisgerber <naddy@mips.inka.de>.
67665 2010-07-01  Jim Meyering  <meyering@redhat.com>
67667         hash: extend module to deal with non-pointer keys
67668         * lib/hash.c (hash_insert0): New interface, much like hash_insert
67669         but that allows insertion of non-pointer entries.
67670         Do not disallow an ENTRY value of NULL.
67671         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
67672         * lib/hash.h (hash_insert0): Declare.
67674 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
67676         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
67677         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
67678         not present (i.e. with autoconf 2.59 and when using gettextize, not
67679         gnulib), require AC_GNU_SOURCE instead.
67681 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
67683         idpriv-drop: Fix tests.
67684         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
67685         not to the test-idpriv-droptemp program.
67687 2010-06-29  Bruno Haible  <bruno@clisp.org>
67689         string: Fix syntax error with g++ 2.96.
67690         * lib/string.in.h (__pure__): Remove definition.
67691         (_GL_ATTRIBUTE_PURE): New macro.
67692         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
67693         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
67694         Reported by Christian Weisgerber <naddy@mips.inka.de>.
67696 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
67698         unitypes: Fix bug introduced on 2010-05-18.
67699         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
67701 2010-06-22  Eric Blake  <eblake@redhat.com>
67703         memmem: slight optimization
67704         * lib/str-two-way.h (critical_factorization): Update comments.
67705         Reduce work during factorization phase.
67706         Reported by Carlos Bueno <carlos@bueno.org>.
67708 2010-06-21  Bruno Haible  <bruno@clisp.org>
67710         Fix HAVE_CALLOC_POSIX misnomer.
67711         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
67712         !HAVE_CALLOC_POSIX.
67713         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
67714         HAVE_CALLOC_POSIX.
67715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
67716         instead of HAVE_CALLOC_POSIX.
67717         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
67718         HAVE_CALLOC_POSIX.
67720         Use modern idiom for calloc() replacement.
67721         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
67722         AC_FUNC_CALLOC.
67723         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
67724         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
67725         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67726         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
67727         (gl_REPLACE_CALLOC): New macro.
67729 2010-06-21  Bruno Haible  <bruno@clisp.org>
67731         Fix HAVE_REALLOC_POSIX misnomer.
67732         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
67733         !HAVE_REALLOC_POSIX.
67734         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
67735         HAVE_REALLOC_POSIX.
67736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
67737         instead of HAVE_REALLOC_POSIX.
67738         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
67739         HAVE_REALLOC_POSIX.
67741         Use modern idiom for realloc() replacement.
67742         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
67743         AC_FUNC_REALLOC.
67744         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
67745         Autoconf's AC_FUNC_REALLOC.
67746         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67747         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
67748         (gl_REPLACE_REALLOC): New macro.
67749         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67751 2010-06-21  Bruno Haible  <bruno@clisp.org>
67753         Fix HAVE_MALLOC_POSIX misnomer.
67754         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
67755         !HAVE_MALLOC_POSIX.
67756         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
67757         HAVE_MALLOC_POSIX.
67758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
67759         instead of HAVE_MALLOC_POSIX.
67760         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
67761         HAVE_MALLOC_POSIX.
67763         Use modern idiom for malloc() replacement.
67764         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
67765         AC_FUNC_MALLOC.
67766         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
67767         Autoconf's AC_FUNC_MALLOC.
67768         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67769         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
67770         (gl_REPLACE_MALLOC): New macro.
67771         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67773 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
67775         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
67776         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
67777         This macro takes 3 arguments, not 4.
67779 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
67781         ipv6: fix detection under mingw
67782         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
67783         in6_addr.
67785 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
67787         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
67788         that strtod() works when cross-compiling to a glibc version known
67789         to work.
67791 2010-06-15  Bruno Haible  <bruno@clisp.org>
67793         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
67795 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
67797         select: Correct timeout.
67798         * lib/select.c (rpl_select): Compute wait_timeout correctly.
67800 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67802         git-version-gen: init shell var to avoid env var influence
67803         * build-aux/git-version-gen (v): Init shell var to empty.
67805 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
67807         priv-set: Don't assume that priv.h exists merely because getppriv does.
67808         See Jan Andersen's bug report about AIX 5L in
67809         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
67810         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
67811         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
67812         * lib/priv-set.h: Likewise.
67813         * tests/test-priv-set.c: Likewise.
67815 2010-06-13  Bruno Haible  <bruno@clisp.org>
67817         relocatable: Make it easier to test whether to install wrappers.
67818         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
67819         RELOCATABLE_VIA_WRAPPER.
67821 2010-06-13  Bruno Haible  <bruno@clisp.org>
67823         gnulib-tool: Display specified modules and dependencies differently.
67824         * gnulib-tool (func_show_module_list): New function.
67825         (func_import, func_create_testdir): Invoke it.
67826         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
67828 2010-06-13  Bruno Haible  <bruno@clisp.org>
67830         gnulib-tool: Align code of func_import and func_create_testdir.
67831         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
67832         specified_modules.
67834 2010-06-12  Jim Meyering  <meyering@redhat.com>
67836         test-inttostr: avoid spurious failure on Solaris 9
67837         * tests/test-inttostr.c (main): Skip the test when snprintf fails
67838         to accept "%ju".  Reported by Bruno Haible.
67840 2010-06-11  Jim Meyering  <meyering@redhat.com>
67842         test-sys_socket: mark variables as used more readably
67843         * tests/test-sys_socket.c (main): Mark otherwise unused variables
67844         as "used" explicitly via (void) statement casts.  This is more
67845         readable than using them in an artificial return expression.
67846         Suggestion from Bruno Haible.
67848 2010-06-11  Bruno Haible  <bruno@clisp.org>
67850         Avoid some more warnings from "gcc -Wwrite-strings".
67851         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
67852         to 'const char *'.
67853         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
67854         * tests/test-c-strcasestr.c (main): Likewise.
67855         * tests/test-mbscasestr1.c (main): Likewise.
67856         * tests/test-mbscasestr2.c (main): Likewise.
67857         * tests/test-memmem.c (main): Likewise.
67858         * tests/test-strstr.c (main): Likewise.
67859         * tests/test-strcasestr.c (main): Likewise.
67861 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67863         init.sh: change framework_failure_ to fail with status 99, not 1
67864         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
67865         automake's parallel-tests rule that this is an unexpected failure,
67866         even if the test is listed in XFAIL_TESTS.
67868 2010-06-11  Jim Meyering  <meyering@redhat.com>
67870         test-inttostr: avoid warnings about 4-6KB literal strings
67871         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
67872         Include "macros.h", for its definition of ASSERT.
67873         (CK): s/assert/ASSERT/
67874         * modules/inttostr-tests (Files): Add macros.h.
67876         init.sh: don't use $ME_ or skip_ before they are defined
67877         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
67878         their first uses.  Also hoist their companions: warn_, fail_,
67879         framework_failure_, $stderr_fileno.  Prompted by a patch from
67880         Stefano Lattarini.
67882         test-sys_socket: avoid set-but-not-used warnings from gcc
67883         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
67884         avoid warning about set-but-not-used variables.
67886         test-xvasprintf: avoid 'const' discard warnings
67887         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
67888         "const" when assigning from literal strings.
67889         (test_xasprintf): Add "void" in function argument list to placate
67890         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
67892         tests: avoid compilation warnings in argmatch and exclude tests...
67893         in packages that define ARGMATCH_DIE_DECL, like coreutils.
67894         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
67895         Since it always exits, declare with the "noreturn" attribute.
67896         * tests/test-argmatch.c: Likewise.
67898         tests: avoid 'const' discard warnings in mbsstr tests
67899         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
67900         * tests/test-mbsstr2.c (main): Likewise.
67902         test-verify: avoid warning from gcc's -Wmissing-declarations
67903         * tests/test-verify.c (function): Declare to be static.
67905         test-inttostr.c: include <string.h> for use of strcmp
67906         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
67908         test-linkat: avoid failed assertion on "other" architectures
67909         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
67910         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
67911         sparc: https://bugs.launchpad.net/bugs/591968
67913 2010-06-11  Jim Meyering  <meyering@redhat.com>
67915         printf.m4: avoid autoconf's "Expanded Before Required" warning
67916         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
67917         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
67918         autoconf warning.
67920 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
67922         Replacement header templates are now named with ".in", not "_".
67923         * doc/gnulib-intro.texi: Correct.
67925 2010-06-10  Jim Meyering  <meyering@redhat.com>
67927         inttostr-tests: depend on snprintf, not snprintf-posix
67928         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
67929         snprintf-posix, to avoid this aclocal failure:
67930           missing file gnulib-tests/vasnprintf.c
67931           configure.ac:45: error: expected source file, required through \
67932           AC_LIBSOURCES, not found
67934 2010-06-10  Jim Meyering  <meyering@redhat.com>
67936         inttostr: add a new function, inttostr, and tests
67937         The namesake function was not available.  The existence of the
67938         template file, inttostr.c makes its addition nontrivial.
67939         * lib/anytostr.c: Rename from inttostr.c.
67940         (anytostr): Rename from inttostr.
67941         * lib/inttostr.c: New file.
67942         * modules/inttostr (Files): Add anytostr.c.
67943         (Makefile.am): Set lib_SOURCES instead of ...
67944         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
67945         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
67946         * lib/offtostr.c: Likewise.
67947         * lib/uinttostr.c: Likewise.
67948         * lib/umaxtostr.c: Likewise.
67949         * modules/inttostr-tests: New file.
67950         * tests/test-inttostr.c: New file.  Test these functions.
67952 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
67953             Bruno Haible  <bruno@clisp.org>
67955         Add "Extending Gnulib" chapter to manual.
67956         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
67957         chapter.
67958         (Extending Gnulib): New chapter.
67959         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
67960         chapter.
67962 2010-06-09  Bruno Haible  <bruno@clisp.org>
67964         Avoid relocwrapper link errors due to gnulib replacement functions.
67965         * lib/areadlink.c: Use the system's malloc, realloc functions.
67966         (areadlink): Set errno to ENOMEM explicitly.
67967         * modules/areadlink (Depends-on): Remove malloc-posix.
67968         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67970 2010-06-09  Bruno Haible  <bruno@clisp.org>
67972         Avoid relocwrapper link errors due to gnulib replacement functions.
67973         * lib/canonicalize-lgpl.c: Use the system's malloc function.
67974         * lib/malloca.c: Likewise.
67975         * lib/relocatable.c: Likewise.
67976         * lib/progreloc.c: Use the system's malloc, sprintf functions.
67977         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
67978         * lib/setenv.c: Use the system's malloc, realloc functions.
67979         * lib/strerror.c: Use the system's sprintf function.
67980         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67982 2010-06-04  Bruno Haible  <bruno@clisp.org>
67984         Prefer documented low-level autoconf macro names.
67985         * m4/lib-link.m4: Use m4_translit instead of translit.
67986         * m4/environ.m4: Likewise.
67987         * m4/mathfunc.m4: Likewise.
67988         * m4/onceonly.m4: Likewise.
67989         * m4/stdint.m4: Likewise.
67990         Suggested by Eric Blake.
67992 2010-06-04  Martin Lambers  <marlam@marlam.de>
67993             Bruno Haible  <bruno@clisp.org>
67995         havelib: Allow library names with '+' characters.
67996         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67997         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
67999 2010-06-09  Bruno Haible  <bruno@clisp.org>
68001         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
68002         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
68003         realloc failed.
68005 2010-06-08  Peter Simons  <simons@cryp.to>
68007         maint.mk: make the news-check rule more configurable
68008         * top/maint.mk (news-check-lines-spec): New variable.
68009         (news-check): Use "sed -n 1,10p" in place of "head".
68011 2010-06-07  Jim Meyering  <meyering@redhat.com>
68013         do-release-commit-and-tag: fix typo in --help
68014         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
68016         regex: avoid new dead-code warning with gcc-4.6.0
68017         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
68018         if-block containing a while-loop.  It's been unused for at least
68019         5 years.
68021 2010-06-05  Bruno Haible  <bruno@clisp.org>
68023         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
68024         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
68026 2010-06-04  Bruno Haible  <bruno@clisp.org>
68028         Update to GNU gettext 0.18.1.
68029         * modules/gettext (configure.ac): Require gettext infrastructure from
68030         version 0.18.1.
68032 2010-06-03  Bruno Haible  <bruno@clisp.org>
68034         Don't use AC_LIBOBJ with file names in subdirectories.
68035         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
68036         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
68037         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
68038         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
68039         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
68040         gl_LIBUNISTRING_LIBSOURCE.
68041         (Makefile.am): Augment lib_SOURCES here, conditionally.
68042         * NEWS: Drop requirement for Automake option 'subdir-objects'.
68044 2010-06-03  Bruno Haible  <bruno@clisp.org>
68046         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
68047         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
68048         expansion does not end with a newline.
68049         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
68050         unnecessary newline.
68052 2010-06-03  Bruno Haible  <bruno@clisp.org>
68054         Reduce dependencies.
68055         * tests/test-quotearg.h: New file, extracted from
68056         tests/test-quotearg.c.
68057         * tests/test-quotearg-simple.c: New file, extracted from
68058         tests/test-quotearg.c.
68059         * tests/test-quotearg.c: Don't include <ctype.h>.
68060         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
68061         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
68062         use_quote_double_quotes, use_quotearg_colon): Moved to
68063         tests/test-quotearg.h.
68064         (results_g, flag_results, custom_quotes, custom_results): Moved
68065         to tests/test-quotearg-simple.c.
68066         (main): Moved the part that does not depend on gettext to
68067         tests/test-quotearg-simple.c. Return 77 if the test cannot be
68068         performed.
68069         * modules/quotearg-simple: New file.
68070         * modules/quotearg-simple-tests: New file.
68071         * modules/quotearg (Depends-on): Add quotearg-simple.
68072         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
68073         (Files): Add tests/test-quotearg.h.
68074         Reported by Paolo Bonzini.
68076 2010-06-03  Bruno Haible  <bruno@clisp.org>
68078         Reduce dependencies.
68079         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
68081 2010-06-03  Bruno Haible  <bruno@clisp.org>
68083         time: Undefine more broken macros.
68084         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
68085         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
68086         Reported by Eric Blake.
68088 2010-06-03  Bruno Haible  <bruno@clisp.org>
68090         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
68091         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
68092         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
68093         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
68094         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
68095         Reported by Ludovic Courtès <ludo@gnu.org>.
68097 2010-06-02  Eric Blake  <eblake@redhat.com>
68099         time: work with mingw + pthreads-win32 library
68100         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
68101         if timespec is defined only in pthread.h.
68102         * modules/time (Makefile.am): Substitute it.
68103         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
68104         <pthread.h>, when needed.
68105         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
68106         from the library.
68108 2010-05-31  Bruno Haible  <bruno@clisp.org>
68110         Avoid expanding two macros in the wrong order.
68111         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
68112         gl_LIBUNISTRING if it is defined.
68113         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
68114         autoconf >= 2.64.
68115         Reported by Ludovic Courtès <ludo@gnu.org>.
68117 2010-05-27  Jim Meyering  <meyering@redhat.com>
68119         maint.mk: also prohibit "#undef" of always-defined symbols
68120         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
68121         Allow more than one space before the symbol name.
68122         (sc_prohibit_always-defined_macros): Use grep's -E, now that
68123         the regexp uses alternation.
68125 2010-05-26  Eric Blake  <eblake@redhat.com>
68127         maint.mk: avoid echo -e
68128         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
68129         Convert all uses of echo -* to printf.
68130         Reported by Matthias Bolte.
68132 2010-05-25  Bruno Haible  <bruno@clisp.org>
68134         Update to GNU gettext 0.18, part 2.
68135         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
68136         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
68138 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68140         Add missing include in test-pwrite.c.
68141         * tests/test-pwrite.c: Include string.h, for strcmp.
68143 2010-05-24  Bruno Haible  <bruno@clisp.org>
68145         * NEWS: Mention requirement for Automake option 'subdir-objects'.
68147 2010-05-24  Bruno Haible  <bruno@clisp.org>
68149         Don't use conversion with transliteration in u{8,16,32}_strcoll.
68150         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
68151         iconveh_error argument.
68152         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
68153         U_STRCONV_TO_LOCALE.
68154         * lib/unistr/u16-strcoll.c: Likewise.
68155         * lib/unistr/u32-strcoll.c: Likewise.
68156         * modules/unistr/u8-strcoll (Depends-on): Add
68157         uniconv/u8-strconv-to-enc, localcharset. Remove
68158         uniconv/u8-strconv-to-locale.
68159         (configure.ac): Bump version number.
68160         * modules/unistr/u16-strcoll (Depends-on): Add
68161         uniconv/u16-strconv-to-enc, localcharset. Remove
68162         uniconv/u16-strconv-to-locale.
68163         (configure.ac): Bump version number.
68164         * modules/unistr/u32-strcoll (Depends-on): Add
68165         uniconv/u32-strconv-to-enc, localcharset. Remove
68166         uniconv/u32-strconv-to-locale.
68167         (configure.ac): Bump version number.
68169 2010-05-24  Bruno Haible  <bruno@clisp.org>
68171         Avoid a test failure on NetBSD 5.0.
68172         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
68173         an iconv() bug.
68175 2010-05-24  Bruno Haible  <bruno@clisp.org>
68177         Adjust #include directive style.
68178         * modules/regex (Includes): Recommend to write <regex.h>.
68180 2010-05-24  Bruno Haible  <bruno@clisp.org>
68182         regex: Don't require alloca.
68183         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
68184         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
68185         only inside if (0).
68187 2010-05-23  Jim Meyering  <meyering@redhat.com>
68189         test-renameat.c: include <sys/stat.h>
68190         * tests/test-renameat.c: Include <sys/stat.h>; required for
68191         definition of S_IS* macros.
68193 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
68195         Update maintainer documentation for 'relocatable-prog' module.
68196         * doc/relocatable-maint.texi: Update.
68197         Comments by Bruno Haible.
68199 2010-05-23  Bruno Haible  <bruno@clisp.org>
68201         git-merge-changelog: Enable --split-merged-entry by default.
68202         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
68203         (usage): Don't mention this option any more.
68204         Reported by Ralf Wildenhues.
68206 2010-05-23  Jim Meyering  <meyering@redhat.com>
68208         test-pwrite: do not leave behind a test file named "out"
68209         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
68210         The trivial-looking use of init.sh is really necessary.
68211         It ensures that the temporary file, "out", is created in
68212         a temporary directory, and removed upon termination.
68213         * tests/test-pwrite.sh: Re-add file.
68214         * modules/pwrite-tests: Reference it.
68216 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68218         Fix output redirection buglet in init.sh.
68219         * tests/init.sh: Fix redirection of stderr.
68221 2010-05-20  Simon Josefsson  <simon@josefsson.org>
68223         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
68225 2010-05-17  Simon Josefsson  <simon@josefsson.org>
68227         * modules/valgrind-tests: New file.
68228         * m4/valgrind-tests.m4: New file.
68229         * doc/valgrind-tests.texi: New file.
68230         * doc/gnulib.texi (Running self-tests under valgrind): New
68231         section.
68233 2010-05-19  Bruno Haible  <bruno@clisp.org>
68235         Clean up dead code in recent commit.
68236         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
68237         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
68238         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
68239         Suggested by Paolo Bonzini.
68241 2010-05-19  Bruno Haible  <bruno@clisp.org>
68243         Avoid valgrind error reports from libunistring.
68244         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
68245         * modules/libunistring (Files): Add it.
68246         * modules/libunistring-optional (Files): Likewise.
68248 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
68249             Bruno Haible  <bruno@clisp.org>
68251         New module 'libunistring-optional'.
68252         * modules/libunistring-optional: New file.
68253         * m4/libunistring-base.m4: New file.
68254         * m4/libunistring-optional.m4: New file.
68255         * lib/unicase.in.h: Renamed from lib/unicase.h.
68256         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
68257         * lib/unictype.in.h: Renamed from lib/unictype.h.
68258         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
68259         * lib/uniname.in.h: Renamed from lib/uniname.h.
68260         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
68261         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
68262         * lib/unistr.in.h: Renamed from lib/unistr.h.
68263         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
68264         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
68265         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
68266         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
68267         gl_LIBUNISTRING. If the library was found, determine the installed
68268         version and set LIBUNISTRING_VERSION.
68269         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
68270         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
68271         handle a configuration option --with-included-libunistring.
68272         * modules/libunistring (Files): Add m4/absolute-header.m4.
68273         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
68274         Add m4/libunistring-base.m4.
68275         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68276         (Makefile.am): Build unicase.h from unicase.in.h.
68277         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
68278         Add m4/libunistring-base.m4.
68279         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68280         (Makefile.am): Build uniconv.h from uniconv.in.h.
68281         * modules/unictype/base (Files): Use unictype.in.h instead of
68282         unictype.h. Add m4/libunistring-base.m4.
68283         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68284         (Makefile.am): Build unictype.h from unictype.in.h.
68285         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
68286         Add m4/libunistring-base.m4.
68287         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68288         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
68289         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
68290         Add m4/libunistring-base.m4.
68291         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68292         (Makefile.am): Build uniname.h from uniname.in.h.
68293         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
68294         Add m4/libunistring-base.m4.
68295         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68296         (Makefile.am): Build uninorm.h from uninorm.in.h.
68297         * modules/unistdio/base (Files): Use unistdio.in.h instead of
68298         unistdio.h. Add m4/libunistring-base.m4.
68299         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68300         (Makefile.am): Build unistdio.h from unistdio.in.h.
68301         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
68302         Add m4/libunistring-base.m4.
68303         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68304         (Makefile.am): Build unistr.h from unistr.in.h.
68305         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
68306         Add m4/libunistring-base.m4.
68307         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68308         (Makefile.am): Build unitypes.h from unitypes.in.h.
68309         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
68310         Add m4/libunistring-base.m4.
68311         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68312         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
68313         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
68314         uniwidth.h. Add m4/libunistring-base.m4.
68315         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
68316         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
68317         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
68318         instead of augmenting lib_SOURCES.
68319         * modules/unicase/empty-suffix-context: Likewise.
68320         * modules/unicase/locale-language: Likewise.
68321         * modules/unicase/tolower: Likewise.
68322         * modules/unicase/totitle: Likewise.
68323         * modules/unicase/toupper: Likewise.
68324         * modules/unicase/u8-casecmp: Likewise.
68325         * modules/unicase/u8-casecoll: Likewise.
68326         * modules/unicase/u8-casefold: Likewise.
68327         * modules/unicase/u8-casexfrm: Likewise.
68328         * modules/unicase/u8-ct-casefold: Likewise.
68329         * modules/unicase/u8-ct-tolower: Likewise.
68330         * modules/unicase/u8-ct-totitle: Likewise.
68331         * modules/unicase/u8-ct-toupper: Likewise.
68332         * modules/unicase/u8-is-cased: Likewise.
68333         * modules/unicase/u8-is-casefolded: Likewise.
68334         * modules/unicase/u8-is-lowercase: Likewise.
68335         * modules/unicase/u8-is-titlecase: Likewise.
68336         * modules/unicase/u8-is-uppercase: Likewise.
68337         * modules/unicase/u8-prefix-context: Likewise.
68338         * modules/unicase/u8-suffix-context: Likewise.
68339         * modules/unicase/u8-tolower: Likewise.
68340         * modules/unicase/u8-totitle: Likewise.
68341         * modules/unicase/u8-toupper: Likewise.
68342         * modules/unicase/u16-casecmp: Likewise.
68343         * modules/unicase/u16-casecoll: Likewise.
68344         * modules/unicase/u16-casefold: Likewise.
68345         * modules/unicase/u16-casexfrm: Likewise.
68346         * modules/unicase/u16-ct-casefold: Likewise.
68347         * modules/unicase/u16-ct-tolower: Likewise.
68348         * modules/unicase/u16-ct-totitle: Likewise.
68349         * modules/unicase/u16-ct-toupper: Likewise.
68350         * modules/unicase/u16-is-cased: Likewise.
68351         * modules/unicase/u16-is-casefolded: Likewise.
68352         * modules/unicase/u16-is-lowercase: Likewise.
68353         * modules/unicase/u16-is-titlecase: Likewise.
68354         * modules/unicase/u16-is-uppercase: Likewise.
68355         * modules/unicase/u16-prefix-context: Likewise.
68356         * modules/unicase/u16-suffix-context: Likewise.
68357         * modules/unicase/u16-tolower: Likewise.
68358         * modules/unicase/u16-totitle: Likewise.
68359         * modules/unicase/u16-toupper: Likewise.
68360         * modules/unicase/u32-casecmp: Likewise.
68361         * modules/unicase/u32-casecoll: Likewise.
68362         * modules/unicase/u32-casefold: Likewise.
68363         * modules/unicase/u32-casexfrm: Likewise.
68364         * modules/unicase/u32-ct-casefold: Likewise.
68365         * modules/unicase/u32-ct-tolower: Likewise.
68366         * modules/unicase/u32-ct-totitle: Likewise.
68367         * modules/unicase/u32-ct-toupper: Likewise.
68368         * modules/unicase/u32-is-cased: Likewise.
68369         * modules/unicase/u32-is-casefolded: Likewise.
68370         * modules/unicase/u32-is-lowercase: Likewise.
68371         * modules/unicase/u32-is-titlecase: Likewise.
68372         * modules/unicase/u32-is-uppercase: Likewise.
68373         * modules/unicase/u32-prefix-context: Likewise.
68374         * modules/unicase/u32-suffix-context: Likewise.
68375         * modules/unicase/u32-tolower: Likewise.
68376         * modules/unicase/u32-totitle: Likewise.
68377         * modules/unicase/u32-toupper: Likewise.
68378         * modules/unicase/ulc-casecmp: Likewise.
68379         * modules/unicase/ulc-casecoll: Likewise.
68380         * modules/unicase/ulc-casexfrm: Likewise.
68381         * modules/uniconv/u8-conv-from-enc: Likewise.
68382         * modules/uniconv/u8-conv-to-enc: Likewise.
68383         * modules/uniconv/u8-strconv-from-enc: Likewise.
68384         * modules/uniconv/u8-strconv-from-locale: Likewise.
68385         * modules/uniconv/u8-strconv-to-enc: Likewise.
68386         * modules/uniconv/u8-strconv-to-locale: Likewise.
68387         * modules/uniconv/u16-conv-from-enc: Likewise.
68388         * modules/uniconv/u16-conv-to-enc: Likewise.
68389         * modules/uniconv/u16-strconv-from-enc: Likewise.
68390         * modules/uniconv/u16-strconv-from-locale: Likewise.
68391         * modules/uniconv/u16-strconv-to-enc: Likewise.
68392         * modules/uniconv/u16-strconv-to-locale: Likewise.
68393         * modules/uniconv/u32-conv-from-enc: Likewise.
68394         * modules/uniconv/u32-conv-to-enc: Likewise.
68395         * modules/uniconv/u32-strconv-from-enc: Likewise.
68396         * modules/uniconv/u32-strconv-from-locale: Likewise.
68397         * modules/uniconv/u32-strconv-to-enc: Likewise.
68398         * modules/uniconv/u32-strconv-to-locale: Likewise.
68399         * modules/unictype/bidicategory-byname: Likewise.
68400         * modules/unictype/bidicategory-name: Likewise.
68401         * modules/unictype/bidicategory-of: Likewise.
68402         * modules/unictype/bidicategory-test: Likewise.
68403         * modules/unictype/block-list: Likewise.
68404         * modules/unictype/block-test: Likewise.
68405         * modules/unictype/category-C: Likewise.
68406         * modules/unictype/category-Cc: Likewise.
68407         * modules/unictype/category-Cf: Likewise.
68408         * modules/unictype/category-Cn: Likewise.
68409         * modules/unictype/category-Co: Likewise.
68410         * modules/unictype/category-Cs: Likewise.
68411         * modules/unictype/category-L: Likewise.
68412         * modules/unictype/category-Ll: Likewise.
68413         * modules/unictype/category-Lm: Likewise.
68414         * modules/unictype/category-Lo: Likewise.
68415         * modules/unictype/category-Lt: Likewise.
68416         * modules/unictype/category-Lu: Likewise.
68417         * modules/unictype/category-M: Likewise.
68418         * modules/unictype/category-Mc: Likewise.
68419         * modules/unictype/category-Me: Likewise.
68420         * modules/unictype/category-Mn: Likewise.
68421         * modules/unictype/category-N: Likewise.
68422         * modules/unictype/category-Nd: Likewise.
68423         * modules/unictype/category-Nl: Likewise.
68424         * modules/unictype/category-No: Likewise.
68425         * modules/unictype/category-P: Likewise.
68426         * modules/unictype/category-Pc: Likewise.
68427         * modules/unictype/category-Pd: Likewise.
68428         * modules/unictype/category-Pe: Likewise.
68429         * modules/unictype/category-Pf: Likewise.
68430         * modules/unictype/category-Pi: Likewise.
68431         * modules/unictype/category-Po: Likewise.
68432         * modules/unictype/category-Ps: Likewise.
68433         * modules/unictype/category-S: Likewise.
68434         * modules/unictype/category-Sc: Likewise.
68435         * modules/unictype/category-Sk: Likewise.
68436         * modules/unictype/category-Sm: Likewise.
68437         * modules/unictype/category-So: Likewise.
68438         * modules/unictype/category-Z: Likewise.
68439         * modules/unictype/category-Zl: Likewise.
68440         * modules/unictype/category-Zp: Likewise.
68441         * modules/unictype/category-Zs: Likewise.
68442         * modules/unictype/category-and: Likewise.
68443         * modules/unictype/category-and-not: Likewise.
68444         * modules/unictype/category-byname: Likewise.
68445         * modules/unictype/category-name: Likewise.
68446         * modules/unictype/category-none: Likewise.
68447         * modules/unictype/category-of: Likewise.
68448         * modules/unictype/category-or: Likewise.
68449         * modules/unictype/category-test: Likewise.
68450         * modules/unictype/combining-class: Likewise.
68451         * modules/unictype/ctype-alnum: Likewise.
68452         * modules/unictype/ctype-alpha: Likewise.
68453         * modules/unictype/ctype-blank: Likewise.
68454         * modules/unictype/ctype-cntrl: Likewise.
68455         * modules/unictype/ctype-digit: Likewise.
68456         * modules/unictype/ctype-graph: Likewise.
68457         * modules/unictype/ctype-lower: Likewise.
68458         * modules/unictype/ctype-print: Likewise.
68459         * modules/unictype/ctype-punct: Likewise.
68460         * modules/unictype/ctype-space: Likewise.
68461         * modules/unictype/ctype-upper: Likewise.
68462         * modules/unictype/ctype-xdigit: Likewise.
68463         * modules/unictype/decimal-digit: Likewise.
68464         * modules/unictype/digit: Likewise.
68465         * modules/unictype/mirror: Likewise.
68466         * modules/unictype/numeric: Likewise.
68467         * modules/unictype/property-alphabetic: Likewise.
68468         * modules/unictype/property-ascii-hex-digit: Likewise.
68469         * modules/unictype/property-bidi-arabic-digit: Likewise.
68470         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
68471         * modules/unictype/property-bidi-block-separator: Likewise.
68472         * modules/unictype/property-bidi-boundary-neutral: Likewise.
68473         * modules/unictype/property-bidi-common-separator: Likewise.
68474         * modules/unictype/property-bidi-control: Likewise.
68475         * modules/unictype/property-bidi-embedding-or-override: Likewise.
68476         * modules/unictype/property-bidi-eur-num-separator: Likewise.
68477         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
68478         * modules/unictype/property-bidi-european-digit: Likewise.
68479         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
68480         * modules/unictype/property-bidi-left-to-right: Likewise.
68481         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
68482         * modules/unictype/property-bidi-other-neutral: Likewise.
68483         * modules/unictype/property-bidi-pdf: Likewise.
68484         * modules/unictype/property-bidi-segment-separator: Likewise.
68485         * modules/unictype/property-bidi-whitespace: Likewise.
68486         * modules/unictype/property-byname: Likewise.
68487         * modules/unictype/property-combining: Likewise.
68488         * modules/unictype/property-composite: Likewise.
68489         * modules/unictype/property-currency-symbol: Likewise.
68490         * modules/unictype/property-dash: Likewise.
68491         * modules/unictype/property-decimal-digit: Likewise.
68492         * modules/unictype/property-default-ignorable-code-point: Likewise.
68493         * modules/unictype/property-deprecated: Likewise.
68494         * modules/unictype/property-diacritic: Likewise.
68495         * modules/unictype/property-extender: Likewise.
68496         * modules/unictype/property-format-control: Likewise.
68497         * modules/unictype/property-grapheme-base: Likewise.
68498         * modules/unictype/property-grapheme-extend: Likewise.
68499         * modules/unictype/property-grapheme-link: Likewise.
68500         * modules/unictype/property-hex-digit: Likewise.
68501         * modules/unictype/property-hyphen: Likewise.
68502         * modules/unictype/property-id-continue: Likewise.
68503         * modules/unictype/property-id-start: Likewise.
68504         * modules/unictype/property-ideographic: Likewise.
68505         * modules/unictype/property-ids-binary-operator: Likewise.
68506         * modules/unictype/property-ids-trinary-operator: Likewise.
68507         * modules/unictype/property-ignorable-control: Likewise.
68508         * modules/unictype/property-iso-control: Likewise.
68509         * modules/unictype/property-join-control: Likewise.
68510         * modules/unictype/property-left-of-pair: Likewise.
68511         * modules/unictype/property-line-separator: Likewise.
68512         * modules/unictype/property-logical-order-exception: Likewise.
68513         * modules/unictype/property-lowercase: Likewise.
68514         * modules/unictype/property-math: Likewise.
68515         * modules/unictype/property-non-break: Likewise.
68516         * modules/unictype/property-not-a-character: Likewise.
68517         * modules/unictype/property-numeric: Likewise.
68518         * modules/unictype/property-other-alphabetic: Likewise.
68519         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
68520         * modules/unictype/property-other-grapheme-extend: Likewise.
68521         * modules/unictype/property-other-id-continue: Likewise.
68522         * modules/unictype/property-other-id-start: Likewise.
68523         * modules/unictype/property-other-lowercase: Likewise.
68524         * modules/unictype/property-other-math: Likewise.
68525         * modules/unictype/property-other-uppercase: Likewise.
68526         * modules/unictype/property-paired-punctuation: Likewise.
68527         * modules/unictype/property-paragraph-separator: Likewise.
68528         * modules/unictype/property-pattern-syntax: Likewise.
68529         * modules/unictype/property-pattern-white-space: Likewise.
68530         * modules/unictype/property-private-use: Likewise.
68531         * modules/unictype/property-punctuation: Likewise.
68532         * modules/unictype/property-quotation-mark: Likewise.
68533         * modules/unictype/property-radical: Likewise.
68534         * modules/unictype/property-sentence-terminal: Likewise.
68535         * modules/unictype/property-soft-dotted: Likewise.
68536         * modules/unictype/property-space: Likewise.
68537         * modules/unictype/property-terminal-punctuation: Likewise.
68538         * modules/unictype/property-test: Likewise.
68539         * modules/unictype/property-titlecase: Likewise.
68540         * modules/unictype/property-unassigned-code-value: Likewise.
68541         * modules/unictype/property-unified-ideograph: Likewise.
68542         * modules/unictype/property-uppercase: Likewise.
68543         * modules/unictype/property-variation-selector: Likewise.
68544         * modules/unictype/property-white-space: Likewise.
68545         * modules/unictype/property-xid-continue: Likewise.
68546         * modules/unictype/property-xid-start: Likewise.
68547         * modules/unictype/property-zero-width: Likewise.
68548         * modules/unictype/scripts: Likewise.
68549         * modules/unictype/syntax-c-ident: Likewise.
68550         * modules/unictype/syntax-c-whitespace: Likewise.
68551         * modules/unictype/syntax-java-ident: Likewise.
68552         * modules/unictype/syntax-java-whitespace: Likewise.
68553         * modules/unilbrk/u8-possible-linebreaks: Likewise.
68554         * modules/unilbrk/u8-width-linebreaks: Likewise.
68555         * modules/unilbrk/u16-possible-linebreaks: Likewise.
68556         * modules/unilbrk/u16-width-linebreaks: Likewise.
68557         * modules/unilbrk/u32-possible-linebreaks: Likewise.
68558         * modules/unilbrk/u32-width-linebreaks: Likewise.
68559         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
68560         * modules/unilbrk/ulc-width-linebreaks: Likewise.
68561         * modules/uniname/uniname: Likewise.
68562         * modules/uninorm/canonical-decomposition: Likewise.
68563         * modules/uninorm/composition: Likewise.
68564         * modules/uninorm/decomposing-form: Likewise.
68565         * modules/uninorm/decomposition: Likewise.
68566         * modules/uninorm/filter: Likewise.
68567         * modules/uninorm/nfc: Likewise.
68568         * modules/uninorm/nfd: Likewise.
68569         * modules/uninorm/nfkc: Likewise.
68570         * modules/uninorm/nfkd: Likewise.
68571         * modules/uninorm/u8-normalize: Likewise.
68572         * modules/uninorm/u8-normcmp: Likewise.
68573         * modules/uninorm/u8-normcoll: Likewise.
68574         * modules/uninorm/u8-normxfrm: Likewise.
68575         * modules/uninorm/u16-normalize: Likewise.
68576         * modules/uninorm/u16-normcmp: Likewise.
68577         * modules/uninorm/u16-normcoll: Likewise.
68578         * modules/uninorm/u16-normxfrm: Likewise.
68579         * modules/uninorm/u32-normalize: Likewise.
68580         * modules/uninorm/u32-normcmp: Likewise.
68581         * modules/uninorm/u32-normcoll: Likewise.
68582         * modules/uninorm/u32-normxfrm: Likewise.
68583         * modules/unistdio/u8-asnprintf: Likewise.
68584         * modules/unistdio/u8-asprintf: Likewise.
68585         * modules/unistdio/u8-snprintf: Likewise.
68586         * modules/unistdio/u8-sprintf: Likewise.
68587         * modules/unistdio/u8-u8-asnprintf: Likewise.
68588         * modules/unistdio/u8-u8-asprintf: Likewise.
68589         * modules/unistdio/u8-u8-snprintf: Likewise.
68590         * modules/unistdio/u8-u8-sprintf: Likewise.
68591         * modules/unistdio/u8-u8-vasnprintf: Likewise.
68592         * modules/unistdio/u8-u8-vasprintf: Likewise.
68593         * modules/unistdio/u8-u8-vsnprintf: Likewise.
68594         * modules/unistdio/u8-u8-vsprintf: Likewise.
68595         * modules/unistdio/u8-vasnprintf: Likewise.
68596         * modules/unistdio/u8-vasprintf: Likewise.
68597         * modules/unistdio/u8-vsnprintf: Likewise.
68598         * modules/unistdio/u8-vsprintf: Likewise.
68599         * modules/unistdio/u16-asnprintf: Likewise.
68600         * modules/unistdio/u16-asprintf: Likewise.
68601         * modules/unistdio/u16-snprintf: Likewise.
68602         * modules/unistdio/u16-sprintf: Likewise.
68603         * modules/unistdio/u16-u16-asnprintf: Likewise.
68604         * modules/unistdio/u16-u16-asprintf: Likewise.
68605         * modules/unistdio/u16-u16-snprintf: Likewise.
68606         * modules/unistdio/u16-u16-sprintf: Likewise.
68607         * modules/unistdio/u16-u16-vasnprintf: Likewise.
68608         * modules/unistdio/u16-u16-vasprintf: Likewise.
68609         * modules/unistdio/u16-u16-vsnprintf: Likewise.
68610         * modules/unistdio/u16-u16-vsprintf: Likewise.
68611         * modules/unistdio/u16-vasnprintf: Likewise.
68612         * modules/unistdio/u16-vasprintf: Likewise.
68613         * modules/unistdio/u16-vsnprintf: Likewise.
68614         * modules/unistdio/u16-vsprintf: Likewise.
68615         * modules/unistdio/u32-asnprintf: Likewise.
68616         * modules/unistdio/u32-asprintf: Likewise.
68617         * modules/unistdio/u32-snprintf: Likewise.
68618         * modules/unistdio/u32-sprintf: Likewise.
68619         * modules/unistdio/u32-u32-asnprintf: Likewise.
68620         * modules/unistdio/u32-u32-asprintf: Likewise.
68621         * modules/unistdio/u32-u32-snprintf: Likewise.
68622         * modules/unistdio/u32-u32-sprintf: Likewise.
68623         * modules/unistdio/u32-u32-vasnprintf: Likewise.
68624         * modules/unistdio/u32-u32-vasprintf: Likewise.
68625         * modules/unistdio/u32-u32-vsnprintf: Likewise.
68626         * modules/unistdio/u32-u32-vsprintf: Likewise.
68627         * modules/unistdio/u32-vasnprintf: Likewise.
68628         * modules/unistdio/u32-vasprintf: Likewise.
68629         * modules/unistdio/u32-vsnprintf: Likewise.
68630         * modules/unistdio/u32-vsprintf: Likewise.
68631         * modules/unistdio/ulc-asnprintf: Likewise.
68632         * modules/unistdio/ulc-asprintf: Likewise.
68633         * modules/unistdio/ulc-fprintf: Likewise.
68634         * modules/unistdio/ulc-snprintf: Likewise.
68635         * modules/unistdio/ulc-sprintf: Likewise.
68636         * modules/unistdio/ulc-vasnprintf: Likewise.
68637         * modules/unistdio/ulc-vasprintf: Likewise.
68638         * modules/unistdio/ulc-vfprintf: Likewise.
68639         * modules/unistdio/ulc-vsnprintf: Likewise.
68640         * modules/unistdio/ulc-vsprintf: Likewise.
68641         * modules/unistr/u8-check: Likewise.
68642         * modules/unistr/u8-chr: Likewise.
68643         * modules/unistr/u8-cmp: Likewise.
68644         * modules/unistr/u8-cmp2: Likewise.
68645         * modules/unistr/u8-cpy: Likewise.
68646         * modules/unistr/u8-cpy-alloc: Likewise.
68647         * modules/unistr/u8-endswith: Likewise.
68648         * modules/unistr/u8-mblen: Likewise.
68649         * modules/unistr/u8-mbsnlen: Likewise.
68650         * modules/unistr/u8-mbtouc: Likewise.
68651         * modules/unistr/u8-mbtouc-unsafe: Likewise.
68652         * modules/unistr/u8-mbtoucr: Likewise.
68653         * modules/unistr/u8-move: Likewise.
68654         * modules/unistr/u8-next: Likewise.
68655         * modules/unistr/u8-prev: Likewise.
68656         * modules/unistr/u8-set: Likewise.
68657         * modules/unistr/u8-startswith: Likewise.
68658         * modules/unistr/u8-stpcpy: Likewise.
68659         * modules/unistr/u8-stpncpy: Likewise.
68660         * modules/unistr/u8-strcat: Likewise.
68661         * modules/unistr/u8-strchr: Likewise.
68662         * modules/unistr/u8-strcmp: Likewise.
68663         * modules/unistr/u8-strcoll: Likewise.
68664         * modules/unistr/u8-strcpy: Likewise.
68665         * modules/unistr/u8-strcspn: Likewise.
68666         * modules/unistr/u8-strdup: Likewise.
68667         * modules/unistr/u8-strlen: Likewise.
68668         * modules/unistr/u8-strmblen: Likewise.
68669         * modules/unistr/u8-strmbtouc: Likewise.
68670         * modules/unistr/u8-strncat: Likewise.
68671         * modules/unistr/u8-strncmp: Likewise.
68672         * modules/unistr/u8-strncpy: Likewise.
68673         * modules/unistr/u8-strnlen: Likewise.
68674         * modules/unistr/u8-strpbrk: Likewise.
68675         * modules/unistr/u8-strrchr: Likewise.
68676         * modules/unistr/u8-strspn: Likewise.
68677         * modules/unistr/u8-strstr: Likewise.
68678         * modules/unistr/u8-strtok: Likewise.
68679         * modules/unistr/u8-to-u16: Likewise.
68680         * modules/unistr/u8-to-u32: Likewise.
68681         * modules/unistr/u8-uctomb: Likewise.
68682         * modules/unistr/u16-check: Likewise.
68683         * modules/unistr/u16-chr: Likewise.
68684         * modules/unistr/u16-cmp: Likewise.
68685         * modules/unistr/u16-cmp2: Likewise.
68686         * modules/unistr/u16-cpy: Likewise.
68687         * modules/unistr/u16-cpy-alloc: Likewise.
68688         * modules/unistr/u16-endswith: Likewise.
68689         * modules/unistr/u16-mblen: Likewise.
68690         * modules/unistr/u16-mbsnlen: Likewise.
68691         * modules/unistr/u16-mbtouc: Likewise.
68692         * modules/unistr/u16-mbtouc-unsafe: Likewise.
68693         * modules/unistr/u16-mbtoucr: Likewise.
68694         * modules/unistr/u16-move: Likewise.
68695         * modules/unistr/u16-next: Likewise.
68696         * modules/unistr/u16-prev: Likewise.
68697         * modules/unistr/u16-set: Likewise.
68698         * modules/unistr/u16-startswith: Likewise.
68699         * modules/unistr/u16-stpcpy: Likewise.
68700         * modules/unistr/u16-stpncpy: Likewise.
68701         * modules/unistr/u16-strcat: Likewise.
68702         * modules/unistr/u16-strchr: Likewise.
68703         * modules/unistr/u16-strcmp: Likewise.
68704         * modules/unistr/u16-strcoll: Likewise.
68705         * modules/unistr/u16-strcpy: Likewise.
68706         * modules/unistr/u16-strcspn: Likewise.
68707         * modules/unistr/u16-strdup: Likewise.
68708         * modules/unistr/u16-strlen: Likewise.
68709         * modules/unistr/u16-strmblen: Likewise.
68710         * modules/unistr/u16-strmbtouc: Likewise.
68711         * modules/unistr/u16-strncat: Likewise.
68712         * modules/unistr/u16-strncmp: Likewise.
68713         * modules/unistr/u16-strncpy: Likewise.
68714         * modules/unistr/u16-strnlen: Likewise.
68715         * modules/unistr/u16-strpbrk: Likewise.
68716         * modules/unistr/u16-strrchr: Likewise.
68717         * modules/unistr/u16-strspn: Likewise.
68718         * modules/unistr/u16-strstr: Likewise.
68719         * modules/unistr/u16-strtok: Likewise.
68720         * modules/unistr/u16-to-u32: Likewise.
68721         * modules/unistr/u16-to-u8: Likewise.
68722         * modules/unistr/u16-uctomb: Likewise.
68723         * modules/unistr/u32-check: Likewise.
68724         * modules/unistr/u32-chr: Likewise.
68725         * modules/unistr/u32-cmp: Likewise.
68726         * modules/unistr/u32-cmp2: Likewise.
68727         * modules/unistr/u32-cpy: Likewise.
68728         * modules/unistr/u32-cpy-alloc: Likewise.
68729         * modules/unistr/u32-endswith: Likewise.
68730         * modules/unistr/u32-mblen: Likewise.
68731         * modules/unistr/u32-mbsnlen: Likewise.
68732         * modules/unistr/u32-mbtouc: Likewise.
68733         * modules/unistr/u32-mbtouc-unsafe: Likewise.
68734         * modules/unistr/u32-mbtoucr: Likewise.
68735         * modules/unistr/u32-move: Likewise.
68736         * modules/unistr/u32-next: Likewise.
68737         * modules/unistr/u32-prev: Likewise.
68738         * modules/unistr/u32-set: Likewise.
68739         * modules/unistr/u32-startswith: Likewise.
68740         * modules/unistr/u32-stpcpy: Likewise.
68741         * modules/unistr/u32-stpncpy: Likewise.
68742         * modules/unistr/u32-strcat: Likewise.
68743         * modules/unistr/u32-strchr: Likewise.
68744         * modules/unistr/u32-strcmp: Likewise.
68745         * modules/unistr/u32-strcoll: Likewise.
68746         * modules/unistr/u32-strcpy: Likewise.
68747         * modules/unistr/u32-strcspn: Likewise.
68748         * modules/unistr/u32-strdup: Likewise.
68749         * modules/unistr/u32-strlen: Likewise.
68750         * modules/unistr/u32-strmblen: Likewise.
68751         * modules/unistr/u32-strmbtouc: Likewise.
68752         * modules/unistr/u32-strncat: Likewise.
68753         * modules/unistr/u32-strncmp: Likewise.
68754         * modules/unistr/u32-strncpy: Likewise.
68755         * modules/unistr/u32-strnlen: Likewise.
68756         * modules/unistr/u32-strpbrk: Likewise.
68757         * modules/unistr/u32-strrchr: Likewise.
68758         * modules/unistr/u32-strspn: Likewise.
68759         * modules/unistr/u32-strstr: Likewise.
68760         * modules/unistr/u32-strtok: Likewise.
68761         * modules/unistr/u32-to-u16: Likewise.
68762         * modules/unistr/u32-to-u8: Likewise.
68763         * modules/unistr/u32-uctomb: Likewise.
68764         * modules/uniwbrk/u8-wordbreaks: Likewise.
68765         * modules/uniwbrk/u16-wordbreaks: Likewise.
68766         * modules/uniwbrk/u32-wordbreaks: Likewise.
68767         * modules/uniwbrk/ulc-wordbreaks: Likewise.
68768         * modules/uniwbrk/wordbreak-property: Likewise.
68769         * modules/uniwidth/u8-strwidth: Likewise.
68770         * modules/uniwidth/u8-width: Likewise.
68771         * modules/uniwidth/u16-strwidth: Likewise.
68772         * modules/uniwidth/u16-width: Likewise.
68773         * modules/uniwidth/u32-strwidth: Likewise.
68774         * modules/uniwidth/u32-width: Likewise.
68775         * modules/uniwidth/width: Likewise.
68776         * modules/unicase/cased-tests (Makefile.am): Link all test programs
68777         with $(LIBUNISTRING).
68778         * modules/unicase/ignorable-tests: Likewise.
68779         * modules/unicase/locale-language-tests: Likewise.
68780         * modules/unicase/tolower-tests: Likewise.
68781         * modules/unicase/totitle-tests: Likewise.
68782         * modules/unicase/toupper-tests: Likewise.
68783         * modules/unicase/u8-casecmp-tests: Likewise.
68784         * modules/unicase/u8-casecoll-tests: Likewise.
68785         * modules/unicase/u8-casefold-tests: Likewise.
68786         * modules/unicase/u8-is-cased-tests: Likewise.
68787         * modules/unicase/u8-is-casefolded-tests: Likewise.
68788         * modules/unicase/u8-is-lowercase-tests: Likewise.
68789         * modules/unicase/u8-is-titlecase-tests: Likewise.
68790         * modules/unicase/u8-is-uppercase-tests: Likewise.
68791         * modules/unicase/u8-tolower-tests: Likewise.
68792         * modules/unicase/u8-totitle-tests: Likewise.
68793         * modules/unicase/u8-toupper-tests: Likewise.
68794         * modules/unicase/u16-casecmp-tests: Likewise.
68795         * modules/unicase/u16-casecoll-tests: Likewise.
68796         * modules/unicase/u16-casefold-tests: Likewise.
68797         * modules/unicase/u16-is-cased-tests: Likewise.
68798         * modules/unicase/u16-is-casefolded-tests: Likewise.
68799         * modules/unicase/u16-is-lowercase-tests: Likewise.
68800         * modules/unicase/u16-is-titlecase-tests: Likewise.
68801         * modules/unicase/u16-is-uppercase-tests: Likewise.
68802         * modules/unicase/u16-tolower-tests: Likewise.
68803         * modules/unicase/u16-totitle-tests: Likewise.
68804         * modules/unicase/u16-toupper-tests: Likewise.
68805         * modules/unicase/u32-casecmp-tests: Likewise.
68806         * modules/unicase/u32-casecoll-tests: Likewise.
68807         * modules/unicase/u32-casefold-tests: Likewise.
68808         * modules/unicase/u32-is-cased-tests: Likewise.
68809         * modules/unicase/u32-is-casefolded-tests: Likewise.
68810         * modules/unicase/u32-is-lowercase-tests: Likewise.
68811         * modules/unicase/u32-is-titlecase-tests: Likewise.
68812         * modules/unicase/u32-is-uppercase-tests: Likewise.
68813         * modules/unicase/u32-tolower-tests: Likewise.
68814         * modules/unicase/u32-totitle-tests: Likewise.
68815         * modules/unicase/u32-toupper-tests: Likewise.
68816         * modules/unicase/ulc-casecmp-tests: Likewise.
68817         * modules/unicase/ulc-casecoll-tests: Likewise.
68818         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
68819         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
68820         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
68821         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
68822         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
68823         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
68824         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
68825         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
68826         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
68827         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
68828         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
68829         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
68830         * modules/unictype/bidicategory-byname-tests: Likewise.
68831         * modules/unictype/bidicategory-name-tests: Likewise.
68832         * modules/unictype/bidicategory-of-tests: Likewise.
68833         * modules/unictype/bidicategory-test-tests: Likewise.
68834         * modules/unictype/block-list-tests: Likewise.
68835         * modules/unictype/block-of-tests: Likewise.
68836         * modules/unictype/block-test-tests: Likewise.
68837         * modules/unictype/category-C-tests: Likewise.
68838         * modules/unictype/category-Cc-tests: Likewise.
68839         * modules/unictype/category-Cf-tests: Likewise.
68840         * modules/unictype/category-Cn-tests: Likewise.
68841         * modules/unictype/category-Co-tests: Likewise.
68842         * modules/unictype/category-Cs-tests: Likewise.
68843         * modules/unictype/category-L-tests: Likewise.
68844         * modules/unictype/category-Ll-tests: Likewise.
68845         * modules/unictype/category-Lm-tests: Likewise.
68846         * modules/unictype/category-Lo-tests: Likewise.
68847         * modules/unictype/category-Lt-tests: Likewise.
68848         * modules/unictype/category-Lu-tests: Likewise.
68849         * modules/unictype/category-M-tests: Likewise.
68850         * modules/unictype/category-Mc-tests: Likewise.
68851         * modules/unictype/category-Me-tests: Likewise.
68852         * modules/unictype/category-Mn-tests: Likewise.
68853         * modules/unictype/category-N-tests: Likewise.
68854         * modules/unictype/category-Nd-tests: Likewise.
68855         * modules/unictype/category-Nl-tests: Likewise.
68856         * modules/unictype/category-No-tests: Likewise.
68857         * modules/unictype/category-P-tests: Likewise.
68858         * modules/unictype/category-Pc-tests: Likewise.
68859         * modules/unictype/category-Pd-tests: Likewise.
68860         * modules/unictype/category-Pe-tests: Likewise.
68861         * modules/unictype/category-Pf-tests: Likewise.
68862         * modules/unictype/category-Pi-tests: Likewise.
68863         * modules/unictype/category-Po-tests: Likewise.
68864         * modules/unictype/category-Ps-tests: Likewise.
68865         * modules/unictype/category-S-tests: Likewise.
68866         * modules/unictype/category-Sc-tests: Likewise.
68867         * modules/unictype/category-Sk-tests: Likewise.
68868         * modules/unictype/category-Sm-tests: Likewise.
68869         * modules/unictype/category-So-tests: Likewise.
68870         * modules/unictype/category-Z-tests: Likewise.
68871         * modules/unictype/category-Zl-tests: Likewise.
68872         * modules/unictype/category-Zp-tests: Likewise.
68873         * modules/unictype/category-Zs-tests: Likewise.
68874         * modules/unictype/category-and-not-tests: Likewise.
68875         * modules/unictype/category-and-tests: Likewise.
68876         * modules/unictype/category-byname-tests: Likewise.
68877         * modules/unictype/category-name-tests: Likewise.
68878         * modules/unictype/category-none-tests: Likewise.
68879         * modules/unictype/category-of-tests: Likewise.
68880         * modules/unictype/category-or-tests: Likewise.
68881         * modules/unictype/category-test-withtable-tests: Likewise.
68882         * modules/unictype/combining-class-tests: Likewise.
68883         * modules/unictype/ctype-alnum-tests: Likewise.
68884         * modules/unictype/ctype-alpha-tests: Likewise.
68885         * modules/unictype/ctype-blank-tests: Likewise.
68886         * modules/unictype/ctype-cntrl-tests: Likewise.
68887         * modules/unictype/ctype-digit-tests: Likewise.
68888         * modules/unictype/ctype-graph-tests: Likewise.
68889         * modules/unictype/ctype-lower-tests: Likewise.
68890         * modules/unictype/ctype-print-tests: Likewise.
68891         * modules/unictype/ctype-punct-tests: Likewise.
68892         * modules/unictype/ctype-space-tests: Likewise.
68893         * modules/unictype/ctype-upper-tests: Likewise.
68894         * modules/unictype/ctype-xdigit-tests: Likewise.
68895         * modules/unictype/decimal-digit-tests: Likewise.
68896         * modules/unictype/digit-tests: Likewise.
68897         * modules/unictype/mirror-tests: Likewise.
68898         * modules/unictype/numeric-tests: Likewise.
68899         * modules/unictype/property-alphabetic-tests: Likewise.
68900         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
68901         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
68902         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
68903         * modules/unictype/property-bidi-block-separator-tests: Likewise.
68904         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
68905         * modules/unictype/property-bidi-common-separator-tests: Likewise.
68906         * modules/unictype/property-bidi-control-tests: Likewise.
68907         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
68908         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
68909         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
68910         * modules/unictype/property-bidi-european-digit-tests: Likewise.
68911         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
68912         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
68913         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
68914         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
68915         * modules/unictype/property-bidi-pdf-tests: Likewise.
68916         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
68917         * modules/unictype/property-bidi-whitespace-tests: Likewise.
68918         * modules/unictype/property-byname-tests: Likewise.
68919         * modules/unictype/property-combining-tests: Likewise.
68920         * modules/unictype/property-composite-tests: Likewise.
68921         * modules/unictype/property-currency-symbol-tests: Likewise.
68922         * modules/unictype/property-dash-tests: Likewise.
68923         * modules/unictype/property-decimal-digit-tests: Likewise.
68924         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
68925         * modules/unictype/property-deprecated-tests: Likewise.
68926         * modules/unictype/property-diacritic-tests: Likewise.
68927         * modules/unictype/property-extender-tests: Likewise.
68928         * modules/unictype/property-format-control-tests: Likewise.
68929         * modules/unictype/property-grapheme-base-tests: Likewise.
68930         * modules/unictype/property-grapheme-extend-tests: Likewise.
68931         * modules/unictype/property-grapheme-link-tests: Likewise.
68932         * modules/unictype/property-hex-digit-tests: Likewise.
68933         * modules/unictype/property-hyphen-tests: Likewise.
68934         * modules/unictype/property-id-continue-tests: Likewise.
68935         * modules/unictype/property-id-start-tests: Likewise.
68936         * modules/unictype/property-ideographic-tests: Likewise.
68937         * modules/unictype/property-ids-binary-operator-tests: Likewise.
68938         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
68939         * modules/unictype/property-ignorable-control-tests: Likewise.
68940         * modules/unictype/property-iso-control-tests: Likewise.
68941         * modules/unictype/property-join-control-tests: Likewise.
68942         * modules/unictype/property-left-of-pair-tests: Likewise.
68943         * modules/unictype/property-line-separator-tests: Likewise.
68944         * modules/unictype/property-logical-order-exception-tests: Likewise.
68945         * modules/unictype/property-lowercase-tests: Likewise.
68946         * modules/unictype/property-math-tests: Likewise.
68947         * modules/unictype/property-non-break-tests: Likewise.
68948         * modules/unictype/property-not-a-character-tests: Likewise.
68949         * modules/unictype/property-numeric-tests: Likewise.
68950         * modules/unictype/property-other-alphabetic-tests: Likewise.
68951         * modules/unictype/property-other-default-ignorable-code-point-tests:
68952         Likewise.
68953         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
68954         * modules/unictype/property-other-id-continue-tests: Likewise.
68955         * modules/unictype/property-other-id-start-tests: Likewise.
68956         * modules/unictype/property-other-lowercase-tests: Likewise.
68957         * modules/unictype/property-other-math-tests: Likewise.
68958         * modules/unictype/property-other-uppercase-tests: Likewise.
68959         * modules/unictype/property-paired-punctuation-tests: Likewise.
68960         * modules/unictype/property-paragraph-separator-tests: Likewise.
68961         * modules/unictype/property-pattern-syntax-tests: Likewise.
68962         * modules/unictype/property-pattern-white-space-tests: Likewise.
68963         * modules/unictype/property-private-use-tests: Likewise.
68964         * modules/unictype/property-punctuation-tests: Likewise.
68965         * modules/unictype/property-quotation-mark-tests: Likewise.
68966         * modules/unictype/property-radical-tests: Likewise.
68967         * modules/unictype/property-sentence-terminal-tests: Likewise.
68968         * modules/unictype/property-soft-dotted-tests: Likewise.
68969         * modules/unictype/property-space-tests: Likewise.
68970         * modules/unictype/property-terminal-punctuation-tests: Likewise.
68971         * modules/unictype/property-test-tests: Likewise.
68972         * modules/unictype/property-titlecase-tests: Likewise.
68973         * modules/unictype/property-unassigned-code-value-tests: Likewise.
68974         * modules/unictype/property-unified-ideograph-tests: Likewise.
68975         * modules/unictype/property-uppercase-tests: Likewise.
68976         * modules/unictype/property-variation-selector-tests: Likewise.
68977         * modules/unictype/property-white-space-tests: Likewise.
68978         * modules/unictype/property-xid-continue-tests: Likewise.
68979         * modules/unictype/property-xid-start-tests: Likewise.
68980         * modules/unictype/property-zero-width-tests: Likewise.
68981         * modules/unictype/scripts-tests: Likewise.
68982         * modules/unictype/syntax-c-ident-tests: Likewise.
68983         * modules/unictype/syntax-c-whitespace-tests: Likewise.
68984         * modules/unictype/syntax-java-ident-tests: Likewise.
68985         * modules/unictype/syntax-java-whitespace-tests: Likewise.
68986         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
68987         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
68988         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
68989         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
68990         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
68991         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
68992         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
68993         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
68994         * modules/uniname/uniname-tests: Likewise.
68995         * modules/uninorm/canonical-decomposition-tests: Likewise.
68996         * modules/uninorm/compat-decomposition-tests: Likewise.
68997         * modules/uninorm/composition-tests: Likewise.
68998         * modules/uninorm/decomposing-form-tests: Likewise.
68999         * modules/uninorm/decomposition-tests: Likewise.
69000         * modules/uninorm/filter-tests: Likewise.
69001         * modules/uninorm/nfc-tests: Likewise.
69002         * modules/uninorm/nfd-tests: Likewise.
69003         * modules/uninorm/nfkc-tests: Likewise.
69004         * modules/uninorm/nfkd-tests: Likewise.
69005         * modules/uninorm/u8-normcmp-tests: Likewise.
69006         * modules/uninorm/u8-normcoll-tests: Likewise.
69007         * modules/uninorm/u16-normcmp-tests: Likewise.
69008         * modules/uninorm/u16-normcoll-tests: Likewise.
69009         * modules/uninorm/u32-normcmp-tests: Likewise.
69010         * modules/uninorm/u32-normcoll-tests: Likewise.
69011         * modules/unistdio/u8-asnprintf-tests: Likewise.
69012         * modules/unistdio/u8-vasnprintf-tests: Likewise.
69013         * modules/unistdio/u8-vasprintf-tests: Likewise.
69014         * modules/unistdio/u8-vsnprintf-tests: Likewise.
69015         * modules/unistdio/u8-vsprintf-tests: Likewise.
69016         * modules/unistdio/u16-asnprintf-tests: Likewise.
69017         * modules/unistdio/u16-vasnprintf-tests: Likewise.
69018         * modules/unistdio/u16-vasprintf-tests: Likewise.
69019         * modules/unistdio/u16-vsnprintf-tests: Likewise.
69020         * modules/unistdio/u16-vsprintf-tests: Likewise.
69021         * modules/unistdio/u32-asnprintf-tests: Likewise.
69022         * modules/unistdio/u32-vasnprintf-tests: Likewise.
69023         * modules/unistdio/u32-vasprintf-tests: Likewise.
69024         * modules/unistdio/u32-vsnprintf-tests: Likewise.
69025         * modules/unistdio/u32-vsprintf-tests: Likewise.
69026         * modules/unistdio/ulc-asnprintf-tests: Likewise.
69027         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
69028         * modules/unistdio/ulc-vasprintf-tests: Likewise.
69029         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
69030         * modules/unistdio/ulc-vsprintf-tests: Likewise.
69031         * modules/unistr/u8-check-tests: Likewise.
69032         * modules/unistr/u8-chr-tests: Likewise.
69033         * modules/unistr/u8-cmp-tests: Likewise.
69034         * modules/unistr/u8-cmp2-tests: Likewise.
69035         * modules/unistr/u8-cpy-alloc-tests: Likewise.
69036         * modules/unistr/u8-cpy-tests: Likewise.
69037         * modules/unistr/u8-mblen-tests: Likewise.
69038         * modules/unistr/u8-mbsnlen-tests: Likewise.
69039         * modules/unistr/u8-mbtouc-tests: Likewise.
69040         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
69041         * modules/unistr/u8-mbtoucr-tests: Likewise.
69042         * modules/unistr/u8-move-tests: Likewise.
69043         * modules/unistr/u8-next-tests: Likewise.
69044         * modules/unistr/u8-prev-tests: Likewise.
69045         * modules/unistr/u8-set-tests: Likewise.
69046         * modules/unistr/u8-stpcpy-tests: Likewise.
69047         * modules/unistr/u8-stpncpy-tests: Likewise.
69048         * modules/unistr/u8-strcat-tests: Likewise.
69049         * modules/unistr/u8-strcmp-tests: Likewise.
69050         * modules/unistr/u8-strcoll-tests: Likewise.
69051         * modules/unistr/u8-strcpy-tests: Likewise.
69052         * modules/unistr/u8-strdup-tests: Likewise.
69053         * modules/unistr/u8-strlen-tests: Likewise.
69054         * modules/unistr/u8-strmblen-tests: Likewise.
69055         * modules/unistr/u8-strmbtouc-tests: Likewise.
69056         * modules/unistr/u8-strncat-tests: Likewise.
69057         * modules/unistr/u8-strncmp-tests: Likewise.
69058         * modules/unistr/u8-strncpy-tests: Likewise.
69059         * modules/unistr/u8-strnlen-tests: Likewise.
69060         * modules/unistr/u8-to-u16-tests: Likewise.
69061         * modules/unistr/u8-to-u32-tests: Likewise.
69062         * modules/unistr/u8-uctomb-tests: Likewise.
69063         * modules/unistr/u16-check-tests: Likewise.
69064         * modules/unistr/u16-chr-tests: Likewise.
69065         * modules/unistr/u16-cmp-tests: Likewise.
69066         * modules/unistr/u16-cmp2-tests: Likewise.
69067         * modules/unistr/u16-cpy-alloc-tests: Likewise.
69068         * modules/unistr/u16-cpy-tests: Likewise.
69069         * modules/unistr/u16-mblen-tests: Likewise.
69070         * modules/unistr/u16-mbsnlen-tests: Likewise.
69071         * modules/unistr/u16-mbtouc-tests: Likewise.
69072         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
69073         * modules/unistr/u16-mbtoucr-tests: Likewise.
69074         * modules/unistr/u16-move-tests: Likewise.
69075         * modules/unistr/u16-next-tests: Likewise.
69076         * modules/unistr/u16-prev-tests: Likewise.
69077         * modules/unistr/u16-set-tests: Likewise.
69078         * modules/unistr/u16-stpcpy-tests: Likewise.
69079         * modules/unistr/u16-stpncpy-tests: Likewise.
69080         * modules/unistr/u16-strcat-tests: Likewise.
69081         * modules/unistr/u16-strcmp-tests: Likewise.
69082         * modules/unistr/u16-strcoll-tests: Likewise.
69083         * modules/unistr/u16-strcpy-tests: Likewise.
69084         * modules/unistr/u16-strdup-tests: Likewise.
69085         * modules/unistr/u16-strlen-tests: Likewise.
69086         * modules/unistr/u16-strmblen-tests: Likewise.
69087         * modules/unistr/u16-strmbtouc-tests: Likewise.
69088         * modules/unistr/u16-strncat-tests: Likewise.
69089         * modules/unistr/u16-strncmp-tests: Likewise.
69090         * modules/unistr/u16-strncpy-tests: Likewise.
69091         * modules/unistr/u16-strnlen-tests: Likewise.
69092         * modules/unistr/u16-to-u32-tests: Likewise.
69093         * modules/unistr/u16-to-u8-tests: Likewise.
69094         * modules/unistr/u16-uctomb-tests: Likewise.
69095         * modules/unistr/u32-check-tests: Likewise.
69096         * modules/unistr/u32-chr-tests: Likewise.
69097         * modules/unistr/u32-cmp-tests: Likewise.
69098         * modules/unistr/u32-cmp2-tests: Likewise.
69099         * modules/unistr/u32-cpy-alloc-tests: Likewise.
69100         * modules/unistr/u32-cpy-tests: Likewise.
69101         * modules/unistr/u32-mblen-tests: Likewise.
69102         * modules/unistr/u32-mbsnlen-tests: Likewise.
69103         * modules/unistr/u32-mbtouc-tests: Likewise.
69104         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
69105         * modules/unistr/u32-mbtoucr-tests: Likewise.
69106         * modules/unistr/u32-move-tests: Likewise.
69107         * modules/unistr/u32-next-tests: Likewise.
69108         * modules/unistr/u32-prev-tests: Likewise.
69109         * modules/unistr/u32-set-tests: Likewise.
69110         * modules/unistr/u32-stpcpy-tests: Likewise.
69111         * modules/unistr/u32-stpncpy-tests: Likewise.
69112         * modules/unistr/u32-strcat-tests: Likewise.
69113         * modules/unistr/u32-strcmp-tests: Likewise.
69114         * modules/unistr/u32-strcoll-tests: Likewise.
69115         * modules/unistr/u32-strcpy-tests: Likewise.
69116         * modules/unistr/u32-strdup-tests: Likewise.
69117         * modules/unistr/u32-strlen-tests: Likewise.
69118         * modules/unistr/u32-strmblen-tests: Likewise.
69119         * modules/unistr/u32-strmbtouc-tests: Likewise.
69120         * modules/unistr/u32-strncat-tests: Likewise.
69121         * modules/unistr/u32-strncmp-tests: Likewise.
69122         * modules/unistr/u32-strncpy-tests: Likewise.
69123         * modules/unistr/u32-strnlen-tests: Likewise.
69124         * modules/unistr/u32-to-u16-tests: Likewise.
69125         * modules/unistr/u32-to-u8-tests: Likewise.
69126         * modules/unistr/u32-uctomb-tests: Likewise.
69127         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
69128         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
69129         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
69130         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
69131         * modules/uniwidth/u8-strwidth-tests: Likewise.
69132         * modules/uniwidth/u8-width-tests: Likewise.
69133         * modules/uniwidth/u16-strwidth-tests: Likewise.
69134         * modules/uniwidth/u16-width-tests: Likewise.
69135         * modules/uniwidth/u32-strwidth-tests: Likewise.
69136         * modules/uniwidth/u32-width-tests: Likewise.
69137         * modules/uniwidth/width-tests: Likewise.
69139 2010-05-18  Richard Jones  <rjones@redhat.com>
69141         doc: users.txt: list hivex
69142         * users.txt: Add hivex.
69144 2010-05-18  Richard Jones  <rjones@redhat.com>
69146         doc: users.txt: list febootstrap
69147         * users.txt: Add febootstrap.
69149 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
69151         bootstrap: fix an error when gnulib is not used as a git submodule
69152         * build-aux/bootstrap (gnulib_path): If its length is zero then
69153         assign "gnulib" to it.
69154         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
69156 2010-05-16  Bruno Haible  <bruno@clisp.org>
69158         Avoid autoconf warnings about AM_ICONV.
69159         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
69160         2.64.
69162 2010-05-16  Bruno Haible  <bruno@clisp.org>
69164         absolute-header: Make the macro usable in more situations.
69165         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
69166         from gl_ABSOLUTE_HEADER.
69167         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
69169 2010-05-16  James Youngman  <jay@gnu.org>
69171         doc: update users.txt
69172         * users.txt: Add CSSC.
69174 2010-05-16  Jim Meyering  <meyering@redhat.com>
69176         init.sh: fix an error in the previous change; add more comments
69177         * tests/init.sh: Compare exit code in loop against 9, not 2.
69178         Patch by Bruno Haible.
69179         Make the two tests more similar by adding an empty "then" clause.
69180         Add comments.
69182         init.sh: avoid unnecessary shell re-exec
69183         * tests/init.sh: Improve the re-exec-required check to first test the
69184         current shell.  If it passes the test, do not search for a shell that
69185         does pass, and do not re-exec.  This test is particularly contorted to
69186         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
69187         of $(...) evokes a syntax error and causes immediate shell exit with
69188         status 2.  Bruno Haible reported that the re-exec made it impossible
69189         to single-step through any init.sh-using script.
69191 2010-05-16  Bruno Haible  <bruno@clisp.org>
69193         Fix collision between gnulib's and libintl's printf replacements.
69194         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
69195         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
69196         (printf): When using GNU C, map the __printf__ function to rpl_printf
69197         via __asm__. When not using GNU C, define rpl_printf instead of
69198         __printf__.
69199         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
69200         commit.
69201         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
69202         commit.
69203         * m4/asm-underscore.m4: New file.
69204         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
69205         * modules/stdio (Files): Add m4/asm-underscore.m4.
69206         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
69207         Reported by Ben Pfaff.
69209 2010-05-16  Bruno Haible  <bruno@clisp.org>
69211         verify: Avoid skipping the test on openSUSE 11.0.
69212         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
69214 2010-05-13  Bruno Haible  <bruno@clisp.org>
69216         Avoid useless warnings from G++.
69217         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
69218         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
69219         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69221 2010-05-11  Jim Meyering  <meyering@redhat.com>
69223         maint.mk: tweak preceding change
69224         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
69225         regexps tighter by anchoring at EOL, and make the new group "shy"
69226         for slightly decreased overhead.
69228 2010-05-11  Eric Blake  <eblake@redhat.com>
69230         maint.mk: gnulib doesn't guarantee NSIG
69231         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
69233 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
69235         test-pwrite.c: Remove unused variable declaration.
69236         * tests/test-pwrite.c (main): Remove read_buf declaration.
69238         Remove useless test-pwrite.sh file.
69239         * tests/test-pwrite.sh: Delete file.
69240         * modules/pwrite-tests: Remove references.
69241         Reported by Bruno Haible.
69243 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
69245         init.sh: fix a typo
69246         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
69248 2010-05-10  Jim Meyering  <meyering@redhat.com>
69250         maint.mk: avoid using a temporary file in the always-defined-macros check
69251         * top/maint.mk (.re-defmac): Remove rule.
69252         (gl_trap_): Remove definition.
69253         (sc_prohibit_always-defined_macros): Rewrite not to create and
69254         depend on a temporary file.  Instead, depend on GNU grep's ability
69255         to read a list of regular expressions from stdin when given "-f -".
69257 2010-05-09  Bruno Haible  <bruno@clisp.org>
69259         Update to GNU gettext 0.18, part 1.
69260         * m4/gettext.m4: Update to GNU gettext 0.18.
69261         * m4/intl.m4: Likewise.
69262         * m4/po.m4: Likewise.
69263         * modules/gettext (Files): Add m4/fcntl-o.m4.
69264         (configure.ac): Require gettext infrastructure from version 0.18.
69266 2010-05-09  Jim Meyering  <meyering@redhat.com>
69268         init.sh: enable MALLOC_PERTURB_
69269         * tests/init.sh: Enable glibc's malloc-perturbing option.
69271         maint.mk: improve sc_cross_check_PATH_usage_in_tests
69272         With my recent change in init.sh from the two-line form:
69273             -#   : ${srcdir=.}
69274             -#   . "$srcdir/init.sh"; path_prepend_ .
69275             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
69276         I noticed that using the one-line form would cause this test
69277         to fail with a false-positive, or to stop working altogether,
69278         depending on whether help-version changed or all the tests did.
69279         * top/maint.mk (_hv_regex): Remove this definition.
69280         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
69281         (_hv_regex_strong): Use a stronger regex to check for conformance.
69282         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
69283         Give a separate diagnostic for lack of conforming use.
69285         maint.mk: prohibit definition of symbols defined by gnulib
69286         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
69287         definition of symbols defined by gnulib.
69289 2010-05-09  Bruno Haible  <bruno@clisp.org>
69291         acl: Avoid test failure on Cygwin-hosted mingw.
69292         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
69294 2010-05-09  Bruno Haible  <bruno@clisp.org>
69296         error: Use system's fcntl function.
69297         * lib/error.c (fcntl): Undefine.
69299 2010-05-09  Jim Meyering  <meyering@redhat.com>
69301         verify: adjust formatting to be more consistent
69302         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
69303         argument-list '('s, and after one comma.
69305 2010-05-09  Bruno Haible  <bruno@clisp.org>
69307         error: More reliable output on mingw.
69308         * lib/error.c: Include <windows.h>.
69309         (is_open): New function.
69310         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
69311         defined.
69313 2010-05-09  Bruno Haible  <bruno@clisp.org>
69315         vasnprintf: Fix syntax errors in libintl build on mingw.
69316         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
69317         pad_ourselves and prec_ourselves after use.
69319 2010-05-08  Bruno Haible  <bruno@clisp.org>
69321         * lib/config.charset: Update comments for Cygwin 1.7.
69322         * lib/localcharset.c: Likewise.
69324 2010-05-07  Jim Meyering  <meyering@redhat.com>
69326         init.sh: improve comments
69327         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
69328         . "${srcdir=.}/init.sh"; path_prepend_ .
69329         Add a note about path_prepend_ and the alternative of using
69330         TESTS_ENVIRONMENT.
69332 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
69334         exclude: Unescape hashed patterns in wildcard mode.
69335         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
69336         to the hash list.
69337         * tests/test-exclude8.sh: New test case.
69338         * modules/exclude-tests: Add new test.
69340 2010-05-05  Eric Blake  <eblake@redhat.com>
69342         verify: automate tests
69343         * modules/verify-tests: New module.
69344         * tests/test-verify.sh: New file.
69345         * tests/test-verify.c: Guard each negative test with a unique id.
69346         Also avoid warning about unused left hand of comma expressions.
69348 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69350         Further improvements to verify.h, suggested by Eric Blake.
69351         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
69352         the GL_* versions, to avoid collision with OpenGL.
69353         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
69354         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
69355         than testing merely whether it's defined.
69357         Modify verify.h to pacify gcc -Wredundant_decls.
69358         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
69359         These use the prefix "GL_" since they're likely to be useful elsewhere.
69360         We may need to break them out into a different .h file.
69361         (__COUNTER__): Define to 0 if the compiler doesn't support it.
69362         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
69363         of verify_function__.
69365 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
69367         Tests for module pwrite.
69368         * modules/pwrite-tests: New file.
69369         * tests/test-pwrite.sh: New file.
69370         * tests/test-pwrite.c: New file.
69372         New module pwrite.
69373         * lib/unistd.in.h (pwrite): New declaration.
69374         * lib/pwrite.c: New file, from glibc with modifications.
69375         * m4/pwrite.m4: New file.
69376         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
69377         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
69378         REPLACE_PWRITE.
69379         * modules/pwrite: New file.
69380         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
69381         REPLACE_PWRITE.
69382         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
69383         * doc/posix-functions/pwrite.texi: Mention the new module.
69385 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
69387         pread: Update documentation.
69388         * doc/posix-functions/pread.texi: Mention the 'pread' module.
69390 2010-05-04  Eric Blake  <eblake@redhat.com>
69392         docs: update cygwin progress
69393         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
69394         this bug.
69395         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
69396         Added in cygwin 1.7.2.
69397         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
69398         Likewise.
69399         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
69400         Likewise.
69401         * doc/glibc-functions/dup3.texi (dup3): Likewise.
69402         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
69403         * doc/glibc-functions/accept4.texi (accept4): Likewise.
69404         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
69405         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
69406         Mention nproc module.
69407         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
69408         bug in cygwin 1.7.5 addition.
69409         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
69410         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
69411         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
69412         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
69413         1.7.5.
69414         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
69415         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
69416         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
69417         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
69418         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
69419         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
69420         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
69421         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
69422         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
69423         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
69424         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
69425         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
69426         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
69427         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
69428         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
69429         Likewise.
69430         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
69431         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
69432         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
69433         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
69434         Likewise.
69435         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
69436         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
69437         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
69438         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
69439         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
69440         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
69441         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
69442         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
69443         Likewise.
69444         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
69445         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
69446         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
69447         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
69448         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
69449         Likewise.
69450         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
69451         Likewise.
69452         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
69453         Likewise.
69454         * doc/glibc-functions/xdrrec_endofrecord.texi
69455         (xdrrec_endofrecord): Likewise.
69456         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
69457         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
69458         Likewise.
69459         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
69460         Likewise.
69462 2010-05-04  Jim Meyering  <meyering@redhat.com>
69464         gendocs.sh: make its "-s FILE" option more useful
69465         * build-aux/gendocs.sh: When honoring the -s FILE option, update
69466         $PACKAGE to reflect the probably-different basename of "FILE".
69468 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
69470         bootstrap: don't ignore download_po_files failure
69471         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
69472         failure.
69474 2010-05-03  Jim Meyering  <meyering@redhat.com>
69476         maint.mk: allow to pass options to gendocs.sh
69477         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
69478         (gendocs_options_): New overridable variable.
69480         gnu-web-doc-update: don't ignore configure or build failure
69481         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
69483         announce-gen: backslash-escape '@'s in --help output
69484         * build-aux/announce-gen: Fix syntax errors.
69486         maint.mk, announce-gen: allow project-specific announcement mail headers
69487         * top/maint.mk (translation_project_): Define default.
69488         (announcement_Cc_, announcement_mail_headers_): Likewise.
69489         (announcement): Invoke announce-gen with new --mail-headers option.
69490         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
69492         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
69493         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
69494         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
69495         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
69496         line in the "err2" output file when running "make check" in verbose
69497         mode (i.e., with set -x enabled).
69499 2010-05-03  Bruno Haible  <bruno@clisp.org>
69501         wctob: Fix for weird platforms.
69502         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
69503         argument value.
69505 2010-05-03  Jim Meyering  <meyering@redhat.com>
69507         maint.mk: prohibit unwarranted use of <strings.h>
69508         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
69509         strings.h in a file that does not also use strcasecmp, strncasecmp,
69510         ffs or ffsll.
69512         maint.mk: remove obsolete comments
69513         * top/maint.mk: Remove stale, commented-out rules.
69515 2010-05-02  Bruno Haible  <bruno@clisp.org>
69517         wcwidth: Declare also when it's aliased.
69518         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
69519         macro.
69521 2010-05-02  Bruno Haible  <bruno@clisp.org>
69523         Fix regression from 2010-04-25.
69524         * gnulib-tool (func_modules_transitive_closure): Check the status of
69525         all modules, not only of the tests that are of the form foo-tests where
69526         foo is a module.
69528 2010-05-02  Bruno Haible  <bruno@clisp.org>
69530         wctob: Work around nasty Cygwin 1.7.2 bug.
69531         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
69532         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
69534 2010-05-01  Bruno Haible  <bruno@clisp.org>
69536         fpurge: Sharper test.
69537         * tests/test-fpurge.c (main): Add one more ftell check.
69538         * modules/fpurge-tests (Depends-on): Add ftell.
69539         Suggested by Eric Blake.
69541 2010-05-01  Bruno Haible  <bruno@clisp.org>
69543         ftello: Another test.
69544         * tests/test-ftello3.c: New file.
69545         * modules/ftello-tests (Files): Add it.
69546         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
69547         MOSTLYCLEANFILES.
69549         ftell: Another test.
69550         * tests/test-ftell3.c: New file.
69551         * modules/ftell-tests (Files): Add it.
69552         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
69553         MOSTLYCLEANFILES.
69555 2010-05-01  Bruno Haible  <bruno@clisp.org>
69557         ftell, ftello: Work around Solaris bug.
69558         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
69559         * lib/ftello.c: Include stdio-impl.h.
69560         (ftello): On Solaris, when _IOWRT is set, compute the result without
69561         looking at _IOREAD.
69562         * modules/ftello (Files): Add lib/stdio-impl.h.
69563         * doc/posix-functions/ftell.texi: Mention Solaris bug.
69564         * doc/posix-functions/ftello.texi: Likewise.
69565         Reported by Eric Blake.
69567 2010-05-01  Bruno Haible  <bruno@clisp.org>
69569         freading: Adapt to special meaning of _IOREAD flag on Solaris.
69570         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
69571         the _IOWRT flag is also set.
69573 2010-05-01  Bruno Haible  <bruno@clisp.org>
69575         Fix doc about a HP-UX stdio bug.
69576         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
69577         * doc/posix-functions/ftello.texi: Likewise.
69579 2010-05-01  Bruno Haible  <bruno@clisp.org>
69581         lseek test: Fix failure on Solaris.
69582         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
69583         output.
69585 2010-04-30  Jim Meyering  <meyering@redhat.com>
69587         bootstrap: don't ignore failure to generate po*/Makevars
69588         * build-aux/bootstrap (with_gettext): Don't ignore failure
69589         to create po/Makevars or runtime-po/Makevars.
69591 2010-04-29  Eric Blake  <eblake@redhat.com>
69593         headers: relax license to LGPLv2+
69594         * modules/fcntl-h (License): Relax license.
69595         * modules/getopt-posix (License): Likewise.
69596         * modules/locale (License): Likewise.
69597         * modules/math (License): Likewise.
69598         * modules/pty (License): Likewise.
69599         * modules/sched (License): Likewise.
69600         * modules/search (License): Likewise.
69601         * modules/spawn (License): Likewise.
69602         * modules/stdarg (License): Likewise.
69603         * modules/sysexits (License): Likewise.
69605 2010-04-29  Jim Meyering  <meyering@redhat.com>
69607         inttypes: relax license to LGPLv2+
69608         * modules/inttypes (License): Relax license.
69610 2010-04-29  Simon Josefsson  <simon@josefsson.org>
69612         * top/maint.mk (indent): Run twice to produce idempotent results.
69614 2010-04-28  Bruno Haible  <bruno@clisp.org>
69616         getdate: Generate getdate.c in the source directory.
69617         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
69618         MOSTLYCLEANFILES.
69619         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
69621 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
69623         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
69624         is not declared as a const *; avoid warnings in that case.
69626 2010-04-28  Eric Blake  <eblake@redhat.com>
69628         canonicalize-lgpl: avoid compiler warning
69629         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
69630         declaration' / 'extraneous semicolon' warning with some compilers.
69631         Reported by Andreas Gruenbacher.
69633 2010-04-28  Jim Meyering  <meyering@redhat.com>
69635         init.sh: ensure a more reliable exit status when exiting via trap
69636         * tests/init.sh (setup_): Don't rely on $? in signal handler.
69637         Inspired by patches from Dmitry V. Levin.
69638         Also trap on signal 3 (SIGQUIT).
69640 2010-04-27  Bruno Haible  <bruno@clisp.org>
69642         Update doc about utimes().
69643         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
69644         'utimens' module.
69645         Reported by Andreas Gruenbacher <agruen@suse.de>.
69647 2010-04-27  Eric Blake  <eblake@redhat.com>
69649         full-read, full-write: relax license
69650         * modules/full-read (License): Drop to LGPLv2+.
69651         * modules/full-write (License): Likewise.
69652         * modules/safe-read (License): Likewise.
69653         * modules/safe-write (License): Likewise.
69655         pthread: mention library for linking
69656         * modules/pthread (Link): Mention $(LIB_PTHREAD).
69658 2010-04-27  Jim Meyering  <meyering@redhat.com>
69660         maint.mk: fix a bug introduced in last change
69661         * top/maint.mk (gl_assured_headers_): Now that all names are on
69662         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
69663         is not anchored to end of word, it should be adequate.
69665         maint.mk: avoid side-effect in latest syntax-check
69666         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
69667         to run commands via $(shell...), and hence to incur cost only when
69668         the new rule is actually run.
69670         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
69671         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
69672         and use that to create a regexp used to detect all #if HAVE_..._H uses.
69673         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
69674         (gl_assured_headers_, az_, AZ_): Define.
69675         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
69677 2010-04-26  Jim Meyering  <jim@meyering.net>
69678             Bruno Haible  <bruno@clisp.org>
69680         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
69681         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
69682         Prompted by an exchange with Gilles Espinasse.
69684 2010-04-26  Jim Meyering  <meyering@redhat.com>
69686         git-version-gen: aesthetic tweak
69687         * build-aux/git-version-gen: Use "$nl" rather than a literal,
69688         so that the command remains on a single line.
69690 2010-04-26  Eric Blake  <eblake@redhat.com>
69692         git-version-gen: allow use on EBCDIC hosts
69693         * build-aux/git-version-gen (dirty): Use literal rather than tying
69694         ourselves to ascii.
69695         Reported by Steve Goetze.
69697 2010-04-25  Bruno Haible  <bruno@clisp.org>
69699         netdb: Add support for GNULIB_POSIXCHECK.
69700         * lib/netdb.in.h: Include warn-on-use.h.
69701         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
69702         functions are used when GNULIB_POSIXCHECK is defined and the
69703         getaddrinfo module is not in use.
69704         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
69705         freeaddrinfo, gai_strerror, getnameinfo are declared.
69706         * modules/netdb (Depends-on): Add warn-on-use.
69707         (Makefile.am): Include warn-on-use.h in netdb.h.
69709 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
69711         build: avoid "make check" failure without .git/ directory
69712         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
69713         there is no .git/ directory.
69715 2010-04-25  Bruno Haible  <bruno@clisp.org>
69717         ptsname: Fix misuse of ttyname_r.
69718         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
69719         of errno.
69721 2010-04-25  Bruno Haible  <bruno@clisp.org>
69723         ttyname_r: Make it work on Solaris 10.
69724         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
69725         if the system function has the POSIX declaration. Test whether the
69726         function fails if the buffer is less than 128 bytes large.
69727         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
69728         system's ttyname_r function. Provide a reasonably large buffer.
69729         * modules/ttyname_r (Depends-on): Add extensions.
69730         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
69732 2010-04-25  Bruno Haible  <bruno@clisp.org>
69734         Use the 'extensions' module for some more functions on Solaris.
69735         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
69736         module.
69737         * doc/posix-functions/ctime_r.texi: Likewise.
69738         * doc/posix-functions/getgrgid_r.texi: Likewise.
69739         * doc/posix-functions/getgrnam_r.texi: Likewise.
69740         * doc/posix-functions/getpwnam_r.texi: Likewise.
69741         * doc/posix-functions/getpwuid_r.texi: Likewise.
69742         * doc/posix-functions/readdir_r.texi: Likewise.
69743         * doc/posix-functions/sigwait.texi: Likewise.
69744         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
69745         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
69747 2010-04-25  Bruno Haible  <bruno@clisp.org>
69749         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
69750         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
69751         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
69752         * lib/ttyname_r.c: Include <limits.h>.
69753         (ttyname_r): Define using the system's ttyname_r function, if it exists
69754         and not on Solaris.
69755         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
69756         set.
69757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
69758         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
69759         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
69760         Reported by Simon Josefsson.
69762 2010-04-25  Bruno Haible  <bruno@clisp.org>
69764         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
69765         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
69766         * doc/posix-functions/ctime_r.texi: Likewise.
69767         * doc/posix-functions/getgrgid_r.texi: Likewise.
69768         * doc/posix-functions/getgrnam_r.texi: Likewise.
69769         * doc/posix-functions/getlogin_r.texi: Likewise.
69770         * doc/posix-functions/getpwnam_r.texi: Likewise.
69771         * doc/posix-functions/getpwuid_r.texi: Likewise.
69772         * doc/posix-functions/readdir_r.texi: Likewise.
69773         * doc/posix-functions/sigwait.texi: Likewise.
69774         * doc/posix-functions/ttyname_r.texi: Likewise.
69775         Reported by Simon Josefsson.
69777 2010-04-25  Bruno Haible  <bruno@clisp.org>
69779         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
69780         * gnulib-tool (func_usage): Document that --with-*-tests options apply
69781         also to --create-testdir.
69782         (func_acceptable): Don't consider the status of *-tests modules here.
69783         (func_modules_transitive_closure): Consider it here, before including a
69784         test module.
69785         (func_import, func_create_testdir): Set inc_all_direct_tests,
69786         inc_all_indirect_tests.
69787         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
69788         --create-testdir and --create-megatestdir.
69790 2010-04-25  Bruno Haible  <bruno@clisp.org>
69792         gnulib-tool: Add --without-*-tests options.
69793         * gnulib-tool (func_usage): Document the --without-*-tests options.
69794         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
69795         excl_unportable_tests): New variables.
69796         Fail if they are specified with --import or --update.
69797         (func_acceptable): Respect the excl_*_tests variables.
69798         (func_import): Set the excl_*_tests variables to empty.
69800 2010-04-25  Simon Josefsson  <simon@josefsson.org>
69801             Bruno Haible  <bruno@clisp.org>
69803         Work around a MacOS X 10.4 bug with openpty.
69804         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
69805         * tests/test-openpty.c (main): Close the master side explicitly.
69807 2010-04-25  Bruno Haible  <bruno@clisp.org>
69809         strnlen: Fix a C++ test error on MacOS X and Solaris.
69810         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
69811         the function is not declared.
69812         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
69813         Simon Josefsson.
69815 2010-04-24  Bruno Haible  <bruno@clisp.org>
69817         Avoid a gcc warning.
69818         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
69819         of correct type for %08lx directive.
69820         Reported by Eric Blake.
69822 2010-04-24  Bruno Haible  <bruno@clisp.org>
69824         vasnprintf: Correct errno value in case of out-of-memory.
69825         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
69826         or sprintf. Use the errno value from SNPRINTF or sprintf.
69827         Reported by Ian Beckwith <ianb@erislabs.net>.
69829 2010-04-24  Bruno Haible  <bruno@clisp.org>
69831         ansi-c++-opt: Find correct compiler when cross-compiling.
69832         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
69833         AC_CHECK_PROGS.
69834         Reported by Simon Josefsson.
69836 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
69838         vc-list-files: Add support for subversion
69839         * build-aux/vc-list-files: Use "svn list" to generate the list of
69840         files controlled by subversion.
69842 2010-04-23  Jim Meyering  <meyering@redhat.com>
69844         vc-list-files tests: convert to use init.sh
69845         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
69846         path_prepend_.
69847         Use Exit, not exit.
69848         Use skip_ rather than open coding it.
69849         Remove trap set-up and compare definitions.
69850         * tests/test-vc-list-files-git.sh: Likewise.
69851         * modules/vc-list-files-tests (Files): Add tests/init.sh.
69853 2010-04-22  Simon Josefsson  <simon@josefsson.org>
69855         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
69856         backup files.
69858 2010-04-21  Simon Josefsson  <simon@josefsson.org>
69860         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
69862 2010-04-20  Eric Blake  <eblake@redhat.com>
69864         tests: be robust to ignored SIGPIPE
69865         * tests/test-select-in.sh: Consume all output.
69866         * tests/test-lseek.sh: Check correct exit status, while avoiding
69867         EPIPE.
69869 2010-04-20  Simon Josefsson  <simon@josefsson.org>
69870             Bruno Haible  <bruno@clisp.org>
69872         visibility: Don't use -fvisibility if it leads to a warning.
69873         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
69874         yes, don't pretend that visibility works if it leads to a warning.
69875         Reported by Mike Gran <spk121@yahoo.com>.
69877 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
69879         * build-aux/bootstrap: Use "git -h" for testing for supported options
69880         instead of "git --help".  The short-form option only shows a summary,
69881         and doesn't layout the full man page.  Grep for the full option name
69882         in the summary, too.
69884 2010-04-19  Bruno Haible  <bruno@clisp.org>
69886         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
69887         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
69888         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
69889         mention of RELOCATABLE_STRIP.
69890         Reported by Sylvain Beucler <beuc@beuc.net>.
69892 2010-04-19  Bruno Haible  <bruno@clisp.org>
69894         * lib/diffseq.h: Fix typo in comment.
69895         Reported by Eric Blake.
69897 2010-04-19  Bruno Haible  <bruno@clisp.org>
69899         ioctl: Move autoconf macro to a .m4 file.
69900         * m4/ioctl.m4: New file, extracted from modules/ioctl.
69901         * modules/ioctl (Files): Add it.
69902         (configure.ac): Simply invoke gl_FUNC_IOCTL.
69903         Reported by Ian Beckwith <ianb@erislabs.net>.
69905 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
69906             Bruno Haible  <bruno@clisp.org>
69908         diffseq: Accommodate use-case with abstract arrays.
69909         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
69910         is not defined.
69911         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
69912         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
69914 2010-04-18  Bruno Haible  <bruno@clisp.org>
69916         * doc/posix-headers/stdbool.texi: More precise wording.
69918 2010-04-17  Jim Meyering  <meyering@redhat.com>
69920         maint.mk: use gnu-style indentation in an embedded perl script
69921         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
69922         Rename variable: s/two/last_two_bytes/
69924 2010-04-16  Eric Blake  <eblake@redhat.com>
69926         test-stdbool: skip test that fails with Solaris CC
69927         * tests/test-stdbool.c (f): Skip test that causes compilation
69928         error under buggy C++ compiler.
69929         * lib/stdbool.in.h: Document the limitation.
69930         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
69932         setenv: allow compilation with C++
69933         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
69934         register keyword.
69936         stdint: allow test to pass with C++
69937         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
69939         getopt: allow compilation with C++
69940         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
69941         struct.
69942         * lib/getopt.c (_getopt_internal_r): Use correct type.
69943         Reported by Dagobert Michelson, via Joel E. Denny.
69945 2010-04-16  Bruno Haible  <bruno@clisp.org>
69947         Override netdb.h always.
69948         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
69949         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
69950         Reported by Ludovic Courtès <ludo@gnu.org>.
69952 2010-04-15  Bruno Haible  <bruno@clisp.org>
69954         openpty: Fix mistake from 2010-03-21.
69955         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
69956         Reported by Simon Josefsson.
69958 2010-04-15  Eric Blake  <eblake@redhat.com>
69960         test-forkpty: fix expected signature
69961         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
69962         Reported by Simon Josefsson.
69964 2010-04-15  Jim Meyering  <meyering@redhat.com>
69966         maint.mk: texinfo_suffix_re_: correct the default regexp
69967         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
69969         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
69970         make it configurable via texinfo_suffix_re_.
69972 2010-04-14  Eric Blake  <eblake@redhat.com>
69974         strtok_r: relax license to LGPLv2+
69975         * modules/strtok_r (License): Relax license.
69976         Reported by Matthias Bolte.
69978 2010-04-14  Simon Josefsson  <simon@josefsson.org>
69980         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
69981         version 1.4.4 by default instead of requiring the libgcrypt
69982         version used during build.  This makes it possible to use the
69983         application with older but still binary compatible libgcrypt
69984         versions.
69986 2010-04-13  Eric Blake  <eblake@redhat.com>
69988         getopt-gnu: match recent glibc fixes and posix ruling
69989         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
69990         '+' handling, when requesting extensions.
69991         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
69992         'W;' handling.
69993         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
69994         * doc/posix-functions/getopt.texi (getopt): Document this.
69995         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69996         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69997         Likewise.
69999         getopt: merge bug fixes from glibc
70000         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
70001         diagnostics.  Honor '+:' correctly.  Reject ';'.
70003         getopt-posix: detect MacOS bug
70004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
70005         optind when missing a required argument.
70006         * doc/posix-functions/getopt.texi (getopt): Document the bug.
70007         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
70008         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
70009         Likewise.
70011         getopt-posix: avoid spurious failure on Solaris
70012         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
70013         an indicator that setting optind=1 is sufficient for reset.
70015         getopt-posix: avoid spurious failure on FreeBSD
70016         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
70017         in POSIX mode, since the m4 test uses it.
70019         gnulib-tool: silence warning on BSD sh
70020         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
70022 2010-04-13  Jim Meyering  <meyering@redhat.com>
70024         doc: users.txt: GNU patch now uses gnulib
70025         * users.txt: Add patch.
70027 2010-04-12  Jim Meyering  <meyering@redhat.com>
70029         maint.mk: generate more concise timing data for syntax-check rules
70030         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
70031         " done" from each line that reports a syntax-check test duration.
70033 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
70035         git-version-gen: use "git update-index..." rather than "git status"
70036         * build-aux/git-version-gen: Use git update-index --refresh, not
70037         "git status".  With some versions of git, "git status" would fail
70038         to update the index and result in an unwarranted "-dirty" suffix.
70040 2010-04-11  Jim Meyering  <meyering@redhat.com>
70042         openat: correct formatting (no semantic change)
70043         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
70044         Suggested by Bruno Haible.
70046 2010-04-11  Bruno Haible  <bruno@clisp.org>
70048         Stricter declaration checking in testdirs.
70049         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70050         If for_tests is true, augment AM_CPPFLAGS to define
70051         GNULIB_STRICT_CHECKING.
70052         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
70053         GNULIB_STRICT_CHECKING is defined, verify that the function is
70054         declared.
70056 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
70057             Bruno Haible  <bruno@clisp.org>
70059         libunistring: Improve configure output.
70060         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
70061         Don't say "consider installing GNU libunistring" when checking again
70062         with libiconv.
70064 2010-04-11  Bruno Haible  <bruno@clisp.org>
70066         libunistring: Correct value of $LTLIBUNISTRING.
70067         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
70068         correct the value of $LTLIBUNISTRING.
70070 2010-04-11  Bruno Haible  <bruno@clisp.org>
70072         havelib: Add static libraries to LIBS in the right order.
70073         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
70074         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
70076 2010-04-11  Bruno Haible  <bruno@clisp.org>
70078         libunistring: Detect libunistring also when it depends on libiconv.
70079         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
70080         the second AC_LIB_HAVE_LINKFLAGS invocation.
70082 2010-04-11  James Youngman  <jay@gnu.org>
70084         close-stream: declare local scalars to be "const"
70085         * lib/close-stream.c (close_stream): Make boolean variables const
70086         to document the fact that we set but do not change them.
70088 2010-04-11  Bruno Haible  <bruno@clisp.org>
70090         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
70092 2010-04-11  Jim Meyering  <meyering@redhat.com>
70094         maint.mk: don't include dist-check.mk
70095         * top/maint.mk: Remove bogus include directive.
70097         maint.mk: improve empty-line-at-EOF check
70098         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
70099         solution, rather than tail+Perl-based one.  The latter would read
70100         a few kilobytes from the end of each file, and did not handle empty
70101         files properly.
70103         maint.mk: print the elapsed time for each syntax-check rule
70104         * top/maint.mk (sc_m_rules_): Save start time in a file.
70105         (sc_z_rules_): New rules: remove temp file and print elapsed time.
70106         (local-check): Interpose the .z rules
70108 2010-04-11  Jim Meyering  <meyering@redhat.com>
70110         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
70111         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
70112         empty file with one that ends in an empty line.
70114 2010-04-10  Bruno Haible  <bruno@clisp.org>
70116         mkdir: Make it work on mingw64.
70117         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
70118         * lib/mkdir.c: Update comment.
70119         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
70121 2010-04-10  Bruno Haible  <bruno@clisp.org>
70123         Don't override improved macro from newer autoconf.
70124         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
70125         autoconf >= 2.62.
70126         Reported by Joel E. Denny <jdenny@clemson.edu>.
70128 2010-04-10  Jim Meyering  <meyering@redhat.com>
70130         maint.mk: new syntax-check rule: prohibit empty lines at end of file
70131         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
70133         maint.mk: correct a diagnostic
70134         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
70135         in diagnostic; now use $prohibit.
70137 2010-04-10  Bruno Haible  <address@hidden>
70139         fchownat: Fix a C++ test error on Solaris 8.
70140         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
70141         the function does not exist.
70143 2010-04-10  Bruno Haible  <bruno@clisp.org>
70145         vasnprintf: Add more tests.
70146         * tests/test-vasnprintf-posix.c: Include <errno.h>.
70147         (test_function): Test converting an invalid wide string.
70149         vasnprintf: Correct handling of unconvertible wide string arguments.
70150         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
70151         VASNPRINTF.
70152         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
70153         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
70154         smaller than the expected maximum need for the directive. Set errno to
70155         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
70156         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
70157         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
70158         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
70159         * modules/vasnprintf (Files): Add m4/printf.m4.
70160         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
70162 2010-04-10  Bruno Haible  <bruno@clisp.org>
70164         vasnprintf: Fix crash in %ls directive.
70165         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
70166         string is passed as argument to %ls, with no precision and no width.
70167         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
70169 2010-04-10  Bruno Haible  <bruno@clisp.org>
70171         vasnprintf: Fix multiple test failures on mingw.
70172         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
70173         _snprintf, or snwprintf, not _snwprintf.
70175 2010-04-10  Bruno Haible  <bruno@clisp.org>
70177         write: Fix a C++ test error on mingw.
70178         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
70180 2010-04-10  Bruno Haible  <bruno@clisp.org>
70182         vasnprintf test: Reduce code duplication.
70183         * tests/test-vasnprintf.c (test_function): New function, extracted from
70184         test_vasnprintf.
70185         (test_vasnprintf, test_asnprintf): Invoke it.
70187 2010-04-10  Bruno Haible  <bruno@clisp.org>
70189         strnlen: Fix warning in C++ mode on MacOS X.
70190         * lib/string.in.h (strnlen): Use the modern idiom.
70191         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
70192         defining strnlen as a macro already in <config.h>.
70193         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70194         REPLACE_STRNLEN.
70195         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
70196         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
70198 2010-04-08  James Youngman  <jay@gnu.org>
70200         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
70201         the example.
70203 2010-04-09  Jim Meyering  <meyering@redhat.com>
70205         maint.mk: print better diagnostic when there is no $(_hv_file)
70206         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
70207         announce that when $(_hv_file) (aka help-version) does not exist.
70209         init.sh: run tr in the "C" locale to avoid multibyte interpretation
70210         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
70211         not try to interpret its random input bytes.  Jarno Rajahalme reported
70212         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
70213         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
70214         (mktempd_): Likewise, just in case.
70216         ftruncate: add two years to projected module removal date: 2012
70217         * m4/ftruncate.m4: Adjust comments.
70219         ftruncate: mark module as obsolete; even MinGW provides it, now
70220         * modules/ftruncate (Status): Obsolete.
70221         (Notice): Say that.
70222         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
70223         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
70225 2010-04-08  Bruno Haible  <bruno@clisp.org>
70227         Fix side effects from tests-related modules.
70228         * modules/dprintf-posix (Comment): New section.
70229         * modules/fprintf-posix (Comment): Likewise.
70230         * modules/obstack-printf-posix (Comment): Likewise.
70231         * modules/printf-posix (Comment): Likewise.
70232         * modules/snprintf-posix (Comment): Likewise.
70233         * modules/sprintf-posix (Comment): Likewise.
70234         * modules/vasnprintf-posix (Comment): Likewise.
70235         * modules/vasprintf-posix (Comment): Likewise.
70236         * modules/vdprintf-posix (Comment): Likewise.
70237         * modules/vfprintf-posix (Comment): Likewise.
70238         * modules/vprintf-posix (Comment): Likewise.
70239         * modules/vsnprintf-posix (Comment): Likewise.
70240         * modules/vsprintf-posix (Comment): Likewise.
70241         * modules/xprintf-posix (Comment): Likewise.
70242         * modules/xvasprintf-posix (Comment): Likewise.
70243         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
70244         * modules/floorf-tests (Depends-on): Likewise.
70245         * modules/round-tests (Depends-on): Likewise.
70246         * modules/roundf-tests (Depends-on): Likewise.
70247         * modules/trunc-tests (Depends-on): Likewise.
70248         * modules/truncf-tests (Depends-on): Likewise.
70249         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
70250         'fprintf-posix' module is not present.
70251         * tests/test-floorf2.c (check): Likewise.
70252         * tests/test-trunc2.c (check): Likewise.
70253         * tests/test-truncf2.c (check): Likewise.
70254         * tests/test-round2.c (equal): Likewise.
70255         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
70257 2010-04-07  Karl Berry  <karl@gnu.org>
70259         * config/srclist.txt,
70260         * config/srclistvars.sh,
70261         * config/srclist-update: doc fixes.
70263 2010-04-07  Jim Meyering  <meyering@redhat.com>
70265         maint.mk: add a PATH crosschecking syntax-check rule
70266         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
70267         Useful if you use a test like the one in help-version (coreutils,
70268         diffutils, grep, gzip) that ensures $(VERSION) matches what is
70269         printed by prog --version.
70271 2010-04-06  Bruno Haible  <bruno@clisp.org>
70273         Fix link error on mingw.
70274         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
70275         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
70277 2010-04-06  Bruno Haible  <bruno@clisp.org>
70279         Assume rmdir exists.
70280         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
70282 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
70284         doc: update users.txt
70285         * users.txt: Add gcal.
70287 2010-04-06  Jim Meyering  <meyering@redhat.com>
70289         init.sh: simply unset TMPDIR rather than risking env -i
70290         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
70291         although it probably works fine on all Unix-based systems, some
70292         systems (Cygwin?) cannot tolerate a totally cleared environment.
70293         Suggestion from Eric Blake.
70295 2010-04-06  Jim Meyering  <meyering@redhat.com>
70297         init.sh: portability fix: use env's POSIX-specified -i option not -u
70298         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
70299         than unportable env -u.  Solaris 5.11's env lacks support for -u.
70301 2010-04-05  Bruno Haible  <bruno@clisp.org>
70303         btowc: Work around Cygwin 1.7.2 bug.
70304         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
70305         does not map NUL to 0.
70306         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
70308 2010-04-05  Bruno Haible  <bruno@clisp.org>
70310         Make the multithread modules work on Cygwin 1.7.2.
70311         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
70312         imported symbols can be declared weak, so that it returns "no" on
70313         Cygwin 1.7.2.
70315 2010-04-05  Bruno Haible  <bruno@clisp.org>
70317         Use the module 'strncat'.
70318         * modules/unistr/u8-strncat (Depends-on): Add strncat.
70320         Tests for module 'strncat'.
70321         * modules/strncat-tests: New file.
70322         * tests/test-strncat.c: New file.
70324         New module 'strncat'.
70325         * lib/string.in.h (strncat): New declaration.
70326         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
70327         * m4/strncat.m4: New file, based on m4/memchr.m4.
70328         * modules/strncat: New file.
70329         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
70330         is declared.
70331         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
70332         REPLACE_STRNCAT.
70333         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
70334         REPLACE_STRNCAT.
70335         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
70336         module.
70337         * tests/test-string-c++.cc: Check signature of strncat.
70339 2010-04-05  Jim Meyering  <meyering@redhat.com>
70341         xstrtoumax-tests: convert to use init.sh
70342         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
70343         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70344         Use Exit, not exit.
70345         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70347         xstrtoimax-tests: convert to use init.sh
70348         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
70349         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70350         Use Exit, not exit.
70351         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70353 2010-04-05  Bruno Haible  <bruno@clisp.org>
70355         sys_socket: Avoid #define replacements in C++ mode.
70356         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
70357         warning to the function if possible, rather than #defining the symbol
70358         to a dysfunctional alias.
70360 2010-04-05  Bruno Haible  <bruno@clisp.org>
70362         fseeko: Fix C++ test error on mingw.
70363         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
70364         gl_FUNC_FSEEKO.
70365         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
70366         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
70367         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
70368         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
70370 2010-04-05  Bruno Haible  <bruno@clisp.org>
70372         duplocale: Improve test output.
70373         * tests/test-duplocale.c (main): Print reason for skipped test.
70375 2010-04-05  Bruno Haible  <bruno@clisp.org>
70377         Assume rmdir exists.
70378         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
70379         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
70381 2010-04-05  Bruno Haible  <bruno@clisp.org>
70383         Fix link error on Solaris 8 with cc.
70384         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
70386 2010-04-05  Bruno Haible  <bruno@clisp.org>
70388         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
70389         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
70391 2010-04-05  Bruno Haible  <bruno@clisp.org>
70393         vasprintf: Update documentation.
70394         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
70396 2010-04-05  Bruno Haible  <bruno@clisp.org>
70398         ptsname: Improve test.
70399         * tests/test-ptsname.c (main): Also try the various master names of BSD
70400         systems.
70402 2010-04-05  Bruno Haible  <bruno@clisp.org>
70404         memchr: Avoid a possible C++ test error.
70405         * lib/string.in.h (memchr): Provide declaration if function is missing.
70406         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
70407         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
70408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
70409         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
70411 2010-04-05  Bruno Haible  <bruno@clisp.org>
70413         strtok_r: Improve idiom.
70414         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
70415         AC_LIBOBJ is used.
70417 2010-04-05  Bruno Haible  <bruno@clisp.org>
70419         strdup: Improve idiom.
70420         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
70421         AC_LIBOBJ is used.
70422         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
70423         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
70424         when AC_LIBOBJ is used.
70426 2010-04-05  Bruno Haible  <bruno@clisp.org>
70428         mbsinit, mbrtowc, wcrtomb: Improve idioms.
70429         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
70430         don't set REPLACE_MBSINIT to 1.
70431         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
70432         don't set REPLACE_MBRTOWC to 1.
70433         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
70434         exist, don't set REPLACE_MBSRTOWCS to 1.
70435         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
70436         exist, don't set REPLACE_MBSNRTOWCS to 1.
70437         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
70438         don't set REPLACE_WCRTOMB to 1.
70439         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
70440         exist, don't set REPLACE_WCSRTOMBS to 1.
70441         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
70442         exist, don't set REPLACE_WCSNRTOMBS to 1.
70444 2010-04-05  Bruno Haible  <bruno@clisp.org>
70446         ldexpl: Improve idiom.
70447         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
70448         make sure to set HAVE_DECL_LDEXPL to 0.
70450 2010-04-05  Jim Meyering  <meyering@redhat.com>
70452         xstrtol-tests: convert to use init.sh
70453         * modules/xstrtol-tests (Files): Add tests/init.sh.
70454         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70455         Use Exit, not exit.
70456         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70458         atexit-tests: convert to use init.sh
70459         * modules/atexit-tests (Files): Add tests/init.sh.
70460         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
70461         Use Exit, not exit.
70462         Remove uses of $EXEEXT and "./" to run a program in the current dir.
70464         init.sh: fix typo
70465         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
70467         init.sh: make it easier for a test script to write to the tty, ...
70468         when using automake's parallel-tests mode.
70469         * tests/init.sh (stderr_fileno_): Define overridable variable.
70470         (warn_): New function, to use it.
70471         (fail_, skip_, framework_failure_): Use warn_.
70473 2010-04-04  Bruno Haible  <bruno@clisp.org>
70475         btowc: Avoid warning.
70476         * lib/btowc.c: Include <stdlib.h>.
70477         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
70479 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
70480             Bruno Haible  <bruno@clisp.org>
70482         wchar: Port to NetBSD 1.5.
70483         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
70484         * lib/wctype.in.h (WEOF): Likewise.
70486 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
70487             Bruno Haible  <bruno@clisp.org>
70489         Port extended stdio to NetBSD 1.5.
70490         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
70491         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
70492         older.
70494 2010-04-04  Bruno Haible  <bruno@clisp.org>
70496         string: Remove unused substitution.
70497         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70498         HAVE_DECL_STRERROR.
70499         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
70501 2010-04-04  Bruno Haible  <bruno@clisp.org>
70503         strtod: Avoid a possible C++ test error.
70504         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
70505         set REPLACE_STRTOD.
70507 2010-04-04  Bruno Haible  <bruno@clisp.org>
70509         strerror: Update documentation.
70510         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
70512 2010-04-04  Bruno Haible  <bruno@clisp.org>
70514         stdio: Fix some C++ test errors on Solaris 8 with GCC.
70515         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
70516         _GL_CXXALIAS_SYS_CAST.
70518 2010-04-04  Bruno Haible  <bruno@clisp.org>
70520         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
70521         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
70522         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
70523         REPLACE_FREXPL to 1.
70524         * doc/posix-functions/frexpl.texi: Update documentation.
70526 2010-04-04  Bruno Haible  <bruno@clisp.org>
70528         math: Fix some C++ test errors on Solaris 8 and Cygwin.
70529         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
70531 2010-04-04  Bruno Haible  <bruno@clisp.org>
70533         Implement nanosleep for native Windows.
70534         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
70536 2010-04-04  Bruno Haible  <bruno@clisp.org>
70538         math: Fix some C++ test errors on Solaris 8.
70539         * lib/math.in.h (truncf, trunc): Use simpler idiom.
70541 2010-04-04  Bruno Haible  <bruno@clisp.org>
70543         math: Fix some C++ test errors on Cygwin.
70544         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
70545         truncl): Provide declaration if the system does not have it.
70546         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
70547         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
70548         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
70549         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
70550         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
70551         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
70552         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
70553         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
70554         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
70555         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
70556         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
70557         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
70558         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
70559         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
70560         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
70561         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
70562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
70563         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
70564         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
70565         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
70566         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
70567         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
70569 2010-04-04  Bruno Haible  <bruno@clisp.org>
70571         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
70572         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
70573         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
70574         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
70575         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
70576         * m4/isinf.m4 (gl_ISINF): Likewise.
70577         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
70579 2010-04-04  Bruno Haible  <bruno@clisp.org>
70581         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
70582         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
70584 2010-04-04  Bruno Haible  <bruno@clisp.org>
70586         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
70587         * modules/tmpfile (configure.ac): Update.
70589         tmpfile: Fix C++ test error on mingw.
70590         * lib/stdio.in.h (tmpfile): New declaration.
70591         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
70592         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
70593         * modules/tmpfile (Depends-on): Add stdio.
70594         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70595         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
70596         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
70597         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
70598         REPLACE_TMPFILE.
70599         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
70601 2010-04-04  Bruno Haible  <bruno@clisp.org>
70603         ioctl: Fix C++ test error on mingw.
70604         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
70605         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
70606         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
70608 2010-04-03  Bruno Haible  <bruno@clisp.org>
70610         wcwidth: Fix C++ test error on mingw.
70611         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
70612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
70613         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
70615 2010-04-03  Bruno Haible  <bruno@clisp.org>
70617         nanosleep: Fix C++ test error on mingw.
70618         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
70619         * lib/time.in.h (nanosleep): Use modern idiom.
70620         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
70621         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
70622         REPLACE_NANOSLEEP to 1.
70623         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
70624         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
70626 2010-04-03  Bruno Haible  <bruno@clisp.org>
70628         strptime: Fix C++ test error on mingw.
70629         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
70630         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
70631         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
70632         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
70633         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
70634         not REPLACE_STRPTIME.
70635         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
70636         REPLACE_STRPTIME.
70638 2010-04-03  Bruno Haible  <bruno@clisp.org>
70640         timegm: Fix C++ test error on mingw.
70641         * lib/time.in.h (timegm): Use modern idiom.
70642         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
70643         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
70644         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
70645         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
70647 2010-04-03  Bruno Haible  <bruno@clisp.org>
70649         timegm: Assume declaration if function exists.
70650         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
70651         if it exists. Don't clobber ac_cv_func_timegm.
70653 2010-04-03  Bruno Haible  <bruno@clisp.org>
70655         time_r: Fix C++ test error on mingw.
70656         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
70657         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
70658         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
70659         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
70660         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
70662 2010-04-03  Bruno Haible  <bruno@clisp.org>
70664         time_r: Minor updates.
70665         * modules/time_r (Description): Mention the provided functions.
70666         * lib/time_r.c: Don't include <string.h>.
70667         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
70668         * doc/posix-functions/localtime_r.texi: Likewise.
70670 2010-04-03  Bruno Haible  <bruno@clisp.org>
70672         time: Fix regression introduced on 2010-03-08.
70673         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
70674         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
70676 2010-04-03  Jim Meyering  <meyering@redhat.com>
70678         maint.mk: don't silently disable project-specific syntax-check rules
70679         * top/maint.mk (_prohibit_regexp): Define, to help people realize
70680         that they need to convert their project-specific syntax-check rules
70681         to use the new _sc_search_regexp.
70683 2010-04-03  Bruno Haible  <bruno@clisp.org>
70685         fchdir: Fix regression introduced on 2010-03-08.
70686         * lib/unistd.in.h (fchdir): Fix declaration.
70687         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
70688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
70689         REPLACE_FCHDIR.
70690         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
70691         REPLACE_FCHDIR.
70693 2010-04-03  Bruno Haible  <bruno@clisp.org>
70695         getpagesize: Fix C++ test error on mingw.
70696         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
70697         system does not declare the function.
70698         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
70699         declared.
70700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70701         HAVE_DECL_GETPAGESIZE.
70702         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
70704 2010-04-03  Bruno Haible  <bruno@clisp.org>
70706         stdio: Make C++ tests work on mingw.
70707         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
70708         does not declare the function.
70710 2010-04-03  Bruno Haible  <bruno@clisp.org>
70712         ftello: Fix C++ test error on mingw.
70713         * lib/stdio.in.h (ftello): Use modern idiom.
70714         * lib/ftello.c (ftello): Renamed from rpl_ftello.
70715         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
70716         is missing and that it needs to be replaced.
70717         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
70718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
70719         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
70721 2010-04-03  Bruno Haible  <bruno@clisp.org>
70723         fseeko: Fix C++ test error on mingw.
70724         * lib/stdio.in.h (fseeko): Use modern idiom.
70725         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
70726         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
70727         is missing and that it needs to be replaced.
70728         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
70729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
70730         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
70732 2010-04-03  Bruno Haible  <bruno@clisp.org>
70734         mkstemp: Fix C++ test error on mingw.
70735         * lib/stdlib.in.h (mkstemp): Use modern idiom.
70736         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
70737         function is missing and that it needs to be replaced.
70738         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
70739         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
70741 2010-04-03  Bruno Haible  <bruno@clisp.org>
70743         stpncpy: Fix C++ test error on mingw.
70744         * lib/string.in.h (stpncpy): Use modern idiom.
70745         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
70746         function is missing and that it needs to be replaced.
70747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70748         REPLACE_STPNCPY.
70749         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
70751 2010-04-03  Bruno Haible  <bruno@clisp.org>
70753         sys_stat: Fix C++ test error on mingw.
70754         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
70755         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
70757 2010-04-03  Bruno Haible  <bruno@clisp.org>
70759         pty: Update doc.
70760         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
70762 2010-04-03  Bruno Haible  <bruno@clisp.org>
70764         unistd: Fix C++ test error on mingw.
70765         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
70767 2010-04-03  Bruno Haible  <bruno@clisp.org>
70769         Update doc regarding mingw.
70770         * doc/glibc-functions/openpty.texi: Update regarding mingw.
70771         * doc/glibc-functions/login_tty.texi: Likewise.
70772         * doc/glibc-functions/forkpty.texi: Likewise.
70774 2010-04-03  Bruno Haible  <bruno@clisp.org>
70776         stdlib: Avoid compilation failure of c-strtold on mingw.
70777         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
70779 2010-04-03  Bruno Haible  <bruno@clisp.org>
70781         locale: Make C++ tests work on Cygwin and mingw.
70782         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
70783         cannot provide the function.
70784         Reported by Simon Josefsson.
70786 2010-04-03  Bruno Haible  <bruno@clisp.org>
70788         localename: Port to MacOS X 10.6.
70789         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
70790         memory layout of the locales in MacOS X 10.6 as well.
70791         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
70793 2010-04-02  Bruno Haible  <bruno@clisp.org>
70795         gnulib-tool: Ensure that long-running tests are executed last.
70796         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
70797         running tests after the one for the other tests.
70799 2010-04-02  Bruno Haible  <bruno@clisp.org>
70801         gnulib-tool: Ensure the tests in the main directory are executed first.
70802         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
70803         start with the current directory.
70805 2010-04-02  Bruno Haible  <bruno@clisp.org>
70807         Tests for module 'havelib', moved here from GNU gettext.
70808         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
70809         modifications.
70810         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
70811         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
70812         with modifications.
70813         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
70814         modifications.
70815         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
70816         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
70817         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
70818         with modifications.
70819         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
70820         with modifications.
70821         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
70822         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
70823         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
70824         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
70825         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
70826         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
70827         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
70828         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
70829         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
70830         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
70831         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
70832         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
70833         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
70834         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
70835         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
70836         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
70837         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
70838         with modifications.
70839         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
70840         with modifications.
70841         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
70842         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
70843         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
70844         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
70845         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
70846         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
70847         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
70848         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
70849         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
70850         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
70851         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
70852         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
70853         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
70854         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
70855         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
70856         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
70857         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
70858         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
70859         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
70860         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
70861         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
70862         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
70863         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
70864         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
70865         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
70866         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
70867         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
70868         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
70869         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
70870         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
70871         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
70872         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
70873         * tests/havelib/rpathx/rpathx.c: New file, from
70874         gettext/autoconf-lib-link.
70875         * tests/havelib/rpathx/Makefile.am: New file, from
70876         gettext/autoconf-lib-link.
70877         * tests/havelib/rpathx/configure.ac: New file, from
70878         gettext/autoconf-lib-link with modifications.
70879         * tests/havelib/rpathy/rpathy.c: New file, from
70880         gettext/autoconf-lib-link.
70881         * tests/havelib/rpathy/Makefile.am: New file, from
70882         gettext/autoconf-lib-link.
70883         * tests/havelib/rpathy/configure.ac: New file, from
70884         gettext/autoconf-lib-link with modifications.
70885         * tests/havelib/rpathz/rpathz.c: New file, from
70886         gettext/autoconf-lib-link.
70887         * tests/havelib/rpathz/Makefile.am: New file, from
70888         gettext/autoconf-lib-link.
70889         * tests/havelib/rpathz/configure.ac: New file, from
70890         gettext/autoconf-lib-link with modifications.
70891         * tests/havelib/rpathlx/usex.c: New file, from
70892         gettext/autoconf-lib-link.
70893         * tests/havelib/rpathlx/Makefile.am: New file, from
70894         gettext/autoconf-lib-link.
70895         * tests/havelib/rpathlx/configure.ac: New file, from
70896         gettext/autoconf-lib-link with modifications.
70897         * tests/havelib/rpathly/usey.c: New file, from
70898         gettext/autoconf-lib-link.
70899         * tests/havelib/rpathly/Makefile.am: New file, from
70900         gettext/autoconf-lib-link.
70901         * tests/havelib/rpathly/configure.ac: New file, from
70902         gettext/autoconf-lib-link with modifications.
70903         * tests/havelib/rpathlz/usez.c: New file, from
70904         gettext/autoconf-lib-link.
70905         * tests/havelib/rpathlz/Makefile.am: New file, from
70906         gettext/autoconf-lib-link.
70907         * tests/havelib/rpathlz/configure.ac: New file, from
70908         gettext/autoconf-lib-link with modifications.
70909         * tests/havelib/rpathlyx/usey.c: New file, from
70910         gettext/autoconf-lib-link.
70911         * tests/havelib/rpathlyx/Makefile.am: New file, from
70912         gettext/autoconf-lib-link.
70913         * tests/havelib/rpathlyx/configure.ac: New file, from
70914         gettext/autoconf-lib-link with modifications.
70915         * tests/havelib/rpathlzyx/usez.c: New file, from
70916         gettext/autoconf-lib-link.
70917         * tests/havelib/rpathlzyx/Makefile.am: New file, from
70918         gettext/autoconf-lib-link.
70919         * tests/havelib/rpathlzyx/configure.ac: New file, from
70920         gettext/autoconf-lib-link with modifications.
70921         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
70922         with modifications.
70924 2010-04-02  Bruno Haible  <bruno@clisp.org>
70926         gnulib-tool: Create distributed built sources also for the tests.
70927         * gnulib-tool (func_create_testdir): Also generate distributed built
70928         sources in the tests directory.
70930 2010-04-02  Bruno Haible  <bruno@clisp.org>
70932         gnulib-tool: Obey user's environment variables.
70933         * gnulib-tool (func_create_testdir): When creating built sources,
70934         respect the environment variables for autoconf, automake, etc. given by
70935         the user.
70937 2010-04-02  Bruno Haible  <bruno@clisp.org>
70939         gnulib-tool: Provide the value of --m4-base to modules.
70940         * gnulib-tool (func_import, func_create_testdir): Emit a definition
70941         of gl_m4_base.
70943 2010-04-02  Eric Blake  <eblake@redhat.com>
70945         maint.mk: fix some fallout
70946         * NEWS: Document the incompatible change, and its effect on cfg.mk.
70947         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
70949 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70951         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
70952         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
70953         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
70954         (sc_cast_of_x_alloc_return_value): Likewise.
70955         (sc_cast_of_alloca_return_value): Likewise.
70956         (sc_space_tab): Likewise.
70957         (sc_prohibit_atoi_atof): Likewise.
70958         (sc_prohibit_magic_number_exit): Likewise.
70959         (sc_error_exit_success): Likewise.
70960         (sc_file_system): Likewise.
70961         (sc_prohibit_have_config_h): Likewise.
70962         (sc_require_config_h): Likewise.
70963         (sc_prohibit_HAVE_MBRTOWC): Likewise.
70964         (sc_obsolete_symbols): Likewise.
70965         (sc_changelog): Likewise.
70966         (sc_program_name): Likewise.
70967         (sc_the_the): Likewise.
70968         (sc_trailing_blank): Likewise.
70969         (sc_two_space_separator_in_usage): Likewise.
70970         (sc_useless_cpp_parens): Likewise.
70971         (sc_GPL_version): Likewise.
70972         (sc_GFDL_version): Likewise.
70973         (sc_texinfo_acronym): Likewise.
70974         (sc_prohibit_cvs_keyword): Likewise.
70975         (sc_prohibit_stat_st_blocks): Likewise.
70976         (sc_prohibit_S_IS_definition): Likewise.
70977         (sc_redundant_const): Likewise.
70978         (sc_makefile_TAB_only_indentation): Likewise.
70979         (sc_m4_quote_check): Likewise.
70980         (sc_makefile_path_separator_check): Likewise.
70981         (sc_copyright_check): Likewise.
70982         (sc_Wundef_boolean): Likewise.
70983         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
70985         maint.mk: match 0 or more whitespace-before-function-call '('
70986         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
70987         that have zero or two-and-more spaces between the function name
70988         and the open parenthesis.
70989         (sc_error_message_warn_fatal): Likewise.
70990         (sc_error_message_uppercase): Likewise.
70991         (sc_error_message_period): Likewise.
70993 2010-03-31  Eric Blake  <eblake@redhat.com>
70995         maint.mk: check for [ as well as test
70996         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
70997         Based on a libvirt report by Matthias Bolte.
70999         gnumakefile: don't squelch _version output
71000         * top/GNUmakefile (_version): Create one-shot dependency rather
71001         than using $(shell) when version must be regenerated.
71002         (_autoreconf): Run verbosely, by default.
71004         sys_time: avoid compiler warnings
71005         * lib/sys_time.in.h (includes): Ensure gcc pragma is
71006         unconditional, fixing regression from 2010-03-29.
71007         Reported by Simon Josefsson.
71009 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
71011         maint.mk: s/_header_without_use/_sc_header_without_use/
71012         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
71013         (sc_prohibit_assert_without_use): Use the new name.
71014         (sc_prohibit_close_stream_without_use): Likewise.
71015         (sc_prohibit_getopt_without_use): Likewise.
71016         (sc_prohibit_quotearg_without_use): Likewise.
71017         (sc_prohibit_quote_without_use): Likewise.
71018         (sc_prohibit_long_options_without_use): Likewise.
71019         (sc_prohibit_inttostr_without_use): Likewise.
71020         (sc_prohibit_ignore_value_without_use): Likewise.
71021         (sc_prohibit_error_without_use): Likewise.
71022         (sc_prohibit_xalloc_without_use): Likewise.
71023         (sc_prohibit_hash_without_use): Likewise.
71024         (sc_prohibit_hash_pjw_without_use): Likewise.
71025         (sc_prohibit_safe_read_without_use): Likewise.
71026         (sc_prohibit_argmatch_without_use): Likewise.
71027         (sc_prohibit_canonicalize_without_use): Likewise.
71028         (sc_prohibit_root_dev_ino_without_use): Likewise.
71029         (sc_prohibit_openat_without_use): Likewise.
71030         (sc_prohibit_c_ctype_without_use): Likewise.
71031         (sc_prohibit_signal_without_use): Likewise.
71032         (sc_prohibit_intprops_without_use): Likewise.
71034 2010-03-30  Eric Blake  <eblake@redhat.com>
71036         maint: improve module indicators
71037         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
71038         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
71039         columns, and avoid extra macro expansion.
71041         fdopendir: work around FreeBSD bug
71042         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
71043         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
71044         * modules/dirent (Makefile.am): Substitute it.
71045         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
71046         declaration.
71047         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
71048         fix.
71049         Reported by Christian Weisgerber <naddy@mips.inka.de>.
71051 2010-03-29  Bruno Haible  <bruno@clisp.org>
71053         Emit #pragma system_header after the inclusion guard, not before.
71054         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
71055         guard that spans the entire file, not before. This enables an
71056         optimization in GCC's preprocessor.
71057         * lib/ctype.in.h: Likewise.
71058         * lib/dirent.in.h: Likewise.
71059         * lib/errno.in.h: Likewise.
71060         * lib/float.in.h: Likewise.
71061         * lib/getopt.in.h: Likewise.
71062         * lib/iconv.in.h: Likewise.
71063         * lib/langinfo.in.h: Likewise.
71064         * lib/locale.in.h: Likewise.
71065         * lib/math.in.h: Likewise.
71066         * lib/netdb.in.h: Likewise.
71067         * lib/netinet_in.in.h: Likewise.
71068         * lib/pty.in.h: Likewise.
71069         * lib/sched.in.h: Likewise.
71070         * lib/se-selinux.in.h: Likewise.
71071         * lib/search.in.h: Likewise.
71072         * lib/spawn.in.h: Likewise.
71073         * lib/stdarg.in.h: Likewise.
71074         * lib/stdint.in.h: Likewise.
71075         * lib/string.in.h: Likewise.
71076         * lib/strings.in.h: Likewise.
71077         * lib/sys_file.in.h: Likewise.
71078         * lib/sys_ioctl.in.h: Likewise.
71079         * lib/sys_time.in.h: Likewise.
71080         * lib/sys_times.in.h: Likewise.
71081         * lib/sys_utsname.in.h: Likewise.
71082         * lib/sys_wait.in.h: Likewise.
71083         * lib/sysexits.in.h: Likewise.
71084         * lib/wctype.in.h: Likewise.
71086 2010-03-28  James Youngman  <jay@gnu.org>
71088         save-cwd: don't leak a file descriptor when the caller execs.
71089         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
71090         saved file descriptor.
71091         * modules/save-cwd (Depends-on): Depend on cloexec.
71093 2010-03-29  Bruno Haible  <bruno@clisp.org>
71095         Remove vestiges of fts-lgpl module.
71096         * lib/fts_.h: Assume GNULIB_FTS is 1.
71097         * lib/fts.c: Likewise.
71098         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
71100 2010-03-28  Bruno Haible  <bruno@clisp.org>
71102         Fix definition of tests witness macro.
71103         * gnulib-tool (func_import): Fix definition of witness macro.
71105 2010-03-28  Bruno Haible  <bruno@clisp.org>
71107         Fix ioctl's protoype on glibc systems.
71108         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
71109         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
71110         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
71111         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
71112         signature. If not, arrange to replace the ioctl function.
71113         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
71114         REPLACE_IOCTL.
71115         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
71116         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
71117         Reported by Ludovic Courtès <ludo@gnu.org>.
71119 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
71121         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
71122         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
71123         made it so grep -r --include=GLOB* ... did not work.
71125 2010-03-26  Jim Meyering  <meyering@redhat.com>
71126             Eric Blake  <eblake@redhat.com>
71128         maint.mk: prohibit use of test's -o and -a operators
71129         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
71131 2010-03-28  Bruno Haible  <bruno@clisp.org>
71133         Remove unused GNULIB_XYZ macro definitions.
71134         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
71135         invocation.
71137 2010-03-28  Bruno Haible  <bruno@clisp.org>
71139         Mark privileged tests modules.
71140         * modules/idpriv-drop-tests (Status): New section.
71141         * modules/idpriv-droptemp-tests (Status): New section.
71143 2010-03-28  Bruno Haible  <bruno@clisp.org>
71145         Split C++ tests into separate tests modules.
71146         * modules/dirent-c++-tests: New file, extracted from
71147         modules/dirent-tests.
71148         * modules/dirent-tests: Depend on it.
71149         * modules/fcntl-h-c++-tests: New file, extracted from
71150         modules/fcntl-h-tests.
71151         * modules/fcntl-h-tests: Depend on it.
71152         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
71153         * modules/glob-tests: Depend on it.
71154         * modules/iconv-h-c++-tests: New file, extracted from
71155         modules/iconv-h-tests.
71156         * modules/iconv-h-tests: Depend on it.
71157         * modules/langinfo-c++-tests: New file, extracted from
71158         modules/langinfo-tests.
71159         * modules/langinfo-tests: Depend on it.
71160         * modules/locale-c++-tests: New file, extracted from
71161         modules/locale-tests.
71162         * modules/locale-tests: Depend on it.
71163         * modules/math-c++-tests: New file, extracted from modules/math-tests.
71164         * modules/math-tests: Depend on it.
71165         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
71166         * modules/pty-tests: Depend on it.
71167         * modules/search-c++-tests: New file, extracted from
71168         modules/search-tests.
71169         * modules/search-tests: Depend on it.
71170         * modules/signal-c++-tests: New file, extracted from
71171         modules/signal-tests.
71172         * modules/signal-tests: Depend on it.
71173         * modules/spawn-c++-tests: New file, extracted from
71174         modules/spawn-tests.
71175         * modules/spawn-tests: Depend on it.
71176         * modules/stdio-c++-tests: New file, extracted from
71177         modules/stdio-tests.
71178         * modules/stdio-tests: Depend on it.
71179         * modules/stdlib-c++-tests: New file, extracted from
71180         modules/stdlib-tests.
71181         * modules/stdlib-tests: Depend on it.
71182         * modules/string-c++-tests: New file, extracted from
71183         modules/string-tests.
71184         * modules/string-tests: Depend on it.
71185         * modules/sys_ioctl-c++-tests: New file, extracted from
71186         modules/sys_ioctl-tests.
71187         * modules/sys_ioctl-tests: Depend on it.
71188         * modules/sys_select-c++-tests: New file, extracted from
71189         modules/sys_select-tests.
71190         * modules/sys_select-tests: Depend on it.
71191         * modules/sys_socket-c++-tests: New file, extracted from
71192         modules/sys_socket-tests.
71193         * modules/sys_socket-tests: Depend on it.
71194         * modules/sys_stat-c++-tests: New file, extracted from
71195         modules/sys_stat-tests.
71196         * modules/sys_stat-tests: Depend on it.
71197         * modules/sys_time-c++-tests: New file, extracted from
71198         modules/sys_time-tests.
71199         * modules/sys_time-tests: Depend on it.
71200         * modules/time-c++-tests: New file, extracted from modules/time-tests.
71201         * modules/time-tests: Depend on it.
71202         * modules/unistd-c++-tests: New file, extracted from
71203         modules/unistd-tests.
71204         * modules/unistd-tests: Depend on it.
71205         * modules/wchar-c++-tests: New file, extracted from
71206         modules/wchar-tests.
71207         * modules/wchar-tests: Depend on it.
71208         * modules/wctype-c++-tests: New file, extracted from
71209         modules/wctype-tests.
71210         * modules/wctype-tests: Depend on it.
71211         Reported by Simon Josefsson.
71213 2010-03-28  Bruno Haible  <bruno@clisp.org>
71215         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
71216         * gnulib-tool (func_exists_module): New function, extracted from
71217         func_verify_module.
71218         (func_verify_module): Use it.
71219         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
71220         'foo' only if 'foo' exists.
71221         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
71222         module.
71224 2010-03-28  Bruno Haible  <bruno@clisp.org>
71226         gnulib-tool: Add support for special categories of tests.
71227         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
71228         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
71229         (func_usage): Document them.
71230         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
71231         inc_unportable_tests, inc_all_tests): New variables.
71232         (func_acceptable): Consider these variables.
71233         (func_modules_transitive_closure): Make it work when the 'Status' field
71234         consists of multiple words.
71235         (func_import): Store and restore the values of inc_cxx_tests,
71236         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
71237         inc_all_tests in gnulib-comp.m4.
71238         (func_create_testdir): Set inc_all_tests to true.
71239         * doc/gnulib.texi (Extra tests modules): New section.
71240         Suggested by Jim Meyering.
71242 2010-03-28  Bruno Haible  <bruno@clisp.org>
71244         ansi-c++-opt: Allow turning off the C++ build by default.
71245         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
71246         gl_CXX_CHOICE_DEFAULT_NO is defined.
71247         Requested by Eric Blake.
71249 2010-03-28  Bruno Haible  <bruno@clisp.org>
71251         unistd: Avoid #define replacements in C++ mode.
71252         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
71253         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
71254         setsockopt, shutdown, select): In C++, attach a warning to the function
71255         if possible, rather than #defining the symbol to a dysfunctional alias.
71256         Reported by John W. Eaton <jwe@gnu.org>.
71258 2010-03-28  Bruno Haible  <bruno@clisp.org>
71260         Fix link errors on mingw.
71261         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
71262         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
71263         $(LIBSOCKET).
71264         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
71265         $(LIBSOCKET).
71267 2010-03-28  Bruno Haible  <bruno@clisp.org>
71268             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71270         lib-ignore: Determine different options for different compilers.
71271         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
71272         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
71273         Add comments.
71274         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
71275         * NEWS: Mention the change.
71277 2010-03-27  Bruno Haible  <bruno@clisp.org>
71279         Remove unused GNULIB_XYZ macro definitions.
71280         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
71281         * modules/fseek (configure.ac): Likewise.
71282         * modules/ioctl (configure.ac): Likewise.
71283         * modules/open (configure.ac): Likewise.
71284         * modules/stdlib-safer (configure.ac): Likewise.
71286 2010-03-27  Bruno Haible  <bruno@clisp.org>
71288         Add a remark about certain modules.
71289         * modules/malloc (Comment): New section.
71290         * modules/realloc (Comment): Likewise.
71291         * modules/sigpipe (Comment): Likewise.
71293 2010-03-27  Bruno Haible  <bruno@clisp.org>
71295         Resolve conflict between the two kinds of module indicators.
71296         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
71297         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
71298         * modules/canonicalize (configure.ac): Invoke
71299         gl_MODULE_INDICATOR_FOR_TESTS.
71300         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
71301         GNULIB_XYZ.
71302         * tests/test-dirent-c++.cc: Likewise.
71303         * tests/test-dirent-safer.c: Likewise.
71304         * tests/test-dup2.c: Likewise.
71305         * tests/test-fchdir.c: Likewise.
71306         * tests/test-fcntl-h-c++.cc: Likewise.
71307         * tests/test-getopt.c: Likewise.
71308         * tests/test-getopt.h: Likewise.
71309         * tests/test-langinfo-c++.cc: Likewise.
71310         * tests/test-locale-c++.cc: Likewise.
71311         * tests/test-math-c++.cc: Likewise.
71312         * tests/test-pty-c++.cc: Likewise.
71313         * tests/test-search-c++.cc: Likewise.
71314         * tests/test-signal-c++.cc: Likewise.
71315         * tests/test-spawn-c++.cc: Likewise.
71316         * tests/test-stdio-c++.cc: Likewise.
71317         * tests/test-stdlib-c++.cc: Likewise.
71318         * tests/test-string-c++.cc: Likewise.
71319         * tests/test-sys_ioctl-c++.cc: Likewise.
71320         * tests/test-sys_select-c++.cc: Likewise.
71321         * tests/test-sys_socket-c++.cc: Likewise.
71322         * tests/test-sys_stat-c++.cc: Likewise.
71323         * tests/test-sys_time-c++.cc: Likewise.
71324         * tests/test-time-c++.cc: Likewise.
71325         * tests/test-unistd-c++.cc: Likewise.
71326         * tests/test-wchar-c++.cc: Likewise.
71327         * tests/uninorm/test-u8-nfc.c: Likewise.
71328         * tests/uninorm/test-u8-nfd.c: Likewise.
71329         * tests/uninorm/test-u8-nfkc.c: Likewise.
71330         * tests/uninorm/test-u8-nfkd.c: Likewise.
71331         * tests/uninorm/test-u16-nfc.c: Likewise.
71332         * tests/uninorm/test-u16-nfd.c: Likewise.
71333         * tests/uninorm/test-u16-nfkc.c: Likewise.
71334         * tests/uninorm/test-u16-nfkd.c: Likewise.
71335         * tests/uninorm/test-u32-nfc.c: Likewise.
71336         * tests/uninorm/test-u32-nfc-big.c: Likewise.
71337         * tests/uninorm/test-u32-nfd.c: Likewise.
71338         * tests/uninorm/test-u32-nfd-big.c: Likewise.
71339         * tests/uninorm/test-u32-nfkc.c: Likewise.
71340         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
71341         * tests/uninorm/test-u32-nfkd.c: Likewise.
71342         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
71343         * tests/uninorm/test-u32-normalize-big.c: Likewise.
71345 2010-03-27  Bruno Haible  <bruno@clisp.org>
71347         Distinguish two kinds of module indicators.
71348         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
71349         gl_MODULE_INDICATOR.
71350         (gl_MODULE_INDICATOR): New macro.
71351         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
71352         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
71353         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
71354         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
71355         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
71356         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
71357         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
71358         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
71359         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
71360         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
71361         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
71362         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
71363         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
71364         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
71365         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
71366         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
71367         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
71368         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
71369         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
71370         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
71371         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
71372         * modules/cloexec (configure.ac): Likewise.
71373         * modules/getopt-gnu (configure.ac): Likewise.
71374         * modules/uninorm/u8-normalize (configure.ac): Likewise.
71375         * modules/uninorm/u16-normalize (configure.ac): Likewise.
71376         * modules/uninorm/u32-normalize (configure.ac): Likewise.
71377         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
71379 2010-03-27  Bruno Haible  <bruno@clisp.org>
71381         New module description field 'Comment'.
71382         * gnulib-tool: New option --extract-comment.
71383         (func_usage): Document it.
71384         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
71385         (func_get_comment): New function.
71386         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
71388 2010-03-27  Bruno Haible  <bruno@clisp.org>
71390         Addendum to 2010-02-07 commit.
71391         * gnulib-tool (func_usage): Document --extract-applicability option.
71393 2010-03-27  Bruno Haible  <bruno@clisp.org>
71395         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
71396         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
71397         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
71398         rather than link errors.
71400 2010-03-27  Bruno Haible  <bruno@clisp.org>
71402         Avoid side effects from tests-related modules on the compilation of lib.
71403         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
71404         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
71405         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
71406         parameter. Emit into AM_CPPFLAGS a definition of the designated C
71407         macro.
71408         (func_import): Define a witness macro. Assign it a value that depends
71409         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
71410         tests-related modules.
71411         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
71412         Reported by Jim Meyering.
71414 2010-03-27  Bruno Haible  <bruno@clisp.org>
71416         Factorize common .m4 code.
71417         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
71418         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
71419         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
71420         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
71421         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
71422         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
71423         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
71424         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
71425         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
71426         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
71427         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
71428         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
71429         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
71430         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
71431         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
71432         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
71433         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
71434         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
71435         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
71436         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
71437         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
71438         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
71439         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
71440         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
71441         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
71442         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
71443         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
71444         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
71445         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
71446         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
71447         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
71448         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
71450 2010-03-27  Bruno Haible  <bruno@clisp.org>
71452         Fix a compilation error on Cygwin with g++ >= 4.3.
71453         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
71454         if it is undefined or if we alias it to chmod.
71455         (lstat): Don't warn about the use of this function if it is undefined
71456         or if we alias it to stat.
71457         Reported by Simon Josefsson.
71459 2010-03-27  Bruno Haible  <bruno@clisp.org>
71461         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
71462         * modules/getlogin (configure.ac): Update.
71464         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
71465         * modules/getlogin_r (configure.ac): Update.
71467         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
71468         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
71469         * modules/inet_ntop (configure.ac): Update.
71471         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
71472         * modules/inet_pton (configure.ac): Update.
71474         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
71475         * modules/mbslen (configure.ac): Update.
71477         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
71478         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
71479         * modules/forkpty (configure.ac): Update.
71480         * modules/openpty (configure.ac): Update.
71482 2010-03-26  Simon Josefsson  <simon@josefsson.org>
71484         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
71485         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
71487 2010-03-25  Eric Blake  <eblake@redhat.com>
71489         maint: use pragma consistently across replacement headers
71490         * lib/ctype.in.h (system_header): Hoist for consistent placement.
71491         * lib/dirent.in.h (system_header): Likewise.
71492         * lib/errno.in.h (system_header): Likewise.
71493         * lib/float.in.h (system_header): Likewise.
71494         * lib/getopt.in.h (system_header): Likewise.
71495         * lib/iconv.in.h (system_header): Likewise.
71496         * lib/inttypes.in.h (system_header): Likewise.
71497         * lib/langinfo.in.h (system_header): Likewise.
71498         * lib/locale.in.h (system_header): Likewise.
71499         * lib/math.in.h (system_header): Likewise.
71500         * lib/netdb.in.h (system_header): Likewise.
71501         * lib/netinet_in.in.h (system_header): Likewise.
71502         * lib/pty.in.h (system_header): Likewise.
71503         * lib/sched.in.h (system_header): Likewise.
71504         * lib/se-selinux.in.h (system_header): Likewise.
71505         * lib/search.in.h (system_header): Likewise.
71506         * lib/spawn.in.h (system_header): Likewise.
71507         * lib/stdarg.in.h (system_header): Likewise.
71508         * lib/stdint.in.h (system_header): Likewise.
71509         * lib/string.in.h (system_header): Likewise.
71510         * lib/strings.in.h (system_header): Likewise.
71511         * lib/sys_file.in.h (system_header): Likewise.
71512         * lib/sys_ioctl.in.h (system_header): Likewise.
71513         * lib/sys_socket.in.h (system_header): Likewise.
71514         * lib/sys_times.in.h (system_header): Likewise.
71515         * lib/sys_utsname.in.h (system_header): Likewise.
71516         * lib/sys_wait.in.h (system_header): Likewise.
71517         * lib/sysexits.in.h (system_header): Likewise.
71518         * lib/unistd.in.h (system_header): Likewise.
71519         * lib/wctype.in.h (system_header): Likewise.
71521         arpa/inet: fix mingw compilation warning
71522         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
71523         Reported by Matthew Bolte.
71525 2010-03-25  Bruno Haible  <bruno@clisp.org>
71527         Avoid collision between gnulib wrapper and libintl wrapper.
71528         * lib/printf.c (printf): Don't define if a printf wrapper is already
71529         defined in intl/printf.c.
71530         Reported by Michel Boaventura <michel@michelboaventura.com>.
71532 2010-03-25  Bruno Haible  <bruno@clisp.org>
71534         Use ANSI C.
71535         * lib/readutmp.h (getutent): Provide ANSI C prototype.
71537 2010-03-25  Bruno Haible  <bruno@clisp.org>
71539         Minor formatting changes.
71540         * lib/acosl.c: Insert space before function argument list.
71541         * lib/argz.c: Likewise.
71542         * lib/asinl.c: Likewise.
71543         * lib/expl.c: Likewise.
71544         * lib/gen-uni-tables.c: Likewise.
71545         * lib/gettext.h: Likewise.
71546         * lib/glthread/lock.h: Likewise.
71547         * lib/tanl.c: Likewise.
71548         * lib/uniname/uniname.c: Likewise.
71549         * tests/test-idpriv-drop.c: Likewise.
71550         * tests/test-idpriv-droptemp.c: Likewise.
71551         * tests/test-lock.c: Likewise.
71552         * tests/test-tls.c: Likewise.
71553         * lib/argp-help.c: Insert space before function-like macro argument
71554         list.
71555         * lib/memcmp.c: Likewise.
71556         * tests/test-base64.c: Likewise.
71557         * lib/localename.c: Insert space before sizeof's argument list.
71558         * lib/safe-alloc.h: Likewise.
71559         * lib/file-set.h: Insert space before macro argument list.
71560         * tests/test-argp.c: Likewise.
71561         * lib/argp-namefrob.h: Insert space before function parameter list.
71562         * lib/getaddrinfo.c: Likewise.
71563         * lib/netdb.in.h: Likewise.
71564         * lib/parse-duration.h: Likewise.
71565         * lib/parse-duration.c: Likewise.
71566         * lib/poll.c: Likewise.
71567         * lib/select.c: Likewise.
71568         * lib/trim.h: Likewise.
71569         * tests/test-usleep.c: Likewise.
71570         * lib/ldexpl.c: Insert space before function parameter list and before
71571         function argument list.
71572         * lib/logl.c: Likewise.
71573         * lib/sqrtl.c: Likewise.
71574         * lib/trim.c: Likewise.
71575         * lib/cosl.c: Use GNU style indentation. Insert space before function
71576         argument list.
71577         * lib/sinl.c: Likewise.
71578         * lib/tsearch.c: Insert space after 'for'.
71579         Reported by Jim Meyering.
71581 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
71583         * maint.mk (sc_Wundef_boolean): Check for the presence of the
71584         config header before grepping, as it's not present before
71585         autoreconf/configure are run.  Reported by Simon Josefsson.
71587 2010-03-23  Bruno Haible  <bruno@clisp.org>
71589         pt_chown: Make it work with automake < 1.11.
71590         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
71591         Reported by Simon Josefsson.
71593 2010-03-23  Bruno Haible  <bruno@clisp.org>
71595         pt_chown: Don't depend on GPLed modules.
71596         * lib/pt_chown.c: Don't include idpriv.h.
71597         (main): Don't drop privileges.
71598         * modules/pt_chown (Depends-on): Remove idpriv-drop.
71599         Reported by Simon Josefsson.
71601 2010-03-24  Simon Josefsson  <simon@josefsson.org>
71603         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
71604         suggestions from karl@freefriends.org (Karl Berry).
71606 2010-03-22  Eric Blake  <eblake@redhat.com>
71608         gethostname: further tweaks
71609         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
71610         are overriding gethostname.
71611         Suggested by Bruno Haible.
71613 2010-03-21  Bruno Haible  <bruno@clisp.org>
71615         Fix comments.
71616         * lib/forkpty.c (rpl_forkpty): Fix comment.
71617         * lib/openpty.c (rpl_openpty): Likewise.
71618         Reported by Eric Blake.
71620 2010-03-22  Eric Blake  <eblake@redhat.com>
71622         gethostname: fix build on mingw
71623         * lib/unistd.in.h (includes): Work around fact that mingw
71624         <winsock2.h> re-includes <unistd.h>, by avoiding any
71625         redeclarations if we are being included by <winsock2.h>.
71626         Reported by Matthias Bolte.
71628 2010-03-21  Bruno Haible  <bruno@clisp.org>
71630         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
71631         * lib/forkpty.c (forkpty): New replacement function, from glibc with
71632         modifications.
71633         * lib/pty.in.h (forkpty): Update declaration. Add comments.
71634         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
71635         provide the replacement.
71636         * modules/forkpty (Depends-on): Add openpty, login_tty.
71637         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
71638         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
71639         * doc/glibc-functions/forkpty.texi: More supported platforms.
71640         * config/srclist.txt: Add forkpty.c (commented).
71642 2010-03-21  Bruno Haible  <bruno@clisp.org>
71644         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
71645         (Makefile.am): Verify that PTY_LIB is defined.
71647         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
71649 2010-03-21  Bruno Haible  <bruno@clisp.org>
71651         Tests for module 'login_tty'.
71652         * modules/login_tty-tests: New file.
71653         * tests/test-login_tty.c: New file.
71655         New module 'login_tty'.
71656         * lib/login_tty.c: New file.
71657         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
71658         * modules/login_tty: New file.
71659         * doc/glibc-functions/login_tty.texi: Mention the new module.
71661 2010-03-21  Bruno Haible  <bruno@clisp.org>
71663         login_tty: Documentation.
71664         * doc/glibc-functions/login_tty.texi: New file.
71665         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
71667 2010-03-21  Bruno Haible  <bruno@clisp.org>
71669         pty: Consistent macro naming.
71670         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
71671         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
71672         * modules/pty (configure.ac): Update.
71674 2010-03-21  Bruno Haible  <bruno@clisp.org>
71676         Tests for openpty: Make stricter.
71677         * tests/test-openpty.c (main): Add test of canonical processing and
71678         erase.
71679         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
71681         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
71682         * lib/openpty.c (openpty): New replacement function.
71683         * lib/pty.in.h: Include <termios.h>.
71684         (openpty): Update declaration. Add comments.
71685         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
71686         is not declared, arrange to provide the replacement. Check for _getpty
71687         and posix_openpt.
71688         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
71689         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
71690         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
71691         * modules/pty-tests (test_pty_c___LDADD): New variable.
71692         * doc/glibc-functions/openpty.texi: More supported platforms.
71694 2010-03-21  Bruno Haible  <bruno@clisp.org>
71696         setenv: Tweaks.
71697         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
71698         the test program.
71699         * doc/posix-functions/setenv.texi: Update platforms list.
71701 2010-03-21  Bruno Haible  <bruno@clisp.org>
71703         New module 'unlockpt'.
71704         * lib/unlockpt.c: New file, from glibc with modifications.
71705         * m4/unlockpt.m4: New file.
71706         * modules/unlockpt: New file.
71707         * lib/stdlib.in.h (unlockpt): New declaration.
71708         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
71709         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
71710         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
71711         HAVE_UNLOCKPT.
71712         * doc/posix-functions/unlockpt.texi: Mention the new module.
71713         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
71714         * config/srclist.txt: Add unlockpt.c (commented).
71716 2010-03-21  Jim Meyering  <meyering@redhat.com>
71718         maint.mk: prohibit inclusion of "intprops.h" without use
71719         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
71721 2010-03-21  Bruno Haible  <bruno@clisp.org>
71723         New module 'grantpt'.
71724         * lib/grantpt.c: New file, from glibc with modifications.
71725         * m4/grantpt.m4: New file.
71726         * modules/grantpt: New file.
71727         * lib/stdlib.in.h (grantpt): New declaration.
71728         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
71729         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
71730         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
71731         HAVE_GRANTPT.
71732         * doc/posix-functions/grantpt.texi: Mention the new module.
71733         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
71734         * config/srclist.txt: Add grantpt.c (commented).
71736 2010-03-21  Bruno Haible  <bruno@clisp.org>
71738         New module 'pt_chown'.
71739         * lib/pt_chown.c: New file, from glibc with modifications.
71740         * lib/pty-private.h: New file, from glibc with modifications.
71741         * modules/pt_chown: New file.
71742         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
71744 2010-03-21  Bruno Haible  <bruno@clisp.org>
71746         Tests for module 'ptsname'.
71747         * modules/ptsname-tests: New file.
71748         * tests/test-ptsname.c: New file.
71750         New module 'ptsname'.
71751         * lib/ptsname.c: New file, from glibc with modifications.
71752         * m4/ptsname.m4: New file.
71753         * modules/ptsname: New file.
71754         * lib/stdlib.in.h (ptsname): New declaration.
71755         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
71756         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
71757         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
71758         HAVE_PTSNAME.
71759         * doc/posix-functions/ptsname.texi: Mention the new module.
71760         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
71761         * config/srclist.txt: Add ptsname.c (commented).
71763 2010-03-21  Bruno Haible  <bruno@clisp.org>
71765         Tests for module 'ttyname_r'.
71766         * modules/ttyname_r-tests: New file.
71767         * tests/test-ttyname_r.c: New file.
71769         New module 'ttyname_r'.
71770         * lib/ttyname_r.c: New file.
71771         * m4/ttyname_r.m4: New file.
71772         * modules/ttyname_r: New file.
71773         * lib/unistd.in.h (ttyname_r): New declaration.
71774         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
71775         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
71776         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
71777         HAVE_TTYNAME_R.
71778         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
71779         * doc/posix-functions/ttyname_r.texi: Mention the new module.
71781 2010-03-20  Bruno Haible  <bruno@clisp.org>
71783         signal: Undefine macro definitions in C++ mode.
71784         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
71785         sigfillset): Undefine macro definitions from the system header in C++
71786         mode.
71787         Reported by John W. Eaton <jwe@gnu.org>.
71789 2010-03-20  Bruno Haible  <bruno@clisp.org>
71791         Ensure no #include statements inside extern "C" { ... }.
71792         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
71793         contain #include statements.
71794         * lib/time.in.h: Likewise.
71796 2010-03-20  Bruno Haible  <bruno@clisp.org>
71798         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
71799         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
71800         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
71801         Reported by John W. Eaton <jwe@gnu.org>.
71803 2010-03-20  Bruno Haible  <bruno@clisp.org>
71805         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
71806         Reported by Jim Meyering.
71808 2010-03-20  Bruno Haible  <bruno@clisp.org>
71810         pipe: Set errno upon failure.
71811         * lib/pipe.h: Specify that when -1 is returned, errno is set.
71812         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
71813         errno value in error message.
71815 2010-03-20  Bruno Haible  <bruno@clisp.org>
71816             Jim Meyering  <meyering@redhat.com>
71818         lchown: Avoid "unused variable" warning.
71819         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
71821 2010-03-20  Bruno Haible  <bruno@clisp.org>
71823         Work around unlink() bug on MacOS X 10.5.6.
71824         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
71825         attempting to unlink a parent directory.
71826         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
71827         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
71828         activate for the replacement function.
71829         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
71831 2010-03-20  Bruno Haible  <bruno@clisp.org>
71833         Fix link errors on Solaris 8.
71834         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
71835         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
71837 2010-03-19  Jim Meyering  <meyering@redhat.com>
71839         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
71840         The _LIBC implementation of build_range_exp correctly honors the
71841         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
71842         However, the non-_LIBC implementation would ignore that syntax-bit
71843         flag and return REG_ERANGE unconditionally.
71844         This change makes it honor that flag.
71845         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
71846         Make two pointer parameters "const".
71847         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
71848         (parse_bracket_exp): Update caller.
71850         regex.m4: correct the reversed range endpoint ([b-a]) test
71851         * m4/regex.m4: When requiring that [b-a] evoke failure,
71852         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
71853         test pass once again for x86-based systems.
71855 2010-03-19  Bruno Haible  <bruno@clisp.org>
71857         scandir: Fix link error on Solaris 8.
71858         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
71859         macros.
71861 2010-03-19  Bruno Haible  <bruno@clisp.org>
71863         getusershell: Fix documentation.
71864         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
71865         module.
71866         * doc/glibc-functions/setusershell.texi: Likewise.
71868         getusershell: Provide declaration, missing on Solaris 9.
71869         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
71870         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
71871         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
71872         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
71873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71874         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
71875         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
71876         HAVE_GETUSERSHELL.
71877         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
71879 2010-03-19  Bruno Haible  <bruno@clisp.org>
71881         wctype: Provide iswblank function.
71882         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
71883         exists and is fine.
71884         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
71885         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
71886         * tests/test-wctype.c (main): Re-enable the iswblank tests.
71887         * doc/posix-functions/iswblank.texi: Update.
71889 2010-03-19  Bruno Haible  <bruno@clisp.org>
71891         Tests of module 'pty' in C++ mode.
71892         * modules/pty-tests: New file.
71893         * tests/test-pty-c++.cc: New file.
71894         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71896 2010-03-19  Eric Blake  <eblake@redhat.com>
71898         logb: fix documentation
71899         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
71900         1.5 declaration bug.
71902         forkpty, openpty: prefer glibc's const-safe prototype
71903         * lib/forkpty.c (rpl_forkpty): New file.
71904         * lib/openpty.c (rpl_openpty): Likewise.
71905         * modules/forkpty (Files): Distribute it.
71906         * modules/openpty (Files): Likewise.
71907         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
71908         check...
71909         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
71910         replacement for non-const BSD signature.
71911         * modules/pty (Makefile.am): Substitute witnesses.
71912         * lib/pty.in.h (forkpty, openpty): Declare replacements.
71913         * tests/test-forkpty.c: Update signature check.
71914         * tests/test-openpty.c: Likewise.
71915         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
71916         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71918         forkpty, openpty: split functions into new modules
71919         * modules/pty (Makefile.am): Substitute new witnesses.
71920         (Libraries): Move library detection...
71921         * modules/forkpty: ...into new module.
71922         * modules/openpty: Another new module.
71923         * modules/pty-tests: Rename and split...
71924         * modules/forkpty-tests: ...to this...
71925         * modules/openpty-tests: ...and this.
71926         * tests/test-pty.c: Rename and split...
71927         * tests/test-forkpty.c: ...to this...
71928         * tests/test-openpty.c: ...and this.
71929         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
71930         (gl_PTY): Split library searching...
71931         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
71932         (gl_FORKPTY, gl_OPENPTY): New macros.
71933         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
71934         * NEWS: Mention the split.
71935         * MODULES.html.sh (Misc): Document the modules.
71936         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
71937         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71939         pty: improve replacement header
71940         * lib/pty.in.h: New file.
71941         * modules/pty (Files): Ship it.
71942         (Makefile.am): Always build replacement.
71943         * m4/pty.m4: Rename...
71944         * m4/pty_h.m4: ...to this.
71945         (gl_PTY): Modernize setting of witness macros; update check of
71946         forkpty to take proper advantage of cache.
71947         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
71949         getopt: avoid compiler warning
71950         * lib/getopt.c (attribute_hidden): Remove unused macro.
71952 2010-03-18  Bruno Haible  <bruno@clisp.org>
71954         Fix link errors on Solaris 8.
71955         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
71956         * modules/search-tests (test_search_c___LDADD): Likewise.
71957         * modules/signal-tests (test_signal_c___LDADD): Likewise.
71958         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
71959         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
71960         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
71961         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
71962         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
71963         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
71965 2010-03-18  Bruno Haible  <bruno@clisp.org>
71967         Fix bug introduced on 2010-03-14.
71968         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
71969         (gl_SPAWN_H): Require it.
71970         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
71971         Reported by Simon Josefsson.
71973 2010-03-18  Bruno Haible  <bruno@clisp.org>
71975         Fix typo introduced on 2009-12-31.
71976         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
71977         posix_spawn_file_actions_adddup2.
71979 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
71980         and Eric Blake  <eblake@redhat.com>
71982         test-vc-list-files-git: make more robust
71983         * tests/test-vc-list-files-git.sh: Unset problematic environment
71984         variables.  Chain commands together.
71986 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
71988         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
71989         `AC_CHECK_DECL' invocation.
71991 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
71993         * lib/inttostr.c (inttostr): Make sure the invocation of verify
71994         appears before executable statements. Suggested by Petr Sumbera
71995         <Petr.Sumbera@Sun.COM>.
71997 2010-03-14  Bruno Haible  <bruno@clisp.org>
71999         * tests/test-flock.c (test_exclusive): Comment out a test that causes
72000         portability problems. Instead use a simpler test.
72001         (main): Check that invalid arguments are rejected only on Linux.
72003 2010-03-14  Bruno Haible  <bruno@clisp.org>
72005         Fix bug introduced on 2009-12-31.
72006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
72007         gl_PREREQ_SYS_H_WINSOCK2 always.
72008         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
72009         SYS_SOCKET_H variable.
72010         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
72011         Update comments.
72012         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
72013         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
72014         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
72015         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
72016         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
72018 2010-03-14  Bruno Haible  <bruno@clisp.org>
72020         Fix values returned by sinl, cosl.
72021         * lib/trigl.h: Add specification comments.
72022         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
72023         that combines the values from the precomputed table with the values of
72024         the Chebyshev polynomials.
72026 2010-03-14  Bruno Haible  <bruno@clisp.org>
72028         Fix compilation error when modules 'posix_spawn[p]' are not used.
72029         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
72030         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
72032 2010-03-14  Bruno Haible  <bruno@clisp.org>
72034         Fix compilation error on mingw when module 'time_r' is not used.
72035         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
72036         is 1.
72037         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
72038         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
72039         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
72040         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
72042 2010-03-14  Bruno Haible  <bruno@clisp.org>
72044         Fix compilation error with Sun C.
72045         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
72046         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
72047         instead of GCC specific ULONG_LONG_MAX.
72048         * lib/xstrtoll.c: Likewise.
72049         * lib/xstrtoull.c: Likewise.
72051 2010-03-13  Bruno Haible  <bruno@clisp.org>
72053         Allow the user to disable C++ code and tests.
72054         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
72055         (gl_PROG_ANSI_CXX): Require it.
72057 2010-03-13  Bruno Haible  <bruno@clisp.org>
72059         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
72060         cases.
72062 2010-03-13  Bruno Haible  <bruno@clisp.org>
72064         Test that gnulib does not break the standard C++ headers.
72065         * tests/test-locale-c++2.cc: New file.
72066         * modules/locale-tests (Files): Add it.
72067         (Makefile.am): Compile it for test-locale-c++.
72068         * tests/test-math-c++2.cc: New file.
72069         * modules/math-tests (Files): Add it.
72070         (Makefile.am): Compile it for test-math-c++.
72071         * tests/test-signal-c++2.cc: New file.
72072         * modules/signal-tests (Files): Add it.
72073         (Makefile.am): Compile it for test-signal-c++.
72074         * tests/test-stdio-c++2.cc: New file.
72075         * modules/stdio-tests (Files): Add it.
72076         (Makefile.am): Compile it for test-stdio-c++.
72077         * tests/test-stdlib-c++2.cc: New file.
72078         * modules/stdlib-tests (Files): Add it.
72079         (Makefile.am): Compile it for test-stdlib-c++.
72080         * tests/test-string-c++2.cc: New file.
72081         * modules/string-tests (Files): Add it.
72082         (Makefile.am): Compile it for test-string-c++.
72083         * tests/test-time-c++2.cc: New file.
72084         * modules/time-tests (Files): Add it.
72085         (Makefile.am): Compile it for test-time-c++.
72086         Reported by John W. Eaton <jwe@gnu.org>.
72088 2010-03-13  Bruno Haible  <bruno@clisp.org>
72090         * gnulib-tool (func_usage): Clarify which options are available for
72091         --create-testdir and --create-megatestdir.
72093 2010-03-13  Bruno Haible  <bruno@clisp.org>
72095         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
72096         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
72097         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
72098         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
72099         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
72100         when appropriate.
72101         Reported by Jim Meyering.
72103 2010-03-12  Simon Josefsson  <simon@josefsson.org>
72105         * gnulib-tool (func_import): Explain origin of code.
72107 2010-03-12  Bruno Haible  <bruno@clisp.org>
72109         Fix problem with automake's definition of CXXLINK.
72110         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
72111         Reported by Simon Josefsson and Ludovic Courtès.
72113 2010-03-12  Bruno Haible  <bruno@clisp.org>
72115         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
72116         stable releases.
72118 2010-03-11  Bruno Haible  <bruno@clisp.org>
72120         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
72121         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
72122         whether the system provides one variant or multiple variants of the
72123         function.
72124         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
72125         C++ compilers.
72126         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
72127         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
72128         Reported by Jim Meyering.
72130 2010-03-09  Simon Josefsson  <simon@josefsson.org>
72132         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
72134 2010-03-08  Bruno Haible  <bruno@clisp.org>
72136         gnulib-tool: Add support for --libtool in --create-testdir.
72137         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
72138         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
72140 2010-03-08  Eric Blake  <eblake@redhat.com>
72142         gnulib-tool.texi: mention possibility of git submodule
72143         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
72144         submodules.
72145         * doc/.gitignore: Ignore another generated file.
72147 2010-03-08  Karl Berry  <karl@gnu.org>
72149         * doc/gnulib-tool.texi (VCS Issues): Mention third option
72150         of committing gnulib files while skipping others.
72152 2010-03-07  Bruno Haible  <bruno@clisp.org>
72154         Tests of module 'wctype' in C++ mode.
72155         * tests/test-wctype-c++.cc: New file.
72156         * modules/wctype-tests (Files): Add it and tests/signature.h.
72157         (Depends-on): Add ansi-c++-opt.
72158         (Makefile.am): Arrange to compile and run test-wctype-c++.
72160         Tests of module 'wchar' in C++ mode.
72161         * tests/test-wchar-c++.cc: New file.
72162         * modules/wchar-tests (Files): Add it and tests/signature.h.
72163         (Depends-on): Add ansi-c++-opt.
72164         (Makefile.am): Arrange to compile and run test-wchar-c++.
72165         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
72166         gl_MODULE_INDICATOR.
72168         Tests of module 'unistd' in C++ mode.
72169         * tests/test-unistd-c++.cc: New file.
72170         * modules/unistd-tests (Files): Add it and tests/signature.h.
72171         (Depends-on): Add ansi-c++-opt.
72172         (Makefile.am): Arrange to compile and run test-unistd-c++.
72173         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
72174         gl_MODULE_INDICATOR.
72176         Tests of module 'time' in C++ mode.
72177         * tests/test-time-c++.cc: New file.
72178         * modules/time-tests (Files): Add it and tests/signature.h.
72179         (Depends-on): Add ansi-c++-opt.
72180         (Makefile.am): Arrange to compile and run test-time-c++.
72181         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
72183         Tests of module 'sys_time' in C++ mode.
72184         * tests/test-sys_time-c++.cc: New file.
72185         * modules/sys_time-tests (Files): Add it and tests/signature.h.
72186         (Depends-on): Add ansi-c++-opt.
72187         (Makefile.am): Arrange to compile and run test-sys_time-c++.
72188         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
72189         gl_MODULE_INDICATOR.
72191         Tests of module 'sys_stat' in C++ mode.
72192         * tests/test-sys_stat-c++.cc: New file.
72193         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
72194         (Depends-on): Add ansi-c++-opt.
72195         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
72196         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
72197         gl_MODULE_INDICATOR.
72199         Tests of module 'sys_socket' in C++ mode.
72200         * tests/test-sys_socket-c++.cc: New file.
72201         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
72202         (Depends-on): Add ansi-c++-opt.
72203         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
72204         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
72205         gl_MODULE_INDICATOR.
72207         Tests of module 'sys_select' in C++ mode.
72208         * tests/test-sys_select-c++.cc: New file.
72209         * modules/sys_select-tests (Files): Add it and tests/signature.h.
72210         (Depends-on): Add ansi-c++-opt.
72211         (Makefile.am): Arrange to compile and run test-sys_select-c++.
72212         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
72213         gl_MODULE_INDICATOR.
72215         Tests of module 'sys_ioctl' in C++ mode.
72216         * tests/test-sys_ioctl-c++.cc: New file.
72217         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
72218         (Depends-on): Add ansi-c++-opt.
72219         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
72220         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
72221         gl_MODULE_INDICATOR.
72223         Tests of module 'string' in C++ mode.
72224         * tests/test-string-c++.cc: New file.
72225         * modules/string-tests (Files): Add it and tests/signature.h.
72226         (Depends-on): Add ansi-c++-opt.
72227         (Makefile.am): Arrange to compile and run test-string-c++.
72228         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
72229         gl_MODULE_INDICATOR.
72231         Tests of module 'stdlib' in C++ mode.
72232         * tests/test-stdlib-c++.cc: New file.
72233         * modules/stdlib-tests (Files): Add it and tests/signature.h.
72234         (Depends-on): Add ansi-c++-opt.
72235         (Makefile.am): Arrange to compile and run test-stdlib-c++.
72236         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
72237         gl_MODULE_INDICATOR.
72239         Tests of module 'stdio' in C++ mode.
72240         * tests/test-stdio-c++.cc: New file.
72241         * modules/stdio-tests (Files): Add it and tests/signature.h.
72242         (Depends-on): Add ansi-c++-opt.
72243         (Makefile.am): Arrange to compile and run test-stdio-c++.
72244         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
72245         gl_MODULE_INDICATOR.
72247         Tests of module 'spawn' in C++ mode.
72248         * tests/test-spawn-c++.cc: New file.
72249         * modules/spawn-tests (Files): Add it and tests/signature.h.
72250         (Depends-on): Add ansi-c++-opt.
72251         (Makefile.am): Arrange to compile and run test-spawn-c++.
72252         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
72253         gl_MODULE_INDICATOR.
72255         Tests of module 'signal' in C++ mode.
72256         * tests/test-signal-c++.cc: New file.
72257         * modules/signal-tests (Files): Add it and tests/signature.h.
72258         (Depends-on): Add ansi-c++-opt.
72259         (Makefile.am): Arrange to compile and run test-signal-c++.
72260         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
72261         gl_MODULE_INDICATOR.
72263         Tests of module 'search' in C++ mode.
72264         * tests/test-search-c++.cc: New file.
72265         * modules/search-tests (Files): Add it and tests/signature.h.
72266         (Depends-on): Add ansi-c++-opt.
72267         (Makefile.am): Arrange to compile and run test-search-c++.
72268         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
72269         gl_MODULE_INDICATOR.
72271         Tests of module 'math' in C++ mode.
72272         * tests/test-math-c++.cc: New file.
72273         * modules/math-tests (Files): Add it and tests/signature.h.
72274         (Depends-on): Add ansi-c++-opt.
72275         (Makefile.am): Arrange to compile and run test-math-c++.
72276         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
72278         Tests of module 'locale' in C++ mode.
72279         * tests/test-locale-c++.cc: New file.
72280         * modules/locale-tests (Files): Add it and tests/signature.h.
72281         (Depends-on): Add ansi-c++-opt.
72282         (Makefile.am): Arrange to compile and run test-locale-c++.
72283         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
72284         gl_MODULE_INDICATOR.
72286         Tests of module 'langinfo' in C++ mode.
72287         * tests/test-langinfo-c++.cc: New file.
72288         * modules/langinfo-tests (Files): Add it and tests/signature.h.
72289         (Depends-on): Add ansi-c++-opt.
72290         (Makefile.am): Arrange to compile and run test-langinfo-c++.
72291         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
72292         gl_MODULE_INDICATOR.
72294         Tests of module 'iconv-h' in C++ mode.
72295         * tests/test-iconv-h-c++.cc: New file.
72296         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
72297         (Depends-on): Add ansi-c++-opt.
72298         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
72300         Tests of module 'glob' in C++ mode.
72301         * tests/test-glob-c++.cc: New file.
72302         * modules/glob-tests (Files): Add it.
72303         (Depends-on): Add ansi-c++-opt.
72304         (Makefile.am): Arrange to compile and run test-glob-c++.
72306         Tests of module 'fcntl-h' in C++ mode.
72307         * tests/test-fcntl-h-c++.cc: New file.
72308         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
72309         (Depends-on): Add ansi-c++-opt.
72310         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
72311         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
72312         gl_MODULE_INDICATOR.
72314         Tests of module 'dirent' in C++ mode.
72315         * tests/test-dirent-c++.cc: New file.
72316         * modules/dirent-tests (Files): Add it and tests/signature.h.
72317         (Depends-on): Add ansi-c++-opt.
72318         (Makefile.am): Arrange to compile and run test-dirent-c++.
72319         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
72320         gl_MODULE_INDICATOR.
72322         New module 'ansi-c++-opt'.
72323         * modules/ansi-c++-opt: New file.
72324         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
72326         Document C++ namespace mode.
72327         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
72329         wctype: Avoid #define replacements in C++ mode.
72330         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
72331         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
72332         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
72333         In C++, define a namespaced alias symbol.
72334         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
72335         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
72336         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
72337         rule.
72339         wchar: Avoid #define replacements in C++ mode.
72340         * lib/wchar.in.h: Include c++defs.h.
72341         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
72342         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
72343         symbol.
72344         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
72345         * modules/wchar (Depends-on): Add c++defs.
72346         (Makefile.am): Update wchar.h rule.
72348         unistd: Avoid #define replacements in C++ mode.
72349         * lib/unistd.in.h: Include c++defs.h.
72350         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
72351         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
72352         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
72353         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
72354         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
72355         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
72356         symbol.
72357         (environ): Update.
72358         * modules/unistd (Depends-on): Add c++defs.
72359         (Makefile.am): Update unistd.h rule.
72361         time: Avoid #define replacements in C++ mode.
72362         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
72363         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
72364         define a namespaced alias symbol.
72365         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
72366         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
72367         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
72368         * modules/time (Depends-on): Add c++defs, warn-on-use.
72369         (Makefile.am): Update time.h rule.
72370         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
72371         * modules/nanosleep (configure.ac): Likewise.
72372         * modules/strptime (configure.ac): Likewise.
72373         * modules/timegm (configure.ac): Likewise.
72375         sys_time: Avoid #define replacements in C++ mode.
72376         * lib/sys_time.in.h: Include c++defs.h.
72377         (gettimeofday): In C++, define a namespaced alias symbol.
72378         * modules/sys_time (Depends-on): Add c++defs.
72379         (Makefile.am): Update sys/time.h rule.
72381         sys_stat: Avoid #define replacements in C++ mode.
72382         * lib/sys_stat.in.h: Include c++defs.h.
72383         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
72384         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
72385         namespaced alias symbol.
72386         In C++, define a namespaced alias symbol.
72387         * modules/sys_stat (Depends-on): Add c++defs.
72388         (Makefile.am): Update sys/stat.h rule.
72390         sys_socket: Avoid #define replacements in C++ mode.
72391         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
72392         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
72393         definitions also when the system has a <sys/socket.h>.
72394         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
72395         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
72396         In C++, define a namespaced alias symbol.
72397         * modules/sys_socket (Depends-on): Add c++defs.
72398         (Makefile.am): Update sys/socket.h rule.
72400         sys_select: Avoid #define replacements in C++ mode.
72401         * lib/sys_select.in.h: Include c++defs.h. Enable the function
72402         definitions also when the system has a <sys/select.h>.
72403         (select): In C++, define a namespaced alias symbol.
72404         * modules/sys_select (Depends-on): Add c++defs.
72405         (Makefile.am): Update sys/select.h rule.
72407         sys_ioctl: Avoid #define replacements in C++ mode.
72408         * lib/sys_ioctl.in.h: Include c++defs.h.
72409         (ioctl): In C++, define a namespaced alias symbol.
72410         * modules/sys_ioctl (Depends-on): Add c++defs.
72411         (Makefile.am): Update sys/ioctl.h rule.
72413         string: Avoid #define replacements in C++ mode.
72414         * lib/string.in.h: Include c++defs.h.
72415         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
72416         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
72417         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
72418         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
72419         strsignal, strverscmp): In C++, define a namespaced alias symbol.
72420         * modules/string (Depends-on): Add c++defs.
72421         (Makefile.am): Update string.h rule.
72423         stdlib: Avoid #define replacements in C++ mode.
72424         * lib/stdlib.in.h: Include c++defs.h.
72425         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
72426         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
72427         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
72428         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
72429         symbol.
72430         * modules/stdlib (Depends-on): Add c++defs.
72431         (Makefile.am): Update stdlib.h rule.
72433         stdio: Avoid #define replacements in C++ mode.
72434         * lib/stdio.in.h: Include c++defs.h.
72435         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
72436         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
72437         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
72438         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
72439         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
72440         namespaced alias symbol.
72441         * modules/stdio (Depends-on): Add c++defs.
72442         (Makefile.am): Update stdio.h rule.
72444         spawn: Avoid #define replacements in C++ mode.
72445         * lib/spawn.in.h: Include c++defs.h.
72446         (posix_spawn, posix_spawnp, posix_spawnattr_init,
72447         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
72448         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
72449         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
72450         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
72451         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
72452         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
72453         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
72454         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
72455         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
72456         In C++, define a namespaced alias symbol.
72457         * modules/spawn (Depends-on): Add c++defs.
72458         (Makefile.am): Update spawn.h rule.
72460         signal: Avoid #define replacements in C++ mode.
72461         * lib/signal.in.h: Include c++defs.h.
72462         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
72463         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
72464         namespaced alias symbol.
72465         * modules/signal (Depends-on): Add c++defs.
72466         (Makefile.am): Update signal.h rule.
72468         search: Avoid #define replacements in C++ mode.
72469         * lib/search.in.h: Include c++defs.h.
72470         (_gl_search_compar_fn, _gl_search_action_fn): New types.
72471         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
72472         symbol.
72473         * modules/search (Depends-on): Add c++defs.
72474         (Makefile.am): Update search.h rule.
72476         math: Avoid #define replacements in C++ mode.
72477         * lib/math.in.h: Include c++defs.h.
72478         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
72479         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
72480         trunc, truncl): In C++, define a namespaced alias symbol.
72481         * modules/math (Depends-on): Add c++defs.
72482         (Makefile.am): Update math.h rule.
72484         locale: Avoid #define replacements in C++ mode.
72485         * lib/locale.in.h: Include c++defs.h.
72486         (duplocale): In C++, define a namespaced alias symbol.
72487         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
72488         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
72489         * modules/locale (Depends-on): Add c++defs.
72490         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
72492         langinfo: Avoid #define replacements in C++ mode.
72493         * lib/langinfo.in.h: Include c++defs.h.
72494         (nl_langinfo): In C++, define a namespaced alias symbol.
72495         * modules/langinfo (Depends-on): Add c++defs.
72496         (Makefile.am): Update langinfo.h rule.
72498         iconv-h: Avoid #define replacements in C++ mode.
72499         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
72500         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
72501         symbol.
72502         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
72503         whenever iconv is present.
72504         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
72505         (Makefile.am): Update iconv.h rule.
72507         glob: Avoid #define replacements in C++ mode.
72508         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
72509         (_gl_glob_errfunc_fn): New type.
72510         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
72511         symbol.
72512         * modules/glob (Depends-on): Add c++defs, warn-on-use.
72513         (Makefile.am): Update glob.h rule.
72515         fcntl-h: Avoid #define replacements in C++ mode.
72516         * lib/fcntl.in.h: Include c++defs.h.
72517         (fcntl, open, openat): In C++, define a namespaced alias symbol.
72518         * modules/fcntl-h (Depends-on): Add c++defs.
72519         (Makefile.am): Update fcntl.h rule.
72521         dirent: Avoid #define replacements in C++ mode.
72522         * lib/dirent.in.h: Include c++defs.h.
72523         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
72524         namespaced alias symbol.
72525         (dirfd): Update declaration.
72526         * modules/dirent (Depends-on): Add c++defs.
72527         (Makefile.am): Update dirent.h rule.
72529         ctype: Make it usable in C++ code.
72530         * lib/ctype.in.h: Include c++defs.h.
72531         (isblank): Declare as extern "C".
72532         * modules/ctype (Depends-on): Add c++defs.
72533         (Makefile.am): Update ctype.h rule.
72535         New module 'c++defs'.
72536         * modules/c++defs: New file.
72537         * build-aux/c++defs.h: New file.
72538         Reported by John W. Eaton <jwe@gnu.org>.
72540 2010-03-07  Bruno Haible  <bruno@clisp.org>
72542         logb: Provide missing declaration for Cygwin.
72543         * lib/math.in.h (logb): New declaration.
72544         * m4/logb.m4: New file.
72545         * modules/logb (Files): Add m4/logb.m4.
72546         (Depends-on): Add math.
72547         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
72548         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
72549         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
72550         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
72551         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
72553 2010-03-07  Bruno Haible  <bruno@clisp.org>
72555         Fix test-cond link error.
72556         * tests/test-cond.c: Include <stdio.h>.
72558 2010-03-07  Bruno Haible  <bruno@clisp.org>
72560         Fix test-dirent-safer link error.
72561         * modules/dirent-safer-tests (Makefile.am): Define
72562         test_dirent_safer_LDADD.
72564 2010-03-07  Bruno Haible  <bruno@clisp.org>
72566         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
72567         among default module list.
72569 2010-03-07  Bruno Haible  <bruno@clisp.org>
72571         Fix link error on platforms with GNU libiconv.
72572         * modules/unistr/u8-strcoll-tests (Makefile): Define
72573         test_u8_strcoll_LDADD.
72574         * modules/unistr/u16-strcoll-tests (Makefile): Define
72575         test_u16_strcoll_LDADD.
72576         * modules/unistr/u32-strcoll-tests (Makefile): Define
72577         test_u32_strcoll_LDADD.
72579 2010-03-07  Bruno Haible  <bruno@clisp.org>
72581         Use POSIX declarations for socket functions.
72582         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
72583         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
72584         rpl_sendto): Change declaration to match POSIX.
72585         * lib/connect.c (rpl_connect): Likewise.
72586         * lib/accept.c (rpl_accept): Likewise.
72587         * lib/bind.c (rpl_bind): Likewise.
72588         * lib/getpeername.c (rpl_getpeername): Likewise.
72589         * lib/getsockname.c (rpl_getsockname): Likewise.
72590         * lib/recv.c (rpl_recv): Likewise.
72591         * lib/send.c (rpl_send): Likewise.
72592         * lib/recvfrom.c (rpl_recvfrom): Likewise.
72593         * lib/sendto.c (rpl_sendto): Likewise.
72595 2010-03-06  Bruno Haible  <bruno@clisp.org>
72597         Clarify access, euidaccess, faccessat.
72598         * doc/posix-functions/faccessat.texi: Mention security problem under
72599         "Other problems", not "Portability problems".
72600         * doc/posix-functions/access.texi: Likewise. Mention a related security
72601         problem.
72602         * doc/glibc-functions/euidaccess.texi: Mention security problems.
72603         * lib/euidaccess.c: Add comments about platforms.
72604         * lib/unistd.in.h (access, euidaccess): Add warnings.
72606 2010-03-07  Bruno Haible  <bruno@clisp.org>
72608         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
72609         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
72610         (POSIX_SPAWN_SETSCHEDULER): Likewise.
72611         (POSIX_SPAWN_USEVFORK): Define in a way that works when
72612         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
72613         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
72614         declare when POSIX_SPAWN_SETSCHEDULER is zero.
72615         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
72616         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
72617         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
72618         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
72619         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
72620         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
72621         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
72622         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
72623         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
72624         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
72625         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
72626         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
72627         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
72628         Likewise.
72629         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
72630         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
72631         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
72632         Likewise.
72633         * tests/test-spawn.c (main): Make it work when
72634         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
72636 2010-03-07  Bruno Haible  <bruno@clisp.org>
72638         Fix incorrect Makefile.am generation in German locale.
72639         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72640         Execute sed command with character range in C locale.
72642 2010-03-06  Bruno Haible  <bruno@clisp.org>
72644         Tests for module 'iconv-h'.
72645         * modules/iconv-h-tests: New file.
72646         * tests/test-iconv-h.c: New file.
72648         New module 'iconv-h'.
72649         * modules/iconv-h: New file.
72650         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
72651         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
72652         (configure.ac): Remove gl_ICONV_H.
72653         (Makefile.am): Remove rule for iconv.h.
72655 2010-03-06  Bruno Haible  <bruno@clisp.org>
72657         More consistent naming of *.m4 files.
72658         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
72659         * modules/wctype (Files): Update.
72661         More consistent naming of *.m4 files.
72662         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
72663         * modules/wchar (Files): Update.
72665 2010-03-06  Jim Meyering  <meyering@redhat.com>
72667         euidaccess: relax license to LGPLv2+
72668         * modules/euidaccess (License): Relax to LGPLv2+.
72670 2010-03-06  Bruno Haible  <bruno@clisp.org>
72672         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
72673         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
72674         (Makefile.am): Augment lib_SOURCES instead.
72676 2010-03-04  Jim Meyering  <meyering@redhat.com>
72678         utime: remove obsolete module
72679         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
72680         unnecessary for years, and has been marked as obsolete for 10 months.
72681         * modules/utime: Remove file.
72682         * lib/utime.c: Remove file.
72683         * m4/utime.m4: Remove file.
72684         * m4/utimes-null.m4: Remove file.
72685         * doc/posix-functions/utime.texi (utime): Remove reference to
72686         the module.  Move the sole "fixed by gnulib" item into the
72687         "problems not fixed by Gnulib" list.
72688         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
72690 2010-03-05  Simon Josefsson  <simon@josefsson.org>
72692         * modules/exit (License): Relax license to LGPLv2+.
72693         (Status): Mark as obsolete.
72694         * NEWS: Mention deprecated 'exit' module.
72695         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
72696         of now obsolete 'exit'.
72698 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72700         fts-lgpl: remove unused module
72701         * modules/fts-lgpl: Remove.
72702         * MODULES.html.sh (func_all_modules): Adjust.
72703         * check-module (find_included_lib_files): Adjust.
72704         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
72706 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
72708         copy-acl: enhance Solaris ACL error handling
72709         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
72710         * lib/set-mode-acl.c (qset_acl): Likewise.
72712 2010-03-02  Bruno Haible  <bruno@clisp.org>
72714         spawn: Don't override the system defined values on FreeBSD 8.
72715         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
72716         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
72717         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
72718         if HAVE_POSIX_SPAWN is 1.
72719         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
72721 2010-03-01  Bruno Haible  <bruno@clisp.org>
72723         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
72724         regarding Automake.
72726 2010-02-25  Bruno Haible  <bruno@clisp.org>
72728         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
72729         * gnulib-tool: Define 'echo' as a function only before the ksh alias
72730         setting, not afterwards.
72731         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
72733 2010-02-24  Eric Blake  <eblake@redhat.com>
72735         bootstrap, git-version-gen: use timestamp
72736         * build-aux/git-version-gen (scriptversion): Force UTC.
72737         * build-aux/bootstrap (scriptversion): New variable.
72739         bootstrap: allow older git
72740         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
72741         older than 1.6.4.  Requested by the libvirt project.
72743 2010-02-23  Eric Blake  <eblake@redhat.com>
72745         warn-on-use: work with old autoconf
72746         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
72747         AS_VAR semantics of autoconf 2.60.
72748         Reported by Bruno Haible.
72750         bootstrap: improve some comments
72751         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
72752         clarification comments.
72754         gettimeofday: provide correct function
72755         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
72756         when replacement is declared, otherwise provide gettimeofday.
72757         Reported by Michael Goffioul.
72759 2010-02-23  Jim Meyering  <meyering@redhat.com>
72761         lib-ignore: relax license to "unlimited", not LGPLv2+
72762         * modules/lib-ignore (License): Relax to "unlimited".
72764 2010-02-23  Jim Meyering  <meyering@redhat.com>
72766         lib-ignore: relax license to LGPLv2+
72767         * modules/lib-ignore (License): Relax to LGPLv2+.
72769 2010-02-22  Eric Blake  <eblake@redhat.com>
72771         lseek: avoid bash 3.2 broken pipe bug
72772         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
72773         warning from bash 3.2.
72774         Reported by Ben Pfaff, with analysis from Bruno Haible.
72776         bootstrap: support non-FSF copyright holder
72777         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
72778         bootstrap.conf override of COPYRIGHT_HOLDER.
72779         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
72781         bootstrap: interoperate with gettext 0.14.1
72782         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
72784         bootstrap: allow for alternate submodule location
72785         * build-aux/bootstrap (gnulib_path): New variable; use instead of
72786         hardcoding submodule location.
72787         (gnulib_mk): Allow direct use of Makefile.am.
72789         bootstrap: use GNULIB_SRCDIR to reduce disk usage
72790         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
72791         rather than reconfiguring where the submodule points.
72793         gettimeofday: restore support for platforms that lack function
72794         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
72795         replacement if function is missing.
72796         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
72797         * modules/sys_time (Makefile.am): Substitute it.
72798         * lib/sys_time.in.h (gettimeofday): Check it.
72799         Reported by Michael Goffioul.
72801 2010-02-21  Bruno Haible  <bruno@clisp.org>
72803         * lib/stdio.in.h (obstack_printf): Fix typo.
72805 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
72807         vc-list-files: use bzr ls's -R option
72808         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
72809         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
72811 2010-02-21  Jim Meyering  <meyering@redhat.com>
72813         init.sh: fix EXEEXT shims to work also for names like test-prog
72814         * tests/init.sh: Re-exec a better shell, when needed.
72815         If the current shell lacks support for posix $(...), an init.sh-using
72816         test will now try to find a shell that supports that.  If EXEEXT is
72817         nonempty, we also require support for hyphen-in-alias-name and shell
72818         substitutions like ${var#glob}.  Failure to find such a shell results
72819         in a skipped test.
72821 2010-02-21  Bruno Haible  <bruno@clisp.org>
72823         Really work around "broken pipe" error message from bash 3.2.
72824         * gnulib-tool (func_reset_sigpipe): Remove function.
72825         (echo): In bash 3.2, define to a function that uses printf.
72826         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
72828 2010-02-20  Bruno Haible  <bruno@clisp.org>
72830         Restore support for automake 1.9.6 with autoconf 2.61.
72831         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
72832         Reported by James Youngman <jay@gnu.org>.
72834 2010-02-20  Bruno Haible  <bruno@clisp.org>
72836         Improve *printf warning condition.
72837         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
72838         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
72839         and the function is overridden due to SIGPIPE emulation.
72841 2010-02-20  Bruno Haible  <bruno@clisp.org>
72843         * lib/stdio.in.h: Tweak comments.
72845 2010-02-19  Bruno Haible  <bruno@clisp.org>
72847         Make it easier to find modules. New gnulib-tool option '--find'.
72848         * gnulib-tool: New option --find.
72849         (func_usage): Document it.
72850         (func_sanitize_modulelist): New function, extracted from
72851         func_all_modules.
72852         (func_all_modules): Invoke it.
72853         * doc/gnulib-tool.texi (Which modules?): New node.
72855 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
72857         * lib/sys_select.in.h: Provide select replacement even if
72858         sys/select.h exists on a system, for Interix.
72860 2010-02-18  Jim Meyering  <meyering@redhat.com>
72862         init.sh: don't use $(...) just yet
72863         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
72864         to accommodate e.g., Solaris' /bin/sh.
72866 2010-02-17  Bruno Haible  <bruno@clisp.org>
72868         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
72869         Reported by Ludovic Courtès <ludo@gnu.org>.
72871 2010-02-16  Simon Josefsson  <simon@josefsson.org>
72873         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
72874         linking with -lintl.
72876 2010-02-17  Simon Josefsson  <simon@josefsson.org>
72878         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
72879         if not provided by the system's netdb.h.  Reported by
72880         ludo@gnu.org (Ludovic Courtès).
72882 2010-02-15  Jim Meyering  <meyering@redhat.com>
72884         init.sh: improve portability and efficiency
72885         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
72886         "dummy" in a for loop.
72887         Use '!', not '^' to select the complement of a character set used
72888         in a "case" statement.
72889         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
72890         Suggestions from Eric Blake.
72892         init.sh: automatically accommodate programs with the .exe suffix
72893         Automatically arrange for an invocation of "prog" to execute the
72894         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
72895         may use the simpler "prog", yet still work when built on a system
72896         that requires specifying the added suffix.
72897         Do this by constructing a function named "prog" that invokes
72898         "prog.exe" for each .exe file in selected directories.
72899         * tests/init.sh (find_exe_basenames_): New function.
72900         (create_exe_shim_functions_): New function.
72901         (path_prepend_): Use it.
72903         maint.mk: mark syntax-check sc_*.m rules as .PHONY
72904         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
72905         "make -t syntax-check" doesn't create a ton of sc_*.m files.
72907 2010-02-14  Jim Meyering  <meyering@redhat.com>
72909         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
72910         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
72911         (sc_prohibit_hash_pjw_without_use): New rule.
72913         maint.mk: allow the default upload destination dir to be overridden
72914         * top/maint.mk (upload_dest_dir_): Define with a default that
72915         preserves the status quo.
72916         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
72917         Reported by Peter Simons.
72919         maint.mk: prohibit inclusion of "hash.h" without_use
72920         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
72922 2010-02-10  Jim Meyering  <meyering@redhat.com>
72924         maint.mk: prohibit inclusion of "ignore-value.h" without_use
72925         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
72927 2010-02-09  Eric Blake  <ebb9@byu.net>
72928         and Bruno Haible  <bruno@clisp.org>
72930         obstack-printf-posix: ensure declaration
72931         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
72932         extracted from gl_FUNC_OBSTACK_PRINTF.
72933         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
72934         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
72935         Likewise.
72936         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
72937         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
72938         0.
72940 2010-02-08  Bruno Haible  <bruno@clisp.org>
72942         gnulib-tool: Fix typo in 2010-02-07 commit.
72943         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
72944         Reported by Eric Blake.
72946 2010-02-07  Bruno Haible  <bruno@clisp.org>
72948         gnulib-tool: Fix up caching patches.
72949         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
72950         option --no-cache. Use associative arrays when supported by the shell.
72951         (sed_comments): New variable.
72952         (modcache): Renamed from do_cache.
72953         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
72954         abbreviate unnecessarily.
72955         (have_associative): New variable.
72956         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
72957         way also for ksh and zsh.
72958         (func_init_sed_convert_to_cache_statements): New function, extracted
72959         from func_cache_lookup_module. Add support for associative arrays.
72960         Don't set the c_MODULE_cached variable here. Ignore all lines before
72961         the first field header. Remove only the final newline, not all trailing
72962         newlines. Support empty fields correctly. Limit the use of 'eval' to
72963         assignments.
72964         (func_get_description, func_get_status, func_get_notice,
72965         func_get_applicability, func_get_filelist, func_get_dependencies,
72966         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
72967         func_get_automake_snippet, func_get_include_directive,
72968         func_get_link_directive, func_get_license, func_get_maintainer):
72969         Update documentation. List the unoptimized code first. Add support for
72970         associative arrays. Limit the use of 'eval' to assignments.
72971         (func_get_applicability): Undo stylistic pessimisations.
72972         (func_get_automake_snippet, func_get_include_directive): Reduce code
72973         duplication.
72974         (func_modules_transitive_closure, func_modules_add_dummy,
72975         func_modules_notice, func_modules_to_filelist, func_add_file,
72976         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
72977         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
72978         func_create_testdir, func_create_megatestdir): Update documentation.
72980 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72982         * gnulib-tool (func_cache_lookup_module): Store the module name
72983         belonging to the cache variable; error out if two different
72984         module names map to the same cache variable name.
72986 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72988         gnulib-tool: Make caching optional.
72989         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
72990         Update matching short versions of --no-changelog.
72991         (func_usage): Update.
72992         (sed_extract_cache_prog): Renamed from ...
72993         (sed_extract_prog): ... this; revert to old extraction script.
72994         (func_get_description, func_get_status)
72995         (func_get_notice, func_get_applicability, func_get_filelist)
72996         (func_get_dependencies, func_get_autoconf_early_snippet)
72997         (func_get_autoconf_snippet, func_get_automake_snippet)
72998         (func_get_include_directive, func_get_link_directive)
72999         (func_get_license, func_get_maintainer): If $do_cache is false,
73000         use old, non-caching extraction scripts.
73001         Suggestion by Bruno Haible.
73003 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73005         gnulib-tool: cache module metainformation.
73006         * gnulib-tool (sed_extract_prog): Match newline before each
73007         header, and rewrite header to a shell variable suffix.
73008         (func_cache_var, func_cache_lookup_module): New functions,
73009         to turn a module name into a cache variable prefix, and to
73010         look up and cache module metainformation.
73011         (func_get_description, func_get_status)
73012         (func_get_notice, func_get_applicability, func_get_filelist)
73013         (func_get_dependencies, func_get_autoconf_early_snippet)
73014         (func_get_autoconf_snippet, func_get_automake_snippet)
73015         (func_get_include_directive, func_get_link_directive)
73016         (func_get_license, func_get_maintainer): Use
73017         func_cache_lookup_module.
73019 2010-02-07  Bruno Haible  <bruno@clisp.org>
73021         fnctl: Fix missing dependency.
73022         * modules/fcntl (Depends-on): Add getdtablesize.
73023         Reported by John W. Eaton <jwe@gnu.org>.
73025 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
73027         Argp: fix recognition of short alias options.
73029         * lib/argp-parse.c (convert_options): Fix improper use of
73030         `|' between character values.
73031         * tests/test-argp.c (group1_option): New alias option
73032         --read (-r).
73033         (group1_parser): Special handling for 'r'.
73034         (test15): New test case.
73035         (test_fun): Add test15.
73036         * tests/test-argp-2.sh: Update expected --help and --usage
73037         outputs.
73039 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
73041         * tests/test-argp.c: Fix indentation.
73043 2010-02-04  Eric Blake  <ebb9@byu.net>
73045         gettimeofday: expose type of second argument
73046         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
73047         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
73048         * tests/test-gettimeofday.c: Use it to silence warning.
73049         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
73050         the issue.
73052 2010-02-03  Jim Meyering  <meyering@redhat.com>
73054         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
73055         * lib/regcomp.c (TYPE_SIGNED): Define.
73056         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
73058         regcomp.c: avoid a new -Wshadow warning
73059         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
73061 2010-02-01  Jim Meyering  <meyering@redhat.com>
73063         removing useless parentheses in cpp #define directives
73064         For motivation, see commit c0221df4, "define STREQ(a,b)
73065         consistently, removing useless parentheses"
73066         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
73067         * lib/mountlist.c (MNT_IGNORE): Likewise.
73068         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
73070 2010-02-01  Eric Blake  <ebb9@byu.net>
73072         sys_time: use link-warning
73073         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
73074         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
73075         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
73076         * modules/sys_time (Depends-on): Add warn-on-use.
73077         (Makefile.am): Always build replacement.
73078         (configure.ac): Update substitutions.
73079         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
73080         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
73081         bother with SYS_TIME_H.
73082         * modules/gettimeofday (configure.ac): Declare indicator.
73083         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
73084         in use.
73086         closein-tests: silence compiler warning
73087         * tests/test-closein.c (main): Ignore fread result.
73088         * modules/closein-tests (Depends-on): Add ignore-value.
73090         tests: silence warning about system return
73091         * tests/test-areadlink-with-size.c (main): Ignore system result.
73092         * tests/test-areadlink.c (main): Likewise.
73093         * tests/test-areadlinkat-with-size.c (main): Likewise.
73094         * tests/test-areadlinkat.c (main): Likewise.
73095         * tests/test-canonicalize-lgpl.c (main): Likewise.
73096         * tests/test-canonicalize.c (main): Likewise.
73097         * tests/test-chown.c (main): Likewise.
73098         * tests/test-fchownat.c (main): Likewise.
73099         * tests/test-fdutimensat.c (main): Likewise.
73100         * tests/test-fstatat.c (main): Likewise.
73101         * tests/test-futimens.c (main): Likewise.
73102         * tests/test-lchown.c (main): Likewise.
73103         * tests/test-link.c (main): Likewise.
73104         * tests/test-linkat.c (main): Likewise.
73105         * tests/test-lstat.c (main): Likewise.
73106         * tests/test-mkdir.c (main): Likewise.
73107         * tests/test-mkdirat.c (main): Likewise.
73108         * tests/test-mkfifo.c (main): Likewise.
73109         * tests/test-mkfifoat.c (main): Likewise.
73110         * tests/test-mknod.c (main): Likewise.
73111         * tests/test-readlink.c (main): Likewise.
73112         * tests/test-remove.c (main): Likewise.
73113         * tests/test-rename.c (main): Likewise.
73114         * tests/test-renameat.c (main): Likewise.
73115         * tests/test-rmdir.c (main): Likewise.
73116         * tests/test-symlink.c (main): Likewise.
73117         * tests/test-symlinkat.c (main): Likewise.
73118         * tests/test-unlink.c (main): Likewise.
73119         * tests/test-unlinkat.c (main): Likewise.
73120         * tests/test-utimens.c (main): Likewise.
73121         * tests/test-utimensat.c (main): Likewise.
73122         * modules/areadlink-tests (Depends-on): Add ignore-value.
73123         * modules/areadlink-with-size-tests (Depends-on): Likewise.
73124         * modules/areadlinkat-tests (Depends-on): Likewise.
73125         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
73126         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
73127         * modules/canonicalize-tests (Depends-on): Likewise.
73128         * modules/chown-tests (Depends-on): Likewise.
73129         * modules/fdutimensat-tests (Depends-on): Likewise.
73130         * modules/futimens-tests (Depends-on): Likewise.
73131         * modules/lchown-tests (Depends-on): Likewise.
73132         * modules/link-tests (Depends-on): Likewise.
73133         * modules/linkat-tests (Depends-on): Likewise.
73134         * modules/lstat-tests (Depends-on): Likewise.
73135         * modules/mkdir-tests (Depends-on): Likewise.
73136         * modules/mkfifo-tests (Depends-on): Likewise.
73137         * modules/mkfifoat-tests (Depends-on): Likewise.
73138         * modules/mknod-tests (Depends-on): Likewise.
73139         * modules/openat-tests (Depends-on): Likewise.
73140         * modules/readlink-tests (Depends-on): Likewise.
73141         * modules/remove-tests (Depends-on): Likewise.
73142         * modules/rename-tests (Depends-on): Likewise.
73143         * modules/renameat-tests (Depends-on): Likewise.
73144         * modules/rmdir-tests (Depends-on): Likewise.
73145         * modules/symlink-tests (Depends-on): Likewise.
73146         * modules/symlinkat-tests (Depends-on): Likewise.
73147         * modules/unlink-tests (Depends-on): Likewise.
73148         * modules/utimens-tests (Depends-on): Likewise.
73149         * modules/utimensat-tests (Depends-on): Likewise.
73151 2010-01-31  Bruno Haible  <bruno@clisp.org>
73153         Perform the same test for many <math.h> functions.
73154         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
73155         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
73156         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
73157         of gl_MATHFUNC.
73158         * modules/acos (configure.ac): Likewise.
73159         * modules/asin (configure.ac): Likewise.
73160         * modules/atan (configure.ac): Likewise.
73161         * modules/atan2 (configure.ac): Likewise.
73162         * modules/cbrt (configure.ac): Likewise.
73163         * modules/copysign (configure.ac): Likewise.
73164         * modules/cos (configure.ac): Likewise.
73165         * modules/cosh (configure.ac): Likewise.
73166         * modules/erf (configure.ac): Likewise.
73167         * modules/erfc (configure.ac): Likewise.
73168         * modules/exp (configure.ac): Likewise.
73169         * modules/fmod (configure.ac): Likewise.
73170         * modules/hypot (configure.ac): Likewise.
73171         * modules/j0 (configure.ac): Likewise.
73172         * modules/j1 (configure.ac): Likewise.
73173         * modules/jn (configure.ac): Likewise.
73174         * modules/lgamma (configure.ac): Likewise.
73175         * modules/log (configure.ac): Likewise.
73176         * modules/log10 (configure.ac): Likewise.
73177         * modules/log1p (configure.ac): Likewise.
73178         * modules/pow (configure.ac): Likewise.
73179         * modules/remainder (configure.ac): Likewise.
73180         * modules/sin (configure.ac): Likewise.
73181         * modules/sinh (configure.ac): Likewise.
73182         * modules/tan (configure.ac): Likewise.
73183         * modules/tanh (configure.ac): Likewise.
73184         * modules/y0 (configure.ac): Likewise.
73185         * modules/y1 (configure.ac): Likewise.
73186         * modules/yn (configure.ac): Likewise.
73187         Suggested by Paolo Bonzini.
73189 2010-01-31  Bruno Haible  <bruno@clisp.org>
73191         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
73193 2010-01-31  Bruno Haible  <bruno@clisp.org>
73195         Work around getdelim() bug on FreeBSD 8.0.
73196         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
73197         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
73198         not work.
73199         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
73200         is 1.
73201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
73202         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
73203         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
73204         a non-zero size.
73205         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
73207 2010-01-31  Bruno Haible  <bruno@clisp.org>
73209         Work around getline() bug on FreeBSD 8.0.
73210         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
73211         and a non-zero size.
73212         * tests/test-getline.c (main): Likewise.
73213         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
73214         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
73216 2010-01-28  Eric Blake  <ebb9@byu.net>
73218         regex: fix build failure
73219         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
73220         platforms.
73222 2010-01-28  Jim Meyering  <meyering@redhat.com>
73224         regex: do not ignore memory allocation failure
73225         * lib/regex_internal.c (create_cd_newstate): Detect
73226         re_node_set_init_copy failure.   Extracted from glibc commit
73227         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
73229         regex: sync more white-space changes from libc
73230         * lib/regex_internal.c: White-space only changes.
73231         * lib/regexec.c: Likewise.
73233         regex: add many uses of __attribute_warn_unused_result__
73234         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
73235         * lib/regexec.c: Likewise.
73236         Extracted from a messy glibc commit.
73238         regcomp.c: spelling and merge-artifact from glibc
73239         * lib/regcomp.c: Merge remainder of glibc's
73240         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
73242         regcomp.c: sync white-space changes from glibc
73243         * lib/regcomp.c: Merge to accommodate white space
73244         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
73246         regcomp.c: do not ignore internal return values
73247         * lib/regcomp.c: Do not ignore internal return values.
73248         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
73249         but without its white-space changes and spelling fixes.
73251         regex_internal.h: define __attribute_warn_unused_result__
73252         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
73254         maint: add a syntax-check rule to check for vulnerable Makefile.in
73255         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
73257 2010-01-27  Jim Meyering  <meyering@redhat.com>
73259         ncftpput-ftp: clean up spaces
73260         * build-aux/ncftpput-ftp: Make Copyright line consistent.
73261         Remove trailing blanks.
73263 2010-01-27  Simon Josefsson  <simon@josefsson.org>
73265         * build-aux/git-version-gen: Fix copyright statement.
73266         * build-aux/gnupload: Likewise.
73267         * tests/test-arcfour.c: Likewise.
73268         * tests/test-arctwo.c: Likewise.
73269         * tests/test-count-one-bits.c: Likewise.
73270         * tests/test-crc.c: Likewise.
73271         * tests/test-des.c: Likewise.
73272         * tests/test-gc-arcfour.c: Likewise.
73273         * tests/test-gc-arctwo.c: Likewise.
73274         * tests/test-gc-des.c: Likewise.
73275         * tests/test-gc-hmac-md5.c: Likewise.
73276         * tests/test-gc-hmac-sha1.c: Likewise.
73277         * tests/test-gc-md2.c: Likewise.
73278         * tests/test-gc-md4.c: Likewise.
73279         * tests/test-gc-md5.c: Likewise.
73280         * tests/test-gc-pbkdf2-sha1.c: Likewise.
73281         * tests/test-gc-rijndael.c: Likewise.
73282         * tests/test-gc-sha1.c: Likewise.
73283         * tests/test-gc.c: Likewise.
73284         * tests/test-gethostname.c: Likewise.
73285         * tests/test-gettimeofday.c: Likewise.
73286         * tests/test-hash.c: Likewise.
73287         * tests/test-hmac-md5.c: Likewise.
73288         * tests/test-hmac-sha1.c: Likewise.
73289         * tests/test-md2.c: Likewise.
73290         * tests/test-md4.c: Likewise.
73291         * tests/test-md5.c: Likewise.
73292         * tests/test-memchr.c: Likewise.
73293         * tests/test-memchr2.c: Likewise.
73294         * tests/test-memcmp.c: Likewise.
73295         * tests/test-memmem.c: Likewise.
73296         * tests/test-memrchr.c: Likewise.
73297         * tests/test-rawmemchr.c: Likewise.
73298         * tests/test-read-file.c: Likewise.
73299         * tests/test-rijndael.c: Likewise.
73300         * tests/test-sockets.c: Likewise.
73301         * tests/test-strchrnul.c: Likewise.
73302         * tests/test-strstr.c: Likewise.
73303         * tests/test-strtod.c: Likewise.
73304         * build-aux/ncftpput-ftp: Likewise.
73306 2010-01-26  Eric Blake  <ebb9@byu.net>
73308         ignore-value: update recommended header name
73309         * modules/ignore-value (Include): Only use <> for headers that
73310         exist in glibc.
73312 2010-01-26  Jim Meyering  <meyering@redhat.com>
73314         test-userspec.c: avoid compiler warnings
73315         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
73316         and "initialization discards qualifiers..." warnings.
73317         Put the first "uid" in its own scope, and make char* members "const".
73319 2010-01-25  Bruno Haible  <bruno@clisp.org>
73321         gnulib-tool: Make warning diagnostics consistent.
73322         * gnulib-tool (func_warning): New function.
73323         Use it everywhere where gnulib-tool produces output to stderr and it is
73324         not a fatal error.
73326 2010-01-25  Bruno Haible  <bruno@clisp.org>
73328         Fix test dependencies.
73329         * modules/xstrtol-tests (Depends-on): Add inttypes.
73330         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
73332 2010-01-25  Pádraig Brady  <P@draigBrady.com>
73334         syntax-check: detect incorrect boolean macro values in config.h
73335         * modules/maintainer-makefile (configure.ac): Parameterize the location
73336         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
73337         The logic is from Eric Blake and the location indicated by Jim Meyering.
73338         Note the more natural CONFIG_HEADER name is prohibited by automake
73339         for backwards compatibility reasons.
73340         * top/maint.mk (sc_Wundef_boolean): New rule.
73342 2010-01-25  Jim Meyering  <meyering@redhat.com>
73344         bootstrap: detect MacOS 10.6's shasum, too
73345         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
73346         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
73348 2010-01-23  Jim Meyering  <meyering@redhat.com>
73350         xstrtoll: new module
73351         * modules/xstrtoll: New file.
73352         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
73353         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
73354         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
73355         ./configure fails if you use this module and lack "long long".
73356         * modules/xstrtoll-tests: New module.
73357         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
73358         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
73359         new init.sh-based test framework.
73361 2010-01-24  Bruno Haible  <bruno@clisp.org>
73363         Tests for module 'yn'.
73364         * modules/yn-tests: New file.
73365         * tests/test-yn.c: New file.
73367         Tests for module 'y1'.
73368         * modules/y1-tests: New file.
73369         * tests/test-y1.c: New file.
73371         Tests for module 'y0'.
73372         * modules/y0-tests: New file.
73373         * tests/test-y0.c: New file.
73375         Tests for module 'tanh'.
73376         * modules/tanh-tests: New file.
73377         * tests/test-tanh.c: New file.
73379         Tests for module 'tan'.
73380         * modules/tan-tests: New file.
73381         * tests/test-tan.c: New file.
73383         Tests for module 'sqrt'.
73384         * modules/sqrt-tests: New file.
73385         * tests/test-sqrt.c: New file.
73387         Tests for module 'sinh'.
73388         * modules/sinh-tests: New file.
73389         * tests/test-sinh.c: New file.
73391         Tests for module 'sin'.
73392         * modules/sin-tests: New file.
73393         * tests/test-sin.c: New file.
73395         Tests for module 'rint'.
73396         * modules/rint-tests: New file.
73397         * tests/test-rint.c: New file.
73399         Tests for module 'remainder'.
73400         * modules/remainder-tests: New file.
73401         * tests/test-remainder.c: New file.
73403         Tests for module 'pow'.
73404         * modules/pow-tests: New file.
73405         * tests/test-pow.c: New file.
73407         Tests for module 'nextafter'.
73408         * modules/nextafter-tests: New file.
73409         * tests/test-nextafter.c: New file.
73411         Tests for module 'modf'.
73412         * modules/modf-tests: New file.
73413         * tests/test-modf.c: New file.
73415         Tests for module 'logb'.
73416         * modules/logb-tests: New file.
73417         * tests/test-logb.c: New file.
73419         Tests for module 'log1p'.
73420         * modules/log1p-tests: New file.
73421         * tests/test-log1p.c: New file.
73423         Tests for module 'log10'.
73424         * modules/log10-tests: New file.
73425         * tests/test-log10.c: New file.
73427         Tests for module 'log'.
73428         * modules/log-tests: New file.
73429         * tests/test-log.c: New file.
73431         Tests for module 'lgamma'.
73432         * modules/lgamma-tests: New file.
73433         * tests/test-lgamma.c: New file.
73435         Tests for module 'ldexp'.
73436         * modules/ldexp-tests: New file.
73437         * tests/test-ldexp.c: New file.
73439         Tests for module 'jn'.
73440         * modules/jn-tests: New file.
73441         * tests/test-jn.c: New file.
73443         Tests for module 'j1'.
73444         * modules/j1-tests: New file.
73445         * tests/test-j1.c: New file.
73447         Tests for module 'j0'.
73448         * modules/j0-tests: New file.
73449         * tests/test-j0.c: New file.
73451         Tests for module 'hypot'.
73452         * modules/hypot-tests: New file.
73453         * tests/test-hypot.c: New file.
73455         Tests for module 'fmod'.
73456         * modules/fmod-tests: New file.
73457         * tests/test-fmod.c: New file.
73459         Tests for module 'fabs'.
73460         * modules/fabs-tests: New file.
73461         * tests/test-fabs.c: New file.
73463         Tests for module 'exp'.
73464         * modules/exp-tests: New file.
73465         * tests/test-exp.c: New file.
73467         Tests for module 'erfc'.
73468         * modules/erfc-tests: New file.
73469         * tests/test-erfc.c: New file.
73471         Tests for module 'erf'.
73472         * modules/erf-tests: New file.
73473         * tests/test-erf.c: New file.
73475         Tests for module 'cosh'.
73476         * modules/cosh-tests: New file.
73477         * tests/test-cosh.c: New file.
73479         Tests for module 'cos'.
73480         * modules/cos-tests: New file.
73481         * tests/test-cos.c: New file.
73483         Tests for module 'copysign'.
73484         * modules/copysign-tests: New file.
73485         * tests/test-copysign.c: New file.
73487         Tests for module 'cbrt'.
73488         * modules/cbrt-tests: New file.
73489         * tests/test-cbrt.c: New file.
73491         Tests for module 'atan2'.
73492         * modules/atan2-tests: New file.
73493         * tests/test-atan2.c: New file.
73495         Tests for module 'atan'.
73496         * modules/atan-tests: New file.
73497         * tests/test-atan.c: New file.
73499         Tests for module 'asin'.
73500         * modules/asin-tests: New file.
73501         * tests/test-asin.c: New file.
73503         Tests for module 'acos'.
73504         * modules/acos-tests: New file.
73505         * tests/test-acos.c: New file.
73507 2010-01-24  Bruno Haible  <bruno@clisp.org>
73509         Fix tests for common <math.h> functions.
73510         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
73511         code snippet that references the function pointer, rather than merely
73512         calling the function. Substitute the FUNC_LIBM variable.
73513         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
73514         * modules/acos (configure.ac): Likewise.
73515         * modules/asin (configure.ac): Likewise.
73516         * modules/atan (configure.ac): Likewise.
73517         * modules/atan2 (configure.ac): Likewise.
73518         * modules/cbrt (configure.ac): Likewise.
73519         * modules/copysign (configure.ac): Likewise.
73520         * modules/cos (configure.ac): Likewise.
73521         * modules/cosh (configure.ac): Likewise.
73522         * modules/erf (configure.ac): Likewise.
73523         * modules/erfc (configure.ac): Likewise.
73524         * modules/exp (configure.ac): Likewise.
73525         * modules/fabs (configure.ac): Likewise.
73526         * modules/fmod (configure.ac): Likewise.
73527         * modules/hypot (configure.ac): Likewise.
73528         * modules/j0 (configure.ac): Likewise.
73529         * modules/j1 (configure.ac): Likewise.
73530         * modules/jn (configure.ac): Likewise.
73531         * modules/ldexp (configure.ac): Likewise.
73532         * modules/lgamma (configure.ac): Likewise.
73533         * modules/log (configure.ac): Likewise.
73534         * modules/log10 (configure.ac): Likewise.
73535         * modules/log1p (configure.ac): Likewise.
73536         * modules/logb (configure.ac): Likewise.
73537         * modules/modf (configure.ac): Likewise.
73538         * modules/nextafter (configure.ac): Likewise.
73539         * modules/pow (configure.ac): Likewise.
73540         * modules/remainder (configure.ac): Likewise.
73541         * modules/rint (configure.ac): Likewise.
73542         * modules/sin (configure.ac): Likewise.
73543         * modules/sinh (configure.ac): Likewise.
73544         * modules/tan (configure.ac): Likewise.
73545         * modules/tanh (configure.ac): Likewise.
73546         * modules/y0 (configure.ac): Likewise.
73547         * modules/y1 (configure.ac): Likewise.
73548         * modules/yn (configure.ac): Likewise.
73550 2010-01-24  Bruno Haible  <bruno@clisp.org>
73552         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
73553         * tests/test-acosl.c (x): New variable.
73554         (main): Store argument in x and fetch it from x.
73555         * tests/test-asinl.c (x): New variable.
73556         (main): Store argument in x and fetch it from x.
73557         * tests/test-atanl.c (x): New variable.
73558         (main): Store argument in x and fetch it from x.
73559         * tests/test-cosl.c (x): New variable.
73560         (main): Store argument in x and fetch it from x.
73561         * tests/test-expl.c (x): New variable.
73562         (main): Store argument in x and fetch it from x.
73563         * tests/test-logl.c (x): New variable.
73564         (main): Store argument in x and fetch it from x.
73565         * tests/test-sinl.c (x): New variable.
73566         (main): Store argument in x and fetch it from x.
73567         * tests/test-sqrtl.c (x): New variable.
73568         (main): Store argument in x and fetch it from x.
73569         * tests/test-tanl.c (x): New variable.
73570         (main): Store argument in x and fetch it from x.
73572 2010-01-24  Bruno Haible  <bruno@clisp.org>
73574         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
73575         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
73576         assignments to the initial TESTS_ENVIRONMENT.
73577         * doc/gnulib.texi (Unit test modules): Document it.
73578         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
73579         TESTS_ENVIRONMENT.
73580         * modules/btowc-tests (Makefile.am): Likewise.
73581         * modules/c-stack-tests (Makefile.am): Likewise.
73582         * modules/c-strcase-tests (Makefile.am): Likewise.
73583         * modules/copy-file-tests (Makefile.am): Likewise.
73584         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
73585         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
73586         * modules/mbrtowc-tests (Makefile.am): Likewise.
73587         * modules/mbscasecmp-tests (Makefile.am): Likewise.
73588         * modules/mbscasestr-tests (Makefile.am): Likewise.
73589         * modules/mbschr-tests (Makefile.am): Likewise.
73590         * modules/mbscspn-tests (Makefile.am): Likewise.
73591         * modules/mbsinit-tests (Makefile.am): Likewise.
73592         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
73593         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
73594         * modules/mbspbrk-tests (Makefile.am): Likewise.
73595         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
73596         * modules/mbsrchr-tests (Makefile.am): Likewise.
73597         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
73598         * modules/mbsspn-tests (Makefile.am): Likewise.
73599         * modules/mbsstr-tests (Makefile.am): Likewise.
73600         * modules/nl_langinfo-tests (Makefile.am): Likewise.
73601         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
73602         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
73603         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
73604         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
73605         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
73606         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
73607         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
73608         * modules/wcrtomb-tests (Makefile.am): Likewise.
73609         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
73610         * modules/wcsrtombs-tests (Makefile.am): Likewise.
73611         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
73612         assignments from TESTS_ENVIRONMENT.
73613         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
73614         augmentation.
73615         * modules/argp-version-etc-tests (Makefile.am): Likewise.
73616         * modules/atexit-tests (Makefile.am): Likewise.
73617         * modules/binary-io-tests (Makefile.am): Likewise.
73618         * modules/closein-tests (Makefile.am): Likewise.
73619         * modules/dprintf-posix-tests (Makefile.am): Likewise.
73620         * modules/exclude-tests (Makefile.am): Likewise.
73621         * modules/fflush-tests (Makefile.am): Likewise.
73622         * modules/fpending-tests (Makefile.am): Likewise.
73623         * modules/fprintf-posix-tests (Makefile.am): Likewise.
73624         * modules/freadahead-tests (Makefile.am): Likewise.
73625         * modules/freadptr-tests (Makefile.am): Likewise.
73626         * modules/freadseek-tests (Makefile.am): Likewise.
73627         * modules/fseek-tests (Makefile.am): Likewise.
73628         * modules/fseeko-tests (Makefile.am): Likewise.
73629         * modules/ftell-tests (Makefile.am): Likewise.
73630         * modules/ftello-tests (Makefile.am): Likewise.
73631         * modules/idpriv-drop-tests (Makefile.am): Likewise.
73632         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
73633         * modules/lseek-tests (Makefile.am): Likewise.
73634         * modules/parse-duration-tests (Makefile.am): Likewise.
73635         * modules/perror-tests (Makefile.am): Likewise.
73636         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
73637         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
73638         * modules/pipe-tests (Makefile.am): Likewise.
73639         * modules/pread-tests (Makefile.am): Likewise.
73640         * modules/printf-posix-tests (Makefile.am): Likewise.
73641         * modules/select-tests (Makefile.am): Likewise.
73642         * modules/sigpipe-tests (Makefile.am): Likewise.
73643         * modules/tsearch-tests (Makefile.am): Likewise.
73644         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
73645         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
73646         * modules/uniname/uniname-tests (Makefile.am): Likewise.
73647         * modules/uniwidth/width-tests (Makefile.am): Likewise.
73648         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
73649         * modules/version-etc-tests (Makefile.am): Likewise.
73650         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
73651         * modules/vprintf-posix-tests (Makefile.am): Likewise.
73652         * modules/xalloc-die-tests (Makefile.am): Likewise.
73653         * modules/xprintf-posix-tests (Makefile.am): Likewise.
73654         * modules/xstrtoimax-tests (Makefile.am): Likewise.
73655         * modules/xstrtol-tests (Makefile.am): Likewise.
73656         * modules/xstrtoumax-tests (Makefile.am): Likewise.
73657         * modules/yesno-tests (Makefile.am): Likewise.
73658         Suggested by Jim Meyering.
73660 2010-01-24  Bruno Haible  <bruno@clisp.org>
73662         More documentation.
73663         * doc/gnulib.texi (Writing modules): New chapter.
73664         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
73665         the new chapter.
73667 2010-01-24  Jim Meyering  <meyering@redhat.com>
73669         maint.mk: do not prepend "./" after filtering
73670         * top/maint.mk (_prepend_srcdir_prefix): New variable
73671         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
73672         "./" when $(srcdir) is ".".
73674         define STREQ(a,b) consistently, removing useless parentheses
73675         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
73676         since the only risk is that "a" or "b" contains an unparenthesized
73677         comma, but if either did that, STREQ would have 3 or more arguments.
73678         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
73679         * lib/fts.c (STREQ): Remove unnecessary parentheses.
73680         * lib/hash-triple.c (STREQ): Likewise.
73681         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
73682         * lib/getugroups.c (STREQ): Likewise.
73684 2010-01-23  Jim Meyering  <meyering@redhat.com>
73686         maint.mk: fix syntax-check in a non-srcdir build directory
73687         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
73688         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
73690 2010-01-22  Jim Meyering  <meyering@redhat.com>
73692         userspec: add unit tests
73693         * tests/test-userspec.c: New file.
73694         * modules/userspec-tests: Likewise.
73696 2010-01-21  Jim Meyering  <meyering@redhat.com>
73698         maint.mk: handle source file names containing "." robustly
73699         * top/maint.mk (_dot_escaped_srcdir): Define.
73700         (VC_LIST): Use it in LHS of sed substitution.
73702 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
73704         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
73705         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
73706         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
73707         from a non-srcdir build.
73709 2010-01-20  Eric Blake  <ebb9@byu.net>
73711         warn-on-use: use instead of link-warning
73712         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
73713         * modules/unistd (Depends-on, Makefile.am): Likewise.
73714         * modules/arpa_inet (Depends-on): Replace link-warning with
73715         warn-on-use.
73716         (Makefile.am): Update rules accordingly.
73717         * modules/ctype (Depends-on, Makefile.am): Likewise.
73718         * modules/dirent (Depends-on, Makefile.am): Likewise.
73719         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
73720         * modules/inttypes (Depends-on, Makefile.am): Likewise.
73721         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73722         * modules/locale (Depends-on, Makefile.am): Likewise.
73723         * modules/math (Depends-on, Makefile.am): Likewise.
73724         * modules/search (Depends-on, Makefile.am): Likewise.
73725         * modules/signal (Depends-on, Makefile.am): Likewise.
73726         * modules/spawn (Depends-on, Makefile.am): Likewise.
73727         * modules/stdlib (Depends-on, Makefile.am): Likewise.
73728         * modules/string (Depends-on, Makefile.am): Likewise.
73729         * modules/strings (Depends-on, Makefile.am): Likewise.
73730         * modules/sys_file (Depends-on, Makefile.am): Likewise.
73731         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
73732         * modules/sys_select (Depends-on, Makefile.am): Likewise.
73733         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
73734         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
73735         * modules/sys_times (Depends-on, Makefile.am): Likewise.
73736         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73737         * modules/wchar (Depends-on, Makefile.am): Likewise.
73738         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
73739         should be poisoned.
73740         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
73741         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
73742         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
73743         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73744         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73745         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
73746         * m4/math_h.m4 (gl_MATH_H): Likewise.
73747         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73748         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
73749         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73750         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
73751         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
73752         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
73753         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
73754         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
73755         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
73756         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73757         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
73758         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
73759         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73760         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
73761         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
73762         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73763         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
73764         GL_LINK_WARNING.
73765         * lib/ctype.in.h: Likewise.
73766         * lib/dirent.in.h: Likewise.
73767         * lib/fcntl.in.h: Likewise.
73768         * lib/inttypes.in.h: Likewise.
73769         * lib/langinfo.in.h: Likewise.
73770         * lib/locale.in.h: Likewise.
73771         * lib/math.in.h: Likewise.
73772         * lib/search.in.h: Likewise.
73773         * lib/signal.in.h: Likewise.
73774         * lib/spawn.in.h: Likewise.
73775         * lib/stdio.in.h: Likewise.
73776         * lib/stdlib.in.h: Likewise.
73777         * lib/string.in.h: Likewise.
73778         * lib/strings.in.h: Likewise.
73779         * lib/sys_file.in.h: Likewise.
73780         * lib/sys_ioctl.in.h: Likewise.
73781         * lib/sys_select.in.h: Likewise.
73782         * lib/sys_socket.in.h: Likewise.
73783         * lib/sys_stat.in.h: Likewise.
73784         * lib/sys_times.in.h: Likewise.
73785         * lib/sys_utsname.in.h: Likewise.
73786         * lib/unistd.in.h: Likewise.
73787         * lib/wchar.in.h: Likewise.
73789 2010-01-20  Bruno Haible  <bruno@clisp.org>
73791         Avoid duplicate -lm.
73792         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
73793         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
73794         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
73795         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
73796         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
73797         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
73798         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
73799         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
73800         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
73801         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
73802         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
73803         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
73804         Reported by Paolo Bonzini.
73806 2010-01-19  Bruno Haible  <bruno@clisp.org>
73808         langinfo, nl_langinfo: Relicense under LGPLv2+.
73809         * modules/langinfo (License): Change to LGPLv2+.
73810         * modules/nl_langinfo (License): Likewise.
73811         Patch by David Lutterkort <lutter@redhat.com>.
73813 2010-01-19  Bruno Haible  <bruno@clisp.org>
73815         Avoid compilation error with cc on OSF/1 5.1.
73816         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
73817         statement, not before.
73818         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73820 2010-01-18  Bruno Haible  <bruno@clisp.org>
73822         Avoid a link error due to the __printf__ symbol.
73823         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
73824         and 2.6.x.
73825         (__format__, __printf__): Remove definitions.
73826         * lib/argp-fmtstream.h: Likewise.
73827         * lib/argp.h: Likewise.
73828         * lib/error.h: Likewise.
73829         * lib/vasnprintf.h: Likewise.
73830         * lib/xprintf.h: Likewise.
73831         * lib/xvasprintf.h: Likewise.
73832         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73834 2010-01-18  Bruno Haible  <bruno@clisp.org>
73836         Tests for module 'tanl'.
73837         * modules/tanl-tests: New file.
73838         * tests/test-tanl.c: New file.
73840         Tests for module 'sqrtl'.
73841         * modules/sqrtl-tests: New file.
73842         * tests/test-sqrtl.c: New file.
73844         Tests for module 'sinl'.
73845         * modules/sinl-tests: New file.
73846         * tests/test-sinl.c: New file.
73848         Tests for module 'logl'.
73849         * modules/logl-tests: New file.
73850         * tests/test-logl.c: New file.
73852         Tests for module 'expl'.
73853         * modules/expl-tests: New file.
73854         * tests/test-expl.c: New file.
73856         Tests for module 'cosl'.
73857         * modules/cosl-tests: New file.
73858         * tests/test-cosl.c: New file.
73860         Tests for module 'atanl'.
73861         * modules/atanl-tests: New file.
73862         * tests/test-atanl.c: New file.
73864         Tests for module 'asinl'.
73865         * modules/asinl-tests: New file.
73866         * tests/test-asinl.c: New file.
73868         Tests for module 'acosl'.
73869         * modules/acosl-tests: New file.
73870         * tests/test-acosl.c: New file.
73872         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73873         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
73874         tanl): Use the standard gnulib idiom.
73875         * lib/cosl.c: Don't include trigl.c and sincosl.c.
73876         * lib/sinl.c: Likewise.
73877         * lib/tanl.c: Don't include trigl.c.
73878         (kernel_tanl): Make static.
73879         * lib/sincosl.c: Include trigl.h first.
73880         * lib/trigl.c: Likewise.
73881         * m4/acosl.m4: New file.
73882         * m4/asinl.m4: New file.
73883         * m4/atanl.m4: New file.
73884         * m4/cosl.m4: New file.
73885         * m4/expl.m4: New file.
73886         * m4/logl.m4: New file.
73887         * m4/sinl.m4: New file.
73888         * m4/sqrtl.m4: New file.
73889         * m4/tanl.m4: New file.
73890         * m4/mathl.m4: Remove file.
73891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
73892         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73893         Don't initialize GNULIB_MATHL.
73894         * modules/acosl: New file.
73895         * modules/asinl: New file.
73896         * modules/atanl: New file.
73897         * modules/cosl: New file.
73898         * modules/expl: New file.
73899         * modules/logl: New file.
73900         * modules/sinl: New file.
73901         * modules/sqrtl: New file.
73902         * modules/tanl: New file.
73903         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
73904         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
73905         substitute GNULIB_MATHL.
73906         * modules/mathl: Rewritten.
73907         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
73908         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
73909         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
73910         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
73911         * doc/posix-functions/expl.texi: Mention the 'expl' module.
73912         * doc/posix-functions/logl.texi: Mention the 'logl' module.
73913         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
73914         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
73915         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
73917 2010-01-18  Bruno Haible  <bruno@clisp.org>
73919         sqrt: Make gl_FUNC_SQRT requirable.
73920         * m4/sqrt.m4: New file.
73921         * modules/sqrt (Files): Add it.
73922         (configure.ac): Invoke gl_FUNC_SQRT.
73924 2010-01-18  Bruno Haible  <bruno@clisp.org>
73926         New modules for common <math.h> functions.
73927         * m4/mathfunc.m4: New file.
73928         * modules/acos: New file.
73929         * modules/asin: New file.
73930         * modules/atan: New file.
73931         * modules/atan2: New file.
73932         * modules/cbrt: New file.
73933         * modules/copysign: New file.
73934         * modules/cos: New file.
73935         * modules/cosh: New file.
73936         * modules/erf: New file.
73937         * modules/erfc: New file.
73938         * modules/exp: New file.
73939         * modules/fabs: New file.
73940         * modules/fmod: New file.
73941         * modules/hypot: New file.
73942         * modules/j0: New file.
73943         * modules/j1: New file.
73944         * modules/jn: New file.
73945         * modules/ldexp: New file.
73946         * modules/lgamma: New file.
73947         * modules/log: New file.
73948         * modules/log10: New file.
73949         * modules/log1p: New file.
73950         * modules/logb: New file.
73951         * modules/modf: New file.
73952         * modules/nextafter: New file.
73953         * modules/pow: New file.
73954         * modules/remainder: New file.
73955         * modules/rint: New file.
73956         * modules/sin: New file.
73957         * modules/sinh: New file.
73958         * modules/sqrt: New file.
73959         * modules/tan: New file.
73960         * modules/tanh: New file.
73961         * modules/y0: New file.
73962         * modules/y1: New file.
73963         * modules/yn: New file.
73964         * doc/posix-functions/acos.texi: Mention the 'acos' module.
73965         * doc/posix-functions/asin.texi: Mention the 'asin' module.
73966         * doc/posix-functions/atan.texi: Mention the 'atan' module.
73967         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
73968         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
73969         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
73970         * doc/posix-functions/cos.texi: Mention the 'cos' module.
73971         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
73972         * doc/posix-functions/erf.texi: Mention the 'erf' module.
73973         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
73974         * doc/posix-functions/exp.texi: Mention the 'exp' module.
73975         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
73976         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
73977         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
73978         * doc/posix-functions/j0.texi: Mention the 'j0' module.
73979         * doc/posix-functions/j1.texi: Mention the 'j1' module.
73980         * doc/posix-functions/jn.texi: Mention the 'jn' module.
73981         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
73982         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
73983         * doc/posix-functions/log.texi: Mention the 'log' module.
73984         * doc/posix-functions/log10.texi: Mention the 'log10' module.
73985         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
73986         * doc/posix-functions/logb.texi: Mention the 'logb' module.
73987         * doc/posix-functions/modf.texi: Mention the 'modf' module.
73988         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
73989         * doc/posix-functions/pow.texi: Mention the 'pow' module.
73990         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
73991         * doc/posix-functions/rint.texi: Mention the 'rint' module.
73992         * doc/posix-functions/sin.texi: Mention the 'sin' module.
73993         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
73994         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
73995         * doc/posix-functions/tan.texi: Mention the 'tan' module.
73996         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
73997         * doc/posix-functions/y0.texi: Mention the 'y0' module.
73998         * doc/posix-functions/y1.texi: Mention the 'y1' module.
73999         * doc/posix-functions/yn.texi: Mention the 'yn' module.
74001 2010-01-18  Jim Meyering  <meyering@redhat.com>
74003         ignore-value: relax license to LGPLv2+
74004         * modules/ignore-value (License): Relax to LGPLv2+.
74006         getdate: don't leak when TZ contains two or more '"'s
74007         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
74008         double quote in TZ after the first one.
74010         readtokens: do not leak internal token_lengths buffer
74011         * lib/readtokens.c (readtokens): Free the local, lengths,
74012         when the supplied "token_lengths" parameter is NULL.
74014 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74016         Fix a couple of missing LIBTHREAD link failures on AIX.
74017         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
74018         $(LIBTHREAD).
74019         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
74021         Link test-poll against INET_PTON_LIB.
74022         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
74023         for inet_pton on Solaris 10.
74025 2010-01-17  Bruno Haible  <bruno@clisp.org>
74027         unistdio/*-sprintf: Fix typo in module description.
74028         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
74029         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
74030         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
74031         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
74032         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
74033         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
74034         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
74035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74037 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74039         gnulib-tool: fix filelist for AIX, HP-UX ksh.
74040         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
74041         variables in shell case patterns, for AIX and HP-UX ksh.
74043         Split large sed scripts, for HP-UX sed.
74044         * modules/stdio: Split sed scripts around 50 sed commands,
74045         to avoid HP-UX limit of 99 commands, in the near future.
74046         * modules/string: Likewise.
74047         * modules/unistd: Likewise.
74049         gnulib-tool: avoid writing in the current directory.
74050         * gnulib-tool (func_emit_lib_Makefile_am)
74051         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
74052         not in the current directory, so concurrent gnulib-tool
74053         instances do not interfere.
74055 2010-01-16  Jim Meyering  <meyering@redhat.com>
74057         doc: update users.txt
74058         * users.txt: Add grep.
74059         (diffutils, gzip): Update URLs.
74061 2010-01-12  Bruno Haible  <bruno@clisp.org>
74063         posix_spawn: Avoid test failure on Cygwin.
74064         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
74065         characters.
74066         Reported by Simon Josefsson.
74068 2010-01-12  Bruno Haible  <bruno@clisp.org>
74070         * tests/test-cond.c (main): When skipping the test, show the reason.
74072 2010-01-12  Simon Josefsson  <simon@josefsson.org>
74074         * lib/striconv.c (str_cd_iconv): Avoid if before free.
74076 2010-01-12  Simon Josefsson  <simon@josefsson.org>
74078         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
74079         VC_LIST_ALWAYS_EXCLUDE_REGEX.
74081 2010-01-12  Eric Blake  <ebb9@byu.net>
74083         build: guarantee AS_VAR_IF
74084         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
74085         (gl_AS_VAR_IF): Move...
74086         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
74087         Reported by Simon Josefsson.
74089 2010-01-12  Simon Josefsson  <simon@josefsson.org>
74091         * lib/stdio.in.h: Fix typo.
74093 2010-01-12  Simon Josefsson  <simon@josefsson.org>
74095         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
74096         libgpg-error.
74098 2010-01-12  Simon Josefsson  <simon@josefsson.org>
74100         * tests/test-xalloc-die.sh: Use $EXEEXT.
74102 2010-01-12  Simon Josefsson  <simon@josefsson.org>
74103             Bruno Haible  <bruno@clisp.org>
74105         getlogin, getlogin_r: Avoid test failure.
74106         * tests/test-getlogin.c: Include <stdio.h>.
74107         (main): Skip the test when the function fails because stdin is not a
74108         tty.
74109         * tests/test-getlogin_r.c: Include <stdio.h>.
74110         (main): Skip the test when the function fails because stdin is not a
74111         tty.
74113 2010-01-11  Eric Blake  <ebb9@byu.net>
74115         tests: avoid more large file warnings
74116         * tests/test-fflush.c: Avoid warning about ftell use.
74117         * tests/test-fseek.c: Avoid warning about fseek use.
74119 2010-01-10  Bruno Haible  <bruno@clisp.org>
74121         nproc: Work better on Linux when /proc and /sys are not mounted.
74122         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
74123         as lower bound when, on glibc/Linux systems,
74124         sysconf (_SC_NPROCESSORS_CONF) returns 1.
74125         Suggested by Pádraig Brady <P@draigbrady.com>.
74126         Reported by Dmitry V. Levin <ldv@altlinux.org>.
74128         nproc: Refactor.
74129         * lib/nproc.c (num_processors_via_affinity_mask): New function,
74130         extracted from num_processors.
74131         (num_processors): Call it.
74133 2010-01-11  Jim Meyering  <meyering@redhat.com>
74135         utimecmp: avoid new warning from upcoming gcc-4.5.0
74136         * lib/utimecmp.c (BILLION): Define using #define rather than an
74137         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
74139 2010-01-11  Eric Blake  <ebb9@byu.net>
74141         math: add portability warnings for classification macros
74142         * modules/math (Depends-on): Add warn-on-use.
74143         (Makefile.am): Provide new substitutions.
74144         * m4/math_h.m4 (gl_MATH_H): Require inline.
74145         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
74146         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
74147         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
74148         implement warnings.
74150         unistd: warn on use of environ without module
74151         * modules/unistd (Depends-on): Add warn-on-use.
74152         (Makefile.am): Provide new substitutions.
74153         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
74154         * lib/unistd.in.h (environ): Wrap with a warning helper function.
74156         stdio: warn on suspicious uses
74157         * modules/stdio (Depends-on): Add warn-on-use.
74158         (Makefile.am): Provide new substitutions.
74159         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
74160         fseeko.
74161         * lib/stdio.in.h (gets): Always warn on use.
74162         (fseek, ftell): Adjust when warnings are issued, and honor
74163         _GL_NO_LARGE_FILES as a way to silence the warning.
74164         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
74165         any warning about large file offsets.
74166         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
74167         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
74168         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
74169         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
74170         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
74171         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
74172         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
74173         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
74175         warn-on-use: new module
74176         * modules/warn-on-use: New file.
74177         * build-aux/warn-on-use.h: Likewise.
74178         * m4/warn-on-use.m4: Likewise.
74179         * MODULES.html.sh (Support for building): Mention it.
74181 2010-01-10  Bruno Haible  <bruno@clisp.org>
74183         Tests for module 'unistr/u32-strdup'.
74184         * modules/unistr/u32-strdup-tests: New file.
74185         * tests/unistr/test-u32-strdup.c: New file.
74187         Tests for module 'unistr/u16-strdup'.
74188         * modules/unistr/u16-strdup-tests: New file.
74189         * tests/unistr/test-u16-strdup.c: New file.
74191         Tests for module 'unistr/u8-strdup'.
74192         * modules/unistr/u8-strdup-tests: New file.
74193         * tests/unistr/test-u8-strdup.c: New file.
74194         * tests/unistr/test-strdup.h: New file.
74196         Tests for module 'unistr/u32-strncmp'.
74197         * modules/unistr/u32-strncmp-tests: New file.
74198         * tests/unistr/test-u32-strncmp.c: New file.
74200         Tests for module 'unistr/u16-strncmp'.
74201         * modules/unistr/u16-strncmp-tests: New file.
74202         * tests/unistr/test-u16-strncmp.c: New file.
74204         Tests for module 'unistr/u8-strncmp'.
74205         * modules/unistr/u8-strncmp-tests: New file.
74206         * tests/unistr/test-u8-strncmp.c: New file.
74207         * tests/unistr/test-strncmp.h: New file.
74209         Tests for module 'unistr/u32-strcoll'.
74210         * modules/unistr/u32-strcoll-tests: New file.
74211         * tests/unistr/test-u32-strcoll.c: New file.
74213         Tests for module 'unistr/u16-strcoll'.
74214         * modules/unistr/u16-strcoll-tests: New file.
74215         * tests/unistr/test-u16-strcoll.c: New file.
74217         Tests for module 'unistr/u8-strcoll'.
74218         * modules/unistr/u8-strcoll-tests: New file.
74219         * tests/unistr/test-u8-strcoll.c: New file.
74221         Tests for module 'unistr/u32-strcmp'.
74222         * modules/unistr/u32-strcmp-tests: New file.
74223         * tests/unistr/test-u32-strcmp.c: New file.
74224         * tests/unistr/test-u32-strcmp.h: New file.
74226         Tests for module 'unistr/u16-strcmp'.
74227         * modules/unistr/u16-strcmp-tests: New file.
74228         * tests/unistr/test-u16-strcmp.c: New file.
74229         * tests/unistr/test-u16-strcmp.h: New file.
74231         Tests for module 'unistr/u8-strcmp'.
74232         * modules/unistr/u8-strcmp-tests: New file.
74233         * tests/unistr/test-u8-strcmp.c: New file.
74234         * tests/unistr/test-u8-strcmp.h: New file.
74235         * tests/unistr/test-strcmp.h: New file.
74237         Tests for module 'unistr/u32-strncat'.
74238         * modules/unistr/u32-strncat-tests: New file.
74239         * tests/unistr/test-u32-strncat.c: New file.
74241         Tests for module 'unistr/u16-strncat'.
74242         * modules/unistr/u16-strncat-tests: New file.
74243         * tests/unistr/test-u16-strncat.c: New file.
74245         Tests for module 'unistr/u8-strncat'.
74246         * modules/unistr/u8-strncat-tests: New file.
74247         * tests/unistr/test-u8-strncat.c: New file.
74248         * tests/unistr/test-strncat.h: New file.
74250         Tests for module 'unistr/u32-strcat'.
74251         * modules/unistr/u32-strcat-tests: New file.
74252         * tests/unistr/test-u32-strcat.c: New file.
74254         Tests for module 'unistr/u16-strcat'.
74255         * modules/unistr/u16-strcat-tests: New file.
74256         * tests/unistr/test-u16-strcat.c: New file.
74258         Tests for module 'unistr/u8-strcat'.
74259         * modules/unistr/u8-strcat-tests: New file.
74260         * tests/unistr/test-u8-strcat.c: New file.
74261         * tests/unistr/test-strcat.h: New file.
74263         Tests for module 'unistr/u32-stpncpy'.
74264         * modules/unistr/u32-stpncpy-tests: New file.
74265         * tests/unistr/test-u32-stpncpy.c: New file.
74267         Tests for module 'unistr/u16-stpncpy'.
74268         * modules/unistr/u16-stpncpy-tests: New file.
74269         * tests/unistr/test-u16-stpncpy.c: New file.
74271         Tests for module 'unistr/u8-stpncpy'.
74272         * modules/unistr/u8-stpncpy-tests: New file.
74273         * tests/unistr/test-u8-stpncpy.c: New file.
74274         * tests/unistr/test-stpncpy.h: New file.
74276         Tests for module 'unistr/u32-strncpy'.
74277         * modules/unistr/u32-strncpy-tests: New file.
74278         * tests/unistr/test-u32-strncpy.c: New file.
74280         Tests for module 'unistr/u16-strncpy'.
74281         * modules/unistr/u16-strncpy-tests: New file.
74282         * tests/unistr/test-u16-strncpy.c: New file.
74284         Tests for module 'unistr/u8-strncpy'.
74285         * modules/unistr/u8-strncpy-tests: New file.
74286         * tests/unistr/test-u8-strncpy.c: New file.
74287         * tests/unistr/test-strncpy.h: New file.
74289         Tests for module 'unistr/u32-stpcpy'.
74290         * modules/unistr/u32-stpcpy-tests: New file.
74291         * tests/unistr/test-u32-stpcpy.c: New file.
74293         Tests for module 'unistr/u16-stpcpy'.
74294         * modules/unistr/u16-stpcpy-tests: New file.
74295         * tests/unistr/test-u16-stpcpy.c: New file.
74297         Tests for module 'unistr/u8-stpcpy'.
74298         * modules/unistr/u8-stpcpy-tests: New file.
74299         * tests/unistr/test-u8-stpcpy.c: New file.
74300         * tests/unistr/test-stpcpy.h: New file.
74302         Tests for module 'unistr/u32-strcpy'.
74303         * modules/unistr/u32-strcpy-tests: New file.
74304         * tests/unistr/test-u32-strcpy.c: New file.
74306         Tests for module 'unistr/u16-strcpy'.
74307         * modules/unistr/u16-strcpy-tests: New file.
74308         * tests/unistr/test-u16-strcpy.c: New file.
74310         Tests for module 'unistr/u8-strcpy'.
74311         * modules/unistr/u8-strcpy-tests: New file.
74312         * tests/unistr/test-u8-strcpy.c: New file.
74313         * tests/unistr/test-strcpy.h: New file.
74315         Tests for module 'unistr/u32-strnlen'.
74316         * modules/unistr/u32-strnlen-tests: New file.
74317         * tests/unistr/test-u32-strnlen.c: New file.
74319         Tests for module 'unistr/u16-strnlen'.
74320         * modules/unistr/u16-strnlen-tests: New file.
74321         * tests/unistr/test-u16-strnlen.c: New file.
74323         Tests for module 'unistr/u8-strnlen'.
74324         * modules/unistr/u8-strnlen-tests: New file.
74325         * tests/unistr/test-u8-strnlen.c: New file.
74326         * tests/unistr/test-strnlen.h: New file.
74328         Tests for module 'unistr/u32-strlen'.
74329         * modules/unistr/u32-strlen-tests: New file.
74330         * tests/unistr/test-u32-strlen.c: New file.
74332         Tests for module 'unistr/u16-strlen'.
74333         * modules/unistr/u16-strlen-tests: New file.
74334         * tests/unistr/test-u16-strlen.c: New file.
74336         Tests for module 'unistr/u8-strlen'.
74337         * modules/unistr/u8-strlen-tests: New file.
74338         * tests/unistr/test-u8-strlen.c: New file.
74340         Tests for module 'unistr/u32-prev'.
74341         * modules/unistr/u32-prev-tests: New file.
74342         * tests/unistr/test-u32-prev.c: New file.
74344         Tests for module 'unistr/u16-prev'.
74345         * modules/unistr/u16-prev-tests: New file.
74346         * tests/unistr/test-u16-prev.c: New file.
74348         Tests for module 'unistr/u8-prev'.
74349         * modules/unistr/u8-prev-tests: New file.
74350         * tests/unistr/test-u8-prev.c: New file.
74352         Tests for module 'unistr/u32-next'.
74353         * modules/unistr/u32-next-tests: New file.
74354         * tests/unistr/test-u32-next.c: New file.
74356         Tests for module 'unistr/u16-next'.
74357         * modules/unistr/u16-next-tests: New file.
74358         * tests/unistr/test-u16-next.c: New file.
74360         Tests for module 'unistr/u8-next'.
74361         * modules/unistr/u8-next-tests: New file.
74362         * tests/unistr/test-u8-next.c: New file.
74364         Tests for module 'unistr/u32-strmbtouc'.
74365         * modules/unistr/u32-strmbtouc-tests: New file.
74366         * tests/unistr/test-u32-strmbtouc.c: New file.
74368         Tests for module 'unistr/u16-strmbtouc'.
74369         * modules/unistr/u16-strmbtouc-tests: New file.
74370         * tests/unistr/test-u16-strmbtouc.c: New file.
74372         Tests for module 'unistr/u8-strmbtouc'.
74373         * modules/unistr/u8-strmbtouc-tests: New file.
74374         * tests/unistr/test-u8-strmbtouc.c: New file.
74376         Tests for module 'unistr/u32-strmblen'.
74377         * modules/unistr/u32-strmblen-tests: New file.
74378         * tests/unistr/test-u32-strmblen.c: New file.
74380         Tests for module 'unistr/u16-strmblen'.
74381         * modules/unistr/u16-strmblen-tests: New file.
74382         * tests/unistr/test-u16-strmblen.c: New file.
74384         Tests for module 'unistr/u8-strmblen'.
74385         * modules/unistr/u8-strmblen-tests: New file.
74386         * tests/unistr/test-u8-strmblen.c: New file.
74388         Tests for module 'unistr/u32-cpy-alloc'.
74389         * modules/unistr/u32-cpy-alloc-tests: New file.
74390         * tests/unistr/test-u32-cpy-alloc.c: New file.
74392         Tests for module 'unistr/u16-cpy-alloc'.
74393         * modules/unistr/u16-cpy-alloc-tests: New file.
74394         * tests/unistr/test-u16-cpy-alloc.c: New file.
74396         Tests for module 'unistr/u8-cpy-alloc'.
74397         * modules/unistr/u8-cpy-alloc-tests: New file.
74398         * tests/unistr/test-u8-cpy-alloc.c: New file.
74399         * tests/unistr/test-cpy-alloc.h: New file.
74401         Tests for module 'unistr/u32-mbsnlen'.
74402         * modules/unistr/u32-mbsnlen-tests: New file.
74403         * tests/unistr/test-u32-mbsnlen.c: New file.
74405         Tests for module 'unistr/u16-mbsnlen'.
74406         * modules/unistr/u16-mbsnlen-tests: New file.
74407         * tests/unistr/test-u16-mbsnlen.c: New file.
74409         Tests for module 'unistr/u8-mbsnlen'.
74410         * modules/unistr/u8-mbsnlen-tests: New file.
74411         * tests/unistr/test-u8-mbsnlen.c: New file.
74413         Tests for module 'unistr/u32-chr'.
74414         * modules/unistr/u32-chr-tests: New file.
74415         * tests/unistr/test-u32-chr.c: New file.
74417         Tests for module 'unistr/u16-chr'.
74418         * modules/unistr/u16-chr-tests: New file.
74419         * tests/unistr/test-u16-chr.c: New file.
74421         Tests for module 'unistr/u8-chr'.
74422         * modules/unistr/u8-chr-tests: New file.
74423         * tests/unistr/test-u8-chr.c: New file.
74424         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
74426         Tests for module 'unistr/u32-cmp2'.
74427         * modules/unistr/u32-cmp2-tests: New file.
74428         * tests/unistr/test-u32-cmp2.c: New file.
74430         Tests for module 'unistr/u16-cmp2'.
74431         * modules/unistr/u16-cmp2-tests: New file.
74432         * tests/unistr/test-u16-cmp2.c: New file.
74434         Tests for module 'unistr/u8-cmp2'.
74435         * modules/unistr/u8-cmp2-tests: New file.
74436         * tests/unistr/test-u8-cmp2.c: New file.
74437         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
74439         Tests for module 'unistr/u32-cmp'.
74440         * modules/unistr/u32-cmp-tests: New file.
74441         * tests/unistr/test-u32-cmp.c: New file.
74443         Tests for module 'unistr/u16-cmp'.
74444         * modules/unistr/u16-cmp-tests: New file.
74445         * tests/unistr/test-u16-cmp.c: New file.
74447         Tests for module 'unistr/u8-cmp'.
74448         * modules/unistr/u8-cmp-tests: New file.
74449         * tests/unistr/test-u8-cmp.c: New file.
74450         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
74452         Tests for module 'unistr/u32-set'.
74453         * modules/unistr/u32-set-tests: New file.
74454         * tests/unistr/test-u32-set.c: New file.
74456         Tests for module 'unistr/u16-set'.
74457         * modules/unistr/u16-set-tests: New file.
74458         * tests/unistr/test-u16-set.c: New file.
74460         Tests for module 'unistr/u8-set'.
74461         * modules/unistr/u8-set-tests: New file.
74462         * tests/unistr/test-u8-set.c: New file.
74463         * tests/unistr/test-set.h: New file.
74465         Tests for module 'unistr/u32-move'.
74466         * modules/unistr/u32-move-tests: New file.
74467         * tests/unistr/test-u32-move.c: New file.
74469         Tests for module 'unistr/u16-move'.
74470         * modules/unistr/u16-move-tests: New file.
74471         * tests/unistr/test-u16-move.c: New file.
74473         Tests for module 'unistr/u8-move'.
74474         * modules/unistr/u8-move-tests: New file.
74475         * tests/unistr/test-u8-move.c: New file.
74476         * tests/unistr/test-move.h: New file.
74478         Tests for module 'unistr/u32-cpy'.
74479         * modules/unistr/u32-cpy-tests: New file.
74480         * tests/unistr/test-u32-cpy.c: New file.
74482         Tests for module 'unistr/u16-cpy'.
74483         * modules/unistr/u16-cpy-tests: New file.
74484         * tests/unistr/test-u16-cpy.c: New file.
74486         Tests for module 'unistr/u8-cpy'.
74487         * modules/unistr/u8-cpy-tests: New file.
74488         * tests/unistr/test-u8-cpy.c: New file.
74489         * tests/unistr/test-cpy.h: New file.
74491 2010-01-09  Bruno Haible  <bruno@clisp.org>
74493         Tests for module 'unistr/u32-uctomb'.
74494         * modules/unistr/u32-uctomb-tests: New file.
74495         * tests/unistr/test-u32-uctomb.c: New file.
74497         Tests for module 'unistr/u16-uctomb'.
74498         * modules/unistr/u16-uctomb-tests: New file.
74499         * tests/unistr/test-u16-uctomb.c: New file.
74501         Tests for module 'unistr/u8-uctomb'.
74502         * modules/unistr/u8-uctomb-tests: New file.
74503         * tests/unistr/test-u8-uctomb.c: New file.
74505         Tests for module 'unistr/u32-mbtoucr'.
74506         * modules/unistr/u32-mbtoucr-tests: New file.
74507         * tests/unistr/test-u32-mbtoucr.c: New file.
74509         Tests for module 'unistr/u16-mbtoucr'.
74510         * modules/unistr/u16-mbtoucr-tests: New file.
74511         * tests/unistr/test-u16-mbtoucr.c: New file.
74513         Tests for module 'unistr/u8-mbtoucr'.
74514         * modules/unistr/u8-mbtoucr-tests: New file.
74515         * tests/unistr/test-u8-mbtoucr.c: New file.
74517         Tests for module 'unistr/u32-mbtouc'.
74518         * modules/unistr/u32-mbtouc-tests: New file.
74519         * tests/unistr/test-u32-mbtouc.c: New file.
74521         Tests for module 'unistr/u16-mbtouc'.
74522         * modules/unistr/u16-mbtouc-tests: New file.
74523         * tests/unistr/test-u16-mbtouc.c: New file.
74525         Tests for module 'unistr/u8-mbtouc'.
74526         * modules/unistr/u8-mbtouc-tests: New file.
74527         * tests/unistr/test-u8-mbtouc.c: New file.
74529         Tests for module 'unistr/u32-mbtouc-unsafe'.
74530         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
74531         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
74532         * tests/unistr/test-u32-mbtouc.h: New file.
74534         Tests for module 'unistr/u16-mbtouc-unsafe'.
74535         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
74536         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
74537         * tests/unistr/test-u16-mbtouc.h: New file.
74539         Tests for module 'unistr/u8-mbtouc-unsafe'.
74540         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
74541         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
74542         * tests/unistr/test-u8-mbtouc.h: New file.
74544         Tests for module 'unistr/u32-mblen'.
74545         * modules/unistr/u32-mblen-tests: New file.
74546         * tests/unistr/test-u32-mblen.c: New file.
74548         Tests for module 'unistr/u16-mblen'.
74549         * modules/unistr/u16-mblen-tests: New file.
74550         * tests/unistr/test-u16-mblen.c: New file.
74552         Tests for module 'unistr/u8-mblen'.
74553         * modules/unistr/u8-mblen-tests: New file.
74554         * tests/unistr/test-u8-mblen.c: New file.
74556         Tests for module 'unistr/u32-to-u16'.
74557         * modules/unistr/u32-to-u16-tests: New file.
74558         * tests/unistr/test-u32-to-u16.c: New file.
74560         Tests for module 'unistr/u32-to-u8'.
74561         * modules/unistr/u32-to-u8-tests: New file.
74562         * tests/unistr/test-u32-to-u8.c: New file.
74564         Tests for module 'unistr/u16-to-u32'.
74565         * modules/unistr/u16-to-u32-tests: New file.
74566         * tests/unistr/test-u16-to-u32.c: New file.
74568         Tests for module 'unistr/u16-to-u8'.
74569         * modules/unistr/u16-to-u8-tests: New file.
74570         * tests/unistr/test-u16-to-u8.c: New file.
74572         Tests for module 'unistr/u8-to-u32'.
74573         * modules/unistr/u8-to-u32-tests: New file.
74574         * tests/unistr/test-u8-to-u32.c: New file.
74576         Tests for module 'unistr/u8-to-u16'.
74577         * modules/unistr/u8-to-u16-tests: New file.
74578         * tests/unistr/test-u8-to-u16.c: New file.
74580         Tests for module 'unistr/u32-check'.
74581         * modules/unistr/u32-check-tests: New file.
74582         * tests/unistr/test-u32-check.c: New file.
74584         Tests for module 'unistr/u16-check'.
74585         * modules/unistr/u16-check-tests: New file.
74586         * tests/unistr/test-u16-check.c: New file.
74588         Tests for module 'unistr/u8-check'.
74589         * modules/unistr/u8-check-tests: New file.
74590         * tests/unistr/test-u8-check.c: New file.
74592         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
74593         (category_equals): New function.
74594         (main): Add more tests.
74595         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
74597         * tests/unictype/test-bidi_byname.c (main): Add more tests.
74599 2010-01-10  Bruno Haible  <bruno@clisp.org>
74601         unistr/u*-strcoll: Try harder to distinguish different strings.
74602         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
74603         compare s1 and s2 to see if they are different.
74605 2010-01-10  Bruno Haible  <bruno@clisp.org>
74607         unistr/u*-stpncpy: Fix the return value.
74608         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
74609         description of the return value consistent with stpncpy in glibc.
74610         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
74611         written non-NUL unit.
74613 2010-01-10  Bruno Haible  <bruno@clisp.org>
74615         unistr/u*-next: Add missing dependencies.
74616         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
74617         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
74618         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
74620 2010-01-10  Bruno Haible  <bruno@clisp.org>
74622         unistr/u8-mbsnlen: Fix return value for incomplete character.
74623         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
74624         u8_mblen.
74625         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
74626         Remove unistr/u8-mblen.
74627         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
74628         u16_mblen.
74629         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
74630         Remove unistr/u16-mblen.
74632 2010-01-10  Bruno Haible  <bruno@clisp.org>
74634         wchar: Fix compilation error when <wchar.h> is used from coreutils.
74635         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
74636         Reported by Brian Gough <bjg@gnu.org> and
74637         Chris Clayton <chris2553@googlemail.com> via
74638         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
74640 2010-01-09  Bruno Haible  <bruno@clisp.org>
74642         unistr/u16-to-u32: Reject invalid input.
74643         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
74644         u16_mbtouc.
74645         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
74646         Remove unistr/u16-mbtouc.
74648         unistr/u16-to-u8: Reject invalid input.
74649         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
74650         u16_mbtouc.
74651         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
74652         Remove unistr/u16-mbtouc.
74654         unistr/u8-to-u32: Reject invalid input.
74655         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
74656         u8_mbtouc.
74657         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
74658         Remove unistr/u8-mbtouc.
74660         unistr/u8-to-u16: Reject invalid input.
74661         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
74662         u8_mbtouc.
74663         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
74664         Remove unistr/u8-mbtouc.
74666 2010-01-09  Bruno Haible  <bruno@clisp.org>
74668         Tests for module 'getlogin'.
74669         * modules/getlogin-tests: New file.
74670         * tests/test-getlogin.c: New file.
74672         New module 'getlogin'.
74673         * lib/unistd.in.h (getlogin): New declaration.
74674         * lib/getlogin.c: New file.
74675         * m4/getlogin.m4: New file.
74676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
74677         HAVE_GETLOGIN.
74678         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
74679         HAVE_GETLOGIN.
74680         * modules/getlogin: New file.
74681         * doc/posix-functions/getlogin.texi: Mention the new module.
74682         Reported by John W. Eaton <jwe@gnu.org>.
74684 2010-01-09  Bruno Haible  <bruno@clisp.org>
74686         getlogin_r: Support for native Windows.
74687         * lib/getlogin_r.c: Include <windows.h>
74688         (getlogin_r): Implement for native Windows.
74689         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
74690         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
74691         via John W. Eaton <jwe@gnu.org>.
74693 2010-01-09  Bruno Haible  <bruno@clisp.org>
74695         getlogin_r: Small fixes.
74696         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
74697         succeeds.
74698         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
74699         before testing whether getlogin_r is declared. No need to set
74700         HAVE_DECL_GETLOGIN_R to 1.
74701         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
74703 2010-01-09  Bruno Haible  <bruno@clisp.org>
74705         * lib/unistd.in.h (getlogin_r): Add comment.
74707 2010-01-09  Bruno Haible  <bruno@clisp.org>
74709         Tests for module 'getlogin_r'.
74710         * modules/getlogin_r-tests: New file.
74711         * tests/test-getlogin_r.c: New file.
74713 2010-01-09  Jim Meyering  <meyering@redhat.com>
74715         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
74716         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
74717         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
74719 2010-01-08  Simon Josefsson  <simon@josefsson.org>
74721         * lib/dup2.c (rpl_dup2): Improve comment.
74723 2010-01-08  Eric Blake  <ebb9@byu.net>
74725         maint.mk: allow packages to add makefile @@ exceptions
74726         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
74727         (sc_makefile_check): Rename...
74728         (sc_makefile_at_at_check): ...to this, and use hook.
74730         dup2: work around mingw bug
74731         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
74732         Reported by Simon Josefsson.
74734 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
74736         glob: Fix C++ compilation.
74737         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
74738         C++.
74740 2010-01-07  Bruno Haible  <bruno@clisp.org>
74742         Fix indentation of wctype.in.h, broken since 2007-01-06.
74743         * lib/wctype.in.h: Fix indentation of preprocessor directives.
74745 2010-01-07  Bruno Haible  <bruno@clisp.org>
74747         mbslen: Avoid collision with system function.
74748         * lib/string.in.h [MirBSD]: Include <wchar.h>.
74749         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
74750         * m4/mbslen.m4: New file.
74751         * modules/mbslen (Files): Add it.
74752         (configure.ac): Invoke gl_MBSLEN.
74753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
74754         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
74755         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
74756         via Ian Beckwith <ianb@erislabs.net>.
74758 2010-01-07  Bruno Haible  <bruno@clisp.org>
74760         dirent: Document the last fix.
74761         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
74763 2010-01-07  Bruno Haible  <bruno@clisp.org>
74765         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
74766         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
74767         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
74768         va_list are defined.
74769         * doc/posix-headers/stdio.texi: Document the bug of missing types.
74770         Reported by Eric Blake.
74772 2010-01-07  Bruno Haible  <bruno@clisp.org>
74774         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
74775         * modules/xlist (Depends-on): Add 'list',
74776         * modules/xoset (Depends-on): Add 'oset'.
74777         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74779 2010-01-07  Bruno Haible  <bruno@clisp.org>
74781         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
74782         * doc/posix-functions/strncasecmp.texi: Likewise.
74784 2010-01-07  Bruno Haible  <bruno@clisp.org>
74786         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
74788 2010-01-07  John W. Eaton  <jwe@octave.org>
74790         wctype: allow C++ use
74791         * lib/wctype.in.h: Add extern "C" block for C++.
74793 2010-01-06  Eric Blake  <ebb9@byu.net>
74795         maint.mk: detect incorrect GFDL usage
74796         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
74798 2010-01-06  Jim Meyering  <meyering@redhat.com>
74799         and Eric Blake  <ebb9@byu.net>
74801         maint.mk: ignore multi-line copyright in NEWS
74802         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
74804 2010-01-06  Eric Blake  <ebb9@byu.net>
74806         select: add missing dependency
74807         * modules/select-tests (Depends-on): Move sockets dependency...
74808         * modules/select (Depends-on): ...here.
74809         Reported by Ian Beckwith.
74811         doc: regenerate INSTALL
74812         * doc/INSTALL: Reflect recent autoconf update.
74813         * doc/INSTALL.ISO: Likewise.
74814         * doc/INSTALL.UTF-8: Likewise.
74816         pread: fix compilation on glibc
74817         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
74818         Reported by Ralf Wildenhues.
74820         dirent: fix test failure
74821         * lib/dirent.in.h (includes): Guarantee ino_t.
74822         Reported by Ralf Wildenhues.
74824 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
74826         linkat, renameat: avoid bad free
74827         * lib/at-func2.c (at_func2): Fix typo.
74828         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
74830 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74832         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
74833         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
74834         to avoid failure of symlink test later.
74836 2010-01-06  Eric Blake  <ebb9@byu.net>
74838         stdio, unistd: guarantee ssize_t
74839         * lib/unistd.in.h (includes): Ensure that types required by POSIX
74840         2008 are exposed when needed.
74841         * lib/stdio.in.h (includes): Likewise.
74842         Reported by Ralf Wildenhues.
74844 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
74846         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
74847         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
74848         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
74850 2010-01-06  Jim Meyering  <meyering@redhat.com>
74852         readtokens: this module *does* require xalloc.h
74853         It uses only functions that were omitted by the old syntax-check rule.
74854         * lib/readtokens.c: Include "xalloc.h" once again.
74855         * modules/readtokens (Depends-on): Add xalloc.
74856         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
74858 2010-01-05  Eric Blake  <ebb9@byu.net>
74860         maint: support 'make announcement' from a VPATH build
74861         * top/maint.mk (announcement): Look for correct NEWS file.
74863 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
74865         utimens (fdutimens): ignore a negative FD, per contract
74866         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
74867         when we have a valid file descriptor.  Otherwise, using a brand
74868         new glibc (with just-patched futimens that now fails with EBADF)
74869         would cause this function to fail with ENOSYS.
74870         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
74871         See also http://bugzilla.redhat.com/552320.
74873 2010-01-05  Eric Blake  <ebb9@byu.net>
74875         strcase: document what it provides
74876         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
74877         gnulib module.
74878         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
74879         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
74881 2010-01-05  Jim Meyering  <meyering@redhat.com>
74883         maint: remove useless inclusions of "xalloc.h"
74884         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
74885         * lib/readtokens.c: Likewise.
74886         * lib/same.c: Likewise.
74887         * modules/getloadavg (Depends-on): Remove xalloc.
74888         * modules/readtokens: Likewise.
74889         * modules/same: Likewise.
74891         maint.mk: include 4 more function names in alloca.h-checking regexp
74892         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
74893         regexp.  Before, we would give a false-positive (saying alloca.h
74894         is included unnecessarily) when the only uses involved omitted symbols.
74896         xalloc.h: use consistent formatting
74897         * lib/xalloc.h: Move declarations to start in the first column.
74899 2010-01-05  Eric Blake  <ebb9@byu.net>
74901         mkdir: avoid xalloc
74902         * lib/mkdir.c (includes): Drop unused header.
74903         Reported by John W. Eaton.
74905 2010-01-04  Jim Meyering  <meyering@redhat.com>
74907         nl_langinfo: avoid configure-time syntax error
74908         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
74909         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
74910         the empty string.  Don't let that provoke a shell syntax error.
74912         regcomp, regexec, fnmatch: avoid array bounds read error
74913         * lib/regcomp.c (build_equiv_class): From glibc:
74914         Use only the low 24 bits of a findidx return value as an index
74915         into the weights array.  Patch by Ulrich Drepper:
74916         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
74917         * lib/regexec.c (check_node_accept_bytes): Likewise.
74918         * lib/fnmatch_loop.c (FCT): Likewise.
74920         regcomp: skip collseq lookup when there are no rules
74921         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
74922         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
74924         regcomp: recognize ill-formed { } expressions
74925         * lib/regcomp.c (parse_dup_op): From glibc:
74926         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
74928         regcomp: fix typo in comment
74929         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
74930         s/satisfy/satisfies/.
74932         regcomp: sync from glibc: remove dead store
74933         * lib/regcomp.c (duplicate_node_closure): Remove useless
74934         search_duplicated_node call and dead store.
74936         regcomp: sync from glibc; always use nl_langinfo
74937         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
74938         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
74939         * modules/regex (Depends-on): Add nl_langinfo.
74941 2010-01-04  Eric Blake  <ebb9@byu.net>
74943         fdopendir: fix configure test
74944         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
74946 2010-01-01  Bruno Haible  <bruno@clisp.org>
74948         wchar: Remove unused configure check.
74949         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
74951 2010-01-01  Eric Blake  <ebb9@byu.net>
74953         headers: make check of system header explicit
74954         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
74955         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
74956         ourselves.
74957         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
74958         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74959         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
74960         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
74961         internals.
74962         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
74963         missing.
74964         Suggested by Bruno Haible.
74966 2010-01-01  Jim Meyering  <meyering@redhat.com>
74968         ChangeLog: tweak to eliminate unnecessary copyright line
74969         * ChangeLog: Remove a copyright line that was mistakenly updated
74970         by today's update-copyright run.  Reported by Eric Blake.
74972         test-update-copyright: don't let envvar setting cause test failure
74973         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74975 2010-01-01  Bruno Haible  <bruno@clisp.org>
74977         localename: Avoid gcc warning.
74978         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
74979         function if it is not used.
74981 2010-01-01  Jim Meyering  <meyering@redhat.com>
74983         update nearly all FSF copyright year lists to include 2010
74984         Use the same procedure as for 2009, outlined in
74985         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
74987         version-etc: set COPYRIGHT_YEAR to 2010
74988         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
74990 2009-12-31  Eric Blake  <ebb9@byu.net>
74992         doc: correct availability of cygwin 1.5.x getopt
74993         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
74994         variables.
74995         * doc/posix-functions/opterr.texi (opterr): Likewise.
74996         * doc/posix-functions/optind.texi (optind): Likewise.
74997         * doc/posix-functions/optopt.texi (optopt): Likewise.
74998         * doc/posix-functions/tzname.texi (tzname): Likewise.
75000         openat: update maintainer
75001         * modules/openat (Maintainer): Add myself.
75003         utimens: avoid shadowing warning
75004         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
75005         buffers into one, to avoid shadowing, as well as avoiding a
75006         redundant stat.
75007         Reported by Jim Meyering.
75009         test-dup2: avoid compiler warning
75010         * tests/test-dup2.c (is_inheritable): Only define if used.
75012 2010-01-01  Bruno Haible  <bruno@clisp.org>
75014         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
75015         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
75016         defined, use wctomb instead of wcrtomb.
75018 2010-01-01  Bruno Haible  <bruno@clisp.org>
75020         iconv: Reject native Solaris iconv.
75021         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
75022         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
75024 2009-12-31  Bruno Haible  <bruno@clisp.org>
75026         * tests/test-signal.c (main): Remove test of 'SIG'.
75028 2009-12-31  Bruno Haible  <bruno@clisp.org>
75030         spawn: Fix incomplete fix.
75031         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
75032         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
75033         warnings for GNULIB_POSIXCHECK again.
75034         Reported by Eric Blake.
75036 2009-12-31  Bruno Haible  <bruno@clisp.org>
75038         Avoid namespace pollution on glibc systems.
75039         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
75040         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
75041         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
75042         glibc systems.
75044 2009-12-31  Bruno Haible  <bruno@clisp.org>
75046         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
75047         (gl_REPLACE_WCHAR_H): Turn into a no-op.
75048         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
75049         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
75050         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
75051         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
75052         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
75054 2009-12-31  Bruno Haible  <bruno@clisp.org>
75056         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
75057         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
75058         afterwards.
75060 2009-12-31  Bruno Haible  <bruno@clisp.org>
75062         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
75063         SYS_UTSNAME_H.
75065 2009-12-31  Bruno Haible  <bruno@clisp.org>
75067         spawn: Fix misapplied patch.
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.
75072 2009-12-31  Bruno Haible  <bruno@clisp.org>
75074         times: Update after sys_times changed.
75075         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
75076         * modules/times (Files): Add it.
75077         (configure.ac): Invoke gl_FUNC_TIMES.
75079 2009-12-31  Bruno Haible  <bruno@clisp.org>
75081         Use AC_C_INLINE where necessary.
75082         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
75083         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
75084         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75085         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
75086         * m4/mbfile.m4 (gl_MBFILE): Likewise.
75087         * m4/mbiter.m4 (gl_MBITER): Likewise.
75088         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75089         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
75090         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
75091         * modules/u64 (configure.ac): Likewise.
75093 2009-12-31  Bruno Haible  <bruno@clisp.org>
75095         Use AC_C_INLINE instead of module 'inline' where possible.
75096         * modules/inline (Description): Clarify purpose.
75097         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
75098         * modules/count-one-bits (Depends-on): Remove inline.
75099         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
75100         * modules/openat (Depends-on): Remove inline.
75101         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
75102         instead of depending on module 'inline'.
75103         * modules/filevercmp (Depends-on, configure.ac): Likewise.
75104         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
75105         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
75106         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
75107         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
75108         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
75109         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
75110         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
75111         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
75112         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
75113         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
75114         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
75115         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
75116         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
75117         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
75118         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
75119         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
75120         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
75121         Likewise.
75122         * modules/unictype/property-ascii-hex-digit (Depends-on,
75123         configure.ac): Likewise.
75124         * modules/unictype/property-bidi-arabic-digit (Depends-on,
75125         configure.ac): Likewise.
75126         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
75127         configure.ac): Likewise.
75128         * modules/unictype/property-bidi-block-separator (Depends-on,
75129         configure.ac): Likewise.
75130         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
75131         configure.ac): Likewise.
75132         * modules/unictype/property-bidi-common-separator (Depends-on,
75133         configure.ac): Likewise.
75134         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
75135         Likewise.
75136         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
75137         configure.ac): Likewise.
75138         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
75139         configure.ac): Likewise.
75140         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
75141         configure.ac): Likewise.
75142         * modules/unictype/property-bidi-european-digit (Depends-on,
75143         configure.ac): Likewise.
75144         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
75145         configure.ac): Likewise.
75146         * modules/unictype/property-bidi-left-to-right (Depends-on,
75147         configure.ac): Likewise.
75148         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
75149         configure.ac): Likewise.
75150         * modules/unictype/property-bidi-other-neutral (Depends-on,
75151         configure.ac): Likewise.
75152         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
75153         Likewise.
75154         * modules/unictype/property-bidi-segment-separator (Depends-on,
75155         configure.ac): Likewise.
75156         * modules/unictype/property-bidi-whitespace (Depends-on,
75157         configure.ac): Likewise.
75158         * modules/unictype/property-combining (Depends-on, configure.ac):
75159         Likewise.
75160         * modules/unictype/property-composite (Depends-on, configure.ac):
75161         Likewise.
75162         * modules/unictype/property-currency-symbol (Depends-on,
75163         configure.ac): Likewise.
75164         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
75165         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
75166         Likewise.
75167         * modules/unictype/property-default-ignorable-code-point (Depends-on,
75168         configure.ac): Likewise.
75169         * modules/unictype/property-deprecated (Depends-on, configure.ac):
75170         Likewise.
75171         * modules/unictype/property-diacritic (Depends-on, configure.ac):
75172         Likewise.
75173         * modules/unictype/property-extender (Depends-on, configure.ac):
75174         Likewise.
75175         * modules/unictype/property-format-control (Depends-on, configure.ac):
75176         Likewise.
75177         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
75178         Likewise.
75179         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
75180         Likewise.
75181         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
75182         Likewise.
75183         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
75184         Likewise.
75185         * modules/unictype/property-hyphen (Depends-on, configure.ac):
75186         Likewise.
75187         * modules/unictype/property-id-continue (Depends-on, configure.ac):
75188         Likewise.
75189         * modules/unictype/property-id-start (Depends-on, configure.ac):
75190         Likewise.
75191         * modules/unictype/property-ideographic (Depends-on, configure.ac):
75192         Likewise.
75193         * modules/unictype/property-ids-binary-operator (Depends-on,
75194         configure.ac): Likewise.
75195         * modules/unictype/property-ids-trinary-operator (Depends-on,
75196         configure.ac): Likewise.
75197         * modules/unictype/property-ignorable-control (Depends-on,
75198         configure.ac): Likewise.
75199         * modules/unictype/property-iso-control (Depends-on, configure.ac):
75200         Likewise.
75201         * modules/unictype/property-join-control (Depends-on, configure.ac):
75202         Likewise.
75203         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
75204         Likewise.
75205         * modules/unictype/property-line-separator (Depends-on, configure.ac):
75206         Likewise.
75207         * modules/unictype/property-logical-order-exception (Depends-on,
75208         configure.ac): Likewise.
75209         * modules/unictype/property-lowercase (Depends-on, configure.ac):
75210         Likewise.
75211         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
75212         * modules/unictype/property-non-break (Depends-on, configure.ac):
75213         Likewise.
75214         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
75215         Likewise.
75216         * modules/unictype/property-numeric (Depends-on, configure.ac):
75217         Likewise.
75218         * modules/unictype/property-other-alphabetic (Depends-on,
75219         configure.ac): Likewise.
75220         * modules/unictype/property-other-default-ignorable-code-point
75221         (Depends-on, configure.ac): Likewise.
75222         * modules/unictype/property-other-grapheme-extend (Depends-on,
75223         configure.ac): Likewise.
75224         * modules/unictype/property-other-id-continue (Depends-on,
75225         configure.ac): Likewise.
75226         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
75227         Likewise.
75228         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
75229         Likewise.
75230         * modules/unictype/property-other-math (Depends-on, configure.ac):
75231         Likewise.
75232         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
75233         Likewise.
75234         * modules/unictype/property-paired-punctuation (Depends-on,
75235         configure.ac): Likewise.
75236         * modules/unictype/property-paragraph-separator (Depends-on,
75237         configure.ac): Likewise.
75238         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
75239         Likewise.
75240         * modules/unictype/property-pattern-white-space (Depends-on,
75241         configure.ac): Likewise.
75242         * modules/unictype/property-private-use (Depends-on, configure.ac):
75243         Likewise.
75244         * modules/unictype/property-punctuation (Depends-on, configure.ac):
75245         Likewise.
75246         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
75247         Likewise.
75248         * modules/unictype/property-radical (Depends-on, configure.ac):
75249         Likewise.
75250         * modules/unictype/property-sentence-terminal (Depends-on,
75251         configure.ac): Likewise.
75252         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
75253         Likewise.
75254         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
75255         * modules/unictype/property-terminal-punctuation (Depends-on,
75256         configure.ac): Likewise.
75257         * modules/unictype/property-titlecase (Depends-on, configure.ac):
75258         Likewise.
75259         * modules/unictype/property-unassigned-code-value (Depends-on,
75260         configure.ac): Likewise.
75261         * modules/unictype/property-unified-ideograph (Depends-on,
75262         configure.ac): Likewise.
75263         * modules/unictype/property-uppercase (Depends-on, configure.ac):
75264         Likewise.
75265         * modules/unictype/property-variation-selector (Depends-on,
75266         configure.ac): Likewise.
75267         * modules/unictype/property-white-space (Depends-on, configure.ac):
75268         Likewise.
75269         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
75270         Likewise.
75271         * modules/unictype/property-xid-start (Depends-on, configure.ac):
75272         Likewise.
75273         * modules/unictype/property-zero-width (Depends-on, configure.ac):
75274         Likewise.
75275         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
75276         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
75277         Likewise.
75279 2009-12-31  Bruno Haible  <bruno@clisp.org>
75281         Remove unnecessary AC_C_INLINE invocation.
75282         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
75283         since 2009-08-21.
75285 2009-12-31  Jim Meyering  <meyering@redhat.com>
75287         maint.mk: don't require explicit gpg_key_ID in cfg.mk
75288         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
75289         With this change, we can all remove the gpg_key_ID = ... definition
75290         from our respective cfg.mk files.
75292         maint.mk: create announcement template in ~/, not in /tmp
75293         * top/maint.mk (emit_upload_commands): Adjust.
75294         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
75295         Remove temporary file, .ci-msg.
75297 2009-12-31  Eric Blake  <ebb9@byu.net>
75299         link-warning: always build headers with link warnings
75300         * modules/arpa_inet (Makefile.am): Always build replacement
75301         header.
75302         * modules/ctype (Makefile.am): Likewise.
75303         * modules/dirent (Makefile.am): Likewise.
75304         * modules/inttypes (Makefile.am): Likewise.
75305         * modules/langinfo (Makefile.am): Likewise.
75306         * modules/locale (Makefile.am): Likewise.
75307         * modules/spawn (Makefile.am): Likewise.
75308         * modules/sys_file (Makefile.am): Likewise.
75309         * modules/sys_ioctl (Makefile.am): Likewise.
75310         * modules/sys_select (Makefile.am): Likewise.
75311         * modules/sys_socket (Makefile.am): Likewise.
75312         * modules/sys_times (Makefile.am): Likewise.
75313         * modules/sys_utsname (Makefile.am): Likewise.
75314         * modules/sys_wait (Makefile.am): Likewise.
75315         * modules/wchar (Makefile.am): Likewise.
75316         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
75317         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
75318         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
75319         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
75320         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
75321         Likewise.
75322         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
75323         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
75324         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
75325         Likewise.
75326         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
75327         Likewise.
75328         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
75329         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
75330         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
75331         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75332         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
75333         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
75334         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
75335         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
75336         (gl_WCHAR_H_DEFAULTS): Likewise.
75338 2009-12-31  Eric Blake  <ebb9@byu.net>
75340         signal, spawn: use link warnings
75341         * lib/signal.in.h (sigset_t): Make unconditional.
75342         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
75343         (sigpending, sigprocmask, sigaction): Add link warnings.
75344         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
75345         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
75346         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
75347         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
75348         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
75349         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
75350         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
75351         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
75352         (posix_spawn_file_actions_destroy)
75353         (posix_spawn_file_actions_addopen)
75354         (posix_spawn_file_actions_addclose)
75355         (posix_spawn_file_actions_adddup2): Likewise.
75356         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
75357         * tests/test-signal.c (main): Enhance test.
75359         spawn: improve wrapper support
75360         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
75361         (gl_SPAWN_H_DEFAULTS): New defaults.
75362         * modules/spawn (Makefile.am): Substitute them.
75363         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
75364         Only declare if missing or broken.
75366         sys_times, sys_utsname: use include_next
75367         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
75368         header.
75369         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
75370         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
75371         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
75372         * modules/sys_times (Depends-on): Add include_next.
75373         (Makefile.am): Substitute additional values.
75374         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
75375         * lib/sys_times.in.h (includes): Include native header, if
75376         available.
75377         * lib/sys_utsname.in.h (includes): Likewise.
75378         * tests/test-sys_times.c (main): Enhance test.
75380         fdutimensat: revert prior patch
75381         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
75382         utimens.h.
75383         Reported by Bruno Haible.
75385 2009-12-30  Eric Blake  <ebb9@byu.net>
75387         sys_wait: drop link-warning dependency
75388         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
75389         link-warning efforts.
75390         * lib/sys_wait.in.h: Likewise.
75392         fdutimensat: remove bogus dependency
75393         * modules/fdutimensat (Depends-on): Drop inline.
75395         unistd: fix typo
75396         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
75398 2009-12-30  Bruno Haible  <bruno@clisp.org>
75400         Fix compilation error with Solaris cc.
75401         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
75402         * lib/unicase/u16-is-invariant.c: Likewise.
75403         * lib/unicase/u32-is-invariant.c: Likewise.
75404         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75406 2009-12-30  Bruno Haible  <bruno@clisp.org>
75408         Fix test crash.
75409         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
75410         locales.
75411         Reported by Simon Josefsson <simon@josefsson.org>.
75413 2009-12-30  Bruno Haible  <bruno@clisp.org>
75415         Fix compilation error on most platforms.
75416         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
75417         Reported by Simon Josefsson <simon@josefsson.org>
75418         and Nelson H. F. Beebe <beebe@math.utah.edu>.
75420 2009-12-30  Eric Blake  <ebb9@byu.net>
75422         futimens, utimensat: work around ntfs-3g bug
75423         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
75424         a ctime bug is present, and expand workaround to cover ntfs-3g.
75425         * lib/utimens.c (fdutimens, lutimens): Likewise.
75426         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
75427         (validate_timespec): Adjust return value.
75428         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
75429         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75430         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
75432 2009-12-29  Eric Blake  <ebb9@byu.net>
75434         link-warning: make usage consistent
75435         * modules/ctype (Depends-on): Add link-warning.
75436         (Makefile.am): Update rules accordingly.
75437         * modules/langinfo (Depends-on, Makefile.am): Likewise.
75438         * modules/locale (Depends-on, Makefile.am): Likewise.
75439         * modules/sys_file (Makefile.am): Likewise.
75440         * modules/getopt-posix (Makefile.am): Delete unused link warning
75441         efforts.
75442         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
75443         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
75444         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
75445         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
75447         stdio: remove unused variables
75448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
75449         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
75450         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
75452         tests: test more substitute headers
75453         * modules/ctype-tests: New file.
75454         * modules/dirent-tests: Likewise.
75455         * modules/spawn-tests: Likewise.
75456         * modules/sys_file-tests: Likewise.
75457         * modules/sys_ioctl-tests: Likewise.
75458         * modules/sys_wait-tests: Likewise.
75459         * tests/test-ctype.c: Likewise.
75460         * tests/test-dirent.c: Likewise.
75461         * tests/test-spawn.c: Likewise.
75462         * tests/test-sys_file.c: Likewise.
75463         * tests/test-sys_ioctl.c: Likewise.
75464         * tests/test-sys_wait.c: Likewise.
75465         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
75466         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
75467         whether or not flock is in use.
75469         tests: remove License section from module
75470         * modules/arpa_inet-tests: Remove unneeded section.
75471         * modules/byteswap-tests: Likewise.
75472         * modules/ceilf-tests: Likewise.
75473         * modules/ceill-tests: Likewise.
75474         * modules/crypto/des-tests: Likewise.
75475         * modules/crypto/gc-arcfour-tests: Likewise.
75476         * modules/crypto/gc-arctwo-tests: Likewise.
75477         * modules/crypto/gc-des-tests: Likewise.
75478         * modules/crypto/gc-hmac-md5-tests: Likewise.
75479         * modules/crypto/gc-hmac-sha1-tests: Likewise.
75480         * modules/crypto/gc-md2-tests: Likewise.
75481         * modules/crypto/gc-md4-tests: Likewise.
75482         * modules/crypto/gc-md5-tests: Likewise.
75483         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
75484         * modules/crypto/gc-rijndael-tests: Likewise.
75485         * modules/crypto/gc-sha1-tests: Likewise.
75486         * modules/crypto/gc-tests: Likewise.
75487         * modules/crypto/md2-tests: Likewise.
75488         * modules/crypto/md4-tests: Likewise.
75489         * modules/fcntl-h-tests: Likewise.
75490         * modules/floorf-tests: Likewise.
75491         * modules/floorl-tests: Likewise.
75492         * modules/frexp-nolibm-tests: Likewise.
75493         * modules/frexp-tests: Likewise.
75494         * modules/frexpl-nolibm-tests: Likewise.
75495         * modules/frexpl-tests: Likewise.
75496         * modules/getaddrinfo-tests: Likewise.
75497         * modules/inttypes-tests: Likewise.
75498         * modules/isfinite-tests: Likewise.
75499         * modules/isinf-tests: Likewise.
75500         * modules/ldexpl-tests: Likewise.
75501         * modules/locale-tests: Likewise.
75502         * modules/math-tests: Likewise.
75503         * modules/netdb-tests: Likewise.
75504         * modules/netinet_in-tests: Likewise.
75505         * modules/printf-frexp-tests: Likewise.
75506         * modules/printf-frexpl-tests: Likewise.
75507         * modules/priv-set-tests: Likewise.
75508         * modules/random_r-tests: Likewise.
75509         * modules/round-tests: Likewise.
75510         * modules/roundf-tests: Likewise.
75511         * modules/roundl-tests: Likewise.
75512         * modules/search-tests: Likewise.
75513         * modules/select-tests: Likewise.
75514         * modules/signal-tests: Likewise.
75515         * modules/stdbool-tests: Likewise.
75516         * modules/stddef-tests: Likewise.
75517         * modules/stdint-tests: Likewise.
75518         * modules/stdio-tests: Likewise.
75519         * modules/stdlib-tests: Likewise.
75520         * modules/string-tests: Likewise.
75521         * modules/strings-tests: Likewise.
75522         * modules/sys_select-tests: Likewise.
75523         * modules/sys_socket-tests: Likewise.
75524         * modules/sys_stat-tests: Likewise.
75525         * modules/sys_time-tests: Likewise.
75526         * modules/sys_utsname-tests: Likewise.
75527         * modules/sysexits-tests: Likewise.
75528         * modules/time-tests: Likewise.
75529         * modules/trunc-tests: Likewise.
75530         * modules/truncf-tests: Likewise.
75531         * modules/truncl-tests: Likewise.
75532         * modules/tsearch-tests: Likewise.
75533         * modules/unistd-tests: Likewise.
75534         * modules/wchar-tests: Likewise.
75535         * modules/wctype-tests: Likewise.
75537         tests: fix license on several tests
75538         * tests/test-des.c: Update to GPLv3+.
75539         * tests/test-flock.c: Likewise.
75540         * tests/test-fsync.c: Likewise.
75541         * tests/test-futimens.h: Likewise.
75542         * tests/test-gc-arcfour.c: Likewise.
75543         * tests/test-gc-arctwo.c: Likewise.
75544         * tests/test-gc-des.c: Likewise.
75545         * tests/test-gc-hmac-md5.c: Likewise.
75546         * tests/test-gc-hmac-sha1.c: Likewise.
75547         * tests/test-gc-md2.c: Likewise.
75548         * tests/test-gc-md4.c: Likewise.
75549         * tests/test-gc-md5.c: Likewise.
75550         * tests/test-gc-pbkdf2-sha1.c: Likewise.
75551         * tests/test-gc-rijndael.c: Likewise.
75552         * tests/test-gc-sha1.c: Likewise.
75553         * tests/test-gc.c: Likewise.
75554         * tests/test-getcwd.c: Likewise.
75555         * tests/test-link.c: Likewise.
75556         * tests/test-link.h: Likewise.
75557         * tests/test-lutimens.h: Likewise.
75558         * tests/test-md2.c: Likewise.
75559         * tests/test-md4.c: Likewise.
75560         * tests/test-mkdir.h: Likewise.
75561         * tests/test-rename.c: Likewise.
75562         * tests/test-rename.h: Likewise.
75563         * tests/test-safe-alloc.c: Likewise.
75564         * tests/test-utimens-common.h: Likewise.
75565         * tests/test-utimens.h: Likewise.
75567         maint: sync license texts
75568         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
75569         * doc/gpl-3.0.texi: Revert copyright year update.
75570         * doc/lgpl-3.0.texi: Likewise.
75572 2009-12-29  Jim Meyering  <meyering@redhat.com>
75574         update nearly all FSF copyright year lists to include 2009
75575         The files named by the following are exempted:
75576             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
75577               test -f "$dst" && { echo "$dst"; continue; }
75578               test -d "$dst" || continue
75579               echo "$dst"/$(basename "$src")
75580             done > exempt
75581             git ls-files tests/unictype >> exempt
75582         In the remaining files, convert to all-interval notation if
75583         - there is already at least one year interval like 2000-2003
75584         - the file is maintained by me
75585         - the file is in lib/uni*/, where that style already prevails
75586         Otherwise, use update-copyright's default.
75588 2009-12-29  Simon Josefsson  <simon@josefsson.org>
75589         and Eric Blake  <ebb9@byu.net>
75591         tests: don't require debug system() to pass
75592         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
75593         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75594         * tests/test-unlink.h (test_unlink_func): Likewise.
75595         * tests/test-fstatat.c (main): ...into callers.
75596         * tests/test-lstat.c (main): Likewise.
75597         * tests/test-rmdir.c (main): Likewise.
75598         * tests/test-unlink.c (main): Likewise.
75599         * tests/test-unlinkat.c (main): Likewise.
75600         * tests/test-areadlink-with-size.c (main): Don't require a
75601         debug-only system call to pass, aiding cross-testing to mingw.
75602         * tests/test-areadlink.c (main): Likewise.
75603         * tests/test-areadlinkat-with-size.c (main): Likewise.
75604         * tests/test-areadlinkat.c (main): Likewise.
75605         * tests/test-canonicalize-lgpl.c (main): Likewise.
75606         * tests/test-canonicalize.c (main): Likewise.
75607         * tests/test-chown.c (main): Likewise.
75608         * tests/test-fchownat.c (main): Likewise.
75609         * tests/test-lchown.c (main): Likewise.
75610         * tests/test-fdutimensat.c (main): Likewise.
75611         * tests/test-futimens.c (main): Likewise.
75612         * tests/test-link.c (main): Likewise.
75613         * tests/test-linkat.c (main): Likewise.
75614         * tests/test-mkdir.c (main): Likewise.
75615         * tests/test-mkdirat.c (main): Likewise.
75616         * tests/test-mkfifo.c (main): Likewise.
75617         * tests/test-mkfifoat.c (main): Likewise.
75618         * tests/test-mknod.c (main): Likewise.
75619         * tests/test-readlink.c (main): Likewise.
75620         * tests/test-remove.c (main): Likewise.
75621         * tests/test-rename.c (main): Likewise.
75622         * tests/test-renameat.c (main): Likewise.
75623         * tests/test-symlink.c (main): Likewise.
75624         * tests/test-symlinkat.c (main): Likewise.
75625         * tests/test-utimens.c (main): Likewise.
75626         * tests/test-utimensat.c (main): Likewise.
75628 2009-12-29  Simon Josefsson  <simon@josefsson.org>
75630         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
75631         on $(UNUSED_PARAMETER_H) to avoid build failure.
75633 2009-12-28  Jim Meyering  <meyering@redhat.com>
75635         update-copyright: you may specify a max. line length other than 72
75636         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
75638         maint: use consistent FSF copyright line syntax
75639         * lib/posixtm.c: Add missing comma in FSF copyright line.
75640         * lib/posixtm.h: Likewise.
75641         * lib/getugroups.c: Add missing ", Inc.".
75643         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
75644         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
75645         FSF copyright line.  Remove trailing blanks.
75647 2009-12-28  Eric Blake  <ebb9@byu.net>
75649         test-dup2: reduce dependencies
75650         * modules/cloexec (Configure.ac): Set witness.
75651         * modules/dup2-tests (Depends-on): Drop cloexec.
75652         * tests/test-dup2.c (main): Skip portion of test if cloexec module
75653         not present.
75654         Suggested by Bruno Haible.
75656 2009-12-26  Bruno Haible  <bruno@clisp.org>
75658         Remove an unneeded dependency.
75659         * modules/fseterr (Depends-on): Remove dup2.
75661 2009-12-26  Eric Blake  <ebb9@byu.net>
75663         tests: use macros.h in more places
75664         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
75665         (ASSERT_STREAM): Provide default of stderr.
75666         * tests/test-dirent-safer.c: Include macros.h, using alternate
75667         stream for assertions.
75668         * tests/test-dup-safer.c: Likewise.
75669         * tests/test-freopen-safer.c: Likewise.
75670         * tests/test-getopt.c: Likewise.
75671         * tests/test-openat-safer.c: Likewise.
75672         * tests/test-pipe.c: Likewise.
75673         * tests/test-popen-safer.c: Likewise.
75674         * modules/dirent-safer-tests (Files): Include macros.h.
75675         * modules/unistd-safer-tests (Files): Likewise.
75676         * modules/freopen-safer-tests (Files): Likewise.
75677         * modules/getopt-posix-tests (Files): Likewise.
75678         * modules/openat-safer-tests (Files): Likewise.
75679         * modules/pipe-tests (Files): Likewise.
75681 2009-12-26  Bruno Haible  <bruno@clisp.org>
75683         javacomp-script: Portability fix.
75684         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
75685         that it also works on Solaris.
75687 2009-12-26  Bruno Haible  <bruno@clisp.org>
75689         localename: Fix storage allocation of gl_locale_name_thread's result.
75690         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
75691         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
75692         all platforms that have 'uselocale'.
75693         (gl_locale_name_thread_unsafe): New function, extracted from
75694         gl_locale_name_thread.
75695         (gl_locale_name_thread): Call struniq on all platforms that have
75696         'uselocale'.
75697         * tests/test-localename.c (test_locale_name_thread): Check that the
75698         resulting strings are permanently allocated.
75699         * modules/localename-tests (Depends-on): Add strdup.
75701 2009-12-26  Bruno Haible  <bruno@clisp.org>
75703         * tests/test-localename.c (categories): Fill in the strings.
75705 2009-12-26  Jim Meyering  <meyering@redhat.com>
75707         isdir: complete the removal of m4/isdir.m4
75708         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
75710         isdir: clean up, since at least grep still uses it
75711         * lib/isdir.c: Include "isdir.h".
75712         (S_ISDIR): Remove now-unneeded definition.
75713         * modules/isdir (Files): Add lib/isdir.h.
75714         * lib/isdir.h: New file, with declaration.
75715         * m4/isdir.m4: Remove file -- unneeded.
75717 2009-12-25  Bruno Haible  <bruno@clisp.org>
75719         selinux-h: Make generated .h files standalone.
75720         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
75721         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
75722         * lib/se-selinux.in.h: Likewise.
75723         * modules/selinux-h (Depends-on): Add unused-parameter.
75724         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
75725         selinux/selinux.h and selinux/context.h.
75726         Suggested by Eric Blake.
75728 2009-12-25  Bruno Haible  <bruno@clisp.org>
75730         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
75731         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
75732         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
75733         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
75734         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
75736 2009-12-24  Bruno Haible  <bruno@clisp.org>
75738         openat: Fix warning.
75739         * lib/openat-proc.c: Include <unistd.h>.
75741 2009-12-24  Bruno Haible  <bruno@clisp.org>
75743         New module 'unused-parameter'.
75744         * build-aux/unused-parameter.h: New file, extracted from earlier
75745         gnulib-common.m4.
75746         * modules/unused-parameter: New file.
75747         * lib/unistr.h: Include unused-parameter.h.
75748         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
75749         _GL_UNUSED.
75750         * modules/unistr/base (Depends-on): Add unused-parameter.
75752 2009-12-24  Bruno Haible  <bruno@clisp.org>
75754         Add missing dependencies to 'extensions' module.
75755         * m4/extensions.m4: Add comment.
75756         * modules/accept4 (Depends-on): Add extensions.
75757         * modules/dup3 (Depends-on): Likewise.
75758         * modules/fcntl (Depends-on): Likewise.
75759         * modules/futimens (Depends-on): Likewise.
75760         * modules/mknod (Depends-on): Likewise.
75761         * modules/pipe2 (Depends-on): Likewise.
75762         * modules/stat-time (Depends-on): Likewise.
75763         * modules/strcasestr-simple (Depends-on): Likewise.
75764         * modules/strsignal (Depends-on): Likewise.
75765         * modules/utimensat (Depends-on): Likewise.
75766         * modules/localcharset (Depends-on): Likewise. Needed because of
75767         gl_FCNTL_O_FLAGS.
75768         * modules/wcrtomb (Depends-on): Likewise. Needed because of
75769         AC_TYPE_MBSTATE_T.
75770         * modules/wcsnrtombs (Depends-on): Likewise.
75771         * modules/wcsrtombs (Depends-on): Likewise.
75773 2009-12-24  Bruno Haible  <bruno@clisp.org>
75775         binary-io: Avoid gcc warning due to SET_BINARY.
75776         * lib/binary-io.h (SET_BINARY): Cast the result to void.
75777         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
75779 2009-12-24  Bruno Haible  <bruno@clisp.org>
75781         Avoid future namespace pollution on glibc systems.
75782         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
75783         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
75784         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
75785         glibc systems.
75787 2009-12-24  Bruno Haible  <bruno@clisp.org>
75789         Refactor common macros used in tests.
75790         * tests/macros.h: New file.
75791         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
75792         and/or <stdlib.h>, if appropriate.
75793         (ASSERT, SIZEOF): Remove macros.
75794         * tests/test-areadlink-with-size.c: Likewise.
75795         * tests/test-areadlinkat.c: Likewise.
75796         * tests/test-areadlinkat-with-size.c: Likewise.
75797         * tests/test-argmatch.c: Likewise.
75798         * tests/test-argv-iter.c: Likewise.
75799         * tests/test-array-mergesort.c: Likewise.
75800         * tests/test-array_list.c: Likewise.
75801         * tests/test-array_oset.c: Likewise.
75802         * tests/test-avltree_list.c: Likewise.
75803         * tests/test-avltree_oset.c: Likewise.
75804         * tests/test-avltreehash_list.c: Likewise.
75805         * tests/test-base64.c: Likewise.
75806         * tests/test-binary-io.c: Likewise.
75807         * tests/test-bitrotate.c: Likewise.
75808         * tests/test-btowc.c: Likewise.
75809         * tests/test-byteswap.c: Likewise.
75810         * tests/test-c-ctype.c: Likewise.
75811         * tests/test-c-stack.c: Likewise.
75812         * tests/test-c-strcasecmp.c: Likewise.
75813         * tests/test-c-strcasestr.c: Likewise.
75814         * tests/test-c-strncasecmp.c: Likewise.
75815         * tests/test-c-strstr.c: Likewise.
75816         * tests/test-canonicalize-lgpl.c: Likewise.
75817         * tests/test-canonicalize.c: Likewise.
75818         * tests/test-carray_list.c: Likewise.
75819         * tests/test-ceilf1.c: Likewise.
75820         * tests/test-ceilf2.c: Likewise.
75821         * tests/test-ceill.c: Likewise.
75822         * tests/test-chown.c: Likewise.
75823         * tests/test-cloexec.c: Likewise.
75824         * tests/test-copy-acl.c: Likewise.
75825         * tests/test-copy-file.c: Likewise.
75826         * tests/test-count-one-bits.c: Likewise.
75827         * tests/test-dprintf-posix.c: Likewise.
75828         * tests/test-dup2.c: Likewise.
75829         * tests/test-dup3.c: Likewise.
75830         * tests/test-duplocale.c: Likewise.
75831         * tests/test-fbufmode.c: Likewise.
75832         * tests/test-fchdir.c: Likewise.
75833         * tests/test-fchownat.c: Likewise.
75834         * tests/test-fcntl-safer.c: Likewise.
75835         * tests/test-fcntl.c: Likewise.
75836         * tests/test-fdopendir.c: Likewise.
75837         * tests/test-fdutimensat.c: Likewise.
75838         * tests/test-fflush2.c: Likewise.
75839         * tests/test-file-has-acl.c: Likewise.
75840         * tests/test-filevercmp.c: Likewise.
75841         * tests/test-flock.c: Likewise.
75842         * tests/test-floorf1.c: Likewise.
75843         * tests/test-floorf2.c: Likewise.
75844         * tests/test-floorl.c: Likewise.
75845         * tests/test-fnmatch.c: Likewise.
75846         * tests/test-fopen.h: Likewise.
75847         * tests/test-fpending.c: Likewise.
75848         * tests/test-fprintf-posix.c: Likewise.
75849         * tests/test-fpurge.c: Likewise.
75850         * tests/test-freadable.c: Likewise.
75851         * tests/test-freadahead.c: Likewise.
75852         * tests/test-freading.c: Likewise.
75853         * tests/test-freadptr.c: Likewise.
75854         * tests/test-freadptr2.c: Likewise.
75855         * tests/test-freadseek.c: Likewise.
75856         * tests/test-freopen.c: Likewise.
75857         * tests/test-frexp.c: Likewise.
75858         * tests/test-frexpl.c: Likewise.
75859         * tests/test-fseek.c: Likewise.
75860         * tests/test-fseeko.c: Likewise.
75861         * tests/test-fstatat.c: Likewise.
75862         * tests/test-fstrcmp.c: Likewise.
75863         * tests/test-fsync.c: Likewise.
75864         * tests/test-ftell.c: Likewise.
75865         * tests/test-ftello.c: Likewise.
75866         * tests/test-func.c: Likewise.
75867         * tests/test-futimens.c: Likewise.
75868         * tests/test-fwritable.c: Likewise.
75869         * tests/test-fwriting.c: Likewise.
75870         * tests/test-getcwd.c: Likewise.
75871         * tests/test-getdate.c: Likewise.
75872         * tests/test-getdelim.c: Likewise.
75873         * tests/test-getdtablesize.c: Likewise.
75874         * tests/test-getgroups.c: Likewise.
75875         * tests/test-getline.c: Likewise.
75876         * tests/test-getndelim2.c: Likewise.
75877         * tests/test-glob.c: Likewise.
75878         * tests/test-hash.c: Likewise.
75879         * tests/test-i-ring.c: Likewise.
75880         * tests/test-iconv-utf.c: Likewise.
75881         * tests/test-iconv.c: Likewise.
75882         * tests/test-idpriv-drop.c: Likewise.
75883         * tests/test-idpriv-droptemp.c: Likewise.
75884         * tests/test-inet_ntop.c: Likewise.
75885         * tests/test-inet_pton.c: Likewise.
75886         * tests/test-isblank.c: Likewise.
75887         * tests/test-isfinite.c: Likewise.
75888         * tests/test-isinf.c: Likewise.
75889         * tests/test-isnan.c: Likewise.
75890         * tests/test-isnand.h: Likewise.
75891         * tests/test-isnanf.h: Likewise.
75892         * tests/test-isnanl.h: Likewise.
75893         * tests/test-lchown.c: Likewise.
75894         * tests/test-ldexpl.c: Likewise.
75895         * tests/test-link.c: Likewise.
75896         * tests/test-linkat.c: Likewise.
75897         * tests/test-linked_list.c: Likewise.
75898         * tests/test-linkedhash_list.c: Likewise.
75899         * tests/test-localename.c: Likewise.
75900         * tests/test-lseek.c: Likewise.
75901         * tests/test-lstat.c: Likewise.
75902         * tests/test-mbmemcasecmp.c: Likewise.
75903         * tests/test-mbmemcasecoll.c: Likewise.
75904         * tests/test-mbrtowc.c: Likewise.
75905         * tests/test-mbscasecmp.c: Likewise.
75906         * tests/test-mbscasestr1.c: Likewise.
75907         * tests/test-mbscasestr2.c: Likewise.
75908         * tests/test-mbscasestr3.c: Likewise.
75909         * tests/test-mbscasestr4.c: Likewise.
75910         * tests/test-mbschr.c: Likewise.
75911         * tests/test-mbscspn.c: Likewise.
75912         * tests/test-mbsinit.c: Likewise.
75913         * tests/test-mbsncasecmp.c: Likewise.
75914         * tests/test-mbsnrtowcs.c: Likewise.
75915         * tests/test-mbspbrk.c: Likewise.
75916         * tests/test-mbspcasecmp.c: Likewise.
75917         * tests/test-mbsrchr.c: Likewise.
75918         * tests/test-mbsrtowcs.c: Likewise.
75919         * tests/test-mbsspn.c: Likewise.
75920         * tests/test-mbsstr1.c: Likewise.
75921         * tests/test-mbsstr2.c: Likewise.
75922         * tests/test-mbsstr3.c: Likewise.
75923         * tests/test-memchr.c: Likewise.
75924         * tests/test-memchr2.c: Likewise.
75925         * tests/test-memcmp.c: Likewise.
75926         * tests/test-memmem.c: Likewise.
75927         * tests/test-memrchr.c: Likewise.
75928         * tests/test-mkdir.c: Likewise.
75929         * tests/test-mkdirat.c: Likewise.
75930         * tests/test-mkfifo.c: Likewise.
75931         * tests/test-mkfifoat.c: Likewise.
75932         * tests/test-mknod.c: Likewise.
75933         * tests/test-nanosleep.c: Likewise.
75934         * tests/test-nl_langinfo.c: Likewise.
75935         * tests/test-obstack-printf.c: Likewise.
75936         * tests/test-open.c: Likewise.
75937         * tests/test-openat.c: Likewise.
75938         * tests/test-pipe-filter-gi1.c: Likewise.
75939         * tests/test-pipe-filter-gi2-main.c: Likewise.
75940         * tests/test-pipe-filter-ii1.c: Likewise.
75941         * tests/test-pipe-filter-ii2-main.c: Likewise.
75942         * tests/test-pipe2.c: Likewise.
75943         * tests/test-popen.h: Likewise.
75944         * tests/test-posixtm.c: Likewise.
75945         * tests/test-pread.c: Likewise.
75946         * tests/test-printf-frexp.c: Likewise.
75947         * tests/test-printf-frexpl.c: Likewise.
75948         * tests/test-printf-posix.c: Likewise.
75949         * tests/test-priv-set.c: Likewise.
75950         * tests/test-quotearg.c: Likewise.
75951         * tests/test-random_r.c: Likewise.
75952         * tests/test-rawmemchr.c: Likewise.
75953         * tests/test-rbtree_list.c: Likewise.
75954         * tests/test-rbtree_oset.c: Likewise.
75955         * tests/test-rbtreehash_list.c: Likewise.
75956         * tests/test-readlink.c: Likewise.
75957         * tests/test-remove.c: Likewise.
75958         * tests/test-rename.c: Likewise.
75959         * tests/test-renameat.c: Likewise.
75960         * tests/test-rmdir.c: Likewise.
75961         * tests/test-round1.c: Likewise.
75962         * tests/test-roundf1.c: Likewise.
75963         * tests/test-roundl.c: Likewise.
75964         * tests/test-safe-alloc.c: Likewise.
75965         * tests/test-sameacls.c: Likewise.
75966         * tests/test-set-mode-acl.c: Likewise.
75967         * tests/test-setenv.c: Likewise.
75968         * tests/test-sigaction.c: Likewise.
75969         * tests/test-signbit.c: Likewise.
75970         * tests/test-sleep.c: Likewise.
75971         * tests/test-snprintf-posix.c: Likewise.
75972         * tests/test-snprintf.c: Likewise.
75973         * tests/test-sprintf-posix.c: Likewise.
75974         * tests/test-stat-time.c: Likewise.
75975         * tests/test-stat.c: Likewise.
75976         * tests/test-strcasestr.c: Likewise.
75977         * tests/test-strchrnul.c: Likewise.
75978         * tests/test-strerror.c: Likewise.
75979         * tests/test-striconv.c: Likewise.
75980         * tests/test-striconveh.c: Likewise.
75981         * tests/test-striconveha.c: Likewise.
75982         * tests/test-strsignal.c: Likewise.
75983         * tests/test-strstr.c: Likewise.
75984         * tests/test-strtod.c: Likewise.
75985         * tests/test-strverscmp.c: Likewise.
75986         * tests/test-symlink.c: Likewise.
75987         * tests/test-symlinkat.c: Likewise.
75988         * tests/test-trunc1.c: Likewise.
75989         * tests/test-trunc2.c: Likewise.
75990         * tests/test-truncf1.c: Likewise.
75991         * tests/test-truncf2.c: Likewise.
75992         * tests/test-truncl.c: Likewise.
75993         * tests/test-uname.c: Likewise.
75994         * tests/test-unlink.c: Likewise.
75995         * tests/test-unlinkat.c: Likewise.
75996         * tests/test-unsetenv.c: Likewise.
75997         * tests/test-usleep.c: Likewise.
75998         * tests/test-utimens.c: Likewise.
75999         * tests/test-utimensat.c: Likewise.
76000         * tests/test-vasnprintf-posix.c: Likewise.
76001         * tests/test-vasnprintf-posix2.c: Likewise.
76002         * tests/test-vasnprintf.c: Likewise.
76003         * tests/test-vasprintf-posix.c: Likewise.
76004         * tests/test-vasprintf.c: Likewise.
76005         * tests/test-vdprintf-posix.c: Likewise.
76006         * tests/test-vfprintf-posix.c: Likewise.
76007         * tests/test-vprintf-posix.c: Likewise.
76008         * tests/test-vsnprintf-posix.c: Likewise.
76009         * tests/test-vsnprintf.c: Likewise.
76010         * tests/test-vsprintf-posix.c: Likewise.
76011         * tests/test-wcrtomb.c: Likewise.
76012         * tests/test-wcsnrtombs.c: Likewise.
76013         * tests/test-wcsrtombs.c: Likewise.
76014         * tests/test-wctype.c: Likewise.
76015         * tests/test-wcwidth.c: Likewise.
76016         * tests/test-xfprintf-posix.c: Likewise.
76017         * tests/test-xmemdup0.c: Likewise.
76018         * tests/test-xprintf-posix.c: Likewise.
76019         * tests/test-xvasprintf.c: Likewise.
76020         * tests/unicase/test-locale-language.c: Likewise.
76021         * tests/unicase/test-mapping-part1.h: Likewise.
76022         * tests/unicase/test-predicate-part1.h: Likewise.
76023         * tests/unicase/test-u8-casecmp.c: Likewise.
76024         * tests/unicase/test-u8-casecoll.c: Likewise.
76025         * tests/unicase/test-u8-casefold.c: Likewise.
76026         * tests/unicase/test-u8-is-cased.c: Likewise.
76027         * tests/unicase/test-u8-is-casefolded.c: Likewise.
76028         * tests/unicase/test-u8-is-lowercase.c: Likewise.
76029         * tests/unicase/test-u8-is-titlecase.c: Likewise.
76030         * tests/unicase/test-u8-is-uppercase.c: Likewise.
76031         * tests/unicase/test-u8-tolower.c: Likewise.
76032         * tests/unicase/test-u8-totitle.c: Likewise.
76033         * tests/unicase/test-u8-toupper.c: Likewise.
76034         * tests/unicase/test-u16-casecmp.c: Likewise.
76035         * tests/unicase/test-u16-casecoll.c: Likewise.
76036         * tests/unicase/test-u16-casefold.c: Likewise.
76037         * tests/unicase/test-u16-is-cased.c: Likewise.
76038         * tests/unicase/test-u16-is-casefolded.c: Likewise.
76039         * tests/unicase/test-u16-is-lowercase.c: Likewise.
76040         * tests/unicase/test-u16-is-titlecase.c: Likewise.
76041         * tests/unicase/test-u16-is-uppercase.c: Likewise.
76042         * tests/unicase/test-u16-tolower.c: Likewise.
76043         * tests/unicase/test-u16-totitle.c: Likewise.
76044         * tests/unicase/test-u16-toupper.c: Likewise.
76045         * tests/unicase/test-u32-casecmp.c: Likewise.
76046         * tests/unicase/test-u32-casecoll.c: Likewise.
76047         * tests/unicase/test-u32-casefold.c: Likewise.
76048         * tests/unicase/test-u32-is-cased.c: Likewise.
76049         * tests/unicase/test-u32-is-casefolded.c: Likewise.
76050         * tests/unicase/test-u32-is-lowercase.c: Likewise.
76051         * tests/unicase/test-u32-is-titlecase.c: Likewise.
76052         * tests/unicase/test-u32-is-uppercase.c: Likewise.
76053         * tests/unicase/test-u32-tolower.c: Likewise.
76054         * tests/unicase/test-u32-totitle.c: Likewise.
76055         * tests/unicase/test-u32-toupper.c: Likewise.
76056         * tests/unicase/test-ulc-casecmp.c: Likewise.
76057         * tests/unicase/test-ulc-casecoll.c: Likewise.
76058         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
76059         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
76060         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
76061         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
76062         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
76063         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
76064         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
76065         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
76066         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
76067         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
76068         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
76069         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
76070         * tests/unictype/test-bidi_byname.c: Likewise.
76071         * tests/unictype/test-bidi_name.c: Likewise.
76072         * tests/unictype/test-bidi_of.c: Likewise.
76073         * tests/unictype/test-bidi_test.c: Likewise.
76074         * tests/unictype/test-block_list.c: Likewise.
76075         * tests/unictype/test-block_of.c: Likewise.
76076         * tests/unictype/test-block_test.c: Likewise.
76077         * tests/unictype/test-categ_and.c: Likewise.
76078         * tests/unictype/test-categ_and_not.c: Likewise.
76079         * tests/unictype/test-categ_byname.c: Likewise.
76080         * tests/unictype/test-categ_name.c: Likewise.
76081         * tests/unictype/test-categ_none.c: Likewise.
76082         * tests/unictype/test-categ_of.c: Likewise.
76083         * tests/unictype/test-categ_or.c: Likewise.
76084         * tests/unictype/test-categ_test_withtable.c: Likewise.
76085         * tests/unictype/test-combining.c: Likewise.
76086         * tests/unictype/test-decdigit.c: Likewise.
76087         * tests/unictype/test-digit.c: Likewise.
76088         * tests/unictype/test-mirror.c: Likewise.
76089         * tests/unictype/test-numeric.c: Likewise.
76090         * tests/unictype/test-pr_byname.c: Likewise.
76091         * tests/unictype/test-pr_test.c: Likewise.
76092         * tests/unictype/test-predicate-part1.h: Likewise.
76093         * tests/unictype/test-scripts.c: Likewise.
76094         * tests/unictype/test-sy_c_ident.c: Likewise.
76095         * tests/unictype/test-sy_java_ident.c: Likewise.
76096         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
76097         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
76098         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
76099         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
76100         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
76101         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
76102         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
76103         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
76104         * tests/uninorm/test-canonical-decomposition.c: Likewise.
76105         * tests/uninorm/test-compat-decomposition.c: Likewise.
76106         * tests/uninorm/test-composition.c: Likewise.
76107         * tests/uninorm/test-decomposing-form.c: Likewise.
76108         * tests/uninorm/test-decomposition.c: Likewise.
76109         * tests/uninorm/test-u8-nfc.c: Likewise.
76110         * tests/uninorm/test-u8-nfd.c: Likewise.
76111         * tests/uninorm/test-u8-nfkc.c: Likewise.
76112         * tests/uninorm/test-u8-nfkd.c: Likewise.
76113         * tests/uninorm/test-u8-normcmp.c: Likewise.
76114         * tests/uninorm/test-u8-normcoll.c: Likewise.
76115         * tests/uninorm/test-u16-nfc.c: Likewise.
76116         * tests/uninorm/test-u16-nfd.c: Likewise.
76117         * tests/uninorm/test-u16-nfkc.c: Likewise.
76118         * tests/uninorm/test-u16-nfkd.c: Likewise.
76119         * tests/uninorm/test-u16-normcmp.c: Likewise.
76120         * tests/uninorm/test-u16-normcoll.c: Likewise.
76121         * tests/uninorm/test-u32-nfc.c: Likewise.
76122         * tests/uninorm/test-u32-nfd.c: Likewise.
76123         * tests/uninorm/test-u32-nfkc.c: Likewise.
76124         * tests/uninorm/test-u32-nfkd.c: Likewise.
76125         * tests/uninorm/test-u32-normalize-big.c: Likewise.
76126         * tests/uninorm/test-u32-normcmp.c: Likewise.
76127         * tests/uninorm/test-u32-normcoll.c: Likewise.
76128         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
76129         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
76130         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
76131         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
76132         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
76133         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
76134         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
76135         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
76136         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
76137         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
76138         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
76139         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
76140         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
76141         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
76142         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
76143         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
76144         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
76145         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
76146         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
76147         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
76148         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
76149         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
76150         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
76151         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
76152         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
76153         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
76154         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
76155         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
76156         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
76157         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
76158         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
76159         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
76160         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
76161         * tests/uniwidth/test-u8-strwidth.c: Likewise.
76162         * tests/uniwidth/test-u8-width.c: Likewise.
76163         * tests/uniwidth/test-u16-strwidth.c: Likewise.
76164         * tests/uniwidth/test-u16-width.c: Likewise.
76165         * tests/uniwidth/test-u32-strwidth.c: Likewise.
76166         * tests/uniwidth/test-u32-width.c: Likewise.
76167         * tests/uniwidth/test-uc_width.c: Likewise.
76168         * tests/uniwidth/test-uc_width2.c: Likewise.
76169         * modules/acl-tests (Files): Add tests/macros.h.
76170         * modules/areadlink-tests (Files): Likewise.
76171         * modules/areadlink-with-size-tests (Files): Likewise.
76172         * modules/areadlinkat-tests (Files): Likewise.
76173         * modules/areadlinkat-with-size-tests (Files): Likewise.
76174         * modules/argmatch-tests (Files): Likewise.
76175         * modules/argv-iter-tests (Files): Likewise.
76176         * modules/array-list-tests (Files): Likewise.
76177         * modules/array-mergesort-tests (Files): Likewise.
76178         * modules/array-oset-tests (Files): Likewise.
76179         * modules/avltree-list-tests (Files): Likewise.
76180         * modules/avltree-oset-tests (Files): Likewise.
76181         * modules/avltreehash-list-tests (Files): Likewise.
76182         * modules/base64-tests (Files): Likewise.
76183         * modules/binary-io-tests (Files): Likewise.
76184         * modules/bitrotate-tests (Files): Likewise.
76185         * modules/btowc-tests (Files): Likewise.
76186         * modules/byteswap-tests (Files): Likewise.
76187         * modules/c-ctype-tests (Files): Likewise.
76188         * modules/c-stack-tests (Files): Likewise.
76189         * modules/c-strcase-tests (Files): Likewise.
76190         * modules/c-strcasestr-tests (Files): Likewise.
76191         * modules/c-strstr-tests (Files): Likewise.
76192         * modules/canonicalize-lgpl-tests (Files): Likewise.
76193         * modules/canonicalize-tests (Files): Likewise.
76194         * modules/carray-list-tests (Files): Likewise.
76195         * modules/ceilf-tests (Files): Likewise.
76196         * modules/ceill-tests (Files): Likewise.
76197         * modules/chown-tests (Files): Likewise.
76198         * modules/cloexec-tests (Files): Likewise.
76199         * modules/copy-file-tests (Files): Likewise.
76200         * modules/count-one-bits-tests (Files): Likewise.
76201         * modules/dprintf-posix-tests (Files): Likewise.
76202         * modules/dup2-tests (Files): Likewise.
76203         * modules/dup3-tests (Files): Likewise.
76204         * modules/duplocale-tests (Files): Likewise.
76205         * modules/fbufmode-tests (Files): Likewise.
76206         * modules/fchdir-tests (Files): Likewise.
76207         * modules/fcntl-safer-tests (Files): Likewise.
76208         * modules/fcntl-tests (Files): Likewise.
76209         * modules/fdopendir-tests (Files): Likewise.
76210         * modules/fdutimensat-tests (Files): Likewise.
76211         * modules/fflush-tests (Files): Likewise.
76212         * modules/filevercmp-tests (Files): Likewise.
76213         * modules/flock-tests (Files): Likewise.
76214         * modules/floorf-tests (Files): Likewise.
76215         * modules/floorl-tests (Files): Likewise.
76216         * modules/fnmatch-tests (Files): Likewise.
76217         * modules/fopen-safer-tests (Files): Likewise.
76218         * modules/fopen-tests (Files): Likewise.
76219         * modules/fpending-tests (Files): Likewise.
76220         * modules/fprintf-posix-tests (Files): Likewise.
76221         * modules/fpurge-tests (Files): Likewise.
76222         * modules/freadable-tests (Files): Likewise.
76223         * modules/freadahead-tests (Files): Likewise.
76224         * modules/freading-tests (Files): Likewise.
76225         * modules/freadptr-tests (Files): Likewise.
76226         * modules/freadseek-tests (Files): Likewise.
76227         * modules/freopen-tests (Files): Likewise.
76228         * modules/frexp-nolibm-tests (Files): Likewise.
76229         * modules/frexp-tests (Files): Likewise.
76230         * modules/frexpl-nolibm-tests (Files): Likewise.
76231         * modules/frexpl-tests (Files): Likewise.
76232         * modules/fseek-tests (Files): Likewise.
76233         * modules/fseeko-tests (Files): Likewise.
76234         * modules/fstrcmp-tests (Files): Likewise.
76235         * modules/fsync-tests (Files): Likewise.
76236         * modules/ftell-tests (Files): Likewise.
76237         * modules/ftello-tests (Files): Likewise.
76238         * modules/func-tests (Files): Likewise.
76239         * modules/futimens-tests (Files): Likewise.
76240         * modules/fwritable-tests (Files): Likewise.
76241         * modules/fwriting-tests (Files): Likewise.
76242         * modules/getcwd-tests (Files): Likewise.
76243         * modules/getdate-tests (Files): Likewise.
76244         * modules/getdelim-tests (Files): Likewise.
76245         * modules/getdtablesize-tests (Files): Likewise.
76246         * modules/getgroups-tests (Files): Likewise.
76247         * modules/getline-tests (Files): Likewise.
76248         * modules/getndelim2-tests (Files): Likewise.
76249         * modules/glob-tests (Files): Likewise.
76250         * modules/hash-tests (Files): Likewise.
76251         * modules/i-ring-tests (Files): Likewise.
76252         * modules/iconv-tests (Files): Likewise.
76253         * modules/iconv_open-utf-tests (Files): Likewise.
76254         * modules/idpriv-drop-tests (Files): Likewise.
76255         * modules/idpriv-droptemp-tests (Files): Likewise.
76256         * modules/inet_ntop-tests (Files): Likewise.
76257         * modules/inet_pton-tests (Files): Likewise.
76258         * modules/isblank-tests (Files): Likewise.
76259         * modules/isfinite-tests (Files): Likewise.
76260         * modules/isinf-tests (Files): Likewise.
76261         * modules/isnan-tests (Files): Likewise.
76262         * modules/isnand-nolibm-tests (Files): Likewise.
76263         * modules/isnand-tests (Files): Likewise.
76264         * modules/isnanf-nolibm-tests (Files): Likewise.
76265         * modules/isnanf-tests (Files): Likewise.
76266         * modules/isnanl-nolibm-tests (Files): Likewise.
76267         * modules/isnanl-tests (Files): Likewise.
76268         * modules/lchown-tests (Files): Likewise.
76269         * modules/ldexpl-tests (Files): Likewise.
76270         * modules/link-tests (Files): Likewise.
76271         * modules/linkat-tests (Files): Likewise.
76272         * modules/linked-list-tests (Files): Likewise.
76273         * modules/linkedhash-list-tests (Files): Likewise.
76274         * modules/localename-tests (Files): Likewise.
76275         * modules/lseek-tests (Files): Likewise.
76276         * modules/lstat-tests (Files): Likewise.
76277         * modules/mbmemcasecmp-tests (Files): Likewise.
76278         * modules/mbmemcasecoll-tests (Files): Likewise.
76279         * modules/mbrtowc-tests (Files): Likewise.
76280         * modules/mbscasecmp-tests (Files): Likewise.
76281         * modules/mbscasestr-tests (Files): Likewise.
76282         * modules/mbschr-tests (Files): Likewise.
76283         * modules/mbscspn-tests (Files): Likewise.
76284         * modules/mbsinit-tests (Files): Likewise.
76285         * modules/mbsncasecmp-tests (Files): Likewise.
76286         * modules/mbsnrtowcs-tests (Files): Likewise.
76287         * modules/mbspbrk-tests (Files): Likewise.
76288         * modules/mbspcasecmp-tests (Files): Likewise.
76289         * modules/mbsrchr-tests (Files): Likewise.
76290         * modules/mbsrtowcs-tests (Files): Likewise.
76291         * modules/mbsspn-tests (Files): Likewise.
76292         * modules/mbsstr-tests (Files): Likewise.
76293         * modules/memchr-tests (Files): Likewise.
76294         * modules/memchr2-tests (Files): Likewise.
76295         * modules/memcmp-tests (Files): Likewise.
76296         * modules/memmem-tests (Files): Likewise.
76297         * modules/memrchr-tests (Files): Likewise.
76298         * modules/mkdir-tests (Files): Likewise.
76299         * modules/mkfifo-tests (Files): Likewise.
76300         * modules/mkfifoat-tests (Files): Likewise.
76301         * modules/mknod-tests (Files): Likewise.
76302         * modules/nanosleep-tests (Files): Likewise.
76303         * modules/nl_langinfo-tests (Files): Likewise.
76304         * modules/obstack-printf-tests (Files): Likewise.
76305         * modules/open-tests (Files): Likewise.
76306         * modules/openat-tests (Files): Likewise.
76307         * modules/pipe-filter-gi-tests (Files): Likewise.
76308         * modules/pipe-filter-ii-tests (Files): Likewise.
76309         * modules/pipe2-tests (Files): Likewise.
76310         * modules/popen-safer-tests (Files): Likewise.
76311         * modules/popen-tests (Files): Likewise.
76312         * modules/posixtm-tests (Files): Likewise.
76313         * modules/pread-tests (Files): Likewise.
76314         * modules/printf-frexp-tests (Files): Likewise.
76315         * modules/printf-frexpl-tests (Files): Likewise.
76316         * modules/printf-posix-tests (Files): Likewise.
76317         * modules/priv-set-tests (Files): Likewise.
76318         * modules/quotearg-tests (Files): Likewise.
76319         * modules/random_r-tests (Files): Likewise.
76320         * modules/rawmemchr-tests (Files): Likewise.
76321         * modules/rbtree-list-tests (Files): Likewise.
76322         * modules/rbtree-oset-tests (Files): Likewise.
76323         * modules/rbtreehash-list-tests (Files): Likewise.
76324         * modules/readlink-tests (Files): Likewise.
76325         * modules/remove-tests (Files): Likewise.
76326         * modules/rename-tests (Files): Likewise.
76327         * modules/renameat-tests (Files): Likewise.
76328         * modules/rmdir-tests (Files): Likewise.
76329         * modules/round-tests (Files): Likewise.
76330         * modules/roundf-tests (Files): Likewise.
76331         * modules/roundl-tests (Files): Likewise.
76332         * modules/safe-alloc-tests (Files): Likewise.
76333         * modules/setenv-tests (Files): Likewise.
76334         * modules/sigaction-tests (Files): Likewise.
76335         * modules/signbit-tests (Files): Likewise.
76336         * modules/sleep-tests (Files): Likewise.
76337         * modules/snprintf-posix-tests (Files): Likewise.
76338         * modules/snprintf-tests (Files): Likewise.
76339         * modules/sprintf-posix-tests (Files): Likewise.
76340         * modules/stat-tests (Files): Likewise.
76341         * modules/stat-time-tests (Files): Likewise.
76342         * modules/strcasestr-tests (Files): Likewise.
76343         * modules/strchrnul-tests (Files): Likewise.
76344         * modules/strerror-tests (Files): Likewise.
76345         * modules/striconv-tests (Files): Likewise.
76346         * modules/striconveh-tests (Files): Likewise.
76347         * modules/striconveha-tests (Files): Likewise.
76348         * modules/strsignal-tests (Files): Likewise.
76349         * modules/strstr-tests (Files): Likewise.
76350         * modules/strtod-tests (Files): Likewise.
76351         * modules/strverscmp-tests (Files): Likewise.
76352         * modules/symlink-tests (Files): Likewise.
76353         * modules/symlinkat-tests (Files): Likewise.
76354         * modules/trunc-tests (Files): Likewise.
76355         * modules/truncf-tests (Files): Likewise.
76356         * modules/truncl-tests (Files): Likewise.
76357         * modules/uname-tests (Files): Likewise.
76358         * modules/unicase/cased-tests (Files): Likewise.
76359         * modules/unicase/ignorable-tests (Files): Likewise.
76360         * modules/unicase/locale-language-tests (Files): Likewise.
76361         * modules/unicase/tolower-tests (Files): Likewise.
76362         * modules/unicase/totitle-tests (Files): Likewise.
76363         * modules/unicase/toupper-tests (Files): Likewise.
76364         * modules/unicase/u8-casecmp-tests (Files): Likewise.
76365         * modules/unicase/u8-casecoll-tests (Files): Likewise.
76366         * modules/unicase/u8-casefold-tests (Files): Likewise.
76367         * modules/unicase/u8-is-cased-tests (Files): Likewise.
76368         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
76369         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
76370         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
76371         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
76372         * modules/unicase/u8-tolower-tests (Files): Likewise.
76373         * modules/unicase/u8-totitle-tests (Files): Likewise.
76374         * modules/unicase/u8-toupper-tests (Files): Likewise.
76375         * modules/unicase/u16-casecmp-tests (Files): Likewise.
76376         * modules/unicase/u16-casecoll-tests (Files): Likewise.
76377         * modules/unicase/u16-casefold-tests (Files): Likewise.
76378         * modules/unicase/u16-is-cased-tests (Files): Likewise.
76379         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
76380         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
76381         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
76382         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
76383         * modules/unicase/u16-tolower-tests (Files): Likewise.
76384         * modules/unicase/u16-totitle-tests (Files): Likewise.
76385         * modules/unicase/u16-toupper-tests (Files): Likewise.
76386         * modules/unicase/u32-casecmp-tests (Files): Likewise.
76387         * modules/unicase/u32-casecoll-tests (Files): Likewise.
76388         * modules/unicase/u32-casefold-tests (Files): Likewise.
76389         * modules/unicase/u32-is-cased-tests (Files): Likewise.
76390         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
76391         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
76392         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
76393         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
76394         * modules/unicase/u32-tolower-tests (Files): Likewise.
76395         * modules/unicase/u32-totitle-tests (Files): Likewise.
76396         * modules/unicase/u32-toupper-tests (Files): Likewise.
76397         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
76398         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
76399         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
76400         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
76401         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
76402         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
76403         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
76404         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
76405         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
76406         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
76407         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
76408         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
76409         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
76410         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
76411         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
76412         * modules/unictype/bidicategory-name-tests (Files): Likewise.
76413         * modules/unictype/bidicategory-of-tests (Files): Likewise.
76414         * modules/unictype/bidicategory-test-tests (Files): Likewise.
76415         * modules/unictype/block-list-tests (Files): Likewise.
76416         * modules/unictype/block-of-tests (Files): Likewise.
76417         * modules/unictype/block-test-tests (Files): Likewise.
76418         * modules/unictype/category-C-tests (Files): Likewise.
76419         * modules/unictype/category-Cc-tests (Files): Likewise.
76420         * modules/unictype/category-Cf-tests (Files): Likewise.
76421         * modules/unictype/category-Cn-tests (Files): Likewise.
76422         * modules/unictype/category-Co-tests (Files): Likewise.
76423         * modules/unictype/category-Cs-tests (Files): Likewise.
76424         * modules/unictype/category-L-tests (Files): Likewise.
76425         * modules/unictype/category-Ll-tests (Files): Likewise.
76426         * modules/unictype/category-Lm-tests (Files): Likewise.
76427         * modules/unictype/category-Lo-tests (Files): Likewise.
76428         * modules/unictype/category-Lt-tests (Files): Likewise.
76429         * modules/unictype/category-Lu-tests (Files): Likewise.
76430         * modules/unictype/category-M-tests (Files): Likewise.
76431         * modules/unictype/category-Mc-tests (Files): Likewise.
76432         * modules/unictype/category-Me-tests (Files): Likewise.
76433         * modules/unictype/category-Mn-tests (Files): Likewise.
76434         * modules/unictype/category-N-tests (Files): Likewise.
76435         * modules/unictype/category-Nd-tests (Files): Likewise.
76436         * modules/unictype/category-Nl-tests (Files): Likewise.
76437         * modules/unictype/category-No-tests (Files): Likewise.
76438         * modules/unictype/category-P-tests (Files): Likewise.
76439         * modules/unictype/category-Pc-tests (Files): Likewise.
76440         * modules/unictype/category-Pd-tests (Files): Likewise.
76441         * modules/unictype/category-Pe-tests (Files): Likewise.
76442         * modules/unictype/category-Pf-tests (Files): Likewise.
76443         * modules/unictype/category-Pi-tests (Files): Likewise.
76444         * modules/unictype/category-Po-tests (Files): Likewise.
76445         * modules/unictype/category-Ps-tests (Files): Likewise.
76446         * modules/unictype/category-S-tests (Files): Likewise.
76447         * modules/unictype/category-Sc-tests (Files): Likewise.
76448         * modules/unictype/category-Sk-tests (Files): Likewise.
76449         * modules/unictype/category-Sm-tests (Files): Likewise.
76450         * modules/unictype/category-So-tests (Files): Likewise.
76451         * modules/unictype/category-Z-tests (Files): Likewise.
76452         * modules/unictype/category-Zl-tests (Files): Likewise.
76453         * modules/unictype/category-Zp-tests (Files): Likewise.
76454         * modules/unictype/category-Zs-tests (Files): Likewise.
76455         * modules/unictype/category-and-not-tests (Files): Likewise.
76456         * modules/unictype/category-and-tests (Files): Likewise.
76457         * modules/unictype/category-byname-tests (Files): Likewise.
76458         * modules/unictype/category-name-tests (Files): Likewise.
76459         * modules/unictype/category-none-tests (Files): Likewise.
76460         * modules/unictype/category-of-tests (Files): Likewise.
76461         * modules/unictype/category-or-tests (Files): Likewise.
76462         * modules/unictype/category-test-withtable-tests (Files): Likewise.
76463         * modules/unictype/combining-class-tests (Files): Likewise.
76464         * modules/unictype/ctype-alnum-tests (Files): Likewise.
76465         * modules/unictype/ctype-alpha-tests (Files): Likewise.
76466         * modules/unictype/ctype-blank-tests (Files): Likewise.
76467         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
76468         * modules/unictype/ctype-digit-tests (Files): Likewise.
76469         * modules/unictype/ctype-graph-tests (Files): Likewise.
76470         * modules/unictype/ctype-lower-tests (Files): Likewise.
76471         * modules/unictype/ctype-print-tests (Files): Likewise.
76472         * modules/unictype/ctype-punct-tests (Files): Likewise.
76473         * modules/unictype/ctype-space-tests (Files): Likewise.
76474         * modules/unictype/ctype-upper-tests (Files): Likewise.
76475         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
76476         * modules/unictype/decimal-digit-tests (Files): Likewise.
76477         * modules/unictype/digit-tests (Files): Likewise.
76478         * modules/unictype/mirror-tests (Files): Likewise.
76479         * modules/unictype/numeric-tests (Files): Likewise.
76480         * modules/unictype/property-alphabetic-tests (Files): Likewise.
76481         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
76482         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
76483         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
76484         Likewise.
76485         * modules/unictype/property-bidi-block-separator-tests (Files):
76486         Likewise.
76487         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
76488         Likewise.
76489         * modules/unictype/property-bidi-common-separator-tests (Files):
76490         Likewise.
76491         * modules/unictype/property-bidi-control-tests (Files): Likewise.
76492         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
76493         Likewise.
76494         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
76495         Likewise.
76496         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
76497         Likewise.
76498         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
76499         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
76500         Likewise.
76501         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
76502         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
76503         Likewise.
76504         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
76505         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
76506         * modules/unictype/property-bidi-segment-separator-tests (Files):
76507         Likewise.
76508         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
76509         * modules/unictype/property-byname-tests (Files): Likewise.
76510         * modules/unictype/property-combining-tests (Files): Likewise.
76511         * modules/unictype/property-composite-tests (Files): Likewise.
76512         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
76513         * modules/unictype/property-dash-tests (Files): Likewise.
76514         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
76515         * modules/unictype/property-default-ignorable-code-point-tests (Files):
76516         Likewise.
76517         * modules/unictype/property-deprecated-tests (Files): Likewise.
76518         * modules/unictype/property-diacritic-tests (Files): Likewise.
76519         * modules/unictype/property-extender-tests (Files): Likewise.
76520         * modules/unictype/property-format-control-tests (Files): Likewise.
76521         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
76522         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
76523         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
76524         * modules/unictype/property-hex-digit-tests (Files): Likewise.
76525         * modules/unictype/property-hyphen-tests (Files): Likewise.
76526         * modules/unictype/property-id-continue-tests (Files): Likewise.
76527         * modules/unictype/property-id-start-tests (Files): Likewise.
76528         * modules/unictype/property-ideographic-tests (Files): Likewise.
76529         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
76530         * modules/unictype/property-ids-trinary-operator-tests (Files):
76531         Likewise.
76532         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
76533         * modules/unictype/property-iso-control-tests (Files): Likewise.
76534         * modules/unictype/property-join-control-tests (Files): Likewise.
76535         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
76536         * modules/unictype/property-line-separator-tests (Files): Likewise.
76537         * modules/unictype/property-logical-order-exception-tests (Files):
76538         Likewise.
76539         * modules/unictype/property-lowercase-tests (Files): Likewise.
76540         * modules/unictype/property-math-tests (Files): Likewise.
76541         * modules/unictype/property-non-break-tests (Files): Likewise.
76542         * modules/unictype/property-not-a-character-tests (Files): Likewise.
76543         * modules/unictype/property-numeric-tests (Files): Likewise.
76544         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
76545         * modules/unictype/property-other-default-ignorable-code-point-tests
76546         (Files): Likewise.
76547         * modules/unictype/property-other-grapheme-extend-tests (Files):
76548         Likewise.
76549         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
76550         * modules/unictype/property-other-id-start-tests (Files): Likewise.
76551         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
76552         * modules/unictype/property-other-math-tests (Files): Likewise.
76553         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
76554         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
76555         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
76556         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
76557         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
76558         * modules/unictype/property-private-use-tests (Files): Likewise.
76559         * modules/unictype/property-punctuation-tests (Files): Likewise.
76560         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
76561         * modules/unictype/property-radical-tests (Files): Likewise.
76562         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
76563         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
76564         * modules/unictype/property-space-tests (Files): Likewise.
76565         * modules/unictype/property-terminal-punctuation-tests (Files):
76566         Likewise.
76567         * modules/unictype/property-test-tests (Files): Likewise.
76568         * modules/unictype/property-titlecase-tests (Files): Likewise.
76569         * modules/unictype/property-unassigned-code-value-tests (Files):
76570         Likewise.
76571         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
76572         * modules/unictype/property-uppercase-tests (Files): Likewise.
76573         * modules/unictype/property-variation-selector-tests (Files): Likewise.
76574         * modules/unictype/property-white-space-tests (Files): Likewise.
76575         * modules/unictype/property-xid-continue-tests (Files): Likewise.
76576         * modules/unictype/property-xid-start-tests (Files): Likewise.
76577         * modules/unictype/property-zero-width-tests (Files): Likewise.
76578         * modules/unictype/scripts-tests (Files): Likewise.
76579         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
76580         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
76581         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
76582         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
76583         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
76584         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
76585         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
76586         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
76587         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
76588         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
76589         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
76590         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
76591         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
76592         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
76593         * modules/uninorm/composition-tests (Files): Likewise.
76594         * modules/uninorm/decomposing-form-tests (Files): Likewise.
76595         * modules/uninorm/decomposition-tests (Files): Likewise.
76596         * modules/uninorm/filter-tests (Files): Likewise.
76597         * modules/uninorm/nfc-tests (Files): Likewise.
76598         * modules/uninorm/nfd-tests (Files): Likewise.
76599         * modules/uninorm/nfkc-tests (Files): Likewise.
76600         * modules/uninorm/nfkd-tests (Files): Likewise.
76601         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
76602         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
76603         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
76604         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
76605         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
76606         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
76607         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
76608         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
76609         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
76610         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
76611         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
76612         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
76613         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
76614         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
76615         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
76616         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
76617         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
76618         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
76619         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
76620         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
76621         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
76622         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
76623         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
76624         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
76625         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
76626         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
76627         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
76628         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
76629         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
76630         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
76631         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
76632         * modules/uniwidth/u8-width-tests (Files): Likewise.
76633         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
76634         * modules/uniwidth/u16-width-tests (Files): Likewise.
76635         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
76636         * modules/uniwidth/u32-width-tests (Files): Likewise.
76637         * modules/uniwidth/width-tests (Files): Likewise.
76638         * modules/unlink-tests (Files): Likewise.
76639         * modules/unsetenv-tests (Files): Likewise.
76640         * modules/usleep-tests (Files): Likewise.
76641         * modules/utimens-tests (Files): Likewise.
76642         * modules/utimensat-tests (Files): Likewise.
76643         * modules/vasnprintf-posix-tests (Files): Likewise.
76644         * modules/vasnprintf-tests (Files): Likewise.
76645         * modules/vasprintf-posix-tests (Files): Likewise.
76646         * modules/vasprintf-tests (Files): Likewise.
76647         * modules/vdprintf-posix-tests (Files): Likewise.
76648         * modules/vfprintf-posix-tests (Files): Likewise.
76649         * modules/vprintf-posix-tests (Files): Likewise.
76650         * modules/vsnprintf-posix-tests (Files): Likewise.
76651         * modules/vsnprintf-tests (Files): Likewise.
76652         * modules/vsprintf-posix-tests (Files): Likewise.
76653         * modules/wcrtomb-tests (Files): Likewise.
76654         * modules/wcsnrtombs-tests (Files): Likewise.
76655         * modules/wcsrtombs-tests (Files): Likewise.
76656         * modules/wctype-tests (Files): Likewise.
76657         * modules/wcwidth-tests (Files): Likewise.
76658         * modules/xmemdup0-tests (Files): Likewise.
76659         * modules/xprintf-posix-tests (Files): Likewise.
76660         * modules/xvasprintf-tests (Files): Likewise.
76662 2009-12-24  Eric Blake  <ebb9@byu.net>
76664         test-nanosleep: fix typo
76665         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
76666         patch.
76667         Reported by Bruno Haible.
76669 2009-12-24  Bruno Haible  <bruno@clisp.org>
76671         Reduce namespace pollution on glibc systems.
76672         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
76673         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
76674         systems.
76675         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
76676         <getopt.h> on glibc systems.
76677         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
76678         systems.
76679         * lib/fcntl.c: Include <unistd.h> here instead.
76681 2009-12-24  Bruno Haible  <bruno@clisp.org>
76683         * lib/stdlib.in.h (includes): Fix typo in today's commit.
76685 2009-12-24  Eric Blake  <ebb9@byu.net>
76687         tests: add signature checks
76688         * tests/signature.h (SIGNATURE_CHECK): New file.
76689         * modules/atexit-tests (Files): Use it.
76690         * modules/btowc-tests (Files): Likewise.
76691         * modules/canonicalize-lgpl-tests (Files): Likewise.
76692         * modules/ceilf-tests (Files): Likewise.
76693         * modules/ceill-tests (Files): Likewise.
76694         * modules/chown-tests (Files): Likewise.
76695         * modules/dprintf-posix-tests (Files): Likewise.
76696         * modules/dup2-tests (Files): Likewise.
76697         * modules/dup3-tests (Files): Likewise.
76698         * modules/duplocale-tests (Files): Likewise.
76699         * modules/fchdir-tests (Files): Likewise.
76700         * modules/fcntl-tests (Files): Likewise.
76701         * modules/fdopendir-tests (Files): Likewise.
76702         * modules/fflush-tests (Files): Likewise.
76703         * modules/flock-tests (Files): Likewise.
76704         * modules/floorf-tests (Files): Likewise.
76705         * modules/floorl-tests (Files): Likewise.
76706         * modules/fnmatch-tests (Files): Likewise.
76707         * modules/fopen-tests (Files): Likewise.
76708         * modules/fprintf-posix-tests (Files): Likewise.
76709         * modules/freopen-tests (Files): Likewise.
76710         * modules/frexp-nolibm-tests (Files): Likewise.
76711         * modules/frexp-tests (Files): Likewise.
76712         * modules/frexpl-nolibm-tests (Files): Likewise.
76713         * modules/frexpl-tests (Files): Likewise.
76714         * modules/fseek-tests (Files): Likewise.
76715         * modules/fseeko-tests (Files): Likewise.
76716         * modules/fsync-tests (Files): Likewise.
76717         * modules/ftell-tests (Files): Likewise.
76718         * modules/ftello-tests (Files): Likewise.
76719         * modules/futimens-tests (Files): Likewise.
76720         * modules/getaddrinfo-tests (Files): Likewise.
76721         * modules/getcwd-tests (Files): Likewise.
76722         * modules/getdelim-tests (Files): Likewise.
76723         * modules/getdtablesize-tests (Files): Likewise.
76724         * modules/getgroups-tests (Files): Likewise.
76725         * modules/gethostname-tests (Files): Likewise.
76726         * modules/getline-tests (Files): Likewise.
76727         * modules/getopt-posix-tests (Files): Likewise.
76728         * modules/gettimeofday-tests (Files): Likewise.
76729         * modules/glob-tests (Files): Likewise.
76730         * modules/iconv-tests (Files): Likewise.
76731         * modules/inet_ntop-tests (Files): Likewise.
76732         * modules/inet_pton-tests (Files): Likewise.
76733         * modules/isblank-tests (Files): Likewise.
76734         * modules/lchown-tests (Files): Likewise.
76735         * modules/ldexpl-tests (Files): Likewise.
76736         * modules/link-tests (Files): Likewise.
76737         * modules/linkat-tests (Files): Likewise.
76738         * modules/lseek-tests (Files): Likewise.
76739         * modules/lstat-tests (Files): Likewise.
76740         * modules/mbrtowc-tests (Files): Likewise.
76741         * modules/mbsinit-tests (Files): Likewise.
76742         * modules/mbsnrtowcs-tests (Files): Likewise.
76743         * modules/mbsrtowcs-tests (Files): Likewise.
76744         * modules/memchr-tests (Files): Likewise.
76745         * modules/memcmp-tests (Files): Likewise.
76746         * modules/memmem-tests (Files): Likewise.
76747         * modules/memrchr-tests (Files): Likewise.
76748         * modules/mkdir-tests (Files): Likewise.
76749         * modules/mkfifo-tests (Files): Likewise.
76750         * modules/mkfifoat-tests (Files): Likewise.
76751         * modules/mknod-tests (Files): Likewise.
76752         * modules/nanosleep-tests (Files): Likewise.
76753         * modules/nl_langinfo-tests (Files): Likewise.
76754         * modules/obstack-printf-tests (Files): Likewise.
76755         * modules/open-tests (Files): Likewise.
76756         * modules/openat-tests (Files): Likewise.
76757         * modules/perror-tests (Files): Likewise.
76758         * modules/pipe2-tests (Files): Likewise.
76759         * modules/poll-tests (Files): Likewise.
76760         * modules/popen-tests (Files): Likewise.
76761         * modules/posix_spawn-tests (Files): Likewise.
76762         * modules/posix_spawnp-tests (Files): Likewise.
76763         * modules/pread-tests (Files): Likewise.
76764         * modules/printf-posix-tests (Files): Likewise.
76765         * modules/pty-tests (Files): Likewise.
76766         * modules/random_r-tests (Files): Likewise.
76767         * modules/rawmemchr-tests (Files): Likewise.
76768         * modules/readlink-tests (Files): Likewise.
76769         * modules/remove-tests (Files): Likewise.
76770         * modules/rename-tests (Files): Likewise.
76771         * modules/renameat-tests (Files): Likewise.
76772         * modules/rmdir-tests (Files): Likewise.
76773         * modules/round-tests (Files): Likewise.
76774         * modules/roundf-tests (Files): Likewise.
76775         * modules/roundl-tests (Files): Likewise.
76776         * modules/select-tests (Files): Likewise.
76777         * modules/setenv-tests (Files): Likewise.
76778         * modules/sigaction-tests (Files): Likewise.
76779         * modules/sleep-tests (Files): Likewise.
76780         * modules/snprintf-posix-tests (Files): Likewise.
76781         * modules/snprintf-tests (Files): Likewise.
76782         * modules/sprintf-posix-tests (Files): Likewise.
76783         * modules/stat-tests (Files): Likewise.
76784         * modules/strcasestr-tests (Files): Likewise.
76785         * modules/strchrnul-tests (Files): Likewise.
76786         * modules/strerror-tests (Files): Likewise.
76787         * modules/strsignal-tests (Files): Likewise.
76788         * modules/strstr-tests (Files): Likewise.
76789         * modules/strtod-tests (Files): Likewise.
76790         * modules/strverscmp-tests (Files): Likewise.
76791         * modules/symlink-tests (Files): Likewise.
76792         * modules/symlinkat-tests (Files): Likewise.
76793         * modules/times-tests (Files): Likewise.
76794         * modules/trunc-tests (Files): Likewise.
76795         * modules/truncf-tests (Files): Likewise.
76796         * modules/truncl-tests (Files): Likewise.
76797         * modules/tsearch-tests (Files): Likewise.
76798         * modules/uname-tests (Files): Likewise.
76799         * modules/unlink-tests (Files): Likewise.
76800         * modules/unsetenv-tests (Files): Likewise.
76801         * modules/usleep-tests (Files): Likewise.
76802         * modules/utimensat-tests (Files): Likewise.
76803         * modules/vasprintf-tests (Files): Likewise.
76804         * modules/vdprintf-posix-tests (Files): Likewise.
76805         * modules/vfprintf-posix-tests (Files): Likewise.
76806         * modules/vprintf-posix-tests (Files): Likewise.
76807         * modules/vsnprintf-posix-tests (Files): Likewise.
76808         * modules/vsnprintf-tests (Files): Likewise.
76809         * modules/vsprintf-posix-tests (Files): Likewise.
76810         * modules/wcrtomb-tests (Files): Likewise.
76811         * modules/wcsnrtombs-tests (Files): Likewise.
76812         * modules/wcsrtombs-tests (Files): Likewise.
76813         * modules/wcwidth-tests (Files): Likewise.
76814         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
76815         * tests/test-isinf.c (isinf): Likewise.
76816         * tests/test-isnan.c (isnan): Likewise.
76817         * tests/test-signbit.c (signbit): Likewise.
76818         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
76819         declaration, either as macro or with correct signature.
76820         (select): Ensure function under test is declared with correct
76821         signature in correct header.
76822         * tests/test-atexit.c (atexit): Likewise.
76823         * tests/test-btowc.c (btowc): Likewise.
76824         * tests/test-canonicalize-lgpl.c (realpath)
76825         (canonicalize_file_name): Likewise.
76826         * tests/test-ceilf1.c (ceilf): Likewise.
76827         * tests/test-ceill.c (ceill): Likewise.
76828         * tests/test-chown.c (chown): Likewise.
76829         * tests/test-dprintf-posix.c (dprintf): Likewise.
76830         * tests/test-dup2.c (dup2): Likewise.
76831         * tests/test-dup3.c (dup3): Likewise.
76832         * tests/test-duplocale.c (duplocale): Likewise.
76833         * tests/test-fchdir.c (fchdir): Likewise.
76834         * tests/test-fchownat.c (fchownat): Likewise.
76835         * tests/test-fcntl.c (fcntl): Likewise.
76836         * tests/test-fdopendir.c (fdopendir): Likewise.
76837         * tests/test-fflush.c (fflush): Likewise.
76838         * tests/test-flock.c (flock): Likewise.
76839         * tests/test-floorf1.c (floorf): Likewise.
76840         * tests/test-floorl.c (floorl): Likewise.
76841         * tests/test-fnmatch.c (fnmatch): Likewise.
76842         * tests/test-fopen.c (fopen): Likewise.
76843         * tests/test-fprintf-posix.c (fprintf): Likewise.
76844         * tests/test-freopen.c (freopen): Likewise.
76845         * tests/test-frexp.c (frexp): Likewise.
76846         * tests/test-frexpl.c (frexpl): Likewise.
76847         * tests/test-fseek.c (fseek): Likewise.
76848         * tests/test-fseeko.c (fseeko): Likewise.
76849         * tests/test-fstatat.c (fstatat): Likewise.
76850         * tests/test-fsync.c (fsync): Likewise.
76851         * tests/test-ftell.c (ftell): Likewise.
76852         * tests/test-ftello.c (ftello): Likewise.
76853         * tests/test-futimens.c (futimens): Likewise.
76854         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
76855         (gai_strerror): Likewise.
76856         * tests/test-getcwd.c (getcwd): Likewise.
76857         * tests/test-getdelim.c (getdelim): Likewise.
76858         * tests/test-getdtablesize.c (getdtablesize): Likewise.
76859         * tests/test-getgroups.c (getgroups): Likewise.
76860         * tests/test-gethostname.c (gethostname): Likewise.
76861         * tests/test-getline.c (getline): Likewise.
76862         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
76863         Likewise.
76864         * tests/test-gettimeofday.c (gettimeofday): Likewise.
76865         * tests/test-glob.c (glob, globfree): Likewise.
76866         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
76867         * tests/test-inet_ntop.c (inet_ntop): Likewise.
76868         * tests/test-inet_pton.c (inet_pton): Likewise.
76869         * tests/test-isblank.c (isblank): Likewise.
76870         * tests/test-lchown.c (lchown): Likewise.
76871         * tests/test-ldexpl.c (ldexpl): Likewise.
76872         * tests/test-link.c (link): Likewise.
76873         * tests/test-linkat.c (linkat): Likewise.
76874         * tests/test-lseek.c (lseek): Likewise.
76875         * tests/test-lstat.c (lstat): Likewise.
76876         * tests/test-mbrtowc.c (mbrtowc): Likewise.
76877         * tests/test-mbsinit.c (mbsinit): Likewise.
76878         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
76879         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
76880         * tests/test-memchr.c (memchr): Likewise.
76881         * tests/test-memcmp.c (memcmp): Likewise.
76882         * tests/test-memmem.c (memmem): Likewise.
76883         * tests/test-memrchr.c (memrchr): Likewise.
76884         * tests/test-mkdir.c (mkdir): Likewise.
76885         * tests/test-mkdirat.c (mkdirat): Likewise.
76886         * tests/test-mkfifo.c (mkfifo): Likewise.
76887         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
76888         * tests/test-mknod.c (mknod): Likewise.
76889         * tests/test-nanosleep.c (nanosleep): Likewise.
76890         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
76891         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
76892         Likewise.
76893         * tests/test-open.c (open): Likewise.
76894         * tests/test-openat.c (openat): Likewise.
76895         * tests/test-perror.c (perror): Likewise.
76896         * tests/test-pipe2.c (pipe2): Likewise.
76897         * tests/test-poll.c (poll): Likewise.
76898         * tests/test-popen.c (popen, pclose): Likewise.
76899         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
76900         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
76901         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
76902         (posix_spawn_file_actions_destroy)
76903         (posix_spawn_file_actions_addclose)
76904         (posix_spawn_file_actions_addopen)
76905         (posix_spawn_file_actions_adddup2): Likewise.
76906         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
76907         * tests/test-pread.c (pread): Likewise.
76908         * tests/test-printf-posix.c (printf): Likewise.
76909         * tests/test-pty.c (openpty, forkpty): Likewise.
76910         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
76911         (random_r): Likewise.
76912         * tests/test-rawmemchr.c (rawmemchr): Likewise.
76913         * tests/test-readlink.c (readlink): Likewise.
76914         * tests/test-remove.c (remove): Likewise.
76915         * tests/test-rename.c (rename): Likewise.
76916         * tests/test-renameat.c (renameat): Likewise.
76917         * tests/test-rmdir.c (rmdir): Likewise.
76918         * tests/test-round1.c (round): Likewise.
76919         * tests/test-roundf1.c (roundf): Likewise.
76920         * tests/test-roundl.c (roundl): Likewise.
76921         * tests/test-setenv.c (setenv): Likewise.
76922         * tests/test-sigaction.c (sigaction): Likewise.
76923         * tests/test-sleep.c (sleep): Likewise.
76924         * tests/test-snprintf.c (snprintf): Likewise.
76925         * tests/test-sprintf-posix.c (sprintf): Likewise.
76926         * tests/test-stat.c (stat): Likewise.
76927         * tests/test-stpncpy.c (stpncpy): Likewise.
76928         * tests/test-strcasestr.c (strcasestr): Likewise.
76929         * tests/test-strchrnul.c (strchrnul): Likewise.
76930         * tests/test-strerror.c (strerror): Likewise.
76931         * tests/test-strsignal.c (strsignal): Likewise.
76932         * tests/test-strstr.c (strstr): Likewise.
76933         * tests/test-strtod.c (strtod): Likewise.
76934         * tests/test-strverscmp.c (strverscmp): Likewise.
76935         * tests/test-symlink.c (symlink): Likewise.
76936         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
76937         * tests/test-times.c (times): Likewise.
76938         * tests/test-trunc1.c (trunc): Likewise.
76939         * tests/test-truncf1.c (truncf): Likewise.
76940         * tests/test-truncl.c (truncl): Likewise.
76941         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
76942         Likewise.
76943         * tests/test-uname.c (uname): Likewise.
76944         * tests/test-unlink.c (unlink): Likewise.
76945         * tests/test-unlinkat.c (unlinkat): Likewise.
76946         * tests/test-unsetenv.c (unsetenv): Likewise.
76947         * tests/test-usleep.c (usleep): Likewise.
76948         * tests/test-utimensat.c (utimensat): Likewise.
76949         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
76950         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
76951         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
76952         * tests/test-vprintf-posix.c (vprintf): Likewise.
76953         * tests/test-vsnprintf.c (vsnprintf): Likewise.
76954         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
76955         * tests/test-wcrtomb.c (wcrtomb): Likewise.
76956         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
76957         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
76958         * tests/test-wcwidth.c (wcwidth): Likewise.
76960         build: pull in conditional headers during GNULIB_POSIXCHECK
76961         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
76962         definitions from any conditionally-included headers.
76963         * lib/stdlib.in.h (includes): Likewise.
76964         * lib/unistd.in.h (includes): Likewise.
76966 2009-12-24  Bruno Haible  <bruno@clisp.org>
76968         * tests/test-argv-iter.c: Include header file being tested immediately
76969         after config.h.
76970         * tests/test-base64.c: Likewise.
76971         * tests/test-flock.c: Likewise.
76972         * tests/test-fsync.c: Likewise.
76973         * tests/test-getdate.c: Likewise.
76974         * tests/test-getndelim2.c: Likewise.
76975         * tests/test-isfinite.c: Likewise.
76976         * tests/test-isinf.c: Likewise.
76977         * tests/test-strerror.c: Likewise.
76978         * tests/test-strsignal.c: Likewise.
76980 2009-12-23  Eric Blake  <ebb9@byu.net>
76982         unistd: work around cygwin bug
76983         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
76984         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
76985         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76987 2009-12-23  Bruno Haible  <bruno@clisp.org>
76989         localename: More tests.
76990         * tests/test-localename.c (SIZEOF): New macro.
76991         (categories): New variable.
76992         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
76993         test_locale_name_default): Add test w.r.t. thread locale.
76994         (test_locale_name_thread): New function.
76995         (main): Invoke it.
76997         localename: Make aware of thread locale.
76998         * lib/localename.h (gl_locale_name_thread): New declaration.
76999         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
77000         behaviour with respect to thread locale.
77001         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
77002         <langinfo.h>, glthread/lock.h.
77003         (SIZE_BITS): New macro.
77004         (string_hash): New function.
77005         (struct hash_node): New type.
77006         (HASH_TABLE_SIZE): New macro.
77007         (struniq_hash_table, struniq_lock): New variables.
77008         (struniq): New function.
77009         (gl_locale_name_thread): New function.
77010         (gl_locale_name): Invoke it.
77011         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
77012         * modules/localename (Depends-on): Add lock.
77013         Reported by Mike Gran <spk121@yahoo.com>.
77015 2009-12-23  Eric Blake  <ebb9@byu.net>
77017         va-args: new module
77018         * modules/va-args: New file.
77019         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
77020         * MODULES.html.sh (Core language properties): Mention it.
77022         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
77023         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
77024         named alias for __attribute__((__unused__)).
77025         * lib/chown.c: Update client.
77026         * lib/fchmodat.c: Likewise.
77027         * lib/fts.c: Likewise.
77028         * lib/getdate.y: Likewise.
77029         * lib/getgroups.c: Likewise.
77030         * lib/getopt.c: Likewise.
77031         * lib/getugroups.c: Likewise.
77032         * lib/mkdir.c: Likewise.
77033         * lib/mkfifo.c: Likewise.
77034         * lib/mkfifoat.c: Likewise.
77035         * lib/mknod.c: Likewise.
77036         * lib/mknodat.c: Likewise.
77037         * lib/readlink.c: Likewise.
77038         * lib/se-context.in.h: Likewise.
77039         * lib/se-selinux.in.h: Likewise.
77040         * lib/sockets.c: Likewise.
77041         * lib/symlink.c: Likewise.
77042         * lib/symlinkat.c: Likewise.
77043         * lib/unicodeio.c: Likewise.
77044         * lib/unistr.h: Likewise.
77045         * tests/test-areadlink.c: Likewise.
77046         * tests/test-areadlinkat.c: Likewise.
77047         * tests/test-filenamecat.c: Likewise.
77048         * tests/test-fseeko.c: Likewise.
77049         * tests/test-ftello.c: Likewise.
77050         * tests/test-getdate.c: Likewise.
77051         * tests/test-getgroups.c: Likewise.
77052         * tests/test-gethostname.c: Likewise.
77053         * tests/test-quotearg.c: Likewise.
77054         * tests/test-version-etc.c: Likewise.
77055         * tests/test-xalloc-die.c: Likewise.
77056         * tests/test-xfprintf-posix.c: Likewise.
77057         * tests/test-xprintf-posix.c: Likewise.
77058         * tests/test-xvasprintf.c: Likewise.
77060         tests: avoid compiler warnings
77061         * tests/test-fcntl.c (main): Delete unused parameters.
77062         * tests/test-freopen-safer.c (main): Likewise.
77063         * tests/test-xalloc-die.c (main): Mark unused parameters.
77064         * tests/test-fseeko.c (main): Likewise.
77065         * tests/test-ftello.c (main): Likewise.
77066         * tests/test-nanosleep.c (main): Avoid declaration warning.
77067         * tests/test-sleep.c (main): Likewise.
77068         * tests/test-unsetenv.c (main): Silence warning about string
77069         literal.
77070         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
77072 2009-12-23  Bruno Haible  <bruno@clisp.org>
77074         * tests/test-localename.c (test_locale_name): New function, extracted
77075         from main. Also test mixed situations.
77076         (test_locale_name_posix, test_locale_name_environ,
77077         test_locale_name_default): New functions.
77078         (main): Invoke them all.
77079         * modules/localename-tests (configure.ac): Test for newlocale.
77081 2009-12-23  Bruno Haible  <bruno@clisp.org>
77083         unistd: Ensure getcwd gets declared before being overridden.
77084         * lib/unistd.in.h: Conditionally include <io.h>.
77086 2009-12-22  Bruno Haible  <bruno@clisp.org>
77088         wchar: Diagnose broken combination of glibc and gcc versions and flags.
77089         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
77090         (gl_WCHAR_H): Invoke it.
77091         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
77092         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
77093         Reported by Karl Berry <karl@freefriends.org>.
77095 2009-12-22  Eric Blake  <ebb9@byu.net>
77097         math, unistd: avoid redundant includes
77098         * lib/math.in.h (isnan): No need to re-include <math.h>.
77099         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
77101         getsubopt: work around cygwin bug
77102         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
77103         avoid conflicting with system getsubopt.
77104         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
77105         bug.
77107         getopt: synchronize from glibc
77108         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
77109         parameter order.  Adjust all callers.
77110         (_getopt_internal_r, main): Adjust quoting in error messages.
77111         Drop considerations for outdated POSIX 1003.2 error message.
77112         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
77113         callers.
77114         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
77116         test-getopt: test stderr behavior
77117         * modules/getopt-posix-tests (Depends-on): Add dup2.
77118         * tests/test-getopt.c (ASSERT): Avoid stderr.
77119         (main): Move stderr to a temporary file.
77120         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
77121         Instead, add parameter to inform caller if output occurred.
77122         (test_getopt): Adjust all existing tests to expect silence, and
77123         add new tests of leading ":".
77124         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
77125         glibc shortcomings with leading "-:" or "+:" in optstring.
77126         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
77127         Likewise.
77128         * doc/posix-functions/getopt.texi (getopt): Likewise.
77130         test-getopt: enhance test
77131         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
77132         supports optind=0.
77133         * tests/test-getopt.c (OPTIND_MIN): Move...
77134         * tests/test-getopt.h (OPTIND_MIN): ...here.
77135         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
77136         Require that optind=0 works, since modern BSD supports it in
77137         addition to optreset, and since coreutils expects it.
77138         (test_getopt_long_only): New test.
77139         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
77140         glibc shortcomings with 'W;', and enforcement of optind=0.
77141         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
77142         Likewise.
77144 2009-12-21  Bruno Haible  <bruno@clisp.org>
77146         localename: Improvements for MacOS X and Cygwin.
77147         * lib/localename.h (gl_locale_name_environ): New declaration.
77148         * lib/localename.c (gl_locale_name_environ): New function, extracted from
77149         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
77150         (gl_locale_name_posix): Invoke it.
77151         (gl_locale_name_default): Add comments. Use Windows native API also on
77152         Cygwin.
77154 2009-12-21  Bruno Haible  <bruno@clisp.org>
77156         Update list of Win32 locale ids.
77157         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
77158         (LANG_SAMI): Renamed from LANG_SAAMI.
77159         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
77160         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
77161         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
77162         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
77163         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
77164         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
77165         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
77166         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
77167         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
77168         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
77169         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
77170         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
77171         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
77172         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
77173         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
77174         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
77175         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
77176         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
77177         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
77178         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
77179         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
77180         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
77181         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
77182         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
77183         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
77184         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
77185         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
77186         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
77187         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
77188         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
77189         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
77190         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
77191         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
77192         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
77193         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
77194         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
77195         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
77196         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
77197         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
77198         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
77199         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
77200         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
77201         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
77202         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
77203         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
77204         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
77205         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
77206         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
77207         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
77208         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
77209         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
77210         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
77211         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
77212         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
77213         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
77214         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
77215         Add more languages and countries for Sami, Sorbian. Add more countries
77216         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
77217         for Pashto. Change country for Syriac, Tswana.
77219 2009-12-21  Eric Blake  <ebb9@byu.net>
77221         test-utimens: avoid spurious failure
77222         * tests/test-chown.h (nap): Factor...
77223         * tests/nap.h: ...into new file.
77224         * tests/test-lchown.h (nap): Avoid duplication.
77225         * tests/test-utimens-common.h (nap): Use shared implementation,
77226         necessary on file systems with 1-second resolution.
77227         * modules/chown-tests (Files): Include new file.
77228         * modules/fdutimensat-tests (Files): Likewise.
77229         * modules/futimens-tests (Files): Likewise.
77230         * modules/lchown-tests (Files): Likewise.
77231         * modules/openat-tests (Files): Likewise.
77232         * modules/utimens-tests (Files): Likewise.
77233         * modules/utimensat-tests (Files): Likewise.
77235 2009-12-19  Eric Blake  <ebb9@byu.net>
77237         futimens, utimensat: work around Linux bug
77238         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
77239         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
77240         * lib/utimensat.c (rpl_utimensat): Work around it.
77241         * lib/futimens.c (rpl_futimens): Adjust comment.
77243         utimens: work around Linux ctime bug
77244         * lib/utimens.c (detect_ctime_bug): New helper function.
77245         (update_timespec): Differentiate between workaround needed for
77246         this bug vs. what is needed for systems that lack utimensat.
77247         (fdutimens, lutimens): Work around bug.
77249         utimens: check for ctime update
77250         * tests/test-utimens-common.h (check_ctime): Define.
77251         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
77252         * tests/test-futimens.h (test_futimens): Likewise.
77253         * tests/test-lutimens.h (test_lutimens): Likewise.
77254         * doc/posix-functions/futimens.texi (futimens): Document the bug.
77255         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77257 2009-12-19  Bruno Haible  <bruno@clisp.org>
77259         dprintf-posix: Check against memory leak fixed on 2009-12-15.
77260         * tests/test-dprintf-posix2.sh: New file.
77261         * tests/test-dprintf-posix2.c: New file.
77262         * modules/dprintf-posix-tests (Files): Add them.
77263         (configure.ac): Check for getrlimit and setrlimit.
77264         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
77266 2009-12-19  Bruno Haible  <bruno@clisp.org>
77268         fprintf-posix: Check against memory leak fixed on 2009-12-15.
77269         * tests/test-fprintf-posix3.sh: New file.
77270         * tests/test-fprintf-posix3.c: New file.
77271         * modules/fprintf-posix-tests (Files): Add them.
77272         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
77274 2009-12-19  Eric Blake  <ebb9@byu.net>
77276         dirfd: fix prototype
77277         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
77278         * lib/dirfd.c (dirfd): Likewise.
77280         canonicalize: reduce memory usage
77281         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
77282         allocation to size.
77283         Reported by Solar Designer <solar@openwall.com>.
77285 2009-12-19  Bruno Haible  <bruno@clisp.org>
77287         New module attribute 'Applicability'.
77288         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
77289         * gnulib-tool: New option --extract-applicability.
77290         (func_usage): Document it.
77291         (sed_extract_prog): Recognize it.
77292         (func_get_applicability): New function.
77293         (func_import): Generalize handling of 'link-warning' module.
77294         * modules/link-warning (Applicability): New section.
77295         * modules/arg-nonnull (Applicability): New section.
77296         Repoted by Simon Josefsson <simon@josefsson.org>.
77298 2009-12-19  Bruno Haible  <bruno@clisp.org>
77300         fflush: tweak
77301         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
77302         * lib/fseeko.c (rpl_fseeko): Likewise.
77304 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
77306         * lib/gl_list.h: Fix typo in comment.
77308 2009-12-16  Eric Blake  <ebb9@byu.net>
77310         fcntl: use to simplify other modules
77311         * modules/cloexec (Depends-on): Add fcntl.
77312         * modules/fchdir (Depends-on): Likewise.
77313         * modules/fd-safer-flag (Depends-on): Likewise.
77314         * modules/unistd-safer (Depends-on): Likewise.
77315         * modules/dup3 (configure.ac): Set module indicator.
77316         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
77317         missing.
77318         * lib/fchdir.c (_gl_register_dup): Fix comment.
77319         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
77320         * lib/dup-safer.c (dup_safer): Likewise.
77321         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
77322         * lib/dup3.c (dup3): Likewise.
77323         * tests/test-fchdir.c (main): Enhance test.
77324         Fixes a dup_cloexec bug reported by Ondřej Vašík.
77326         fcntl: port portions of fcntl to mingw
77327         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
77328         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
77329         replacement for mingw.
77330         * modules/fcntl (Description): Update.
77331         (Depends-on): Add dup2.
77332         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
77333         * modules/fcntl-h (Makefile.am): Substitute it.
77334         * lib/fcntl.in.h (fcntl): Update declaration.
77335         (F_DUPFD, F_GETFD): New macros, when needed.
77336         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77337         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
77338         * tests/test-fcntl.c (check_flags, main): Enhance test for items
77339         we now guarantee.
77341         fcntl: work around cygwin bug in F_DUPFD
77342         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
77343         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
77344         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
77345         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
77346         * doc/posix-functions/fcntl.texi (fcntl): Document it.
77348         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
77349         * modules/fcntl (Files): List new files.
77350         (configure.ac): Run a test.
77351         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
77352         * lib/fcntl.c (rpl_fcntl): Likewise.
77353         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
77354         (gl_FCNTL_H): Always replace fcntl.h.
77355         * modules/fcntl-h (Makefile.am): Substitute witnesses.
77356         * lib/fcntl.in.h (fcntl): Declare replacement.
77357         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
77358         needed, plus a witness.
77359         * doc/posix-functions/fcntl.texi (fcntl): Document this.
77360         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
77361         * tests/test-fcntl.c: New file.
77362         * modules/fcntl-tests: Likewise.
77364         binary-io: avoid potential compilation warning
77365         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
77366         directives.
77368         fflush: avoid compilation error on NetBSD
77369         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
77370         between off_t and fpos_t, since the latter is sometimes a struct.
77371         * lib/fseeko.c (rpl_fseeko): Likewise.
77372         Reported by Alexander Nasonov <alnsn@yandex.ru>.
77374 2009-12-15  Eric Blake  <ebb9@byu.net>
77376         fcntl-h, stdio, sys_ioctl: fix declarations
77377         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
77378         function must not take arguments.
77379         * lib/sys_ioctl.in.h (ioctl): Likewise.
77380         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
77381         (open): Add a link warning.
77383 2009-12-15  Jim Meyering  <meyering@redhat.com>
77385         areadlink, areadlink-with-size: relax license to LGPLv2+
77386         * modules/areadlink (License): Relax to LGPLv2+.
77387         * modules/areadlink-with-size (License): Likewise.
77389 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
77390             Bruno Haible  <bruno@clisp.org>
77392         *printf: Fix memory leak.
77393         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
77394         * lib/vfprintf.c (vfprintf): Likewise.
77395         * lib/dprintf.c (dprintf): Likewise.
77396         * lib/vdprintf.c (vdprintf): Likewise.
77398 2009-12-14  Eric Blake  <ebb9@byu.net>
77400         accept4: adjust module dependencies
77401         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
77403         utimens: one more try at avoiding compiler warning
77404         * lib/utimens.c (lutimens): Lower scope of result.
77406 2009-12-13  Bruno Haible  <bruno@clisp.org>
77408         Move the malloc checking from module 'list' to new module 'xlist'.
77409         * modules/xlist: New file.
77410         * lib/gl_xlist.h: New file.
77411         * lib/gl_xlist.c: New file.
77412         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
77413         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
77414         gl_list_add_last, gl_list_add_before, gl_list_add_after,
77415         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
77416         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
77417         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
77418         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
77419         gl_sortedlist_nx_add): New declarations.
77420         (struct gl_list_implementation): Rename and change methods accordingly.
77421         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
77422         (gl_list_nx_create): Renamed from gl_list_create.
77423         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
77424         (gl_list_nx_set_at): Renamed from gl_list_set_at.
77425         (gl_list_nx_add_first): Renamed from gl_list_add_first.
77426         (gl_list_nx_add_last): Renamed from gl_list_add_last.
77427         (gl_list_nx_add_before): Renamed from gl_list_add_before.
77428         (gl_list_nx_add_after): Renamed from gl_list_add_after.
77429         (gl_list_nx_add_at): Renamed from gl_list_add_at.
77430         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
77431         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
77432         gl_list_create_empty.
77433         (gl_list_nx_create): Renamed from gl_list_create.
77434         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
77435         (gl_list_nx_set_at): Renamed from gl_list_set_at.
77436         (gl_list_nx_add_first): Renamed from gl_list_add_first.
77437         (gl_list_nx_add_last): Renamed from gl_list_add_last.
77438         (gl_list_nx_add_before): Renamed from gl_list_add_before.
77439         (gl_list_nx_add_after): Renamed from gl_list_add_after.
77440         (gl_list_nx_add_at): Renamed from gl_list_add_at.
77441         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
77442         * lib/gl_array_list.c: Don't include xalloc.h.
77443         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
77444         NULL upon out-of-memory.
77445         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
77446         out-of-memory.
77447         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
77448         Change return type to 'int'.
77449         (gl_array_nx_set_at): Renamed from gl_array_set_at.
77450         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
77451         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
77452         upon out-of-memory.
77453         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
77454         upon out-of-memory.
77455         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
77456         upon out-of-memory.
77457         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
77458         upon out-of-memory.
77459         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
77460         out-of-memory.
77461         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
77462         Update.
77463         (gl_array_list_implementation): Update.
77464         * lib/gl_carray_list.c: Don't include xalloc.h.
77465         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
77466         Return NULL upon out-of-memory.
77467         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
77468         out-of-memory.
77469         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
77470         Change return type to 'int'.
77471         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
77472         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
77473         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
77474         upon out-of-memory.
77475         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
77476         upon out-of-memory.
77477         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
77478         out-of-memory.
77479         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
77480         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
77481         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
77482         Update.
77483         (gl_carray_list_implementation): Update.
77484         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
77485         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
77486         gl_linked_create_empty. Return NULL upon out-of-memory.
77487         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
77488         out-of-memory.
77489         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
77490         Change return type to 'int'. Return -1 upon out-of-memory.
77491         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
77492         out-of-memory.
77493         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
77494         upon out-of-memory.
77495         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
77496         upon out-of-memory.
77497         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
77498         NULL upon out-of-memory.
77499         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
77500         upon out-of-memory.
77501         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
77502         out-of-memory.
77503         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
77504         Update.
77505         * lib/gl_linked_list.c: Don't include xalloc.h.
77506         (gl_linked_list_implementation): Update.
77507         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
77508         (add_to_bucket): Change return type to 'int'.
77509         (gl_linkedhash_list_implementation): Update.
77510         * lib/gl_anytree_list1.h (free_subtree): New function.
77511         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
77512         gl_tree_create_empty. Return NULL upon out-of-memory.
77513         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
77514         Change return type to 'int'. Return -1 upon out-of-memory.
77515         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
77516         out-of-memory.
77517         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
77518         (gl_tree_remove_node): New function, moved here from
77519         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
77520         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
77521         Update.
77522         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
77523         malloc, not xmalloc. Return NULL upon out-of-memory.
77524         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
77525         out-of-memory.
77526         (gl_tree_remove_node_from_tree): New function, extracted from
77527         gl_tree_remove_node.
77528         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
77529         upon out-of-memory.
77530         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
77531         out-of-memory.
77532         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
77533         upon out-of-memory.
77534         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
77535         upon out-of-memory.
77536         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
77537         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
77538         not xmalloc. Return NULL upon out-of-memory.
77539         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
77540         out-of-memory.
77541         (gl_tree_remove_node_from_tree): New function, extracted from
77542         gl_tree_remove_node.
77543         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
77544         upon out-of-memory.
77545         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
77546         out-of-memory.
77547         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
77548         upon out-of-memory.
77549         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
77550         upon out-of-memory.
77551         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
77552         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
77553         gl_anytree_list1.h before gl_anyavltree_list2.h.
77554         (gl_avltree_list_implementation): Update.
77555         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
77556         gl_anytree_list1.h before gl_anyavltree_list2.h.
77557         (gl_rbtree_list_implementation): Update.
77558         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
77559         Change return type to 'int'. Return -1 upon out-of-memory. Use
77560         __builtin_expect.
77561         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
77562         (gl_avltreehash_list_implementation): Update.
77563         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
77564         (gl_rbtreehash_list_implementation): Update.
77565         * modules/array-list (Depends-on): Remove xalloc.
77566         * modules/carray-list (Depends-on): Likewise.
77567         * modules/linked-list (Depends-on): Likewise.
77568         * modules/linkedhash-list (Depends-on): Likewise.
77569         * modules/avltree-list (Depends-on): Likewise.
77570         * modules/rbtree-list (Depends-on): Likewise.
77571         * modules/avltreehash-list (Depends-on): Likewise.
77572         * modules/rbtreehash-list (Depends-on): Likewise.
77574         * modules/xsublist: New file.
77575         * lib/gl_xsublist.h: New file.
77576         * lib/gl_xsublist.c: New file.
77577         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
77578         (gl_sublist_nx_create): New declaration.
77579         * lib/gl_sublist.c: Don't include xalloc.h.
77580         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
77581         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
77582         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
77583         Change return type to 'int'. Return -1 upon out-of-memory.
77584         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
77585         upon out-of-memory.
77586         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
77587         NULL upon out-of-memory.
77588         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
77589         upon out-of-memory.
77590         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
77591         NULL upon out-of-memory.
77592         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
77593         NULL upon out-of-memory.
77594         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
77595         upon out-of-memory.
77596         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
77597         (gl_sublist_list_implementation): Update.
77598         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
77599         upon out-of-memory.
77600         * modules/sublist (Depends-on): Remove xalloc.
77602         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
77603         * tests/test-carray_list.c: Likewise.
77604         * tests/test-linked_list.c: Likewise.
77605         * tests/test-linkedhash_list.c: Likewise.
77606         * tests/test-avltree_list.c: Likewise.
77607         * tests/test-rbtree_list.c: Likewise.
77608         * tests/test-avltreehash_list.c: Likewise.
77609         * tests/test-rbtreehash_list.c: Likewise.
77610         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
77611         * modules/carray-list-tests (Makefile.am): Likewise.
77612         * modules/linked-list-tests (Makefile.am): Likewise.
77613         * modules/linkedhash-list-tests (Makefile.am): Likewise.
77614         * modules/avltree-list-tests (Makefile.am): Likewise.
77615         * modules/rbtree-list-tests (Makefile.am): Likewise.
77616         * modules/avltreehash-list-tests (Makefile.am): Likewise.
77617         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
77619         * NEWS: Mention the changes.
77621         * lib/clean-temp.c: Include gl_xlist.h.
77622         * modules/clean-temp (Depends-on): Add xlist.
77624         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
77625         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
77627         * tests/test-array_oset.c: Include gl_xlist.h.
77628         * modules/array-oset-tests (Depends-on): Add xlist.
77630         Reported by José E. Marchesi <jemarch@gnu.org>.
77632 2009-12-13  Bruno Haible  <bruno@clisp.org>
77634         Move the malloc checking from module 'oset' to new module 'xoset'.
77635         * modules/xoset: New file.
77636         * lib/gl_xoset.h: New file.
77637         * lib/gl_xoset.c: New file.
77638         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
77639         declarations.
77640         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
77641         (struct gl_oset_implementation): Rename and change methods accordingly.
77642         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
77643         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
77644         'int'. Mark as __warn_unused_result__.
77645         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
77646         gl_oset_create_empty.
77647         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
77648         'int'.
77649         * lib/gl_array_oset.c: Don't include xalloc.h.
77650         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
77651         malloc, not xmalloc.
77652         (grow): Change return type to 'int'. Don't call xalloc_die.
77653         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
77654         to 'int'.
77655         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
77656         'int'.
77657         (gl_array_oset_implementation): Update.
77658         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
77659         gl_tree_create_empty.
77660         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
77661         'int'.
77662         * lib/gl_avltree_oset.c: Don't include xalloc.h.
77663         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
77664         xmalloc.
77665         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
77666         not xmalloc.
77667         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
77668         xmalloc.
77669         (gl_avltree_oset_implementation): Update.
77670         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
77671         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
77672         xmalloc.
77673         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
77674         not xmalloc.
77675         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
77676         xmalloc.
77677         (gl_rbtree_oset_implementation): Update.
77678         * modules/array-oset (Depends-on): Remove xalloc.
77679         * modules/avltree-oset (Depends-on): Likewise.
77680         * modules/rbtree-oset (Depends-on): Likewise.
77681         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
77682         * tests/test-avltree_oset.c: Likewise.
77683         * tests/test-rbtree_oset.c: Likewise.
77684         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77685         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
77686         * modules/rbtree-oset-tests (Makefile.am): Likewise.
77687         * NEWS: Mention the change.
77689 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
77691         maint.mk: allow a project to override release-prep commands
77692         * top/maint.mk (alpha, beta, stable): Move release-preparatory
77693         commands into a new rule.
77694         (release-prep): New rule.
77695         (release-prep-hook): New overridable variable.
77697 2009-12-13  Bruno Haible  <bruno@clisp.org>
77699         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
77701 2009-12-13  Jim Meyering  <meyering@redhat.com>
77703         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
77704         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
77706 2009-12-12  Bruno Haible  <bruno@clisp.org>
77708         duplocale: Tweak.
77709         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
77711 2009-12-12  Karl Berry  <karl@gnu.org>
77713         * config/srclist.txt (strtoll.c): tab changes, no more sync.
77715 2009-12-12  Bruno Haible  <bruno@clisp.org>
77717         * m4/po.m4: Undo incorrect untabification.
77719 2009-12-12  Bruno Haible  <bruno@clisp.org>
77721         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
77722         * modules/c-strtod (Depends-on): Add locale.
77723         * modules/c-strtold (Depends-on): Likewise.
77725 2009-12-12  Bruno Haible  <bruno@clisp.org>
77727         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
77729 2009-12-11  Eric Blake  <ebb9@byu.net>
77731         setenv: relax requirement in light of POSIX ruling
77732         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
77733         not NULL.
77734         * tests/test-setenv.c (main): Relax test.
77735         * tests/test-unsetenv.c (main): Likewise.
77736         * doc/posix-functions/setenv.texi (setenv): Document this.
77737         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77739 2009-12-11  Bruno Haible  <bruno@clisp.org>
77741         New module 'fd-safer-flag'.
77742         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
77743         * lib/dup-safer.c (dup_safer_flag): Remove function.
77744         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
77745         * lib/fd-safer.c (fd_safer_flag): Remove function.
77746         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
77747         * modules/cloexec (configure.ac): Drop indicator macro.
77748         * modules/fd-safer-flag: New file.
77749         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
77750         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
77751         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
77753 2009-12-11  Bruno Haible  <bruno@clisp.org>
77755         Tests for module 'nl_langinfo'.
77756         * modules/nl_langinfo-tests: New file.
77757         * tests/test-nl_langinfo.sh: New file.
77758         * tests/test-nl_langinfo.c: New file.
77760         New module 'nl_langinfo'.
77761         * lib/nl_langinfo.c: New file.
77762         * m4/nl_langinfo.m4: New file.
77763         * modules/nl_langinfo: New file.
77764         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
77766 2009-12-11  Bruno Haible  <bruno@clisp.org>
77768         Tests for module 'langinfo'.
77769         * modules/langinfo-tests: New file.
77770         * tests/test-langinfo.c: New file.
77772         New module 'langinfo'.
77773         * lib/langinfo.in.h: New file.
77774         * m4/langinfo_h.m4: New file.
77775         * modules/langinfo: New file.
77776         * doc/posix-headers/langinfo.texi: Mention the new module.
77778 2009-12-11  Bruno Haible  <bruno@clisp.org>
77780         * lib/config.charset: Untabify.
77782 2009-12-11  Bruno Haible  <bruno@clisp.org>
77784         * modules/unistd-safer (configure.ac): Drop indicator macro.
77786 2009-12-11  Bruno Haible  <bruno@clisp.org>
77788         Move pipe2-safer code to its own file.
77789         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
77790         * lib/pipe-safer.c (pipe2_safer): Remove function.
77791         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
77792         (Makefile.am): Add it to lib_SOURCES.
77794 2009-12-10  Bruno Haible  <bruno@clisp.org>
77796         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
77798 2009-12-10  Bruno Haible  <bruno@clisp.org>
77800         Declare which arguments expect non-NULL values, for GCC and clang.
77801         * build-aux/arg-nonnull.h: New file.
77802         * modules/arg-nonnull: New file.
77803         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
77804         (inet_ntop, inet_pton): Use it.
77805         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
77806         (closedir, dirfd, opendir, scandir, alphasort): Use it.
77807         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
77808         (open, openat): Use it.
77809         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
77810         (fnmatch): Use it.
77811         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
77812         (getopt, getopt_long, getopt_long_only): Use it.
77813         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
77814         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
77815         Use it.
77816         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
77817         (iconv_open): Use it.
77818         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
77819         (strtoimax, strtoumax): Use it.
77820         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
77821         (duplocale): Use it.
77822         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
77823         (frexp, frexpl): Use it.
77824         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
77825         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
77826         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
77827         (tsearch, tfind, tdelete, twalk): Use it.
77828         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
77829         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
77830         sigpending): Use it.
77831         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
77832         (posix_spawn, posix_spawnp, posix_spawnattr_init,
77833         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
77834         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
77835         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
77836         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
77837         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
77838         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
77839         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
77840         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
77841         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
77842         Use it.
77843         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
77844         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
77845         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
77846         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
77847         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
77848         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
77849         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
77850         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
77851         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
77852         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
77853         strtoull, unsetenv): Use it.
77854         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
77855         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
77856         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
77857         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
77858         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
77859         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
77860         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
77861         (strcasecmp, strncasecmp): Use it.
77862         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
77863         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
77864         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
77865         rpl_setsockopt): Use it.
77866         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
77867         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
77868         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
77869         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
77870         (gettimeofday): Use it.
77871         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
77872         (times): Use it.
77873         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
77874         (uname): Use it.
77875         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
77876         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
77877         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
77878         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
77879         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
77880         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
77881         unlinkat, write): Use it.
77882         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
77883         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
77884         * lib/argv-iter.h: Include arg-nonnull.h.
77885         (_ATTRIBUTE_NONNULL_): Remove macro.
77886         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
77887         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
77888         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
77889         optimization.
77890         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
77891         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
77892         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
77893         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
77894         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
77895         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
77896         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
77897         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
77898         * modules/arpa_inet (Depends-on): Add arg-nonnull.
77899         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
77900         * modules/dirent (Depends-on): Add arg-nonnull.
77901         (Makefile.am): Insert arg-nonnull.h into dirent.h.
77902         * modules/fcntl-h (Depends-on): Add arg-nonnull.
77903         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
77904         * modules/fnmatch (Depends-on): Add arg-nonnull.
77905         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
77906         * modules/getopt-posix (Depends-on): Add arg-nonnull.
77907         (Makefile.am): Insert arg-nonnull.h into getopt.h.
77908         * modules/glob (Depends-on): Add arg-nonnull.
77909         (Makefile.am): Insert arg-nonnull.h into glob.h.
77910         * modules/iconv_open (Depends-on): Add arg-nonnull.
77911         (Makefile.am): Insert arg-nonnull.h into iconv.h.
77912         * modules/inttypes (Depends-on): Add arg-nonnull.
77913         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
77914         * modules/locale (Depends-on): Add arg-nonnull.
77915         (Makefile.am): Insert arg-nonnull.h into locale.h.
77916         * modules/math (Depends-on): Add arg-nonnull.
77917         (Makefile.am): Insert arg-nonnull.h into math.h.
77918         * modules/netdb (Depends-on): Add arg-nonnull.
77919         (Makefile.am): Insert arg-nonnull.h into netdb.h.
77920         * modules/search (Depends-on): Add arg-nonnull.
77921         (Makefile.am): Insert arg-nonnull.h into search.h.
77922         * modules/signal (Depends-on): Add arg-nonnull.
77923         (Makefile.am): Insert arg-nonnull.h into signal.h.
77924         * modules/spawn (Depends-on): Add arg-nonnull.
77925         (Makefile.am): Insert arg-nonnull.h into spawn.h.
77926         * modules/stdio (Depends-on): Add arg-nonnull.
77927         (Makefile.am): Insert arg-nonnull.h into stdio.h.
77928         * modules/stdlib (Depends-on): Add arg-nonnull.
77929         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
77930         * modules/string (Depends-on): Add arg-nonnull.
77931         (Makefile.am): Insert arg-nonnull.h into string.h.
77932         * modules/strings (Depends-on): Add arg-nonnull.
77933         (Makefile.am): Insert arg-nonnull.h into strings.h.
77934         * modules/sys_socket (Depends-on): Add arg-nonnull.
77935         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
77936         * modules/sys_stat (Depends-on): Add arg-nonnull.
77937         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
77938         * modules/sys_time (Depends-on): Add arg-nonnull.
77939         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
77940         * modules/sys_times (Depends-on): Add arg-nonnull.
77941         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
77942         * modules/sys_utsname (Depends-on): Add arg-nonnull.
77943         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
77944         * modules/time (Depends-on): Add arg-nonnull.
77945         (Makefile.am): Insert arg-nonnull.h into time.h.
77946         * modules/unistd (Depends-on): Add arg-nonnull.
77947         (Makefile.am): Insert arg-nonnull.h into unistd.h.
77948         * modules/wchar (Depends-on): Add arg-nonnull.
77949         (Makefile.am): Insert arg-nonnull.h into wchar.h.
77950         * modules/argv-iter (Depends-on): Add arg-nonnull.
77951         * tests/test-canonicalize.c (null_ptr): New function.
77952         (main): Use it.
77953         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
77954         (main): Use it.
77955         * tests/test-memmem.c (null_ptr): New function.
77956         (main): Use it.
77957         Reported by Jim Meyering.
77959 2009-12-10  Bruno Haible  <bruno@clisp.org>
77961         Use spaces for indentation, not tabs.
77962         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
77963         * m4/*.m4: Untabify.
77964         * build-aux/*.h: Untabify.
77965         * tests/**/*.[hc]: Untabify.
77966         * README: New section "Indent with spaces, not TABs", based on
77967         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
77968         * NEWS: Mention the change.
77970 2009-12-10  Bruno Haible  <bruno@clisp.org>
77972         pty test: Fix link error.
77973         * modules/pty-tests (Makefile.am): Add the default LDADD value to
77974         test_pty_LDADD.
77976 2009-12-07  Simon Josefsson  <simon@josefsson.org>
77978         * modules/pty: New file.
77979         * modules/pty-tests: New file.
77980         * m4/pty.m4: New file.
77981         * tests/test-pty.c: New file.
77982         * doc/glibc-headers/pty.texi: Modified.
77983         * doc/glibc-functions/forkpty.texi: Modified.
77984         * doc/glibc-functions/openpty.texi: Modified.
77986 2009-12-10  Bruno Haible  <bruno@clisp.org>
77988         Avoid syntax error in C++ mode.
77989         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
77991 2009-12-10  Bruno Haible  <bruno@clisp.org>
77993         Use sed with option -e.
77994         * gnulib-tool (func_version, func_emit_copyright_notice,
77995         func_emit_initmacro_end, func_import, func_create_testdir): Pass
77996         option -e to sed.
77997         * modules/link-warning (Makefile.am): Likewise.
77999 2009-12-10  Jim Meyering  <meyering@redhat.com>
78001         mgetgroups: do not write bytes beyond end of malloc'd buffer
78002         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
78003         username, we call getgroups with a one-element-shorter buffer,
78004         but still told it the length was original, max_n_groups.
78006 2009-12-09  Eric Blake  <ebb9@byu.net>
78008         cloexec: relax license
78009         * modules/cloexec (Maintainer): Add myself.
78010         (License): Use LGPL, not GPL.
78012         link-warning: optimize generation
78013         * modules/link-warning (Makefile.am): Reduce process usage.
78015 2009-12-09  Bruno Haible  <bruno@clisp.org>
78017         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
78018         workaround was added on 2009-11-17.
78020 2009-12-09  Jim Meyering  <meyering@redhat.com>
78021             Bruno Haible  <bruno@clisp.org>
78023         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
78024         * modules/link-warning (Makefile.am): Make the comment-removing sed
78025         command more robust in the face of bootstrap-prepended comment lines.
78027 2009-12-09  Bruno Haible  <bruno@clisp.org>
78029         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
78030         most one group.
78032 2009-12-09  Simon Josefsson  <simon@josefsson.org>
78033             Bruno Haible  <bruno@clisp.org>
78035         * build-aux/link-warning.h: Add copyright notice.
78036         * modules/link-warning (Makefile.am): Generate link-warning.h from
78037         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
78038         * NEWS: Mention change in link-warning module.
78039         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
78040         * modules/dirent (Makefile.am): Add dependency to dirent.h.
78041         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
78042         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
78043         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
78044         * modules/math (Makefile.am): Add dependency to math.h.
78045         * modules/search (Makefile.am): Add dependency to search.h.
78046         * modules/signal (Makefile.am): Add dependency to signal.h.
78047         * modules/spawn (Makefile.am): Add dependency to spawn.h.
78048         * modules/stdio (Makefile.am): Add dependency to stdio.h.
78049         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
78050         * modules/string (Makefile.am): Add dependency to string.h.
78051         * modules/strings (Makefile.am): Add dependency to strings.h.
78052         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
78053         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
78054         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
78055         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
78056         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
78057         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
78058         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
78059         * modules/unistd (Makefile.am): Add dependency to unistd.h.
78060         * modules/wchar (Makefile.am): Add dependency to wchar.h.
78062 2009-12-09  Bruno Haible  <bruno@clisp.org>
78064         fchdir: Optimize away rpl_fstat when possible.
78065         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
78066         REPLACE_OPEN_DIRECTORY.
78067         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
78069 2009-12-09  Bruno Haible  <bruno@clisp.org>
78071         * lib/fchdir.c: Update comment.
78073 2009-12-09  Bruno Haible  <bruno@clisp.org>
78075         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
78077 2009-12-08  Eric Blake  <ebb9@byu.net>
78079         fchdir: avoid memory leak on re-registration.
78080         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
78082 2009-12-08  Jim Meyering  <meyering@redhat.com>
78084         init.sh: avoid Solaris 10 /bin/sh portability problem
78085         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
78086         sourced script:
78087           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
78088           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
78089           bar
78090         tests/init.sh relied on that, accepting a --set-path=DIR argument,
78091         and two tests used that idiom.
78092         * tests/init.sh: Update suggested usage comments.
78093         (path_prepend_): New function, to be used in place
78094         of the --src-path=DIR option.
78095         (setup_): Move PATH-prepending code into path_prepend_.
78096         * tests/test-pread.sh: Adapt to new usage.
78097         * tests/test-xalloc-die.sh: Likewise.
78099 2009-12-08  Simon Josefsson  <simon@josefsson.org>
78101         * doc/gnulib.texi (Glibc pty.h): Add.
78102         * doc/glibc-functions/forkpty.texi: Add.
78103         * doc/glibc-functions/openpty.texi: Add.
78104         Suggested by Bruno Haible.
78106 2009-12-08  Eric Blake  <ebb9@byu.net>
78108         fchdir: fix logic bugs
78109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
78110         * tests/test-fchdir.c (main): Enhance test.
78111         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
78112         is in use.
78114         dup2: fix logic bugs
78115         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
78116         REPLACE_DUP2 to decide when rpl_dup2 is needed.
78117         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
78118         exists.
78119         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
78121 2009-12-07  Eric Blake  <ebb9@byu.net>
78123         unlink: fix m4 detection
78124         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
78126         unistd-safer: add unit test
78127         * modules/unistd-safer-tests: New file.
78128         * tests/test-dup-safer.c: Likewise.
78129         * tests/test-cloexec.c (setmode): Avoid compiler warning.
78130         * tests/test-dup2.c (setmode): Likewise.
78131         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
78133         cloexec: preserve text vs. binary across dup_cloexec
78134         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
78135         mode.
78136         * modules/dup2-tests (Depends-on): Add binary-io.
78137         * modules/cloexec-tests (Depends-on): Likewise.
78138         * tests/test-dup2.c (setmode, is_mode): New helpers.
78139         (main): Add tests that translation mode is preserved.
78140         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
78141         Reported by Bruno Haible.
78143         mgetgroups: reduce duplicate listings
78144         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
78145         resulting array.
78146         * tests/test-chown.h (test_chown): Simplify client.
78147         * tests/test-lchown.h (test_lchown): Likewise.
78149 2009-12-06  Bruno Haible  <bruno@clisp.org>
78151         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
78152         value.
78154 2009-12-06  Bruno Haible  <bruno@clisp.org>
78156         * lib/progname.c: Include stdio.h, stdlib.h.
78157         (set_program_name): Reject a NULL argument.
78159 2009-12-05  Eric Blake  <ebb9@byu.net>
78161         pipe2-safer: new module
78162         * modules/pipe2-safer: New file.
78163         * lib/unistd-safer.h (pipe2_safer): New prototype.
78164         * lib/unistd--.h (pipe2): New wrapper.
78165         * lib/pipe-safer.c (pipe2_safer): New function.
78166         * modules/pipe (Depends-on): Add pipe2-safer.
78167         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
78169         stdlib-safer: preserve cloexec flag for mkostemp[s]
78170         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
78171         fd_safer_flag.
78173         unistd-safer: allow preservation of cloexec status via flag
78174         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
78175         prototypes.
78176         * lib/dup-safer.c (dup_safer_flag): New function.
78177         * lib/fd-safer.c (fd_safer_flag): Likewise.
78178         * modules/cloexec (configure.ac): Set witness.
78180         test-dup2: enhance test
78181         * modules/dup2-tests (Depends-on): Add cloexec.
78182         * tests/test-dup2.c (main): Enhance test.
78184         cloexec: add dup_cloexec
78185         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
78186         header and comments.
78187         * lib/cloexec.c (set_cloexec_flag): Add comments.
78188         (dup_cloexec): New function, with mingw implementation borrowed
78189         from...
78190         * lib/w32spawn.h (dup_noinherit): ...here.
78191         * modules/execute (Depends-on): Add cloexec.
78192         * modules/pipe (Depends-on): Likewise.
78193         * modules/cloexec (Depends-on): Add dup2.
78194         * modules/cloexec-tests (Files): New file.
78195         * tests/test-cloexec.c: Likewise.
78197         test-xalloc-die: fix test for mingw
78198         * modules/xalloc-die-tests (Files): Add tests/init.sh.
78199         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
78200         directory and .exe suffix off argv[0] output.
78202         test-fseeko: fix test for mingw
78203         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
78204         than undefining fseek, so test will pass on mingw.
78206 2009-12-05  Bruno Haible  <bruno@clisp.org>
78208         * lib/progname.h (set_program_name): Clarify specification.
78209         * lib/progname.c (set_program_name): Likewise.
78210         Reported by Jim Meyering.
78212 2009-12-05  Jim Meyering  <meyering@redhat.com>
78214         maint.mk: backslash-escape parens in default regexp
78215         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
78216         backslash-escape the literal parentheses.
78218         maint.mk: news-date-check: use grep -E
78219         * top/maint.mk (today): Define a Make variable, not a...
78220         (news-date-check): ...shell variable.
78221         (news-date-regexp): Use the Make variable.
78222         Use grep's -E option.  Change the failing diagnostic to mention
78223         the variable, $(news-date-regexp).
78225 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
78227         maintainer-makefile: allow customization of NEWS entry format
78228         * top/maint.mk (news-date-regexp): New overridable variable.
78229         (news-date-check): Use it.
78231 2009-12-04  Eric Blake  <ebb9@byu.net>
78233         mgetgroups: add xgetgroups, and avoid ENOSYS failures
78234         * lib/mgetgroups.h (xgetgroups): New prototype.
78235         * lib/mgetgroups.c (xgetgroups): New wrapper.
78236         (mgetgroups): Handle ENOSYS.
78237         * modules/mgetgroups (Depends-on): Add realloc.
78238         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
78240         mgetgroups: avoid argument promotion issues with -1
78241         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
78242         for invalid gid_t.
78243         * tests/test-chown.h (getegid, test_chown): Likewise.
78244         * tests/test-lchown.h (getegid, test_lchown): Likewise.
78246 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
78248         exclude: Fix header file problems.
78249         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
78251 2009-12-01  Jim Meyering  <meyering@redhat.com>
78253         fts: fts_open: do not let an empty string cause immediate failure
78254         This is required in support of GNU rm, for which the command
78255         "rm A '' B" must process and remove both A and B, in spite of
78256         the empty string argument.
78257         * lib/fts.c (fts_open): Do not let the presence of an empty string
78258         cause fts_open to fail immediately.  Most fts-using tools must be
78259         able to process all arguments, in order, and can be expected to
78260         diagnose such arguments themselves.
78262 2009-11-30  Eric Blake  <ebb9@byu.net>
78264         utimens: fix compilation error
78265         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
78266         Declare variable at right scope.
78268 2009-11-29  Jim Meyering  <meyering@redhat.com>
78270         bootstrap: handle perl-5.11's changed --version output
78271         * build-aux/bootstrap (get_version): Handle perl separately,
78272         since perl-5.11's --version output is different.
78274 2009-11-28  Jim Meyering  <meyering@redhat.com>
78276         userspec: depend on the inttostr module, too
78277         * modules/userspec (Depends-on): Add inttostr.
78279         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
78280         * lib/userspec.c (parse_with_separator): Do not accept a user ID
78281         number of MAXUID when it evaluates to (uid_t) -1.
78282         Likewise for group ID.  Reported by Matt McCutchen in
78283         <http://savannah.gnu.org/bugs/?28113>
78285         userspec: reformat to use spaces, not TABs
78286         * lib/userspec.c: Expand TABs to spaces.
78287         Add Emacs' "indent-tabs-mode: nil" hint.
78289 2009-11-27  Eric Blake  <ebb9@byu.net>
78291         getopt-gnu: flush out another BSD bug
78292         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
78293         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
78294         flush out BSD bug.
78295         * tests/test-getopt.h (test_getopt): End lists with NULL.
78296         * tests/test-getopt_long.h (test_getopt_long): Likewise.
78297         (test_getopt_long_posix): Enhance test.
78298         * modules/getopt-posix-tests (Depends-on): Add stdbool.
78299         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
78300         getopt-gnu.
78301         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
78302         Likewise.
78304 2009-11-27  Simon Josefsson  <simon@josefsson.org>
78306         * modules/idpriv-droptemp-tests (Notice): Fix text.
78308 2009-11-27  Jim Meyering  <meyering@redhat.com>
78310         test-xalloc-die: avoid spurious failure due to libtool argv difference
78311         In a libtool-enabled project, this test would fail due to a difference
78312         in the emitted program name, e.g.,
78313         -test-xalloc-die: memory exhausted
78314         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
78315         Use program to avoid that.
78316         * modules/xalloc-die-tests (Depends-on): Add progname.
78317         * tests/test-xalloc-die.c: Include progname.h".
78318         (program_name): Remove decl.
78319         (main): Call set_program_name.
78320         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
78322 2009-11-26  Richard Jones  <rjones@redhat.com>
78324         w32sock: leave win32 error in place.
78325         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
78327 2009-11-26  Eric Blake  <ebb9@byu.net>
78329         init.sh: suggest to use skip_ and fail_ functions in comments
78330         * tests/init.sh: Add a sentence.
78332 2009-11-25  Bruno Haible  <bruno@clisp.org>
78334         init.sh: add documentation in comments
78335         * tests/init.sh: Add some developer and user documentation.
78337 2009-11-26  Jim Meyering  <meyering@redhat.com>
78339         init.sh: accommodate even those who specify bogus srcdir manually
78340         * tests/init.sh: Normally, srcdir is guaranteed by automake and
78341         configure-time tests to be sanitized, so that there is no need to
78342         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
78343         (with no double quotes) suffices.  However, since tests may be
78344         invoked manually, and since you may explicitly set srcdir to the
78345         name of a directory containing spaces, do quote its uses here.
78346         * tests/test-pread.sh: Likewise.
78347         Suggested by Bruno Haible.
78349         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
78350         * tests/test-pread.sh: Write no data into the pipe, because
78351         test-pread actually reads none.  This avoids a diagnostic,
78352         "bash: echo: write error: Broken pipe", that arises in the unusual
78353         event something is ignoring SIGPIPE, and might be interpreted
78354         as some sort of failure.  Reported by Bruno Haible.
78356 2009-11-25  Jim Meyering  <meyering@redhat.com>
78358         test-pread: cover failure with ESPIPE and EINVAL
78359         * tests/test-pread.c (main): Test for failure, too.
78360         * tests/test-pread.sh: Invoke with stdin on a pipe.
78361         Suggested by Eric Blake.
78363         pread: improvement and fix
78364         * modules/pread (Depends-on): Depend on lseek, for portability to
78365         e.g., mingw.  Suggested by Eric Blake.
78366         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
78368         unistd.in.h: correct declaration of pread
78369         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
78370         Reported by Richard W.M. Jones.
78372         test-pread.sh: distribute the test script
78373         * modules/pread-tests (Files): Include test-pread.sh.
78375         test-pread.sh: clean up
78376         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
78377         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
78378         That is unnecessary, since it's always ".".
78379         Suggestion from Eric Blake.
78381         test-pread.sh: make executable
78382         * tests/test-pread.sh: Set executable bit.
78383         Reported by Eric Blake.
78385         correct typo in test-pread.sh
78386         * tests/test-pread.sh: Add #! line.
78388         test pread
78389         * tests/test-pread.c: New file.
78390         * tests/test-pread.sh: Likewise.
78391         * modules/pread-tests: Likewise.
78393         pread: new module
78394         * modules/pread: New file.
78395         * lib/unistd.in.h (pread): Define/declare.
78396         * lib/pread.c (pread): New file.
78397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
78398         * modules/unistd (Makefile.am): Substitute witnesses.
78399         * doc/posix-functions/pread.texi (pread): Update.
78400         * MODULES.html.sh: Add pread.
78402 2009-11-25  Jim Meyering  <meyering@redhat.com>
78404         tests/init.sh: new file to be used via most *.sh tests
78405         * tests/init.sh: New file.
78407 2009-11-25  Eric Blake  <ebb9@byu.net>
78409         utimens: work around older Linux failure with symlinks
78410         * lib/utimens.c (lutimensat_works_really): New variable.
78411         (fdutimens, lutimens): Use it to manage kernels that support
78412         nanosecond times on files, but not on symlinks.
78413         Reported by Ondřej Vašík.
78415         utimes: fix configure grammar
78416         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
78418 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
78420         regex: Fix fastmap for multibyte character ranges.
78421         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
78422         characters when a multibyte character range is included.
78424 2009-11-22  Andy Wingo  <wingo@pobox.com>
78426         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
78427         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
78429 2009-11-24  Bruno Haible  <bruno@clisp.org>
78431         doc: Most *_l functions exist in MacOS X 10.5.
78432         * doc/posix-functions/duplocale.texi: Update platforms list.
78433         * doc/posix-functions/freelocale.texi: Likewise.
78434         * doc/posix-functions/newlocale.texi: Likewise.
78435         * doc/posix-functions/uselocale.texi: Likewise.
78436         * doc/posix-functions/isalnum_l.texi: Likewise.
78437         * doc/posix-functions/isalpha_l.texi: Likewise.
78438         * doc/posix-functions/isblank_l.texi: Likewise.
78439         * doc/posix-functions/iscntrl_l.texi: Likewise.
78440         * doc/posix-functions/isdigit_l.texi: Likewise.
78441         * doc/posix-functions/isgraph_l.texi: Likewise.
78442         * doc/posix-functions/islower_l.texi: Likewise.
78443         * doc/posix-functions/isprint_l.texi: Likewise.
78444         * doc/posix-functions/ispunct_l.texi: Likewise.
78445         * doc/posix-functions/isspace_l.texi: Likewise.
78446         * doc/posix-functions/isupper_l.texi: Likewise.
78447         * doc/posix-functions/iswalnum_l.texi: Likewise.
78448         * doc/posix-functions/iswalpha_l.texi: Likewise.
78449         * doc/posix-functions/iswblank_l.texi: Likewise.
78450         * doc/posix-functions/iswcntrl_l.texi: Likewise.
78451         * doc/posix-functions/iswctype_l.texi: Likewise.
78452         * doc/posix-functions/iswdigit_l.texi: Likewise.
78453         * doc/posix-functions/iswgraph_l.texi: Likewise.
78454         * doc/posix-functions/iswlower_l.texi: Likewise.
78455         * doc/posix-functions/iswprint_l.texi: Likewise.
78456         * doc/posix-functions/iswpunct_l.texi: Likewise.
78457         * doc/posix-functions/iswspace_l.texi: Likewise.
78458         * doc/posix-functions/iswupper_l.texi: Likewise.
78459         * doc/posix-functions/iswxdigit_l.texi: Likewise.
78460         * doc/posix-functions/isxdigit_l.texi: Likewise.
78461         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
78462         * doc/posix-functions/strcasecmp_l.texi: Likewise.
78463         * doc/posix-functions/strcoll_l.texi: Likewise.
78464         * doc/posix-functions/strfmon_l.texi: Likewise.
78465         * doc/posix-functions/strftime_l.texi: Likewise.
78466         * doc/posix-functions/strncasecmp_l.texi: Likewise.
78467         * doc/posix-functions/strxfrm_l.texi: Likewise.
78468         * doc/posix-functions/tolower_l.texi: Likewise.
78469         * doc/posix-functions/toupper_l.texi: Likewise.
78470         * doc/posix-functions/towctrans_l.texi: Likewise.
78471         * doc/posix-functions/towlower_l.texi: Likewise.
78472         * doc/posix-functions/towupper_l.texi: Likewise.
78473         * doc/posix-functions/wcscoll_l.texi: Likewise.
78474         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
78475         * doc/posix-functions/wctrans_l.texi: Likewise.
78476         * doc/posix-functions/wctype_l.texi: Likewise.
78477         * doc/glibc-functions/strptime_l.texi: Likewise.
78478         * doc/glibc-functions/strtod_l.texi: Likewise.
78479         * doc/glibc-functions/strtof_l.texi: Likewise.
78480         * doc/glibc-functions/strtol_l.texi: Likewise.
78481         * doc/glibc-functions/strtold_l.texi: Likewise.
78482         * doc/glibc-functions/strtoll_l.texi: Likewise.
78483         * doc/glibc-functions/strtoul_l.texi: Likewise.
78484         * doc/glibc-functions/strtoull_l.texi: Likewise.
78485         * doc/glibc-functions/wcsftime_l.texi: Likewise.
78486         * doc/glibc-functions/wcstod_l.texi: Likewise.
78487         * doc/glibc-functions/wcstof_l.texi: Likewise.
78488         * doc/glibc-functions/wcstol_l.texi: Likewise.
78489         * doc/glibc-functions/wcstold_l.texi: Likewise.
78490         * doc/glibc-functions/wcstoll_l.texi: Likewise.
78491         * doc/glibc-functions/wcstoul_l.texi: Likewise.
78492         * doc/glibc-functions/wcstoull_l.texi: Likewise.
78494 2009-11-24  Bruno Haible  <bruno@clisp.org>
78496         duplocale: Fix logic bug.
78497         * lib/duplocale.c: Don't include <langinfo.h>.
78498         (_NL_LOCALE_NAME): Remove macro.
78499         (rpl_duplocale): Use setlocale instead of nl_langinfo.
78500         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
78502 2009-11-23  Jim Meyering  <meyering@redhat.com>
78504         test-update-copyright: don't hard-code /usr/bin/perl
78505         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
78506         perl to print the current year.  Gilles Espinasse reported that
78507         the replaced use of perl was hard-coded as /usr/bin/perl.
78509 2009-11-23  Bruno Haible  <bruno@clisp.org>
78511         duplocale: Add support for glibc 2.3.x.
78512         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
78514 2009-11-22  Bruno Haible  <bruno@clisp.org>
78516         vasnprintf: Tiny optimization.
78517         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
78518         MacOS X.
78520 2009-11-22  Bruno Haible  <bruno@clisp.org>
78522         Tests for module 'duplocale'.
78523         * modules/duplocale-tests: New file.
78524         * tests/test-duplocale.c: New file.
78526         New module 'duplocale'.
78527         * m4/duplocale.m4: New file.
78528         * lib/locale.in.h (duplocale): New declaration.
78529         * lib/duplocale.c: New file.
78530         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
78531         gl_LOCALE_H_DEFAULTS): New macros.
78532         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
78533         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
78534         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
78535         REPLACE_DUPLOCALE.
78536         * modules/duplocale: New file.
78537         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
78539 2009-11-22  Bruno Haible  <bruno@clisp.org>
78541         * modules/locale-tests (configure.ac): Test for newlocale function.
78542         * tests/test-locale.c: When the system has extended locale functions,
78543         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
78545         locale: Make locale_t available when possible.
78546         * lib/locale.in.h: Include <xlocale.h> when it exists.
78547         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
78548         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
78549         * modules/locale (Depends-on): Add extensions.
78550         (Makefile.am): Also substitute HAVE_XLOCALE_H.
78551         * doc/posix-headers/locale.texi: Document the problem with locale_t.
78553 2009-11-22  Bruno Haible  <bruno@clisp.org>
78555         Add comments.
78556         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
78557         invocation.
78558         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
78559         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
78560         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
78562 2009-11-22  Bruno Haible  <bruno@clisp.org>
78564         error: account for the possibility of freopen (stdout).
78565         * lib/error.c: Include <unistd.h>.
78566         (flush_stdout): New function, extracted from error and error_at_line.
78567         Determine stdout's fd dynamically.
78568         (error, error_at_line): Invoke flush_stdout.
78569         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
78570         * modules/error (Depends-on): Add unistd.
78572 2009-11-22  Bruno Haible  <bruno@clisp.org>
78574         diffseq: Add comment.
78575         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
78577 2009-11-22  Jim Meyering  <meyering@redhat.com>
78579         c-stack: avoid defining an unused static function
78580         * lib/c-stack.c (find_stack_direction): Do not define this function
78581         when it will not be used.
78583         diffseq: avoid spurious gcc warnings
78584         * lib/diffseq.h (IF_LINT2): Define.
78585         (compareseq): Use it to initialize two members of "part".
78586         This avoids two used-uninitialized warnings.
78588 2009-11-21  Jim Meyering  <meyering@redhat.com>
78590         c-stack: avoid "ignoring return value of `write'" warning
78591         * lib/c-stack.c: Include "ignore-value.h".
78592         (die): Explicitly ignore each write return value.
78593         * modules/c-stack (Depends-on): Add ignore-value.
78595 2009-11-21  Bruno Haible  <bruno@clisp.org>
78597         diffseq: reduce scope of variable 'best'.
78598         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
78599         variable, earlier used for two different purposes.
78601 2009-11-21  Jim Meyering  <meyering@redhat.com>
78603         diffseq: remove useless assignment to "best"
78604         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
78605         assignment.  At that point "best" is already guaranteed to be zero.
78607 2009-11-20  Eric Blake  <ebb9@byu.net>
78609         build: mention ftp redirector in release announcements
78610         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
78611         values that used to come from cfg.mk; mention FTP redirect URL.
78612         * build-aux/announce-gen: Mention the mirror list.
78613         Suggested by Karl Berry.
78615         nanosleep: improve port to mingw
78616         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
78617         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
78618         LIB_NANOSLEEP, but only when needed.
78619         * modules/select (Link): Document LIBSOCKET.
78620         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
78621         enough.
78623         nanosleep: work around cygwin bug
78624         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
78625         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
78626         bug.
78627         (getnow): Delete, not needed.
78628         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
78629         LIB_CLOCK_GETTIME.
78630         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
78631         clock-time, gettime.
78632         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
78633         bug.
78634         * modules/nanosleep-tests: New test.
78635         * tests/test-nanosleep.c: New file.
78637         sleep: work around cygwin bug
78638         * lib/sleep.c (rpl_sleep): Work around the bug.
78639         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
78640         (gl_PREREQ_SLEEP): Delete unused macro.
78641         * modules/sleep (Depends-on): Add verify.
78642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78643         * modules/unistd (Makefile.am): Substitute witness.
78644         * lib/unistd.in.h (sleep): Update prototype.
78645         * doc/posix-functions/sleep.texi (sleep): Document the bug.
78646         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
78647         * modules/sleep-tests (Depends-on): Check for alarm.
78649 2009-11-20  Jim Meyering  <meyering@redhat.com>
78651         maint.mk: improve sc_prohibit_magic_number_exit
78652         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
78653         so it does not match uses like System.exit(1).
78654         Add comments showing how to correct all offenders.
78656 2009-11-19  Eric Blake  <ebb9@byu.net>
78658         xalloc-die-tests: add missing library
78659         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
78661         test-xvasprintf: silence compiler warnings
78662         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
78663         empty string from gcc.
78665 2009-11-19  Jim Meyering  <meyering@redhat.com>
78667         xfreopen: new module, from coreutils
78668         * modules/xfreopen: New module.
78669         * lib/xfreopen.c: New file.
78670         * lib/xfreopen.h: New file.
78671         * MODULES.html.sh (File stream based Input/Output"): Add it.
78673 2009-11-19  Eric Blake  <ebb9@byu.net>
78675         manywarnings: depend on warnings
78676         * modules/manywarnings (Depends-on): Add warnings.
78678         build: avoid compiler warnings
78679         * lib/select.c (rpl_select): Delete unused variable.
78680         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
78682 2009-11-18  Eric Blake  <ebb9@byu.net>
78684         tests: avoid false negative with --with-packager
78685         * tests/test-version-etc.sh: Discard packager information.
78686         * tests/test-argp-version-etc-1.sh: Likewise.
78687         Reported by Mike Frysinger.
78689         utimens: fix regression on Solaris
78690         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
78691         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
78692         can only change fd timestamps via futimesat.  Instead, use an
78693         additional witness macro to avoid BSD bug.
78694         Reported by Jim Meyering.
78696 2009-11-17  Eric Blake  <ebb9@byu.net>
78698         usleep: use it to simplify tests
78699         * modules/stat-time-tests (Depends-on): Add usleep.
78700         (configure.ac): Drop usleep check.
78701         * modules/chown-tests (Depends-on, configure.ac): Likewise.
78702         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
78703         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
78704         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
78705         * modules/openat-tests (Depends-on, configure.ac): Likewise.
78706         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
78707         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
78708         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
78709         Likewise.
78710         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
78711         * tests/test-lchown.h (nap): Likewise.
78712         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
78713         * tests/test-stat-time.c (nap): Likewise.
78714         * tests/test-utimens-common.h (nap): Update comments.
78716         usleep: new module
78717         * modules/usleep: New file.
78718         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
78719         * lib/usleep.c (usleep): Likewise.
78720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
78721         * modules/unistd (Makefile.am): Substitute witnesses.
78722         * lib/unistd.in.h (usleep): Add declaration.
78723         * doc/pastposix-functions/usleep.texi (usleep): Document this.
78724         * MODULES.html.sh (Date and time): Likewise.
78725         * modules/usleep-tests (Depends-on): New test.
78726         * tests/test-usleep.c: New file.
78728         chown: work around OpenBSD bug
78729         * lib/chown.c (rpl_chown): Work around the bug.
78730         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
78731         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
78732         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
78733         * modules/chown (Depends-on): Add stdbool.
78734         * modules/lchown (Depends-on): Likewise.
78735         * doc/posix-functions/chown.texi (chown): Document the bug.
78736         * doc/posix-functions/lchown.texi (lchown): Likewise.
78737         * tests/test-lchown.h (test_chown): Relax test.
78739         mkstemp: avoid conflict with C++ keyword template
78740         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
78741         * lib/mkostemp.c (mkostemp): Likewise.
78742         * lib/mkostemps.c (mkostemps): Likewise.
78743         * lib/mkstemp.c (mkstemp): Likewise.
78744         * lib/mkstemps.c (mkstemps): Likewise.
78746         xalloc-die-tests: optimize
78747         * tests/test-xalloc-die.sh: Reduce number of processes.
78749 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78751         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
78752         patch from ludo@gnu.org (Ludovic Courtès).
78754 2009-11-17  Jim Meyering  <meyering@redhat.com>
78756         version-etc: use proper license string
78757         * modules/version-etc (License): Use LGPL, not LGPLv3+.
78758         * modules/version-etc-fsf: Likewise.
78760 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78762         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
78763         printed to stdout.  Deal with EOL differences.
78765 2009-11-17  Eric Blake  <ebb9@byu.net>
78767         unsetenv: work around Solaris bug
78768         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
78769         * lib/unsetenv.c (rpl_unsetenv): Work around it.
78770         Reported by Jim Meyering.
78772         vasnprintf: avoid compiler warnings
78773         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
78774         variables.
78775         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
78777 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78779         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
78780         settings since xalloc-die is no longer the self test,
78781         xalloc-die.sh is.
78783 2009-11-17  Jim Meyering  <meyering@redhat.com>
78785         test-xalloc-die.sh: make the code agree with the commit log
78786         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
78787         at the end, just in case you happen to have a test-xalloc-die
78788         program in some other PATH directory.
78790         test-xalloc-die.sh: fix a portability bug
78791         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
78792         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
78793         Otherwise, argv[0] (as often seen in diagnostics) would be too
78794         system-dependent, sometimes with, and sometimes without the leading "./".
78796         version-etc-fsf: relax license to LGPLv3+
78797         * modules/version-etc-fsf (License): Relax license.
78799 2009-11-16  Eric Blake  <ebb9@byu.net>
78801         xalloc-die-tests: avoid printing null pointer
78802         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
78803         shell script.
78804         * tests/test-xalloc-die.c (program_name): Declare.
78805         * tests/test-xalloc-die.sh (tmpfiles): New file.
78807         setenv, unsetenv: work around various bugs
78808         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
78809         (setenv) [HAVE_SETENV]: Work around bugs.
78810         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
78811         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
78812         for bugs.
78813         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
78814         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
78815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
78816         * modules/stdlib (Makefile.am): Update substitutions.
78817         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
78818         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
78819         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
78820         * modules/setenv-tests: New test.
78821         * modules/unsetenv-tests: Likewise.
78822         * tests/test-setenv.c: New file.
78823         * tests/test-unsetenv.c: Likewise.
78825 2009-11-16  Jim Meyering  <meyering@redhat.com>
78827         version-etc: relax license to LGPLv3+
78828         * modules/version-etc (License): Relax license.
78830         better AC_REQUIRE expanded-before-required-warning avoidance
78831         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
78832         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
78833         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
78834         which is no longer needed.
78836 2009-11-16  Eric Blake  <ebb9@byu.net>
78838         test-freading: clean up temporary file
78839         * tests/test-freading.c (main): Remove file on success, and use
78840         ASSERT more liberally.
78841         Reported by Jim Meyering.
78843 2009-11-16  Jim Meyering  <meyering@redhat.com>
78845         avoid new AC_REQUIRE expanded-before-required warnings
78846         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
78847         merely using it.
78848         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
78849         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
78851 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78853         * tests/test-xalloc-die.c: New file.
78854         * modules/xalloc-die-tests: New file.
78855         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
78856         XFAIL_TESTS so it can be appended by modules.
78858 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78860         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
78861         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
78863 2009-11-14  Eric Blake  <ebb9@byu.net>
78865         fnmatch: avoid compiler warning
78866         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
78867         to silence compiler warning about mismatch signedness in ?:.
78868         Reported by Robert Millan.
78870         intprops: add double-inclusion guard
78871         * lib/intprops.h: Allow idempotent includes.
78872         Suggested by Bruce Korb.
78874         openat: detect Solaris fchownat bug
78875         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
78876         penalizing glibc chownat when only lchownat is broken.
78877         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
78878         trailing slash bugs.
78879         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
78880         * modules/openat-tests (Files): Include more files.
78881         (Depends-on): Add mgetgroups, sleep, stat-time.
78882         (configure.ac): Add additional checks.
78883         (Makefile.am): Build new test.
78884         * tests/test-fchownat.c: New file.
78886         lchown: detect Solaris and FreeBSD bug
78887         * lib/lchown.c (rpl_lchown): Work around bug.
78888         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
78889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78890         * modules/unistd (Makefile.am): Populate it.
78891         * lib/unistd.in.h (lchown): Update declaration.
78892         * doc/posix-functions/lchown.texi (lchown): Document the bug.
78893         * modules/lchown-tests: New file.
78894         * tests/test-lchown.h (test_lchown): Likewise.
78895         * tests/test-lchown.c (main): Likewise.
78897         chown: detect Solaris and FreeBSD bug
78898         * lib/chown.c (rpl_chown): Work around bug.
78899         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
78900         (gl_PREREQ_CHOWN): Delete.
78901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78902         * modules/unistd (Makefile.am): Populate it.
78903         * lib/unistd.in.h (chown): Update declaration.
78904         * lib/lchown.c (chown): Update client.
78905         * modules/lchown (Depends-on): Add lstat.
78906         * doc/posix-functions/chown.texi (chown): Document the bug.
78907         * doc/posix-functions/getgroups.texi (getgroups): Document
78908         getgroups pitfall.
78909         * modules/chown-tests: New file.
78910         * tests/test-chown.h (test_chown): Likewise.
78911         * tests/test-chown.c (main): Likewise.
78913 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
78915         gnulib-tool: correctly detect absence of m4 directories
78916         * gnulib-tool: Avoid extra newline on data passed to wc -l.
78918 2009-11-14  Jim Meyering  <meyering@redhat.com>
78920         maint.mk: Prohibit inclusion of "xalloc.h" without use.
78921         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78923 2009-11-14  John W. Eaton  <jwe@gnu.org>
78925         strftime.h: wrap function declaration in extern "C" block
78926         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
78928 2009-11-13  Eric Blake  <ebb9@byu.net>
78930         getgroups: avoid compiler warning
78931         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
78933         getgroups: work around FreeBSD bug
78934         * lib/getgroups.c (rpl_getgroups): Work around the bug.
78935         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
78936         * doc/posix-functions/getgroups.texi (getgroups): Document it.
78937         * tests/test-getgroups.c (main): Fix buffer overrun.
78939         getgroups: avoid compilation failure
78940         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
78941         * modules/getgroups (Depends-on): Add stdint.
78943 2009-11-13  Jim Meyering  <meyering@redhat.com>
78945         test-getgroups: avoid compilation failure
78946         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
78948 2009-11-13  Eric Blake  <ebb9@byu.net>
78950         mgetgroups: new module, taken from coreutils
78951         * modules/mgetgroups: New file.
78952         * lib/mgetgroups.h: Likewise.
78953         * lib/mgetgroups.c (mgetgroups): Likewise.
78954         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
78955         * MODULES.html.sh (Users and groups): Mention it.
78957         getgroups: don't expose GETGROUPS_T to user
78958         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
78959         an element at a time if GETGROUPS_T is wrong size.
78960         * lib/getugroups.h (getugroups): Change signature.
78961         * lib/unistd.in.h (getgroups): Likewise.
78962         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
78963         signature needs fixing.
78964         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
78965         AC_TYPE_GETGROUPS.
78966         * modules/group-member (Depends-on): Add getgroups.
78967         * lib/group-member.c (group_info, get_group_info): Use gid_t.
78968         (group_member): Rely on getgroups replacement.
78969         * lib/getugroups.c (getugroups): Use gid_t.
78970         * tests/test-getgroups.c (main): Likewise.
78971         * NEWS: Mention the signature change.
78972         * doc/posix-functions/getgroups.texi (getgroups): Mention the
78973         problem with signature.
78974         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
78975         GETGROUPS_T is still useful for setgroups.
78977         getgroups, getugroups: provide stubs for mingw
78978         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
78979         * lib/getugroups.c (getugroups): Likewise.
78980         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
78981         function.  Modernize replacement scheme.
78982         (gl_PREREQ_GETGROUPS): Delete.
78983         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
78984         * modules/getgroups (configure.ac): Declare witness.
78985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78986         * modules/unistd (Depends-on): Substitute witness.
78987         * lib/unistd.in.h (getgroups): Declare replacement.
78989         getgroups: avoid calling exit
78990         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
78991         drop xalloc.
78992         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
78993         dependencies.
78994         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
78995         exiting, in the rare case of malloc failure.
78997         getgroups: fix logic error
78998         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
78999         has more than 20 groups.
79000         * modules/getgroups-tests: New test.
79001         * tests/test-getgroups.c: New file.
79003 2009-11-13  Simon Josefsson  <simon@josefsson.org>
79005         * tests/test-base64.c: Improve.
79007 2009-11-13  Simon Josefsson  <simon@josefsson.org>
79009         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
79010         Blake <ebb9@byu.net>.
79012 2009-11-13  Simon Josefsson  <simon@josefsson.org>
79014         * tests/test-xvasprintf.c: Add %s%s related checks.
79016 2009-11-12  Eric Blake  <ebb9@byu.net>
79018         version-etc: match standards.texi style
79019         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
79020         and use <> only for URLs.
79022 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
79024         fts: do not fail on a submount during traversal
79025         * lib/fts.c (fts_build): Read the stat info again after opening
79026         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
79027         Original report at http://bugzilla.redhat.com/501848.
79029 2009-11-12  Jim Meyering  <meyering@redhat.com>
79031         bootstrap: sync from coreutils
79032         * build-aux/bootstrap (bootstrap_epilogue): New function.
79033         Use git_modules_config in one more place.  This make bootstrap's
79034         --gnulib-srcdir option more useful for testing.
79036         bootstrap: generalize autoheader check
79037         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
79038         AC_CONFIG_HEADERS.
79040 2009-11-11  Eric Blake  <ebb9@byu.net>
79042         mkfifoat: use new modules for Solaris and BSD bugs
79043         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
79044         * lib/mkfifoat.c (mknodat): Split...
79045         * lib/mknodat.c (mknodat): ...into new file.
79046         * modules/mkfifoat (Files): Ship new file.
79047         (Depends-on): Add mkfifo, mknod.
79048         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
79049         (Depends-on): Add symlink.
79050         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
79051         redundant with test_mkfifo.h.
79052         (do_mkfifoat, do_mknodat): New helpers.
79054         mknod: new module
79055         * modules/mknod: New file.
79056         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
79057         * lib/mknod.c (mknod): Likewise.
79058         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
79059         defaults.
79060         * modules/sys_stat (Makefile.am): Substitute them.
79061         * lib/sys_stat.in.h (mknod): Declare replacement.
79062         * MODULES.html.sh (Support for systems lacking POSIX:2008):
79063         Document it.
79064         * doc/posix-functions/mknod.texi (mknod): Likewise.
79065         * modules/mknod-tests: New test.
79066         * tests/test-mknod.c: Likewise.
79068         mkfifo: new module
79069         * modules/mkfifo: New file.
79070         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
79071         * lib/mkfifo.c (mkfifo): Likewise.
79072         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
79073         defaults.
79074         * modules/sys_stat (Makefile.am): Substitute them.
79075         * lib/sys_stat.in.h (mkfifo): Declare replacement.
79076         * MODULES.html.sh (Support for systems lacking POSIX:2008):
79077         Document it.
79078         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
79079         * modules/mkfifo-tests: New test.
79080         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
79081         from test-mkfifoat.c.
79082         * tests/test-mkfifo.c: New file.
79084         readlink: detect FreeBSD bug
79085         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
79086         slash on symlink.
79087         * doc/posix-functions/readlink.texi (readlink): Document the bug.
79088         * tests/test-readlink.h (test_readlink): Enhance test.
79090         symlink: detect FreeBSD bug
79091         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
79092         slash on symlink.
79093         * doc/posix-functions/symlink.texi (symlink): Document the bug.
79094         * tests/test-symlink.h (test_symlink): Enhance test.
79096 2009-11-10  Eric Blake  <ebb9@byu.net>
79098         link: detect FreeBSD bug
79099         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
79100         symlink.
79101         * doc/posix-functions/link.texi (link): Document the bug.
79102         * tests/test-link.h (test_link): Enhance test.
79103         * tests/test-linkat.c (main): Update caller.
79105         unlink, remove: detect FreeBSD bug
79106         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
79107         slash on symlink.
79108         * doc/posix-functions/unlink.texi (unlink): Document the bug.
79109         * doc/posix-functions/remove.texi (remove): Likewise.
79110         * tests/test-unlink.h (test_unlink): Enhance test.
79111         * tests/test-remove.c (main): Likewise.
79113 2009-11-09  Eric Blake  <ebb9@byu.net>
79115         rename: detect FreeBSD bug
79116         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
79117         slash on symlink.
79118         * modules/renameat-tests (Depends-on): Add filenamecat.
79119         * tests/test-rename.h (test_rename): Allow one more errno.
79120         * tests/test-renameat.c (main): Likewise.
79121         * doc/posix-functions/rename.texi (rename): Document the bug.
79123         open: detect FreeBSD bug
79124         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
79125         symlink.
79126         * doc/posix-functions/open.texi (open): Document the bug.
79127         * doc/posix-functions/utimes.texi (utimes): Likewise.
79128         * tests/test-open.h (test_open): Add parameters, and test symlink
79129         handling.
79130         * tests/test-open.c (main): Adjust caller.
79131         * tests/test-fcntl-safer.c (main): Likewise.
79132         * modules/open-tests (Depends-on): Add stdbool, symlink.
79133         * modules/fcntl-safer-tests (Depends-on): Likewise.
79134         * tests/test-openat.c (main): Add test-open tests.
79136         stat: detect FreeBSD bug
79137         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
79138         symlink.
79139         * doc/posix-functions/stat.texi (stat): Document the bug.
79140         * tests/test-stat.h (test_stat_func): Add argument.
79141         * tests/test-stat.c (main): Adjust caller.
79142         * tests/test-fstatat.c (main): Likewise.
79143         * modules/stat-tests (Depends-on): Add stdbool, symlink.
79144         Reported by Jim Meyering.
79146 2009-11-09  James Youngman  <jay@gnu.org>
79148         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
79149         * lib/strftime.c: Correct placement of #include "ignore-value.h".
79151 2009-11-08  Jim Meyering  <meyering@redhat.com>
79153         utimens: remove invalid futimesat call
79154         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
79155         It used the file descriptor of the target file as the DIR_FD
79156         parameter and NULL as the file name.  That caused failure with
79157         errno == EFAULT on FreeBSD-8.0-rc2
79159 2009-11-07  Eric Blake  <ebb9@byu.net>
79161         fflush, freadseek: use fseeko, not fseek
79162         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
79163         (clear_ungetc_buffer): Avoid potential problems on large files.
79164         * lib/freadseek.c (freadseek): Likewise.
79165         * modules/freadseek (Depends-on): Add fseeko.
79166         * modules/fseek (configure.ac): Set a witness.
79167         * tests/test-fflush.c (main): Use fseeko.
79168         * tests/test-fpurge.c (fseek): Disable link warning.
79169         * tests/test-freadable.c (fseek): Likewise.
79170         * tests/test-freading.c (fseek): Likewise.
79171         * tests/test-fseeko.c (fseek): Likewise.
79172         * tests/test-ftell.c (fseek): Likewise.
79173         * tests/test-ftello.c (fseek): Likewise.
79174         * tests/test-fwritable.c (fseek): Likewise.
79175         * tests/test-fwriting.c (fseek): Likewise.
79177 2009-11-06  Simon Josefsson  <simon@josefsson.org>
79179         * modules/memchr (Depends-on): Drop getpagesize dependency.
79181 2009-11-06  Simon Josefsson  <simon@josefsson.org>
79183         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
79184         Reported by Ludovic Courtès.
79185         * build-aux/pmccabe2html: Improve example usage.
79186         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
79188 2009-11-06  Jim Meyering  <meyering@redhat.com>
79190         do-release-commit-and-tag: New module.
79191         Automate the release-commit and tag process.
79192         * build-aux/do-release-commit-and-tag: New script, from coreutils.
79193         * modules/do-release-commit-and-tag: New file.
79194         * MODULES.html.sh (Support for maintaining and releasing): Add it.
79196 2009-11-06  Simon Josefsson  <simon@josefsson.org>
79198         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
79199         because test-select.c uses inet_pton.
79201 2009-11-06  Simon Josefsson  <simon@josefsson.org>
79203         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
79204         GETADDRINFO_LIB.  Bump serial number.
79205         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
79206         Suggested by Eric Blake <ebb9@byu.net>.
79208 2009-11-05  Eric Blake  <ebb9@byu.net>
79210         strtod: detect darwin bug
79211         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
79212         Reported by Leo Davis.
79214         freopen-safer: new module
79215         * modules/freopen-safer: New module.
79216         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
79217         * lib/freopen-safer.c (freopen_safer): New file.
79218         * lib/stdio-safer.h (freopen_safer): New declaration.
79219         * lib/stdio--.h (freopen): New override.
79220         * MODULES.html.sh (File stream based Input/Output): Mention it.
79221         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
79222         freopen-safer module.
79223         * doc/posix-functions/stderr.texi (stderr): Likewise.
79224         * doc/posix-functions/stdin.texi (stdin): Likewise.
79225         * doc/posix-functions/stdout.texi (stdout): Likewise.
79226         * modules/freopen-safer-tests: New test.
79227         * tests/test-reopen-safer.c: New file.
79229 2009-11-05  Jim Meyering  <meyering@redhat.com>
79231         maint.mk: Prohibit inclusion of "close-stream.h" without use.
79232         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
79234 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79236         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
79238 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79240         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
79242 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79244         Fix link error.
79245         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
79246         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
79248 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79250         * tests/test-func.c: Also test value of __func__.
79252 2009-11-05  Simon Josefsson  <simon@josefsson.org>
79254         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
79255         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
79257 2009-11-05  Bruno Haible  <bruno@clisp.org>
79259         Fix link error.
79260         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
79261         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
79262         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
79264 2009-11-05  Bruno Haible  <bruno@clisp.org>
79266         Tests for module 'inet_pton'.
79267         * modules/inet_pton-tests: New file.
79268         * tests/test-inet_pton.c: New file.
79270 2009-11-05  Bruno Haible  <bruno@clisp.org>
79272         Tests for module 'inet_ntop'.
79273         * modules/inet_ntop-tests: New file.
79274         * tests/test-inet_ntop.c: New file.
79276 2009-11-04  Eric Blake  <ebb9@byu.net>
79278         stdlib-safer: wrap all mkstemp variants
79279         * modules/mkostemp (configure.ac): Set witness.
79280         * modules/mkostemps (configure.ac): Likewise.
79281         * modules/mkstemps (configure.ac): Likewise.
79282         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
79283         (mkstemps_safer): Wrap more functions.
79284         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
79285         wrapping.
79286         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
79287         (mkstemps_safer): Implement the wrappers.
79289         mkstemps, mkostemps: new modules
79290         * modules/mkostemps: New module.
79291         * modules/mkstemps: Likewise.
79292         * lib/mkostemps.c (mkostemps): New file.
79293         * lib/mkstemps.c (mkstemps): Likewise.
79294         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
79295         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
79296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
79297         * modules/stdlib (Makefile.am): Substitute them.
79298         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
79299         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
79300         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
79301         * doc/gnulib.texi (Glibc stdlib.h): Include them.
79302         * MODULES.html.sh (File system functions): Mention them.
79304         tempname: resync from glibc
79305         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
79306         same values for __GT_FILE as glibc.  Abort even when assertions
79307         are disabled.
79308         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
79309         match its value otherwise.  Allow idempotent inclusion.
79310         * lib/mkdtemp.c (mkdtemp): Adjust caller.
79311         * lib/mkostemp.c (mkostemp): Likewise.
79312         * lib/mkstemp.c (mkstemp): Likewise.
79313         * lib/tmpfile.c (tmpfile): Likewise.
79314         * NEWS: Document this.
79316         utimens: fix use of futimens on older Linux
79317         * lib/utimens.c (fdutimens): Use updated, rather than original,
79318         timespec to avoid bug in older Linux kernel.
79319         Reported by Simon Josefsson.
79321 2009-11-04  Bruno Haible  <bruno@clisp.org>
79323         Make num_processors more flexible and consistent.
79324         * lib/nproc.h (enum nproc_query): New type.
79325         (num_processors): Add a 'query' argument.
79326         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
79327         (num_processors): Add a 'query' argument. Test the value of the
79328         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
79329         mingw, count the number of CPUs available for the current process.
79330         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
79331         Check for sched_getaffinity and sched_getaffinity_np.
79332         * modules/nproc (Depends-on): Add c-ctype, extensions.
79333         * NEWS: Mention the change.
79335 2009-11-03  Bruno Haible  <bruno@clisp.org>
79337         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
79339 2009-11-03  Jim Meyering  <meyering@redhat.com>
79341         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
79342         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
79343         if it is defined.
79345 2009-11-02  Eric Blake  <ebb9@byu.net>
79347         mktime, timegm: share common declaration
79348         * lib/mktime-internal.h: New file.
79349         * lib/mktime.c: Use it rather than open-coding a declaration.
79350         * lib/timegm.c: Likewise.
79351         * modules/mktime (Files): Ship it.
79352         * modules/timegm (Files): Likewise.
79353         Suggested by Bruno Haible.
79355         test-update-copyright: update test to match script changes
79356         * tests/test-update-copyright.sh: Avoid hard-coding perl
79357         location.  Don't update *.bak created by earlier runs.
79359 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79360             Simon Josefsson  <simon@josefsson.org>
79361             Bruno Haible  <bruno@clisp.org>
79363         Fix link error on Solaris 8.
79364         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
79365         also in libnsl. Define also INET_PTON_LIB.
79366         * modules/inet_pton (Link): New section.
79368 2009-11-02  Simon Josefsson  <simon@josefsson.org>
79369             Bruno Haible  <bruno@clisp.org>
79371         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
79372         * modules/inet_ntop (Link): New section.
79373         Reported by Boyan Kasarov <bkasarov@gmail.com>.
79375 2009-11-02  Eric Blake  <ebb9@byu.net>
79377         maint: avoid compiler warnings in m4 macros
79378         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
79379         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
79381 2009-11-02  Simon Josefsson  <simon@josefsson.org>
79383         * m4/pmccabe2html.m4: Remove file.
79384         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
79385         function.  Change maintainer.
79386         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
79387         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
79388         Courtès).
79390 2009-10-31  Eric Blake  <ebb9@byu.net>
79392         fseeko: fix m4 regression
79393         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
79394         regression from 2009-10-27.
79395         Reported by Ralf Wildenhues.
79397 2009-10-31  Jim Meyering  <meyering@redhat.com>
79399         inttostr: aesthetics and improved (compile-time) safety
79400         Define inttype_is_signed rather than inttype_is_unsigned,
79401         since the sole use is via "#if inttype_is_signed".
79402         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
79403         inttype_is_unsigned.
79404         * lib/offtostr.c (inttype_is_signed): Likewise.
79405         * lib/uinttostr.c (inttype_is_signed): Likewise.
79406         * lib/umaxtostr.c (inttype_is_signed): Likewise.
79407         * lib/inttostr.c (inttostr): Use verify to cross-check the
79408         inttype_is_signed value and the signedness of the actual type.
79409         * modules/inttostr (Depends-on): Add verify.
79411 2009-10-30  Eric Blake  <ebb9@byu.net>
79413         build: avoid compiler warnings
79414         * lib/fchmodat.c (lchmod): Mark unused variables.
79415         * lib/getopt.c (_getopt_initialize): Likewise.
79416         * lib/mktime.c (__mktime_internal): Provide prototype.
79417         * lib/inttostr.c (inttostr): Avoid compiler warning even with
79418         older gcc that do not understand #pragma GCC diagnostic.
79419         * lib/uinttostr.c (inttype_is_unsigned): Define.
79420         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
79422 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
79424         stat: fix compilation on AIX
79425         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
79426         only see struct stat64.
79428 2009-10-30  Eric Blake  <ebb9@byu.net>
79430         exclude: make more robust
79431         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
79432         rather than masking a coding bug.
79433         Suggested by Bruno Haible.
79435 2009-10-30  Jim Meyering  <meyering@redhat.com>
79437         perl scripts: remove #!/usr/bin/perl in favor of more portable...
79438         Rather than putting #!/usr/bin/perl on the first line,
79439         start with a variant of what's recommended by "man perlrun" that
79440         invokes the first "perl" program from your shell's search path.
79441         * build-aux/gitlog-to-changelog: Replace #!... as above.
79442         Add a "Local Variables" perl mode setting.
79443         Prompted by a patch from Ludovic Courtès.
79444         Improved by Eric Blake.
79445         * build-aux/useless-if-before-free: Likewise.
79446         * build-aux/announce-gen: Likewise.
79447         * build-aux/update-copyright: Likewise.
79449 2009-10-29  Eric Blake  <ebb9@byu.net>
79451         filenamecat-lgpl: adjust clients
79452         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
79453         filenamecat.
79454         * modules/renameat (Depends-on): Likewise.
79456         filenamecat: split into filenamecat-lgpl
79457         * modules/filenamecat-lgpl: New module.
79458         * modules/filenamecat (Files): Move library-safe files into
79459         filenamecat-lgpl.
79460         (Depends-on): Add filenamecat-lgpl.
79461         (configure.ac): Declare witness.
79462         * lib/filenamecat.h (file_name_concat): Only declare when using
79463         GPL module.
79464         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
79465         Move...
79466         * lib/filenamecat-lgpl.c: ...into new file.
79467         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
79468         (gl_FILE_NAME_CONCAT): Use it.
79469         * MODULES.html.sh (File system functions): Mention new module.
79471         argp: avoid memory leak
79472         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
79473         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
79474         base_name, since the latter malloc()s and can call exit().
79475         Leak introduced 2006-07-03.
79477         dirname-lgpl: adjust clients that don't need full dirname
79478         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
79479         * modules/filenamecat (Depends-on): Likewise.
79480         * modules/linkat (Depends-on): Likewise.
79481         * modules/mkancesdirs (Depends-on): Likewise.
79482         * modules/mkdir (Depends-on): Likewise.
79483         * modules/openat (Depends-on): Likewise.
79484         * modules/savewd (Depends-on): Likewise.
79485         * modules/rename (Depends-on): Likewise.
79486         (License): Relax license.
79487         * modules/mkdir-tests (Depends-on): Drop progname.
79488         (Makefile.am): Delete unneeded LDADD.
79489         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
79491         dirname: split into dirname-lgpl
79492         * modules/dirname-lgpl: New module.
79493         * modules/dirname (Files): Move library-safe files into
79494         dirname-lgpl.
79495         (Depends-on): Add dirname-lgpl.
79496         (configure.ac): Declare witness.
79497         * modules/double-slash-root (License): Relax license.
79498         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
79499         module.
79500         * lib/dirname.c (dir_len, mdir_name): Move...
79501         * lib/dirname-lgpl.c: ...into new file.
79502         * lib/basename.c (last_component, base_len): Move...
79503         * lib/basename-lgpl.c: ...into new file.
79504         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
79505         (gl_DIRNAME): Use it.
79506         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
79507         Mention new module.
79508         * modules/dirname-tests (Depends-on): Add progname.
79509         * tests/test-dirname.c (program_name): Delete.
79511         mkdir: make safe for libraries
79512         * modules/mkdir (Depends-on): Drop xalloc.
79513         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
79514         exit.
79516         tests: avoid some compiler warnings
79517         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
79518         literals.
79519         * tests/test-memchr.c (main): Avoid type mismatch.
79520         * tests/test-arpa_inet.c (main): Avoid unused parameters.
79521         * tests/test-base64.c (main): Likewise.
79522         * tests/test-getdelim.c (main): Likewise.
79523         * tests/test-gethostname.c (main): Likewise.
79524         * tests/test-getline.c (main): Likewise.
79525         * tests/test-netinet_in.c (main): Likewise.
79526         * tests/test-select.c (open_server_socket, main): Likewise.
79527         * tests/test-select-stdin.c (main): Likewise.
79528         * tests/test-sockets.c (main): Likewise.
79529         * tests/test-strsignal.c (main): Likewise.
79530         * tests/test-sys_select.c (main): Likewise.
79531         * tests/test-sys_socket.c (main): Likewise.
79532         * tests/test-u64.c (main): Likewise.
79533         * tests/test-xfprintf-posix.c (main): Likewise.
79534         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
79536         sockets: avoid compiler warning
79537         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
79539         maint: detect usage(1) and other suspicious exits
79540         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
79542 2009-10-29  Jim Meyering  <meyering@redhat.com>
79544         timespec: long-to-int truncation could make timespec_cmp malfunction
79545         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
79546         a multiple of 2^32 nanoseconds as no difference.
79548 2009-10-28  Jim Meyering  <meyering@redhat.com>
79550         fprintftime: wrap macro code argument in "do {...} while(0)"
79551         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
79552         cpy macro must be a statement that can be followed by a semicolon.
79553         Now that the else clause contains a comment and is hence longer
79554         than one line, I require curly braces.  That in turn requires
79555         that we wrap this code block in the standard do...while(0).
79557         fprintftime: remove stray semicolon from previous change
79558         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
79560         fprintftime: avoid a warning about ignored fwrite return value
79561         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
79562         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
79563         that is unsafe.
79564         * modules/fprintftime (Depends-on): Add ignore-value.
79566         exclude: avoid an unwarranted warning
79567         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
79569 2009-10-27  Eric Blake  <ebb9@byu.net>
79571         fseek: avoid compilation failure when fflush is replaced
79572         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
79573         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
79574         module is in use.
79575         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
79576         module is not in use; since REPLACE_FSEEK worked otherwise.
79577         (GNULIB_FTELLO): Likewise for ftell.
79578         Reported by Ian Beckwith and others.
79580 2009-10-27  Bruno Haible  <bruno@clisp.org>
79582         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
79583         Reported by Jim Meyering.
79585 2009-10-27  Jim Meyering  <jim@meyering.net>
79586             Bruno Haible  <bruno@clisp.org>
79588         Avoid warning despite dropping the return value of fwrite.
79589         * lib/unicodeio.c: Include ignore-value.h.
79590         (fwrite_success_callback): Explicitly ignore fwrite's return value.
79591         * modules/unicodeio (Depends-on): Add ignore-value.
79593 2009-10-26  Eric Blake  <ebb9@byu.net>
79595         areadlinkat: fix fallback path
79596         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
79597         pointer and zero.
79599 2009-10-22  Pádraig Brady  <P@draigBrady.com>
79601         Use a better IO block size for modern systems
79602         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
79603         * lib/md2.c: Likewise.
79604         * lib/md4.c: Likewise.
79605         * lib/md5.c: Likewise.
79606         * lib/sha1.c: Likewise.
79607         * lib/sha256.c: Likewise.
79608         * lib/sha512.c: Likewise.
79610 2009-10-22  Eric Blake  <ebb9@byu.net>
79612         tests: avoid several compiler warnings
79613         * tests/test-getcwd.c (main): Avoid buffer underflow.
79614         * tests/test-getdate.c (main): String literals are not safe with
79615         putenv, so use setenv.  Declare unused argument.
79616         * modules/getdate-tests (Depends-on): Add setenv.
79617         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
79618         problems with string literals in char *.
79619         * tests/test-hash.c (main): Avoid shadowing declaration.
79620         (insert_new): Treat string literals as char const *.
79621         * tests/test-getopt.h (test_getopt): Likewise.
79622         (getopt_loop): Alter types to minimize casting elsewhere.
79623         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
79624         (test_getopt_long_posix): Likewise.
79625         (do_getopt_long): Add wrapper to minimize casting.
79626         * tests/test-atexit.c (clear_temp_file): Use void.
79627         * tests/test-areadlink-with-size.c (main): Declare unused
79628         arguments.
79629         * tests/test-areadlink.c (main): Likewise.
79630         * tests/test-areadlinkat-with-size.c (main): Likewise.
79631         * tests/test-areadlinkat.c (main): Likewise.
79632         * tests/test-canonicalize-lgpl.c (main): Likewise.
79633         * tests/test-canonicalize.c (main): Likewise.
79634         * tests/test-dirent-safer.c (main): Likewise.
79635         * tests/test-dirname.c (main): Likewise.
79636         * tests/test-dup2.c (main): Likewise.
79637         * tests/test-fchdir.c (main): Likewise.
79638         * tests/test-fcntl-h.c (main): Likewise.
79639         * tests/test-fcntl-safer.c (main): Likewise.
79640         * tests/test-fdopendir.c (main): Likewise.
79641         * tests/test-fdutimensat.c (main): Likewise.
79642         * tests/test-fflush.c (main): Likewise.
79643         * tests/test-filenamecat.c (main): Likewise.
79644         * tests/test-filevercmp.c (main): Likewise.
79645         * tests/test-fopen-safer.c (main): Likewise.
79646         * tests/test-fopen.c (main): Likewise.
79647         * tests/test-fpending.c (main): Likewise.
79648         * tests/test-fpurge.c (main): Likewise.
79649         * tests/test-freading.c (main): Likewise.
79650         * tests/test-fstatat.c (main): Likewise.
79651         * tests/test-fsync.c (main): Likewise.
79652         * tests/test-futimens.c (main): Likewise.
79653         * tests/test-getndelim2.c (main): Likewise.
79654         * tests/test-gettimeofday.c (main): Likewise.
79655         * tests/test-getopt.c (main): Likewise.
79656         * tests/test-i-ring.c (main): Likewise.
79657         * tests/test-inttypes.c (main): Likewise.
79658         * tests/test-link.c (main): Likewise.
79659         * tests/test-lstat.c (main): Likewise.
79660         * tests/test-math.c (main): Likewise.
79661         * tests/test-md5.c (main): Likewise.
79662         * tests/test-memchr2.c (main): Likewise.
79663         * tests/test-memrchr.c (main): Likewise.
79664         * tests/test-mkdir.c (main): Likewise.
79665         * tests/test-mkdirat.c (main): Likewise.
79666         * tests/test-mkfifoat.c (main): Likewise.
79667         * tests/test-open.c (main): Likewise.
79668         * tests/test-openat-safer.c (main): Likewise.
79669         * tests/test-openat.c (main): Likewise.
79670         * tests/test-quotearg.c (main): Likewise.
79671         * tests/test-rawmemchr.c (main): Likewise.
79672         * tests/test-readlink.c (main): Likewise.
79673         * tests/test-remove.c (main): Likewise.
79674         * tests/test-rename.c (main): Likewise.
79675         * tests/test-renameat.c (main): Likewise.
79676         * tests/test-rmdir.c (main): Likewise.
79677         * tests/test-sha1.c (main): Likewise.
79678         * tests/test-signal.c (main): Likewise.
79679         * tests/test-sigaction.c (main): Likewise.
79680         * tests/test-stat.c (main): Likewise.
79681         * tests/test-stat-time.c (main): Likewise.
79682         * tests/test-stddef.c (main): Likewise.
79683         * tests/test-stdint.c (main): Likewise.
79684         * tests/test-stdio.c (main): Likewise.
79685         * tests/test-stdlib.c (main): Likewise.
79686         * tests/test-strchrnul.c (main): Likewise.
79687         * tests/test-strerror.c (main): Likewise.
79688         * tests/test-string.c (main): Likewise.
79689         * tests/test-strtod.c (main): Likewise.
79690         * tests/test-strverscmp.c (main): Likewise.
79691         * tests/test-symlink.c (main): Likewise.
79692         * tests/test-symlinkat.c (main): Likewise.
79693         * tests/test-sys_stat.c (main): Likewise.
79694         * tests/test-sys_time.c (main): Likewise.
79695         * tests/test-time.c (main): Likewise.
79696         * tests/test-unistd.c (main): Likewise.
79697         * tests/test-unlink.c (main): Likewise.
79698         * tests/test-unlinkat.c (main): Likewise.
79699         * tests/test-utimens.c (main): Likewise.
79700         * tests/test-utimensat.c (main): Likewise.
79701         * tests/test-version-etc.c (main): Likewise.
79702         * tests/test-wchar.c (main): Likewise.
79703         * tests/test-wctype.c (main): Likewise.
79704         * tests/test-xprintf-posix.c (main): Likewise.
79705         * tests/test-posixtm.c (main): Likewise.
79706         (STREQ): Delete unused macro.
79707         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
79708         shadowed variables.
79709         * tests/test-memchr.c (main): Likewise.
79711 2009-10-21  Eric Blake  <ebb9@byu.net>
79713         areadlinkat: avoid failure on older glibc
79714         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
79715         rather than mis-comparing 0 against FUNC_RESULT of char*.
79717 2009-10-21  Bruno Haible  <bruno@clisp.org>
79719         * modules/stpncpy (License): Relicense under LGPLv2+.
79720         Reported by David Lutterkort <lutter@redhat.com>.
79722 2009-10-20  Eric Blake  <ebb9@byu.net>
79724         utimensat: work around Solaris 9 bug
79725         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
79726         has trailing slash bugs.
79727         * tests/test-lutimens.h (test_lutimens): Enhance test.
79728         * tests/test-utimens.h (test_utimens): Likewise.
79729         * doc/posix-functions/utime.texi (utime): Enhance documentation.
79730         * doc/posix-functions/utimes.texi (utimes): Likewise.
79731         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79732         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
79733         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
79734         * doc/posix-functions/futimens.texi (futimens): Likewise.
79736         fdutimensat: new module
79737         * modules/fdutimensat: New file.
79738         * lib/fdutimensat.c (fdutimensat): Likewise.
79739         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
79740         * MODULES.html.sh (File system functions): Mention module.
79741         * modules/fdutimensat-tests: New test.
79742         * tests/test-fdutimensat.c: Likewise.
79744         doc: regenerate INSTALL
79745         * doc/INSTALL: Reflect recent autoconf update.
79746         * doc/INSTALL.ISO: Likewise.
79747         * doc/INSTALL.UTF-8: Likewise.
79749 2009-10-20  Pádraig Brady  <P@draigBrady.com>
79751         acl: warn if ACL support is not detected
79752         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
79754 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
79756         * lib/nproc.h: Add extern "C" block for C++.
79758 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
79759             Bruno Haible  <bruno@clisp.org>
79761         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
79762         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
79763         * doc/posix-functions/isalpha.texi: Likewise.
79764         * doc/posix-functions/isblank.texi: Likewise.
79765         * doc/posix-functions/iscntrl.texi: Likewise.
79766         * doc/posix-functions/isdigit.texi: Likewise.
79767         * doc/posix-functions/isgraph.texi: Likewise.
79768         * doc/posix-functions/islower.texi: Likewise.
79769         * doc/posix-functions/isprint.texi: Likewise.
79770         * doc/posix-functions/ispunct.texi: Likewise.
79771         * doc/posix-functions/isspace.texi: Likewise.
79772         * doc/posix-functions/isupper.texi: Likewise.
79773         * doc/posix-functions/isxdigit.texi: Likewise.
79775 2009-10-18  Bruno Haible  <bruno@clisp.org>
79777         Tests for module 'isblank'.
79778         * modules/isblank-tests: New file.
79779         * tests/test-isblank.c: New file.
79781         New module 'isblank'.
79782         * lib/isblank.c: New file.
79783         * m4/isblank.m4: New file.
79784         * modules/isblank: New file.
79785         * doc/posix-functions/isblank.texi: Mention the new module.
79787 2009-10-18  Bruno Haible  <bruno@clisp.org>
79789         New module 'ctype'.
79790         * lib/ctype.in.h: New file.
79791         * m4/ctype.m4: New file.
79792         * modules/ctype: New file.
79793         * doc/posix-headers/ctype.texi: Mention the new module.
79795 2009-10-18  Jim Meyering  <meyering@redhat.com>
79797         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
79798         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
79799         right after its initialization, rather than farther down.
79800         Keeping these in close proximity makes it easier to ensure
79801         that each such variable is initialized.  E.g.,
79803             LIB_CLOCK_GETTIME=
79804             AC_SUBST([LIB_CLOCK_GETTIME])
79806         This change also increments these serial numbers.
79807         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
79808         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79809         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79811 2009-10-18  Bruno Haible  <bruno@clisp.org>
79813         Don't let environment variables perturb build.
79814         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
79815         (gl_PREREQ_GETHRXTIME): ... not here.
79817 2009-10-18  Bruno Haible  <bruno@clisp.org>
79819         Avoid symlink attack in localcharset module.
79820         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
79821         (O_NOFOLLOW): Define fallback.
79822         (get_charset_aliases): Don't open the file if it is a symbolic link.
79823         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
79824         gl_FCNTL_H.
79825         (gl_FCNTL_H): Require it.
79826         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
79827         * modules/localcharset (Files): Add m4/fcntl_h.m4.
79828         Reported by Fergal Glynn <fglynn@veracode.com>.
79830 2009-10-18  Bruno Haible  <bruno@clisp.org>
79832         Implement nproc for mingw.
79833         * lib/nproc.c: Include <windows.h>
79834         (num_processors): On native Windows platforms, try GetSystemInfo.
79836 2009-10-18  Bruno Haible  <bruno@clisp.org>
79838         Implement nproc for IRIX.
79839         * lib/nproc.c: Include <sys/sysmp.h>.
79840         (num_processors): On IRIX systems, try sysmp.
79841         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
79843 2009-10-18  Bruno Haible  <bruno@clisp.org>
79845         Implement nproc for HP-UX.
79846         * lib/nproc.c: Include <sys/pstat.h>
79847         (num_processors): On HP-UX systems, try pstat_getdynamic.
79848         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
79849         pstat_getdynamic.
79851 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
79852             Bruno Haible  <bruno@clisp.org>
79854         Implement nproc for NetBSD, OpenBSD.
79855         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
79856         (ARRAY_SIZE): New macro.
79857         (num_processors): On BSD systems, try sysctl of HW_NCPU.
79858         * m4/nproc.m4: New file.
79859         * modules/nproc (Files): Add m4/nproc.m4.
79860         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
79861         (Makefile.am): Instead, augment lib_SOURCES.
79863 2009-10-18  Bruno Haible  <bruno@clisp.org>
79865         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
79866         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
79867         sys/param.h.
79869 2009-10-16  Eric Blake  <ebb9@byu.net>
79871         utimensat: new module
79872         * modules/utimensat: New file.
79873         * lib/utimensat.c (utimensat): Likewise.
79874         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
79875         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
79876         so we can work around Linux bugs.
79877         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79878         * modules/sys_stat (Makefile.am): Substitute them.
79879         * lib/sys_stat.in.h (utimensat): Declare it.
79880         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79881         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79882         * modules/utimensat-tests: New test.
79883         * tests/test-utimensat.c: Likewise.
79885         utimens: let lutimens work on non-symlinks
79886         * lib/utimens.c (lutimens): Fall back to utimens rather than
79887         failing with ENOSYS, when file is not a symlink.
79888         (utimens): Reduce redirection.
79889         * tests/test-lutimens.h (test_lutimens): Update test to cover
79890         non-symlinks.
79891         * tests/test-utimens.h (test_utimens): Update test to cover
79892         symlinks.
79893         * tests/test-utimens.c (main): Update caller.
79895         utimens: cache whether utimensat syscall works
79896         * lib/utimens.c (utimensat_works_really): New cache variable.
79897         (fdutimens, lutimens): Use it to avoid failing syscall.
79899         test-stat-time, test-utimens: improve portability
79900         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
79901         ext4 on alpha, and for cygwin.
79902         * tests/test-utimens-common.h: New file.
79903         (nap): Factor delays into single function.
79904         * tests/test-lutimens.h (test_lutimens): Use new header.
79905         * tests/test-futimens.h (test_futimens): Likewise.
79906         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
79907         timestamps to occur from same machine, as was done previously for
79908         test_utimens.
79909         * modules/utimens-tests (Files): Ship new file.
79910         * modules/futimens-tests (Files): Likewise.
79911         Reported in part by Jim Meyering.
79913         sys_stat: sort replacement declarations
79914         * lib/sys_stat.in.h: Sort declarations.
79915         * lib/futimens.c (futimens): Fix typo.
79917 2009-10-15  Jim Meyering  <meyering@redhat.com>
79919         don't let environment settings perturb build
79920         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
79921         could cause a configure-time and/or build-time malfunction.
79922         Typically, a configure-time function-in-library test is performed
79923         via code like this:
79925           LIB_VAR=
79926           AC_SUBST([LIB_VAR])
79927           prefix_saved_LIBS=$LIBS
79928             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
79929                        [test "$ac_cv_search_FUNC" = "none required" ||
79930                         LIB_VAR=$ac_cv_search_FUNC])
79931           LIBS=$prefix_saved_LIBS
79933         However, in each of the files affected by this change, the LIB_VAR=
79934         initialization was omitted.  Thus, when set in the environment, its
79935         value would propagate into generated Makefiles when FUNC is not found
79936         in LIB_NAME.
79937         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
79938         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79939         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79941 2009-10-14  Eric Blake  <ebb9@byu.net>
79943         fchdir: avoid infinite recursion in mingw
79944         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
79945         recursing.
79947         test-stat-time: port to mingw
79948         * tests/test-stat-time.c (force_unlink): Return a value.
79949         (test_ctime) [W32]: Fix compilation error.
79950         (nap): Don't call usleep with too large an argument.  Use
79951         force_unlink.
79952         * doc/pastposix-functions/usleep.texi (usleep): Document the
79953         portability issue.
79955 2009-10-13  Jim Meyering  <meyering@redhat.com>
79957         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
79958         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
79959         * modules/pipe-filter-ii: Likewise.
79960         * modules/sys_socket-tests: Likewise.
79961         * modules/tsearch-tests: Likewise.
79962         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
79963         (check): Depend on it.
79965 2009-10-12  Eric Blake  <ebb9@byu.net>
79967         utimens-tests: port to NFS file systems
79968         * tests/test-utimens.h (test_utimens): Refactor utimecmp
79969         comparisons to avoid spurious failures from timestamp drift
79970         between NFS machines.
79972 2009-10-12  Eric Blake  <ebb9@byu.net>
79974         stat-time-tests: minor cleanups
79975         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
79976         * tests/test-stat-time.c (nap): Separate assignment from call.
79977         Suggested by Paolo Bonzini and Bruno Haible.
79979         sys_stat: guarantee struct timespec
79980         * lib/sys_stat.in.h (includes): Always include <time.h>
79981         * modules/sys_stat (Depends-on): Add time.
79982         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
79983         mode_t permission values.
79984         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
79985         get at subsecond timestamps.
79987 2009-10-10  Eric Blake  <ebb9@byu.net>
79989         futimens: new module
79990         * modules/futimens: New file.
79991         * lib/futimens.c (futimens): Likewise.
79992         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
79993         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
79994         we can work around Linux bugs.
79995         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79996         * modules/sys_stat (Makefile.am): Substitute them.
79997         * lib/sys_stat.in.h (futimens): Declare it.
79998         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79999         * doc/posix-functions/futimens.texi (futimens): Likewise.
80000         * modules/futimens-tests: New test.
80001         * tests/test-futimens.c: Likewise.
80003         utimens: introduce fdutimens
80004         * lib/utimens.h (fdutimens): New prototype.
80005         * lib/utimens.c (gl_futimens): Move guts...
80006         (fdutimens): ...to new interface.
80007         * tests/test-utimens.c (do_fdutimens): Use it.
80009         utimens: add UTIME_NOW and UTIME_OMIT support
80010         * lib/utimens.c (validate_timespec, update_timespec): New helper
80011         functions.
80012         (gl_futimens, lutimens): Use them.
80013         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
80014         stdbool, sys_stat.
80015         (Link): Mention resulting library dependency.
80016         * modules/utimecmp (Link): Likewise.
80017         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
80018         (Makefile.am): Pick up library dependency.
80019         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
80020         definition.
80021         * tests/test-sys_stat.c: Test the definitions.
80022         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
80023         * NEWS: Document library dependency.
80025         utimecmp: support symlink timestamps
80026         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
80027         hashing when possible.  Use pathconf when available.
80028         (SYSCALL_RESOLUTION): Recognize tighter resolution.
80029         * modules/utimecmp (Depends-on): Add lstat.
80031         utimens: add lutimens interface
80032         * lib/utimens.c (lutimens): New function.
80033         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
80034         * lib/utimens.h (lutimens): Declare new interface.
80035         * tests/test-utimens.c (main): Enhance test.
80036         * tests/test-lutimens.h (test_lutimens): New file.
80037         * modules/utimens-tests (Files): Distribute it.
80038         (Depends-on): Add symlink.
80039         (configure.ac): Check for usleep.
80041         utimens: validate futimens usage
80042         * lib/utimens.c (gl_futimens): Require valid fd up front, using
80043         fewer syscalls on failure later on.  Avoid compiler warning on
80044         mingw.
80045         * modules/utimens (Depends-on): Add dup2.
80047         utimens: add test
80048         * modules/utimens-tests: New test.
80049         * tests/test-utimens.h: New file.
80050         * tests/test-futimens.h: Likewise.
80051         * tests/test-utimens.c: Likewise.
80053         doc: mention timestamp portability issues
80054         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
80055         instead.
80056         * doc/posix-functions/utime.texi (utime): Likewise.
80057         * doc/posix-functions/utimes.texi (utimes): Likewise.
80058         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
80059         instead.
80060         * doc/posix-functions/futimens.texi (futimens): Mention utimens
80061         module.
80062         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
80063         Mention weakness with symlink timestamps.
80064         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
80065         to utimensat/futimens instead.
80066         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
80068         test-dup2: enhance test
80069         * tests/test-dup2.c (main): Also check AT_FDCWD.
80071         test-stat-time: avoid more spurious failures
80072         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
80073         xfs; and avoid race if the two timestamps cross quantization edge.
80075         relocatable: prefer 'file system' over 'filesystem'
80076         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
80077         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
80078         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
80079         * doc/relocatable.texi (Enabling Relocatability): Likewise.
80080         * lib/relocatable.c (compute_curr_prefix): Likewise.
80082 2009-10-10  Jim Meyering  <meyering@redhat.com>
80084         stat-time-tests: check for the usleep function
80085         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
80087 2009-10-10  Bruno Haible  <bruno@clisp.org>
80089         * modules/xnanosleep: Put the Link section after the Include section.
80091 2009-10-09  Eric Blake  <ebb9@byu.net>
80093         dup2: work around FreeBSD 6.1 bug
80094         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
80095         * doc/posix-functions/dup2.texi (dup2): Document it.
80096         Reported by Nelson H. F. Beebe and Jim Meyering.
80098         test-stat-time: port to buggy NFS clients
80099         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
80100         (test_ctime): Also skip test if mtime and ctime are skewed.
80102         maint: prefer 'file system' over 'filesystem'
80103         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
80104         * doc/posix-functions/lstat.texi (lstat): Likewise.
80105         * lib/file-has-acl.c (file_has_acl): Likewise.
80106         * lib/fwriteerror.c [TEST]: Likewise.
80107         * tests/test-areadlink.h (test_areadlink): Likewise.
80108         * tests/test-areadlinkat-with-size.c (main): Likewise.
80109         * tests/test-areadlinkat.c (main): Likewise.
80110         * tests/test-canonicalize-lgpl.c (main): Likewise.
80111         * tests/test-canonicalize.c (main): Likewise.
80112         * tests/test-fstatat.c (main): Likewise.
80113         * tests/test-linkat.c (main): Likewise.
80114         * tests/test-lstat.h (test_lstat_func): Likewise.
80115         * tests/test-mkdir.h (test_mkdir): Likewise.
80116         * tests/test-readlink.h (test_readlink): Likewise.
80117         * tests/test-remove.c (main): Likewise.
80118         * tests/test-rename.h (test_rename): Likewise.
80119         * tests/test-renameat.c (main): Likewise.
80120         * tests/test-rmdir.h (test_rmdir_func): Likewise.
80121         * tests/test-symlink.h (test_symlink): Likewise.
80122         * tests/test-symlinkat.c (main): Likewise.
80123         * tests/test-unlink.h (test_unlink_func): Likewise.
80124         * tests/test-unlinkat.c (main): Likewise.
80126         maint: make realtime library usage explicit
80127         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
80128         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
80129         * modules/settime (Link): Likewise.
80130         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
80132         test-stat-time: speed up execution
80133         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
80134         warning on mingw.
80135         (nap): New helper function.
80136         (prepare_test): Use it to reduce sleep time.
80137         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
80138         execution.
80139         * modules/stat-time-tests (configure.ac): Check for usleep.
80141 2009-10-09  Jim Meyering  <meyering@redhat.com>
80143         selinux-h: always use getfilecon wrappers
80144         * lib/getfilecon.c: New file.
80145         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
80146         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
80147         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
80148         (fgetfilecon): Provide a stub.
80149         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
80150         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
80151         file unconditionally.
80152         When <selinux/selinux.h> is found, arrange to use wrappers.
80153         * modules/selinux-h (Files): Add getfilecon.c.
80154         (Makefile.am): Substitute include-next-related bits
80155         into the now-always-generated selinux/selinux.h file.
80156         * doc/glibc-functions/lgetfilecon.texi: New file.
80157         * doc/glibc-functions/fgetfilecon.texi: New file.
80158         * doc/glibc-functions/getfilecon.texi: New file.
80159         * doc/glibc-functions/getfilecon-desc.texi: New file.
80160         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
80161         which to pull in the new files.
80162         * MODULES.html.sh (Misc): Add selinux-h.
80164 2009-10-08  Jim Meyering  <meyering@redhat.com>
80166         unistd: fix comment typo
80167         * lib/unistd.in.h (euidaccess): Fix a comment typo.
80169 2009-10-08  Eric Blake  <ebb9@byu.net>
80171         areadlink: use SIZE_MAX consistently
80172         * modules/areadlink (Depends-on): Add stdint.
80173         * modules/areadlink-with-size (Depends-on): Likewise.
80174         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
80175         gives NULL; drop sys/types, since unistd gives size_t; and add
80176         stdint for SIZE_MAX.
80177         (SIZE_MAX): Rely on headers.
80178         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
80179         and add stdint.
80180         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
80181         (SIZE_MAX): Likewise.
80182         (INITIAL_BUF_SIZE): Turn into enum.
80183         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
80185 2009-10-08  Jim Meyering  <meyering@redhat.com>
80187         areadlinkat: avoid compilation failure
80188         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
80189         Fix typo in comment.
80191 2009-10-07  Eric Blake  <ebb9@byu.net>
80193         areadlinkat-with-size: new module
80194         * modules/areadlinkat-with-size: New module.
80195         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
80196         * lib/areadlink.h (areadlinkat): Declare it.
80197         * MODULES.html.sh (File system functions): Mention it.
80198         * modules/areadlinkat-with-size-tests: New test.
80199         * tests/test-areadlinkat-with-size.c: New file.
80201         xreadlinkat: new module
80202         * modules/xreadlinkat: New module.
80203         * lib/xreadlinkat.c (xreadlinkat): New file.
80204         * lib/xreadlink.h (xreadlinkat): Declare it.
80205         * MODULES.html.sh (File system functions): Mention it.
80207         areadlinkat: new module
80208         * lib/at-func.c (FUNC_FAIL): New define.
80209         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
80210         * modules/areadlinkat: New module.
80211         * lib/linkat.c (areadlinkat): Move...
80212         * lib/areadlinkat.c (areadlinkat): ...to new file.
80213         * lib/areadlink.h (areadlinkat): Declare it.
80214         * modules/linkat (Depends-on): Add areadlinkat.
80215         * MODULES.html.sh (File system functions): Mention it.
80216         * modules/areadlinkat-tests: New test.
80217         * tests/test-areadlinkat.c: New file.
80219         areadlink, areadlink-with-size: add tests
80220         * modules/areadlink-tests: New test.
80221         * modules/areadlink-with-size-tests: Likewise.
80222         * tests/test-areadlink.h: New file.
80223         * tests/test-areadlink.c: Likewise.
80224         * tests/test-areadlink-with-size.c: Likewise.
80226         maint: minor cleanups
80227         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
80228         _UNUSED_PARAMETER_ instead.
80229         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
80230         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
80231         * modules/linkat-tests (Files): Distribute test-link.h.
80233         openat, utimens: whitespace cleanup
80234         * lib/openat.c: Prefer space throughout, rather than mix of 8
80235         spaces vs. tabs.
80236         * lib/at-func.c: Likewise.
80237         * lib/utimens.c: Likewise.
80239         openat: avoid using wrong fd
80240         * lib/openat.c (openat_permissive): Reject user's fd if saving the
80241         working directory chooses same fd.
80242         * lib/at-func.c (AT_FUNC_NAME): Likewise.
80244         mkdir, mkdirat: fix cygwin 1.5.x bug
80245         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
80246         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
80247         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
80248         bug.
80249         (gl_PREREQ_MKDIR): Delete unused macro.
80250         * modules/mkdir (Files): Track file rename.
80251         (configure.ac): Update macro name.
80252         * modules/openat (Depends-on): Add mkdir.
80253         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
80255         mkdir, mkdirat: add tests
80256         * modules/mkdir-tests: New test.
80257         * tests/test-mkdir.h: New file.
80258         * tests/test-mkdir.c: Likewise.
80259         * tests/test-mkdirat.c: Likewise.
80260         * modules/openat-tests (Files): Add new files.
80261         (Makefile.am): Run new test.
80263 2009-10-06  Eric Blake  <ebb9@byu.net>
80265         doc: tweak *at function documentation
80266         * doc/posix-functions/faccessat.texi (faccessat): Mention
80267         known issue with replacement.
80268         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
80269         * doc/posix-functions/linkat.texi (linkat): Likewise.
80270         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
80271         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
80272         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80273         * doc/posix-functions/renameat.texi (renameat): Likewise.
80274         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
80276         openat: fix GNU/Hurd bug in unlinkat
80277         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
80278         broken.
80279         * doc/posix-functions/unlink.texi (unlink): Document this.
80280         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
80282         fdopendir: fix GNU/Hurd bug
80283         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
80284         allowing non-directory fds.
80285         * lib/fdopendir.c (rpl_fdopendir): Work around it.
80286         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
80287         * modules/dirent (Makefile.am): Substitute it.
80288         * lib/dirent.in.h (fdopendir): Declare replacement.
80289         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
80290         * tests/test-fdopendir.c (main): Test something other than
80291         /dev/null, since on Hurd that behaves like a directory.
80293         test-symlink: port to GNU/Hurd
80294         * tests/test-symlink.h (test_symlink): Relax expected errno.
80296         doc: tweak more cygwin information
80297         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
80298         now compatible with glibc.
80299         * doc/posix-functions/getopt.texi (getopt): Likewise.
80301         getopt-gnu: add another test
80302         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
80303         guarantee behavior relied on by m4.
80304         * tests/test-getopt.c (main): Use it.
80305         * modules/getopt-posix-tests (Depends-on): Add setenv.
80306         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
80308         getopt: fix compilation on darwin
80309         * lib/getopt.in.h (includes): Leave breadcrumbs during system
80310         include.
80311         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
80312         Reported by Ludovic Courtès.
80314 2009-10-06  Bruno Haible  <bruno@clisp.org>
80316         * modules/size_max (Description): Discourage its use.
80317         Reported by Simon Josefsson.
80319 2009-10-06  Jim Meyering  <meyering@redhat.com>
80321         linkat: avoid compilation failure
80322         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
80324 2009-10-05  Eric Blake  <ebb9@byu.net>
80326         linkat: support Linux 2.6.17
80327         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
80328         linkat on Linux, but allow cache variable override.
80329         * lib/linkat.c (rpl_linkat): Define override.
80330         * modules/linkat (Depends-on): Add symlinkat.
80331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
80332         * modules/unistd (Makefile.am): Substitute it.
80333         * lib/unistd.in.h (linkat): Declare replacement.
80334         Reported by Pádraig Brady.
80336         quotearg: port test to systems with C.UTF-8 locale
80337         * tests/test-quotearg.c (struct result_strings): Add another
80338         member, differentiating between C.ASCII and C.UTF-8 handling.
80339         (compare_strings): Add parameter.
80340         (main): Adjust all callers.
80342         getopt: avoid clash with FreeBSD _getopt_internal
80343         * lib/getopt.in.h (_getopt_internal): Override the name.
80344         * lib/getopt_int.h (includes): Pick up any overrides.
80345         Reported by Reuben Thomas.
80347         hash: allow C89 compilation
80348         * lib/hash.c (check_tuning): Move declaration before statement.
80349         Reported by Reuben Thomas.
80351 2009-10-05  Karl Berry  <karl@gnu.org>
80353         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
80355 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
80356             Bruno Haible  <bruno@clisp.org>
80358         * lib/uname.c (uname): Use a table-driven algorithm to compute
80359         Windows NT versions.
80361 2009-10-04  Bruno Haible  <bruno@clisp.org>
80363         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
80364         program_invocation_short_name.
80365         * modules/progname (configure.ac): Test for presence of
80366         program_invocation_short_name.
80367         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
80369 2009-10-04  Bruno Haible  <bruno@clisp.org>
80371         * lib/progname.c (set_program_name): Fix comment.
80372         Reported by Jim Meyering.
80374 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
80375             Bruno Haible  <bruno@clisp.org>
80377         * lib/uname.c: Include <string.h>.
80378         (uname): Do only one call to GetVersionEx in the common case.
80380 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
80381             Bruno Haible  <bruno@clisp.org>
80383         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
80384         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
80385         (uname): Add support for Windows CE and various non-x86 CPU types.
80387 2009-10-03  Bruno Haible  <bruno@clisp.org>
80389         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
80390         invocation to tests/configure.ac.
80391         Reported by Ian Beckwith <ianb@erislabs.net>.
80393 2009-10-02  Eric Blake  <ebb9@byu.net>
80395         fchdir: avoid compiler warning
80396         * lib/fchdir.c (canonicalize_file_name)
80397         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
80399         test-open: support mingw errno values
80400         * tests/test-open.h (test_open): Relax test.
80401         * tests/test-fopen.h (test_fopen): Likewise.
80402         * tests/test-openat-safer.c (main): Likewise.
80404         open: fix opening directory on mingw
80405         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
80407         test-open: on GNU/Hurd, /dev/null is a directory
80408         * tests/test-fopen.h (main): Rename...
80409         (test_fopen): ...to this.  Use a guaranteed non-directory when
80410         confirming open behavior on trailing slash.
80411         * tests/test-openat-safer.c (main): Likewise.
80412         * tests/test-open.h (main): Likewise....
80413         (test_open): ...to this.
80414         * tests/test-fopen.c (main): Adjust caller.
80415         * tests/test-fopen-safer.c (main): Likewise.
80416         * tests/test-open.c (main): Likewise.
80417         * tests/test-fcntl-safer.c (main): Likewise.
80418         Reported by Samuel Thibault.
80420         rename, fchdir: don't ignore chdir failure
80421         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
80422         * lib/rename.c (rpl_rename) [W32]: Likewise.
80423         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
80424         an empty destination directory if source cannot be renamed,
80425         although there is still possibility for failure.
80426         * doc/posix-functions/rename.texi (rename): Document the race.
80427         Reported by Jim Meyering.
80429         maint: cleanup whitespace in recent commits
80430         * lib/rename.c (rpl_rename): Remove tabs.
80431         * tests/test-link.h (test_link): Likewise.
80432         * lib/fchdir.c (get_name): Likewise.
80433         Reported by Jim Meyering.
80435 2009-10-02  Ben Pfaff  <blp@gnu.org>
80437         relocatable-prog-wrapper: Add missing dependency on
80438         double-slash-root.
80439         * modules/relocatable-prog-wrapper: Add dependency.
80440         Reported by Ian Beckwith <ianb@erislabs.net>.
80442 2009-10-02  Eric Blake  <ebb9@byu.net>
80444         renameat: fix Solaris bugs
80445         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
80446         needed fixing.
80447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
80448         * modules/stdio (Makefile.am): Substitute it.
80449         * lib/stdio.in.h (renameat): Declare replacement.
80450         * lib/renameat.c (rpl_renameat): Implement fix.
80452         renameat: new module
80453         * modules/renameat: New file.
80454         * lib/renameat.c (renameat): Likewise.
80455         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
80456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
80457         * modules/stdio (Makefile.am): Substitute them.
80458         * lib/stdio.in.h (renameat): Declare it.
80459         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80460         * doc/posix-functions/renameat.texi (renameat): Likewise.
80461         * modules/renameat-tests: New test.
80462         * tests/test-renameat.c: Likewise.
80464         rename: fix mingw bugs
80465         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
80466         directory overwrite bugs.
80468         rename: fix another cygwin 1.5 bug
80469         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
80470         checks.
80471         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
80472         unnecessary cygwin workarounds.  Also work around bug with moving
80473         full directory onto an empty one.
80474         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
80476         rename-dest-slash: merge into rename module
80477         * modules/rename-dest-slash (Status): Mark obsolete.
80478         (Depends-on): Add rename.
80479         (Files): Let rename do it all.
80480         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
80481         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
80482         * m4/rename-dest-slash.m4: ...so this file can be deleted.
80483         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
80484         * lib/rename.c (rpl_rename): Update comments.
80486         rename: fix cygwin 1.5.x bugs
80487         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
80488         * lib/rename.c (rpl_rename): Work around them.
80489         * modules/rename (Depends-on): Add same-inode.
80491         rename: fix Solaris 10 bug
80492         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
80493         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
80494         was the only bug.
80496         rename: fix Solaris 9 bug
80497         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
80498         on non-directory.  Avoid calling exit.
80499         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
80500         strdup.
80501         * modules/rename-tests (Depends-on): Drop lstat.
80502         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
80503         (gl_PREREQ_RENAME): Delete unused macro.
80505         rename-dest-slash: fix NetBSD bug
80506         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
80507         links.
80508         * modules/rename-dest-slash (Depends-on): Add same-inode.
80510         rename-tests: new test, exposes several platform bugs
80511         * modules/rename-tests: New file.
80512         * tests/test-rename.h: Likewise.
80513         * tests/test-rename.c: Likewise.
80514         * doc/posix-functions/rename.texi (rename): Improve documentation,
80515         including bugs that will eventually be fixed in gnulib.
80517 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
80519         * lib/uname.c: Include <stdlib.h>
80520         (uname): Assume version info is available.
80522 2009-10-02  Jim Meyering  <meyering@redhat.com>
80524         gnu-web-doc-update: correct --help output
80525         * build-aux/gnu-web-doc-update: Make --help output relevant.
80527         gnu-web-doc-update: add standard options
80528         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
80530         gnu-web-doc-update: New module.
80531         Use this script to automatically update the on-line web documentation
80532         for your GNU project at http://www.gnu.org/software/$pkg/manual/
80533         * modules/gnu-web-doc-update: New file, from coreutils.
80534         * build-aux/gnu-web-doc-update: New script.
80536 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
80538         link: LoadLibrary is not needed.
80539         * lib/link.c: Use GetModuleHandle.
80541 2009-10-01  Eric Blake  <ebb9@byu.net>
80543         getopt: bump serial number
80544         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
80545         change.
80547         tests: tighten link, rmdir, and remove tests
80548         * tests/test-link.h (includes): No need to use <config.h> here.
80549         Clean up if directory hard link was created, otherwise test for
80550         trailing '.'.
80551         * tests/test-linkat.c (main): Simplify.
80552         * tests/test-remove.c (main): Enhance test for trailing '.'.
80553         * tests/test-rmdir.h (test_rmdir_func): Likewise.
80555 2009-10-01  Jim Meyering  <meyering@redhat.com>
80557         maint.mk: requiring "make major" was annoying, for a "minor" release.
80558         What is intended is "stable", to contrast with alpha and beta,
80559         so require "make stable", not "make major".
80560         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
80561         (get_tool_versions): Likewise.
80562         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
80564 2009-09-30  Ben Pfaff  <blp@gnu.org>
80566         Fix broken build of replacement for Windows tmpfile().
80567         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
80568         flags argument added along with the 'mkostemp' module.
80570 2009-09-28  Bruno Haible  <bruno@clisp.org>
80572         Avoid identifier clash with POSIX function 'remove' defined as a macro.
80573         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
80574         to 'remove_elt'.
80575         (gl_list_remove): Update.
80576         * lib/gl_list.c (gl_list_remove): Update.
80577         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
80578         to 'remove_elt'.
80579         (gl_oset_remove): Update.
80580         * lib/gl_list.c (gl_oset_remove): Update.
80581         Reported by Eric Blake.
80583 2009-09-28  Eric Blake  <ebb9@byu.net>
80585         doc: mention yet more cygwin 1.7 status
80586         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
80587         cygwin.
80588         * doc/glibc-functions/execvpe.texi (execvpe): New file.
80589         * doc/gnulib.texi (Glibc unistd.h): Mention it.
80591         argp: fix test failure
80592         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
80593         that are not upper-case.  Pass correct range to tolower.
80595 2009-09-27  Jim Meyering  <meyering@redhat.com>
80597         test-yesno: work around sparc-dash here-document infelicity
80598         Without this change, the literal \177 byte in a here document
80599         would make dash 0.5.5.1-3 access uninitialized memory.
80600         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
80601         Instead, use a marker, "@", and filter through tr to create the desired
80602         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
80604 2009-09-27  Bruno Haible  <bruno@clisp.org>
80606         Disable untested support for new flavours of ACLs on AIX.
80607         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
80608         progress.
80609         * lib/set-mode-acl.c (qset_acl): Likewise.
80611 2008-12-07  Bruno Haible  <bruno@clisp.org>
80613         Add support for new flavours of ACLs on AIX. (Untested.)
80614         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
80615         (file_has_acl): Add support for newer AIX.
80616         * lib/set-mode-acl.c (qset_acl): Likewise.
80617         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
80618         Rainer Tammer <tammer@tammer.net>.
80620 2009-09-26  Eric Blake  <ebb9@byu.net>
80622         argp: fix compilation of getopt
80623         * lib/getopt.in.h (includes): Use different guard than glibc.
80624         Reported by Sergey Poznyakoff.
80626         doc: mention more cygwin 1.7 status
80627         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
80628         bug.
80629         * doc/posix-functions/execl.texi (execl): Likewise.
80630         * doc/posix-functions/execle.texi (execle): Likewise.
80631         * doc/posix-functions/execlp.texi (execlp): Likewise.
80632         * doc/posix-functions/execv.texi (execv): Likewise.
80633         * doc/posix-functions/execve.texi (execve): Likewise.
80634         * doc/posix-functions/execvp.texi (execvp): Likewise.
80635         * doc/glibc-functions/canonicalize_file_name.texi
80636         (canonicalize_file_name): Cygwin 1.7 now provides this.
80637         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
80638         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
80639         on AT_SYMLINK_NOFOLLOW.
80641 2009-09-24  Eric Blake  <ebb9@byu.net>
80643         test-linkat: make test more robust
80644         * tests/test-linkat.c (main): Avoid collision with EEXIST.
80646         getopt: fix inclusion guards for cygwin
80647         * modules/getopt-posix (Depends-on): Add include-next.
80648         (Makefile.am): Substitute more items in replacement header.
80649         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
80650         <getopt.h>.
80651         * lib/getopt.in.h (includes): Use split inclusion guard, and
80652         prefer <getopt.h> over include <unistd.h> when one is present.
80653         (option): Also override name of 'struct option'.
80655         same-inode: revert prior change; it is not yet ready
80656         * NEWS: Undo mention of this change.
80657         * lib/same-inode.h (same-inode.h): Undo tri-state change.
80658         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
80659         * lib/cycle-check.c (cycle_check): Likewise.
80660         * lib/same.c (same_name): Likewise.
80661         * lib/at-func2.c (at_func2): Likewise.
80663 2009-09-23  Eric Blake  <ebb9@byu.net>
80665         linkat: new module
80666         * modules/linkat: New file.
80667         * lib/at-func2.c (at_func2): Likewise.
80668         * lib/linkat.c (linkat): Likewise.
80669         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
80670         * lib/openat-priv.h (at_func2): Add declaration.
80671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80672         * modules/unistd (Makefile.am): Substitute them.
80673         * lib/unistd.in.h (linkat): Declare it.
80674         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80675         * doc/posix-functions/linkat.texi (linkat): Likewise.
80676         * doc/posix-functions/link.texi (link): Tweak wording.
80677         * tests/test-link.c (main): Move guts...
80678         * tests/test-link.h (test_link): ...into new file.
80679         * modules/linkat-tests: New test.
80680         * tests/test-linkat.c: Likewise.
80681         * modules/link-tests (Files): Ship new file.
80682         (Depends-on): Add stdbool.
80684         dirname: add library-safe mdir_name
80685         * lib/dirname.h (mdir_name): New prototype.
80686         * lib/dirname.c (dir_name): Move guts...
80687         (mdir_name): ...to new function that avoids xalloc_die.
80689         fchdir: another mingw fix
80690         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
80691         * lib/fchdir.c (get_name): New helper method; skips canonicalize
80692         on mingw (where it has not yet been ported), and make it optional
80693         elsewhere.
80694         (_gl_register_fd): Use it.
80696         same-inode: make SAME_INODE tri-state, to port to mingw
80697         * NEWS: Mention this change.
80698         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
80699         st_ino always being 0.
80700         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
80701         * lib/cycle-check.c (cycle_check): Likewise.
80702         * lib/same.c (same_name): Likewise.
80704         lstat: avoid mingw compilation error
80705         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
80706         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
80707         lstat ourselves.
80708         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
80709         was adequate.
80710         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
80711         the checks for lstat.
80712         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
80714         link: fix test failure on Solaris 9
80715         * lib/link.c (rpl_link): Don't assume link will catch bogus
80716         trailing slash on source.
80718         test-symlinkat: enhance test
80719         * tests/test-readlink.c (main): Move guts...
80720         * tests/test-readlink.h (test_readlink): ...into new file.
80721         * tests/test-symlink.c (main): Move guts...
80722         * tests/test-symlink.h (test_symlink): ...into new file.
80723         * tests/test-symlinkat.c (main): Use new files for further
80724         coverage.
80725         (do_symlink, do_readlink): New helper functions.
80726         * modules/symlink-tests (Files): Ship new file.
80727         (Depends-on): Add stdbool.
80728         * modules/readlink-tests (Files): Ship new file.
80729         (Depends-on): Add stdbool.
80730         * modules/symlinkat-tests (Files): Use new files.
80732 2009-09-23  Eric Blake  <ebb9@byu.net>
80734         readlink: document portability issue with symlink length
80735         * doc/posix-functions/lstat.texi (lstat): Mention that some file
80736         systems have bogus st_size on symlinks, and mention the
80737         areadlink-with-size module.
80738         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
80739         * doc/posix-functions/readlink.texi (readlink): Mention the
80740         areadlink module, and ERANGE failure.
80741         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80742         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
80744         readlink: fix Solaris 9 bug with trailing slash
80745         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
80746         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
80747         * doc/posix-functions/readlink.texi (readlink): Document this.
80748         * modules/readlink-tests: New test.
80749         * tests/test-readlink.c: Likewise.
80751         readlink: fix cygwin 1.5.x bug with return type
80752         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
80753         * lib/unistd.in.h (readlink): Use ssize_t.
80754         * lib/readlink.c (readlink): Likewise.
80755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80756         * modules/unistd (Makefile.am): Substitute it.
80757         * lib/unistd.in.h (readlink): Declare replacement.
80758         * doc/posix-functions/readlink.texi (readlink): Document this.
80760         symlink: use throughout gnulib
80761         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
80762         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
80763         symlink is not used.
80764         * modules/symlinkat (Depends-on): Add symlink.
80765         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80766         * modules/canonicalize-tests (Depends-on): Likewise.
80767         * modules/lstat-tests (Depends-on): Likewise.
80768         * modules/openat-tests (Depends-on): Likewise.
80769         * modules/remove-tests (Depends-on): Likewise.
80770         * modules/rmdir-tests (Depends-on): Likewise.
80771         * modules/unlink-tests (Depends-on): Likewise.
80772         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
80773         * tests/test-canonicalize.c (symlink): Likewise.
80774         * tests/test-fstatat.c (symlink): Likewise.
80775         * tests/test-lstat.c (symlink): Likewise.
80776         * tests/test-remove.c (symlink): Likewise.
80777         * tests/test-rmdir.c (symlink): Likewise.
80778         * tests/test-unlink.c (symlink): Likewise.
80779         * tests/test-unlinkat.c (symlink): Likewise.
80781         symlink: new module, for Solaris 9 bug
80782         * modules/symlink: New file.
80783         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
80784         * lib/symlink.c: Likewise.
80785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
80786         * modules/unistd (Makefile.am): Substitute them.
80787         * lib/unistd.in.h (symlink): Declare replacement.
80788         * MODULES.html.sh (File system functions): Mention it.
80789         * doc/posix-functions/symlink.texi (symlink): Likewise.
80790         * modules/symlink-tests: New test.
80791         * tests/test-symlink.c: Likewise.
80793 2009-09-23  Bruno Haible  <bruno@clisp.org>
80795         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
80796         when needed.
80797         Test case: gnulib-tool --import --with-tests atexit inttypes.
80798         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
80800 2009-09-23  Bruno Haible  <bruno@clisp.org>
80802         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
80803         subcommand, not in a subshell.
80805 2009-09-22  Eric Blake  <ebb9@byu.net>
80807         unistd: sort replacement declarations
80808         * lib/unistd.in.h: Sort declarations.
80810         open, openat: minor optimization
80811         * lib/open.c (open): If open succeeded, len is non-zero.
80812         * lib/openat.c (rpl_openat): Likewise.
80814         link-follow: ensure correct result
80815         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
80816         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
80817         distinguish between possible failures.
80819 2009-09-21  Eric Blake  <ebb9@byu.net>
80821         fts: avoid compiler warning
80822         * lib/fts.c (dirent_inode_sort_may_be_useful)
80823         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
80825 2009-09-19  Bruno Haible  <bruno@clisp.org>
80827         * lib/progreloc.c (canonicalize_file_name): New declaration.
80829 2009-09-19  Eric Blake  <ebb9@byu.net>
80831         link: fix quoting
80832         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
80834         openat: fix openat bugs on Solaris 9
80835         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
80836         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
80837         * modules/openat (Depends-on): Add open.
80838         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
80839         * modules/fcntl-h (Makefile.am): Substitute it.
80840         * lib/fcntl.in.h (openat): Declare replacement.
80841         * doc/posix-functions/openat.texi (openat): Document this.
80843         openat: move fstatat and unlinkat into correct files
80844         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
80845         compiled.
80846         * lib/openat.c (fstatat, unlinkat): Move...
80847         * lib/fstatat.c (fstatat): ...into correct files.
80848         * lib/unlinkat.c (unlinkat): Likewise.
80850         openat: fix unlinkat bugs on Solaris 9
80851         * lib/unlinkat.c (unlinkat): New file.
80852         * modules/openat (Depends-on): Add unlink.
80853         (Files): Distribute it.
80854         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
80855         trailing slash behavior is broken.
80856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80857         * modules/unistd (Makefile.am): Substitute it.
80858         * lib/unistd.in.h (unlinkat): Declare replacement.
80859         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
80861         openat: fix fstatat bugs on Solaris 9
80862         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
80863         stat.
80864         * doc/posix-functions/fstatat.texi (fstatat): Document this.
80866         test-unlinkat: enhance test, to expose Solaris 9 bug
80867         * tests/test-unlink.c (main): Factor guts...
80868         * tests/test-unlink.h (test_rmdir_func): ...into new file.
80869         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
80870         * tests/test-rmdir.c (main): Adjust caller.
80871         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
80872         (unlinker): New helper function.
80873         (rmdirat): Enhance check.
80874         * modules/rmdir-tests (Depends-on): Add stdbool.
80875         * modules/unlink-tests (Depends-on): Likewise.
80876         (Files): Add test-unlink.h.
80877         * modules/openat-tests (Files): Likewise.
80878         (Depends-on): Add unlinkdir.
80880         test-fstatat: new test, to expose Solaris 9 bugs
80881         * tests/test-stat.c (main): Factor guts...
80882         * tests/test-stat.h (test_stat_func): ...into new file.
80883         * tests/test-lstat.c (main): Factor guts...
80884         * tests/test-lstat.h (test_lstat_func): ...into new file.
80885         * tests/test-fstatat.c: New file.
80886         * modules/stat-tests (Files): Add test-stat.h.
80887         * modules/lstat-tests (Files): Add test-lstat.h.
80888         (Depends-on): Add stdbool.
80889         * modules/openat-tests (Depends-on): Add pathmax.
80890         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
80891         (Makefile.am): Run new test.
80893         remove: new module, for mingw and Solaris 9 bugs
80894         * modules/remove: New file.
80895         * lib/remove.c: Likewise.
80896         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
80897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
80898         * modules/stdio (Makefile.am): Use them.
80899         * lib/stdio.in.h (remove): Declare replacement.
80900         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80901         * doc/posix-functions/remove.texi (remove): Likewise.
80902         * modules/remove-tests: New test.
80903         * tests/test-remove.c: Likewise.
80905         unlink: new module, for Solaris 9 bug
80906         * modules/unlink: New file.
80907         * lib/unlink.c: Likewise.
80908         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
80909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80910         * modules/unistd (Makefile.am): Use them.
80911         * lib/unistd.in.h (stat): Declare replacement.
80912         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80913         * doc/posix-functions/unlink.texi (unlink): Likewise.
80914         * modules/unlink-tests: New test.
80915         * tests/test-unlink.c: Likewise.
80917         lstat: fix Solaris 9 bug
80918         * lib/lstat.c (lstat): Also check for trailing slash on
80919         non-symlink, non-directories.  Use stat module to simplify logic.
80920         * doc/posix-functions/lstat.texi (lstat): Document it.
80921         * modules/lstat-tests (Depends-on): Add errno, same-inode.
80922         (configure.ac): Check for symlink.
80923         * tests/test-lstat.c (main): Add more tests.
80925         stat: add as dependency to other modules
80926         * modules/chown (Depends-on): Add stat.
80927         * modules/euidaccess (Depends-on): Likewise.
80928         * modules/fchdir (Depends-on): Likewise.
80929         * modules/isdir (Depends-on): Likewise.
80930         * modules/link (Depends-on): Likewise.
80931         * modules/lstat (Depends-on): Likewise.
80932         * modules/mkdir-p (Depends-on): Likewise.
80933         * modules/modechange (Depends-on): Likewise.
80934         * modules/open (Depends-on): Likewise.
80935         * modules/readlink (Depends-on): Likewise.
80936         * modules/same (Depends-on): Likewise.
80938         stat: fix Solaris 9 bug
80939         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
80940         slash.
80941         * lib/stat.c (rpl_stat): Work around it.
80942         * doc/posix-functions/stat.texi (stat): Update documentation.
80944         stat: new module, for mingw bug
80945         * modules/stat: New file.
80946         * lib/stat.c: Likewise.
80947         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
80948         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80949         * modules/sys_stat (Makefile.am): Use them.
80950         * lib/sys_stat.in.h (stat): Declare replacement.
80951         * lib/openat.c (fstatat): Deal with lstat and stat being function
80952         macros.
80953         * modules/openat (Depends-on): Add inline.
80954         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80955         * doc/posix-functions/stat.texi (stat): Likewise.
80956         * modules/stat-tests: New test.
80957         * tests/test-stat.c: Likewise.
80959 2009-09-19  Jim Meyering  <meyering@redhat.com>
80961         syntax-check: detect unnecessary inclusion of canonicalize.h
80962         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
80964 2009-09-19  Eric Blake  <ebb9@byu.net>
80966         canonicalize-lgpl: adjust clients to use correct header
80967         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80968         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
80969         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
80970         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
80971         * lib/progreloc.c (includes): Likewise.
80973 2009-09-19  Jim Meyering  <meyering@redhat.com>
80975         test-posixtm.c: correct a comment
80976         * tests/test-posixtm.c: Correct first-line comment.
80977         Spotted by Eric Blake.
80979 2009-09-16  Jim Meyering  <meyering@redhat.com>
80981         posixtm-tests: make T const-correct; add a test case
80982         * tests/test-posixtm.c (T): Declare const.
80983         Add a test for -(2^31+1).
80984         Remove useless can-succeed-only-in-2002 test.
80986         posixtm-tests: adjust the sole failing test
80987         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
80988         expected output matches what mktime now produces.  Cross-checked via
80989         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
80991         posixtm: move #ifdef'd tests into a new module
80992         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
80993         * tests/test-posixtm.c: ... this new file.
80994         * modules/posixtm-tests: New module.
80996 2009-09-19  Eric Blake  <ebb9@byu.net>
80998         openat: simplify use of at-func.c
80999         * lib/at-func.c (includes): Include prerequisites here, to
81000         simplify requirements on client files.
81001         * lib/openat-priv.h: Add double-inclusion guard.
81002         * lib/faccessat.c (includes): Simplify.
81003         * lib/fchmodat.c (includes): Likewise.
81004         * lib/fchownat.c (includes): Likewise.
81005         * lib/mkdirat.c (includes): Likewise.
81006         * lib/mkfifoat.c (includes): Likewise.
81007         * lib/symlinkat.c (includes): Likewise.
81009         openat: allow return of fd 0
81010         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
81011         * modules/save-cwd (Depends-on): Replace fcntl-safer with
81012         unistd-safer.
81013         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
81014         <fcntl.h>; this module does not leak fds.
81015         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
81016         must be allowed to return 0, leaving openat_safer to add the
81017         safety.
81018         (openat_permissive): Avoid writing to just-opened fd 2 if
81019         restoring the current directory fails.
81020         * lib/openat-die.c (openat_restore_fail): Add comment.
81021         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
81022         (save_cwd): Guarantee safe fd, but without use of open_safer.
81023         * tests/test-openat.c: New test.
81024         * modules/openat-tests (Files, Makefile.am): Distribute and build
81025         new file.
81027         relocatable-prog-wrapper: fix build
81028         * modules/relocatable-prog-wrapper (Files): Update name of
81029         canonicalize m4 file, broken on 2009-09-17.
81030         Reported by emad hajjar <aleppos@hotmail.com>.
81032 2009-09-19  Bruno Haible  <bruno@clisp.org>
81034         * lib/safe-alloc.h: Use the standard header with GPL copyright.
81035         * lib/safe-alloc.c: Likewise.
81036         Reported by Ian Beckwith <ianb@erislabs.net>.
81038 2009-09-18  Bruno Haible  <bruno@clisp.org>
81040         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
81041         Reported by <erobles@sensacd.com.mx>.
81043 2009-09-17  Eric Blake  <ebb9@byu.net>
81045         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
81046         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
81047         slashes when checking if last component is missing.
81048         * tests/test-canonicalize.c (main): Test this.
81050         canonicalize, canonicalize-lgpl: honor // if distinct from /
81051         * modules/canonicalize (Files): Add double-slash-root.m4.
81052         * modules/canonicalize-lgpl (Files): Likewise.
81053         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
81054         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
81055         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
81056         fallback definition.
81057         (canonicalize_filename_mode): Use it to protect //.
81058         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
81059         (__realpath): Likewise.
81060         * tests/test-canonicalize.c (main): Test this.
81061         * tests/test-canonicalize-lgpl.c (main): Likewise.
81062         * modules/canonicalize-tests (Depends-on): Add same-inode.
81063         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
81065         canonicalize-lgpl: fix glibc bug with trailing slash
81066         * m4/canonicalize-lgpl.m4: Move contents...
81067         * m4/canonicalize.m4: ...here.
81068         (gl_CANONICALIZE_LGPL): Factor realpath check...
81069         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
81070         glibc 2.3.5 bug, fixed 2005-04-27.
81071         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
81072         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
81073         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
81074         * modules/canonicalize-lgpl (Files): Manage file rename.
81075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
81076         * modules/stdlib (Makefile.am): Substitute witness.
81077         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
81078         is needed.
81079         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
81080         replacement is required.
81081         * lib/canonicalize.c (canonicalize_file_name): Likewise.
81082         * doc/glibc-functions/canonicalize_file_name.texi
81083         (canonicalize_file_name): Document this.
81084         * doc/posix-functions/realpath.texi (realpath): Likewise.
81086         canonicalize-lgpl: reject non-directory with trailing slash
81087         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
81088         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
81089         catches failures in glibc 2.3.5.
81090         * tests/test-canonicalize.c (main): Likewise.
81092         canonicalize-lgpl: use native realpath if it works
81093         * lib/canonicalize-lgpl.c (realpath): Guard with
81094         FUNC_REALPATH_WORKS.
81095         * lib/stdlib.in.h (realpath): Make declaration optional based on
81096         HAVE_REALPATH.
81097         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
81098         native realpath works.
81099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
81100         * modules/stdlib (Makefile.am): Substitute witness.
81102         canonicalize, canonicalize-lgpl: use <stdlib.h>
81103         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
81104         (Include): Mention <stdlib.h>.
81105         (configure.ac): Mention functions we provide.
81106         * modules/canonicalize (configure.ac): Likewise.
81107         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
81108         realpath if canonicalize_file_name is missing.
81109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
81110         * modules/stdlib (Makefile.am): Substitute witnesses.
81111         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
81112         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
81113         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
81114         * NEWS: Document this.
81115         * doc/glibc-functions/canonicalize_file_name.texi
81116         (canonicalize_file_name): Likewise.
81117         * doc/posix-functions/realpath.texi (realpath): Likewise.
81118         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
81120         test-canonicalize: consolidate into single C program
81121         * tests/test-canonicalize.sh: Delete; move setup into...
81122         * tests/test-canonicalize.c (main): ...the program, making it
81123         easier to run in debugger.  Add some tests.
81124         * modules/canonicalize-tests (Files): Remove unused file.
81125         (Depends-on): Add progname.
81126         (configure.ac, Makefile.am): Simplify.
81128         test-canonicalize-lgpl: consolidate into single C program
81129         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
81130         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
81131         easier to run in debugger.  Add some tests.
81132         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
81133         (configure.ac, Makefile.am): Simplify.
81135         canonicalize: avoid resolvepath
81136         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
81137         unnecessary checks.
81138         * lib/canonicalize.c (includes): Simplify.
81139         (canonicalize_file_name): Drop resolvepath implementation.
81140         * modules/canonicalize (Depends-on): Drop filenamecat.
81142         canonicalize: don't lose errno
81143         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
81144         over calls to free.
81146         canonicalize: simplify errno handling
81147         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
81148         assignment.
81150         canonicalize, canonicalize-lgpl: update module dependencies
81151         * modules/canonicalize (Depends-on): Add extensions, lstat,
81152         pathmax, stdlib.
81153         (Files): Drop pathmax.h.
81154         (configure.ac): Adjust macro name.
81155         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
81156         lstat, stdlib, sys_stat.
81157         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
81158         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
81159         extensions.
81160         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
81161         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
81162         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
81163         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
81164         declaration, if available.
81165         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
81166         we can rely on the readlink module.
81167         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
81168         (includes): Use <unistd.h> unconditionally.
81170 2009-09-17  Eric Blake  <ebb9@byu.net>
81172         maint: make Include sections of modules consistent
81173         * modules/alloca: Use only header name; no need to list #include.
81174         * modules/alloca-opt: Likewise.
81175         * modules/arpa_inet: Likewise.
81176         * modules/canon-host: Likewise.
81177         * modules/configmake: Likewise.
81178         * modules/dirent: Likewise.
81179         * modules/eealloc: Likewise.
81180         * modules/environ: Likewise.
81181         * modules/fchdir: Likewise.
81182         * modules/fcntl: Likewise.
81183         * modules/fcntl-h: Likewise.
81184         * modules/gethrxtime: Likewise.
81185         * modules/gettime: Likewise.
81186         * modules/ignore-value: Likewise.
81187         * modules/inet_ntop: Likewise.
81188         * modules/inet_pton: Likewise.
81189         * modules/inttypes: Likewise.
81190         * modules/isnand-nolibm: Likewise.
81191         * modules/isnanf-nolibm: Likewise.
81192         * modules/mbchar: Likewise.
81193         * modules/mbfile: Likewise.
81194         * modules/mbiter: Likewise.
81195         * modules/mbuiter: Likewise.
81196         * modules/netdb: Likewise.
81197         * modules/netinet_in: Likewise.
81198         * modules/nproc: Likewise.
81199         * modules/pagealign_alloc: Likewise.
81200         * modules/poll: Likewise.
81201         * modules/printf-frexp: Likewise.
81202         * modules/pthread: Likewise.
81203         * modules/putenv: Likewise.
81204         * modules/random_r: Likewise.
81205         * modules/relocatable-prog: Likewise.
81206         * modules/search: Likewise.
81207         * modules/select: Likewise.
81208         * modules/selinux-h: Likewise.
81209         * modules/settime: Likewise.
81210         * modules/signal: Likewise.
81211         * modules/size_max: Likewise.
81212         * modules/socklen: Likewise.
81213         * modules/ssize_t: Likewise.
81214         * modules/stdarg: Likewise.
81215         * modules/stdbool: Likewise.
81216         * modules/stddef: Likewise.
81217         * modules/stdint: Likewise.
81218         * modules/stdio: Likewise.
81219         * modules/stdlib: Likewise.
81220         * modules/string: Likewise.
81221         * modules/strings: Likewise.
81222         * modules/sys_file: Likewise.
81223         * modules/sys_ioctl: Likewise.
81224         * modules/sys_select: Likewise.
81225         * modules/sys_socket: Likewise.
81226         * modules/sys_stat: Likewise.
81227         * modules/sys_time: Likewise.
81228         * modules/sys_times: Likewise.
81229         * modules/sys_utsname: Likewise.
81230         * modules/sys_wait: Likewise.
81231         * modules/sysexits: Likewise.
81232         * modules/time: Likewise.
81233         * modules/times: Likewise.
81234         * modules/tmpfile: Likewise.
81235         * modules/trim: Likewise.
81236         * modules/unistd: Likewise.
81237         * modules/wchar: Likewise.
81238         * modules/wctype: Likewise.
81240 2009-09-17  Bruno Haible  <bruno@clisp.org>
81242         Make getdate.y compile on QNX and NetBSD 5 / i386.
81243         * m4/getdate.m4 (gl_GETDATE): Conditionally define
81244         TIME_T_FITS_IN_LONG_INT.
81245         * lib/getdate.y (long_time_t): New type.
81246         (relative_time): Change type of 'seconds' field to long_time_t.
81247         (get_date): Update types of local variables. Check against overflow
81248         during conversion from long_time_t to time_t.
81249         Reported by Matt Kraai <kraai@ftbfs.org>
81250         and Hasso Tepper <hasso@netbsd.org>.
81252 2009-09-17  Bruno Haible  <bruno@clisp.org>
81254         * modules/COPYING: Update copyright years.
81255         * modules/README: Likeiwse.
81256         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
81257         Reported by Ian Beckwith <ianb@erislabs.net>.
81259 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
81261         * users.txt: Update references for gnuit package.
81263 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
81265         * m4/getdelim.m4: Fix typo in copyright line.
81267 2009-09-17  Bruno Haible  <bruno@clisp.org>
81269         * lib/atoll.c: Use the standard header with GPL copyright.
81270         * lib/argz.in.h: Likewise.
81271         * lib/glob.c: Likewise.
81272         * lib/glob-libc.h: Likewise.
81273         * lib/random_r.c: Likewise.
81274         * lib/siglist.h: Likewise.
81275         * lib/strsignal.c: Likewise.
81276         Reported by Ian Beckwith <ianb@erislabs.net>.
81278 2009-09-17  Eric Blake  <ebb9@byu.net>
81280         rmdir: ensure correct dependency order
81281         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
81283 2009-09-17  Bruno Haible  <bruno@clisp.org>
81285         Disable assertion that fails on NetBSD 5 / i386.
81286         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
81287         Reported by Sam Steingold <sds@gnu.org>
81288         and Hasso Tepper <hasso@netbsd.org>.
81290 2009-09-16  Eric Blake  <ebb9@byu.net>
81292         unlinkdir: port to mingw
81293         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
81294         on which no one can unlink a directory.
81296         stdlib: sort witness names
81297         * modules/stdlib (Makefile.am): Sort replacements.
81298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
81299         * lib/stdlib.in.h: Likewise.
81301         parse-duration-tests: avoid link failure
81302         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
81303         LIBINTL.
81304         Reported by Tom G. Christensen.
81306         openat-tests: ensure unlinkat behaves like rmdir
81307         * tests/test-rmdir.c (main): Factor guts...
81308         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
81309         * modules/rmdir-tests (Files): Ship new file.
81310         * modules/openat-tests: New test.
81311         * tests/test-unlinkat.c: Likewise.
81313         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
81314         * modules/rmdir-errno (Status, Notice): Now obsolete.
81316         rmdir: work around cygwin 1.5.x and mingw bugs
81317         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
81318         * lib/rmdir.c (rmdir): Work around it.
81319         * modules/rmdir (Status, Notice): No longer obsolete.
81320         (Files): Add dos.m4.
81321         (Depends-on): Add unistd.
81322         (configure.ac): Set witnesses.
81323         (License): Relax to LGPLv2+.
81324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
81325         * modules/unistd (Makefile.am): Substitute witnesses.
81326         * lib/unistd.in.h (rmdir): Declare replacement.
81327         * doc/posix-functions/rmdir.texi (rmdir): Document this.
81328         * modules/rmdir-tests: New tests.
81329         * tests/test-rmdir.c: Likewise.
81331 2009-09-15  Eric Blake  <ebb9@byu.net>
81333         fchdir: improve use of replacement functions
81334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
81335         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
81336         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
81337         REPLACE_CLOSEDIR.
81338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
81339         * modules/sys_stat (Makefile.am): Substitute correct witness.
81340         * modules/dirent (Makefile.am): Likewise.
81341         * modules/unistd (Makefile.am): Likewise.
81342         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
81343         * lib/unistd.in.h (dup): Likewise.
81344         * lib/sys_stat.in.h (fstat): Likewise.
81346         maint: ignore gnulib-tool temp files
81347         * .gitignore: Ignore files created during gnulib-tool --test.
81349 2009-09-13  Jim Meyering  <meyering@redhat.com>
81351         posixtm: don't reject a time that specify "60" as the number of seconds
81352         * lib/posixtm.c (posixtime): The code to reject invalid dates
81353         would also reject a time specified with the .60 suffix.
81354         But POSIX allows that, in order to accommodate leap seconds.
81355         So don't reject it.
81356         (main): Adjust tests accordingly.
81357         * modules/posixtm (Depends-on): Add stpcpy.
81359 2009-09-11  Jim Meyering  <meyering@redhat.com>
81361         announce-gen: include [$release_type] in emitted Subject:
81362         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
81363         e.g., [stable] in the emitted Subject: line.
81365 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81367         Remove obsolete macros from several modules.
81368         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
81369         obsolete Autoconf macros with their modern counterparts.
81370         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
81371         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
81372         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
81373         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
81374         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
81375         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
81376         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
81377         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
81378         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
81379         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
81380         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
81381         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
81382         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
81383         * m4/sockets.m4 (gl_SOCKETS): Likewise.
81384         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
81385         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
81386         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
81387         * m4/time_r.m4 (gl_TIME_R): Likewise.
81388         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
81389         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
81390         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
81392         Fix copyright header in build-aux scripts.
81393         * build-aux/git-version-gen: Fix copyright header to match GPLv3
81394         recommendation.
81395         * build-aux/ncftpput-ftp: Likewise.
81396         * build-aux/update-copyright: Likewise.
81398 2009-09-09  Eric Blake  <ebb9@byu.net>
81400         test-link: allow Linux choice of errno
81401         * tests/test-link.c (main): Relax test for alternate error.
81403         strndup: fix improper m4 caching
81404         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
81405         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
81406         (gl_PREREQ_STRNDUP): Delete.
81407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
81408         * modules/string (Makefile.am): Substitute it.
81409         * lib/string.in.h (strndup): Modernize prototype.
81411         getcwd: port to mingw
81412         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
81413         different from the POSIX assumptions made throughout the getcwd
81414         module; fortunately, the mingw getcwd does not need replacement.
81415         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
81416         * modules/getcwd-tests: New test.
81417         * tests/test-getcwd.c: Likewise.
81419         link: fix platform bugs
81420         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
81421         * lib/link.c (link): Work around them.  Fix related mingw bug.
81422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
81423         * modules/unistd (Makefile.am): Substitute it.
81424         * lib/unistd.in.h (link): Declare replacement.
81425         * doc/posix-functions/link.texi (link): Document this.
81426         * modules/link (Depends-on): Add strdup-posix, sys_stat.
81428         test-link: consolidate into single C program, test more cases
81429         * tests/test-link.sh: Delete.
81430         * tests/test-link.c: Test more error conditions.  Exposes bugs on
81431         at least Cygwin and Solaris.
81432         * modules/link-tests (Files): Remove unused file.
81433         (Depends-on): Add errno, sys_stat.
81434         (Makefile.am): Simplify.
81436 2009-09-08  Bruno Haible  <bruno@clisp.org>
81438         Work around towlower, towupper bug on mingw.
81439         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
81440         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
81441         * doc/posix-functions/towlower.texi: Mention the mingw bug.
81442         * doc/posix-functions/towupper.texi: Likewise.
81443         Reported by Eric Blake.
81445 2009-09-08  Jim Meyering  <meyering@redhat.com>
81447         build: don't try to run autoheader if we don't use it
81448         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
81449         is not used in configure.ac.
81451 2009-09-08  Eric Blake  <ebb9@byu.net>
81453         euidaccess: fix compilation error
81454         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
81456         rawmemchr: relax license
81457         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
81458         okay.
81459         Reported by Jim Meyering.
81461         mkfifoat: new module
81462         * modules/mkfifoat: New file.
81463         * lib/mkfifoat.c: Likewise.
81464         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
81465         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
81466         * modules/sys_stat (Makefile.am): Use them.
81467         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
81468         * MODULES.html.sh (File system functions): Mention module.
81469         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
81470         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
81471         * modules/mkfifoat-tests: New test.
81472         * tests/test-mkfifoat.c: Likewise.
81474         strchrnul: relax license
81475         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
81476         okay.
81477         Reported by Jim Meyering.
81479 2009-09-08  Eric Blake  <ebb9@byu.net>
81481         fstatat: fix compilation on Solaris
81482         * lib/fstatat.c (includes): Add fcntl.h.
81483         Reported by Pádraig Brady.
81485 2009-09-07  Eric Blake  <ebb9@byu.net>
81487         rename: modernize replacement
81488         * modules/rename (Depends-on): Add stdio.
81489         (configure.ac): Declare witness.
81490         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
81491         stdio take care of replacement.
81492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
81493         * modules/stdio (Makefile.am): Substitute them.
81494         * lib/stdio.in.h (rename): Declare replacement.
81495         * lib/rename.c (includes): Allow cross-compilation to non-windows
81496         machines.
81497         * doc/posix-functions/rename.texi (rename): Improve
81498         documentation.
81500         stdio: sort witness names
81501         * modules/stdio (Makefile.am): Sort replacements.
81502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
81503         * lib/stdio.in.h: Likewise.
81505         getcwd: minor cleanups
81506         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
81507         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
81509         openat: provide more convenience names
81510         * modules/faccessat (configure.ac): Add C witness.
81511         * lib/unistd.in.h (readlinkat): Fix typo.
81512         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
81513         convenience wrappers.
81514         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
81515         wrappers in syntax checks.
81517 2009-09-06  Eric Blake  <ebb9@byu.net>
81519         doc: fix comments in recent patches
81520         * lib/faccessat.c: Mention correct function.
81521         * lib/fchmodat.c: Likewise.
81522         * lib/fchownat.c: Likewise.
81523         * lib/symlinkat.c: Likewise.
81524         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
81525         constants.
81527         faccessat, symlinkat: continue cleanup of previous patch
81528         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
81529         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
81530         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
81531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
81532         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
81533         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
81534         set.
81536 2009-09-06  Bruno Haible  <bruno@clisp.org>
81538         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
81539         (fstatat): Declare if GNULIB_FSTATAT is set.
81540         (mkdirat): Declare if GNULIB_MKDIRAT is set.
81541         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
81542         (unlinkat): Declare if GNULIB_UNLINKAT is set.
81543         * modules/fcntl-h (Files): Remove m4/openat.m4.
81544         * modules/sys_stat (Files): Remove m4/openat.m4.
81545         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
81546         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
81547         * modules/unistd (Files): Remove m4/openat.m4.
81548         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
81549         GNULIB_OPENAT.
81550         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
81551         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
81552         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
81553         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
81554         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
81555         gl_OPENAT_DEFAULTS.
81556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
81557         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
81558         Don't require gl_OPENAT_DEFAULTS.
81559         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
81560         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
81561         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
81562         (gl_OPENAT_DEFAULTS): Remove macro.
81564 2009-09-06  Bruno Haible  <bruno@clisp.org>
81566         * modules/openat (configure.ac): Remove unneeded witness.
81568 2009-09-06  Bruno Haible  <bruno@clisp.org>
81570         Set errno to ENOSYS when a function is entirely unsupported.
81571         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
81572         EOPNOTSUPP.
81573         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
81574         * modules/chown (Depends-on): Remove errno.
81576 2009-09-06  Bruno Haible  <bruno@clisp.org>
81578         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
81580 2009-09-06  Bruno Haible  <bruno@clisp.org>
81582         * lib/sys_stat.in.h: Fix preprocessor command indentation.
81584 2009-09-06  Ben Pfaff  <blp@gnu.org>
81585             Bruno Haible  <bruno@clisp.org>
81587         Work around a glibc bug in strtok_r.
81588         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
81589         Undefine if UNDEFINE_STRTOK_R is set.
81590         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
81591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81592         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
81593         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
81594         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
81595         UNDEFINE_STRTOK_R.
81596         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
81598 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
81600         exclude: minor fix
81601         * lib/exclude.c: Include wctype.h
81603 2009-09-06  Akim Demaille  <demaille@gostai.com>
81605         bootstrap: improve error message
81606         * build-aux/bootstrap (find_tool): Upon failure, report the list
81607         of candidates.
81608         Honor the initial value of the envvar.
81610 2009-09-05  Eric Blake  <ebb9@byu.net>
81612         symlinkat: new module
81613         * modules/symlinkat: New file.
81614         * lib/symlinkat.c: Likewise.
81615         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
81616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
81617         * modules/unistd (Makefile.am): Use them.
81618         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
81619         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
81620         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
81621         * MODULES.html.sh (File system functions): Mention module.
81622         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
81623         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
81624         * modules/symlinkat-tests: New test.
81625         * tests/test-symlinkat.c: Likewise.
81627         test-openat-safer: add more checks
81628         * tests/test-openat-safer.c (main): Check more code paths.
81630 2009-09-05  Jim Meyering  <meyering@redhat.com>
81632         syntax-check: detect unnecessary inclusion of openat.h
81633         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
81635 2009-09-05  Bruno Haible  <bruno@clisp.org>
81637         Support towlower, towupper.
81638         * doc/posix-functions/towlower.texi: Mention module wctype.
81639         * doc/posix-functions/towupper.texi: Likewise.
81640         * lib/wctype.in.h (towlower, towupper): New functions.
81641         * tests/test-wctype.c: Include stdio.h, stdlib.h.
81642         (ASSERT): New macro.
81643         (e): New variable.
81644         (main): Test also towlower, towupper. Test WEOF argument.
81645         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81647 2009-09-05  Bruno Haible  <bruno@clisp.org>
81649         Fix conversion behaviour when the input is invalid.
81650         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
81651         mark occurring in first pass of indirect conversion.
81652         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
81653         input.
81654         Found by clang's static analyzer.
81656 2009-09-05  Bruno Haible  <bruno@clisp.org>
81658         * tests/test-striconveh.c (main): Test indirect conversion on platforms
81659         where direct conversion is possible.
81661 2009-09-04  Eric Blake  <ebb9@byu.net>
81663         openat: fail with ENOENT on empty name
81664         * lib/openat-proc.c (openat_proc_name): Special-case the empty
81665         buffer.
81667         link-follow: fix logic bug in prior patch
81668         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
81669         reversed sense of yes and no in prior patch.  Avoid confusing
81670         compilation failure with desired semantics.
81672         link-follow: accommodate mingw and cross-compilation
81673         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
81674         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
81675         cross-compilation results to -1, to make linkat easier to
81676         implement when cross-compiling.  Trivially support mingw.
81677         * modules/link-follow (configure.ac): Call new name.
81678         * NEWS: Mention this.
81680 2009-09-03  Eric Blake  <ebb9@byu.net>
81682         faccessat: compile replacement
81683         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
81684         needed.
81686         fts: fix compilation error
81687         * lib/fts.c (includes): Re-add "openat.h", for
81688         openat_needs_fchdir.
81690         faccessat: new module
81691         * modules/faccessat: New file.
81692         * lib/faccessat.c: Likewise.
81693         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
81694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81695         * modules/unistd (Makefile.am): Use it.
81696         * lib/unistd.in.h (faccessat): Declare it.
81697         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
81698         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
81699         * MODULES.html.sh (File system functions): Mention it.
81700         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
81701         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
81703         euidaccess: prefer POSIX over non-standard implementation
81704         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
81705         * lib/euidaccess.c (euidaccess): Use it if available.
81707         openat: make template easier to use
81708         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
81709         AT_FUNC_F2 to be undefined.
81710         (VALIDATE_FLAG): New macro; use it to reject bad flags.
81711         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
81712         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
81713         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
81714         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
81715         Likewise.
81716         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
81717         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
81718         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
81719         Likewise.
81721         openat: declare in POSIX headers
81722         * NEWS: Mention this.
81723         * modules/openat (configure.ac): Declare witnesses.
81724         (Depends-on): Add fcntl-h, sys_stat, unistd.
81725         (Include): Mention correct headers.
81726         * modules/fcntl-h (Depends-on): Add link-warning.
81727         (Files): Add openat.m4.
81728         (Makefile.am): Substitute witnesses.
81729         * modules/sys_stat (Files, Makefile.am): Likewise.
81730         * modules/unistd (Files, Makefile.am): Likewise.
81731         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
81732         (gl_OPENAT_DEFAULTS): New macro.
81733         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
81734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
81735         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
81736         (SYS_STAT_H): Remove unused variable.
81737         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
81738         * lib/fcntl--.h (includes): Remove unneeded header.
81739         * lib/openat-safer.c (includes): Likewise.
81740         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
81741         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
81742         appropriate headers.
81743         (__OPENAT_PREFIX): Delete.
81744         * lib/fcntl.in.h (openat): Provide declaration.
81745         (AT_FDCWD): Fix Solaris bug.
81746         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
81747         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
81748         * lib/fchmodat.c (includes):  Adjust to find declaration.
81749         * lib/fchownat.c (includes): Likewise.
81750         * lib/mkdirat.c (includes): Likewise.
81751         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
81752         still visible.
81754 2009-09-02  Eric Blake  <ebb9@byu.net>
81756         errno: use consistently
81757         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
81758         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
81759         * lib/canonicalize.c (ELOOP): Likewise.
81760         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
81761         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
81762         * lib/lchown.c (EOPNOTSUPP): Likewise.
81763         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
81764         * lib/savewd.c (ESTALE): Likewise.
81765         * lib/settime.c (ENOSYS): Likewise.
81766         * lib/utimens.c (ENOSYS): Likewise.
81767         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
81768         * lib/chdir-safer.c (ELOOP): Likewise.
81769         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
81770         * modules/c-stack (Depends-on): Add errno.
81771         * modules/canonicalize (Depends-on): Likewise.
81772         * modules/chdir-safer (Depends-on): Likewise.
81773         * modules/fdopendir (Depends-on): Likewise.
81774         * modules/inet_ntop (Depends-on): Likewise.
81775         * modules/inet_pton (Depends-on): Likewise.
81776         * modules/lchown (Depends-on): Likewise.
81777         * modules/openat (Depends-on): Likewise.
81778         * modules/savewd (Depends-on): Likewise.
81779         * modules/settime (Depends-on): Likewise.
81780         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
81782         fts: avoid leaking fds
81783         * modules/fts (Depends-on): Add cloexec.
81784         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
81785         flag.
81787         fts: make directory fds more robust
81788         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
81789         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
81791         backupfile, chdir-long, fts, savedir: make safer
81792         * lib/backupfile.c (includes): Use "dirent--.h", since
81793         numbered_backup can write to stderr during readdir.
81794         * lib/savedir.c (includes): Likewise.
81795         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
81796         emulation can write to stderr on failure.
81797         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
81798         * lib/getcwd.c: Document why opendir_safer is unused.
81799         * lib/glob.c: Likewise.
81800         * lib/scandir.c: Likewise.
81801         * lib/openat-proc.c: Likewise, for open_safer.
81802         * modules/backupfile (Depends-on): Add dirent-safer.
81803         * modules/savedir (Depends-on): Likewise.
81804         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
81805         * modules/chdir-long (Depends-on): Add openat-safer.
81807         openat-safer: new module
81808         * modules/openat-safer: New file.
81809         * lib/openat-safer.c: Likewise.
81810         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
81811         * lib/fcntl-safer.h (openat_safer): Declare.
81812         * lib/fcntl--.h (openat): Override.
81813         * MODULES.html.sh (File descriptor based I/O): Mention it.
81814         * lib/openat.h: Add double-inclusion guards.
81815         * lib/openat.c (includes): Only include "fcntl-safer.h", not
81816         "fcntl--.h", so we can implement openat.
81817         * modules/openat-safer-tests: New test.
81818         * tests/test-openat-safer.c: New file.
81820         dirent-safer: new module
81821         * modules/dirent-safer: New file.
81822         * lib/dirent--.h: Likewise.
81823         * lib/dirent-safer.h: Likewise.
81824         * lib/opendir-safer.c: Likewise.
81825         * m4/dirent-safer.m4: Likewise.
81826         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
81827         * modules/dirent-safer-tests: New test.
81828         * tests/test-dirent-safer.c: New file.
81829         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
81831         fdopendir: optimize on mingw
81832         * lib/unistd.in.h (_gl_directory_name): New prototype.
81833         * lib/fchdir.c (_gl_directory_name): Implement it.
81834         (fchdir): Use it to simplify implementation.
81835         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
81836         fchdir, when available, to avoid calling [f]chdir().
81838         fdopendir: split into its own module
81839         * lib/openat.c (fdopendir): Move...
81840         * lib/fdopendir.c: ...into new file.
81841         * modules/fdopendir: New module.
81842         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
81843         * modules/openat (Depends-on): Add fdopendir.
81844         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
81845         fdopendir here.
81846         * modules/savedir (Depends-on): Only need fdopendir, not full
81847         openat.
81848         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
81849         * lib/openat.h (fdopendir): Drop prototype.
81850         * lib/dirent.in.h (fdopendir): Provide prototype.
81851         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
81852         * modules/dirent (Makefile.am): Substitute them.
81853         * MODULES.html.sh (File system functions): Mention it.
81854         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
81855         * modules/fdopendir-tests: New file.
81856         * tests/test-fdopendir.c: Likewise.
81858         fchdir: use more consistent macro convention
81859         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
81860         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
81861         REPLACE_FCHDIR, rather than relying on config.h macros.
81862         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
81863         inside a single make-time REPLACE_FCHDIR block, rather than using
81864         the config.h FCHDIR_REPLACEMENT.
81865         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
81866         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
81867         Manage fstat replacement.
81868         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
81869         REPLACE_FCHDIR.
81870         * modules/sys_stat (Files): Add m4/unistd_h.m4.
81871         (Makefile.am): Substitute REPLACE_FCHDIR.
81872         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
81873         FCHDIR_REPLACEMENT.
81874         * lib/dup-safer.c (dup_safer): Likewise.
81875         * lib/dup2.c (rpl_dup2): Likewise.
81876         * lib/dup3.c (rpl_dup3): Likewise.
81877         * lib/open.c (rpl_open): Likewise.
81879         fchdir: simplify error handling, and support dup3
81880         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
81881         stdbool, malloc-posix, realloc-posix.
81882         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
81883         (ensure_dirs_slot): Return false on allocation failure.
81884         (rpl_dup2): Delete.
81885         (_gl_register_dup): New function.
81886         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
81887         (_gl_register_fd): Close fd on allocation failure.
81888         * lib/fcntl.in.h (_gl_register_fd): Update signature.
81889         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
81890         prototype.
81891         (rpl_dup2_fchdir): Delete prototype.
81892         * lib/open.c (open): Update caller.
81893         * lib/dup2.c (dup2): Track fchdir metadata.
81894         * lib/dup3.c (dup3): Likewise.
81895         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
81896         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
81898 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81900         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
81901         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
81902         don't pass arguments to AC_OUTPUT.
81904 2009-09-02  Bruno Haible  <bruno@clisp.org>
81906         * modules/mkdtemp (License): Relicense under LGPLv2+.
81907         Reported by Paolo Bonzini.
81909 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81911         Replace uses of obsolete autoconf macros in Jim's modules.
81912         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
81913         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
81914         can evoke a warning from autoconf when run with -Wobsolete
81915         enabled.  They were declared obsolete for good reasons (see
81916         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
81917         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
81918         should not continue using the deprecated macros.
81919         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
81920         obsolete Autoconf macros with modern counterparts.
81921         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81922         * m4/dos.m4 (gl_AC_DOS): Likewise.
81923         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
81924         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
81925         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
81926         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
81927         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
81928         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
81929         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
81930         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
81931         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
81932         Likewise.
81933         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
81934         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81935         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
81936         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
81937         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
81938         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81940 2009-09-01  Eric Blake  <ebb9@byu.net>
81942         fchdir: fix off-by-one bug in previous patch
81943         * lib/fchdir.c (rpl_fstat): Use correct bounds.
81944         (_gl_unregister_fd): Delete useless if.
81946 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
81948         maint.mk: sort the list of syntax-check rules
81949         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
81950         easier to get a sense of progress when the rules are run sequentially
81951         and take a long time.
81953 2009-09-01  Simon Josefsson  <simon@josefsson.org>
81955         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
81956         * modules/netinet_in: Likewise.
81957         * modules/sys_file: Likewise.
81958         * modules/sys_ioctl: Likewise.
81959         * modules/sys_select: Likewise.
81960         * modules/sys_socket: Likewise.
81961         * modules/sys_stat: Likewise.
81962         * modules/sys_time: Likewise.
81963         * modules/sys_times: Likewise.
81964         * modules/sys_utsname: Likewise.
81965         * modules/sys_wait: Likewise.
81967 2009-09-01  Jim Meyering  <meyering@redhat.com>
81969         fts: help ensure that return values are not ignored
81970         * lib/fts_.h (__GNUC_PREREQ): Define.
81971         (__attribute_warn_unused_result__): Define.
81972         (fts_children, fts_close, fts_open, fts_read): Declare with
81973         __attribute_warn_unused_result__.
81975         fts: fts_close now fails also when closing a dir file descriptor fails
81976         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
81977         and propagate to caller, along with errno.
81979         announce-gen: correct formatting in --help output
81980         * build-aux/announce-gen (usage): Move the one-line description in
81981         --help output "up", to where it belongs, just after Usage:.
81983 2009-08-31  Eric Blake  <ebb9@byu.net>
81985         fchdir: port to mingw
81986         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
81987         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
81988         opened, then use a substitute.
81989         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
81990         replacement.
81991         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
81992         (_gl_register_fd): No need to check stat if open already filters
81993         all directories.
81994         (fchdir): Fix error condition to match POSIX.
81995         * modules/fchdir (Depends-on): Add sys_stat.
81996         * doc/posix-functions/open.texi (open): Document the limitation.
81997         * modules/fchdir-tests: New file.
81998         * tests/test-fchdir.c: Likewise.
82000         canonicalize: allow cross-testing from cygwin to mingw
82001         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
82002         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
82003         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
82004         Likewise.
82005         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
82006         target does not support symlinks.
82007         * tests/test-canonicalize-lgpl.sh: Likewise.
82009         chown: avoid compilation warning on mingw
82010         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
82011         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
82012         mingw.
82013         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
82014         * modules/chown (Depends-on): Add errno.
82016 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
82018         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
82019         command.
82021 2009-08-31  Jim Meyering  <meyering@redhat.com>
82023         canonicalize: remove useless initialization
82024         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
82025         initialization of local, "end".
82027 2009-08-30  Bruno Haible  <bruno@clisp.org>
82029         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
82030         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
82031         ENOSYS.
82033 2009-08-30  Bruno Haible  <bruno@clisp.org>
82035         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
82036         /usr/xpg4/bin/tr when it exists.
82037         * tests/test-pipe-filter-gi1.sh: Likewise.
82039 2009-08-30  Bruno Haible  <bruno@clisp.org>
82041         Work around deficient /usr/bin/id program on Solaris.
82042         * tests/test-file-has-acl.sh (ID): New variable.
82043         * tests/test-set-mode-acl.sh (ID): Likewise.
82044         * tests/test-copy-acl.sh (ID): Likewise.
82045         * tests/test-copy-file.sh (ID): Likewise.
82047 2009-08-30  Bruno Haible  <bruno@clisp.org>
82049         New module 'xstriconveh'.
82050         * lib/xstriconveh.h: New file.
82051         * lib/xstriconveh.c: New file.
82052         * modules/xstriconveh: New file.
82054 2009-08-30  Bruno Haible  <bruno@clisp.org>
82056         Make it easier to use mem_cd_iconveh.
82057         * lib/striconveh.h (iconveh_t): New type.
82058         (iconveh_open, iconveh_close): New declarations.
82059         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
82060         with a single 'const iconveh_t *' argument.
82061         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
82062         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
82063         with a single 'const iconveh_t *' argument.
82064         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
82065         * tests/test-striconveh.c (main): Update.
82066         * NEWS: Mention the change.
82068 2009-08-30  Bruno Haible  <bruno@clisp.org>
82070         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
82071         problem.
82073 2009-08-30  Bruno Haible  <bruno@clisp.org>
82075         Work around iconv_open problem on Solaris.
82076         * lib/iconv_open-solaris.gperf: New file.
82077         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
82078         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
82079         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
82080         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
82081         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
82082         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
82084 2009-08-29  Jim Meyering  <meyering@redhat.com>
82086         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
82087         * top/maint.mk (cvs-check): Remove target; it was just an alias
82088         to the better-named vc-diff-check.
82089         (maintainer-distcheck): Remove rule.  It was used only from
82090         the (alpha/beta/major) target, and all of its commands but one
82091         were coreutils-specific.
82092         (vc-dist): Remove rule.
82093         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
82094         Run vc-diff-check, not vc-dist.
82095         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
82097 2009-08-27  Bruno Haible  <bruno@clisp.org>
82099         * tests/test-bitrotate.c (main): Remove test that uses a shift count
82100         of 0.
82102 2009-08-27  Bruno Haible  <bruno@clisp.org>
82104         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
82105         compilers.
82106         * doc/func.texi: Document the SunPRO C bug.
82108 2009-08-27  Bruno Haible  <bruno@clisp.org>
82110         Fix link error on Solaris.
82111         * tests/test-parse-duration.c (xstrdup): Remove function.
82113 2009-08-26  Pádraig Brady  <P@draigbrady.com>
82115         ignore-value: handle pointer types, too
82116         * lib/ignore-value.h (__attribute__): Remove definition.
82117         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
82118         of a more concise and more-often effective "(void) i" statement.
82119         (ignore_ptr): New function to suppress warnings from functions that
82120         return pointers, and to make it explicit that one function doesn't
82121         handle all cases.
82123 2009-08-25  Bruno Haible  <bruno@clisp.org>
82125         dup2: work around a Linux bug.
82126         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
82127         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
82128         * doc/posix-functions/dup2.texi: Mention the Linux bug.
82129         Reported by Simon Josefsson.
82131 2009-08-25  Jim Meyering  <meyering@redhat.com>
82133         libguestfs uses gnulib
82134         * users.txt: Add libguestfs.
82136 2009-08-24  Eric Blake  <ebb9@byu.net>
82138         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
82139         * lib/pipe2.c (includes): Add binary-io.h.
82140         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
82142 2009-08-24  Bruno Haible  <bruno@clisp.org>
82144         Tolerate declared but missing accept4 syscall.
82145         * lib/accept4.c (accept4): Invoke original accept4 function first, if
82146         available.
82147         * lib/sys_socket.in.h (accept4): If the function is already present,
82148         override it.
82149         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
82150         * modules/accept4 (Makefile.am): Compile accept4.c always.
82151         Reported by Paolo Bonzini and Eric Blake.
82153 2009-08-23  Bruno Haible  <bruno@clisp.org>
82155         New module 'accept4'.
82156         * lib/sys_socket.in.h (accept4): New declaration.
82157         * lib/accept4.c: New file.
82158         * m4/accept4.m4: New file.
82159         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
82160         GNULIB_ACCEPT4, HAVE_ACCEPT4.
82161         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
82162         HAVE_ACCEPT4.
82163         * modules/accept4: New file.
82164         * doc/glibc-functions/accept4.texi: Mention the new module.
82166 2009-08-24  Jim Meyering  <meyering@redhat.com>
82168         progname: also set global program_invocation_name, when possible
82169         Before this change, a libtool-enabled program that calls glibc's
82170         error function would report the program name as
82171         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
82172         * modules/progname (configure.ac): Check for a declaration of
82173         program_invocation_name.
82174         * lib/progname.c:  Include <errno.h>.
82175         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
82176         Set program_invocation_name.
82178 2009-08-23  Bruno Haible  <bruno@clisp.org>
82180         * lib/dup3.c: Include <string.h>.
82182 2009-08-23  Bruno Haible  <bruno@clisp.org>
82184         * lib/dup3.c (dup3): Test only once whether the system actually exists.
82185         * lib/pipe2.c (pipe2): Likewise.
82186         Suggested by Eric Blake.
82188 2009-08-23  Bruno Haible  <bruno@clisp.org>
82190         Tolerate declared but missing dup3 syscall.
82191         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
82192         * lib/unistd.in.h (dup3): If the function is already present,
82193         override it.
82194         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
82195         * modules/dup3 (Makefile.am): Compile dup3.c always.
82196         Reported by Paolo Bonzini.
82198 2009-08-23  Bruno Haible  <bruno@clisp.org>
82200         Tolerate declared but missing pipe2 syscall.
82201         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
82202         available.
82203         * lib/unistd.in.h (pipe2): If the function is already present,
82204         override it.
82205         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
82206         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
82207         Reported by Paolo Bonzini.
82209 2009-08-23  Bruno Haible  <bruno@clisp.org>
82211         * lib/pipe2.c (pipe2): Move #ifs inside function.
82213 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
82215         quotearg: document limitations of quote_these_too
82216         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
82217         those limitations are created.
82218         * lib/quotearg.h (set_char_quoting): Document that digits and
82219         letters that are special after backslash are not permitted.
82220         (quotearg_char): Cross-reference set_char_quoting documentation.
82222 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
82224         quotearg: implement custom_quoting_style
82225         * lib/quotearg.c: (struct quoting_options): Add left_quote and
82226         right_quote fields.
82227         (set_custom_quoting): New public function.
82228         (quotearg_buffer_restyled): Add left_quote and right_quote
82229         arguments, handle them very much like locale quoting, and update
82230         all uses.
82231         (quotearg_n_custom): New public function.
82232         (quotearg_n_custom_mem): New public function.
82233         (quotearg_custom): New public function.
82234         (quotearg_custom_mem): New public function.
82235         * lib/quotearg.h: Prototype and document new public functions.
82236         (enum quoting_style): For escape_quoting_style and
82237         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
82238         ignored even though they're otherwise like c_quoting_style.
82239         Add custom_quoting_style member and document with comparison to
82240         clocale_quoting_style.
82241         * tests/test-quotearg.c (custom_quotes): New array.
82242         (custom_results): New array.
82243         (main): Extend to test custom quoting.
82245 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
82247         quotearg: fix right quote escaping when it's in quote_these_too
82248         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
82249         quote, be sure to prepend only one backslash.
82250         * tests/test-quotearg.c (use_quote_double_quotes): New function.
82251         (main): Test it.
82253 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
82255         quotearg-tests: test escaping of embedded locale quotes
82256         * tests/test-quotearg.c (struct result_strings): Add member for
82257         new input.
82258         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
82259         (inputs): Add new input.
82260         (results_g): Add expected results.
82261         (flag_results): Likewise.
82262         (locale_results): Likewise.
82263         (compare_strings): Check those.
82265 2009-08-23  Bruno Haible  <bruno@clisp.org>
82267         Tests for module 'dup3'.
82268         * modules/dup3-tests: New file.
82269         * tests/test-dup3.c: New file.
82271         New module 'dup3'.
82272         * lib/unistd.in.h (dup3): New declaration.
82273         * lib/dup3.c: New file.
82274         * m4/dup3.m4: New file.
82275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
82276         HAVE_DUP3.
82277         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
82278         * modules/dup3: New file.
82279         * doc/glibc-functions/dup3.texi: Mention the new module.
82281 2009-08-23  Bruno Haible  <bruno@clisp.org>
82283         Tweak the dup2 test.
82284         * tests/test-dup2.c (main): Create the test file empty. Verify that an
82285         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
82286         the test file is still empty. Fix argument order of lseek.
82288 2009-08-23  Bruno Haible  <bruno@clisp.org>
82290         Avoid test link errors when the modules getopt-gnu, gettext are used.
82291         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
82292         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82294 2009-08-23  Bruno Haible  <bruno@clisp.org>
82296         Fix getdtablesize() on mingw.
82297         * lib/getdtablesize.c (getdtablesize): Implement differently.
82298         * lib/unistd.in.h (getdtablesize): Improve comment.
82300 2009-08-23  Bruno Haible  <bruno@clisp.org>
82302         New module 'mkostemp'.
82303         Based on Ulrich Drepper's 2007-08-10 change in glibc.
82304         * lib/stdlib.in.h (mksotemp): New declaration.
82305         * lib/mkostemp.c: New file, from glibc with modifications.
82306         * lib/tempname.h (GT_FILE): Remove outdated comment.
82307         (gen_tempname): Add flags argument.
82308         * lib/tempname.c (__GT_BIGFILE): Remove macro.
82309         (__GT_FILE): Map to 1.
82310         (small_open, large_open): Remove macros.
82311         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
82312         * lib/mkstemp.c (mkstemp): Update.
82313         * lib/mkdtemp.c (mkdtemp): Likewise.
82314         * m4/mkostemp.m4: New file.
82315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
82316         HAVE_MKOSTEMP.
82317         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
82318         HAVE_MKOSTEMP.
82319         * modules/mkostemp: New file, based on modules/mkstemp.
82320         * doc/glibc-functions/mkostemp.texi: Mention the new module.
82321         * NEWS: Mention the change.
82323 2009-08-23  Bruno Haible  <bruno@clisp.org>
82325         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
82326         Reported by Eric Blake.
82328 2009-08-23  Bruno Haible  <bruno@clisp.org>
82330         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
82331         Reported by Eric Blake.
82333 2009-08-23  Bruno Haible  <bruno@clisp.org>
82335         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
82336         * modules/pipe2 (Depends-on): Likewise.
82338 2009-08-23  Eric Blake  <ebb9@byu.net>
82340         fcntl-h: add O_TTY_INIT support
82341         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
82342         * tests/test-fcntl-h.c (o): Test it.
82343         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
82345         fcntl-h: rename from fcntl, in preparation for fcntl(2)
82346         * modules/fcntl: Move <fcntl.h> header replacement...
82347         * modules/fcntl-h: ...to new name, so as not to collide with
82348         like-named function.
82349         * tests/test-fcntl.c: Rename...
82350         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
82351         * modules/fcntl-tests: Rename...
82352         * modules/fcntl-h-tests: ...to this.  Update test file name.
82353         * modules/chdir-long (Depends-on): Update clients.
82354         * modules/chdir-safer (Depends-on): Likewise.
82355         * modules/fcntl-safer (Depends-on): Likewise.
82356         * modules/fts (Depends-on): Likewise.
82357         * modules/mkancesdirs (Depends-on): Likewise.
82358         * modules/mkdir-p (Depends-on): Likewise.
82359         * modules/open (Depends-on): Likewise.
82360         * modules/savewd (Depends-on): Likewise.
82361         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
82362         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
82364 2009-08-22  Bruno Haible  <bruno@clisp.org>
82366         * modules/binary-io (License): Relicense under LGPL.
82367         * modules/pipe2 (License): Likewise.
82369 2009-08-22  Bruno Haible  <bruno@clisp.org>
82371         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
82372         return value.
82373         * lib/pipe-filter-gi.c (filter_init): Likewise.
82374         Reported by Eric Blake.
82376 2009-08-22  Bruno Haible  <bruno@clisp.org>
82378         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
82379         * modules/pipe (Depends-on): Add pipe2.
82381 2009-08-22  Bruno Haible  <bruno@clisp.org>
82383         Tests for module 'pipe2'.
82384         * modules/pipe2-tests: New file.
82385         * tests/test-pipe2.c: New file.
82387         New module 'pipe2'.
82388         * lib/unistd.in.h (pipe2): New declaration.
82389         * lib/pipe2.c: New file.
82390         * m4/pipe2.m4: New file.
82391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
82392         HAVE_PIPE2.
82393         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
82394         * modules/pipe2: New file.
82395         * doc/glibc-functions/pipe2.texi: Mention the new module.
82397 2009-08-22  Bruno Haible  <bruno@clisp.org>
82399         Reference some new glibc functions.
82400         * doc/glibc-functions/accept4.texi: New file.
82401         * doc/glibc-functions/dup3.texi: New file.
82402         * doc/glibc-functions/mkostemp.texi: New file.
82403         * doc/glibc-functions/pipe2.texi: New file.
82404         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
82405         (Glibc sys/socket.h): Refer to accept4.
82406         (Glibc unistd.h): Refer to dup3, pipe2.
82407         Reported by Eric Blake.
82409 2009-08-22  Jim Meyering  <meyering@redhat.com>
82410             Bruno Haible  <bruno@clisp.org>
82412         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
82413         This makes it so packages using automake-1.11's silent-rules option
82414         can print e.g., a single "GEN    configmake.h" line, rather than
82415         the 30+ statements that perform the job.  If you want to see the
82416         actual commands, you can still run "make V=1".
82417         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
82418         so that make output is abbreviated when those variables are defined
82419         appropriately.
82420         * modules/argz: Likewise.
82421         * modules/arpa_inet: Likewise.
82422         * modules/byteswap: Likewise.
82423         * modules/configmake: Likewise.
82424         * modules/dirent: Likewise.
82425         * modules/errno: Likewise.
82426         * modules/fcntl: Likewise.
82427         * modules/float: Likewise.
82428         * modules/fnmatch: Likewise.
82429         * modules/getopt-posix: Likewise.
82430         * modules/glob: Likewise.
82431         * modules/iconv_open: Likewise.
82432         * modules/inttypes: Likewise.
82433         * modules/localcharset: Likewise.
82434         * modules/locale: Likewise.
82435         * modules/math: Likewise.
82436         * modules/netdb: Likewise.
82437         * modules/netinet_in: Likewise.
82438         * modules/poll: Likewise.
82439         * modules/posix_spawnp-tests: Likewise.
82440         * modules/sched: Likewise.
82441         * modules/search: Likewise.
82442         * modules/selinux-h: Likewise.
82443         * modules/signal: Likewise.
82444         * modules/spawn: Likewise.
82445         * modules/stdarg: Likewise.
82446         * modules/stdbool: Likewise.
82447         * modules/stddef: Likewise.
82448         * modules/stdint: Likewise.
82449         * modules/stdio: Likewise.
82450         * modules/stdlib: Likewise.
82451         * modules/string: Likewise.
82452         * modules/strings: Likewise.
82453         * modules/sys_file: Likewise.
82454         * modules/sys_ioctl: Likewise.
82455         * modules/sys_select: Likewise.
82456         * modules/sys_socket: Likewise.
82457         * modules/sys_stat: Likewise.
82458         * modules/sys_time: Likewise.
82459         * modules/sys_times: Likewise.
82460         * modules/sys_utsname: Likewise.
82461         * modules/sys_wait: Likewise.
82462         * modules/sysexits: Likewise.
82463         * modules/time: Likewise.
82464         * modules/unistd: Likewise.
82465         * modules/wchar: Likewise.
82466         * modules/wctype: Likewise.
82468 2009-08-22  Jim Meyering  <meyering@redhat.com>
82470         announce-gen: detect write failure
82471         * build-aux/announce-gen: Add Coda at end.
82472         Remove equivalent-but-more-verbose block at top.
82474 2009-08-19  Akim Demaille  <demaille@gostai.com>
82476         bootstrap: --help to stdout.
82477         * bootstrap (usage): Don't send --help to stderr.
82478         Use a here doc instead of a long string.
82480 2009-08-21  Eric Blake  <ebb9@byu.net>
82482         test-popen-safer: split from test-popen
82483         * tests/test-popen.c (main): Move...
82484         * tests/test-popen.h: ...into new file.
82485         * tests/test-popen-safer2.c: New file.
82486         * modules/popen-tests (Files): Add test-popen.h.
82487         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
82488         Suggested by Bruno Haible.
82490         test-fcntl-safer: split from test-open
82491         * tests/test-open.c (main): Move...
82492         * tests/test-open.h: ...into new file.
82493         * tests/test-fcntl-safer.c: New file.
82494         * modules/open-tests (Files): Add test-open.h.
82495         * modules/fcntl-safer-tests: New file.
82496         Suggested by Bruno Haible.
82498         test-fopen-safer: split from test-fopen
82499         * tests/test-fopen.c (main): Move...
82500         * tests/test-fopen.h: ...into new file.
82501         * tests/test-fopen-safer.c: New file.
82502         * modules/fopen-tests (Files): Add test-fopen.h.
82503         * modules/fopen-safer-tests: New file.
82504         Suggested by Bruno Haible.
82506 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
82508         popen-safer: test O_CLOEXEC at run-time.
82509         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
82511 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
82513         fcntl: move more flags to the header
82514         * lib/cloexec.c: Do not define FD_CLOEXEC here.
82515         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
82516         * lib/fcntl.in.h: Do both things here.
82518 2009-08-21  Jim Meyering  <meyering@redhat.com>
82520         consistently remove $@-t before redirecting to it
82521         * modules/argz: Remove $@-t and $@ before redirecting to the former.
82522         * modules/alloca-opt: Likewise.
82523         * modules/byteswap: Likewise.
82524         * modules/fnmatch: Likewise.
82525         * modules/getopt-posix: Likewise.
82526         * modules/glob: Likewise.
82527         * modules/poll: Likewise.
82528         * modules/posix_spawnp-tests: Likewise.
82529         * modules/sys_socket: Likewise.
82530         * modules/sysexits: Likewise.
82532 2009-08-21  Eric Blake  <ebb9@byu.net>
82534         popen: simplify access to original popen
82535         * lib/popen.c (rpl_popen): No need to worry about popen being a
82536         macro.
82537         Reported by Bruno Haible.
82539 2009-08-20  Eric Blake  <ebb9@byu.net>
82541         build: avoid some compiler warnings
82542         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
82543         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
82544         type.
82545         (new_exclude_segment, excluded_file_pattern_p)
82546         (excluded_file_name_p): Reduce scope.
82547         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
82548         old-style declaration.
82550 2009-08-20  Simon Josefsson  <simon@josefsson.org>
82552         * tests/test-exclude1.sh: Handle Windows EOL.
82553         * tests/test-exclude2.sh: Likewise.
82554         * tests/test-exclude3.sh: Likewise.
82555         * tests/test-exclude4.sh: Likewise.
82556         * tests/test-exclude5.sh: Likewise.
82557         * tests/test-exclude6.sh: Likewise.
82558         * tests/test-exclude7.sh: Likewise.
82560 2009-08-19  Akim Demaille  <demaille@gostai.com>
82562         bootstrap: find sha1sum when named gsha1sum.
82563         * bootstrap (find_tool): New.
82564         ($SHA1SUM): New.
82565         Use it.
82567 2009-08-20  Jim Meyering  <meyering@redhat.com>
82569         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
82570         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
82571         expression that converts "." in a file name to "\." in the resulting
82572         regexp.  Start with a dummy statement, so that prior shell variable
82573         definitions are expanded portably.  Reported by Simon Josefsson.
82575 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
82577         Fix polling for writeability of a screen buffer.
82578         * lib/poll.c: Distinguish input and screen buffers for the
82579         Win32 implementation.
82580         * lib/select.c: Likewise.
82582 2009-08-19  Eric Blake  <ebb9@byu.net>
82584         popen-safer: prevent popen from clobbering std descriptors
82585         * modules/popen-safer: New file.
82586         * lib/popen-safer.c: Likewise.
82587         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
82588         * lib/stdio--.h (popen): Provide override.
82589         * lib/stdio-safer.h (popen_safer): Provide declaration.
82590         * tests/test-popen.c (includes): Partially test this.
82591         * modules/popen-safer-tests: New file, for more tests.
82592         * tests/test-popen-safer.c: Likewise.
82593         * MODULES.html.sh (file stream based Input/Output): Mention it.
82595         tests: test some of the *-safer modules
82596         * modules/fopen-safer (Depends-on): Add fopen.
82597         * modules/fcntl-safer (Depends-on): Add fcntl.
82598         * modules/stdlib-safer (Depends-on): Add stdlib.
82599         (configure.ac): Set indicator.
82600         * modules/unistd-safer (configure.ac): Likewise.
82601         * modules/tmpfile-safer (configure.ac): Likewise.
82602         (Depends-on): Add tmpfile.
82603         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
82604         active.
82605         * tests/test-fopen.c (includes): Test safer versions when they are
82606         in use.
82607         * tests/test-open.c (includes): Likewise.
82609         popen: fix cygwin 1.5 bug when stdin closed
82610         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
82611         * modules/popen: New file.
82612         * modules/popen-tests: Likewise.
82613         * tests/test-popen.c: Likewise.
82614         * m4/popen.m4: Likewise.
82615         * lib/popen.c: Likewise.
82616         * lib/stdio.in.h (popen): New declaration.
82617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
82618         * modules/stdio (Makefile.am): Likewise.
82619         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
82621 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
82623         maint.mk: give full control over update-copyright exclusions
82624         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
82625         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
82626         (update-copyright): Don't force inclusion of top-level
82627         ChangeLog.  Don't force exclusion of all COPYING files, but make
82628         them the default exclusion instead.
82630 2009-08-16  Bruno Haible  <bruno@clisp.org>
82632         Fix test failures on Solaris 10.
82633         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
82634         tests when Solaris iconv() is used.
82635         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
82636         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
82637         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
82638         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
82639         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
82641 2009-08-16  Bruno Haible  <bruno@clisp.org>
82643         Fix test failures on Solaris 10.
82644         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
82645         'tr' program and pass it as first argument.
82646         * tests/test-pipe-filter-gi1.sh: Likewise.
82647         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
82648         program as first argument.
82649         * tests/test-pipe-filter-gi1.c (main): Likewise.
82651 2009-08-16  Eric Blake  <ebb9@byu.net>
82653         fpurge: fix previous commits
82654         * modules/fpurge (Makefile.am): Make replacement conditional,
82655         partially reverting 2007-04-29 change; missed in previous
82656         attempt.
82657         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
82658         is missing.
82660 2009-08-16  Bruno Haible  <bruno@clisp.org>
82662         Clarify fpurge's effect on the file position.
82663         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
82664         * tests/test-fpurge.c (main): Make a second pass for checking the file
82665         position.
82667 2009-08-16  Bruno Haible  <bruno@clisp.org>
82669         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
82670         declaration of fpurge is missing.
82671         * tests/test-fpurge.c (main): Check that the file has not more contents
82672         than expected. Close the file before removing it.
82674 2009-08-15  Eric Blake  <ebb9@byu.net>
82676         fpurge: don't wrap working cygwin implementation
82677         * lib/fpurge.c (fpurge): Fix comment typo.
82678         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
82679         1.7 to avoid replacement.
82680         * tests/test-fpurge.c (main): Enhance test.
82682 2009-08-15  Eric Blake  <ebb9@byu.net>
82683         and Jim Meyering  <meyering@redhat.com>
82685         test-update-copyright: skip if perl is insufficient
82686         * tests/test-update-copyright.sh: Failure to run maintainer tool
82687         should not cause testsuite failure on cygwin 1.5.
82689 2009-08-14  Eric Blake  <ebb9@byu.net>
82691         doc: mention more functions added in cygwin 1.7.0
82692         * doc/posix-headers/limits.texi (limits.h): Update for recent
82693         cygwin additions.
82694         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
82695         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
82696         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
82697         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
82698         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
82700 2009-08-14  Eric Blake  <ebb9@byu.net>
82702         maint.mk: simplify update-copyright rule
82703         * top/maint.mk (update-copyright-local): Delete, and document how
82704         to do it in cfg.mk instead.
82705         (update-copyright-exclude-regexp): Delete, and document how to do
82706         it in .x-update-copyright instead.
82707         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
82708         exclude ChangeLog.
82710 2009-08-14  Bruno Haible  <bruno@clisp.org>
82712         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
82714 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82716         maint.mk: support update-copyright-env
82717         * top/maint.mk (update-copyright-env): Define place-holder.
82718         (update-copyright): Expand $(update-copyright-env) before
82719         invoking update-copyright.
82721 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82723         update-copyright: implement forced reformatting
82724         * build-aux/update-copyright: Implement and document
82725         UPDATE_COPYRIGHT_FORCE.
82726         * tests/test-update-copyright.sh: Test it.
82728 2009-08-14  Eric Blake  <ebb9@byu.net>
82729         and Bruno Haible  <bruno@clisp.org>
82731         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
82732         * tests/test-locale.c: Revert previous patch related to NULL.
82733         * tests/test-stdio.c: Likewise.
82734         * tests/test-stdlib.c: Likewise.
82735         * tests/test-string.c: Likewise.
82736         * tests/test-unistd.c: Likewise.
82737         * modules/time-tests (Depends-on): Add verify.
82738         * modules/wchar-tests (Depends-on): Likewise.
82739         * tests/test-time.c: Test for NULL compliance.
82740         * tests/test-wchar.c: Likewise.
82741         * modules/locale (Depends-on): Add stddef.
82742         * modules/stdio (Depends-on): Likewise.
82743         * modules/stdlib (Depends-on): Likewise.
82744         * modules/string (Depends-on): Likewise.
82745         * modules/time (Depends-on): Likewise.
82746         * modules/unistd (Depends-on): Likewise.
82747         * modules/wchar (Depends-on): Likewise.
82748         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
82749         * lib/stdlib.in.h (includes): Likewise.
82750         * lib/string.in.h (includes): Likewise.
82751         * lib/time.in.h (includes): Likewise.
82752         * lib/unistd.in.h (includes): Likewise.
82753         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
82754         replaced.
82755         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
82756         * m4/stddef_h.m4: New file.
82757         * modules/stddef: Likewise.
82758         * lib/stddef.in.h: Likewise.
82759         * modules/stddef-tests: Likewise.
82760         * tests/test-stddef.c: Likewise.
82761         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
82762         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
82763         * doc/posix-headers/locale.texi (locale.h): Likewise.
82764         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
82765         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
82766         * doc/posix-headers/string.texi (string.h): Likewise.
82767         * doc/posix-headers/time.texi (time.h): Likewise.
82768         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
82769         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
82771 2009-08-14  Eric Blake  <ebb9@byu.net>
82773         doc: improve git diff of texinfo files
82774         * .gitattributes: Add rule for *.texi files, with hint on how to
82775         use it.
82776         Copied from m4, and based on a report by Bruno Haible.
82778 2009-08-14  Bruno Haible  <bruno@clisp.org>
82780         Disable multithread support by default on Cygwin 1.5.x for real.
82781         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
82783 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82785         update-copyright: much ado about intervals
82786         * build-aux/update-copyright: Implement and document
82787         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
82788         of copyright year intervals.
82789         Also, document UPDATE_COPYRIGHT_YEAR.
82790         * tests/test-update-copyright.sh: Test it.
82792         update-copyright: convert 2-digit to 4-digit years
82793         * build-aux/update-copyright: Implement and document.
82794         * tests/test-update-copyright.sh: Update.
82796 2009-08-14  Jim Meyering  <meyering@redhat.com>
82798         test-exclude: avoid coreutils "make check" failure
82799         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
82800         just as in test-argmatch.c.
82802 2009-08-13  Eric Blake  <ebb9@byu.net>
82804         test-dup2: fix bad assumption
82805         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
82806         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
82808         test-version-etc: fix CRLF portability issue
82809         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
82810         recognize \r.
82811         * tests/test-argp-version-etc-1.sh: Likewise.
82813         getopt: update client modules
82814         * modules/argp (Depends-on): Use getopt-gnu.
82815         * modules/git-merge-changelog (Depends-on): Likewise.
82816         * modules/long-options (Depends-on): Likewise.
82817         * modules/xstrtol (Depends-on): Likewise.
82819 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82821         * tests/test-version-etc.sh: Don't fail on different
82822         project/version.  Don't fail on CRLF differences.  Rewrite to use
82823         multiple -e instead of multiple sed forks, suggested by Eric Blake
82824         <ebb9@byu.net>.
82825         * tests/test-argp-version-etc-1.sh: Likewise.
82827 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82829         * tests/test-version-etc.sh: Don't fail on different
82830         project/version.
82832 2009-08-12  Bruno Haible  <bruno@clisp.org>
82834         Tests for modules 'getopt-posix', 'getopt-gnu'.
82835         * modules/getopt-posix-tests: New file.
82836         * tests/test-getopt.c: New file.
82837         * tests/test-getopt.h: New file.
82838         * tests/test-getopt_long.h: New file.
82840         New modules 'getopt-posix', 'getopt-gnu'.
82841         * modules/getopt-gnu: New file, renamed from modules/getopt.
82842         * modules/getopt-posix: New file.
82843         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
82844         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
82845         (gl_GETOPT): Remove macro.
82846         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
82847         Disable the test against BSD systems that declare optreset. Test
82848         against mingw bug. Test against lack of support of optional arguments
82849         on many platforms.
82850         * doc/glibc-headers/getopt.texi: Update module name and list of
82851         relevant platforms.
82852         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
82853         'getopt-gnu' and more portability problems.
82854         * NEWS: Mention the changes.
82856 2009-08-12  Bruno Haible  <bruno@clisp.org>
82858         Ensure that optarg etc. get declared by <unistd.h>.
82859         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
82860         AC_USE_SYSTEM_EXTENSIONS.
82861         * modules/getopt (Depends-on): Add 'extensions'.
82863 2009-08-12  Bruno Haible  <bruno@clisp.org>
82865         Avoid test link errors.
82866         * modules/pipe-filter-ii-tests (Makefile.am): Define
82867         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
82868         * modules/pipe-filter-gi-tests (Makefile.am): Define
82869         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
82870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82872 2009-08-12  Bruno Haible  <bruno@clisp.org>
82874         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
82875         gl_GETOPT_SUBSTITUTE before.
82876         (gl_GETOPT): Use it.
82877         * m4/argp.m4 (gl_ARGP): Update.
82878         Reported by Sergey Poznyakoff.
82880         * m4/getopt.m4: Reorder macros.
82881         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
82882         (gl_GETOPT_SUBSTITUTE): Remove macro.
82884 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82886         Minor improvement in gitlog-to-changelog
82888         * build-aux/gitlog-to-changelog: New option `--format' makes
82889         output format string configurable.
82891 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82893         Optimize exclude: use hash tables for non-wildcard patterns.
82895         * lib/exclude.c: Include hash.h and mbuiter.h
82896         (struct exclude_pattern, exclude_segment): New data types.
82897         (struct exclude): Rewrite.
82898         (fnmatch_pattern_has_wildcards): New function.
82899         (new_exclude_segment, free_exclude_segment): New functions.
82900         (excluded_file_pattern_p, excluded_file_name_p): New functions.
82901         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
82902         * lib/exclude.h (is_fnmatch_pattern): New prototype.
82903         * modules/exclude: Depend on hash and mbuiter.
82905         * modules/exclude-tests: New file.
82906         * tests/test-exclude.c: New file.
82907         * tests/test-exclude1.sh: New file.
82908         * tests/test-exclude2.sh: New file.
82909         * tests/test-exclude3.sh: New file.
82910         * tests/test-exclude4.sh: New file.
82911         * tests/test-exclude5.sh: New file.
82912         * tests/test-exclude6.sh: New file.
82913         * tests/test-exclude7.sh: New file.
82915 2009-08-12  Bruno Haible  <bruno@clisp.org>
82917         Ensure that getopt() gets declared by <unistd.h>.
82918         * lib/unistd.in.h: Conditionally include getopt.h.
82919         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
82920         Set GNULIB_UNISTD_H_GETOPT.
82921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82922         GNULIB_UNISTD_H_GETOPT.
82923         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
82925 2009-08-12  Bruno Haible  <bruno@clisp.org>
82927         Clarify logic.
82928         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
82929         gl_replace_getopt instead of GETOPT_H.
82931 2009-08-12  Bruno Haible  <bruno@clisp.org>
82933         * m4/getopt.m4: Add comments.
82935 2009-08-12  Bruno Haible  <bruno@clisp.org>
82937         Disable multithread support by default on Cygwin 1.5.x.
82938         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
82939         set gl_use_threads=no if not specified otherwise.
82941 2009-08-11  Bruno Haible  <bruno@clisp.org>
82943         Avoid compilation error on NetBSD 5.0.
82944         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
82945         * tests/test-stdio.c: Likewise.
82946         * tests/test-stdlib.c: Likewise.
82947         * tests/test-string.c: Likewise.
82948         * tests/test-unistd.c: Likewise.
82949         Reported by Greg Troxel <gdt@ir.bbn.com>
82950         at <https://savannah.gnu.org/support/?106973>.
82952 2009-08-11  Bruno Haible  <bruno@clisp.org>
82954         * modules/dup2-tests (Depends-on): Remove close.
82956         Undo 2009-07-19 commit.
82957         * modules/acl-tests (Depends-on): Remove close.
82958         * modules/binary-io-tests (Depends-on): Likewise.
82959         * modules/closein-tests (Depends-on): Likewise.
82960         * modules/flock-tests (Depends-on): Likewise.
82961         * modules/fsync-tests (Depends-on): Likewise.
82962         * modules/lseek-tests (Depends-on): Likewise.
82963         * modules/pipe-tests (Depends-on): Likewise.
82964         * modules/posix_spawn-tests (Depends-on): Likewise.
82965         * modules/posix_spawnp-tests (Depends-on): Likewise.
82966         * modules/stat-time-tests (Depends-on): Likewise.
82967         * modules/yesno-tests (Depends-on): Likewise.
82969 2009-08-10  Bruno Haible  <bruno@clisp.org>
82971         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
82973 2009-08-10  Bruno Haible  <bruno@clisp.org>
82975         Fix a gcc warning.
82976         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
82978 2009-08-10  Bruno Haible  <bruno@clisp.org>
82980         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
82981         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
82982         not only the first time.
82983         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
82984         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
82985         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
82986         is 1, not only the first time.
82988 2009-08-10  Bruno Haible  <bruno@clisp.org>
82990         Make it possible to use module 'gethostname' without module 'close'.
82991         * lib/unistd.in.h (close): Evoke a link error only if
82992         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82994         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82995         * modules/unistd (Makefile.am): Substitute
82996         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82997         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
82998         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82999         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
83000         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
83001         * modules/sys_ioctl (Makefile.am): Substitute
83002         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
83003         * modules/socket (configure.ac): On native Windows, set
83004         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
83005         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
83006         Reported by Sam Steingold <sds@gnu.org>.
83008 2009-08-10  Bruno Haible  <bruno@clisp.org>
83010         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
83011         * modules/ioctl (configure.ac): Likewise.
83013 2009-08-10  Bruno Haible  <bruno@clisp.org>
83015         Avoid collision between gnulib wrapper and libintl wrapper.
83016         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
83017         already defined in intl/printf.c.
83018         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
83019         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
83021 2009-08-09  Bruno Haible  <bruno@clisp.org>
83023         Make <sys/select.h> really self-contained, also on Solaris 10.
83024         * lib/sys_select.in.h: Include <string.h>.
83025         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
83026         Solaris 10 problem.
83027         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
83028         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
83029         Reported by Jim Meyering.
83031 2009-08-09  Bruno Haible  <bruno@clisp.org>
83033         Avoid warnings from 'aclocal' that are due to a use of macro name
83034         AM_XGETTEXT_OPTION that is not defined in automake.
83035         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
83036         automake.
83037         * modules/error (configure.ac): Likewise.
83038         * modules/propername (configure.ac): Likewise.
83039         * modules/vasprintf (configure.ac): Likewise.
83040         * modules/verror (configure.ac): Likewise.
83041         * modules/xprintf (configure.ac): Likewise.
83042         * modules/xvasprintf (configure.ac): Likewise.
83044 2009-08-08  Bruno Haible  <bruno@clisp.org>
83046         Avoid compilation error in C++ mode.
83047         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
83048         Reported by Sam Steingold <sds@gnu.org>.
83050 2009-08-08  Bruno Haible  <bruno@clisp.org>
83052         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
83053         for the various Unix platforms.
83054         * doc/posix-headers/limits.texi: Update platforms list regarding
83055         HOST_NAME_MAX.
83056         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
83058 2009-08-07  Jim Meyering  <meyering@redhat.com>
83060         selinux-at: fix typo in a comment
83061         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
83062         Spotted by Paolo Bonzini.
83064         selinux-at: remove redundant m4 code, add documentation
83065         * modules/selinux-at (configure.ac): Remove redundant code.
83066         LIB_SELINUX is already set via the dependent module, selinux-h.
83067         (Include): Add quotes around selinux-at.h.
83068         * lib/selinux-at.h: Add documentation.
83069         Reported by Bruno Haible in
83070         http://marc.info/?l=gnulib-bug&m=124958988300749
83072 2009-08-07  Bruno Haible  <bruno@clisp.org>
83074         Avoid link error on MacOS X 10.3 and 10.4.
83075         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
83076         on non-ELF systems.
83077         * lib/argp-pv.c (argp_program_version): Likewise.
83078         Reported by Simon Josefsson.
83080 2009-08-07  Simon Josefsson  <simon@josefsson.org>
83082         * tests/test-version-etc.sh: Use $EXEEXT.
83084 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
83086         update-copyright: update documentation to point to maint.mk
83087         * build-aux/update-copyright: Here.
83089 2009-08-06  Jim Meyering  <meyering@redhat.com>
83091         maint.mk: support update-copyright-local
83092         * top/maint.mk (update-copyright-local): Define place-holder.
83093         (update-copyright): Depend on $(update-copyright-local).
83095 2009-08-06  Jim Meyering  <meyering@redhat.com>
83097         selinux-at: new module
83098         Initially written for coreutils, this module will soon be
83099         used by findutils, too.
83100         * MODULES.html.sh [Misc]: Add selinux-at.
83101         * lib/selinux-at.h: New file, from coreutils.
83102         * lib/selinux-at.c: Likewise.
83103         * modules/selinux-at: Likewise.
83104         (License): Change from LGPL to GPL, since it depends
83105         on the GPL'd openat module.
83107         doc: update README
83108         * README: Remove references to cogito.
83109         Remove cvs-repo-updating instructions from 2007.
83110         Don't imply that CVS is better if you have limited disk space.
83112 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
83114         update-copyright: support C-style comments
83115         * build-aux/update-copyright: Implement and document.
83116         * tests/test-update-copyright.sh: Test.
83118 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
83120         update-copyright: support omitted "(C)"
83121         * build-aux/update-copyright: Implement and document.  Also,
83122         allow variable whitespace before "(C)".
83123         * tests/test-update-copyright.sh: Test.
83125 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
83127         update-copyright: don't trip on non-FSF copyright statements
83128         * build-aux/update-copyright: Fix so that the first correctly
83129         formatted FSF copyright statement is recognized no matter what
83130         appears before it.  Update documentation.
83131         * tests/test-update-copyright.sh: Test that.
83133 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
83135         update-copyright: clean up code a little
83136         * build-aux/update-copyright: Append "_re" to the name of any
83137         variable holding a regular expression.
83138         Replace "old" and "new" with "stmt" in variable names.
83139         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
83140         handled correctly.
83141         Format code more consistently.
83143 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
83145         update-copyright-tests: improve portability
83146         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
83147         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
83149 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
83151         update-copyright: support @copyright{} and &copy;
83152         * build-aux/update-copyright: Implement and document.
83153         * tests/test-update-copyright.sh: Test.
83155 2009-08-04  Jim Meyering  <meyering@redhat.com>
83157         update-copyright-tests: correctly test EOL=\r\n handling
83158         * tests/test-update-copyright.sh: Put \r at the end of some lines
83159         for the dos-eol tests.  Based on a patch by Joel E. Denny.
83161         maint.mk: make update-copyright exclusion list more configurable
83162         * top/maint.mk (update-copyright): Default to excluding COPYING,
83163         but allow an override, in case someone does want to update that file.
83165         maint.mk: don't update copyright date in COPYING
83166         * top/maint.mk (update-copyright): Exclude COPYING.
83168         maint.mk: add a copyright-updating rule
83169         * top/maint.mk (update-copyright): New rule.
83170         Derived from coreutils/Makefile.am.
83172         update-copyright: rename some variables
83173         * build-aux/update-copyright: Rename a few variables for clarity.
83174         Tweak syntax.  List Joel E. Denny as coauthor.
83176 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
83178         update-copyright: fix bug for 2-digit last year and add tests
83179         * build-aux/update-copyright: Fix bug.
83180         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
83181         specified.
83182         * modules/update-copyright-tests: New
83183         * tests/test-update-copyright.sh: New.
83185 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
83187         update-copyright: handle leading tabs in line prefix
83188         * build-aux/update-copyright: Count leading tabs as 8 spaces
83189         when computing margin.  This helps with the formatting of
83190         ChangeLogs, for example.
83191         Fix documentation a little.
83193 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
83195         update-copyright: support EOL=\r\n
83196         * build-aux/update-copyright: Implement that.
83198 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
83200         update-copyright: automatically format copyright statements
83201         * build-aux/update-copyright: Implement that.
83202         Also, be a little more predictable and safer by always failing
83203         when the full copyright format is not perfectly recognized as an
83204         unbroken whole.  Discussed at
83205         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
83206         Rewrite documentation.
83208 2009-08-03  Bruno Haible  <bruno@clisp.org>
83210         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
83212 2009-08-02  Bruno Haible  <bruno@clisp.org>
83214         Tests for module 'uname'.
83215         * modules/uname-tests: New file.
83216         * tests/test-uname.c: New file.
83218         New module 'uname'.
83219         * lib/uname.c: New file.
83220         * m4/uname.m4: New file.
83221         * modules/uname: New file.
83222         * doc/posix-functions/uname.texi: Mention the new module.
83224 2009-08-02  Bruno Haible  <bruno@clisp.org>
83226         Tests for module 'sys_utsname'.
83227         * modules/sys_utsname-tests: New file.
83228         * tests/test-sys_utsname.c: New file.
83230         New module 'sys_utsname'.
83231         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
83232         * m4/sys_utsname_h.m4: New file.
83233         * modules/sys_utsname: New file.
83234         * doc/posix-headers/sys_utsname.texi: Mention the new module.
83236 2009-08-02  Bruno Haible  <bruno@clisp.org>
83238         Implicitly initialize the sockets library.
83239         * lib/gethostname.c: Include sockets.h.
83240         (rpl_gethostname): Invoke gl_sockets_startup.
83241         * lib/socket.c: Include sockets.h.
83242         (rpl_socket): Invoke gl_sockets_startup.
83243         * modules/gethostname (Depends-on): Add sockets.
83244         * modules/socket (Depends-on): Likewise.
83245         * tests/test-poll.c: Don't include sockets.h.
83246         (main): Don't invoke gl_sockets_startup.
83247         * tests/test-select.c: Don't include sockets.h.
83248         (main): Don't invoke gl_sockets_startup.
83250 2009-08-02  Bruno Haible  <bruno@clisp.org>
83252         Allow multiple calls to gl_sockets_startup.
83253         * lib/sockets.c (initialized_sockets_version): New variable.
83254         (gl_sockets_startup): Do nothing if already called for this or a higher
83255         version.
83256         (gl_sockets_cleanup): Reset initialized_sockets_version.
83258 2009-08-03  Simon Josefsson  <simon@josefsson.org>
83260         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
83261         different project/version.
83263 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
83264             Bruno Haible  <bruno@clisp.org>
83266         Tests for module 'pipe-filter-gi'.
83267         * modules/pipe-filter-gi-tests: New file.
83268         * tests/test-pipe-filter-gi1.sh: New file.
83269         * tests/test-pipe-filter-gi1.c: New file.
83270         * tests/test-pipe-filter-gi2.sh: New file.
83271         * tests/test-pipe-filter-gi2-main.c: New file.
83272         * tests/test-pipe-filter-gi2-child.c: New file.
83274         New module 'pipe-filter-gi'.
83275         * lib/pipe-filter-gi.c: New file.
83276         * modules/pipe-filter-gi: New file.
83278 2009-08-02  Bruno Haible  <bruno@clisp.org>
83279             Paolo Bonzini  <bonzini@gnu.org>
83281         Tests for module 'pipe-filter-ii'.
83282         * modules/pipe-filter-ii-tests: New file.
83283         * tests/test-pipe-filter-ii1.sh: New file.
83284         * tests/test-pipe-filter-ii1.c: New file.
83285         * tests/test-pipe-filter-ii2.sh: New file.
83286         * tests/test-pipe-filter-ii2-main.c: New file.
83287         * tests/test-pipe-filter-ii2-child.c: New file.
83289         New module 'pipe-filter-ii'.
83290         * lib/pipe-filter.h: New file.
83291         * lib/pipe-filter-ii.c: New file.
83292         * lib/pipe-filter-aux.h: New file.
83293         * modules/pipe-filter-ii: New file.
83295 2009-08-02  Simon Josefsson  <simon@josefsson.org>
83297         * lib/gc-libgcrypt.c: Change copyright to FSF.
83298         * lib/gc-gnulib.c: Likewise.
83300 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
83302         * lib/gethostname.c: Include limits.h.
83304 2009-08-02  Simon Josefsson  <simon@josefsson.org>
83305             Bruno Haible  <bruno@clisp.org>
83307         Ensure HOST_NAME_MAX as part of the gethostname module.
83308         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
83309         define also HOST_NAME_MAX.
83310         * tests/test-gethostname.c: Include <limits.h>.
83311         (main): Check also HOST_NAME_MAX.
83312         * doc/posix-headers/limits.texi: Document the mingw problem.
83314 2009-08-02  Bruno Haible  <bruno@clisp.org>
83316         * lib/gethostname.c (gethostname): Fix handling of large len argument.
83317         Add comments.
83319 2009-03-31  Simon Josefsson  <simon@josefsson.org>
83321         * lib/gethostname.c: Add Windows wrapper.
83322         * m4/gethostname.m4: Look for gethostname in -lws2_32.
83323         * modules/gethostname: Depend on sys_socket & errno, for also
83324         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
83325         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
83327 2009-07-31  Jim Meyering  <meyering@redhat.com>
83329         getloadavg: fix symbol name in comment
83330         * lib/getloadavg.c: Correct a typo I introduced when adding
83331         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
83332         Matt Kraai spotted the problem.
83334 2009-07-29  Matt Kraai  <mkraai@beckman.com>
83336         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
83337         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
83338         code also if ! defined N_NAME_POINTER.
83339         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
83340         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
83341         but the n_name member is a 12-byte array.
83343 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
83345         update-copyright: generalize comment handling
83346         * build-aux/update-copyright: Handle copyright statements
83347         within more comment styles.
83348         Document usage.
83349         Report any file with an external copyright holder or parse failure.
83351 2009-07-29  Jim Meyering  <meyering@redhat.com>
83353         mktime: correct setting of REPLACE_MKTIME
83354         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
83356         update-copyright: new module
83357         * modules/update-copyright: New file.
83358         * build-aux/update-copyright: New file.
83359         * MODULES.html.sh (maint+release support): Add update-copyright.
83361 2009-07-27  Bruno Haible  <bruno@clisp.org>
83363         Fix compilation error when <ctime> is used and mktime is replaced.
83364         * lib/time.in.h (mktime): New declaration.
83365         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
83366         REPLACE_MKTIME instead of defining mktime in config.h.
83367         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
83368         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
83369         Reported by Ross McFarland <rwmcfa1@neces.com>.
83371 2009-07-27  Bruno Haible  <bruno@clisp.org>
83373         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
83374         Reported by Matt Kraai <mkraai@beckman.com>.
83376 2009-07-25  Jim Meyering  <meyering@redhat.com>
83378         maint.mk: avoid warnings about missing files
83379         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
83380         diagnostic when .prev-version does not exist.
83381         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
83382         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
83383         nonexistent cfg.mk.
83384         Suggestions from Simon Josefsson.
83386 2009-07-25  Bruno Haible  <bruno@clisp.org>
83388         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
83389         defined as macros. Needed on QNX 6.4.1.
83390         Reported by Matt Kraai <mkraai@beckman.com>.
83392 2009-07-23  Jim Meyering  <meyering@redhat.com>
83394         maint.mk: invoke "make dist" with a working value of XZ_OPT
83395         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
83397 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
83399         Make fseeko.c compile on QNX.
83400         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
83402 2009-07-22  Peter Simons  <simons@cryp.to>
83404         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
83405         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
83406         * lib/md4.h: Likewise.
83407         * lib/md5.h: Likewise.
83408         * lib/sha1.h: Likewise.
83409         * lib/sha256.h: Likewise.
83410         * lib/sha512.h: Likewise.
83412         tests-sha1: don't assign literal string to 'char *' variable
83413         * tests/test-sha1.c (main): Declare locals with "const" to match
83414         attributes of the right hand side.
83416 2009-07-21  Eric Blake  <ebb9@byu.net>
83418         dup2: fix more mingw problems
83419         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
83420         fd to itself.
83421         * doc/posix-functions/dup2.texi (dup2): Document the bug.
83422         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
83423         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
83424         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
83425         care of mingw bugs.
83427 2009-07-21  Jim Meyering  <meyering@redhat.com>
83429         vc-list-files: avoid failure when /bin/sh is dash
83430         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
83431         On some Debian based systems, /bin/sh is a symlink to dash, and running
83432         this command would omit the "/" following each 'tests' prefix:
83433           dash -x build-aux/vc-list-files -C . tests
83434         That is because bash and dash work differently:
83435           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
83436           bash ok
83437           dash odd
83439 2009-07-21  Eric Blake  <ebb9@byu.net>
83441         dup2-tests: test previous patch
83442         * modules/dup2-tests: New file.
83443         * tests/test-dup2.c: Likewise.
83444         * tests/test-open.c (main): Avoid unspecified behavior.
83445         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
83446         test.
83448         dup2: work around mingw and cygwin 1.5 bug
83449         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
83450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
83451         * modules/unistd (Makefile.am): Substitute it.
83452         * lib/unistd.in.h (dup2): Declare the replacement.
83453         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
83454         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
83455         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
83456         * modules/execute (Depends-on): Add dup2.
83457         * modules/fseterr (Depends-on): Likewise.
83458         * modules/pipe (Depends-on): Likewise.
83459         * modules/posix_spawn-internal (Depends-on): Likewise.
83461 2009-07-21  Bruno Haible  <bruno@clisp.org>
83463         * modules/.gitattributes: New file.
83465 2009-07-20  Bruno Haible  <bruno@clisp.org>
83467         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
83468         (main): Use it.
83470 2009-07-20  Eric Blake  <ebb9@byu.net>
83472         test-pipe: make a bit more robust.
83473         * tests/test-pipe.c (myerr): Allow error messages regardless of
83474         what we do to stderr.
83475         (test_pipe): Rearrange to avoid deadlock.
83476         (child_main): Try a larger read, to ensure we avoided deadlock.
83477         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
83478         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
83479         if misused.
83481 2009-07-19  Jim Meyering  <meyering@redhat.com>
83483         fts: avoid false-positive cycle-detection
83484         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
83485         for each new command line argument.
83487 2009-07-19  Bruno Haible  <bruno@clisp.org>
83489         Fix build error on mingw with the modules sys_select and unistd.
83490         * modules/acl-tests (Depends-on): Add close.
83491         * modules/binary-io-tests (Depends-on): Likewise.
83492         * modules/closein-tests (Depends-on): Likewise.
83493         * modules/flock-tests (Depends-on): Likewise.
83494         * modules/fsync-tests (Depends-on): Likewise.
83495         * modules/lseek-tests (Depends-on): Likewise.
83496         * modules/pipe-tests (Depends-on): Likewise.
83497         * modules/posix_spawn-tests (Depends-on): Likewise.
83498         * modules/posix_spawnp-tests (Depends-on): Likewise.
83499         * modules/stat-time-tests (Depends-on): Likewise.
83500         * modules/yesno-tests (Depends-on): Likewise.
83502 2009-07-19  Bruno Haible  <bruno@clisp.org>
83504         Unify conditionals.
83505         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
83506         macros, not at the compiler macros.
83507         * lib/pipe.c: Likewise.
83508         * lib/execute.c: Likewise.
83509         * lib/spawni.c: Likewise.
83511 2009-07-19  Bruno Haible  <bruno@clisp.org>
83513         Fix handling of closed stdin/stdout/stderr on mingw.
83514         * lib/w32spawn.h: Include unistd.h.
83515         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
83516         file descriptor with O_NOINHERIT flag.
83517         (fd_safer_noinherit): New function, based on fd-safer.c.
83518         (dup_safer_noinherit): New function, based on dup-safer.c.
83519         (undup_safer_noinherit): New function.
83520         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
83521         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
83522         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
83523         instead of fd_safer.
83524         * tests/test-pipe.c: Include <windows.h>.
83525         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
83526         result.
83528         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
83529         from main.
83530         (test_pipe): Pass an extra argument for disambiguation.
83531         (main): Invoke parent_main or child_main.
83533         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
83534         consistently.
83536 2009-07-18  Eric Blake  <ebb9@byu.net>
83538         test-pipe: fix mingw build
83539         * tests/test-pipe.c (main): Avoid fcntl on mingw.
83541 2009-07-18  Bruno Haible  <bruno@clisp.org>
83543         * modules/pipe-tests (Makefile.am): Fix typo.
83545 2009-07-18  Eric Blake  <ebb9@byu.net>
83547         error: fix mingw build
83548         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
83549         Reported by Bruno Haible.
83551         error: avoid undefined use of stdout
83552         * lib/error.c (error, error_at_line): Check that fd 1 is open
83553         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
83554         is handling faults and the close_stdout module wants to report the
83555         detection of closed stdout as an error.
83557 2009-07-17  Eric Blake  <ebb9@byu.net>
83559         pipe: be robust in face of closed fds
83560         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
83561         should cause child to misbehave.
83562         * modules/pipe-tests: New module.
83563         * tests/test-pipe.c: New file.
83564         * tests/test-pipe.sh: New file.
83565         Reported by Akim Demaille.
83567 2009-07-14  Bruno Haible  <bruno@clisp.org>
83569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
83570         Reported by anonymous kc.
83572 2009-07-07  Jim Meyering  <meyering@redhat.com>
83574         maint.mk: don't look for translatable strings in *.m4 or *.mk
83575         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
83576         when searching for translatable strings.
83578 2009-07-05  Jim Meyering  <meyering@redhat.com>
83580         remove superfluous parentheses in STREQ definition
83581         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
83582         * lib/getugroups.c (STREQ): Likewise.
83583         * lib/fnmatch.c (STREQ): Likewise.
83584         Spotted by Bruno Haible.
83586 2009-07-04  Jim Meyering  <meyering@redhat.com>
83588         argv-iter: new module
83589         * MODULES.html.sh: Add argv-iter.
83590         * lib/argv-iter.c, lib/argv-iter.h: New files.
83591         * modules/argv-iter: New file.
83592         * modules/argv-iter-tests: New file.
83593         * tests/test-argv-iter.c: Test it.
83595 2009-07-04  Bruno Haible  <bruno@clisp.org>
83597         Fix assertion.
83598         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
83599         contains more exact copies of a given entry than file2, leave the extra
83600         copies unpaired rather than aborting.
83601         Reported by Eric Blake.
83603 2009-07-02  Bruno Haible  <bruno@clisp.org>
83605         Speedup git-merge-changelog for git cherry-pick.
83606         * lib/git-merge-changelog.c (struct entries_mapping): New type.
83607         (entries_mapping_get): New function, extracted from compute_mapping.
83608         (entries_mapping_reverse_get): New function.
83609         (compute_mapping): Add a 'full' argument. Return the result in a
83610         'struct entries_mapping'.
83611         (main): Update. Access the mappings through entries_mapping_get.
83612         Reported by Eric Blake.
83614 2009-07-02  Bruno Haible  <bruno@clisp.org>
83616         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
83617         best_i.
83619 2009-07-02  Bruno Haible  <bruno@clisp.org>
83621         Speed up approximate search for matching ChangeLog entries.
83622         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
83623         argument. Call fstrcmp_bounded instead of fstrcmp.
83624         (compute_mapping, try_split_merged_entry, main): Update callers.
83626 2009-07-02  Bruno Haible  <bruno@clisp.org>
83628         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
83630 2009-06-30  Bruno Haible  <bruno@clisp.org>
83632         Reduce the number of uc_is_cased calls.
83633         * lib/unicase.h (casing_suffix_context_t): Add
83634         'first_char_except_ignorable' field.
83635         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
83636         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
83637         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
83638         Update initializer.
83639         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
83640         case-ignorable characters.
83641         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
83642         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
83643         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
83644         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
83645         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
83647 2009-06-30  Bruno Haible  <bruno@clisp.org>
83649         Tests for module 'unicase/ignorable'.
83650         * modules/unicase/ignorable-tests: New file.
83651         * tests/unicase/test-ignorable.c: New file, generated by
83652         gen-uni-tables.
83654         Tests for module 'unicase/cased'.
83655         * modules/unicase/cased-tests: New file.
83656         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
83657         * tests/unicase/test-predicate-part1.h: New file, derived from
83658         tests/unictype/test-predicate-part1.h.
83659         * tests/unicase/test-predicate-part2.h: New file, same as
83660         tests/unictype/test-predicate-part2.h.
83662         Fix evaluation of "Before C" condition of FINAL_SIGMA.
83663         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
83664         (output_casing_properties): New function.
83665         (main): Call it.
83666         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
83667         * lib/unicase/cased.c: Include unictype/bitmap.h.
83668         (uc_is_cased): Define through a bitmap lookup.
83669         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
83670         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
83671         (uc_is_case_ignorable): Define through a bitmap lookup.
83672         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
83673         lib/unictype/bitmap.h.
83674         (Depends-on): Add inline. Clean up.
83675         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
83676         lib/unictype/bitmap.h.
83677         (Depends-on): Add inline. Clean up.
83678         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
83679         recognition.
83680         * tests/unicase/test-u16-tolower.c (main): Likewise.
83681         * tests/unicase/test-u32-tolower.c (main): Likewise.
83683 2009-06-30  Bruno Haible  <bruno@clisp.org>
83685         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
83686         * lib/unicase/u16-casemap.c: Likewise.
83687         * lib/unicase/u32-casemap.c: Likewise.
83689 2009-06-29  Bruno Haible  <bruno@clisp.org>
83691         Define u32_casefold as a wrapper around u32_ct_casefold.
83692         * lib/unicase/u32-casefold.c: Update.
83693         * modules/unicase/u32-casefold (Depends-on): Add
83694         unicase/u32-ct-casefold, unicase/empty-prefix-context,
83695         unicase/empty-suffix-context. Clean up.
83697         Define u16_casefold as a wrapper around u16_ct_casefold.
83698         * lib/unicase/u16-casefold.c: Update.
83699         * modules/unicase/u16-casefold (Depends-on): Add
83700         unicase/u16-ct-casefold, unicase/empty-prefix-context,
83701         unicase/empty-suffix-context. Clean up.
83703         Define u8_casefold as a wrapper around u8_ct_casefold.
83704         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
83705         * lib/unicase/u8-casefold.c: Update.
83706         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
83707         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83709         Define u32_totitle as a wrapper around u32_ct_totitle.
83710         * lib/unicase/u32-totitle.c: Update.
83711         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
83712         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83714         Define u16_totitle as a wrapper around u16_ct_totitle.
83715         * lib/unicase/u16-totitle.c: Update.
83716         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
83717         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83719         Define u8_totitle as a wrapper around u8_ct_totitle.
83720         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
83721         functions.
83722         (FUNC): Delegate to U_CT_TOTITLE.
83723         * lib/unicase/u8-totitle.c: Update.
83724         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
83725         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83727         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
83728         invocation.
83729         * modules/unicase/u32-tolower (Depends-on): Add
83730         unicase/empty-prefix-context, unicase/empty-suffix-context.
83732         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
83733         invocation.
83734         * modules/unicase/u16-tolower (Depends-on): Add
83735         unicase/empty-prefix-context, unicase/empty-suffix-context.
83737         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
83738         * modules/unicase/u8-tolower (Depends-on): Add
83739         unicase/empty-prefix-context, unicase/empty-suffix-context.
83741         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
83742         invocation.
83743         * modules/unicase/u32-toupper (Depends-on): Add
83744         unicase/empty-prefix-context, unicase/empty-suffix-context.
83746         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
83747         invocation.
83748         * modules/unicase/u16-toupper (Depends-on): Add
83749         unicase/empty-prefix-context, unicase/empty-suffix-context.
83751         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
83752         * modules/unicase/u8-toupper (Depends-on): Add
83753         unicase/empty-prefix-context, unicase/empty-suffix-context.
83755         New module 'unicase/u32-ct-casefold'.
83756         * lib/unicase/u32-ct-casefold.c: New file.
83757         * modules/unicase/u32-ct-casefold: New file.
83759         New module 'unicase/u16-ct-casefold'.
83760         * lib/unicase/u16-ct-casefold.c: New file.
83761         * modules/unicase/u16-ct-casefold: New file.
83763         New module 'unicase/u8-ct-casefold'.
83764         * lib/unicase/u8-ct-casefold.c: New file.
83765         * lib/unicase/u-ct-casefold.h: New file, derived from
83766         lib/unicase/u-casefold.h.
83767         * modules/unicase/u8-ct-casefold: New file.
83769         New module 'unicase/u32-ct-totitle'.
83770         * lib/unicase/u32-ct-totitle.c: New file.
83771         * modules/unicase/u32-ct-totitle: New file.
83773         New module 'unicase/u16-ct-totitle'.
83774         * lib/unicase/u16-ct-totitle.c: New file.
83775         * modules/unicase/u16-ct-totitle: New file.
83777         New module 'unicase/u8-ct-totitle'.
83778         * lib/unicase/u8-ct-totitle.c: New file.
83779         * lib/unicase/u-ct-totitle.h: New file, derived from
83780         lib/unicase/u-totitle.h.
83781         * modules/unicase/u8-ct-totitle: New file.
83783         New module 'unicase/u32-ct-tolower'.
83784         * lib/unicase/u32-ct-tolower.c: New file.
83785         * modules/unicase/u32-ct-tolower: New file.
83787         New module 'unicase/u16-ct-tolower'.
83788         * lib/unicase/u16-ct-tolower.c: New file.
83789         * modules/unicase/u16-ct-tolower: New file.
83791         New module 'unicase/u8-ct-tolower'.
83792         * lib/unicase/u8-ct-tolower.c: New file.
83793         * modules/unicase/u8-ct-tolower: New file.
83795         New module 'unicase/u32-ct-toupper'.
83796         * lib/unicase/u32-ct-toupper.c: New file.
83797         * modules/unicase/u32-ct-toupper: New file.
83799         New module 'unicase/u16-ct-toupper'.
83800         * lib/unicase/u16-ct-toupper.c: New file.
83801         * modules/unicase/u16-ct-toupper: New file.
83803         New module 'unicase/u8-ct-toupper'.
83804         * lib/unicase/u8-ct-toupper.c: New file.
83805         * modules/unicase/u8-ct-toupper: New file.
83807         Add context arguments to u*_casemap functions.
83808         * lib/unicase/unicasemap.h: Include unicase.h.
83809         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
83810         suffix_context arguments.
83811         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
83812         functions.
83813         (FUNC): Add prefix_context and suffix_context arguments. Use
83814         uc_is_cased and uc_is_case_ignorable.
83815         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
83816         * lib/unicase/u16-casemap.c: Likewise.
83817         * lib/unicase/u32-casemap.c: Likewise.
83818         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
83819         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83820         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
83821         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83822         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
83823         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83825         New module 'unicase/u32-suffix-context'.
83826         * lib/unicase/u32-suffix-context.c: New file.
83827         * modules/unicase/u32-suffix-context: New file.
83829         New module 'unicase/u16-suffix-context'.
83830         * lib/unicase/u16-suffix-context.c: New file.
83831         * modules/unicase/u16-suffix-context: New file.
83833         New module 'unicase/u8-suffix-context'.
83834         * lib/unicase/u8-suffix-context.c: New file.
83835         * lib/unicase/u-suffix-context.h: New file.
83836         * modules/unicase/u8-suffix-context: New file.
83838         New module 'unicase/empty-suffix-context'.
83839         * lib/unicase/empty-suffix-context.c: New file.
83840         * modules/unicase/empty-suffix-context: New file.
83842         New module 'unicase/u32-prefix-context'.
83843         * lib/unicase/u32-prefix-context.c: New file.
83844         * modules/unicase/u32-prefix-context: New file.
83846         New module 'unicase/u16-prefix-context'.
83847         * lib/unicase/u16-prefix-context.c: New file.
83848         * modules/unicase/u16-prefix-context: New file.
83850         New module 'unicase/u8-prefix-context'.
83851         * lib/unicase/u8-prefix-context.c: New file.
83852         * lib/unicase/u-prefix-context.h: New file.
83853         * lib/unicase/context.h: New file.
83854         * modules/unicase/u8-prefix-context: New file.
83856         New module 'unicase/empty-prefix-context'.
83857         * lib/unicase/empty-prefix-context.c: New file.
83858         * modules/unicase/empty-prefix-context: New file.
83860         New module 'unicase/ignorable'.
83861         * lib/unicase/ignorable.c: New file.
83862         * modules/unicase/ignorable: New file.
83864         New module 'unicase/cased'.
83865         * lib/unicase/caseprop.h: New file.
83866         * lib/unicase/cased.c: New file.
83867         * modules/unicase/cased: New file.
83869         New functions for case mapping of substrings.
83870         * lib/unicase.h (casing_prefix_context_t): New type.
83871         (unicase_empty_prefix_context): New variable.
83872         (u8_casing_prefix_context, u16_casing_prefix_context,
83873         u32_casing_prefix_context, u8_casing_prefixes_context,
83874         u16_casing_prefixes_context, u32_casing_prefixes_context): New
83875         declarations.
83876         (casing_suffix_context_t): New type.
83877         (unicase_empty_suffix_context): New variable.
83878         (u8_casing_suffix_context, u16_casing_suffix_context,
83879         u32_casing_suffix_context, u8_casing_suffixes_context,
83880         u16_casing_suffixes_context, u32_casing_suffixes_context,
83881         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
83882         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
83883         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
83884         declarations.
83886 2009-06-28  Jim Meyering  <meyering@redhat.com>
83888         boostrap: indent only with spaces
83889         * build-aux/bootstrap: Indent only with spaces, never TABs.
83891         bootstrap: split long lines
83892         * build-aux/bootstrap: Keep line length < 80.
83894         bootstrap: sync from coreutils
83895         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
83896         just as autoreconf does.  Verify a list of prerequisite
83897         package-name,version-number pairs if defined in bootstrap.conf.
83898         Refer to README-prereq, if prerequisites are not satisfied.
83900 2009-06-27  Eric Blake  <ebb9@byu.net>
83902         tests: add test for bogus NULL definition
83903         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
83904         * tests/test-stdlib.c: Likewise.
83905         * tests/test-string.c: Likewise.
83906         * tests/test-locale.c: Likewise.
83907         * tests/test-unistd.c: Likewise.
83908         * modules/stdio-tests (Depends-on): Add verify.
83909         * modules/stdlib-tests (Depends-on): Likewise.
83910         * modules/string-tests (Depends-on): Likewise.
83911         * modules/locale-tests (Depends-on): Likewise.
83912         * modules/unistd-tests (Depends-on): Likewise.
83914 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
83916         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
83917         self-explaining comment.
83918         * m4/selinux-selinux-h: Update serial.
83919         (gl_LIBSELINUX): New macro, adding a warning for missing development
83920         packages to code extracted from...
83921         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
83922         Add warning for missing development packages here, too.
83924 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
83926         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
83928 2009-06-25  Eric Blake  <ebb9@byu.net>
83930         version-etc: fix regression
83931         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
83932         gcc.
83933         (version_etc): Use it, to catch bugs with trailing NULL.
83934         * lib/version-etc.c (version_etc_arn): Delete unused argument.
83935         (version_etc_va): Fix logic bug.
83936         * modules/version-etc-tests: Add test.
83937         * tests/test-version-etc.c: New file.
83938         * tests/test-version-etc.sh: Likewise.
83940 2009-06-25  Sam Steingold  <sds@gnu.org>
83942         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
83943         mbtowc declaration.
83945 2009-06-25  Eric Blake  <ebb9@byu.net>
83947         fpurge: migrate into <stdio.h>
83948         * lib/fpurge.h: Delete...
83949         * lib/stdio.in.h (fpurge): ...and declare here, instead.
83950         * lib/fpurge.c (fpurge): Change declaring header.
83951         * modules/fpurge (Files): Drop deleted file.
83952         (Depends-on): Add stdio.
83953         (configure.ac): Set witness.
83954         * modules/stdio (Makefile.am): Support fpurge macros.
83955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83956         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
83957         * lib/fflush.c: Update client.
83958         * tests/test-fpurge.c: Likewise.
83959         * NEWS: Mention the change.
83961 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83963         * lib/argp-version-etc.c (program_authors): Add const
83964         qualifier.
83965         * lib/version-etc.c: Fix typos in the comments.
83966         * modules/argp-version-etc: Depends on version-etc.
83968 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83970         argp-version-etc: new module.
83972         * lib/argp-version-etc.c: New file.
83973         * lib/argp-version-etc.h: New file.
83974         * modules/argp-version-etc: New file.
83975         * modules/argp-version-etc-tests: New file.
83976         * tests/test-argp-version-etc.c: New test.
83977         * tests/test-argp-version-etc-1.sh: New test.
83979 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83981         Provide additional interfaces and documentation for version-etc
83982         module.
83984         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
83985         interfaces.
83986         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
83987         prototypes.
83989 2009-06-24  Bruno Haible  <bruno@clisp.org>
83991         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
83992         HAVE_LIB${NAME} macro.
83993         Reported by Sam Steingold <sds@gnu.org>.
83995 2009-06-23  Simon Josefsson  <simon@josefsson.org>
83997         * modules/hash-tests (test_hash_LDADD): Link to libintl when
83998         needed.
84000 2009-06-21  Bruno Haible  <bruno@clisp.org>
84002         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
84003         work.
84004         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
84005         together with LIB${NAME}, LTLIB${NAME}.
84006         Reported by Sam Steingold <sds@gnu.org>.
84008 2009-06-20  Jim Meyering  <meyering@redhat.com>
84010         tests: make sc_require_test_exit_idiom more generic
84011         * top/maint.mk (Exit_witness_file): New overridable variable.
84012         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
84013         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
84015 2009-06-19  Jim Meyering  <meyering@redhat.com>
84017         hash: reverse order of src/dst parameters in an internal interface
84018         * lib/hash.c (transfer_entries): Reverse order of parameters to
84019         put DST before SRC.  Adjust callers.
84021         tests: test-hash: avoid wholesale duplication
84022         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
84023         Instead, use a loop and add a single conditional.
84025         tests: test-hash: allow seed selection via a command line argument
84026         * tests/test-hash.c (get_seed): New function.
84027         (main): Use it.
84029 2009-06-19  Eric Blake  <ebb9@byu.net>
84031         hash: avoid memory leak on allocation failure
84032         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
84033         failure.  Factor repeated algorithm...
84034         (transfer_entries): ...into new helper routine.
84035         (hash_delete): React to hash_rehash return value.
84037         hash: reduce memory pressure in hash_rehash no-op case
84038         * lib/hash.c (next_prime): Avoid overflow.
84039         (hash_initialize): Factor bucket size computation...
84040         (compute_bucket_size): ...into new helper function.
84041         (hash_rehash): Use new function and open coding to reduce memory
84042         pressure, and avoid a memory leak in USE_OBSTACK code.
84043         Reported by Jim Meyering.
84045 2009-06-18  Eric Blake  <ebb9@byu.net>
84047         hash: make rotation more obvious
84048         * modules/hash (Depends-on): Add bitrotate and stdint.
84049         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
84050         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
84051         (SIZE_MAX): Rely on headers for definition.
84052         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
84053         (raw_hasher): Use rotr_sz.
84054         Suggested by Jim Meyering.
84056         hash: fix memory leak in last patch
84057         * lib/hash.c (hash_rehash): Avoid memory leak.
84059         hash: avoid no-op rehashing
84060         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
84062         hash: provide default callback functions
84063         * lib/hash.c (raw_hasher, raw_comparator): New functions.
84064         (hash_initialize): Use them as defaults.
84065         * tests/test-hash.c (main): Test this.
84067         hash: minor optimization
84068         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
84069         when possible.
84070         (hash_initialize): Document this promise.
84071         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
84072         * tests/test-hash.c (hash_compare_strings): Test this.
84074 2009-06-18  Bruno Haible  <bruno@clisp.org>
84076         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
84077         going to be replaced anyway.
84079 2009-06-18  Bruno Haible  <bruno@clisp.org>
84081         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
84082         in one place.
84083         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
84084         be replaced anyway.
84086 2009-06-18  Eric Blake  <ebb9@byu.net>
84088         hash: check for resize before insertion
84089         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
84090         threshold before insertion, so that a pathological hash_rehash
84091         that fills every bucket can still trigger another rehash.
84093 2009-06-18  Jim Meyering  <meyering@redhat.com>
84095         hash-tests: add a loop around the small tests
84096         * tests/test-hash.c (main): Repeat small tests with selected
84097         small initial table sizes.
84099 2009-06-17  Eric Blake  <ebb9@byu.net>
84101         hash: minor cleanups
84102         * lib/hash.h (hash_entry): Make opaque, by moving...
84103         * lib/hash.c (hash_entry): ...here.
84104         (hash_insert): Clarify restrictions on what can be inserted.
84105         (hash_get_next): Clarify when it is safe to remove an element
84106         during traversal.
84107         (check_tuning): Skip verification when tuning is known safe.
84108         (hash_initialize): Clarify restrictions on tuning.
84110 2009-06-17  Jim Meyering  <jim@meyering.net>
84111         and Eric Blake  <ebb9@byu.net>
84113         hash-tests: new module
84114         * modules/hash-tests: New file.
84115         * tests/test-hash.c: New file.
84117 2009-06-17  Eric Blake  <ebb9@byu.net>
84119         strstr-simple: document new module
84120         * MODULES.html.sh: Document new module.
84122         strstr, strcasestr: replace on platforms with broken memchr
84123         * modules/strstr: Split into...
84124         * modules/strstr-simple: ...new module that does not care about
84125         performance, but does care about glibc bug.
84126         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
84127         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
84128         if platform memchr is broken, per Debian bug 521737.
84129         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
84130         memchr.
84131         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
84132         * doc/posix-functions/strstr.texi (strstr): Document the fix.
84133         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
84134         * modules/mountlist (Depends-on): Add strstr-simple.
84135         * modules/gen-uni-tables (Depends-on): Likewise.
84136         * modules/argz (Depends-on): Add strstr.
84138 2009-06-17  Bruno Haible  <bruno@clisp.org>
84140         * modules/posix_spawn-internal (Depends-on): Add errno.
84142 2009-06-17  Bruno Haible  <bruno@clisp.org>
84144         Define missing ESTALE on Interix 3.5.
84145         * lib/errno.in.h (ESTALE): Assign a value if missing.
84146         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
84147         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
84148         missing.
84149         * doc/posix-headers/errno.texi: Mention the Interix bug.
84150         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
84152 2009-06-15  Eric Blake  <ebb9@byu.net>
84154         memchr, memchr2: add valgrind exception
84155         * lib/memchr.valgrind: New file.
84156         * lib/memchr2.valgrind: New file.
84157         * modules/memchr (Files): Distribute valgrind file.
84158         * modules/memchr2 (Files): Likewise.
84160         docs: memchr is no longer obsolete
84161         * MODULES.html.sh: Move memchr from obsolete to string.h section.
84162         * lib/string.in.h (memchr): Simplify logic.
84164 2009-06-14  Jim Meyering  <meyering@redhat.com>
84166         link-follow: fix the "checking..." message to not mention trailing slash
84167         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
84168         never considered trailing slashes.
84170 2009-06-14  Bruno Haible  <bruno@clisp.org>
84172         * m4/memchr.m4: Mention also the bug on IA-64.
84173         * doc/posix-functions/memchr.texi: Likewise.
84175 2009-06-12  Eric Blake  <ebb9@byu.net>
84177         memchr: detect broken x86_64 and alpha implementations
84178         * modules/memchr-tests (Depends-on): Move mmap detection...
84179         * modules/memchr (Depends-on): ...here.
84180         (configure.ac): Set indicator.
84181         * lib/string.in.h (memchr): Declare replacement.
84182         * modules/string (Makefile.am): Trigger replacement.
84183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
84184         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
84185         bugs.
84186         * doc/posix-functions/memchr.texi (memchr): Document the bug.
84187         * modules/getpagesize (License): Relax license.
84189 2009-06-11  Bruno Haible  <bruno@clisp.org>
84191         * lib/idpriv.h: Add more references.
84193 2009-06-08  Bruno Haible  <bruno@clisp.org>
84195         Tests for module 'idpriv-droptemp'.
84196         * modules/idpriv-droptemp-tests: New file.
84197         * tests/test-idpriv-droptemp.sh: New file.
84198         * tests/test-idpriv-droptemp.su.sh: New file.
84199         * tests/test-idpriv-droptemp.c: New file.
84201         New module 'idpriv-droptemp'.
84202         * lib/idpriv-droptemp.c: New file.
84203         * modules/idpriv-droptemp: New file.
84205 2009-06-08  Bruno Haible  <bruno@clisp.org>
84207         Tests for module 'idpriv-drop'.
84208         * modules/idpriv-drop-tests: New file.
84209         * tests/test-idpriv-drop.sh: New file.
84210         * tests/test-idpriv-drop.su.sh: New file.
84211         * tests/test-idpriv-drop.c: New file.
84213         New module 'idpriv-drop'.
84214         * lib/idpriv.h: New file.
84215         * lib-idpriv-drop.c: New file.
84216         * m4/idpriv.m4: New file.
84217         * modules/idpriv-drop: New file.
84219 2009-06-08  Bruno Haible  <bruno@clisp.org>
84221         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
84222         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
84223         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
84224         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
84225         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
84226         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
84227         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
84229 2009-06-08  Eric Blake  <ebb9@byu.net>
84231         test-strstr: use memory fence, when possible
84232         * tests/test-strstr.c (main): Use memory fence, in order to be
84233         more likely to trigger Debian bug 521737.
84234         * modules/strstr-tests (Files): Pull in additional files.
84236         memchr: no longer obsolete, for wider field testing
84237         * modules/memchr (Status, Notice): Delete, this module is no
84238         longer obsolete.
84239         * modules/vasnprintf (Depends-on): Add memchr.
84241 2009-06-07  Jim Meyering  <meyering@redhat.com>
84243         hash: declare some functions with the warn_unused_result attribute
84244         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
84246 2009-06-07  Bruno Haible  <bruno@clisp.org>
84248         * tests/test-alignof.c: Don't test int64_t if it does not exist.
84249         Reported by Eric Blake.
84251 2009-06-06  Eric Blake  <ebb9@byu.net>
84253         test-alignof: fix typo with long double
84254         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
84255         compiler error.
84257 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
84259         Escape non-texinfo { and }s.
84260         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
84261         markup error.
84263 2009-06-04  Jim Meyering  <meyering@redhat.com>
84265         gitlog-to-changelog: don't infloop on an empty commit log
84266         * build-aux/gitlog-to-changelog: Warn about an empty log message.
84267         Reported by Boris Petersen <transacid@centerim.org>.
84269 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
84271         version-etc: extend for packagers
84272         Add three new configure options, intended for packagers:
84273           --with-packager="packager name"
84274           --with-packager-version="packager-specific version"
84275           --with-packager-bug-reports="packager bug reporting"
84276         An example with coreutils:
84277           $ ./configure \
84278             --with-packager=Gentoo \
84279             --with-packager-bug-report=http://bugs.gentoo.org/ \
84280             --with-packager-version="patchset 1.6"
84281           $ ./src/ls --version | head -n2
84282           ls (GNU coreutils) 7.1-dirty
84283           Packaged by Gentoo (patchset 1.6)
84284         Note that the bug reporting info via --help doesn't show up because
84285         coreutils uses its own custom emit_bug_reporting_address() implementation
84286         in src/system.h.  If it didn't, it'd look like:
84287           $ ./src/ls --help | tail -n4
84288           Report bugs to <bug-coreutils@gnu.org>.
84289           Report Gentoo bugs to <http://bugs.gentoo.org/>.
84290           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
84291           General help using GNU software: <http://www.gnu.org/gethelp/>.
84292         * lib/version-etc.c: Print new information, if provided.
84293         * m4/version-etc.m4: New file.
84294         * modules/version-etc (Files): Add m4/version-etc.m4.
84295         (configure.ac): Add gl_VERSION_ETC.
84297 2009-05-31  Bruno Haible  <bruno@clisp.org>
84299         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
84300         and 'int64_t'.
84301         * modules/alignof-tests (Dependencies): Add stdint.
84302         Reported by Eric Blake.
84304 2009-05-31  Bruno Haible  <bruno@clisp.org>
84306         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
84307         restriction due to compiler bugs.
84308         Reported by Eric Blake.
84310 2009-05-31  Simon Josefsson  <simon@josefsson.org>
84311             Bruno Haible  <bruno@clisp.org>
84313         Fix test-alignof failure.
84314         * lib/alignof.h (alignof_slot): New macro.
84315         (alignof_type): New macro, with the same semantics as the previous
84316         'alignof'.
84317         (alignof): Alias to alignof_slot.
84318         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
84319         check that the results are usable as constant expressions.
84321 2009-05-31  Bruno Haible  <bruno@clisp.org>
84323         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
84324         * tests/test-memchr.c (main): Check that memchr does not read past the
84325         first occurrence of the byte.
84326         * tests/test-strstr.c (main): Update comment.
84327         Suggested by Eric Blake.
84329 2009-05-30  Bruno Haible  <bruno@clisp.org>
84331         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
84332         detail how to use dumpbin.
84333         Reported by David Byron <dbyron@dbyron.com>.
84335 2009-06-02  Simon Josefsson  <simon@josefsson.org>
84337         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
84339 2009-06-02  Simon Josefsson  <simon@josefsson.org>
84341         * m4/manywarnings.m4: Add GCC 4.4 warnings.
84343 2009-05-28  Bruno Haible  <bruno@clisp.org>
84345         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
84346         build-aux/ files.
84348 2009-05-28  Simon Josefsson  <simon@josefsson.org>
84350         * gnulib-tool (func_import): Transform license on build-aux/ files too.
84352 2009-05-27  Simon Josefsson  <simon@josefsson.org>
84354         * gnulib-tool (sed_transform_main_lib_file)
84355         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
84356         regexps.
84358 2009-05-26  Simon Josefsson  <simon@josefsson.org>
84360         * tests/test-strstr.c: Add another self-test.
84361         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
84362         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
84364 2009-05-23  Bruno Haible  <bruno@clisp.org>
84366         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
84367         change.
84369 2009-05-21  Bruno Haible  <bruno@clisp.org>
84371         Simplify use of mode_t varargs.
84372         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
84373         uses 'mode_t' or 'int'.
84374         * lib/openat.c (openat): Likewise.
84375         * lib/open-safer.c (open_safer): Likewise.
84376         * m4/mode_t.m4: New file.
84377         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
84378         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
84379         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
84380         * modules/open (Files): Add m4/mode_t.m4.
84381         * modules/openat (Files): Likewise.
84382         * modules/fcntl-safer (Files): Likewise.
84383         Suggested by Eric Blake.
84385 2009-05-21  Pádraig Brady  <P@draigbrady.com>
84387         * doc/glibc-functions/fallocate.texi: New file.
84388         * doc/gnulib.texi: Include it.
84390 2009-05-21  Eric Blake  <ebb9@byu.net>
84391             Bruno Haible  <bruno@clisp.org>
84393         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
84394         invocations.
84395         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
84397 2009-05-21  Eric Blake  <ebb9@byu.net>
84398             Bruno Haible  <bruno@clisp.org>
84400         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
84401         include_next. Fix of 2008-11-20 commit.
84402         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
84403         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
84404         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
84405         NEXT_MATH_H.
84406         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
84407         instead of NEXT_MATH_H.
84409 2009-05-21  Bruno Haible  <bruno@clisp.org>
84411         Avoid redefinition warnings for SIZE_MAX.
84412         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
84413         Reported by Simon Josefsson.
84415 2009-05-21  Bruno Haible  <bruno@clisp.org>
84417         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
84418         AC_CACHE_VAL.
84420 2009-05-20  Bruno Haible  <bruno@clisp.org>
84422         Make zeroptr.h work on mingw.
84423         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
84424         mprotect.
84425         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
84426         * modules/memchr2-tests (configure.ac): Likewise.
84427         * modules/memcmp-tests (configure.ac): Likewise.
84428         * modules/memmem-tests (configure.ac): Likewise.
84429         * modules/memrchr-tests (configure.ac): Likewise.
84430         Reported by Simon Josefsson.
84432 2009-05-20  Simon Josefsson  <simon@josefsson.org>
84434         * tests/test-glob.c: Include string.h for strcmp prototype.
84436 2009-05-20  Simon Josefsson  <simon@josefsson.org>
84438         * modules/getdelim (Depends-on): Add explicit stdint, although it
84439         was implicitly already pulled in via realloc-posix.
84440         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
84442 2009-05-20  Simon Josefsson  <simon@josefsson.org>
84444         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
84445         G. Christensen" <tgc@jupiterrise.com>.
84446         * m4/sys_socket_h.m4: Check for sa_family_t.
84447         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
84448         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
84449         * tests/test-sys_socket.c: Check that sa_family_t works.
84451 2009-05-18  Eric Blake  <ebb9@byu.net>
84453         maint.mk: allow gnulib_dir in VPATH build
84454         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
84456 2009-05-15  Jim Meyering  <meyering@redhat.com>
84458         maint.mk: Give gnulib_dir a default definition.
84459         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
84460         Thus, most packages no longer need to specify this variable in cfg.mk
84462 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
84464         rename.m4: fix typos that would make non-mingw cross-configure fail
84465         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
84467 2009-05-13  Eric Blake  <ebb9@byu.net>
84469         mmap-anon: avoid out-of-order autoconf expansion
84470         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
84471         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
84472         * modules/memchr-tests (Depends-on): Add extensions.
84473         * modules/memchr2-tests (Depends-on): Add extensions.
84474         * modules/memcmp-tests (Depends-on): Add extensions.
84475         * modules/memmem-tests (Depends-on): Add extensions.
84476         * modules/memrchr-tests (Depends-on): Add extensions.
84478 2009-05-13  Bruno Haible  <bruno@clisp.org>
84480         Make some tests ISO C 99 compliant.
84481         * tests/zerosize-ptr.h: New file.
84482         * tests/test-memchr.c: Include zerosize-ptr.h.
84483         (main): Use a zero-size object pointer instead of NULL.
84484         * tests/test-memchr2.c: Include zerosize-ptr.h.
84485         (main): Use a zero-size object pointer instead of NULL.
84486         * tests/test-memcmp.c: Include zerosize-ptr.h.
84487         (main): Use a zero-size object pointer instead of NULL.
84488         * tests/test-memmem.c: Include zerosize-ptr.h.
84489         (main): Use a zero-size object pointer instead of NULL.
84490         * tests/test-memrchr.c: Include zerosize-ptr.h.
84491         (main): Use a zero-size object pointer instead of NULL.
84492         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
84493         m4/mmap-anon.m4.
84494         (Depends-on): Add getpagesize.
84495         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84496         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
84497         m4/mmap-anon.m4.
84498         (Depends-on): Add getpagesize.
84499         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84500         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
84501         m4/mmap-anon.m4.
84502         (Depends-on): Add getpagesize.
84503         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84504         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
84505         m4/mmap-anon.m4.
84506         (Depends-on): Add getpagesize.
84507         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84508         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
84509         m4/mmap-anon.m4.
84510         (Depends-on): Add getpagesize.
84511         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
84513 2009-05-12  Bruno Haible  <bruno@clisp.org>
84515         Tests for module 'alignof'.
84516         * modules/alignof-tests: New file.
84517         * tests/test-alignof.c: New file.
84519 2009-05-12  Bruno Haible  <bruno@clisp.org>
84521         Fix alignof macro.
84522         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
84523         vendor compilers that are always correct.
84525 2009-05-12  Bruno Haible  <bruno@clisp.org>
84527         Make the MAP_ANONYMOUS detection work on HP-UX 11.
84528         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
84529         not whether its fully works.
84531 2009-05-12  Bruno Haible  <bruno@clisp.org>
84533         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
84535 2009-05-12  Jim Meyering  <meyering@redhat.com>
84537         * top/maint.mk: Adjust backslash alignment.
84539 2009-05-11  Simon Josefsson  <simon@josefsson.org>
84541         * top/maint.mk: Make $(srcdir)/build-aux configurable.
84543 2009-05-11  Eric Blake  <ebb9@byu.net>
84545         argp: avoid undefined behavior
84546         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
84547         macros.
84549 2009-05-08  Simon Josefsson  <simon@josefsson.org>
84551         * tests/test-vc-list-files-git.sh: Do git config of user.email and
84552         user.name to prevent git commit from complaining.
84554 2009-05-10  Bruno Haible  <bruno@clisp.org>
84556         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
84557         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
84558         it rewrites every file name only once.
84559         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
84561 2009-05-08  Bruno Haible  <bruno@clisp.org>
84563         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
84564         instead of 'max'.
84566 2009-05-08  Simon Josefsson  <simon@josefsson.org>
84568         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
84569         sockaddr_storage test.
84571 2009-05-07  Simon Josefsson  <simon@josefsson.org>
84573         * modules/sys_socket (Makefile.am): Substitute
84574         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
84575         * m4/sys_socket_h.m4: Check for sockaddr_storage.
84576         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
84577         * tests/test-sys_socket.c: Check sockaddr_storage.
84579 2009-05-08  Bruno Haible  <bruno@clisp.org>
84581         New module 'alignof'.
84582         * lib/alignof.h: New file.
84583         * modules/alignof: New file.
84585 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84586             Bruno Haible  <bruno@clisp.org>
84588         Fix test-file-has-acl on FreeBSD.
84589         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
84590         mask is implicitly added.
84591         * tests/test-file-has-acl.c: Include <signal.h>.
84592         (main): Terminate the test after 5 seconds.
84593         * modules/acl-tests (configure.ac): Check for alarm function.
84595 2009-05-04  Bruno Haible  <bruno@clisp.org>
84597         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
84598         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
84599         * modules/errno (configure.ac): Drop AC_REQUIRE.
84600         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
84601         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
84603 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84605         * modules/glob-tests: New module.
84606         * tests/test-glob.c: Add.
84608 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84610         * modules/fnmatch-tests: New module.
84611         * tests/test-fnmatch.c: Add.
84613 2009-05-04  Eric Blake  <ebb9@byu.net>
84615         maint: make the new no-submodule-changes rule VPATH-safe
84616         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
84618 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84619             Bruno Haible  <bruno@clisp.org>
84621         acl: Fix infinite loop on FreeBSD.
84622         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
84623         of return value from acl_get_entry.
84624         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
84625         Likewise.
84627 2009-05-03  Bruno Haible  <bruno@clisp.org>
84629         * lib/acl-internal.h (acl_entries): Clarify return value.
84630         * lib/acl_entries.c (acl_entries): Likewise.
84632 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84634         Bug fix in acl module.
84635         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
84637 2009-05-03  Bruno Haible  <bruno@clisp.org>
84639         Create gperf-generated file in the source dir, not in the build dir.
84640         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
84641         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
84642         * modules/unicase/locale-language (unicase/locale-languages.h):
84643         Likewise.
84644         * modules/unicase/special-casing (unicase/special-casing-table.h):
84645         Likewise.
84646         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
84647         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
84648         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
84649         Reported by Ralf Wildenhues.
84651 2009-05-03  Bruno Haible  <bruno@clisp.org>
84653         * modules/fnmatch (Description, configure.ac): Taken from
84654         fnmatch-posix.
84655         * modules/fnmatch-posix: Turn into a symbolic reference to the
84656         'fnmatch' module, and deprecate.
84657         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
84659 2009-05-03  Bruno Haible  <bruno@clisp.org>
84661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
84662         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
84663         Reported by Ralf Wildenhues.
84665 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84667         * m4/fnmatch.m4: Fix fnmatch re-define.
84669 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84671         priv-set: new module and tests; adapt write-any-file
84672         * lib/priv-set.c: New file.
84673         * lib/priv-set.h: New file.
84674         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
84675         * lib/write-any-file.c: Simplify by using priv-set module.
84676         * m4/priv-set.m4: New file.
84677         * modules/priv-set: New file.
84678         * modules/unlinkdir: Add dependency on priv-set module.
84679         * modules/write-any-file: Likewise.
84681         Tests for module 'priv-set'.
84682         * modules/priv-set-tests: New file.
84683         * tests/test-priv-set.c: New file.
84685 2009-05-03  Jim Meyering  <meyering@redhat.com>
84686             Bruno Haible  <bruno@clisp.org>
84688         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
84689         use the converted UTF-8 variant of the name instead.
84691 2009-05-03  Jim Meyering  <meyering@redhat.com>
84693         tests: tighten some getdate tests
84694         * tests/test-getdate.c (main): Tighten tests: require equality,
84695         not just greater than.  Set TZ envvar to UTC0.
84697 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
84699         getdate: correctly interpret "next monday" when run on a Monday
84700         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
84701         that e.g., "next tues" (when run on a tuesday) results in a date
84702         that is one week in the future, and not today's date.
84703         I.e., add a week when the wday is the same as the current one.
84704         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
84705         and earlier by Martin Bernreuther and Jan Minář.
84706         * tests/test-getdate.c (main): Check that "next DAY" is always in
84707         the future and that "last DAY" is always in the past.
84709 2009-05-02  Jim Meyering  <meyering@redhat.com>
84711         build: ensure that a release build fails when a submodule is unclean
84712         * top/maint.mk (no-submodule-changes): New rule.
84713         (alpha beta major): Depend on it.
84715 2009-05-02  Bruno Haible  <bruno@clisp.org>
84717         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
84718         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
84719         shell variable gl_fnmatch_required to detect which variant is
84720         requested.
84721         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
84722         gl_FUNC_FNMATCH_POSIX.
84723         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
84724         exclude fnmatch-posix.
84726 2009-05-02  Bruno Haible  <bruno@clisp.org>
84728         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
84729         * modules/mbsrtowcs (License): Change to LGPLv2+.
84730         * modules/strnlen1 (License): Likewise.
84731         Reported by Simon Josefsson.
84733 2009-05-02  Bruno Haible  <bruno@clisp.org>
84735         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
84736         "cross".
84737         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
84738         gnulib-tool was called with option --source-base=lib.
84740 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84742         Use automake *-local hooks without commands, for extensibility.
84743         * modules/localcharset (Makefile.am): Rename install-exec-local
84744         rule to install-exec-localcharset, and make it a prerequisite of
84745         install-exec-local.  Likewise, rename the uninstall-local rule to
84746         uninstall-localcharset, and make it a prerequisite of the former.
84748 2009-05-01  Bruno Haible  <bruno@clisp.org>
84750         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
84751         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84752         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
84753         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
84754         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
84755         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84756         m4/locale-zh.m4, m4/codeset.m4.
84758         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84759         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
84760         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84761         m4/locale-zh.m4.
84763         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
84764         REPLACE_WCRTOMB if mbstate_t must be replaced.
84765         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
84766         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
84768 2009-05-01  Bruno Haible  <bruno@clisp.org>
84770         Avoid compiler warnings when redefining macros defined by <libintl.h>.
84771         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
84772         dngettext, dcngettext, textdomain, bindtextdomain,
84773         bind_textdomain_codeset): Undefine before redefining.
84775 2009-04-30  Bruno Haible  <bruno@clisp.org>
84777         Fix bug introduced on 2009-04-25.
84778         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
84779         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
84780         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
84781         is defined.
84782         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
84783         is defined.
84784         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
84785         is defined.
84786         Reported by Elbert_Pol <elbert.pol@gmail.com>.
84788 2009-04-28  Bruno Haible  <bruno@clisp.org>
84790         Comment tweaks.
84791         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
84792         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
84793         * lib/unicase.h (u*_casexfrm): Likewise.
84794         Reported by Paolo Bonzini.
84796 2009-04-28  Bruno Haible  <bruno@clisp.org>
84798         Fix a compilation error.
84799         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
84800         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
84801         Reported by Jim Meyering.
84803 2009-04-27  Bruno Haible  <bruno@clisp.org>
84805         New module 'libunistring'.
84806         * modules/libunistring: New file.
84807         * m4/libunistring.m4: New file.
84808         * MODULES.html.sh (Unicode string functions): Add it.
84810 2009-04-27  Eric Blake  <ebb9@byu.net>
84812         maint.mk: allow package-specific header to provide <config.h>
84813         * top/maint.mk (sc_require_config_h): New variable.
84814         (sc_require_config_h, sc_require_config_h_first): Use it.
84816 2009-04-27  Simon Josefsson  <simon@josefsson.org>
84818         * top/maint.mk (sc_avoid_if_before_free): Except
84819         useless-if-before-free script.
84821 2009-04-27  Eric Blake  <ebb9@byu.net>
84823         maintainer-makefile: depend on all required helper scripts
84824         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
84825         useless-if-before-free.
84826         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
84827         version, rather than assuming gnulib checkout is available.
84828         Reported by Simen Josefsson.
84830 2009-04-26  Bruno Haible  <bruno@clisp.org>
84832         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
84833         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
84834         "../" or "..".
84836 2009-04-26  Bruno Haible  <bruno@clisp.org>
84838         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
84839         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
84840         AC_LIB_HAVE_LINKFLAGS.
84842 2009-04-26  Bruno Haible  <bruno@clisp.org>
84844         Simplify calling convention of u*_conv_from_encoding.
84845         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
84846         u32_conv_from_encoding): Expect a resultbuf argument and return the
84847         result directly as a pointer.
84848         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
84849         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
84850         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
84851         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
84852         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
84853         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84854         Update.
84855         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
84856         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
84857         * lib/vasnprintf.c (VASNPRINTF): Update.
84858         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
84859         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
84860         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
84861         * NEWS: Mention the change.
84863 2009-04-26  Bruno Haible  <bruno@clisp.org>
84865         Simplify calling convention of u*_conv_to_encoding.
84866         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
84867         u32_conv_to_encoding): Expect a resultbuf argument and return the
84868         result directly as a pointer.
84869         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84870         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
84871         freeing scaled_offsets if mem_iconveha failed.
84872         * lib/unicase/u-casexfrm.h (FUNC): Update.
84873         * lib/uninorm/u-normxfrm.h (FUNC): Update.
84874         * lib/vasnprintf.c (VASNPRINTF): Update.
84875         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
84876         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
84877         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
84878         * NEWS: Mention the change.
84880 2009-04-26  Bruno Haible  <bruno@clisp.org>
84882         Avoid test failures on AIX and OSF/1.
84883         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
84884         malloc(0).
84885         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84886         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84887         Likewise.
84888         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
84889         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
84890         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
84891         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
84892         * doc/posix-functions/malloc.texi: Document the portability problem
84893         related to malloc(0).
84895 2009-04-26  Bruno Haible  <bruno@clisp.org>
84897         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
84898         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
84899         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
84901 2009-04-25  Bruno Haible  <bruno@clisp.org>
84903         Avoid link error when creating a namespace clean library.
84904         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
84905         as macro with arguments if already defined as an alias.
84906         * lib/signbitf.c (gl_signbitf): Don't undefine.
84907         * lib/signbitd.c (gl_signbitd): Don't undefine.
84908         * lib/signbitl.c (gl_signbitl): Don't undefine.
84910 2009-04-25  Jim Meyering  <meyering@redhat.com>
84912         vc-list-files: fix another quoting bug
84913         * build-aux/vc-list-files: Avoid sed backslash expansion
84914         of pathological directory names.
84916 2009-04-25  Eric Blake  <ebb9@byu.net>
84918         vc-list-files: fix shell quoting error
84919         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
84920         timestamp.
84922 2009-04-25  Jim Meyering  <meyering@redhat.com>
84924         vc-list-files: restore lost functionality with subdir argument
84925         * build-aux/vc-list-files: When given a non-"." sub-directory
84926         argument, substitute the $dir/ prefix back onto each resulting name.
84927         Otherwise, coreutils' root_tests check would fail.
84929 2009-04-24  Eric Blake  <ebb9@byu.net>
84931         vc-list-files: ignore git symlinks
84932         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
84933         than ls-files, to ignore git symlinks.
84935         maint.mk: import improvements from m4
84936         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
84937         (move_if_change): Delete unused macro.
84938         (news-date-check, vc-diff-check): Support VPATH builds.
84939         (announcement): Likewise.  Split --bootstrap-tools list...
84940         (boostrap-tools): ...into separate list, which can be overridden
84941         in cfg.mk.
84942         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
84943         requiring dependency on useless-if-before-free module.
84944         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
84945         Support VPATH builds.
84947 2009-04-24  Jim Meyering  <meyering@redhat.com>
84949         maint.mk: remove coreutils-specific rules and variables
84950         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
84951         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
84952         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
84954         maint.mk: remove obsolete rule
84955         * top/maint.mk (rel-check): Remove rule.
84956         (WGET, WGETFLAGS): Remove now-unused variables.
84958 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84960         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
84961         consistency.
84963         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
84964         '$(PATH_SEPARATOR)' instead of ':'.
84966 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84968         * lib/getopt1.c (main): Use 'const' for static array.
84970 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84972         * top/maint.mk: Sync with coreutils.
84973         * NEWS: Explain incompatibilities.
84975 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84976             Bruno Haible  <bruno@clisp.org>
84978         Fix cross-compilation results.
84979         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
84980         statement, as third argument of AC_TRY_RUN.
84981         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
84982         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
84983         Likewise.
84984         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
84985         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
84986         Likewise.
84987         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
84988         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
84989         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
84991 2009-04-20  Bruno Haible  <bruno@clisp.org>
84993         Avoid test failure on mingw.
84994         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
84996 2009-04-20  Bruno Haible  <bruno@clisp.org>
84998         Avoid compilation error on mingw.
84999         * modules/localename-tests (Depends-on): Add locale.
85001 2009-04-19  Bruno Haible  <bruno@clisp.org>
85003         Support for building a shared library on Windows platforms.
85004         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
85005         (main): Test the presence of UNINORM_NFC here.
85006         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
85007         (main): Test the presence of UNINORM_NFD here.
85008         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
85009         (main): Test the presence of UNINORM_NFKC here.
85010         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
85011         (main): Test the presence of UNINORM_NFKD here.
85013 2009-04-19  Bruno Haible  <bruno@clisp.org>
85015         Avoid a compiler warning.
85016         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
85017         Change type of variable 'sequence'.
85019 2009-04-19  Bruno Haible  <bruno@clisp.org>
85021         * modules/configmake (Makefile.am): When the contents of configmake.h
85022         does not change, arrange to preserve its modification time.
85024 2009-04-17  Simon Josefsson  <simon@josefsson.org>
85026         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
85027         gettext domain.
85029 2009-04-16  Jim Meyering  <meyering@redhat.com>
85031         useless-if-before-free: improve conversion code
85032         * build-aux/useless-if-before-free: Adjust code-in-comment to match
85033         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
85035 2009-04-14  Bruno Haible  <bruno@clisp.org>
85037         * modules/fcntl (Depends-on): Add extensions.
85038         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
85040 2009-04-12  Ben Pfaff  <blp@gnu.org>
85042         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
85043         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
85045 2009-03-20  Ben Pfaff  <blp@gnu.org>
85047         Make rename replace existing destinations on Windows.
85048         * m4/rename.m4: Add test for Mingw.
85049         * lib/rename.c: Add rename replacement that uses MoveFileEx with
85050         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
85051         * doc/posix-functions/rename.texi: Document.
85053 2009-04-10  Bruno Haible  <bruno@clisp.org>
85055         New include file "iconveh.h".
85056         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
85057         * lib/striconveh.h: Include it.
85058         (enum iconv_ilseq_handler): Remove definition.
85059         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
85060         striconveh.h.
85061         * lib/striconveha.c: Include striconveh.h.
85062         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
85063         * modules/striconveh (Files): Add lib/iconveh.h.
85064         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
85065         lib/striconveh.h.
85067 2009-04-10  Bruno Haible  <bruno@clisp.org>
85069         * lib/uniconv.h: Update comment.
85071 2009-04-10  Bruno Haible  <bruno@clisp.org>
85073         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
85074         always.
85075         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
85076         * lib/unistr/u16-mbtouc-aux.c: Likewise.
85077         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
85078         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
85079         "unistring-notinline.h", so that the function gets defined always.
85080         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
85081         * lib/unistr/u8-uctomb.c: Likewise.
85082         * lib/unistr/u16-mbtouc.c: Likewise.
85083         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
85084         * lib/unistr/u16-uctomb.c: Likewise.
85085         * lib/unistr/u32-mbtouc.c: Likewise.
85086         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
85087         * lib/unistr/u32-uctomb.c: Likewise.
85089 2009-04-10  Bruno Haible  <bruno@clisp.org>
85091         Mark 'utime' obsolete.
85092         * modules/utime (Status, Notice): New sections.
85093         Suggested by Jim Meyering.
85095         Fix cross-compile guess for utime test.
85096         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
85097         autoconf.
85098         * doc/posix-functions/utime.texi: Give more precisions.
85099         Reported by Jan <ipif@ymail.com>.
85101 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
85103         filevercmp: correct today's change
85104         * lib/filevercmp.c: Also handle coreutils' test inputs.
85105         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
85107         Fix regression in 'filevercmp' module. Thanks Sven Joachim
85108         for reporting it.
85109         * lib/filevercmp.c: Special handle for "", "." and "..".
85110         * tests/test-filevercmp.c: Enlarge the set suite.
85112 2009-04-07  Jim Meyering  <meyering@redhat.com>
85114         useless-if-before-free: show how to remove braced useless free, too
85115         * build-aux/useless-if-before-free: still only in a comment, though.
85117 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
85119         maint.mk: import changes to syntax-check macros from coreutils
85120         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
85121         Use them in the relevant macros.
85123 2009-04-06  Bruno Haible  <bruno@clisp.org>
85125         Fix unportable use of bit-fields.
85126         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
85127         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
85128         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
85130 2009-04-06  Bruno Haible  <bruno@clisp.org>
85132         Avoid test failures on AIX and OSF/1.
85133         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
85134         that malloc(0) = NULL.
85135         * tests/unicase/test-u8-tolower.c (check): Likewise.
85136         * tests/unicase/test-u8-totitle.c (check): Likewise.
85137         * tests/unicase/test-u8-toupper.c (check): Likewise.
85138         * tests/unicase/test-u16-casefold.c (check): Likewise.
85139         * tests/unicase/test-u16-tolower.c (check): Likewise.
85140         * tests/unicase/test-u16-totitle.c (check): Likewise.
85141         * tests/unicase/test-u16-toupper.c (check): Likewise.
85142         * tests/unicase/test-u32-casefold.c (check): Likewise.
85143         * tests/unicase/test-u32-tolower.c (check): Likewise.
85144         * tests/unicase/test-u32-totitle.c (check): Likewise.
85145         * tests/unicase/test-u32-toupper.c (check): Likewise.
85146         * tests/uninorm/test-u8-nfc.c (check): Likewise.
85147         * tests/uninorm/test-u8-nfd.c (check): Likewise.
85148         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
85149         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
85150         * tests/uninorm/test-u16-nfc.c (check): Likewise.
85151         * tests/uninorm/test-u16-nfd.c (check): Likewise.
85152         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
85153         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
85154         * tests/uninorm/test-u32-nfc.c (check): Likewise.
85155         * tests/uninorm/test-u32-nfd.c (check): Likewise.
85156         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
85157         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
85159 2009-04-05  Bruno Haible  <bruno@clisp.org>
85161         Work around an autoconf limitation.
85162         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
85163         comment line if it would be longer than 3 KB.
85165 2009-04-05  Bruno Haible  <bruno@clisp.org>
85167         Avoid test failure with libiconv-1.13.
85168         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
85169         of the expected test results.
85171 2009-04-05  Bruno Haible  <bruno@clisp.org>
85173         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
85174         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
85175         that it should be installed.
85177 2009-04-05  Bruno Haible  <bruno@clisp.org>
85179         * gnulib-tool: New option --copy-file.
85180         (func_usage): Document it.
85181         (func_dest_tmpfilename): Moved out of func_import.
85182         (func_add_file, func_update_file): New functions, extracted from
85183         func_import.
85184         (func_import): Update.
85186 2009-04-05  Karl Berry  <karl@gnu.org>
85188         * README: prominently mention gnulib-tool.
85189         Rearrange sections so getting the code is near the top.
85191 2009-04-05  Bruno Haible  <bruno@clisp.org>
85193         * lib/unicase.h: Mention u*_cmp2.
85194         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
85195         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
85196         * lib/unicase/ulc-casecmp.c: Likewise.
85197         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
85198         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
85199         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
85200         unistr/u8-cmp.
85201         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
85202         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
85203         unistr/u16-cmp.
85204         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
85205         unistr/u32-cmp.
85207         * lib/uninorm.h: Mention u*_cmp2.
85208         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
85209         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
85210         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
85211         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
85212         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
85213         unistr/u8-cmp.
85214         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
85215         unistr/u16-cmp.
85216         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
85217         unistr/u32-cmp.
85219         New module 'unistr/u32-cmp2'.
85220         * lib/unistr/u32-cmp2.c: New file.
85221         * modules/unistr/u32-cmp2: New file.
85223         New module 'unistr/u16-cmp2'.
85224         * lib/unistr/u16-cmp2.c: New file.
85225         * modules/unistr/u16-cmp2: New file.
85227         New module 'unistr/u8-cmp2'.
85228         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
85229         * lib/unistr/u8-cmp2.c: New file.
85230         * lib/unistr/u-cmp2.h: New file.
85231         * modules/unistr/u8-cmp2: New file.
85233 2009-04-05  Bruno Haible  <bruno@clisp.org>
85235         * lib/unictype.h (uc_property_is_valid): New macro.
85236         * tests/unictype/test-pr_byname.c (main): Use it.
85238         * lib/unistr.h: Doc fixes.
85239         * lib/uniconv.h: Doc fixes.
85240         * lib/unictype.h: Doc fixes.
85242 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
85244         Port coreutils 7.2 to Solaris 8.
85246         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
85247         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
85248         for Solaris 8.  This is a bit of a hack, as it means it's the
85249         caller's responsibility to add -lnsl if needed, but most likely it
85250         won't be needed since only getaddrinfo uses this and getaddrinfo
85251         isn't needed on Solaris 8.
85253         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
85254         problem to Solaris 8 encountered with coreutils 7.2, which
85255         resulted in a message "fnmatch.c:292: warning: passing argument 4
85256         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
85257         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
85259 2009-04-03  Simon Josefsson  <simon@josefsson.org>
85261         * m4/ld-version-script.m4: Add FIXME comment.
85263 2009-04-02  Simon Josefsson  <simon@josefsson.org>
85265         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
85266         SOVERSION variable.
85268 2009-04-02  Bruno Haible  <bruno@clisp.org>
85270         * Makefile (info, html, dvi, pdf): Combine the rules.
85271         Suggested by Jim Meyering.
85273 2009-04-01  Bruno Haible  <bruno@clisp.org>
85275         * Makefile (info, html, dvi, pdf): New targets.
85276         Reported by Reuben Thomas <rrt@sc3d.org>.
85278 2009-04-01  Bruno Haible  <bruno@clisp.org>
85280         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
85281         can be put into PATH.
85282         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
85284 2009-04-01  Bruno Haible  <bruno@clisp.org>
85286         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
85288 2009-04-01  Bruno Haible  <bruno@clisp.org>
85290         Rename module 'visibility'.
85291         * modules/lib-symbol-visibility: Renamed from modules/visibility.
85292         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
85293         * doc/gnulib.texi: Update.
85294         * MODULES.html.sh (Misc): Update.
85295         * NEWS: Mention the change.
85297 2009-04-01  Simon Josefsson  <simon@josefsson.org>
85299         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
85300         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
85301         Eric Blake <ebb9@byu.net> for review.
85302         * MODULES.html.sh: Add lib-msvc-compat.
85303         * doc/gnulib.texi: Link to new section.
85304         * m4/ld-output-def.m4: New file.
85305         * doc/ld-output-def.texi: New file.
85307 2009-04-01  Simon Josefsson  <simon@josefsson.org>
85309         Rename ld-version-script to lib-symbol-versions.  Suggested by
85310         Bruno Haible <bruno@clisp.org>.
85311         * modules/ld-version-script: Renamed to lib-symbol-versions.
85312         * doc/ld-version-script.texi: Fix module name.
85313         * MODULES.html.sh: Add lib-symbol-versions.
85315 2009-03-31  Simon Josefsson  <simon@josefsson.org>
85317         * modules/u64-tests: New file.
85318         * tests/test-u64.c: New file.
85320 2009-03-04  Simon Josefsson  <simon@josefsson.org>
85322         * MODULES.html.sh: Mention u64.
85323         * modules/u64: New module.
85324         * modules/crypto/sha512: Depend on u64 module instead of providing
85325         u64.h.
85327 2009-03-27  Eric Blake  <ebb9@byu.net>
85329         test-strerror: make debugging EAI_SYSTEM easier
85330         * modules/getaddrinfo-tests (Depends-on): Add strerror.
85331         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
85332         failure was EAI_SYSTEM.
85334 2009-03-25  Bruno Haible  <bruno@clisp.org>
85336         Fix a problem with --enable-relocatable on Solaris 7.
85337         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
85338         since 2008-02-24.
85340 2009-03-25  Eric Blake  <ebb9@byu.net>
85342         test-sockets: avoid gcc warning
85343         * tests/test-sockets.c (main): Silence compiler warning.
85345 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
85347         New modules nproc, pthread, contributed by Glen Lenker.
85349         * MODULES.html.sh: Add pthread, nproc.
85350         * lib/nproc.c: New file.
85351         * lib/nproc.h: New file.
85352         * lib/pthread.in.h: New file.
85353         * m4/pthread.m4: New file.
85354         * modules/nproc: New file.
85355         * modules/pthread: New file.
85357 2009-03-24  Simon Josefsson  <simon@josefsson.org>
85359         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
85360         New variable.
85362 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
85364         filevercmp: handle simple~ and numbered.~3~ backup suffixes
85365         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
85366         * tests/test-filevercmp.c: Add tests for backup suffixes.
85368 2009-03-24  Simon Josefsson  <simon@josefsson.org>
85370         * modules/stdlib (Depends-on): Add stdint, needed when defining
85371         struct random_data on, for example, HP-UX 10.20.  Reported by
85372         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85374 2009-03-24  Simon Josefsson  <simon@josefsson.org>
85376         * lib/readline.c (readline): Call fflush on stdout after printing
85377         prompt.
85379 2009-03-20  Bruno Haible  <bruno@clisp.org>
85381         Remove dependency from 'close' module to -lws2_32 on native Windows.
85382         * lib/close-hook.h: New file.
85383         * lib/close-hook.c: New file.
85384         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
85385         w32sock.h.
85386         (_gl_close_fd_maybe_socket): Remove function.
85387         (rpl_close): Invoke execute_all_close_hooks instead of
85388         _gl_close_fd_maybe_socket.
85389         * lib/sockets.c: Include close-hook.h, w32sock.h.
85390         (close_fd_maybe_socket): New function, essentially from lib/close.c.
85391         (close_sockets_hook): New variable.
85392         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
85393         (gl_sockets_cleanup): Unregister it.
85394         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
85395         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
85396         * modules/close-hook: New file.
85397         * modules/close (Files): Remove lib/w32sock.h.
85398         (Depends-on): Add close-hook.
85399         (Link): Remove section.
85400         * modules/sockets (Files): Add lib/w32sock.h.
85401         (Depends-on): Add close-hook.
85402         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
85403         invocation.
85404         * NEWS: Mention that LIB_CLOSE is gone.
85406 2009-03-23  Eric Blake  <ebb9@byu.net>
85408         signal-tests: test previous patch
85409         * tests/test-signal.c: New file.
85410         * modules/signal-tests: Likewise.
85412         signal.h: always support 'volatile sig_atomic_t'
85413         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
85414         (gl_SIGNAL_H_DEFAULTS): Add a default.
85415         * modules/signal (Makefile.am): Substitute if needed.
85416         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
85417         users can blindly add volatile.
85418         * doc/posix-headers/signal.texi (signal.h): Document it.
85419         Reported by Matthew Woehlke.
85421 2009-03-23  Jim Meyering  <meyering@redhat.com>
85423         pathmax: PATH_MAX: use pathconf only when available
85424         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
85425         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
85426         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
85427         This avoids a link failure in a PSP cross-compilation environment
85428         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
85430         * lib/vasnprintf.c (divide): Fix typo in comment.
85432 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85434         * gnulib-tool (func_filter_filelist): Fix comment.
85436 2009-03-20  Bruno Haible  <bruno@clisp.org>
85438         Make sockets.h self-contained.
85439         * lib/sockets.c: Include sockets.h first.
85440         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
85442 2009-03-19  Eric Blake  <ebb9@byu.net>
85444         doc: mention more functions added in cygwin 1.7.0
85445         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
85446         addition.
85447         * doc/posix-functions/log2f.texi: Likewise.
85449 2009-03-19  Jim Meyering  <meyering@redhat.com>
85451         fsusage: avoid syntax error due to statement-before-declaration
85452         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
85453         after all declarations.  Reported by Matthew Woehlke in
85454         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
85456 2009-03-18  Eric Blake  <ebb9@byu.net>
85458         build-aux/compile: sync from automake
85459         * build-aux/compile: New file, from automake.
85460         * config/srclist.txt: Mention build-aux/compile.
85462 2009-03-17  Bruno Haible  <bruno@clisp.org>
85464         * lib/git-merge-changelog.c: Fix typo in comment.
85465         Reported by Reuben Thomas <rrt@sc3d.org>.
85467 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
85469         * m4/regex.m4: update and improve help for
85470         --without-included-regex.
85472 2009-03-17  Simon Josefsson  <simon@josefsson.org>
85474         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
85475         failure on missing include files.
85477 2009-03-17  Eric Blake  <ebb9@byu.net>
85479         doc: mention more functions added in cygwin 1.7.0
85480         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
85481         addition.
85482         * doc/posix-functions/fwscanf.texi: Likewise.
85483         * doc/posix-functions/swprintf.texi: Likewise.
85484         * doc/posix-functions/swscanf.texi: Likewise.
85485         * doc/posix-functions/vfwprintf.texi: Likewise.
85486         * doc/posix-functions/vfwscanf.texi: Likewise.
85487         * doc/posix-functions/vswprintf.texi: Likewise.
85488         * doc/posix-functions/vswscanf.texi: Likewise.
85489         * doc/posix-functions/vwprintf.texi: Likewise.
85490         * doc/posix-functions/vwscanf.texi: Likewise.
85491         * doc/posix-functions/wcscasecmp.texi: Likewise.
85492         * doc/posix-functions/wcsdup.texi: Likewise.
85493         * doc/posix-functions/wcsftime.texi: Likewise.
85494         * doc/posix-functions/wcsncasecmp.texi: Likewise.
85495         * doc/posix-functions/wprintf.texi: Likewise.
85496         * doc/posix-functions/wscanf.texi: Likewise.
85497         * doc/glibc-functions/gethostbyname2.texi: Likewise.
85499 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85501         maint.mk: really add $(AM_MAKEFLAGS)
85502         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
85503         was inadvertently omitted in the last commit.
85504         Spotted by Bruno Haible.
85506         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
85507         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
85508         $(AM_MAKEFLAGS)' rather than plain `make'.
85510         gnulib-tool: execute $MAKE not make
85511         * gnulib-tool: Default $MAKE to 'make'.
85512         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
85513         than make.  Initialize $MAKE in the do-autobuild script.
85515         gnulib-tool: use $MAKE not make in generated files
85516         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
85517         make, in generated files.  Initialize $MAKE in the do-autobuild
85518         script.
85520         * top/GNUmakefile (_have-git-version-gen): Fix typo.
85522         GNUmakefile: disable parallelism only for multiple, recursive targets
85523         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
85524         additions in the Makefile.
85525         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
85526         by Automake.
85527         (.NOTPARALLEL): Only disable parallel builds if multiple targets
85528         are listed on the command line and at least one of them is
85529         listed in $(ALL_RECURSIVE_TARGETS).
85531 2009-03-14  Bruno Haible  <bruno@clisp.org>
85533         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
85534         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
85535         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
85536         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
85537         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
85538         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
85539         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
85540         unistr/u8-uctomb.
85541         * modules/unistr/u8-strchr (Depends-on): Likewise.
85542         * modules/unistr/u8-strrchr (Depends-on): Likewise.
85543         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
85544         unistr/u16-uctomb.
85545         * modules/unistr/u16-strchr (Depends-on): Likewise.
85546         * modules/unistr/u16-strrchr (Depends-on): Likewise.
85548 2009-03-12  Bruno Haible  <bruno@clisp.org>
85550         Work around select() bug on Interix 3.5.
85551         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
85552         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
85553         * m4/select.m4: New file.
85554         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
85555         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
85556         * modules/select (Files): Add m4/select.m4.
85557         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
85558         * modules/nanosleep (Depends-on): Add select.
85559         * modules/poll (Depends-on): Likewise.
85560         * doc/posix-functions/select.texi: Mention the Interix bug.
85561         Reported by Markus Duft <mduft@gentoo.org>.
85563         * lib/select.c: Renamed from lib/winsock-select.c.
85564         * modules/select (Files): Add lib/select.c, remove
85565         lib/winsock-select.c.
85566         (configure.ac): Update.
85568 2009-03-12  Jim Meyering  <meyering@redhat.com>
85570         avoid gcc warnings about unused macro definitions
85571         * lib/readtokens.c (STREQ): Remove unused definition.
85572         * lib/xmalloc.c (SIZE_MAX): Likewise.
85573         * lib/openat-die.c (N_): Likewise.
85574         * lib/mountlist.c (SIZE_MAX): Remove definition.
85575         Instead, include <stdint.h>.
85576         * lib/readutmp.c: Likewise.
85577         * modules/readutmp (Depends-on): Add stdint.
85578         * modules/mountlist (Depends-on): Add stdint.
85579         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
85581 2009-03-10  Bruno Haible  <bruno@clisp.org>
85583         Tests for module 'mbmemcasecoll'.
85584         * modules/mbmemcasecoll-tests: New file.
85585         * tests/test-mbmemcasecoll1.sh: New file.
85586         * tests/test-mbmemcasecoll2.sh: New file.
85587         * tests/test-mbmemcasecoll3.sh: New file.
85588         * tests/test-mbmemcasecoll.c: New file.
85590         New module 'mbmemcasecoll'.
85591         * lib/mbmemcasecoll.h: New file.
85592         * lib/mbmemcasecoll.c: New file.
85593         * modules/mbmemcasecoll: New file.
85595         * tests/test-mbmemcasecmp.h: New file, extracted from
85596         tests/test-mbmemcasecmp.c.
85597         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
85598         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
85599         (main): Update.
85600         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
85602 2009-03-09  Bruno Haible  <bruno@clisp.org>
85604         Tests for module 'mbmemcasecmp'.
85605         * modules/mbmemcasecmp-tests: New file.
85606         * tests/test-mbmemcasecmp1.sh: New file.
85607         * tests/test-mbmemcasecmp2.sh: New file.
85608         * tests/test-mbmemcasecmp3.sh: New file.
85609         * tests/test-mbmemcasecmp.c: New file.
85611         New module 'mbmemcasecmp'.
85612         * lib/mbmemcasecmp.h: New file.
85613         * lib/mbmemcasecmp.c: New file.
85614         * modules/mbmemcasecmp: New file.
85616 2009-03-09  Bruno Haible  <bruno@clisp.org>
85618         Tests for module 'unicase/ulc-casecoll'.
85619         * modules/unicase/ulc-casecoll-tests: New file.
85620         * tests/unicase/test-ulc-casecoll1.sh: New file.
85621         * tests/unicase/test-ulc-casecoll2.sh: New file.
85622         * tests/unicase/test-ulc-casecoll.c: New file.
85624         New module 'unicase/ulc-casecoll'.
85625         * lib/unicase.h (ulc_casecoll): New declaration.
85626         * lib/unicase/ulc-casecoll.c: New file.
85627         * modules/unicase/ulc-casecoll: New file.
85629         New module 'unicase/ulc-casexfrm'.
85630         * lib/unicase.h (ulc_casexfrm): New declaration.
85631         * lib/unicase/ulc-casexfrm.c: New file.
85632         * modules/unicase/ulc-casexfrm: New file.
85634 2009-03-09  Bruno Haible  <bruno@clisp.org>
85636         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
85637         invocations.
85639         * m4/mbscasecmp.m4: Remove file.
85640         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
85641         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
85643         * m4/mbscasestr.m4: Remove file.
85644         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
85645         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
85647         * m4/mbschr.m4: Remove file.
85648         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
85649         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
85651         * m4/mbscspn.m4: Remove file.
85652         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
85653         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
85655         * m4/mbslen.m4: Remove file.
85656         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
85657         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
85659         * m4/mbsncasecmp.m4: Remove file.
85660         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
85661         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
85663         * m4/mbsnlen.m4: Remove file.
85664         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
85665         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
85667         * m4/mbspbrk.m4: Remove file.
85668         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
85669         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
85671         * m4/mbspcasecmp.m4: Remove file.
85672         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
85673         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
85675         * m4/mbsrchr.m4: Remove file.
85676         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
85677         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
85679         * m4/mbssep.m4: Remove file.
85680         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
85681         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
85683         * m4/mbsspn.m4: Remove file.
85684         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
85685         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
85687         * m4/mbsstr.m4: Remove file.
85688         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
85689         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
85691         * m4/mbstok_r.m4: Remove file.
85692         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
85693         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
85695         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
85697         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
85698         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
85700         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
85702 2009-03-08  Bruno Haible  <bruno@clisp.org>
85704         Tests for module 'unicase/ulc-casecmp'.
85705         * modules/unicase/ulc-casecmp-tests: New file.
85706         * tests/unicase/test-ulc-casecmp1.sh: New file.
85707         * tests/unicase/test-ulc-casecmp2.sh: New file.
85708         * tests/unicase/test-ulc-casecmp.c: New file.
85710         New module 'unicase/ulc-casecmp'.
85711         * lib/unicase.h (ulc_casecmp): New declaration.
85712         * lib/unicase/ulc-casecmp.c: New file.
85713         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
85714         'const SRC_UNIT *'.
85715         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
85716         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
85717         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
85718         * modules/unicase/ulc-casecmp: New file.
85720         Tests for module 'unicase/u32-is-cased'.
85721         * modules/unicase/u32-is-cased-tests: New file.
85722         * tests/unicase/test-u32-is-cased.c: New file.
85724         Tests for module 'unicase/u16-is-cased'.
85725         * modules/unicase/u16-is-cased-tests: New file.
85726         * tests/unicase/test-u16-is-cased.c: New file.
85728         Tests for module 'unicase/u8-is-cased'.
85729         * modules/unicase/u8-is-cased-tests: New file.
85730         * tests/unicase/test-u8-is-cased.c: New file.
85731         * tests/unicase/test-is-cased.h: New file.
85733         New module 'unicase/u32-is-cased'.
85734         * lib/unicase/u32-is-cased.c: New file.
85735         * modules/unicase/u32-is-cased: New file.
85737         New module 'unicase/u16-is-cased'.
85738         * lib/unicase/u16-is-cased.c: New file.
85739         * modules/unicase/u16-is-cased: New file.
85741         New module 'unicase/u8-is-cased'.
85742         * lib/unicase/u8-is-cased.c: New file.
85743         * lib/unicase/u-is-cased.h: New file.
85744         * modules/unicase/u8-is-cased: New file.
85746         Tests for module 'unicase/u32-is-casefolded'.
85747         * modules/unicase/u32-is-casefolded-tests: New file.
85748         * tests/unicase/test-u32-is-casefolded.c: New file.
85750         Tests for module 'unicase/u16-is-casefolded'.
85751         * modules/unicase/u16-is-casefolded-tests: New file.
85752         * tests/unicase/test-u16-is-casefolded.c: New file.
85754         Tests for module 'unicase/u8-is-casefolded'.
85755         * modules/unicase/u8-is-casefolded-tests: New file.
85756         * tests/unicase/test-u8-is-casefolded.c: New file.
85757         * tests/unicase/test-is-casefolded.h: New file.
85759         New module 'unicase/u32-is-casefolded'.
85760         * lib/unicase/u32-is-casefolded.c: New file.
85761         * modules/unicase/u32-is-casefolded: New file.
85763         New module 'unicase/u16-is-casefolded'.
85764         * lib/unicase/u16-is-casefolded.c: New file.
85765         * modules/unicase/u16-is-casefolded: New file.
85767         New module 'unicase/u8-is-casefolded'.
85768         * lib/unicase/u8-is-casefolded.c: New file.
85769         * modules/unicase/u8-is-casefolded: New file.
85771         Tests for module 'unicase/u32-is-titlecase'.
85772         * modules/unicase/u32-is-titlecase-tests: New file.
85773         * tests/unicase/test-u32-is-titlecase.c: New file.
85775         Tests for module 'unicase/u16-is-titlecase'.
85776         * modules/unicase/u16-is-titlecase-tests: New file.
85777         * tests/unicase/test-u16-is-titlecase.c: New file.
85779         Tests for module 'unicase/u8-is-titlecase'.
85780         * modules/unicase/u8-is-titlecase-tests: New file.
85781         * tests/unicase/test-u8-is-titlecase.c: New file.
85782         * tests/unicase/test-is-titlecase.h: New file.
85784         New module 'unicase/u32-is-titlecase'.
85785         * lib/unicase/u32-is-titlecase.c: New file.
85786         * modules/unicase/u32-is-titlecase: New file.
85788         New module 'unicase/u16-is-titlecase'.
85789         * lib/unicase/u16-is-titlecase.c: New file.
85790         * modules/unicase/u16-is-titlecase: New file.
85792         New module 'unicase/u8-is-titlecase'.
85793         * lib/unicase/u8-is-titlecase.c: New file.
85794         * modules/unicase/u8-is-titlecase: New file.
85796         Tests for module 'unicase/u32-is-lowercase'.
85797         * modules/unicase/u32-is-lowercase-tests: New file.
85798         * tests/unicase/test-u32-is-lowercase.c: New file.
85800         Tests for module 'unicase/u16-is-lowercase'.
85801         * modules/unicase/u16-is-lowercase-tests: New file.
85802         * tests/unicase/test-u16-is-lowercase.c: New file.
85804         Tests for module 'unicase/u8-is-lowercase'.
85805         * modules/unicase/u8-is-lowercase-tests: New file.
85806         * tests/unicase/test-u8-is-lowercase.c: New file.
85807         * tests/unicase/test-is-lowercase.h: New file.
85809         New module 'unicase/u32-is-lowercase'.
85810         * lib/unicase/u32-is-lowercase.c: New file.
85811         * modules/unicase/u32-is-lowercase: New file.
85813         New module 'unicase/u16-is-lowercase'.
85814         * lib/unicase/u16-is-lowercase.c: New file.
85815         * modules/unicase/u16-is-lowercase: New file.
85817         New module 'unicase/u8-is-lowercase'.
85818         * lib/unicase/u8-is-lowercase.c: New file.
85819         * modules/unicase/u8-is-lowercase: New file.
85821         Tests for module 'unicase/u32-is-uppercase'.
85822         * modules/unicase/u32-is-uppercase-tests: New file.
85823         * tests/unicase/test-u32-is-uppercase.c: New file.
85825         Tests for module 'unicase/u16-is-uppercase'.
85826         * modules/unicase/u16-is-uppercase-tests: New file.
85827         * tests/unicase/test-u16-is-uppercase.c: New file.
85829         Tests for module 'unicase/u8-is-uppercase'.
85830         * modules/unicase/u8-is-uppercase-tests: New file.
85831         * tests/unicase/test-u8-is-uppercase.c: New file.
85832         * tests/unicase/test-is-uppercase.h: New file.
85834         New module 'unicase/u32-is-uppercase'.
85835         * lib/unicase/u32-is-uppercase.c: New file.
85836         * modules/unicase/u32-is-uppercase: New file.
85838         New module 'unicase/u16-is-uppercase'.
85839         * lib/unicase/u16-is-uppercase.c: New file.
85840         * modules/unicase/u16-is-uppercase: New file.
85842         New module 'unicase/u8-is-uppercase'.
85843         * lib/unicase/u8-is-uppercase.c: New file.
85844         * modules/unicase/u8-is-uppercase: New file.
85846         New module 'unicase/u32-is-invariant'.
85847         * lib/unicase/u32-is-invariant.c: New file.
85848         * modules/unicase/u32-is-invariant: New file.
85850         New module 'unicase/u16-is-invariant'.
85851         * lib/unicase/u16-is-invariant.c: New file.
85852         * modules/unicase/u16-is-invariant: New file.
85854         New module 'unicase/u8-is-invariant'.
85855         * lib/unicase/u8-is-invariant.c: New file.
85856         * lib/unicase/invariant.h: New file.
85857         * lib/unicase/u-is-invariant.h: New file.
85858         * modules/unicase/u8-is-invariant: New file.
85860         Tests for module 'unicase/u32-casecoll'.
85861         * modules/unicase/u32-casecoll-tests: New file.
85862         * tests/unicase/test-u32-casecoll.c: New file.
85864         Tests for module 'unicase/u16-casecoll'.
85865         * modules/unicase/u16-casecoll-tests: New file.
85866         * tests/unicase/test-u16-casecoll.c: New file.
85868         Tests for module 'unicase/u8-casecoll'.
85869         * modules/unicase/u8-casecoll-tests: New file.
85870         * tests/unicase/test-u8-casecoll.c: New file.
85872         New module 'unicase/u32-casecoll'.
85873         * lib/unicase/u32-casecoll.c: New file.
85874         * modules/unicase/u32-casecoll: New file.
85876         New module 'unicase/u16-casecoll'.
85877         * lib/unicase/u16-casecoll.c: New file.
85878         * modules/unicase/u16-casecoll: New file.
85880         New module 'unicase/u8-casecoll'.
85881         * lib/unicase/u8-casecoll.c: New file.
85882         * lib/unicase/u-casecoll.h: New file.
85883         * modules/unicase/u8-casecoll: New file.
85885         New module 'unicase/u32-casexfrm'.
85886         * lib/unicase/u32-casexfrm.c: New file.
85887         * modules/unicase/u32-casexfrm: New file.
85889         New module 'unicase/u16-casexfrm'.
85890         * lib/unicase/u16-casexfrm.c: New file.
85891         * modules/unicase/u16-casexfrm: New file.
85893         New module 'unicase/u8-casexfrm'.
85894         * lib/unicase/u8-casexfrm.c: New file.
85895         * lib/unicase/u-casexfrm.h: New file.
85896         * modules/unicase/u8-casexfrm: New file.
85898         Tests for module 'unicase/u32-casecmp'.
85899         * modules/unicase/u32-casecmp-tests: New file.
85900         * tests/unicase/test-u32-casecmp.c: New file.
85902         Tests for module 'unicase/u16-casecmp'.
85903         * modules/unicase/u16-casecmp-tests: New file.
85904         * tests/unicase/test-u16-casecmp.c: New file.
85906         Tests for module 'unicase/u8-casecmp'.
85907         * modules/unicase/u8-casecmp-tests: New file.
85908         * tests/unicase/test-u8-casecmp.c: New file.
85909         * tests/unicase/test-casecmp.h: New file.
85911         New module 'unicase/u32-casecmp'.
85912         * lib/unicase/u32-casecmp.c: New file.
85913         * modules/unicase/u32-casecmp: New file.
85915         New module 'unicase/u16-casecmp'.
85916         * lib/unicase/u16-casecmp.c: New file.
85917         * modules/unicase/u16-casecmp: New file.
85919         New module 'unicase/u8-casecmp'.
85920         * lib/unicase/u8-casecmp.c: New file.
85921         * lib/unicase/u-casecmp.h: New file.
85922         * modules/unicase/u8-casecmp: New file.
85924         Tests for module 'unicase/u32-casefold'.
85925         * modules/unicase/u32-casefold-tests: New file.
85926         * tests/unicase/test-u32-casefold.c: New file.
85928         Tests for module 'unicase/u16-casefold'.
85929         * modules/unicase/u16-casefold-tests: New file.
85930         * tests/unicase/test-u16-casefold.c: New file.
85932         Tests for module 'unicase/u8-casefold'.
85933         * modules/unicase/u8-casefold-tests: New file.
85934         * tests/unicase/test-u8-casefold.c: New file.
85936         New module 'unicase/u32-casefold'.
85937         * lib/unicase/u32-casefold.c: New file.
85938         * modules/unicase/u32-casefold: New file.
85940         New module 'unicase/u16-casefold'.
85941         * lib/unicase/u16-casefold.c: New file.
85942         * modules/unicase/u16-casefold: New file.
85944         New module 'unicase/u8-casefold'.
85945         * lib/unicase/u8-casefold.c: New file.
85946         * lib/unicase/u-casefold.h: New file.
85947         * modules/unicase/u8-casefold: New file.
85949         New module 'unicase/tocasefold'.
85950         * lib/unicase/casefold.h: New file.
85951         * lib/unicase/tocasefold.c: New file.
85952         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
85953         * modules/unicase/tocasefold: New file.
85955         Tests for module 'unicase/u32-totitle'.
85956         * modules/unicase/u32-totitle-tests: New file.
85957         * tests/unicase/test-u32-totitle.c: New file.
85959         Tests for module 'unicase/u16-totitle'.
85960         * modules/unicase/u16-totitle-tests: New file.
85961         * tests/unicase/test-u16-totitle.c: New file.
85963         Tests for module 'unicase/u8-totitle'.
85964         * modules/unicase/u8-totitle-tests: New file.
85965         * tests/unicase/test-u8-totitle.c: New file.
85967         New module 'unicase/u32-totitle'.
85968         * lib/unicase/u32-totitle.c: New file.
85969         * modules/unicase/u32-totitle: New file.
85971         New module 'unicase/u16-totitle'.
85972         * lib/unicase/u16-totitle.c: New file.
85973         * modules/unicase/u16-totitle: New file.
85975         New module 'unicase/u8-totitle'.
85976         * lib/unicase/u8-totitle.c: New file.
85977         * lib/unicase/u-totitle.h: New file.
85978         * modules/unicase/u8-totitle: New file.
85980         Tests for module 'unicase/u32-tolower'.
85981         * modules/unicase/u32-tolower-tests: New file.
85982         * tests/unicase/test-u32-tolower.c: New file.
85984         Tests for module 'unicase/u16-tolower'.
85985         * modules/unicase/u16-tolower-tests: New file.
85986         * tests/unicase/test-u16-tolower.c: New file.
85988         Tests for module 'unicase/u8-tolower'.
85989         * modules/unicase/u8-tolower-tests: New file.
85990         * tests/unicase/test-u8-tolower.c: New file.
85992         New module 'unicase/u32-tolower'.
85993         * lib/unicase/u32-tolower.c: New file.
85994         * modules/unicase/u32-tolower: New file.
85996         New module 'unicase/u16-tolower'.
85997         * lib/unicase/u16-tolower.c: New file.
85998         * modules/unicase/u16-tolower: New file.
86000         New module 'unicase/u8-tolower'.
86001         * lib/unicase/u8-tolower.c: New file.
86002         * modules/unicase/u8-tolower: New file.
86004         Tests for module 'unicase/u32-toupper'.
86005         * modules/unicase/u32-toupper-tests: New file.
86006         * tests/unicase/test-u32-toupper.c: New file.
86008         Tests for module 'unicase/u16-toupper'.
86009         * modules/unicase/u16-toupper-tests: New file.
86010         * tests/unicase/test-u16-toupper.c: New file.
86012         Tests for module 'unicase/u8-toupper'.
86013         * modules/unicase/u8-toupper-tests: New file.
86014         * tests/unicase/test-u8-toupper.c: New file.
86016         New module 'unicase/u32-toupper'.
86017         * lib/unicase/u32-toupper.c: New file.
86018         * modules/unicase/u32-toupper: New file.
86020         New module 'unicase/u16-toupper'.
86021         * lib/unicase/u16-toupper.c: New file.
86022         * modules/unicase/u16-toupper: New file.
86024         New module 'unicase/u8-toupper'.
86025         * lib/unicase/u8-toupper.c: New file.
86026         * modules/unicase/u8-toupper: New file.
86028         New module 'unicase/u32-casemap'.
86029         * lib/unicase/u32-casemap.c: New file.
86030         * modules/unicase/u32-casemap: New file.
86032         New module 'unicase/u16-casemap'.
86033         * lib/unicase/u16-casemap.c: New file.
86034         * modules/unicase/u16-casemap: New file.
86036         New module 'unicase/u8-casemap'.
86037         * lib/unicase/unicasemap.h: New file.
86038         * lib/unicase/u8-casemap.c: New file.
86039         * lib/unicase/u-casemap.h: New file.
86040         * modules/unicase/u8-casemap: New file.
86042         New module 'unicase/special-casing'.
86043         * lib/unicase/special-casing.h: New file.
86044         * lib/unicase/special-casing.c: New file.
86045         * lib/unicase/special-casing-table.gperf: New file, generated by
86046         gen-uni-tables.c.
86047         * modules/unicase/special-casing: New file.
86049         Tests for module 'unicase/locale-language'.
86050         * modules/unicase/locale-language-tests: New file.
86051         * tests/unicase/test-locale-language.sh: New file.
86052         * tests/unicase/test-locale-language.c: New file.
86054         New module 'unicase/locale-language'.
86055         * lib/unicase/locale-language.c: New file.
86056         * lib/unicase/locale-languages.gperf: New file.
86057         * modules/unicase/locale-language: New file.
86059         Generate more tables for case conversion and case folding.
86060         * lib/gen-uni-tables.c (SCC_*): New enum items.
86061         (struct special_casing_rule): New type.
86062         (casing_rules, num_casing_rules, allocated_casing_rules): New
86063         variables.
86064         (add_casing_rule, fill_casing_rules): New functions.
86065         (struct casefold_rule): New type.
86066         (casefolding_rules, num_casefolding_rules,
86067         allocated_casefolding_rules): New variables.
86068         (fill_casefolding_rules): New function.
86069         (unicode_casefold): New variable.
86070         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
86071         sort_casing_rules, output_casing_rules): New functions.
86072         (main): Accept to more arguments: SpecialCasing.txt and
86073         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
86074         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
86075         Output mapping for casefolding.
86077         * lib/unicase.h: Include stdbool.h, uninorm.h.
86078         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
86079         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
86080         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
86081         arguments.
86082         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
86083         resultp arguments.
86084         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
86085         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
86086         resultp arguments.
86087         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
86088         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
86089         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
86090         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
86091         declarations.
86092         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
86094 2009-03-08  Bruno Haible  <bruno@clisp.org>
86096         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
86097         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
86098         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
86099         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
86101 2009-03-07  Bruno Haible  <bruno@clisp.org>
86103         Adjust u*_normcmp, u*_normcoll API.
86104         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
86105         u16_normcoll, u32_normcoll): Change failure conventions.
86106         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
86107         errno and return -1.
86108         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
86110 2009-03-07  Bruno Haible  <bruno@clisp.org>
86112         Tests for module 'uninorm/u32-normcoll'.
86113         * modules/uninorm/u32-normcoll-tests: New file.
86114         * tests/uninorm/test-u32-normcoll.c: New file.
86116         Tests for module 'uninorm/u16-normcoll'.
86117         * modules/uninorm/u16-normcoll-tests: New file.
86118         * tests/uninorm/test-u16-normcoll.c: New file.
86120         Tests for module 'uninorm/u8-normcoll'.
86121         * modules/uninorm/u8-normcoll-tests: New file.
86122         * tests/uninorm/test-u8-normcoll.c: New file.
86124 2009-03-07  Bruno Haible  <bruno@clisp.org>
86126         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
86127         tests/uninorm/test-u32-normcmp.c.
86128         * tests/uninorm/test-u32-normcmp.c: Include it.
86129         (test_nonascii): New function, extracted from main. Add some more
86130         tests.
86131         (main): Invoke test_ascii and test_nonascii.
86132         * modules/uninorm/u32-normcmp-tests (Files): Add
86133         tests/uninorm/test-u32-normcmp.h.
86134         (Depends-on): Remove uninorm/u32-normcmp.
86136         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
86137         tests/uninorm/test-u16-normcmp.c.
86138         * tests/uninorm/test-u16-normcmp.c: Include it.
86139         (test_nonascii): New function, extracted from main. Add some more
86140         tests.
86141         (main): Invoke test_ascii and test_nonascii.
86142         * modules/uninorm/u16-normcmp-tests (Files): Add
86143         tests/uninorm/test-u16-normcmp.h.
86144         (Depends-on): Remove uninorm/u16-normcmp.
86146         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
86147         tests/uninorm/test-u8-normcmp.c.
86148         * tests/uninorm/test-u8-normcmp.c: Include it.
86149         (test_nonascii): New function, extracted from main. Add some more
86150         tests.
86151         (main): Invoke test_ascii and test_nonascii.
86152         * modules/uninorm/u8-normcmp-tests (Files): Add
86153         tests/uninorm/test-u8-normcmp.h.
86154         (Depends-on): Remove uninorm/u8-normcmp.
86156 2009-03-07  Bruno Haible  <bruno@clisp.org>
86158         New module 'uninorm/u32-normcoll'.
86159         * lib/uninorm/u32-normcoll.c: New file.
86160         * modules/uninorm/u32-normcoll: New file.
86162         New module 'uninorm/u16-normcoll'.
86163         * lib/uninorm/u16-normcoll.c: New file.
86164         * modules/uninorm/u16-normcoll: New file.
86166         New module 'uninorm/u8-normcoll'.
86167         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
86168         declarations.
86169         * lib/uninorm/u8-normcoll.c: New file.
86170         * lib/uninorm/u-normcoll.h: New file.
86171         * modules/uninorm/u8-normcoll: New file.
86173         New module 'uninorm/u32-normxfrm'.
86174         * lib/uninorm/u32-normxfrm.c: New file.
86175         * modules/uninorm/u32-normxfrm: New file.
86177         New module 'uninorm/u16-normxfrm'.
86178         * lib/uninorm/u16-normxfrm.c: New file.
86179         * modules/uninorm/u16-normxfrm: New file.
86181         New module 'uninorm/u8-normxfrm'.
86182         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
86183         declarations.
86184         * lib/uninorm/u8-normxfrm.c: New file.
86185         * lib/uninorm/u-normxfrm.h: New file.
86186         * modules/uninorm/u8-normxfrm: New file.
86188 2009-03-07  Bruno Haible  <bruno@clisp.org>
86190         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
86191         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
86192         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
86194 2009-03-07  Bruno Haible  <bruno@clisp.org>
86196         New module 'memxfrm'.
86197         * lib/memxfrm.h: New file.
86198         * lib/memxfrm.c: New file.
86199         * modules/memxfrm: New file.
86201 2009-03-07  Bruno Haible  <bruno@clisp.org>
86203         New module 'memcmp2'.
86204         * lib/memcmp2.h: New file.
86205         * lib/memcmp2.c: New file.
86206         * modules/memcmp2: New file.
86208 2009-03-07  Bruno Haible  <bruno@clisp.org>
86210         Tests for module 'uninorm/decomposing-form'.
86211         * modules/uninorm/decomposing-form-tests: New file.
86212         * tests/uninorm/test-decomposing-form.c: New file.
86214         New module 'uninorm/decomposing-form'.
86215         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
86216         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
86217         Add 'decomposing_variant' field.
86218         * lib/uninorm/decomposing-form.c: New file.
86219         * lib/uninorm/nfc.c (uninorm_nfc): Update.
86220         * lib/uninorm/nfd.c (uninorm_nfd): Update.
86221         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
86222         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
86223         * modules/uninorm/decomposing-form: New file.
86224         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
86225         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
86227 2009-03-07  Bruno Haible  <bruno@clisp.org>
86229         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
86230         strings.
86232 2009-03-06  Bruno Haible  <bruno@clisp.org>
86234         Tests for module 'uninorm/u32-normcmp'.
86235         * tests/uninorm/test-u32-normcmp.c: New file.
86236         * modules/uninorm/u32-normcmp-tests: New file.
86238         Tests for module 'uninorm/u16-normcmp'.
86239         * tests/uninorm/test-u16-normcmp.c: New file.
86240         * modules/uninorm/u16-normcmp-tests: New file.
86242         Tests for module 'uninorm/u8-normcmp'.
86243         * tests/uninorm/test-u8-normcmp.c: New file.
86244         * modules/uninorm/u8-normcmp-tests: New file.
86246         New module 'uninorm/u32-normcmp'.
86247         * lib/uninorm/u32-normcmp.c: New file.
86248         * modules/uninorm/u32-normcmp: New file.
86250         New module 'uninorm/u16-normcmp'.
86251         * lib/uninorm/u16-normcmp.c: New file.
86252         * modules/uninorm/u16-normcmp: New file.
86254         New module 'uninorm/u8-normcmp'.
86255         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
86256         declarations.
86257         * lib/uninorm/u8-normcmp.c: New file.
86258         * lib/uninorm/u-normcmp.h: New file.
86259         * modules/uninorm/u8-normcmp: New file.
86261 2009-03-06  Bruno Haible  <bruno@clisp.org>
86263         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
86264         Reported by Eric Blake.
86266 2009-03-06  Eric Blake  <ebb9@byu.net>
86267             Bruno Haible  <bruno@clisp.org>
86269         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
86270         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
86271         condition.
86272         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
86273         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
86274         condition.
86275         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
86277 2009-03-06  Eric Blake  <ebb9@byu.net>
86279         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
86280         to avoid compiler warnings.
86281         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
86283 2009-03-05  Bruno Haible  <bruno@clisp.org>
86285         * tests/test-ftell.c (main): Disable test beyond end of file on
86286         FreeMiNT.
86287         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
86289 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
86291         * lib/filevercmp.c: Move hidden files up in ordering.
86292         * tests/test-filevercmp.c: Add tests for hidden files.
86294 2009-03-04  Bruno Haible  <bruno@clisp.org>
86296         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
86297         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
86298         AM_CFLAGS.
86299         Reported by Simon Josefsson.
86301 2009-03-03  Bruno Haible  <bruno@clisp.org>
86303         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
86304         Reported by Simon Josefsson.
86306         * doc/ld-version-script.texi: Update node reference.
86308 2009-03-03  Bruno Haible  <bruno@clisp.org>
86310         * modules/visibility (License): Change to 'unlimited'.
86311         Suggested by Simon Josefsson.
86313 2009-03-03  Jim Meyering  <meyering@redhat.com>
86315         unlinkdir: cannot_unlink_dir may modify process state
86316         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
86317         it's neither thread-safe nor appropriate for use in a library.
86319 2009-03-03  Eric Blake  <ebb9@byu.net>
86321         test-closein: silence test under Darwin
86322         * tests/test-closein.sh: Ignore stderr from cat, since we don't
86323         care if it dies from EPIPE or EBADF.
86325 2009-03-03  Bruno Haible  <bruno@clisp.org>
86327         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
86328         earlier.
86329         * doc/visibility.texi: Fix @node and @section.
86331 2009-03-03  Simon Josefsson  <simon@josefsson.org>
86333         * doc/gnulib.texi: Link to sections for ld version script and
86334         visibility.
86335         * doc/visibility.texi: Add @node and @section.
86336         * modules/ld-version-script: New module.
86337         * m4/ld-version-script.m4: New file.
86338         * doc/ld-version-script.texi: New file.
86340 2009-03-02  David Lutterkort  <lutter@redhat.com>
86342         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
86343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86345 2009-03-02  Bruno Haible  <bruno@clisp.org>
86347         * doc/visibility.texi: Mention libtool's -export-symbols option.
86349 2009-03-02  Jim Meyering  <meyering@redhat.com>
86351         announce-gen: new option: --no-print-checksums
86352         * build-aux/announce-gen (usage): Describe it.
86353         (print_checksums): Print a newline here, not in the [*] footnote.
86354         (main): Honor it.
86356 2009-03-01  Bruno Haible  <bruno@clisp.org>
86358         Use socklen_t in the native Windows replacements prototypes.
86359         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
86360         instead of 'int'.
86361         * lib/getsockopt.c (rpl_getsockopt): Likewise.
86362         * lib/setsockopt.c (rpl_setsockopt): Likewise.
86363         * modules/getsockopt (Depends-on): Add socklen.
86364         * modules/setsockopt (Depends-on): Add socklen.
86366 2009-03-01  Bruno Haible  <bruno@clisp.org>
86368         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
86369         least 4.2.
86371 2009-03-01  Eric Blake  <ebb9@byu.net>
86372             Bruno Haible  <bruno@clisp.org>
86374         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
86375         error messages.
86376         * lib/wait-process.c (wait_subprocess): Omit error message about
86377         deadly signal sent to the child of termsigp != NULL.
86379 2009-03-01  Eric Blake  <ebb9@byu.net>
86381         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
86383 2009-03-01  Bruno Haible  <bruno@clisp.org>
86385         Avoid a gcc warning.
86386         * tests/test-sched.c (b): Make global.
86387         Reported by Eric Blake.
86389 2009-01-19  Martin Lambers  <marlam@marlam.de>
86391         Provide POSIX semantics for socket timeout options on W32.
86392         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
86393         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
86394         * modules/setsockopt: Depend on sys_time module for struct timeval.
86395         * modules/getsockopt: Depend on sys_time module for struct timeval.
86397 2009-03-01  Simon Josefsson  <simon@josefsson.org>
86399         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
86400         __USE_GNU, for consistency with netdb.in.h.
86401         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86403 2009-03-01  Bruno Haible  <bruno@clisp.org>
86405         More support for FreeMiNT.
86406         * lib/fseeko.c (rpl_fseeko): Complete last commit.
86407         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86409 2009-03-01  Bruno Haible  <bruno@clisp.org>
86411         More support for FreeMiNT.
86412         * lib/fpurge.c (fpurge): Correct last commit.
86413         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86415 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86417         Fix unportable awk script in vc-list-files.
86418         * build-aux/vc-list-files: In the replacement awk script, use
86419         substr with a second argument of 1, not zero.
86420         Report by Simon Josefsson.
86422 2009-02-28  Bruno Haible  <bruno@clisp.org>
86424         More support for FreeMiNT.
86425         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
86426         to FreeMiNT today.
86427         * lib/fwriting.c (fwriting): Likewise.
86428         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
86430 2009-02-28  Bruno Haible  <bruno@clisp.org>
86432         * tests/test-freadseek.c (main): Disable test beyond end of file on
86433         FreeMiNT.
86434         * tests/test-ftello.c (main): Likewise.
86435         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
86437 2009-02-28  Bruno Haible  <bruno@clisp.org>
86439         Add tentative support for FreeMiNT.
86440         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
86441         * lib/fpurge.c (fpurge): Likewise.
86442         * lib/freadable.c (freadable): Likewise.
86443         * lib/freading.c (freading): Likewise.
86444         * lib/freadptr.c (freadptr): Likewise.
86445         * lib/freadseek.c (freadptrinc): Likewise.
86446         * lib/fseeko.c (rpl_fseeko): Likewise.
86447         * lib/fseterr.c (fseterr): Likewise.
86448         * lib/fwritable.c (fwritable): Likewise.
86449         * lib/fwriting.c (fwriting): Likewise.
86450         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
86451         Hourihane.
86452         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
86454 2009-02-28  Bruno Haible  <bruno@clisp.org>
86456         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
86457         SIGCHLD.
86458         Reported by Jim Meyering.
86460 2009-02-28  Bruno Haible  <bruno@clisp.org>
86462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
86463         Mention the results of these tests on various platforms.
86464         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
86465         order.
86466         * doc/posix-functions/printf.texi: Likewise.
86467         * doc/posix-functions/snprintf.texi: Likewise.
86468         * doc/posix-functions/sprintf.texi: Likewise.
86469         * doc/posix-functions/vfprintf.texi: Likewise.
86470         * doc/posix-functions/vprintf.texi: Likewise.
86471         * doc/posix-functions/vsnprintf.texi: Likewise.
86472         * doc/posix-functions/vsprintf.texi: Likewise.
86473         * doc/glibc-functions/obstack_printf.texi: Likewise.
86474         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
86476 2009-02-28  Bruno Haible  <bruno@clisp.org>
86478         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
86479         Reported by Loïc Minier <lool@dooz.org>.
86481 2009-02-27  Bruno Haible  <bruno@clisp.org>
86483         * gnulib-tool (func_import): Make the sed expression used to create the
86484         sed script for updating the .gitignore file POSIX compliant.
86485         Reported by Eric Blake.
86487 2009-02-27  Bruno Haible  <bruno@clisp.org>
86489         * gnulib-tool (sed): Don't alias as "sed --posix".
86490         Reported by Eric Blake.
86492 2009-02-27  Bruno Haible  <bruno@clisp.org>
86494         Avoid test link errors.
86495         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
86496         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
86497         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
86498         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
86499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86501 2009-02-27  Bruno Haible  <bruno@clisp.org>
86503         Avoid spurious "(cached)" in configure output.
86504         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
86505         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
86506         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
86507         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
86508         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
86509         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
86510         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
86511         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
86512         Reported by Eric Blake.
86514 2009-02-27  Eric Blake  <ebb9@byu.net>
86516         printf: fix regression in previous patch
86517         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
86519 2009-02-27  Bruno Haible  <bruno@clisp.org>
86521         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
86522         value.
86523         * lib/stdint.in.h: Likewise.
86524         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
86526 2009-02-27  Eric Blake  <ebb9@byu.net>
86528         doc: mention more functions added in cygwin 1.7.0
86529         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
86530         addition.
86531         * doc/posix-functions/open_wmemstream.texi: Likewise.
86532         * doc/posix-functions/wcsnlen.texi: Likewise.
86533         * doc/posix-functions/wcsnrtombs.texi: Likewise.
86534         * doc/posix-functions/wcstod.texi: Likewise.
86535         * doc/posix-functions/wcstof.texi: Likewise.
86536         * doc/posix-functions/wcstoimax.texi: Likewise.
86537         * doc/posix-functions/wcstok.texi: Likewise.
86538         * doc/posix-functions/wcstoumax.texi: Likewise.
86540         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
86541         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
86542         * doc/posix-functions/fprintf.texi: Update.
86543         * doc/posix-functions/printf.texi: Update.
86544         * doc/posix-functions/snprintf.texi: Update.
86545         * doc/posix-functions/sprintf.texi: Update.
86546         * doc/posix-functions/vfprintf.texi: Update.
86547         * doc/posix-functions/vprintf.texi: Update.
86548         * doc/posix-functions/vsnprintf.texi: Update.
86549         * doc/posix-functions/vsprintf.texi: Update.
86550         * doc/glibc-functions/obstack_printf.texi: Update.
86551         * doc/glibc-functions/obstack_vprintf.texi: Update.
86553 2009-02-26  Eric Blake  <ebb9@byu.net>
86555         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
86556         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
86557         compilation bug by using runtime conversion.
86558         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
86559         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
86560         * modules/ceill-tests (Files): Use nan.h.
86561         * modules/floorl-tests (Files): Likewise.
86562         * modules/frexpl-tests (Files): Likewise.
86563         * modules/isnanl-tests (Files): Likewise.
86564         * modules/ldexpl-tests (Files): Likewise.
86565         * modules/roundl-tests (Files): Likewise.
86566         * modules/truncl-tests (Files): Likewise.
86567         * tests/test-ceill.c (main): Use a working NaN.
86568         * tests/test-floorl.c (main): Likewise.
86569         * tests/test-frexpl.c (main): Likewise.
86570         * tests/test-isnan.c (test_long_double): Likewise.
86571         * tests/test-isnanl.h (main): Likewise.
86572         * tests/test-ldexpl.h (main): Likewise.
86573         * tests/test-roundl.h (main): Likewise.
86574         * tests/test-truncl.h (main): Likewise.
86575         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
86577 2009-02-26  Eric Blake  <ebb9@byu.net>
86578             Bruno Haible  <bruno@clisp.org>
86580         Work around a *printf bug with %ls on Solaris.
86581         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
86582         precision is specified, sprintf stops converting the wide string
86583         argument when the number of bytes that have been produced by this
86584         conversion equals or exceeds the precision.
86585         * doc/posix-functions/fprintf.texi: Update.
86586         * doc/posix-functions/printf.texi: Update.
86587         * doc/posix-functions/snprintf.texi: Update.
86588         * doc/posix-functions/sprintf.texi: Update.
86589         * doc/posix-functions/vfprintf.texi: Update.
86590         * doc/posix-functions/vprintf.texi: Update.
86591         * doc/posix-functions/vsnprintf.texi: Update.
86592         * doc/posix-functions/vsprintf.texi: Update.
86593         * doc/glibc-functions/obstack_printf.texi: Update.
86594         * doc/glibc-functions/obstack_vprintf.texi: Update.
86596 2009-02-26  Eric Blake  <ebb9@byu.net>
86598         stdlib: favor compiler check of random.h
86599         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
86600         to avoid an ObjC random.h installed by Swarm.
86602 2009-02-26  Bruno Haible  <bruno@clisp.org>
86604         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
86605         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
86606         Reported by Gary V. Vaughan <gary@gnu.org>.
86608 2009-02-26  Bruno Haible  <bruno@clisp.org>
86610         Fix *printf behaviour regarding the %ls directive.
86611         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
86612         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
86613         NEED_PRINTF_DIRECTIVE_LS.
86614         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
86615         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
86616         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86617         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
86618         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
86619         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
86620         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
86621         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86622         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86623         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86625         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
86626         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86627         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86628         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86629         * doc/posix-functions/fprintf.texi: Update.
86630         * doc/posix-functions/printf.texi: Update.
86631         * doc/posix-functions/snprintf.texi: Update.
86632         * doc/posix-functions/sprintf.texi: Update.
86633         * doc/posix-functions/vfprintf.texi: Update.
86634         * doc/posix-functions/vprintf.texi: Update.
86635         * doc/posix-functions/vsnprintf.texi: Update.
86636         * doc/posix-functions/vsprintf.texi: Update.
86637         * doc/glibc-functions/obstack_printf.texi: Update.
86638         * doc/glibc-functions/obstack_vprintf.texi: Update.
86639         Reported by Eric Blake.
86641 2009-02-25  Bruno Haible  <bruno@clisp.org>
86643         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
86644         with known value.
86645         Reported by Gary V. Vaughan <gary@gnu.org>.
86647 2009-02-25  Bruno Haible  <bruno@clisp.org>
86649         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
86650         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
86651         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
86652         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
86653         Reported by Gary V. Vaughan <gary@gnu.org>.
86655 2009-02-25  Bruno Haible  <bruno@clisp.org>
86657         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
86658         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
86659         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
86660         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
86661         Reported by Gary V. Vaughan <gary@gnu.org>.
86663 2009-02-25  Eric Blake  <ebb9@byu.net>
86665         tests: skip fseek/ftell tests if ungetc is broken
86666         * m4/ungetc.m4: New file.
86667         * modules/fseek-tests: Split test, so ungetc dependency is
86668         separate from rest of test.
86669         * modules/fseeko-tests: Likewise.
86670         * modules/ftell-tests: Likewise.
86671         * modules/ftello-tests: Likewise.
86672         * tests/test-fseek.c (main): Isolate ungetc dependency.
86673         * tests/test-fseeko.c (main): Likewise.
86674         * tests/test-ftell.c (main): Likewise.
86675         * tests/test-ftello.c (main): Likewise.
86676         * tests/test-fseek2.sh: New file.
86677         * tests/test-fseeko2.sh: Likewise.
86678         * tests/test-ftell2.sh: Likewise.
86679         * tests/test-ftello2.sh: Likewise.
86681 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
86683         test-getaddrinfo: fix usage of skip return code 77
86684         * tests/test-gettaddrinfo.c: Return skip code 77 only
86685         for first occurrence of skip (4x77 is not 77)
86687 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
86689         strtod: avoid C99 decl-after-statement
86690         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
86692 2009-02-24  Eric Blake  <ebb9@byu.net>
86694         strtod: detect HP-UX 11.31 bug
86695         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
86696         Reported by Gary V. Vaughan.
86698 2009-02-23  Bruno Haible  <bruno@clisp.org>
86700         Fix invalid read past end of memory block.
86701         * lib/vasnprintf.c (DCHAR_SET): Define.
86702         (local_wcslen): Define only when needed.
86703         (local_strnlen, local_wcsnlen): New functions.
86704         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
86705         directives that involve a conversion ourselves.
86706         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
86707         wcsnlen, mbrtowc, wcrtomb.
86708         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
86709         * tests/test-vasprintf-posix.c (test_function): Likewise.
86710         * tests/test-snprintf-posix.h (test_function): Likewise.
86711         * tests/test-sprintf-posix.h (test_function): Likewise.
86712         Reported by Ben Pfaff <blp@cs.stanford.edu>.
86714 2009-02-22  Bruno Haible  <bruno@clisp.org>
86716         Implement new clarified decomposition of Hangul syllables.
86717         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
86718         of type LTV, return only a pairwise decomposition.
86719         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
86720         Likewise.
86721         * tests/uninorm/test-decomposition.c (main): Updated expected result.
86722         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
86723         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
86725 2009-02-22  Bruno Haible  <bruno@clisp.org>
86727         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
86728         zero-length results and shrink excess allocated memory.
86729         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
86730         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
86731         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
86732         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
86733         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
86734         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
86735         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
86736         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
86737         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
86738         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
86739         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
86740         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
86742 2009-02-21  Bruno Haible  <bruno@clisp.org>
86744         * doc/gnulib.texi: Include safe-alloc.texi earlier.
86745         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
86746         spaces after a period. Put a space between a macro name and its
86747         argument list. Trivial rewordings.
86748         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
86749         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
86750         (main): Return 0 explicitly.
86752 2009-02-21  Bruno Haible  <bruno@clisp.org>
86754         Tests for module 'uninorm/filter'.
86755         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
86756         * modules/uninorm/filter-tests: New file.
86758         New module 'uninorm/filter'.
86759         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
86760         uninorm_filter_flush, uninorm_filter_free): New declarations.
86761         * lib/uninorm/uninorm-filter.c: New file.
86762         * modules/uninorm/filter: New file.
86764 2009-02-21  Bruno Haible  <bruno@clisp.org>
86766         Tests for module 'uninorm/nfkc'.
86767         * tests/uninorm/test-nfkc.c: New file.
86768         * tests/uninorm/test-u8-nfkc.c: New file.
86769         * tests/uninorm/test-u16-nfkc.c: New file.
86770         * tests/uninorm/test-u32-nfkc.c: New file.
86771         * tests/uninorm/test-u32-nfkc-big.sh: New file.
86772         * tests/uninorm/test-u32-nfkc-big.c: New file.
86773         * modules/uninorm/nfkc-tests: New file.
86775         New module 'uninorm/nfkc'.
86776         * lib/uninorm/nfkc.c: New file.
86777         * modules/uninorm/nfkc: New file.
86779         Tests for module 'uninorm/nfkd'.
86780         * tests/uninorm/test-nfkd.c: New file.
86781         * tests/uninorm/test-u8-nfkd.c: New file.
86782         * tests/uninorm/test-u16-nfkd.c: New file.
86783         * tests/uninorm/test-u32-nfkd.c: New file.
86784         * tests/uninorm/test-u32-nfkd-big.sh: New file.
86785         * tests/uninorm/test-u32-nfkd-big.c: New file.
86786         * modules/uninorm/nfkd-tests: New file.
86788         New module 'uninorm/nfkd'.
86789         * lib/uninorm/nfkd.c: New file.
86790         * modules/uninorm/nfkd: New file.
86792         Tests for module 'uninorm/nfc'.
86793         * tests/uninorm/test-nfc.c: New file.
86794         * tests/uninorm/test-u8-nfc.c: New file.
86795         * tests/uninorm/test-u16-nfc.c: New file.
86796         * tests/uninorm/test-u32-nfc.c: New file.
86797         * tests/uninorm/test-u32-nfc-big.sh: New file.
86798         * tests/uninorm/test-u32-nfc-big.c: New file.
86799         * modules/uninorm/nfc-tests: New file.
86801         New module 'uninorm/nfc'.
86802         * lib/uninorm/nfc.c: New file.
86803         * modules/uninorm/nfc: New file.
86805         Tests for module 'uninorm/nfd'.
86806         * tests/uninorm/test-nfd.c: New file.
86807         * tests/uninorm/test-u8-nfd.c: New file.
86808         * tests/uninorm/test-u16-nfd.c: New file.
86809         * tests/uninorm/test-u32-nfd.c: New file.
86810         * tests/uninorm/test-u32-nfd-big.sh: New file.
86811         * tests/uninorm/test-u32-nfd-big.c: New file.
86812         * tests/uninorm/test-u32-normalize-big.h: New file.
86813         * tests/uninorm/test-u32-normalize-big.c: New file.
86814         * tests/uninorm/NormalizationTest.txt: New file, created from
86815         Unicode 5.1.0 NormalizationTest.txt.
86816         * modules/uninorm/nfd-tests: New file.
86818         New module 'uninorm/nfd'.
86819         * lib/uninorm/nfd.c: New file.
86820         * modules/uninorm/nfd: New file.
86822         New module 'uninorm/u32-normalize'.
86823         * lib/uninorm/u32-normalize.c: New file.
86824         * modules/uninorm/u32-normalize: New file.
86826         New module 'uninorm/u16-normalize'.
86827         * lib/uninorm/u16-normalize.c: New file.
86828         * modules/uninorm/u16-normalize: New file.
86830         New module 'uninorm/u8-normalize'.
86831         * lib/uninorm/u8-normalize.c: New file.
86832         * lib/uninorm/normalize-internal.h: New file.
86833         * lib/uninorm/u-normalize-internal.h: New file.
86834         * modules/uninorm/u8-normalize: New file.
86836         New module 'uninorm/decompose-internal'.
86837         * lib/uninorm/decompose-internal.c: New file.
86838         * modules/uninorm/decompose-internal: New file.
86840         Tests for module 'uninorm/composition'.
86841         * tests/uninorm/test-composition.c: New file.
86842         * modules/uninorm/composition-tests: New file.
86844         New module 'uninorm/composition'.
86845         * lib/uninorm/composition.c: New file.
86846         * lib/uninorm/composition-table.gperf: New file, generated by
86847         gen-uni-tables.
86848         * modules/uninorm/composition: New file.
86850         Tests for module 'uninorm/compat-decomposition'.
86851         * tests/uninorm/test-compat-decomposition.c: New file.
86852         * modules/uninorm/compat-decomposition-tests: New file.
86854         New module 'uninorm/compat-decomposition'.
86855         * lib/uninorm/decompose-internal.h: New file.
86856         * lib/uninorm/compat-decomposition.c: New file.
86857         * modules/uninorm/compat-decomposition: New file.
86859         Tests for module 'uninorm/canonical-decomposition'.
86860         * tests/uninorm/test-canonical-decomposition.c: New file.
86861         * modules/uninorm/canonical-decomposition-tests: New file.
86863         New module 'uninorm/canonical-decomposition'.
86864         * lib/uninorm/canonical-decomposition.c: New file.
86865         * modules/uninorm/canonical-decomposition: New file.
86867         Tests for module 'uninorm/decomposition'.
86868         * tests/uninorm/test-decomposition.c: New file.
86869         * modules/uninorm/decomposition-tests: New file.
86871         New module 'uninorm/decomposition'.
86872         * lib/uninorm/decomposition.c: New file.
86873         * modules/uninorm/decomposition: New file.
86875         New module 'uninorm/decomposition-table'.
86876         * lib/uninorm/decomposition-table.h: New file.
86877         * lib/uninorm/decomposition-table.c: New file.
86878         * lib/uninorm/decomposition-table1.h: New file, generated by
86879         gen-uni-tables.
86880         * lib/uninorm/decomposition-table2.h: New file, generated by
86881         gen-uni-tables.
86882         * modules/uninorm/decomposition-table: New file.
86884         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
86885         (UC_DECOMP_*): New enumeration items.
86886         (get_decomposition): New function.
86887         (struct decomp_table): New type.
86888         (output_decomposition, output_decomposition_tables): New functions.
86889         (unicode_composition_exclusions): New variable.
86890         (fill_composition_exclusions, debug_output_composition_tables): New
86891         functions.
86892         (main): Accept one more argument. Invoke fill_composition_exclusions.
86893         Output decomposition and composition tables.
86895         New module 'uninorm/base'.
86896         * lib/uninorm.h: New file.
86897         * lib/unictype.h: Update comment.
86898         * modules/uninorm/base: New file.
86900 2009-02-21  David Lutterkort  <lutter@redhat.com>
86902         Tests for module 'safe-alloc'.
86903         * tests/test-safe-alloc.c: New file.
86904         * modules/safe-alloc-tests: New file.
86906         New module 'safe-alloc'.
86907         * lib/safe-alloc.h: New file.
86908         * lib/safe-alloc.c: New file.
86909         * m4/safe-alloc.m4: New file.
86910         * modules/safe-alloc: New file.
86911         * doc/safe-alloc.texi: New file.
86912         * doc/gnulib.texi: Include it.
86913         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
86914         safe-alloc.
86916 2009-02-18  Bruno Haible  <bruno@clisp.org>
86918         Fix link error on non-glibc systems.
86919         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
86920         variable.
86921         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86923 2009-02-18  Jim Meyering  <meyering@redhat.com>
86925         fts: avoid used-uninitialized error due to recent change
86926         * lib/fts.c (fts_read): Guard uses of the new member,
86927         parent->fts_n_dirs_remaining, since it's not relevant for
86928         the parent of a directory specified on the command-line.
86930 2009-02-17  James Youngman  <jay@gnu.org>
86931             Bruno Haible  <bruno@clisp.org>
86933         * m4/include_next.m4: Reformulate comment.
86935 2009-02-16  Jim Meyering  <meyering@redhat.com>
86937         fts: add #if guards so that the fts_lgpl module still builds
86938         * lib/fts.c: Guard just-added hash-table-using parts with
86939         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
86940         Reported by Simon Josefsson.
86942 2009-02-15  Bruno Haible  <bruno@clisp.org>
86944         * modules/array-mergesort-tests: New file.
86945         * tests/test-array-mergesort.c: New file.
86947         New module 'array-mergesort'.
86948         * modules/array-mergesort: New file.
86949         * lib/array-mergesort.h: New file.
86951 2009-02-15  Bruno Haible  <bruno@clisp.org>
86953         Fix 2009-02-07 commit.
86954         * lib/gen-uni-tables.c (output_predicate, output_category,
86955         output_combclass, output_bidi_category, output_decimal_digit,
86956         output_digit, output_numeric, output_mirror, output_scripts,
86957         output_ident_category, output_simple_mapping): Fix format directives.
86958         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
86960 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
86962         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
86963         fixes are available from IBM.
86965 2009-02-13  Jim Meyering  <meyering@redhat.com>
86967         fts: arrange not to stat non-directories in more cases
86968         This makes GNU find (when it doesn't need to stat each file)
86969         *much* more efficient at traversing reiserfs file systems.
86970         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
86971         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
86972         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
86973         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
86974         (leaf_optimization_applies): New function.
86975         (LCO_hash, LCO_compare): New helper functions.
86976         (link_count_optimize_ok): New function.
86977         (fts_stat): Initialize new member (if dir).
86978         (fts_read): Decrement parent's fts_n_dirs_remaining count if
86979         we've just stat'ed a directory.  Skip the stat call when possible.
86980         ---
86981         Note this AFS-related exchange:
86982         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
86983         and note find's pioctl call in find/fstype.c.
86984         But that is necessary only if you want to enable the
86985         optimization for AFS, and for now, I don't.
86987         fts: move a function definition "up" (no semantic change)
86988         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
86989         "up" to precede upcoming use of a related function.
86991 2009-02-11  Jim Meyering  <meyering@redhat.com>
86993         fts: correct internal computation of nlinks (optimization-related)
86994         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
86995         whether the current entry is a directory, so don't test it.
86997 2009-02-10  Bruno Haible  <bruno@clisp.org>
86999         Tests for module 'uniwbrk/ulc-wordbreaks'.
87000         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
87001         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
87002         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
87004         Tests for module 'uniwbrk/u32-wordbreaks'.
87005         * modules/uniwbrk/u32-wordbreaks-tests: New file.
87006         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
87008         Tests for module 'uniwbrk/u16-wordbreaks'.
87009         * modules/uniwbrk/u16-wordbreaks-tests: New file.
87010         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
87012         Tests for module 'uniwbrk/u8-wordbreaks'.
87013         * modules/uniwbrk/u8-wordbreaks-tests: New file.
87014         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
87016 2009-02-10  Bruno Haible  <bruno@clisp.org>
87018         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
87019         property.
87020         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
87021         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
87022         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
87024 2009-02-10  Simon Josefsson  <simon@josefsson.org>
87026         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
87027         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
87029 2009-02-10  Bruno Haible  <bruno@clisp.org>
87031         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
87032         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
87033         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
87034         * lib/unilbrk/u8-possible-linebreaks.c: Update.
87035         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
87036         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
87038 2009-02-09  Simon Josefsson  <simon@josefsson.org>
87040         * lib/sockets.h (gl_fd_to_handle): New function.
87042         * tests/test-sockets.c: Call gl_fd_to_handle.
87044 2009-02-09  Bruno Haible  <bruno@clisp.org>
87046         * doc/havelib.texi: Document the conventions on bi-arch systems.
87048 2009-02-08  Bruno Haible  <bruno@clisp.org>
87050         Document the AC_LIB_LINKFLAGS macro.
87051         * doc/havelib.texi: New file, mostly written on 2005-05-24.
87052         * doc/gnulib.texi: Include it.
87054 2009-02-08  Bruno Haible  <bruno@clisp.org>
87056         Fix wrong order of sections, compared to TOC.
87057         * doc/gnulib.texi: Include relocatable-maint.texi after the
87058         "Regular expressions" node, not before.
87060 2009-02-08  Bruno Haible  <bruno@clisp.org>
87062         Tests for module 'unicase/totitle'.
87063         * modules/unicase/totitle-tests: New file.
87065         Tests for module 'unicase/tolower'.
87066         * modules/unicase/tolower-tests: New file.
87068         Tests for module 'unicase/toupper'.
87069         * modules/unicase/toupper-tests: New file.
87070         * tests/unicase/test-mapping-part1.h: New file.
87071         * tests/unicase/test-mapping-part2.h: New file.
87073         New module 'unicase/totitle'.
87074         * modules/unicase/totitle: New file.
87075         * lib/unicase/totitle.c: New file.
87077         New module 'unicase/tolower'.
87078         * modules/unicase/tolower: New file.
87079         * lib/unicase/tolower.c: New file.
87081         New module 'unicase/toupper'.
87082         * modules/unicase/toupper: New file.
87083         * lib/unicase/toupper.c: New file.
87084         * lib/unicase/simple-mapping.h: New file.
87086         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
87087         (mapping_table): New structure.
87088         (output_simple_mapping): New function.
87089         (main): Invoke output_simple_mapping_test and output_simple_mapping.
87090         * modules/gen-uni-tables (Description): Update.
87091         * lib/unicase/toupper.h: New file, automatically generated by
87092         gen-uni-tables.
87093         * lib/unicase/tolower.h: New file, automatically generated by
87094         gen-uni-tables.
87095         * lib/unicase/totitle.h: New file, automatically generated by
87096         gen-uni-tables.
87097         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
87098         gen-uni-tables.
87099         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
87100         gen-uni-tables.
87101         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
87102         gen-uni-tables.
87104         New module 'unicase/base'.
87105         * modules/unicase/base: New file.
87106         * lib/unicase.h: New file.
87108 2009-02-08  Bruno Haible  <bruno@clisp.org>
87110         New module 'uniwbrk/ulc-wordbreaks'.
87111         * modules/uniwbrk/ulc-wordbreaks: New file.
87112         * lib/uniwbrk/ulc-wordbreaks.c: New file.
87114         New module 'uniwbrk/u32-wordbreaks'.
87115         * modules/uniwbrk/u32-wordbreaks: New file.
87116         * lib/uniwbrk/u32-wordbreaks.c: New file.
87118         New module 'uniwbrk/u16-wordbreaks'.
87119         * modules/uniwbrk/u16-wordbreaks: New file.
87120         * lib/uniwbrk/u16-wordbreaks.c: New file.
87122         New module 'uniwbrk/u8-wordbreaks'.
87123         * modules/uniwbrk/u8-wordbreaks: New file.
87124         * lib/uniwbrk/u8-wordbreaks.c: New file.
87125         * lib/uniwbrk/u-wordbreaks.h: New file.
87127         New module 'uniwbrk/table'.
87128         * modules/uniwbrk/table: New file.
87129         * lib/uniwbrk/wbrktable.h: New file.
87130         * lib/uniwbrk/wbrktable.c: New file.
87132         New module 'uniwbrk/wordbreak-property'.
87133         * modules/uniwbrk/wordbreak-property: New file.
87134         * lib/uniwbrk/wordbreak-property.c: New file.
87136         * lib/gen-uni-tables.c (WBP_*): New enum items.
87137         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
87138         (unicode_org_wbp): New variable.
87139         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
87140         New functions.
87141         (wbp_table): New structure.
87142         (output_wbp, output_wbrk_tables): New functions.
87143         (main): Accept additional argument. Invoke fill_org_wbp,
87144         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
87145         output_wbrk_tables.
87146         * modules/gen-uni-tables (Description): Update.
87147         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
87148         gen-uni-tables.
87150         New module 'uniwbrk/base'.
87151         * modules/uniwbrk/base: New file.
87152         * lib/uniwbrk.h: New file.
87154 2009-02-08  Bruno Haible  <bruno@clisp.org>
87156         Update to Unicode 5.1.0.
87157         * lib/gen-uni-tables.c (is_property_alphabetic): Include
87158         U+2185..U+2188.
87159         (is_property_default_ignorable_code_point): Don't include characters
87160         of category Cc or Cs and not-a-characters.
87161         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
87162         U+0D79, U+109E, U+109F, U+A60C.
87163         * lib/unictype/bidi_of.h: Regenerated.
87164         * lib/unictype/blocks.h: Regenerated.
87165         * lib/unictype/categ_C.h: Regenerated.
87166         * lib/unictype/categ_Cf.h: Regenerated.
87167         * lib/unictype/categ_Cn.h: Regenerated.
87168         * lib/unictype/categ_L.h: Regenerated.
87169         * lib/unictype/categ_Ll.h: Regenerated.
87170         * lib/unictype/categ_Lm.h: Regenerated.
87171         * lib/unictype/categ_Lo.h: Regenerated.
87172         * lib/unictype/categ_Lu.h: Regenerated.
87173         * lib/unictype/categ_M.h: Regenerated.
87174         * lib/unictype/categ_Mc.h: Regenerated.
87175         * lib/unictype/categ_Me.h: Regenerated.
87176         * lib/unictype/categ_Mn.h: Regenerated.
87177         * lib/unictype/categ_N.h: Regenerated.
87178         * lib/unictype/categ_Nd.h: Regenerated.
87179         * lib/unictype/categ_Nl.h: Regenerated.
87180         * lib/unictype/categ_No.h: Regenerated.
87181         * lib/unictype/categ_P.h: Regenerated.
87182         * lib/unictype/categ_Pd.h: Regenerated.
87183         * lib/unictype/categ_Pe.h: Regenerated.
87184         * lib/unictype/categ_Pf.h: Regenerated.
87185         * lib/unictype/categ_Pi.h: Regenerated.
87186         * lib/unictype/categ_Po.h: Regenerated.
87187         * lib/unictype/categ_Ps.h: Regenerated.
87188         * lib/unictype/categ_S.h: Regenerated.
87189         * lib/unictype/categ_Sk.h: Regenerated.
87190         * lib/unictype/categ_Sm.h: Regenerated.
87191         * lib/unictype/categ_So.h: Regenerated.
87192         * lib/unictype/categ_of.h: Regenerated.
87193         * lib/unictype/combining.h: Regenerated.
87194         * lib/unictype/ctype_alnum.h: Regenerated.
87195         * lib/unictype/ctype_alpha.h: Regenerated.
87196         * lib/unictype/ctype_graph.h: Regenerated.
87197         * lib/unictype/ctype_lower.h: Regenerated.
87198         * lib/unictype/ctype_print.h: Regenerated.
87199         * lib/unictype/ctype_punct.h: Regenerated.
87200         * lib/unictype/ctype_upper.h: Regenerated.
87201         * lib/unictype/decdigit.h: Regenerated.
87202         * lib/unictype/digit.h: Regenerated.
87203         * lib/unictype/mirror.h: Regenerated.
87204         * lib/unictype/numeric.h: Regenerated.
87205         * lib/unictype/pr_alphabetic.h: Regenerated.
87206         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
87207         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
87208         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
87209         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
87210         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
87211         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
87212         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
87213         * lib/unictype/pr_combining.h: Regenerated.
87214         * lib/unictype/pr_dash.h: Regenerated.
87215         * lib/unictype/pr_decimal_digit.h: Regenerated.
87216         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
87217         * lib/unictype/pr_deprecated.h: Regenerated.
87218         * lib/unictype/pr_diacritic.h: Regenerated.
87219         * lib/unictype/pr_extender.h: Regenerated.
87220         * lib/unictype/pr_format_control.h: Regenerated.
87221         * lib/unictype/pr_grapheme_base.h: Regenerated.
87222         * lib/unictype/pr_grapheme_extend.h: Regenerated.
87223         * lib/unictype/pr_grapheme_link.h: Regenerated.
87224         * lib/unictype/pr_id_continue.h: Regenerated.
87225         * lib/unictype/pr_id_start.h: Regenerated.
87226         * lib/unictype/pr_ideographic.h: Regenerated.
87227         * lib/unictype/pr_ignorable_control.h: Regenerated.
87228         * lib/unictype/pr_lowercase.h: Regenerated.
87229         * lib/unictype/pr_math.h: Regenerated.
87230         * lib/unictype/pr_numeric.h: Regenerated.
87231         * lib/unictype/pr_other_alphabetic.h: Regenerated.
87232         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
87233         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
87234         * lib/unictype/pr_other_id_continue.h: Regenerated.
87235         * lib/unictype/pr_other_lowercase.h: Regenerated.
87236         * lib/unictype/pr_other_math.h: Regenerated.
87237         * lib/unictype/pr_punctuation.h: Regenerated.
87238         * lib/unictype/pr_sentence_terminal.h: Regenerated.
87239         * lib/unictype/pr_soft_dotted.h: Regenerated.
87240         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
87241         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
87242         * lib/unictype/pr_unified_ideograph.h: Regenerated.
87243         * lib/unictype/pr_uppercase.h: Regenerated.
87244         * lib/unictype/pr_xid_continue.h: Regenerated.
87245         * lib/unictype/pr_xid_start.h: Regenerated.
87246         * lib/unictype/pr_zero_width.h: Regenerated.
87247         * lib/unictype/scripts.h: Regenerated.
87248         * lib/unictype/scripts_byname.gperf: Regenerated.
87249         * lib/unictype/sy_java_ident.h: Regenerated.
87250         * lib/unilbrk/lbrkprop1.h: Regenerated.
87251         * lib/unilbrk/lbrkprop2.h: Regenerated.
87252         * tests/unictype/test-categ_C.c: Regenerated.
87253         * tests/unictype/test-categ_Cf.c: Regenerated.
87254         * tests/unictype/test-categ_Cn.c: Regenerated.
87255         * tests/unictype/test-categ_L.c: Regenerated.
87256         * tests/unictype/test-categ_Ll.c: Regenerated.
87257         * tests/unictype/test-categ_Lm.c: Regenerated.
87258         * tests/unictype/test-categ_Lo.c: Regenerated.
87259         * tests/unictype/test-categ_Lu.c: Regenerated.
87260         * tests/unictype/test-categ_M.c: Regenerated.
87261         * tests/unictype/test-categ_Mc.c: Regenerated.
87262         * tests/unictype/test-categ_Me.c: Regenerated.
87263         * tests/unictype/test-categ_Mn.c: Regenerated.
87264         * tests/unictype/test-categ_N.c: Regenerated.
87265         * tests/unictype/test-categ_Nd.c: Regenerated.
87266         * tests/unictype/test-categ_Nl.c: Regenerated.
87267         * tests/unictype/test-categ_No.c: Regenerated.
87268         * tests/unictype/test-categ_P.c: Regenerated.
87269         * tests/unictype/test-categ_Pd.c: Regenerated.
87270         * tests/unictype/test-categ_Pe.c: Regenerated.
87271         * tests/unictype/test-categ_Pf.c: Regenerated.
87272         * tests/unictype/test-categ_Pi.c: Regenerated.
87273         * tests/unictype/test-categ_Po.c: Regenerated.
87274         * tests/unictype/test-categ_Ps.c: Regenerated.
87275         * tests/unictype/test-categ_S.c: Regenerated.
87276         * tests/unictype/test-categ_Sk.c: Regenerated.
87277         * tests/unictype/test-categ_Sm.c: Regenerated.
87278         * tests/unictype/test-categ_So.c: Regenerated.
87279         * tests/unictype/test-ctype_alnum.c: Regenerated.
87280         * tests/unictype/test-ctype_alpha.c: Regenerated.
87281         * tests/unictype/test-ctype_graph.c: Regenerated.
87282         * tests/unictype/test-ctype_lower.c: Regenerated.
87283         * tests/unictype/test-ctype_print.c: Regenerated.
87284         * tests/unictype/test-ctype_punct.c: Regenerated.
87285         * tests/unictype/test-ctype_upper.c: Regenerated.
87286         * tests/unictype/test-decdigit.h: Regenerated.
87287         * tests/unictype/test-digit.h: Regenerated.
87288         * tests/unictype/test-numeric.h: Regenerated.
87289         * tests/unictype/test-pr_alphabetic.c: Regenerated.
87290         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
87291         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
87292         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
87293         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
87294         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
87295         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
87296         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
87297         * tests/unictype/test-pr_combining.c: Regenerated.
87298         * tests/unictype/test-pr_dash.c: Regenerated.
87299         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
87300         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
87301         * tests/unictype/test-pr_deprecated.c: Regenerated.
87302         * tests/unictype/test-pr_diacritic.c: Regenerated.
87303         * tests/unictype/test-pr_extender.c: Regenerated.
87304         * tests/unictype/test-pr_format_control.c: Regenerated.
87305         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
87306         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
87307         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
87308         * tests/unictype/test-pr_id_continue.c: Regenerated.
87309         * tests/unictype/test-pr_id_start.c: Regenerated.
87310         * tests/unictype/test-pr_ideographic.c: Regenerated.
87311         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
87312         * tests/unictype/test-pr_lowercase.c: Regenerated.
87313         * tests/unictype/test-pr_math.c: Regenerated.
87314         * tests/unictype/test-pr_numeric.c: Regenerated.
87315         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
87316         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
87317         Regenerated.
87318         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
87319         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
87320         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
87321         * tests/unictype/test-pr_other_math.c: Regenerated.
87322         * tests/unictype/test-pr_punctuation.c: Regenerated.
87323         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
87324         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
87325         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
87326         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
87327         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
87328         * tests/unictype/test-pr_uppercase.c: Regenerated.
87329         * tests/unictype/test-pr_xid_continue.c: Regenerated.
87330         * tests/unictype/test-pr_xid_start.c: Regenerated.
87331         * tests/unictype/test-pr_zero_width.c: Regenerated.
87333         Update to Unicode 5.1.0.
87334         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
87335         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
87336         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
87337         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
87338         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
87339         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
87340         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
87341         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
87342         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
87343         (nonspacing_table_ind): Update.
87344         * tests/uniwidth/test-uc_width2.sh: Update expected result.
87346         Update to Unicode 5.1.0.
87347         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
87348         code transform.
87349         * lib/uniname/uniname.c (unicode_character_name,
87350         unicode_name_character): Add the range 0x1Fxxx to the code transform.
87351         * lib/uniname/uninames.h: Regenerated.
87352         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
87354 2009-02-07  Bruno Haible  <bruno@clisp.org>
87356         Merge gen-ctype and gen-lbrk into a single program.
87357         * lib/gen-uni-tables.c: New file, incorporating
87358         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
87359         Add directory prefixes to the names of the generated files.
87360         * lib/unictype/gen-ctype.c: Remove file.
87361         * lib/unilbrk/gen-lbrk.c: Remove file.
87362         * modules/gen-uni-tables: New file.
87363         * modules/unictype/gen-ctype: Remove file.
87364         * modules/unilbrk/gen-lbrk: Remove file.
87366 2009-02-07  Bruno Haible  <bruno@clisp.org>
87368         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
87370         New module 'unistr/u32-strcoll'.
87371         * modules/unistr/u32-strcoll: New file.
87372         * lib/unistr/u32-strcoll.c: New file.
87374         New module 'unistr/u16-strcoll'.
87375         * modules/unistr/u16-strcoll: New file.
87376         * lib/unistr/u16-strcoll.c: New file.
87378         New module 'unistr/u8-strcoll'.
87379         * modules/unistr/u8-strcoll: New file.
87380         * lib/unistr/u8-strcoll.c: New file.
87381         * lib/unistr/u-strcoll.h: New file.
87383 2009-02-07  Bruno Haible  <bruno@clisp.org>
87385         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
87386         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
87387         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
87388         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
87389         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
87390         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
87392 2009-02-07  Bruno Haible  <bruno@clisp.org>
87394         Make 64-bit clean.
87395         * lib/unictype/gen-ctype.c (output_predicate, output_category,
87396         output_combclass, output_bidi_category, output_decimal_digit,
87397         output_digit, output_numeric, output_mirror, output_scripts,
87398         output_ident_category): Use proper width specifier in format strings.
87400 2009-02-07  Bruno Haible  <bruno@clisp.org>
87402         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
87403         failure behaviour.
87405 2009-02-07  Jim Meyering  <meyering@redhat.com>
87407         regex: avoid compilation failure with upcoming gcc-4.4
87408         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
87409         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
87410         "... error: integer overflow in preprocessor expression".
87412 2009-02-05  Ben Pfaff  <blp@gnu.org>
87414         Fix link errors on Windows when close module is used.
87415         * modules/close: Add $(LIB_CLOSE) to Link section.
87416         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
87417         $(LIB_CLOSE) on Windows.
87419 2009-02-05  Jim Meyering  <meyering@redhat.com>
87421         still avoid unused-parameter warnings, but do it cleanly
87422         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
87423         (get_fs_usage): Cast to void instead.
87424         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
87425         (dev_from_mount_options, read_file_system_list): Cast to void.
87426         Prompted by Bruno Haible.
87428 2009-02-04  Jim Meyering  <meyering@redhat.com>
87430         fsusage.c: correct copyright year
87431         * lib/fsusage.c: Reflect year in which the change is pushed into
87433         avoid misc. warnings
87434         * lib/fsusage.c (UNUSED_PARAM): Define.
87435         (get_fs_usage): Mark parameter "disk" as unused.
87436         * lib/getugroups.c (getgrent): Use "void" in prototype.
87437         * lib/mountlist.c: Mark unused parameters.
87438         (read_file_system_list): Declare a local with "const".
87439         * lib/nanosleep.c (getnow): Declare static.
87440         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
87442         dirfd: set errno upon failure
87443         * lib/dirfd.c: Include <errno.h>.
87444         Set errno to ENOTSUP when returning -1.
87445         * modules/dirfd (Depends-on): Add errno.
87446         Suggested by John Kodis <kodis@comcast.net>.
87448 2009-02-01  Bruno Haible  <bruno@clisp.org>
87450         Don't assume sizeof (long) >= sizeof (void *).
87451         * lib/memcmp.c: Include stdint.h.
87452         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
87453         srcp2 to 'const byte *'.
87454         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
87455         types to uintptr_t.
87456         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
87457         * modules/memcmp (Depends-on): Add stdint.
87458         Reported by Ozkan Sezer <sezeroz@gmail.com>.
87460 2009-01-30  Eric Blake  <ebb9@byu.net>
87462         fix more require-before-expand issues
87463         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
87464         expand, AC_PROG_AWK.
87465         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
87467 2009-01-28  Eric Blake  <ebb9@byu.net>
87469         version-etc: use consistent URL formatting
87470         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
87471         Improve formatting.  Use fputs for string without %.
87473 2009-01-28  Jim Meyering  <meyering@redhat.com>
87475         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
87476         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
87477         "underquoted definition of NAME" from autoconf-2.59.
87479 2009-01-28  Bruno Haible  <bruno@clisp.org>
87481         * doc/gnulib.texi: Add "Obsolete modules" to index.
87483 2009-01-28  Jim Meyering  <meyering@redhat.com>
87485         useless-if-before-free: recognize more variants
87486         * build-aux/useless-if-before-free: Also recognize e.g.,
87487         if (NULL != p) free (p);
87489 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
87491         test-getaddrinfo: skip (don't fail) this test when there's no network
87492         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
87493         on the presumption that it means you lack network access.
87495 2009-01-26  Jim Meyering  <meyering@redhat.com>
87497         fflush: avoid warnings on modern systems
87498         * lib/fflush.c (rpl_fflush): Move declarations of locals,
87499         pos and result, into scopes where they're used.
87501 2009-01-26  Eric Blake  <ebb9@byu.net>
87503         Silence warning reintroduced by recent extensions patch.
87504         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
87505         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
87506         autoconf.
87508         Backport improved autoconf semantics of AC_DEFUN_ONCE.
87509         * m4/00gnulib.m4: New file.
87510         * gnulib-tool (func_get_filelist): Always use it.
87511         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
87512         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
87514 2009-01-25  Bruno Haible  <bruno@clisp.org>
87516         Make test-quotearg work on MacOS X and AIX.
87517         * tests/test-quotearg.sh: New file.
87518         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
87519         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
87520         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
87521         include <libintl.h>.
87522         (fake_locale): Remove variable.
87523         (gettext, dgettext, dcgettext): Remove functions.
87524         (main): Instead of setting a fake locale, set a real locale. Call
87525         textdomain and bindtextdomain.
87526         * modules/quotearg-tests (Files): Add the new files.
87527         (Depends-on): Add gettext, setenv, unsetenv.
87528         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
87529         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
87530         Augment TESTS_ENVIRONMENT.
87532 2009-01-25  Bruno Haible  <bruno@clisp.org>
87534         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
87535         fr_FR.ISO8859-1 locale on MacOS X.
87536         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
87537         ja_JP.eucJP locale on MacOS X.
87538         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
87539         zh_CN.GB18030 locale on MacOS X.
87541 2009-01-25  Bruno Haible  <bruno@clisp.org>
87543         Avoid link errors on MacOS X 10.3.
87544         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
87545         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
87547 2009-01-25  Bruno Haible  <bruno@clisp.org>
87549         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
87550         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
87551         * modules/pipe (Files): Remove m4/posix_spawn.m4.
87552         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
87553         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
87554         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
87555         posix_spawnattr_init, posix_spawnattr_setsigmask,
87556         posix_spawnattr_setflags, posix_spawnattr_destroy.
87558         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
87559         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
87560         * modules/execute (Files): Remove m4/posix_spawn.m4.
87561         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
87562         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
87563         posix_spawnattr_init, posix_spawnattr_setsigmask,
87564         posix_spawnattr_setflags, posix_spawnattr_destroy.
87566 2009-01-25  Bruno Haible  <bruno@clisp.org>
87568         * lib/glthread/threadlib.c: Include <stdlib.h>.
87570 2009-01-25  Bruno Haible  <bruno@clisp.org>
87572         * lib/glthread/threadlib.c (dummy): New declaration.
87574 2009-01-25  Bruno Haible  <bruno@clisp.org>
87576         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
87577         multibyte characters also for the GB18030 encoding. Don't crash when
87578         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
87580 2009-01-25  Bruno Haible  <bruno@clisp.org>
87582         Avoid redefining 'struct random_data' on OSF/1 5.1.
87583         * lib/stdlib.in.h: Include <random.h> if it exists.
87584         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
87585         HAVE_RANDOM_H. Include <random.h> when testing whether
87586         'struct random_data' exists.
87587         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
87589 2009-01-25  Bruno Haible  <bruno@clisp.org>
87591         Don't install charset.alias on MacOS X >= 10.3.
87592         * lib/localcharset.c (DARWIN7): New macro.
87593         (get_charset_aliases): Hardcode the result for Darwin7.
87594         * modules/localcharset (install-exec-local): Don't install
87595         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
87597 2009-01-25  Bruno Haible  <bruno@clisp.org>
87599         Don't install charset.alias on mingw and Cygwin.
87600         * modules/localcharset (install-exec-local): Don't install
87601         charset.alias on mingw and Cygwin, if the file does not yet exist.
87602         The result for these platforms is hardcoded in localcharset.c.
87604 2009-01-25  Bruno Haible  <bruno@clisp.org>
87606         Make it possible again to use AC_GNU_SOURCE together with gnulib.
87607         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
87608         before requiring AC_USE_SYSTEM_EXTENSIONS.
87610 2009-01-25  Jim Meyering  <meyering@redhat.com>
87612         c-strtod: avoid warnings
87613         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
87614         "assignment discards qualifiers from pointer target type" warnings.
87616 2009-01-24  Bruno Haible  <bruno@clisp.org>
87618         Add support for non-UTF-8 locales on MacOS X.
87619         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
87620         canonical encodings. For Darwin 7 and newer, don't map traditional
87621         encodings to UTF-8.
87622         Reported by Vincent Lefevre <vincent@vinc17.org>
87623         at <http://savannah.gnu.org/bugs/?25235>.
87625 2009-01-24  Bruno Haible  <bruno@clisp.org>
87627         * doc/gnulib.texi (Obsolete modules): New section.
87628         Reported by Mike Frysinger <vapier@gentoo.org>.
87630 2009-01-24  Bruno Haible  <bruno@clisp.org>
87632         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
87633         (%.dvi): New rule.
87635 2009-01-24  Bruno Haible  <bruno@clisp.org>
87637         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
87638         Reported by Eric Blake.
87640 2009-01-24  Bruno Haible  <bruno@clisp.org>
87642         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
87643         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
87644         Reported by Gary V. Vaughan <gary@gnu.org>.
87646 2009-01-24  Bruno Haible  <bruno@clisp.org>
87648         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
87650 2009-01-23  Bruno Haible  <bruno@clisp.org>
87652         Make c-strtod, c-strtold usable in libraries.
87653         * lib/c-strtod.c: Include string.h instead of xalloc.h.
87654         (C_STRTOD): Call strdup instead of xstrdup.
87655         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
87656         * modules/c-strtold (Depends-on): Likewise.
87657         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
87658         * NEWS: Mention the change.
87659         Reported by Michael Gold <mgold@ncf.ca>.
87661 2009-01-23  Jim Meyering  <meyering@redhat.com>
87663         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
87664         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
87665         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
87667 2009-01-23  Simon Josefsson  <simon@josefsson.org>
87669         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
87670         GNU CoreUtils.
87671         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
87672         * modules/version-etc (Description): Update.
87674 2009-01-22  Bruno Haible  <bruno@clisp.org>
87676         Cache the C locale object.
87677         * lib/c-strtod.c (c_locale_cache): New variable.
87678         (c_locale): New function.
87679         (C_STRTOD): Use it, and don't call freelocale.
87680         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
87681         Suggested by Paolo Bonzini.
87683 2009-01-21  Bruno Haible  <bruno@clisp.org>
87685         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
87686         conditions other than overflow.
87688 2009-01-21  Bruno Haible  <bruno@clisp.org>
87690         * lib/c-strtod.c: Include errno.h.
87691         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
87692         value from STRTOD_L and STRTOD.
87694 2009-01-21  Bruno Haible  <bruno@clisp.org>
87695         and Jim Meyering  <meyering@redhat.com>
87697         nanosleep: skip configure test (fail it) for apple universal builds
87698         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
87699         universal builds, assume that nanosleep does not work.
87700         * modules/nanosleep (Depends-on): Add multiarch.
87702         mktime: skip configure test (fail it) for apple universal builds
87703         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
87704         universal builds, assume that mktime does not work.
87705         * modules/mktime (Depends-on): Add multiarch.
87707 2009-01-21  Eric Blake  <ebb9@byu.net>
87709         multiarch: avoid expand-before-require warning
87710         * modules/multiarch (configure.ac): Require, rather than expand,
87711         gl_MULTIARCH.
87712         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
87713         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
87714         enforce that all clients require it.  Partial reversion of
87715         2008-12-29 patch.
87717         error: avoid expand-before-require warning
87718         * modules/errno (configure.ac): Require, rather than expand,
87719         gl_HEADER_ERRNO_H.
87720         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
87721         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
87722         enforce that all clients require it.
87724         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
87725         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
87726         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
87727         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
87729 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
87731         Revert:
87732         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87734         regex: do not depend on obsolete modules.
87735         * modules/regex: Remove memcmp and memmove.
87737 2009-01-20  Bruno Haible  <bruno@clisp.org>
87739         Make the 'link' module link on Windows NT 4.
87740         * lib/link.c (_WIN32_WINNT): Don't define.
87741         (CreateHardLinkFuncType): New type.
87742         (CreateHardLinkFunc, initialized): New variables.
87743         (initialize): New function.
87744         (link): Invoke CreateHardLink indirectly through the function pointer.
87746 2009-01-20  Bruno Haible  <bruno@clisp.org>
87748         Fix compilation failure on mingw.
87749         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
87751 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
87753         * doc/c-strtod.texi: Mention a couple of restrictions.
87755 2009-01-20  Jim Meyering  <meyering@redhat.com>
87757         gettimeofday: move more declarations out of functions
87758         * lib/gettimeofday.c: Move extern declarations of tzset and
87759         gmtime out of containing functions.  Prompted by Bruno Haible.
87761 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87763         regex: do not depend on obsolete modules.
87764         * modules/regex: Remove memcmp and memmove.
87766 2009-01-19  Bruno Haible  <bruno@clisp.org>
87768         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87769         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
87770         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87771         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
87772         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
87774 2009-01-19  Bruno Haible  <bruno@clisp.org>
87776         * tests/test-link.c: Include <errno.h>.
87777         (main): Exit with code 77 when a hard link cannot be created due to
87778         the file system.
87779         * tests/test-link.sh: Skip test when a hard link cannot be created due
87780         to the file system.
87781         Suggested by Eric Blake.
87783 2009-01-19  Martin Lambers  <marlam@marlam.de>
87785         * modules/link-tests: New file.
87786         * tests/test-link.sh: New file.
87787         * tests/test-link.c: New file.
87789 2009-01-19  Eric Blake  <ebb9@byu.net>
87791         doc: mention another function added in cygwin 1.7.0
87792         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
87793         Another new function in cygwin 1.7.
87795 2009-01-19  Bruno Haible  <bruno@clisp.org>
87797         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87798         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
87799         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
87800         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87801         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
87802         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
87803         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
87804         * m4/md4.m4 (gl_MD4): Likewise.
87805         * m4/md5.m4 (gl_MD5): Likewise.
87806         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
87807         * m4/sha1.m4 (gl_SHA1): Likewise.
87808         * m4/sha256.m4 (gl_SHA256): Likewise.
87809         * m4/sha512.m4 (gl_SHA512): Likewise.
87811 2009-01-19  Bruno Haible  <bruno@clisp.org>
87813         * modules/uniname/uniname-tests (Depends-on): Add progname.
87814         * tests/uniname/test-uninames.c: Include progname.h.
87815         (main): Call set_program_name.
87817         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
87818         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
87819         (main): Call set_program_name.
87821         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
87822         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
87823         (main): Call set_program_name.
87825         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
87826         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
87827         (main): Call set_program_name.
87829         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
87830         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
87831         (main): Call set_program_name.
87833         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
87834         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
87835         (main): Call set_program_name.
87837         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
87838         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
87839         (main): Call set_program_name.
87841         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
87842         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
87843         (main): Call set_program_name.
87845         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
87846         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
87847         (main): Call set_program_name.
87849 2009-01-19  Eric Blake  <ebb9@byu.net>
87851         test-unistd: test previous patch
87852         * tests/test-unistd.c: Test *_FILENO macros.
87854         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
87855         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87856         Guarantee a definition.
87857         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
87858         * modules/unistd-safer (Depends-on): Add dependency on unistd.
87859         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
87860         * lib/dup-safer.c (STDERR_FILENO): Likewise.
87861         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87862         Likewise.
87863         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
87864         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
87865         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87866         Likewise.
87867         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
87868         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
87869         (STDERR_FILENO): Likewise.
87870         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
87871         (STDERR_FILENO): Likewise.
87872         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
87873         (STDERR_FILENO): Likewise.
87874         Reported by Elbert Pol.
87876 2009-01-19  Eric Blake  <ebb9@byu.net>
87878         doc: mention more functions added in cygwin 1.7.0
87879         * doc/posix-functions/abort.texi (abort): Update wording related
87880         to cygwin.
87881         * doc/posix-functions/daylight.texi (daylight): Likewise.
87882         * doc/posix-functions/optarg.texi (optarg): Likewise.
87883         * doc/posix-functions/optarg.texi (opterr): Likewise.
87884         * doc/posix-functions/optarg.texi (optind): Likewise.
87885         * doc/posix-functions/optarg.texi (optopt): Likewise.
87886         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
87887         worked in 1.5.x, and was withdrawn in 1.7.
87888         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
87889         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
87890         cygwin versions.
87891         * doc/posix-functions/perror.texi (perror): Likewise.
87892         * doc/posix-functions/printf.texi (printf): Likewise.
87893         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
87894         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
87895         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
87896         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
87897         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
87898         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
87899         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
87900         Likewise.
87901         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
87902         Likewise.
87903         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
87904         this function.
87905         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
87906         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
87907         Likewise.
87908         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
87909         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
87910         * doc/posix-functions/confstr.texi (confstr): Likewise.
87911         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
87912         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
87913         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
87914         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
87915         * doc/posix-functions/fputws.texi (fputws): Likewise.
87916         * doc/posix-functions/fwide.texi (fwide): Likewise.
87917         * doc/posix-functions/getwc.texi (getwc): Likewise.
87918         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
87919         * doc/posix-functions/putwc.texi (putwc): Likewise.
87920         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
87921         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
87922         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
87923         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
87924         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
87925         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
87926         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
87927         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
87928         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
87929         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
87930         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
87932 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87934         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
87935         * lib/ioctl.c: Include <sys/ioctl.h>.
87937 2009-01-19  Simon Josefsson  <simon@josefsson.org>
87939         * modules/getdate-tests (Depends-on): Add progname.
87940         * tests/test-getdate.c: Use progname module, to avoid link errors
87941         on non-glibc systems.
87943 2009-01-18  Simon Josefsson  <simon@josefsson.org>
87945         * modules/filenamecat-tests (Depends-on): Add progname.
87946         * modules/fstrcmp-tests (Depends-on): Likewise.
87948         * tests/test-filenamecat.c: Use progname module, to avoid link
87949         errors on non-glibc systems.
87950         * tests/test-fstrcmp.c: Likewise.
87952 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87954         gettimeofday: avoid warning: nested extern declaration of 'localtime'
87955         * lib/gettimeofday.c: Move extern declaration out of function.
87957 2009-01-18  Bruno Haible  <bruno@clisp.org>
87959         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
87960         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
87961         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
87963 2009-01-18  Bruno Haible  <bruno@clisp.org>
87965         * lib/strftime.c (MEMPCPY): Remove unused macro.
87966         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
87968 2009-01-18  Martin Lambers  <marlam@marlam.de>
87970         New module 'link'.
87971         * lib/unistd.in.h (link): New declaration.
87972         * lib/link.c: New file.
87973         * m4/link.m4: New file.
87974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
87975         HAVE_LINK.
87976         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
87977         * modules/link: New file.
87978         * doc/posix-functions/link.texi: Mention the new module.
87980 2009-01-18  Bruno Haible  <bruno@clisp.org>
87982         * tests/test-avltree_list.c (main): Call set_program_name.
87983         * tests/test-avltree_oset.c (main): Likewise.
87984         * tests/test-obstack-printf.c: Include progname.h.
87985         (main): Call set_program_name.
87986         * tests/test-quotearg.c: Include progname.h.
87987         (main): Call set_program_name.
87988         * tests/test-xmemdup0.c: Include progname.h.
87989         (main): Call set_program_name.
87991 2009-01-18  Bruno Haible  <bruno@clisp.org>
87993         New module 'alphasort'.
87994         * lib/dirent.in.h (alphasort): New declaration.
87995         * lib/alphasort.c: New file, from glibc with modifications.
87996         * m4/alphasort.m4: New file.
87997         * modules/alphasort: New file.
87998         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
87999         HAVE_ALPHASORT.
88000         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
88001         HAVE_ALPHASORT.
88002         * doc/posix-functions/alphasort.texi: Mention the new module and the
88003         portability problems.
88005 2009-01-18  Bruno Haible  <bruno@clisp.org>
88007         New module 'scandir'.
88008         * lib/dirent.in.h (scandir): New declaration.
88009         * lib/scandir.c: New file, from glibc with modifications.
88010         * m4/scandir.m4: New file.
88011         * modules/scandir: New file.
88012         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
88013         HAVE_SCANDIR.
88014         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
88015         HAVE_SCANDIR.
88016         * doc/posix-functions/scandir.texi: Mention the new module and the
88017         portability problems.
88019 2009-01-17  Bruno Haible  <bruno@clisp.org>
88021         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
88022         Update documentation.
88023         (func_remove_suffix): Escape all dots in the suffix. Update
88024         documentation.
88025         (func_filter_filelist): Update documentation.
88026         Reported by Ralf Wildenhues.
88028 2009-01-17  Bruno Haible  <bruno@clisp.org>
88030         * modules/dprintf-posix-tests: New file.
88031         * tests/test-dprintf-posix.sh: New file.
88032         * tests/test-dprintf-posix.c: New file.
88034         New modules 'dprintf', 'dprintf-posix'.
88035         * lib/stdio.in.h (dprintf): New declaration.
88036         * lib/dprintf.c: New file.
88037         * m4/dprintf.m4: New file.
88038         * m4/dprintf-posix.m4: New file.
88039         * modules/dprintf: New file.
88040         * modules/dprintf-posix: New file.
88041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
88042         HAVE_DPRINTF, REPLACE_DPRINTF.
88043         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
88044         HAVE_DPRINTF, REPLACE_DPRINTF.
88045         * doc/posix-functions/dprintf.texi: Mention the new modules.
88047 2009-01-17  Bruno Haible  <bruno@clisp.org>
88049         * modules/vdprintf-posix-tests: New file.
88050         * tests/test-vdprintf-posix.sh: New file.
88051         * tests/test-vdprintf-posix.c: New file.
88053         New modules 'vdprintf', 'vdprintf-posix'.
88054         * lib/stdio.in.h (vdprintf): New declaration.
88055         * lib/vdprintf.c: New file.
88056         * m4/vdprintf.m4: New file.
88057         * m4/vdprintf-posix.m4: New file.
88058         * modules/vdprintf: New file.
88059         * modules/vdprintf-posix: New file.
88060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
88061         HAVE_VDPRINTF, REPLACE_VDPRINTF.
88062         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
88063         HAVE_VDPRINTF, REPLACE_VDPRINTF.
88064         * doc/posix-functions/vdprintf.texi: Mention the new modules.
88066 2009-01-17  Bruno Haible  <bruno@clisp.org>
88068         Fix replacement of fopen on mingw.
88069         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
88070         mingw.
88072 2009-01-17  Bruno Haible  <bruno@clisp.org>
88074         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
88075         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
88077 2009-01-17  Bruno Haible  <bruno@clisp.org>
88079         Avoid test-fflush2.sh failure on mingw.
88080         * tests/test-fflush2.c: Include binary-io.h.
88081         (main): Put standard input into binary mode.
88082         * modules/fflush-tests (Depends-on): Add binary-io.
88084 2009-01-17  Bruno Haible  <bruno@clisp.org>
88086         * lib/wchar.in.h: In another particular situation, include only the
88087         system's <wchar.h> file.
88088         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
88089         Reported by Albert Chin-A-Young <china@thewrittenword.com>
88090         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
88092 2009-01-17  Bruno Haible  <bruno@clisp.org>
88094         Support for stripping executables in --enable-relocatable.
88095         * build-aux/install-reloc: Expect one more argument, or an environment
88096         variable RELOC_STRIP_PROG. If set, strip the destination program and
88097         its wrapper.
88098         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
88099         RELOC_STRIP_PROG.
88100         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
88101         to set RELOCATABLE_STRIP.
88102         * NEWS: Mention the new Makefile requirement.
88104 2009-01-17  Bruno Haible  <bruno@clisp.org>
88106         * build-aux/install-reloc: Remove debugging information left over by
88107         C compiler on MacOS X.
88109 2009-01-17  Bruno Haible  <bruno@clisp.org>
88111         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
88112         * lib/progreloc.c (find_executable): Fix type of pointer passed to
88113         _NSGetExecutablePath.
88115 2009-01-16  Jim Meyering  <meyering@redhat.com>
88117         strerror: avoid warnings about discarding "const"
88118         * lib/strerror.c (rpl_strerror): Instead of returning a const
88119         string from each and every "case", use a variable, and add a single
88120         cast after the switch.
88122 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
88124         * lib/arpa_inet.in.h: Add extern "C" block for C++.
88126 2009-01-16  Bruno Haible  <bruno@clisp.org>
88128         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
88129         array initializer syntax that also works in C++ mode.
88130         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88132 2009-01-16  Jim Meyering  <meyering@redhat.com>
88134         poll: suppress a warning
88135         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
88136         to ignore "...unsigned expression < 0 is always false" warnings.
88138 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
88140         poll: remove declarations of unused variables
88141         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
88142         sockbuf and optlen.
88144 2009-01-15  Bruno Haible  <bruno@clisp.org>
88146         Make fflush-after-ungetc POSIX compliant on BSD systems.
88147         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
88148         (clear_ungetc_buffer): Implement also for other systems.
88149         (rpl_fflush): On glibc systems, invoke
88150         clear_ungetc_buffer_preserving_position. Otherwise, invoke
88151         clear_ungetc_buffer after fetching the stream's position, not before.
88153 2009-01-15  Bruno Haible  <bruno@clisp.org>
88155         Make fflush-after-ungetc POSIX compliant on glibc systems.
88156         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
88157         after ungetc.
88158         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
88159         (rpl_fflush): On glibc systems, simply call the system's fflush
88160         function after clearing the ungetc buffer.
88161         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
88162         Instead, lseek only to the end of file, then use the system's fseeko
88163         for the rest. On glibc systems, reset the EOF indicator bit.
88165 2009-01-15  Jim Meyering  <meyering@redhat.com>
88167         openmp.m4: revert quote-adding change, for portability to older autoconf
88168         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
88169         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
88170         Simon Josefsson noticed the problem when using autoconf-2.61.
88172 2009-01-15  Bruno Haible  <bruno@clisp.org>
88174         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
88175         * tests/test-fflush2.c (ASSERT): Always fail.
88176         (main): Add two tests for fflush() after ungetc(), taking into account
88177         the Austin Group's clarification.
88178         Suggested by Eric Blake.
88180 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
88182         mktime.m4: remove K&R-style function prototypes
88183         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
88184         for the Sun C++ compiler.
88186 2009-01-14  Bruno Haible  <bruno@clisp.org>
88188         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
88189         while including <wchar.h>.
88190         * lib/wchar.in.h: In two particular situations on HP-UX, include only
88191         the system's <wchar.h> file.
88192         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88194 2009-01-14  Bruno Haible  <bruno@clisp.org>
88196         * m4/csharp.m4: Don't mention gettext on the serial number line.
88197         * m4/csharpexec.m4: Likewise.
88198         * m4/eaccess.m4: Likewise.
88199         * m4/javaexec.m4: Likewise.
88200         * m4/sig_atomic_t.m4: Likewise.
88201         * m4/tmpdir.m4: Likewise.
88202         * m4/intldir.m4: Bump gettext version.
88203         * m4/lib-ld.m4: Likewise.
88205 2009-01-14  Bruno Haible  <bruno@clisp.org>
88207         * lib/progname.c (set_program_name): Add more comments.
88208         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
88210 2009-01-14  Simon Josefsson  <simon@josefsson.org>
88212         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
88213         were sys/stat.h does not define it.
88215 2009-01-14  Jim Meyering  <meyering@redhat.com>
88217         many *.m4 files: improve m4 quoting
88218         99% of this change was performed by running the following commands:
88219         git ls-files | grep '\.m4$' | xargs perl -pi \
88220           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
88221           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
88222           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
88223           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
88224         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
88225         The remainder were to add Copyright dates, increment serial numbers,
88226         undo some changes in comments, exclude m4/intl.m4, and add quotes
88227         around the "1" in ",1" where the unusual spacing prohibited the
88228         above regexps from doing the job.  For more details, see
88229         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
88230         * m4/acl.m4: Modified.
88231         * m4/afs.m4: Likewise.
88232         * m4/alloca.m4: Likewise.
88233         * m4/argp.m4: Likewise.
88234         * m4/argz.m4: Likewise.
88235         * m4/atexit.m4: Likewise.
88236         * m4/bison-i18n.m4: Likewise.
88237         * m4/bison.m4: Likewise.
88238         * m4/byteswap.m4: Likewise.
88239         * m4/c-stack.m4: Likewise.
88240         * m4/c-strtod.m4: Likewise.
88241         * m4/calloc.m4: Likewise.
88242         * m4/canonicalize-lgpl.m4: Likewise.
88243         * m4/chown.m4: Likewise.
88244         * m4/clock_time.m4: Likewise.
88245         * m4/codeset.m4: Likewise.
88246         * m4/copy-file.m4: Likewise.
88247         * m4/csharp.m4: Likewise.
88248         * m4/csharpcomp.m4: Likewise.
88249         * m4/csharpexec.m4: Likewise.
88250         * m4/d-ino.m4: Likewise.
88251         * m4/d-type.m4: Likewise.
88252         * m4/dirfd.m4: Likewise.
88253         * m4/double-slash-root.m4: Likewise.
88254         * m4/eaccess.m4: Likewise.
88255         * m4/eealloc.m4: Likewise.
88256         * m4/environ.m4: Likewise.
88257         * m4/errno_h.m4: Likewise.
88258         * m4/euidaccess.m4: Likewise.
88259         * m4/execute.m4: Likewise.
88260         * m4/fatal-signal.m4: Likewise.
88261         * m4/fchdir.m4: Likewise.
88262         * m4/fcntl_h.m4: Likewise.
88263         * m4/fileblocks.m4: Likewise.
88264         * m4/filenamecat.m4: Likewise.
88265         * m4/findprog.m4: Likewise.
88266         * m4/flexmember.m4: Likewise.
88267         * m4/fnmatch.m4: Likewise.
88268         * m4/fopen.m4: Likewise.
88269         * m4/fpending.m4: Likewise.
88270         * m4/fprintf-posix.m4: Likewise.
88271         * m4/free.m4: Likewise.
88272         * m4/frexp.m4: Likewise.
88273         * m4/frexpl.m4: Likewise.
88274         * m4/fsusage.m4: Likewise.
88275         * m4/ftruncate.m4: Likewise.
88276         * m4/gc-camellia.m4: Likewise.
88277         * m4/gc-random.m4: Likewise.
88278         * m4/gc.m4: Likewise.
88279         * m4/getaddrinfo.m4: Likewise.
88280         * m4/getcwd-abort-bug.m4: Likewise.
88281         * m4/getcwd-path-max.m4: Likewise.
88282         * m4/getdate.m4: Likewise.
88283         * m4/getdomainname.m4: Likewise.
88284         * m4/getgroups.m4: Likewise.
88285         * m4/gethostname.m4: Likewise.
88286         * m4/gethrxtime.m4: Likewise.
88287         * m4/getline.m4: Likewise.
88288         * m4/getloadavg.m4: Likewise.
88289         * m4/getndelim2.m4: Likewise.
88290         * m4/getpass.m4: Likewise.
88291         * m4/gettext.m4: Likewise.
88292         * m4/gettime.m4: Likewise.
88293         * m4/gettimeofday.m4: Likewise.
88294         * m4/gnulib-common.m4: Likewise.
88295         * m4/group-member.m4: Likewise.
88296         * m4/host-os.m4: Likewise.
88297         * m4/iconv.m4: Likewise.
88298         * m4/iconv_open.m4: Likewise.
88299         * m4/inet_ntop.m4: Likewise.
88300         * m4/inet_pton.m4: Likewise.
88301         * m4/inline.m4: Likewise.
88302         * m4/intldir.m4: Likewise.
88303         * m4/intlmacosx.m4: Likewise.
88304         * m4/intmax.m4: Likewise.
88305         * m4/intmax_t.m4: Likewise.
88306         * m4/inttypes.m4: Likewise.
88307         * m4/inttypes_h.m4: Likewise.
88308         * m4/inttypes-pri.m4: Likewise.
88309         * m4/isapipe.m4: Likewise.
88310         * m4/isnand.m4: Likewise.
88311         * m4/isnanf.m4: Likewise.
88312         * m4/isnanl.m4: Likewise.
88313         * m4/javacomp.m4: Likewise.
88314         * m4/javaexec.m4: Likewise.
88315         * m4/jm-winsz1.m4: Likewise.
88316         * m4/jm-winsz2.m4: Likewise.
88317         * m4/lchown.m4: Likewise.
88318         * m4/lcmessage.m4: Likewise.
88319         * m4/ldexpl.m4: Likewise.
88320         * m4/lib-ld.m4: Likewise.
88321         * m4/lib-link.m4: Likewise.
88322         * m4/libsigsegv.m4: Likewise.
88323         * m4/link-follow.m4: Likewise.
88324         * m4/localcharset.m4: Likewise.
88325         * m4/locale-fr.m4: Likewise.
88326         * m4/locale-ja.m4: Likewise.
88327         * m4/locale-tr.m4: Likewise.
88328         * m4/locale-zh.m4: Likewise.
88329         * m4/lock.m4: Likewise.
88330         * m4/longlong.m4: Likewise.
88331         * m4/ls-mntd-fs.m4: Likewise.
88332         * m4/lstat.m4: Likewise.
88333         * m4/malloc.m4: Likewise.
88334         * m4/mathl.m4: Likewise.
88335         * m4/mbrtowc.m4: Likewise.
88336         * m4/mbstate_t.m4: Likewise.
88337         * m4/mbswidth.m4: Likewise.
88338         * m4/memchr.m4: Likewise.
88339         * m4/memcmp.m4: Likewise.
88340         * m4/memcpy.m4: Likewise.
88341         * m4/memmem.m4: Likewise.
88342         * m4/memmove.m4: Likewise.
88343         * m4/mempcpy.m4: Likewise.
88344         * m4/memrchr.m4: Likewise.
88345         * m4/memset.m4: Likewise.
88346         * m4/minmax.m4: Likewise.
88347         * m4/mkdir-slash.m4: Likewise.
88348         * m4/mkdtemp.m4: Likewise.
88349         * m4/mktime.m4: Likewise.
88350         * m4/mmap-anon.m4: Likewise.
88351         * m4/mountlist.m4: Likewise.
88352         * m4/nanosleep.m4: Likewise.
88353         * m4/nls.m4: Likewise.
88354         * m4/nocrash.m4: Likewise.
88355         * m4/open.m4: Likewise.
88356         * m4/openat.m4: Likewise.
88357         * m4/openmp.m4: Likewise.
88358         * m4/pathmax.m4: Likewise.
88359         * m4/perl.m4: Likewise.
88360         * m4/physmem.m4: Likewise.
88361         * m4/pipe.m4: Likewise.
88362         * m4/po.m4: Likewise.
88363         * m4/poll.m4: Likewise.
88364         * m4/posixtm.m4: Likewise.
88365         * m4/posixver.m4: Likewise.
88366         * m4/printf-frexp.m4: Likewise.
88367         * m4/printf-frexpl.m4: Likewise.
88368         * m4/printf-posix.m4: Likewise.
88369         * m4/printf-posix-rpl.m4: Likewise.
88370         * m4/printf.m4: Likewise.
88371         * m4/progtest.m4: Likewise.
88372         * m4/putenv.m4: Likewise.
88373         * m4/readline.m4: Likewise.
88374         * m4/readlink.m4: Likewise.
88375         * m4/readutmp.m4: Likewise.
88376         * m4/realloc.m4: Likewise.
88377         * m4/regex.m4: Likewise.
88378         * m4/relocatable.m4: Likewise.
88379         * m4/relocatable-lib.m4: Likewise.
88380         * m4/rename-dest-slash.m4: Likewise.
88381         * m4/rename.m4: Likewise.
88382         * m4/rmdir-errno.m4: Likewise.
88383         * m4/rmdir.m4: Likewise.
88384         * m4/roundf.m4: Likewise.
88385         * m4/roundl.m4: Likewise.
88386         * m4/rpmatch.m4: Likewise.
88387         * m4/save-cwd.m4: Likewise.
88388         * m4/selinux-selinux-h.m4: Likewise.
88389         * m4/setenv.m4: Likewise.
88390         * m4/settime.m4: Likewise.
88391         * m4/sig2str.m4: Likewise.
88392         * m4/sig_atomic_t.m4: Likewise.
88393         * m4/signalblocking.m4: Likewise.
88394         * m4/signbit.m4: Likewise.
88395         * m4/sigpipe.m4: Likewise.
88396         * m4/sockets.m4: Likewise.
88397         * m4/sockpfaf.m4: Likewise.
88398         * m4/st_dm_mode.m4: Likewise.
88399         * m4/stat-time.m4: Likewise.
88400         * m4/stdbool.m4: Likewise.
88401         * m4/stdint.m4: Likewise.
88402         * m4/stdint_h.m4: Likewise.
88403         * m4/stpcpy.m4: Likewise.
88404         * m4/stpncpy.m4: Likewise.
88405         * m4/strcase.m4: Likewise.
88406         * m4/strchrnul.m4: Likewise.
88407         * m4/strcspn.m4: Likewise.
88408         * m4/strdup.m4: Likewise.
88409         * m4/strftime.m4: Likewise.
88410         * m4/strndup.m4: Likewise.
88411         * m4/strnlen.m4: Likewise.
88412         * m4/strpbrk.m4: Likewise.
88413         * m4/strptime.m4: Likewise.
88414         * m4/strsep.m4: Likewise.
88415         * m4/strtod.m4: Likewise.
88416         * m4/strtoimax.m4: Likewise.
88417         * m4/strtok_r.m4: Likewise.
88418         * m4/strtol.m4: Likewise.
88419         * m4/strtoll.m4: Likewise.
88420         * m4/strtoul.m4: Likewise.
88421         * m4/strtoull.m4: Likewise.
88422         * m4/strtoumax.m4: Likewise.
88423         * m4/strverscmp.m4: Likewise.
88424         * m4/threadlib.m4: Likewise.
88425         * m4/timegm.m4: Likewise.
88426         * m4/tm_gmtoff.m4: Likewise.
88427         * m4/tmpdir.m4: Likewise.
88428         * m4/tmpfile.m4: Likewise.
88429         * m4/tzset.m4: Likewise.
88430         * m4/uintmax_t.m4: Likewise.
88431         * m4/unlinkdir.m4: Likewise.
88432         * m4/unlocked-io.m4: Likewise.
88433         * m4/uptime.m4: Likewise.
88434         * m4/userspec.m4: Likewise.
88435         * m4/utimbuf.m4: Likewise.
88436         * m4/utime.m4: Likewise.
88437         * m4/utimes-null.m4: Likewise.
88438         * m4/utimes.m4: Likewise.
88439         * m4/vararrays.m4: Likewise.
88440         * m4/vasnprintf.m4: Likewise.
88441         * m4/vfprintf-posix.m4: Likewise.
88442         * m4/vprintf-posix.m4: Likewise.
88443         * m4/wait-process.m4: Likewise.
88444         * m4/wchar_t.m4: Likewise.
88445         * m4/wint_t.m4: Likewise.
88446         * m4/write-any-file.m4: Likewise.
88447         * m4/yield.m4: Likewise.
88449 2009-01-13  Bruno Haible  <bruno@clisp.org>
88451         Avoid test-copy-file.sh failures when ACL support insufficient.
88452         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
88453         TESTS_ENVIRONMENT.
88454         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
88455         Reported by Jim Meyering.
88457 2009-01-13  Bruno Haible  <bruno@clisp.org>
88459         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
88460         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
88461         * modules/unistdio/u8-printf-parse (Files): Likewise.
88462         * modules/unistdio/u32-printf-parse (Files): Likewise.
88463         * modules/unistdio/ulc-printf-parse (Files): Likewise.
88465 2009-01-13  Simon Josefsson  <simon@josefsson.org>
88467         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
88468         and m4/inttypes_h.m4 too.
88470 2009-01-12  Eric Blake  <ebb9@byu.net>
88472         tests: IRIX 6.2 cc can't compile -0.0 into .data
88473         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
88474         rather than at compile-time.
88475         * tests/test-floorl.c (minus_zero): Likewise.
88476         * tests/test-frexpl.c (minus_zero): Likewise.
88477         * tests/test-isnan.c (minus_zerol): Likewise.
88478         * tests/test-isnanl.h (minus_zero): Likewise.
88479         * tests/test-ldexpl.c (minus_zero): Likewise.
88480         * tests/test-roundl.c (minus_zero): Likewise.
88481         * tests/test-signbit.c (minus_zerol): Likewise.
88482         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
88483         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
88484         * tests/test-truncl.c (minus_zero): Likewise.
88485         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
88486         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
88487         Reported by Tom G. Christensen and Nelson H. F. Beebe.
88489 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88491         regex: fix glibc bug 9697
88492         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
88493         handling.
88495 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88497         regex: fix glibc bug 697
88498         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
88499         being NULL also if there are no backreferences.
88501 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
88503         regex: merge glibc changes
88504         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
88505         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
88506         re_string_skip_chars, re_string_reconstruct): Likewise.
88507         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
88509 2009-01-07  Jim Meyering  <meyering@redhat.com>
88511         poll: filter through cppi
88512         * lib/poll.c: Indent cpp directives to reflect nesting.
88514 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
88516         poll: don't return uninitialized
88517         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
88519 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
88521         avoid compile failure on AIX 6.1
88522         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
88523         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
88525 2009-01-04  Jim Meyering  <meyering@redhat.com>
88527         remove duplicate inclusion of <stdio.h>
88528         * tests/test-fprintf-posix.c: Likewise.
88529         * tests/test-printf-posix.c: Likewise.
88530         * tests/test-snprintf-posix.c: Likewise.
88531         * tests/test-sprintf-posix.c: Likewise.
88532         * tests/test-vasprintf-posix.c: Likewise.
88533         * tests/test-vfprintf-posix.c: Likewise.
88534         * tests/test-vprintf-posix.c: Likewise.
88535         * tests/test-vsnprintf-posix.c: Likewise.
88536         * tests/test-vsprintf-posix.c: Likewise.
88538 2009-01-03  Jim Meyering  <meyering@redhat.com>
88540         gnulib-tool: fix sed-based filtering
88541         * gnulib-tool (func_filter_filelist): Remove extra backslash
88542         in sed_fff_filter definition.
88544 2009-01-02  Jim Meyering  <meyering@redhat.com>
88546         strftime: avoid compilation failure on Solaris 2.6
88547         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
88548         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
88549         Don't #define mbrlen or mbsinit, since now they're guaranteed to
88550         be available.  Reported by Tom G. Christensen.  Details in
88551         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
88553 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88554             Bruno Haible  <bruno@clisp.org>
88556         Speed up gnulib-tool by doing more string processing through shell
88557         built-ins.
88558         * gnulib-tool (fast_func_append): New variable.
88559         (func_remove_prefix, func_remove_suffix): New functions.
88560         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
88561         (func_filter_filelist): New function.
88562         (func_get_dependencies): Use func_remove_suffix instead of sed.
88563         (func_get_automake_snippet): Use func_filter_filelist instead of a
88564         subshell and sed invocation.
88566 2009-01-01  Bruno Haible  <bruno@clisp.org>
88568         Fix a security bug.
88569         * gnulib-tool (func_import, import, update): Don't allow the characters
88570         '"', '$', '`', '\' in macro arguments that become part of commands that
88571         are evaluated.
88573 2009-01-01  Bruno Haible  <bruno@clisp.org>
88575         * gnulib-tool (func_reset_sigpipe): Add more comments.
88577 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88579         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
88580         func_emit_tests_Makefile_am, func_import): Abort loops early if we
88581         already know the answer.
88583 2009-01-01  Jim Meyering  <meyering@redhat.com>
88585         * lib/version-etc.c (version_etc_va): Update copyright year.
88587 2008-12-30  Bruno Haible  <bruno@clisp.org>
88589         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
88590         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
88591         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
88593 2008-12-29  Eric Blake  <ebb9@byu.net>
88595         multiarch: avoid autoconf AC_REQUIRE bug
88596         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
88597         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
88598         2.63 and older.
88599         Reported by Bruno Haible, and analyzed in
88600         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
88602 2008-12-29  Bruno Haible  <bruno@clisp.org>
88604         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
88605         files in subdirectories correctly.
88606         Reported by Ralf Wildenhues.
88608 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88610         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
88611         rather than 'join FILE -', for Solaris join.
88613 2008-12-29  Bruno Haible  <bruno@clisp.org>
88615         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
88616         quoting.
88617         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88618         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
88619         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
88620         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
88621         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
88622         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
88623         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
88624         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
88625         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
88626         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
88627         * m4/nls.m4 (AM_NLS): Likewise.
88628         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
88629         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
88630         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88631         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
88632         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
88633         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
88634         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
88635         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
88636         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
88637         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
88638         * m4/xsize.m4 (gl_XSIZE): Likewise.
88639         Suggested by Jim Meyering.
88641 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88643         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
88644         * lib/parse-duration.c: use a switch instead of cascading if's.
88646 2008-12-29  Eric Blake  <ebb9@byu.net>
88648         wchar.h: supply WEOF on Irix 5.3
88649         * lib/wchar.in.h (wint_t): Also supply WEOF.
88650         * lib/wctype.in.h (wint_t): Likewise.
88651         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
88652         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
88653         Reported by Tom G. Christensen.
88655 2008-12-26  Bruno Haible  <bruno@clisp.org>
88657         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
88658         i486, i586, i686.
88660 2008-12-26  Bruno Haible  <bruno@clisp.org>
88662         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
88664 2008-12-26  Bruno Haible  <bruno@clisp.org>
88666         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
88667         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
88668         not __STDC_CONSTANT_MACROS.
88669         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
88671 2008-12-25  Bruno Haible  <bruno@clisp.org>
88673         Add support for universal builds to vasnprintf.
88674         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
88675         universal builds, guess no.
88676         * modules/vasnprintf-posix (Depends-on): Add multiarch.
88677         * modules/vasprintf-posix (Depends-on): Likewise.
88678         * modules/fprintf-posix (Depends-on): Likewise.
88679         * modules/vfprintf-posix (Depends-on): Likewise.
88680         * modules/snprintf-posix (Depends-on): Likewise.
88681         * modules/vsnprintf-posix (Depends-on): Likewise.
88682         * modules/sprintf-posix (Depends-on): Likewise.
88683         * modules/vsprintf-posix (Depends-on): Likewise.
88684         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88685         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88686         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88687         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88688         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88689         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88690         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88692         Add support for universal builds to <inttypes.h>.
88693         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
88694         _SCNu64_PREFIX): In Apple
88695         universal builds, define directly, using _LP64.
88696         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
88697         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
88698         * modules/inttypes (Depends-on): Add multiarch.
88699         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
88701         Add support for universal builds to <stdint.h>.
88702         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
88703         universal builds, define directly, using _LP64.
88704         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
88705         Apple universal builds, don't test for the size and suffix of ptrdiff_t
88706         and size_t.
88707         * modules/stdint (Depends-on): Add multiarch.
88708         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
88710         New module 'multiarch'.
88711         * modules/multiarch: New file.
88712         * m4/multiarch.m4: New file.
88714 2008-12-25  Bruno Haible  <bruno@clisp.org>
88716         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
88718 2008-12-25  Bruno Haible  <bruno@clisp.org>
88720         * modules/btowc (License): Relicense under LGPLv2+.
88721         * modules/mbsinit (License): Likewise.
88722         * modules/mbrtowc (License): Likewise.
88723         * modules/wcrtomb (License): Likewise.
88724         * modules/streq (License): Likewise.
88725         Reported by David Lutterkort <lutter@redhat.com>.
88727 2008-12-23  Bruno Haible  <bruno@clisp.org>
88729         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
88731 2008-12-23  Bruno Haible  <bruno@clisp.org>
88733         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
88734         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
88735         GETADDRINFO_LIB, not in LIBS.
88736         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
88737         * modules/canon-host (Link): Likewise.
88738         * NEWS: Mention the change.
88739         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
88740         GETADDRINFO_LIB.
88742 2008-12-22  Bruno Haible  <bruno@clisp.org>
88744         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
88745         * doc/posix-functions/iswalpha_l.texi: Likewise.
88746         * doc/posix-functions/iswblank_l.texi: Likewise.
88747         * doc/posix-functions/iswcntrl_l.texi: Likewise.
88748         * doc/posix-functions/iswctype_l.texi: Likewise.
88749         * doc/posix-functions/iswdigit_l.texi: Likewise.
88750         * doc/posix-functions/iswgraph_l.texi: Likewise.
88751         * doc/posix-functions/iswlower_l.texi: Likewise.
88752         * doc/posix-functions/iswprint_l.texi: Likewise.
88753         * doc/posix-functions/iswpunct_l.texi: Likewise.
88754         * doc/posix-functions/iswspace_l.texi: Likewise.
88755         * doc/posix-functions/iswupper_l.texi: Likewise.
88756         * doc/posix-functions/iswxdigit_l.texi: Likewise.
88757         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
88758         * doc/posix-functions/open_wmemstream.texi: Likewise.
88759         * doc/posix-functions/swscanf.texi: Likewise.
88760         * doc/posix-functions/towctrans_l.texi: Likewise.
88761         * doc/posix-functions/towlower.texi: Likewise.
88762         * doc/posix-functions/towlower_l.texi: Likewise.
88763         * doc/posix-functions/towupper.texi: Likewise.
88764         * doc/posix-functions/towupper_l.texi: Likewise.
88765         * doc/posix-functions/vfwprintf.texi: Likewise.
88766         * doc/posix-functions/vfwscanf.texi: Likewise.
88767         * doc/posix-functions/vswscanf.texi: Likewise.
88768         * doc/posix-functions/vwprintf.texi: Likewise.
88769         * doc/posix-functions/vwscanf.texi: Likewise.
88770         * doc/posix-functions/wcpcpy.texi: Likewise.
88771         * doc/posix-functions/wcpncpy.texi: Likewise.
88772         * doc/posix-functions/wcscasecmp.texi: Likewise.
88773         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
88774         * doc/posix-functions/wcscoll_l.texi: Likewise.
88775         * doc/posix-functions/wcsdup.texi: Likewise.
88776         * doc/posix-functions/wcsncasecmp.texi: Likewise.
88777         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
88778         * doc/posix-functions/wcsnlen.texi: Likewise.
88779         * doc/posix-functions/wcsnrtombs.texi: Likewise.
88780         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
88781         * doc/posix-functions/wctrans_l.texi: Likewise.
88782         * doc/posix-functions/wctype_l.texi: Likewise.
88783         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
88784         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
88785         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
88786         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
88787         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
88788         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
88789         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
88790         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
88791         * doc/glibc-functions/wcschrnul.texi: Likewise.
88792         * doc/glibc-functions/wcsftime_l.texi: Likewise.
88793         * doc/glibc-functions/wcstod_l.texi: Likewise.
88794         * doc/glibc-functions/wcstof_l.texi: Likewise.
88795         * doc/glibc-functions/wcstol_l.texi: Likewise.
88796         * doc/glibc-functions/wcstold_l.texi: Likewise.
88797         * doc/glibc-functions/wcstoll_l.texi: Likewise.
88798         * doc/glibc-functions/wcstoq.texi: Likewise.
88799         * doc/glibc-functions/wcstoul_l.texi: Likewise.
88800         * doc/glibc-functions/wcstoull_l.texi: Likewise.
88801         * doc/glibc-functions/wcstouq.texi: Likewise.
88802         * doc/glibc-functions/wmempcpy.texi: Likewise.
88804 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
88805             Eric Blake  <ebb9@byu.net>
88806             Paolo Bonzini  <bonzini@gnu.org>
88807             Bruno Haible  <bruno@clisp.org>
88809         Make c-stack work on Haiku.
88810         * lib/c-stack.c (SA_ONSTACK): Define fallback.
88811         (c_stack_action): Use SA_ONSTACK flag.
88813 2008-12-22  Bruno Haible  <bruno@clisp.org>
88815         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
88817 2008-12-22  Bruno Haible  <bruno@clisp.org>
88819         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
88820         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
88821         being overridden.
88822         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
88823         New macros.
88824         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
88825         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
88826         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
88827         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
88829 2008-12-22  Bruno Haible  <bruno@clisp.org>
88831         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
88832         from test code.
88834 2008-12-22  Eric Blake  <ebb9@byu.net>
88836         Avoid gcc warnings on cygwin.
88837         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
88838         Avoid unused variable.
88839         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
88840         Likewise.
88842 2008-12-22  Bruno Haible  <bruno@clisp.org>
88844         Remove HAVE_MBRTOWC conditionals.
88845         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
88846         (mbscasecmp): Assume mbrtowc function.
88847         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
88848         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
88849         * lib/mbschr.c: Include mbuiter.h unconditionally.
88850         (mbschr): Assume mbrtowc function.
88851         * lib/mbscspn.c: Include mbuiter.h unconditionally.
88852         (mbscspn): Assume mbrtowc function.
88853         * lib/mbslen.c: Include mbuiter.h unconditionally.
88854         (mbslen): Assume mbrtowc function.
88855         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
88856         (mbsncasecmp): Assume mbrtowc function.
88857         * lib/mbsnlen.c: Include mbiter.h unconditionally.
88858         (mbsnlen): Assume mbrtowc function.
88859         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
88860         (mbspbrk): Assume mbrtowc function.
88861         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
88862         (mbspcasecmp): Assume mbrtowc function.
88863         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
88864         (mbsrchr): Assume mbrtowc function.
88865         * lib/mbssep.c: Include mbuiter.h unconditionally.
88866         (mbssep): Assume mbrtowc function.
88867         * lib/mbsspn.c: Include mbuiter.h unconditionally.
88868         (mbsspn): Assume mbrtowc function.
88869         * lib/mbsstr.c: Include mbuiter.h unconditionally.
88870         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
88871         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
88872         (mbstok_r): Assume mbrtowc function.
88873         * lib/propername.c: Include mbuiter.h unconditionally.
88874         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
88875         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
88876         (trim2): Assume mbrtowc function.
88877         * lib/mbswidth.c (mbsinit): Remove fallback definition.
88878         (mbsnwidth): Assume mbrtowc function.
88879         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
88880         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
88881         fallback definitions.
88882         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
88884 2008-12-22  Bruno Haible  <bruno@clisp.org>
88886         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
88888 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
88890         * modules/regex: Request emulations for the mb*/wc* functions we need.
88891         * m4/regex.m4: Don't look for those functions here.
88892         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
88894 2008-12-22  Bruno Haible  <bruno@clisp.org>
88896         * modules/fnmatch (Depends-on): Remove duplicated dependency.
88898 2008-12-21  Bruno Haible  <bruno@clisp.org>
88900         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
88901         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
88902         (Include): Remove conditionalization.
88903         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
88904         (Include): Remove conditionalization.
88905         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
88906         (Include): Remove conditionalization.
88907         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
88908         * m4/mbfile.m4 (gl_MBFILE): Likewise.
88909         * NEWS: Mention the change.
88910         Reported by Alan Hourihane <alanh@fairlite.co.uk>
88911         via Sergey Poznyakoff <gray@gnu.org.ua>.
88913 2008-12-21  Bruno Haible  <bruno@clisp.org>
88915         * MODULES.html.sh (Extended multibyte and wide character utilities
88916         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
88917         wcrtomb, wcsrtombs.
88918         (Support for systems lacking POSIX:2008): Add accept, bind, close,
88919         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
88920         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
88921         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
88923 2008-12-21  Bruno Haible  <bruno@clisp.org>
88925         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
88927 2008-12-21  Bruno Haible  <bruno@clisp.org>
88929         * modules/wcsnrtombs-tests: New file.
88930         * tests/test-wcsnrtombs1.sh: New file.
88931         * tests/test-wcsnrtombs2.sh: New file.
88932         * tests/test-wcsnrtombs3.sh: New file.
88933         * tests/test-wcsnrtombs4.sh: New file.
88934         * tests/test-wcsnrtombs.c: New file.
88936         New module 'wcsnrtombs'.
88937         * lib/wchar.in.h (wcsnrtombs): New declaration.
88938         * lib/wcsnrtombs.c: New file.
88939         * lib/wcsrtombs-state.c: New file.
88940         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
88941         (internal_state): Remove variable.
88942         * m4/wcsnrtombs.m4: New file.
88943         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
88944         compilation units.
88945         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
88946         HAVE_WCSNRTOMBS.
88947         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
88948         HAVE_WCSNRTOMBS.
88949         * modules/wcsnrtombs: New file.
88950         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
88951         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
88953 2008-12-21  Bruno Haible  <bruno@clisp.org>
88955         * modules/wcsrtombs-tests: New file.
88956         * tests/test-wcsrtombs1.sh: New file.
88957         * tests/test-wcsrtombs2.sh: New file.
88958         * tests/test-wcsrtombs3.sh: New file.
88959         * tests/test-wcsrtombs4.sh: New file.
88960         * tests/test-wcsrtombs.c: New file.
88962         New module 'wcsrtombs'.
88963         * lib/wchar.in.h (wcsrtombs): New declaration.
88964         * lib/wcsrtombs.c: New file.
88965         * m4/wcsrtombs.m4: New file.
88966         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
88967         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88968         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
88969         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88970         * modules/wcsrtombs: New file.
88971         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
88972         bugs.
88974 2008-12-21  Bruno Haible  <bruno@clisp.org>
88976         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
88977         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
88978         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
88979         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
88980         if not correct.
88981         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
88982         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
88983         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88984         m4/locale-zh.m4, m4/codeset.m4.
88985         * doc/posix-functions/wcrtomb.texi: Document the bug.
88987 2008-12-21  Bruno Haible  <bruno@clisp.org>
88989         Work around a btowc() bug on IRIX 6.5.
88990         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
88991         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
88992         REPLACE_WTOBC if not.
88993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
88994         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
88995         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
88997 2008-12-21  Bruno Haible  <bruno@clisp.org>
88999         * modules/wcrtomb-tests: New file.
89000         * tests/test-wcrtomb.sh: New file.
89001         * tests/test-wcrtomb.c: New file.
89003         New module 'wcrtomb'.
89004         * lib/wchar.in.h (wcrtomb): New declaration.
89005         * lib/wcrtomb.c: New file.
89006         * m4/wcrtomb.m4: New file.
89007         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
89008         HAVE_WCRTOMB.
89009         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
89010         HAVE_WCRTOMB.
89011         * modules/wcrtomb: New file.
89012         * doc/posix-functions/wcrtomb.texi: Mention the new module.
89014 2008-12-21  Bruno Haible  <bruno@clisp.org>
89016         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
89017         * modules/mbsrtowcs (Files): Likewise.
89018         * modules/wctob (Files): Likewise.
89019         * modules/c-strcase-tests (Files): Likewise.
89020         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
89021         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
89022         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
89023         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
89024         * modules/vasnprintf-posix-tests (Files): Likewise.
89026 2008-12-21  William Pursell  <bill.pursell@gmail.com>
89028         gitlog-to-changelog: pass all command-line arguments to git-log
89029         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
89030         it is sometimes convenient to filter the commits in various ways.
89031         gitlog-to-changelog only allows --since to specify a start date,
89032         but git-log itself supports many other filtering mechanisms.
89033         At the moment, I want to filter by branch name.  Rather than
89034         adding a --branch option to gitlog-to-changelog, it seems more
89035         flexible to simply pass all options directly to git-log and let
89036         git do the work.  Notice that this effectively makes --since a
89037         redundant option for gitlog-to-changelog, but removing it would
89038         require current usage to change since calls would then require
89039         an additional '--'.
89041 2008-12-21  Bruno Haible  <bruno@clisp.org>
89043         * modules/mbsnrtowcs-tests: New file.
89044         * tests/test-mbsnrtowcs1.sh: New file.
89045         * tests/test-mbsnrtowcs2.sh: New file.
89046         * tests/test-mbsnrtowcs3.sh: New file.
89047         * tests/test-mbsnrtowcs4.sh: New file.
89048         * tests/test-mbsnrtowcs.c: New file.
89050         New module 'mbsnrtowcs'.
89051         * lib/wchar.in.h (mbsnrtowcs): New declaration.
89052         * lib/mbsnrtowcs.c: New file.
89053         * lib/mbsrtowcs-state.c: New file.
89054         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
89055         (internal_state): Remove variable.
89056         * m4/mbsnrtowcs.m4: New file.
89057         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
89058         compilation units.
89059         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
89060         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
89061         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
89062         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
89063         * modules/mbsnrtowcs: New file.
89064         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
89065         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
89066         portability problem.
89068 2008-12-21  Bruno Haible  <bruno@clisp.org>
89070         Work around mbsrtowcs bug.
89071         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
89072         (gl_FUNC_MBSRTOWCS): Invoke it.
89073         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
89074         m4/locale-zh.m4.
89075         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
89077 2008-12-21  Bruno Haible  <bruno@clisp.org>
89079         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
89081 2008-12-21  Bruno Haible  <bruno@clisp.org>
89083         Update doc for AIX.
89084         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
89085         16-bit wchar_t type.
89086         * doc/posix-functions/btowc.texi: Likewise.
89087         * doc/posix-functions/fgetwc.texi: Likewise.
89088         * doc/posix-functions/fgetws.texi: Likewise.
89089         * doc/posix-functions/fputwc.texi: Likewise.
89090         * doc/posix-functions/fputws.texi: Likewise.
89091         * doc/posix-functions/fwide.texi: Likewise.
89092         * doc/posix-functions/fwprintf.texi: Likewise.
89093         * doc/posix-functions/fwscanf.texi: Likewise.
89094         * doc/posix-functions/getwchar.texi: Likewise.
89095         * doc/posix-functions/getwc.texi: Likewise.
89096         * doc/posix-functions/iswalnum.texi: Likewise.
89097         * doc/posix-functions/iswalpha.texi: Likewise.
89098         * doc/posix-functions/iswblank.texi: Likewise.
89099         * doc/posix-functions/iswcntrl.texi: Likewise.
89100         * doc/posix-functions/iswctype.texi: Likewise.
89101         * doc/posix-functions/iswdigit.texi: Likewise.
89102         * doc/posix-functions/iswgraph.texi: Likewise.
89103         * doc/posix-functions/iswlower.texi: Likewise.
89104         * doc/posix-functions/iswprint.texi: Likewise.
89105         * doc/posix-functions/iswpunct.texi: Likewise.
89106         * doc/posix-functions/iswspace.texi: Likewise.
89107         * doc/posix-functions/iswupper.texi: Likewise.
89108         * doc/posix-functions/iswxdigit.texi: Likewise.
89109         * doc/posix-functions/mbrtowc.texi: Likewise.
89110         * doc/posix-functions/mbsrtowcs.texi: Likewise.
89111         * doc/posix-functions/mbstowcs.texi: Likewise.
89112         * doc/posix-functions/mbtowc.texi: Likewise.
89113         * doc/posix-functions/putwchar.texi: Likewise.
89114         * doc/posix-functions/putwc.texi: Likewise.
89115         * doc/posix-functions/swprintf.texi: Likewise.
89116         * doc/posix-functions/tolower.texi: Likewise.
89117         * doc/posix-functions/toupper.texi: Likewise.
89118         * doc/posix-functions/towctrans.texi: Likewise.
89119         * doc/posix-functions/ungetwc.texi: Likewise.
89120         * doc/posix-functions/vswprintf.texi: Likewise.
89121         * doc/posix-functions/wcrtomb.texi: Likewise.
89122         * doc/posix-functions/wcscat.texi: Likewise.
89123         * doc/posix-functions/wcschr.texi: Likewise.
89124         * doc/posix-functions/wcscmp.texi: Likewise.
89125         * doc/posix-functions/wcscoll.texi: Likewise.
89126         * doc/posix-functions/wcscpy.texi: Likewise.
89127         * doc/posix-functions/wcscspn.texi: Likewise.
89128         * doc/posix-functions/wcsftime.texi: Likewise.
89129         * doc/posix-functions/wcslen.texi: Likewise.
89130         * doc/posix-functions/wcsncat.texi: Likewise.
89131         * doc/posix-functions/wcsncmp.texi: Likewise.
89132         * doc/posix-functions/wcsncpy.texi: Likewise.
89133         * doc/posix-functions/wcspbrk.texi: Likewise.
89134         * doc/posix-functions/wcsrchr.texi: Likewise.
89135         * doc/posix-functions/wcsrtombs.texi: Likewise.
89136         * doc/posix-functions/wcsspn.texi: Likewise.
89137         * doc/posix-functions/wcsstr.texi: Likewise.
89138         * doc/posix-functions/wcstod.texi: Likewise.
89139         * doc/posix-functions/wcstof.texi: Likewise.
89140         * doc/posix-functions/wcstoimax.texi: Likewise.
89141         * doc/posix-functions/wcstok.texi: Likewise.
89142         * doc/posix-functions/wcstold.texi: Likewise.
89143         * doc/posix-functions/wcstoll.texi: Likewise.
89144         * doc/posix-functions/wcstol.texi: Likewise.
89145         * doc/posix-functions/wcstombs.texi: Likewise.
89146         * doc/posix-functions/wcstoull.texi: Likewise.
89147         * doc/posix-functions/wcstoul.texi: Likewise.
89148         * doc/posix-functions/wcstoumax.texi: Likewise.
89149         * doc/posix-functions/wcswidth.texi: Likewise.
89150         * doc/posix-functions/wcsxfrm.texi: Likewise.
89151         * doc/posix-functions/wctob.texi: Likewise.
89152         * doc/posix-functions/wctomb.texi: Likewise.
89153         * doc/posix-functions/wctrans.texi: Likewise.
89154         * doc/posix-functions/wctype.texi: Likewise.
89155         * doc/posix-functions/wcwidth.texi: Likewise.
89156         * doc/posix-functions/wmemchr.texi: Likewise.
89157         * doc/posix-functions/wmemcmp.texi: Likewise.
89158         * doc/posix-functions/wmemcpy.texi: Likewise.
89159         * doc/posix-functions/wmemmove.texi: Likewise.
89160         * doc/posix-functions/wmemset.texi: Likewise.
89161         * doc/posix-functions/wprintf.texi: Likewise.
89162         * doc/posix-functions/wscanf.texi: Likewise.
89164 2008-12-21  Bruno Haible  <bruno@clisp.org>
89166         Update doc for HP-UX 11.11.
89167         * doc/posix-functions/btowc.texi: Clarify that the function is missing
89168         in HP-UX version 11.00, not in all versions of HP-UX 11.
89169         * doc/posix-functions/fwide.texi: Likewise.
89170         * doc/posix-functions/fwprintf.texi: Likewise.
89171         * doc/posix-functions/fwscanf.texi: Likewise.
89172         * doc/posix-functions/inet_ntop.texi: Likewise.
89173         * doc/posix-functions/inet_pton.texi: Likewise.
89174         * doc/posix-functions/mbrlen.texi: Likewise.
89175         * doc/posix-functions/mbrtowc.texi: Likewise.
89176         * doc/posix-functions/mbsinit.texi: Likewise.
89177         * doc/posix-functions/mbsrtowcs.texi: Likewise.
89178         * doc/posix-functions/swprintf.texi: Likewise.
89179         * doc/posix-functions/swscanf.texi: Likewise.
89180         * doc/posix-functions/towctrans.texi: Likewise.
89181         * doc/posix-functions/vfwprintf.texi: Likewise.
89182         * doc/posix-functions/vswprintf.texi: Likewise.
89183         * doc/posix-functions/vwprintf.texi: Likewise.
89184         * doc/posix-functions/wcrtomb.texi: Likewise.
89185         * doc/posix-functions/wcsrtombs.texi: Likewise.
89186         * doc/posix-functions/wcsstr.texi: Likewise.
89187         * doc/posix-functions/wctob.texi: Likewise.
89188         * doc/posix-functions/wctrans.texi: Likewise.
89189         * doc/posix-functions/wmemchr.texi: Likewise.
89190         * doc/posix-functions/wmemcmp.texi: Likewise.
89191         * doc/posix-functions/wmemcpy.texi: Likewise.
89192         * doc/posix-functions/wmemmove.texi: Likewise.
89193         * doc/posix-functions/wmemset.texi: Likewise.
89194         * doc/posix-functions/wprintf.texi: Likewise.
89195         * doc/posix-functions/wscanf.texi: Likewise.
89197 2008-12-21  Bruno Haible  <bruno@clisp.org>
89199         Work around a portability problem.
89200         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
89201         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
89203 2008-12-20  Bruno Haible  <bruno@clisp.org>
89205         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
89206         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
89207         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
89208         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
89209         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
89211         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
89212         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
89213         set.
89214         (GNULIB_defined_mbstate_t): New macro.
89215         (mbsinit): Redefine if REPLACE_MBSINIT is set.
89216         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
89217         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
89218         reuses the system's mbrtowc function but works around the bugs.
89219         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
89220         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
89221         macros.
89222         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
89223         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
89224         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
89225         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
89226         REPLACE_MBSINIT if mbsinit needs to be overridden.
89227         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
89228         REPLACE_MBSINIT, REPLACE_MBRTOWC.
89229         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
89230         REPLACE_MBSINIT, REPLACE_MBRTOWC.
89231         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
89232         m4/locale-zh.m4.
89233         (Depends): Add mbsinit.
89234         * modules/mbsinit (Depends): Add mbrtowc.
89235         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
89237 2008-12-20  Bruno Haible  <bruno@clisp.org>
89239         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
89240         so that there are no conversion errors on AIX.
89241         * tests/test-mbsrtowcs.c (main): LIkewise.
89243 2008-12-20  Bruno Haible  <bruno@clisp.org>
89245         Work around wctob bug on Solaris <= 9.
89246         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
89247         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
89248         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
89249         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
89250         * modules/wctob (Files): Add m4/locale-fr.m4.
89251         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
89253 2008-12-20  Bruno Haible  <bruno@clisp.org>
89255         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
89256         /dev/null.
89257         * tests/test-select-in.sh: Likewise.
89258         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
89260 2008-12-20  Bruno Haible  <bruno@clisp.org>
89262         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
89263         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
89264         Cygwin 1.5.x.
89266 2008-12-20  Bruno Haible  <bruno@clisp.org>
89268         Ensure mbstate_t is defined on HP-UX 11.11.
89269         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
89270         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
89271         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
89272         AC_USE_SYSTEM_EXTENSIONS.
89273         * modules/fnmatch (Depends-on): Add extensions.
89274         * modules/mbrlen (Depends-on): Likewise.
89275         * modules/mbrtowc (Depends-on): Likewise.
89276         * modules/mbsinit (Depends-on): Likewise.
89277         * modules/mbsrtowcs (Depends-on): Likewise.
89278         * modules/mbswidth (Depends-on): Likewise.
89279         * modules/quotearg (Depends-on): Likewise.
89280         * modules/strftime (Depends-on): Likewise.
89282 2008-12-20  Bruno Haible  <bruno@clisp.org>
89284         Ensure wctob is declared on IRIX 6.5.
89285         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
89286         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
89287         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
89288         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
89289         of HAVE_WCTOB.
89290         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
89291         HAVE_WCTOB.
89292         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
89294 2008-12-19  Bruno Haible  <bruno@clisp.org>
89296         * modules/mbsrtowcs-tests: New file.
89297         * tests/test-mbsrtowcs1.sh: New file.
89298         * tests/test-mbsrtowcs2.sh: New file.
89299         * tests/test-mbsrtowcs3.sh: New file.
89300         * tests/test-mbsrtowcs4.sh: New file.
89301         * tests/test-mbsrtowcs.c: New file.
89303         New module 'mbsrtowcs'.
89304         * lib/wchar.in.h (mbsrtowcs): New declaration.
89305         * lib/mbsrtowcs.c: New file.
89306         * m4/mbsrtowcs.m4: New file.
89307         * modules/mbsrtowcs: New file.
89308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
89309         HAVE_MBSRTOWCS.
89310         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
89311         HAVE_MBSRTOWCS.
89312         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
89314 2008-12-19  Bruno Haible  <bruno@clisp.org>
89316         New module 'mbrlen'.
89317         * lib/wchar.in.h (mbrlen): New declaration.
89318         * lib/mbrlen.c: New file.
89319         * m4/mbrlen.m4: New file.
89320         * modules/mbrlen: New file.
89321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
89322         HAVE_MBRLEN.
89323         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
89324         HAVE_MBRLEN.
89325         * doc/posix-functions/mbrlen.texi: Document the new module.
89327 2008-12-19  Bruno Haible  <bruno@clisp.org>
89329         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
89330         * modules/mbrtowc (Depends-on): Add verify.
89331         Suggested by Paul Eggert.
89333 2008-12-18  Bruno Haible  <bruno@clisp.org>
89335         * modules/mbsinit-tests: New file.
89336         * tests/test-mbsinit.sh: New file.
89337         * tests/test-mbsinit.c: New file.
89339 2008-12-18  Bruno Haible  <bruno@clisp.org>
89341         * modules/mbrtowc-tests: New file.
89342         * tests/test-mbrtowc1.sh: New file.
89343         * tests/test-mbrtowc2.sh: New file.
89344         * tests/test-mbrtowc3.sh: New file.
89345         * tests/test-mbrtowc4.sh: New file.
89346         * tests/test-mbrtowc.c: New file.
89348         New module 'mbrtowc'.
89349         * lib/wchar.in.h (mbstate_t): Override when the system does not have
89350         mbsinit and mbrtowc.
89351         (mbrtowc): New declaration.
89352         * lib/mbrtowc.c: New file.
89353         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
89354         * modules/mbrtowc: New file.
89355         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
89356         HAVE_MBRTOWC.
89357         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
89358         HAVE_MBRTOWC.
89359         * doc/posix-functions/mbrtowc.texi: Document the new module.
89361 2008-12-18  Bruno Haible  <bruno@clisp.org>
89363         New module 'wctob'.
89364         * lib/wchar.in.h (wctob): New declaration.
89365         * lib/wctob.c: New file.
89366         * m4/wctob.m4: New file.
89367         * modules/wctob: New file.
89368         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
89369         HAVE_WCTOB.
89370         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
89371         * doc/posix-functions/wctob.texi: Document the new module.
89373 2008-12-18  Bruno Haible  <bruno@clisp.org>
89375         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
89376         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
89378 2008-12-18  Simon Josefsson  <simon@josefsson.org>
89380         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
89381         G. Christensen" <tgc@jupiterrise.com>.
89383         * lib/flock.c: Need to include errno.h.  Reported by "Tom
89384         G. Christensen" <tgc@jupiterrise.com>.
89386         * lib/flock.c: Need to include string.h.  Reported by "Tom
89387         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
89388         <ebb9@byu.net>.
89390 2008-12-18  Bruno Haible  <bruno@clisp.org>
89392         * m4/locale-ja.m4: New file, from GNU gettext.
89394 2008-12-17  Bruno Haible  <bruno@clisp.org>
89396         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
89397         Suggested by Eric Blake.
89399 2008-12-17  Bruno Haible  <bruno@clisp.org>
89401         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
89403 2008-12-17  Bruno Haible  <bruno@clisp.org>
89405         * lib/mbsinit.c: Include verify.h. Verify an assumption.
89406         * modules/mbsinit (Depends-on): Add verify.
89407         Suggested by Paul Eggert.
89409 2008-12-17  Bruno Haible  <bruno@clisp.org>
89411         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
89412         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
89413         gl_FUNC_MBRTOWC.
89414         * m4/mbiter.m4 (gl_MBITER): LIkewise.
89415         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
89416         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
89417         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
89418         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
89419         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
89420         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
89421         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
89422         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
89423         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
89424         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
89425         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
89426         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
89427         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
89428         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
89429         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
89430         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
89431         * modules/trim (configure.ac): Likewise.
89433 2008-12-17  Bruno Haible  <bruno@clisp.org>
89435         * modules/btowc-tests: New file.
89436         * tests/test-btowc1.sh: New file.
89437         * tests/test-btowc2.sh: New file.
89438         * tests/test-btowc.c: New file.
89440         New module 'btowc'.
89441         * lib/wchar.in.h (btowc): New declaration.
89442         * lib/btowc.c: New file.
89443         * m4/btowc.m4: New file.
89444         * modules/btowc: New file.
89445         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
89446         HAVE_BTOWC.
89447         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
89448         * doc/posix-functions/btowc.texi: Document the new module.
89450 2008-12-17  Bruno Haible  <bruno@clisp.org>
89452         New module 'mbsinit'.
89453         * lib/wchar.in.h (mbsinit): New declaration.
89454         * lib/mbsinit.c: New file.
89455         * m4/mbsinit.m4: New file.
89456         * modules/mbsinit: New file.
89457         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
89458         HAVE_MBSINIT.
89459         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
89460         HAVE_MBSINIT.
89461         * doc/posix-functions/mbsinit.texi: Document the new module.
89463 2008-12-16  Bruno Haible  <bruno@clisp.org>
89465         * lib/unistd.in.h: Add comment.
89466         * tests/test-environ.c: Don't include <stdlib.h>.
89468 2008-12-16  Bruno Haible  <bruno@clisp.org>
89470         * lib/parse-duration.h (parse_duration): Document return value
89471         convention.
89472         * lib/parse-duration.c: Include specification header first. Add
89473         comments.
89474         (_): Remove macro.
89475         (parse_year_month_day, parse_hour_minute_second): Move side effects
89476         outside of strchr call.
89477         (parse_non_iso8601): Move side effects outside of isspace call.
89478         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
89479         call.
89481 2008-12-16  Bruno Haible  <bruno@clisp.org>
89483         * tests/test-parse-duration.sh: Produce no output when the test
89484         succeeds.
89486 2008-12-16  Bruno Haible  <bruno@clisp.org>
89488         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
89489         expressions.
89491 2008-12-15  Bruno Haible  <bruno@clisp.org>
89493         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
89494         * doc/glibc-functions/flistxattr.texi: Likewise.
89495         * doc/glibc-functions/fopencookie.texi: Likewise.
89496         * doc/glibc-functions/fremovexattr.texi: Likewise.
89497         * doc/glibc-functions/fsetxattr.texi: Likewise.
89498         * doc/glibc-functions/getxattr.texi: Likewise.
89499         * doc/glibc-functions/lgetxattr.texi: Likewise.
89500         * doc/glibc-functions/listxattr.texi: Likewise.
89501         * doc/glibc-functions/llistxattr.texi: Likewise.
89502         * doc/glibc-functions/lremovexattr.texi: Likewise.
89503         * doc/glibc-functions/lsetxattr.texi: Likewise.
89504         * doc/glibc-functions/removexattr.texi: Likewise.
89505         * doc/glibc-functions/setxattr.texi: Likewise.
89506         * doc/posix-functions/open_memstream.texi: Likewise.
89508 2008-12-15  Eric Blake  <ebb9@byu.net>
89510         Update doc for cygwin 1.7.
89511         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
89512         functions.
89513         * doc/posix-functions/fchmodat.texi: Likewise.
89514         * doc/posix-functions/fchownat.texi: Likewise.
89515         * doc/posix-functions/fdopendir.texi: Likewise.
89516         * doc/posix-functions/fmemopen.texi: Likewise.
89517         * doc/posix-functions/freeaddrinfo.texi: Likewise.
89518         * doc/posix-functions/fstatat.texi: Likewise.
89519         * doc/posix-functions/futimens.texi: Likewise.
89520         * doc/posix-functions/gai_strerror.texi: Likewise.
89521         * doc/posix-functions/getaddrinfo.texi: Likewise.
89522         * doc/posix-functions/getnameinfo.texi: Likewise.
89523         * doc/posix-functions/if_freenameindex.texi: Likewise.
89524         * doc/posix-functions/if_indextoname.texi: Likewise.
89525         * doc/posix-functions/if_nameindex.texi: Likewise.
89526         * doc/posix-functions/if_nametoindex.texi: Likewise.
89527         * doc/posix-functions/insque.texi: Likewise.
89528         * doc/posix-functions/linkat.texi: Likewise.
89529         * doc/posix-functions/llrint.texi: Likewise.
89530         * doc/posix-functions/llrintf.texi: Likewise.
89531         * doc/posix-functions/llrintl.texi: Likewise.
89532         * doc/posix-functions/lockf.texi: Likewise.
89533         * doc/posix-functions/lrintl.texi: Likewise.
89534         * doc/posix-functions/mkdirat.texi: Likewise.
89535         * doc/posix-functions/mkfifoat.texi: Likewise.
89536         * doc/posix-functions/mknodat.texi: Likewise.
89537         * doc/posix-functions/mq_close.texi: Likewise.
89538         * doc/posix-functions/mq_getattr.texi: Likewise.
89539         * doc/posix-functions/mq_notify.texi: Likewise.
89540         * doc/posix-functions/mq_open.texi: Likewise.
89541         * doc/posix-functions/mq_receive.texi: Likewise.
89542         * doc/posix-functions/mq_send.texi: Likewise.
89543         * doc/posix-functions/mq_setattr.texi: Likewise.
89544         * doc/posix-functions/mq_timedreceive.texi: Likewise.
89545         * doc/posix-functions/mq_timedsend.texi: Likewise.
89546         * doc/posix-functions/mq_unlink.texi: Likewise.
89547         * doc/posix-functions/open_memstream.texi: Likewise.
89548         * doc/posix-functions/openat.texi: Likewise.
89549         * doc/posix-functions/posix_fadvise.texi: Likewise.
89550         * doc/posix-functions/posix_fallocate.texi: Likewise.
89551         * doc/posix-functions/posix_madvise.texi: Likewise.
89552         * doc/posix-functions/posix_memalign.texi: Likewise.
89553         * doc/posix-functions/posix_openpt.texi: Likewise.
89554         * doc/posix-functions/readlinkat.texi: Likewise.
89555         * doc/posix-functions/remque.texi: Likewise.
89556         * doc/posix-functions/renameat.texi: Likewise.
89557         * doc/posix-functions/rintl.texi: Likewise.
89558         * doc/posix-functions/sem_unlink.texi: Likewise.
89559         * doc/posix-functions/shm_open.texi: Likewise.
89560         * doc/posix-functions/shm_unlink.texi: Likewise.
89561         * doc/posix-functions/signgam.texi: Likewise.
89562         * doc/posix-functions/sigset.texi: Likewise.
89563         * doc/posix-functions/stpcpy.texi: Likewise.
89564         * doc/posix-functions/stpncpy.texi: Likewise.
89565         * doc/posix-functions/strerror.texi: Likewise.
89566         * doc/posix-functions/strtod.texi: Likewise.
89567         * doc/posix-functions/symlinkat.texi: Likewise.
89568         * doc/posix-functions/unlinkat.texi: Likewise.
89569         * doc/posix-functions/utimensat.texi: Likewise.
89570         * doc/glibc-functions/bindresvport.texi: Likewise.
89571         * doc/glibc-functions/dn_expand.texi: Likewise.
89572         * doc/glibc-functions/exp10.texi: Likewise.
89573         * doc/glibc-functions/exp10f.texi: Likewise.
89574         * doc/glibc-functions/fgetxattr.texi: Likewise.
89575         * doc/glibc-functions/flistxattr.texi: Likewise.
89576         * doc/glibc-functions/fopencookie.texi: Likewise.
89577         * doc/glibc-functions/freeifaddrs.texi: Likewise.
89578         * doc/glibc-functions/fremovexattr.texi: Likewise.
89579         * doc/glibc-functions/fsetxattr.texi: Likewise.
89580         * doc/glibc-functions/getifaddrs.texi: Likewise.
89581         * doc/glibc-functions/getxattr.texi: Likewise.
89582         * doc/glibc-functions/lgetxattr.texi: Likewise.
89583         * doc/glibc-functions/listxattr.texi: Likewise.
89584         * doc/glibc-functions/llistxattr.texi: Likewise.
89585         * doc/glibc-functions/lremovexattr.texi: Likewise.
89586         * doc/glibc-functions/lsetxattr.texi: Likewise.
89587         * doc/glibc-functions/pow10.texi: Likewise.
89588         * doc/glibc-functions/pow10f.texi: Likewise.
89589         * doc/glibc-functions/rcmd_af.texi: Likewise.
89590         * doc/glibc-functions/removexattr.texi: Likewise.
89591         * doc/glibc-functions/res_init.texi: Likewise.
89592         * doc/glibc-functions/res_mkquery.texi: Likewise.
89593         * doc/glibc-functions/res_query.texi: Likewise.
89594         * doc/glibc-functions/res_querydomain.texi: Likewise.
89595         * doc/glibc-functions/res_send.texi: Likewise.
89596         * doc/glibc-functions/rresvport_af.texi: Likewise.
89597         * doc/glibc-functions/setxattr.texi: Likewise.
89598         * doc/glibc-functions/strcasestr.texi: Likewise.
89600 2008-12-15  Bruno Haible  <bruno@clisp.org>
89602         Fix compilation error on OSF/1 4.0.
89603         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
89604         <sys/time.h>, simply delegate to the system header.
89605         Reported by Daniel Richard G. <oss@teragram.com>.
89607 2008-12-15  Bruno Haible  <bruno@clisp.org>
89609         * doc/posix-functions/openat.texi: Mention the 'openat' module.
89610         * doc/posix-functions/fchmodat.texi: Likewise.
89611         * doc/posix-functions/fchownat.texi: Likewise.
89612         * doc/posix-functions/fdopendir.texi: Likewise.
89613         * doc/posix-functions/fstatat.texi: Likewise.
89614         * doc/posix-functions/mkdirat.texi: Likewise.
89615         * doc/posix-functions/unlinkat.texi: Likewise.
89617 2008-12-14  Bruno Haible  <bruno@clisp.org>
89619         Update doc for POSIX:2008.
89620         * doc/posix-functions/faccessat.texi: New file.
89621         * doc/posix-functions/fchmodat.texi: New file.
89622         * doc/posix-functions/fchownat.texi: New file.
89623         * doc/posix-functions/fdopendir.texi: New file.
89624         * doc/posix-functions/fstatat.texi: New file.
89625         * doc/posix-functions/futimens.texi: New file.
89626         * doc/posix-functions/linkat.texi: New file.
89627         * doc/posix-functions/mkdirat.texi: New file.
89628         * doc/posix-functions/mkfifoat.texi: New file.
89629         * doc/posix-functions/mknodat.texi: New file.
89630         * doc/posix-functions/open_wmemstream.texi: New file.
89631         * doc/posix-functions/openat.texi: New file.
89632         * doc/posix-functions/psiginfo.texi: New file.
89633         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
89634         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
89635         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
89636         * doc/posix-functions/readlinkat.texi: New file.
89637         * doc/posix-functions/renameat.texi: New file.
89638         * doc/posix-functions/strerror_l.texi: New file.
89639         * doc/posix-functions/symlinkat.texi: New file.
89640         * doc/posix-functions/unlinkat.texi: New file.
89641         * doc/posix-functions/utimensat.texi: New file.
89642         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89644 2008-12-14  Bruno Haible  <bruno@clisp.org>
89646         Update doc for POSIX:2008.
89647         * doc/posix-functions/alphasort.texi: Renamed from
89648         doc/glibc-functions/alphasort.texi.
89649         * doc/posix-functions/dirfd.texi: Renamed from
89650         doc/glibc-functions/dirfd.texi.
89651         * doc/posix-functions/dprintf.texi: Renamed from
89652         doc/glibc-functions/dprintf.texi.
89653         * doc/posix-functions/duplocale.texi: Renamed from
89654         doc/glibc-functions/duplocale.texi.
89655         * doc/posix-functions/fexecve.texi: Renamed from
89656         doc/glibc-functions/fexecve.texi.
89657         * doc/posix-functions/fmemopen.texi: Renamed from
89658         doc/glibc-functions/fmemopen.texi.
89659         * doc/posix-functions/freelocale.texi: Renamed from
89660         doc/glibc-functions/freelocale.texi.
89661         * doc/posix-functions/getdate_err.texi: Renamed from
89662         doc/glibc-functions/getdate_err.texi.
89663         * doc/posix-functions/isalnum_l.texi: Renamed from
89664         doc/glibc-functions/isalnum_l.texi.
89665         * doc/posix-functions/isalpha_l.texi: Renamed from
89666         doc/glibc-functions/isalpha_l.texi.
89667         * doc/posix-functions/isblank_l.texi: Renamed from
89668         doc/glibc-functions/isblank_l.texi.
89669         * doc/posix-functions/iscntrl_l.texi: Renamed from
89670         doc/glibc-functions/iscntrl_l.texi.
89671         * doc/posix-functions/isdigit_l.texi: Renamed from
89672         doc/glibc-functions/isdigit_l.texi.
89673         * doc/posix-functions/isgraph_l.texi: Renamed from
89674         doc/glibc-functions/isgraph_l.texi.
89675         * doc/posix-functions/islower_l.texi: Renamed from
89676         doc/glibc-functions/islower_l.texi.
89677         * doc/posix-functions/isprint_l.texi: Renamed from
89678         doc/glibc-functions/isprint_l.texi.
89679         * doc/posix-functions/ispunct_l.texi: Renamed from
89680         doc/glibc-functions/ispunct_l.texi.
89681         * doc/posix-functions/isspace_l.texi: Renamed from
89682         doc/glibc-functions/isspace_l.texi.
89683         * doc/posix-functions/isupper_l.texi: Renamed from
89684         doc/glibc-functions/isupper_l.texi.
89685         * doc/posix-functions/iswalnum_l.texi: Renamed from
89686         doc/glibc-functions/iswalnum_l.texi.
89687         * doc/posix-functions/iswalpha_l.texi: Renamed from
89688         doc/glibc-functions/iswalpha_l.texi.
89689         * doc/posix-functions/iswblank_l.texi: Renamed from
89690         doc/glibc-functions/iswblank_l.texi.
89691         * doc/posix-functions/iswcntrl_l.texi: Renamed from
89692         doc/glibc-functions/iswcntrl_l.texi.
89693         * doc/posix-functions/iswctype_l.texi: Renamed from
89694         doc/glibc-functions/iswctype_l.texi.
89695         * doc/posix-functions/iswdigit_l.texi: Renamed from
89696         doc/glibc-functions/iswdigit_l.texi.
89697         * doc/posix-functions/iswgraph_l.texi: Renamed from
89698         doc/glibc-functions/iswgraph_l.texi.
89699         * doc/posix-functions/iswlower_l.texi: Renamed from
89700         doc/glibc-functions/iswlower_l.texi.
89701         * doc/posix-functions/iswprint_l.texi: Renamed from
89702         doc/glibc-functions/iswprint_l.texi.
89703         * doc/posix-functions/iswpunct_l.texi: Renamed from
89704         doc/glibc-functions/iswpunct_l.texi.
89705         * doc/posix-functions/iswspace_l.texi: Renamed from
89706         doc/glibc-functions/iswspace_l.texi.
89707         * doc/posix-functions/iswupper_l.texi: Renamed from
89708         doc/glibc-functions/iswupper_l.texi.
89709         * doc/posix-functions/iswxdigit_l.texi: Renamed from
89710         doc/glibc-functions/iswxdigit_l.texi.
89711         * doc/posix-functions/isxdigit_l.texi: Renamed from
89712         doc/glibc-functions/isxdigit_l.texi.
89713         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
89714         doc/glibc-functions/mbsnrtowcs.texi.
89715         * doc/posix-functions/mkdtemp.texi: Renamed from
89716         doc/glibc-functions/mkdtemp.texi.
89717         * doc/posix-functions/newlocale.texi: Renamed from
89718         doc/glibc-functions/newlocale.texi.
89719         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
89720         doc/glibc-functions/nl_langinfo_l.texi.
89721         * doc/posix-functions/open_memstream.texi: Renamed from
89722         doc/glibc-functions/open_memstream.texi.
89723         * doc/posix-functions/opterr.texi: Renamed from
89724         doc/glibc-functions/opterr.texi.
89725         * doc/posix-functions/optind.texi: Renamed from
89726         doc/glibc-functions/optind.texi.
89727         * doc/posix-functions/optopt.texi: Renamed from
89728         doc/glibc-functions/optopt.texi.
89729         * doc/posix-functions/psignal.texi: Renamed from
89730         doc/glibc-functions/psignal.texi.
89731         * doc/posix-functions/scandir.texi: Renamed from
89732         doc/glibc-functions/scandir.texi.
89733         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
89734         doc/glibc-functions/sched_get_priority_min.texi.
89735         * doc/posix-functions/signgam.texi: Renamed from
89736         doc/glibc-functions/signgam.texi.
89737         * doc/posix-functions/stpcpy.texi: Renamed from
89738         doc/glibc-functions/stpcpy.texi.
89739         * doc/posix-functions/stpncpy.texi: Renamed from
89740         doc/glibc-functions/stpncpy.texi.
89741         * doc/posix-functions/strcasecmp_l.texi: Renamed from
89742         doc/glibc-functions/strcasecmp_l.texi.
89743         * doc/posix-functions/strcoll_l.texi: Renamed from
89744         doc/glibc-functions/strcoll_l.texi.
89745         * doc/posix-functions/strfmon_l.texi: Renamed from
89746         doc/glibc-functions/strfmon_l.texi.
89747         * doc/posix-functions/strftime_l.texi: Renamed from
89748         doc/glibc-functions/strftime_l.texi.
89749         * doc/posix-functions/strncasecmp_l.texi: Renamed from
89750         doc/glibc-functions/strncasecmp_l.texi.
89751         * doc/posix-functions/strndup.texi: Renamed from
89752         doc/glibc-functions/strndup.texi.
89753         * doc/posix-functions/strnlen.texi: Renamed from
89754         doc/glibc-functions/strnlen.texi.
89755         * doc/posix-functions/strsignal.texi: Renamed from
89756         doc/glibc-functions/strsignal.texi.
89757         * doc/posix-functions/strxfrm_l.texi: Renamed from
89758         doc/glibc-functions/strxfrm_l.texi.
89759         * doc/posix-functions/timer_gettime.texi: Renamed from
89760         doc/glibc-functions/timer_gettime.texi.
89761         * doc/posix-functions/tolower_l.texi: Renamed from
89762         doc/glibc-functions/tolower_l.texi.
89763         * doc/posix-functions/toupper_l.texi: Renamed from
89764         doc/glibc-functions/toupper_l.texi.
89765         * doc/posix-functions/towctrans_l.texi: Renamed from
89766         doc/glibc-functions/towctrans_l.texi.
89767         * doc/posix-functions/towlower_l.texi: Renamed from
89768         doc/glibc-functions/towlower_l.texi.
89769         * doc/posix-functions/towupper_l.texi: Renamed from
89770         doc/glibc-functions/towupper_l.texi.
89771         * doc/posix-functions/uselocale.texi: Renamed from
89772         doc/glibc-functions/uselocale.texi.
89773         * doc/posix-functions/vdprintf.texi: Renamed from
89774         doc/glibc-functions/vdprintf.texi.
89775         * doc/posix-functions/wcpcpy.texi:
89776         Renamed from doc/glibc-functions/wcpcpy.texi.
89777         * doc/posix-functions/wcpncpy.texi: Renamed from
89778         doc/glibc-functions/wcpncpy.texi.
89779         * doc/posix-functions/wcscasecmp.texi: Renamed from
89780         doc/glibc-functions/wcscasecmp.texi.
89781         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
89782         doc/glibc-functions/wcscasecmp_l.texi.
89783         * doc/posix-functions/wcscoll_l.texi: Renamed from
89784         doc/glibc-functions/wcscoll_l.texi.
89785         * doc/posix-functions/wcsdup.texi: Renamed from
89786         doc/glibc-functions/wcsdup.texi.
89787         * doc/posix-functions/wcsncasecmp.texi: Renamed from
89788         doc/glibc-functions/wcsncasecmp.texi.
89789         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
89790         doc/glibc-functions/wcsncasecmp_l.texi.
89791         * doc/posix-functions/wcsnlen.texi: Renamed from
89792         doc/glibc-functions/wcsnlen.texi.
89793         * doc/posix-functions/wcsnrtombs.texi: Renamed from
89794         doc/glibc-functions/wcsnrtombs.texi.
89795         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
89796         doc/glibc-functions/wcsxfrm_l.texi.
89797         * doc/posix-functions/wctrans_l.texi: Renamed from
89798         doc/glibc-functions/wctrans_l.texi.
89799         * doc/posix-functions/wctype_l.texi: Renamed from
89800         doc/glibc-functions/wctype_l.texi.
89801         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89802         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
89803         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
89804         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
89805         these subsections.
89806         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
89807         Remove sections.
89809 2008-12-14  Bruno Haible  <bruno@clisp.org>
89811         Update doc for POSIX:2008.
89812         * doc/posix-functions/*.texi: Update URL of POSIX specification.
89814 2008-12-14  Bruno Haible  <bruno@clisp.org>
89816         Update doc for POSIX:2008.
89817         * doc/pastposix-functions/bcmp.texi: Renamed from
89818         doc/posix-functions/bcmp.texi.
89819         * doc/pastposix-functions/bcopy.texi: Renamed from
89820         doc/posix-functions/bcopy.texi.
89821         * doc/pastposix-functions/bsd_signal.texi: Renamed from
89822         doc/posix-functions/bsd_signal.texi.
89823         * doc/pastposix-functions/bzero.texi: Renamed from
89824         doc/posix-functions/bzero.texi.
89825         * doc/pastposix-functions/ecvt.texi: Renamed from
89826         doc/posix-functions/ecvt.texi.
89827         * doc/pastposix-functions/fcvt.texi: Renamed from
89828         doc/posix-functions/fcvt.texi.
89829         * doc/pastposix-functions/ftime.texi: Renamed from
89830         doc/posix-functions/ftime.texi.
89831         * doc/pastposix-functions/gcvt.texi: Renamed from
89832         doc/posix-functions/gcvt.texi.
89833         * doc/pastposix-functions/getcontext.texi: Renamed from
89834         doc/posix-functions/getcontext.texi.
89835         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
89836         doc/posix-functions/gethostbyaddr.texi.
89837         * doc/pastposix-functions/gethostbyname.texi: Renamed from
89838         doc/posix-functions/gethostbyname.texi.
89839         * doc/pastposix-functions/getwd.texi: Renamed from
89840         doc/posix-functions/getwd.texi.
89841         * doc/pastposix-functions/h_errno.texi: Renamed from
89842         doc/posix-functions/h_errno.texi.
89843         * doc/pastposix-functions/index.texi: Renamed from
89844         doc/posix-functions/index.texi.
89845         * doc/pastposix-functions/makecontext.texi: Renamed from
89846         doc/posix-functions/makecontext.texi.
89847         * doc/pastposix-functions/mktemp.texi: Renamed from
89848         doc/posix-functions/mktemp.texi.
89849         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
89850         doc/posix-functions/pthread_attr_getstackaddr.texi.
89851         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
89852         doc/posix-functions/pthread_attr_setstackaddr.texi.
89853         * doc/pastposix-functions/rindex.texi: Renamed from
89854         doc/posix-functions/rindex.texi.
89855         * doc/pastposix-functions/scalb.texi: Renamed from
89856         doc/posix-functions/scalb.texi.
89857         * doc/pastposix-functions/setcontext.texi: Renamed from
89858         doc/posix-functions/setcontext.texi.
89859         * doc/pastposix-functions/swapcontext.texi: Renamed from
89860         doc/posix-functions/swapcontext.texi.
89861         * doc/pastposix-functions/ualarm.texi: Renamed from
89862         doc/posix-functions/ualarm.texi.
89863         * doc/pastposix-functions/usleep.texi: Renamed from
89864         doc/posix-functions/usleep.texi.
89865         * doc/pastposix-functions/vfork.texi: Renamed from
89866         doc/posix-functions/vfork.texi.
89867         * doc/pastposix-functions/wcswcs.texi: Renamed from
89868         doc/posix-functions/wcswcs.texi.
89869         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
89870         (Function Substitutes): Update.
89872 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89874         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
89875         m4/strerror.m4.
89877 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89878             Bruno Haible  <bruno@clisp.org>
89880         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
89882 2008-12-13  Bruno Haible  <bruno@clisp.org>
89884         * modules/strtoull (Depends-on): Remove unistd.
89886 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89888         * modules/strtoull (Depends-on): Add stdlib.
89890 2008-12-11  Simon Josefsson  <simon@josefsson.org>
89892         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
89894 2008-12-10  Jim Meyering  <meyering@redhat.com>
89896         gl_ASSERT: don't say assertions are disabled when they're not
89897         * m4/assert.m4 (gl_ASSERT): Do not make configure report
89898         "checking whether to enable assertions... no", when they are in
89899         fact enabled.  This is solely a bug in the output of configure.
89900         In spite of saying "no", NDEBUG was not defined in that case.
89901         Also, as noted by Eric Blake, leave assertions enabled upon
89902         --enable-assert=INVALID.
89904 2008-12-10  Bruno Haible  <bruno@clisp.org>
89906         Change MODULES.html to refer to POSIX:2008 where possible.
89907         * MODULES.html.sh (POSIX2008_URL): New variable.
89908         (posix_headers): Remove sys/timeb, ucontext.
89909         (posix2001_headers): New variable.
89910         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
89911         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
89912         index, makecontext, mktemp, pthread_attr_getstackaddr,
89913         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
89914         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
89915         (posix2001_functions): New variable.
89916         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
89917         otherwise.
89919 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89921         add missing include to parse-duration.c
89922         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
89923         * modules/parse-duration (Depends-on): Add xalloc.
89925         fix sed script reading maint.mk
89926         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
89927         (syntax-check-rules): Use it.
89929 2008-12-09  Bruno Haible  <bruno@clisp.org>
89931         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
89932         MacOS X 10.4/PowerPC.
89933         Reported by Simon Josefsson.
89935 2008-12-08  Jim Meyering  <meyering@redhat.com>
89937         work around mingw's lack of some S_IF definitions
89938         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
89939         Reported by Simon Josefsson.
89941 2008-12-08  Bruno Haible  <bruno@clisp.org>
89943         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
89944         applied to variables. Needed on MacOS X 10.4/PowerPC.
89945         Reported by Simon Josefsson.
89947 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
89948         and Eric Blake  <ebb9@byu.net>
89950         assert: honor --enable-assert
89951         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
89952         order to honor --enable-assert, rather than treating it as a
89953         synonym for --disable-assert.
89955 2008-12-08  Jim Meyering  <meyering@redhat.com>
89957         * lib/posixtm.c: Remove now-useless declaration of mktime.
89959         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
89961 2008-12-07  Bruno Haible  <bruno@clisp.org>
89963         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
89964         test_once): Mark functions as static.
89965         * tests/test-tls.c (test_tls): Likewise.
89967 2008-12-07  Bruno Haible  <bruno@clisp.org>
89969         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
89970         iconv_register_autodetect.
89972 2008-12-07  Jim Meyering  <meyering@redhat.com>
89974         posixtm.c: avoid a warning
89975         * lib/posixtm.c (posixtime): Don't initialize tm0.
89976         It's no longer needed to placate gcc4's -Wuninitialized,
89977         and the attempt to placate would elicit a new warning.
89979         unicodeio.c: mark unused parameters
89980         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89981         (fallback_failure_callback): Likewise.
89983 2008-12-07  Bruno Haible  <bruno@clisp.org>
89985         * gnulib-tool (func_create_testdir): When building the tests
89986         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
89987         Reported by Simon Josefsson.
89989 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89991         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
89993 2008-12-06  Bruno Haible  <bruno@clisp.org>
89995         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
89996         Suggested by Eric Blake.
89998 2008-12-06  Bruno Haible  <bruno@clisp.org>
90000         Fix a c-stack test failure on MacOS X.
90001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
90002         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
90003         handler for SIGBUS as well.
90004         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
90005         install a signal handler for SIGBUS as well.
90006         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
90008 2008-12-06  Bruno Haible  <bruno@clisp.org>
90010         Advocacy documentation.
90011         * doc/gnulib-intro.texi (Benefits): New section.
90012         * doc/gnulib.texi: Update.
90014 2008-12-06  Bruno Haible  <bruno@clisp.org>
90016         Document the 'manywarnings' module.
90017         * doc/manywarnings.texi: New file.
90018         * doc/gnulib.texi: Include it.
90020 2008-12-05  Eric Blake  <ebb9@byu.net>
90022         tests: silence some gcc warnings
90023         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
90024         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
90025         type mismatches.
90027 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90028             Bruno Haible  <bruno@clisp.org>
90030         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
90032 2008-11-29  Jim Meyering  <meyering@redhat.com>
90034         unicodeio.c: mark unused parameters
90035         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
90036         (fallback_failure_callback): Likewise.
90038         fts: fix a thinko
90039         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
90040         (set_stat_type): Return S_IF*-valued "type" directly.
90041         Prompted by James Youngman's spotting a related bug.
90042         Confirmed by further testing through find.
90044         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
90045         * lib/fts.c (D_TYPE): Define.
90046         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
90047         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
90048         (s_ifmt_shift_bits): New function.
90049         (set_stat_type): New function.
90050         (fts_build): When not calling fts_stat, call set_stat_type
90051         to propagate dirent.d_type info to fts_read caller.
90052         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
90053         fts_statp->st_mode type information may be valid.
90055 2008-11-28  Simon Josefsson  <simon@josefsson.org>
90057         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
90058         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
90059         <sds@gnu.org>.
90061 2008-11-20  Bruno Haible  <bruno@clisp.org>
90063         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
90064         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
90065         INCLUDE_NEXT.
90066         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
90067         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
90068         * modules/math (Makefile.am): Substitute
90069         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
90070         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
90072 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
90073             Bruno Haible  <bruno@clisp.org>
90075         * lib/stdint.in.h: Define all type macros so that their expansion is
90076         a single typedef'ed token. Fixes a compilation failure in Boost which
90077         does "using ::int8_t;".
90079 2008-11-18  Simon Josefsson  <simon@josefsson.org>
90081         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
90082         gl_MANYWARN_ALL_GCC.
90083         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
90084         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
90085         * modules/manywarnings: New file.
90086         * MODULES.html.sh: Mention manywarnings module.
90088 2008-11-18  Bruno Haible  <bruno@clisp.org>
90090         * doc/gnulib-tool.texi (Unit tests): New section.
90092 2008-11-18  Simon Josefsson  <simon@josefsson.org>
90094         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
90095         paths like 'lib/po/foo.po'.
90097 2008-11-17  Simon Josefsson  <simon@josefsson.org>
90099         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
90100         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
90102 2008-11-17  Simon Josefsson  <simon@josefsson.org>
90104         * m4/warnings.m4: Use CPPFLAGS to really check whether the
90105         parameter works.
90107 2008-11-17  Simon Josefsson  <simon@josefsson.org>
90109         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
90111 2008-11-17  Bruce Korb  <bkorb@gnu.org>
90113         * modules/parse-duration-tests: New file.
90114         * tests/test-parse-duration.sh: New file.
90115         * tests/test-parse-duration.c: New file.
90117         New module 'parse-duration'.
90118         * lib/parse-duration.h: New file.
90119         * lib/parse-duration.c: New file.
90120         * modules/parse-duration: New file.
90122 2008-11-17  Bruno Haible  <bruno@clisp.org>
90124         * tests/test-select-out.sh: Comment out the first pipe test.
90125         Reported by Simon Josefsson.
90127 2008-11-17  Bruno Haible  <bruno@clisp.org>
90129         * modules/getaddrinfo (Depends-on): Add servent, hostent.
90130         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
90131         gl_HOSTENT.
90133 2008-11-17  Bruno Haible  <bruno@clisp.org>
90135         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
90136         -lnetwork and -lnet. Needed for Haiku and BeOS.
90138 2008-11-16  Bruno Haible  <bruno@clisp.org>
90140         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
90142 2008-11-16  Bruno Haible  <bruno@clisp.org>
90144         Avoid test failure on Haiku.
90145         * tests/test-fsync.c: Include <errno.h>.
90146         (main): Don't require that fsync (0) fails.
90148 2008-11-15  Bruno Haible  <bruno@clisp.org>
90150         New module 'hostent'.
90151         * modules/hostent: New file.
90152         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
90154 2008-11-15  Bruno Haible  <bruno@clisp.org>
90156         New module 'servent'.
90157         * modules/servent: New file.
90158         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
90160 2008-11-15  Bruno Haible  <bruno@clisp.org>
90162         Avoid generating same test program with two different rules.
90163         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
90164         test-frexp to test-frexp-nolibm.
90165         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
90166         test-frexpl to test-frexpl-nolibm.
90168 2008-11-15  Bruno Haible  <bruno@clisp.org>
90170         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
90171         $(FREXPL_LIBM).
90173 2008-11-15  Bruno Haible  <bruno@clisp.org>
90175         * lib/netdb.in.h: Activate the definitions also when the system's
90176         <netdb.h> has 'struct addrinfo'.
90177         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
90178         EAI_OVERFLOW or AI_NUMERICSERV.
90179         * doc/posix-headers/netdb.texi: Document the problem.
90181 2008-11-15  Bruno Haible  <bruno@clisp.org>
90183         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
90185         Make the 'sched' module work on platforms where <sched.h> exists but
90186         is incomplete (such as Haiku).
90187         * lib/sched.in.h; Include the system's <sched.h> if it exists.
90188         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
90189         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
90190         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
90191         HAVE_STRUCT_SCHED_PARAM.
90192         * modules/sched (Depends-on): Add include_next.
90193         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
90194         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
90195         * doc/posix-headers/sched.texi: Document the issue.
90197 2008-11-13  Jim Meyering  <meyering@redhat.com>
90199         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
90200         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
90201         test would fail due to the difference in the Report bugs to ...
90202         line.  The expected address is empty, "<>", while the actual
90203         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
90205 2008-11-12  Bruno Haible  <bruno@clisp.org>
90207         lstat: don't compile lstat.c on systems lacking lstat
90208         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
90209         which don't have lstat; this is handled by lib/sys_stat.in.h already.
90210         Reported by Daniel P. Berrange via Jim Meyering.
90212 2008-11-12  Jim Meyering  <meyering@redhat.com>
90214         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
90216 2008-11-12  Simon Josefsson  <simon@josefsson.org>
90218         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
90219         instead.
90221 2008-11-12  Bruno Haible  <bruno@clisp.org>
90223         * lib/unicodeio.c: Include unistr.h.
90224         (utf8_wctomb): Remove function.
90225         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
90227 2008-11-12  Simon Josefsson  <simon@josefsson.org>
90229         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
90230         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
90231         <bruno@clisp.org>.
90232         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
90234 2008-11-12  Simon Josefsson  <simon@josefsson.org>
90236         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
90237         * doc/gnulib.texi: Add section for warnings.
90239 2008-11-11  Bruno Haible  <bruno@clisp.org>
90241         * lib/sockets.h: Add a comment.
90243 2008-11-11  Karl Berry  <karl@gnu.org>
90245         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
90247 2008-11-11  Eric Blake  <ebb9@byu.net>
90249         fdl.texi: avoid git symlinks
90250         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
90252 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
90254         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
90256 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
90258         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
90259         (gl_WARN_ADD): Substitute $2 if literal.
90261 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
90263         * m4/warning.m4: Remove.
90265 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
90267         * m4/warnings.m4: Almost complete rewrite. :-)
90269 2008-11-10  Simon Josefsson  <simon@josefsson.org>
90271         * modules/warnings: New module.
90272         * m4/warnings.m4: New file.
90273         * MODULES.html.sh: Mention warnings module.
90274         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
90275         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90277 2008-11-10  Eric Blake  <ebb9@byu.net>
90279         fdl.texi: make a symlink to the latest version
90280         * doc/standards.texi: Revert today's earlier change.
90281         * doc/fdl-1.2.texi: Rename from old fdl.texi...
90282         * doc/fdl.texi: ...and replace this with a symlink to the newer
90283         fdl-1.3.texi.
90285 2008-11-10  Bruno Haible  <bruno@clisp.org>
90287         * tests/test-select-fd.c (main): Accept the result file name as fourth
90288         argument.
90289         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
90290         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
90292 2008-11-10  Bruno Haible  <bruno@clisp.org>
90294         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
90295         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
90296         as autoconf-substituted macros.
90297         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
90298         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
90299         gl_NETDB_H_DEFAULTS. Set these variables.
90300         * modules/netdb (Makefile.am): Substitute these variables.
90302 2008-11-10  Eric Blake  <ebb9@byu.net>
90304         standards.texi: include correct file for FDL 1.3
90305         * doc/standards.texi (GNU Free Documentation License): Change
90306         include file to pull in FDL 1.3, not 1.2.
90308         fdl.texi: revert accidental change to license
90309         * doc/fdl.texi: This is FDL 1.2, not 1.3.
90311 2008-11-10  Bruno Haible  <bruno@clisp.org>
90313         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
90314         cross-compiling guesses also when the native compile gives no result.
90316 2008-11-10  Bruno Haible  <bruno@clisp.org>
90318         * lib/spawni.c (__spawni): Force variable into the stack.
90320 2008-11-10  Bruno Haible  <bruno@clisp.org>
90322         Add support for Haiku.
90323         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
90324         glibc and BeOS, but also on Haiku.
90325         * lib/fpurge.c (fpurge): Likewise.
90326         * lib/freadable.c (freadable): Likewise.
90327         * lib/freadahead.c (freadahead): Likewise.
90328         * lib/freading.c (freading): Likewise.
90329         * lib/freadptr.c (freadptr): Likewise.
90330         * lib/freadseek.c (freadptrinc): Likewise.
90331         * lib/fseeko.c (rpl_fseeko): Likewise.
90332         * lib/fseterr.c (fseterr): Likewise.
90333         * lib/fwritable.c (fwritable): Likewise.
90334         * lib/fwriting.c (fwriting): Likewise.
90335         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
90337 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
90339         * lib/config.charset: Treat Haiku like BeOS.
90341 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
90343         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
90344         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
90346 2008-11-08  Bruno Haible  <bruno@clisp.org>
90348         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
90349         AC_CACHE_CHECK.
90351 2008-11-08  Bruno Haible  <bruno@clisp.org>
90353         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
90355 2008-11-08  Bruno Haible  <bruno@clisp.org>
90357         * tests/test-select-fd.c: New file.
90358         * tests/test-select-in.sh: New file.
90359         * tests/test-select-out.sh: New file.
90360         * tests/test-select-stdin.c: New file.
90361         * modules/select-tests (Files): Add the new files.
90362         (Depends-on): Add gettimeofday.
90363         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
90364         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
90365         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
90367 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
90368             Bruno Haible  <bruno@clisp.org>
90370         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
90372 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
90374         * build-aux/pmccabe2html: Added support for C++ source files.
90376 2008-11-05  Ben Pfaff  <blp@gnu.org>
90378         Fix lib/close.c build on Windows.
90379         * modules/close (Files): Add lib/w32sock.h.
90381 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
90383         Accept Bison's NEWS format.
90384         * build-aux/announce-gen (print_news_deltas): Tweak
90385         $re_prefix.
90387 2008-11-04  Bruno Haible  <bruno@clisp.org>
90389         * modules/random_r (Maintainer): Add glibc.
90391 2008-11-04  Simon Josefsson  <simon@josefsson.org>
90393         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
90394         by karl@freefriends.org (Karl Berry).
90395         * doc/alloca.texi: Likewise.
90396         * doc/c-ctype.texi: Likewise.
90397         * doc/c-strcase.texi: Likewise.
90398         * doc/c-strcaseeq.texi: Likewise.
90399         * doc/c-strcasestr.texi: Likewise.
90400         * doc/c-strstr.texi: Likewise.
90401         * doc/c-strtod.texi: Likewise.
90402         * doc/c-strtold.texi: Likewise.
90403         * doc/ctime.texi: Likewise.
90404         * doc/error.texi: Likewise.
90405         * doc/fdl.texi: Likewise.
90406         * doc/gcd.texi: Likewise.
90407         * doc/getdate.texi: Likewise.
90408         * doc/gnulib-intro.texi: Likewise.
90409         * doc/gnulib-tool.texi: Likewise.
90410         * doc/gnulib.texi: Likewise.
90411         * doc/inet_ntoa.texi: Likewise.
90412         * doc/maintain.texi: Likewise.
90413         * doc/make-stds.texi: Likewise.
90414         * doc/quote.texi: Likewise.
90415         * doc/regexprops-generic.texi: Likewise.
90416         * doc/standards.texi: Likewise.
90417         * doc/verify.texi: Likewise.
90418         * doc/visibility.texi: Likewise.
90419         * doc/gnulib.texi (GNU Free Documentation License): Include
90420         fdl-1.3.texi instead of fdl.texi.
90422 2008-11-04  Simon Josefsson  <simon@josefsson.org>
90424         * doc/fdl-1.3.texi: New file, from
90425         <http://www.gnu.org/licenses/fdl-1.3.texi>.
90426         * modules/fdl-1.3: Add.
90427         * MODULES.html.sh: Add fdl-1.3.
90429 2008-11-03  Bruno Haible  <bruno@clisp.org>
90431         Make determination of absolute name of header file work with AIX xlc.
90432         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
90433         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
90434         preprocessing.
90435         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
90436         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
90438 2008-11-03  Simon Josefsson  <simon@josefsson.org>
90440         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
90441         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
90442         <ludo@gnu.org>.
90444 2008-11-02  Bruno Haible  <bruno@clisp.org>
90446         Mark 'strpbrk' obsolete.
90447         * modules/strpbrk (Status, Notice): New sections.
90448         * modules/strtok_r (Depends-on): Add strpbrk.
90450 2008-11-02  Bruno Haible  <bruno@clisp.org>
90452         Mark 'strdup' obsolete.
90453         * modules/strdup (Status, Notice): New sections.
90454         * modules/findprog (Depends-on): Add strdup.
90455         * modules/getaddrinfo (Depends-on): Likewise.
90456         * modules/localename (Depends-on): Likewise.
90457         * modules/relocatable-lib (Depends-on): Likewise.
90458         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
90459         * modules/relocatable-prog (Depends-on): Likewise.
90460         * modules/trim (Depends-on): Likewise.
90461         * modules/unictype/gen-ctype (Depends-on): Likewise.
90462         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
90464 2008-11-02  Bruno Haible  <bruno@clisp.org>
90466         Mark 'strcspn' obsolete.
90467         * modules/strcspn (Status, Notice): New sections.
90469 2008-11-02  Bruno Haible  <bruno@clisp.org>
90471         Mark 'rmdir' obsolete.
90472         * modules/rmdir (Status, Notice): New sections.
90473         * modules/clean-temp (Depends-on): Add rmdir.
90474         * modules/openat (Depends-on): Likewise.
90476 2008-11-02  Bruno Haible  <bruno@clisp.org>
90478         Mark 'raise' obsolete.
90479         * modules/raise (Status, Notice): New sections.
90480         (Include): Specify <signal.h>.
90481         * modules/stdio (Depends-on): Add raise.
90482         * modules/write (Depends-on): Likewise.
90484 2008-11-02  Bruno Haible  <bruno@clisp.org>
90486         Mark 'memset' obsolete.
90487         * modules/memset (Status, Notice): New sections.
90489 2008-11-02  Bruno Haible  <bruno@clisp.org>
90491         Mark 'memmove' obsolete.
90492         * modules/memmove (Status, Notice): New sections.
90493         * modules/argp (Depends-on): Add memmove.
90494         * modules/argz (Depends-on): Likewise.
90495         * modules/canonicalize (Depends-on): Likewise.
90496         * modules/canonicalize-lgpl (Depends-on): Likewise.
90497         * modules/fts (Depends-on): Likewise.
90498         * modules/getcwd (Depends-on): Likewise.
90499         * modules/human (Depends-on): Likewise.
90500         * modules/regex (Depends-on): Likewise.
90501         * modules/striconveh (Depends-on): Likewise.
90502         * modules/trim (Depends-on): Likewise.
90503         * modules/unistr/u8-move (Depends-on): Likewise.
90504         * modules/unistr/u16-move (Depends-on): Likewise.
90505         * modules/unistr/u32-move (Depends-on): Likewise.
90507 2008-11-02  Bruno Haible  <bruno@clisp.org>
90509         Mark 'memcpy' obsolete.
90510         * modules/memcpy (Status, Notice): New sections.
90512 2008-11-02  Bruno Haible  <bruno@clisp.org>
90514         Mark 'memcmp' obsolete.
90515         * modules/memcmp (Status, Notice): New sections.
90516         * modules/argmatch (Depends-on): Add memchr.
90517         * modules/backupfile (Depends-on): Likewise.
90518         * modules/c-strcasestr (Depends-on): Likewise.
90519         * modules/crypto/des (Depends-on): Likewise.
90520         * modules/csharpcomp (Depends-on): Likewise.
90521         * modules/fnmatch (Depends-on): Likewise.
90522         * modules/git-merge-changelog (Depends-on): Likewise.
90523         * modules/isnand (Depends-on): Likewise.
90524         * modules/isnand-nolibm (Depends-on): Likewise.
90525         * modules/isnanf (Depends-on): Likewise.
90526         * modules/isnanf-nolibm (Depends-on): Likewise.
90527         * modules/isnanl (Depends-on): Likewise.
90528         * modules/isnanl-nolibm (Depends-on): Likewise.
90529         * modules/mbchar (Depends-on): Likewise.
90530         * modules/memcoll (Depends-on): Likewise.
90531         * modules/quotearg (Depends-on): Likewise.
90532         * modules/regex (Depends-on): Likewise.
90533         * modules/relocatable-prog (Depends-on): Likewise.
90534         * modules/same (Depends-on): Likewise.
90535         * modules/signbit (Depends-on): Likewise.
90536         * modules/strcasestr-simple (Depends-on): Likewise.
90537         * modules/unictype/gen-ctype (Depends-on): Likewise.
90538         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
90539         * modules/uniname/uniname (Depends-on): Likewise.
90540         * modules/unistr/u8-cmp (Depends-on): Likewise.
90542 2008-11-02  Bruno Haible  <bruno@clisp.org>
90544         Mark 'memchr' obsolete.
90545         * modules/memchr (Status, Notice): New sections.
90546         * modules/argp (Depends-on): Add memchr.
90547         * modules/base64 (Depends-on): Likewise.
90548         * modules/c-strcasestr (Depends-on): Likewise.
90549         * modules/chdir-long (Depends-on): Likewise.
90550         * modules/fnmatch (Depends-on): Likewise.
90551         * modules/getsubopt (Depends-on): Likewise.
90552         * modules/git-merge-changelog (Depends-on): Likewise.
90553         * modules/glob (Depends-on): Likewise.
90554         * modules/strcasestr-simple (Depends-on): Likewise.
90555         * modules/strnlen (Depends-on): Likewise.
90557 2008-11-02  Bruno Haible  <bruno@clisp.org>
90559         Mark 'atexit' obsolete.
90560         * modules/atexit (Status, Notice): New sections.
90561         * modules/chdir-long (Depends-on): Add atexit.
90562         * modules/wait-process (Depends-on): Likewise.
90564 2008-11-02  Bruno Haible  <bruno@clisp.org>
90566         * gnulib-tool: New option --with-obsolete.
90567         (func_usage): Document it.
90568         (func_modules_transitive_closure): Drop obsolete dependencies if
90569         incobsolete is not true.
90570         (func_import): Read and save the incobsolete variable to the cache.
90572 2008-11-02  Bruno Haible  <bruno@clisp.org>
90574         * modules/TEMPLATE-EXTENDED: New field 'Status'.
90575         * gnulib-tool: New option --extract-status.
90576         (func_usage): Document it.
90577         (sed_extract_prog): Recognize it.
90578         (func_get_status): New function.
90580 2008-10-30  Simon Josefsson  <simon@josefsson.org>
90582         * modules/sockets (License): Change from LGPL to LGPLv2+.
90584 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90586         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
90588 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90590         * MODULES.html.sh (Support for systems lacking POSIX:2001):
90591         Mention times and sys_times.
90592         * modules/sys_times, modules/sys_times-tests: New modules.
90593         * modules/times, modules/times-tests: Likewise
90594         * m4/sys_times_h.m4: New file.
90595         * lib/sys_times.in.h: Likewise
90596         * lib/times.c: Likewise.
90597         * tests/test-sys_times.c: Likewise.
90598         * tests/test-times.c: Likewise.
90599         * doc/posix-headers/sys_times.texi: Update.
90600         * doc/posix-functions/times.texi: Update.
90602 2008-10-28  Jim Meyering  <meyering@redhat.com>
90604         * modules/tempname (Depends-on): Add lstat.
90606         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
90608 2008-10-28  Simon Josefsson  <simon@josefsson.org>
90610         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
90611         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
90612         using idiom used elsewhere in gnulib.
90614 2008-10-27  Jim Meyering  <meyering@redhat.com>
90616         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
90618 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90620         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
90621         TESTS_ENVIRONMENT, for shell scripts that needs to call built
90622         programs.
90623         * tests/test-argp-2.sh: Use $EXEEXT when needed.
90625 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90627         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
90629 2008-10-27  Bruno Haible  <bruno@clisp.org>
90631         * tests/test-lstat.c: Include <stdio.h>.
90633 2008-10-27  Simon Josefsson  <simon@josefsson.org>
90635         * modules/lstat-tests: New module.
90636         * tests/test-lstat.c: New file.
90638 2008-10-26  Jim Meyering  <meyering@redhat.com>
90640         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
90642 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90643             Bruno Haible  <bruno@clisp.org>
90645         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
90646         * modules/configmake (Include): Add a note that the include must come
90647         after all system headers.
90648         * lib/javaversion.c: Include configmake.h after all other includes.
90650 2008-10-26  Bruno Haible  <bruno@clisp.org>
90652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
90653         HAVE_STRUCT_RANDOM_DATA to 1.
90654         (gl_STDLIB_H): Simplify.
90656 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90658         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
90659         substitute HAVE_STRUCT_RANDOM_DATA.
90660         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
90661         random_data.
90662         * modules/stdlib (Makefile.am): Substitute
90663         HAVE_STRUCT_RANDOM_DATA.
90665 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90667         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
90668         * doc/gnulib-intro.texi (Copyright): Likewise.
90670 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90672         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
90673         findings.
90675 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
90676             Bruno Haible  <bruno@clisp.org>
90678         * lib/unistd.in.h: Include <winsock2.h>.
90679         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
90680         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
90681         Provide dummy declarations.
90682         (gethostname): Override.
90683         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
90684         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
90685         gl_PREREQ_SYS_H_WINSOCK2.
90686         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
90687         * doc/posix-functions/gethostname.texi: More details.
90689 2008-10-25  Bruno Haible  <bruno@clisp.org>
90691         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
90692         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
90693         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
90695         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
90696         here ...
90697         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
90698         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
90699         gl_UNISTD_H_DEFAULTS.
90701 2008-10-25  Eric Blake  <ebb9@byu.net>
90703         signbit: avoid spurious compiler failure
90704         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
90705         declarations inside function.
90707 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90708             Bruno Haible  <bruno@clisp.org>
90710         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
90711         * modules/random_r (Depends-on): Add stdint.
90713 2008-10-24  Bruno Haible  <bruno@clisp.org>
90715         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
90716         Eggert.
90717         * modules/strerror (License): Likewise.
90719 2008-10-24  Jim Meyering  <meyering@redhat.com>
90721         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
90722         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
90724 2008-10-24  Eric Blake  <ebb9@byu.net>
90726         getgroups: fix compilation when getgroups is available
90727         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
90728         but with <config.h> override of getgroups disabled.
90730 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90732         * doc/gnulib.texi (Header files): Add note about C++ problems.
90733         Explained by Bruno Haible <bruno@clisp.org>.
90735 2008-10-23  Bruno Haible  <bruno@clisp.org>
90737         Define a dummy SA_NODEFER macro on Interix.
90738         * lib/signal.in.h (SA_NODEFER): Define fallback.
90739         Reported by Aleksey Cheusov <cheusov@tut.by> via
90740         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
90742 2008-10-23  Bruno Haible  <bruno@clisp.org>
90744         * modules/freadahead (License): Change to LGPLv2+.
90745         Suggested by Simon Josefsson.
90747 2008-10-23  Jim Meyering  <meyering@redhat.com>
90749         random_r: new module
90750         * modules/random_r: New file.
90751         * m4/random_r.m4: New file.
90752         * lib/random_r.c: New file, from glibc.
90753         * modules/random_r-tests: New file.
90754         * tests/test-random_r.c: New file.
90755         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
90756          Declare.
90757         (RAND_MAX): Define.
90758         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
90759         * modules/stdlib: Substitute them, too.
90760         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
90761         * doc/glibc-functions/initstate_r.texi: Mention the new module.
90762         * doc/glibc-functions/random_r.texi: Likewise.
90763         * doc/glibc-functions/setstate_r.texi: Likewise.
90764         * doc/glibc-functions/srandom_r.texi: Likewise.
90765         * config/srclist.txt: Mention it.
90767 2008-10-23  David Lutterkort  <lutter@redhat.com>
90769         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
90770         link requirement
90772 2008-10-23  Jim Meyering  <meyering@redhat.com>
90774         selinux-h: mark parameters of stub functions as intentionally unused
90775         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
90776         * lib/se-context.in.h: Likewise.
90778 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90780         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
90782 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90784         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
90786 2008-10-22  Eric Blake  <ebb9@byu.net>
90788         glthread/thread: avoid compiler warning
90789         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
90790         Add unreachable abort to silence compiler.
90792 2008-10-22  Eric Blake  <ebb9@byu.net>
90794         netdb: also supply struct addrinfo for cygwin 1.5.x
90795         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
90796         older cygwin.
90797         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
90798         cygwin.
90799         * doc/posix-headers/netdb.texi (netdb.h): Document this.
90801 2008-10-22  Bruno Haible  <bruno@clisp.org>
90803         * users.txt: Update entry about pspp.
90805 2008-10-21  Bruno Haible  <bruno@clisp.org>
90807         Simplification.
90808         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
90809         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
90811         Simplification.
90812         * lib/ioctl.c (ioctl): Don't undefine.
90813         * lib/socket.c (socket): Don't undefine.
90815         Remove unused module indicator macros.
90816         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
90817         GNULIB_$1 as a C macro.
90819         * doc/posix-functions/close.texi: Undo last change.
90820         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
90821         Windows platforms.
90823 2008-10-21  Bruno Haible  <bruno@clisp.org>
90825         Add gethostname() declaration to <unistd.h>.
90826         * lib/unistd.in.h (gethostname): New declaration.
90827         * lib/gethostname.c: Include <unistd.h>.
90828         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
90829         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
90830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
90831         and HAVE_GETHOSTNAME.
90832         * modules/gethostname (Depends-on): Add unistd.
90833         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90834         (Include): Specify <unistd.h>.
90835         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
90836         HAVE_GETHOSTNAME.
90837         * tests/test-gethostname.c: Include <unistd.h> first.
90839 2008-10-21  Bruno Haible  <bruno@clisp.org>
90841         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
90842         * modules/select-tests (Depends-on): Likewise.
90843         Reported by Simon Josefsson.
90845 2008-10-21  Simon Josefsson  <simon@josefsson.org>
90847         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
90848         * lib/accept.c: New file, based on winsock.c.
90849         * lib/bind.c: New file, based on winsock.c.
90850         * lib/connect.c: New file, based on winsock.c.
90851         * lib/getpeername.c: New file, based on winsock.c.
90852         * lib/getsockname.c: New file, based on winsock.c.
90853         * lib/getsockopt.c: New file, based on winsock.c.
90854         * lib/ioctl.c: New file, based on winsock.c.
90855         * lib/listen.c: New file, based on winsock.c.
90856         * lib/recv.c: New file, based on winsock.c.
90857         * lib/recvfrom.c: New file, based on winsock.c.
90858         * lib/send.c: New file, based on winsock.c.
90859         * lib/sendto.c: New file, based on winsock.c.
90860         * lib/setsockopt.c: New file, based on winsock.c.
90861         * lib/shutdown.c: New file, based on winsock.c.
90862         * lib/socket.c: New file, based on winsock.c.
90863         * lib/w32sock.h: New file, based on winsock.c.
90864         * lib/winsock.c: Remove file.
90865         * modules/accept: Likewise.
90866         * modules/bind: Likewise.
90867         * modules/connect: Likewise.
90868         * modules/getpeername: Likewise.
90869         * modules/getsockname: Likewise.
90870         * modules/getsockopt: Likewise.
90871         * modules/ioctl: Likewise.
90872         * modules/listen: Likewise.
90873         * modules/recv: Likewise.
90874         * modules/recvfrom: Likewise.
90875         * modules/send: Likewise.
90876         * modules/sendto: Likewise.
90877         * modules/setsockopt: Likewise.
90878         * modules/shutdown: Likewise.
90879         * modules/socket: Use socket.c instead of winsock.c.
90880         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
90881         * doc/posix-functions/accept.texi: Doc fix.
90882         * doc/posix-functions/bind.texi: Doc fix.
90883         * doc/posix-functions/close.texi: Doc fix.
90884         * doc/posix-functions/connect.texi: Doc fix.
90885         * doc/posix-functions/getpeername.texi: Doc fix.
90886         * doc/posix-functions/getsockname.texi: Doc fix.
90887         * doc/posix-functions/getsockopt.texi: Doc fix.
90888         * doc/posix-functions/ioctl.texi: Doc fix.
90889         * doc/posix-functions/listen.texi: Doc fix.
90890         * doc/posix-functions/recv.texi: Doc fix.
90891         * doc/posix-functions/recvfrom.texi: Doc fix.
90892         * doc/posix-functions/send.texi: Doc fix.
90893         * doc/posix-functions/sendto.texi: Doc fix.
90894         * doc/posix-functions/setsockopt.texi: Doc fix.
90895         * doc/posix-functions/shutdown.texi: Doc fix.
90896         * doc/posix-functions/socket.texi: Doc fix.
90898 2008-10-20  Bruno Haible  <bruno@clisp.org>
90900         Take into account the role of SIGABRT_COMPAT on Windows 2008.
90901         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
90902         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
90903         as an alias for SIGABRT.
90904         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
90905         (sigaction): Map it to SIGABRT.
90906         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
90908 2008-10-20  Bruno Haible  <bruno@clisp.org>
90910         * lib/fts.c: Don't include lstat.h.
90911         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
90913         Move the lstat() declaration to <sys/stat.h>.
90914         * lib/lstat.h: Remove file.
90915         * lib/sys_stat.in.h: Add special invocation convention.
90916         (lstat): New declaration.
90917         * lib/lstat.c (orig_lstat): New function.
90918         (rpl_lstat): Use orig_lstat instead of lstat.
90919         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
90920         AC_C_INLINE. Set REPLACE_LSTAT.
90921         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
90922         and REPLACE_LSTAT.
90923         * modules/lstat (Files): Remove lib/lstat.h.
90924         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90925         (Include): Specify <sys/stat.h> instead of lstat.h.
90926         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
90927         REPLACE_LSTAT.
90928         * NEWS: Mention the change.
90930 2008-10-20  Bruno Haible  <bruno@clisp.org>
90932         * modules/posix_spawn-tests: New file.
90933         * tests/test-posix_spawn3.c: New file.
90935 2008-10-20  Bruno Haible  <bruno@clisp.org>
90937         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
90938         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90939         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
90940         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90941         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
90943 2008-10-20  Bruno Haible  <bruno@clisp.org>
90945         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
90946         of posix_spawn on AIX 5.3.
90948 2008-10-20  Bruno Haible  <bruno@clisp.org>
90950         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
90952 2008-10-20  Bruno Haible  <bruno@clisp.org>
90954         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
90955         of AC_LANG_PROGRAM.
90957 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90959         * lib/netdb.in.h: Don't define GNU specific constants until they
90960         are supported or needed.  Reported by Bruno Haible
90961         <bruno@clisp.org>.
90963 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90965         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
90967 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90969         * lib/getaddrinfo.h: Remove file.
90970         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
90971         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
90972         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
90973         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
90974         * modules/netdb: Substitute GNULIB_GETADDRINFO.
90975         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
90976         * tests/test-getaddrinfo.c: Likewise.
90977         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
90978         * NEWS: Mention change.
90980 2008-10-19  Bruno Haible  <bruno@clisp.org>
90982         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
90984 2008-10-19  Bruno Haible  <bruno@clisp.org>
90986         * lib/wait-process.c: Include simply <sys/wait.h>.
90987         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
90988         WIFSTOPPED): Remove fallback definitions.
90989         * modules/wait-process (Depends-on): Add sys_wait.
90991         New module 'sys_wait'.
90992         * modules/sys_wait: New file.
90993         * lib/sys_wait.in.h: New file, partially copied from
90994         lib/wait-process.c.
90995         * m4/sys_wait_h.m4: New file.
90996         * doc/posix-headers/sys_wait.texi: Mention the new module.
90998 2008-10-19  Bruno Haible  <bruno@clisp.org>
91000         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
91002 2008-10-19  Bruno Haible  <bruno@clisp.org>
91004         Assume that waitpid() fills an 'int' status, not a 'union wait'.
91005         * lib/wait-process.c (WAIT_T): Remove type.
91006         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
91007         (wait_subprocess): Update.
91009 2008-10-19  Bruno Haible  <bruno@clisp.org>
91011         New module 'atoll'.
91012         * modules/atoll: New file.
91013         * lib/stdlib.in.h (atoll): New declaration.
91014         * lib/atoll.c: New file, from glibc with modifications.
91015         * m4/atoll.m4: New file.
91016         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
91017         HAVE_ATOLL.
91018         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
91019         * doc/posix-functions/atoll.texi: Mention the new module.
91021 2008-10-19  Bruno Haible  <bruno@clisp.org>
91023         Add strtoull() declaration to <stdlib.h>.
91024         * lib/stdlib.in.h (strtoull): New declaration.
91025         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
91026         Set HAVE_STRTOULL.
91027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
91028         HAVE_STRTOULL.
91029         * modules/strtoull (Depends-on): Add stdlib.
91030         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91031         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
91032         HAVE_STRTOULL.
91034 2008-10-19  Bruno Haible  <bruno@clisp.org>
91036         Add strtoll() declaration to <stdlib.h>.
91037         * lib/stdlib.in.h (strtoll): New declaration.
91038         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
91039         Set HAVE_STRTOLL.
91040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
91041         HAVE_STRTOLL.
91042         * modules/strtoll (Depends-on): Add stdlib.
91043         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91044         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
91046 2008-10-19  Bruno Haible  <bruno@clisp.org>
91048         * modules/bcopy (Depends-on): Add strings.
91049         (Include): Specify <strings.h>.
91051 2008-10-19  Bruno Haible  <bruno@clisp.org>
91053         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
91055 2008-10-19  Bruno Haible  <bruno@clisp.org>
91057         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
91058         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
91059         mingw.
91061 2008-10-19  Bruno Haible  <bruno@clisp.org>
91063         * lib/atanl.c: Don't include isnanl.h.
91064         * lib/cosl.c: Likewise.
91065         * lib/ldexpl.c: Likewise.
91066         * lib/logl.c: Likewise.
91067         * lib/sinl.c: Likewise.
91068         * lib/sqrtl.c: Likewise.
91069         * lib/tanl.c: Likewise.
91071         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
91072         * lib/isnanf.h: Remove file.
91073         * lib/isnand.h: Remove file.
91074         * lib/isnanl.h: Remove file.
91075         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
91076         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
91077         macros.
91078         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
91079         HAVE_ISNANF, don't define it as a C macro.
91080         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
91081         HAVE_ISNAND, don't define it as a C macro.
91082         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
91083         HAVE_ISNANL, don't define it as a C macro.
91084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
91085         HAVE_ISNAN[FDL].
91086         * modules/isnanf (Files): Remove lib/isnanf.h.
91087         (Depends-on): Add math.
91088         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
91089         (Include): Specify <math.h> instead of isnanf.h.
91090         * modules/isnand (Files): Remove lib/isnand.h.
91091         (Depends-on): Add math.
91092         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
91093         (Include): Specify <math.h> instead of isnand.h.
91094         * modules/isnanl (Files): Remove lib/isnanl.h.
91095         (Depends-on): Add math.
91096         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
91097         (Include): Specify <math.h> instead of isnanl.h.
91098         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
91099         HAVE_ISNAN[FDL].
91100         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
91101         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
91102         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
91103         * NEWS: Mention the change.
91105 2008-10-18  Bruno Haible  <bruno@clisp.org>
91107         Add getusershell(), setusershell(), endusershell() declarations to
91108         <unistd.h>.
91109         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
91110         declarations.
91111         * lib/getusershell.c: Include unistd.h.
91112         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
91113         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
91114         HAVE_GETUSERSHELL.
91115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
91116         and HAVE_GETUSERSHELL.
91117         * modules/getusershell (Depends-on): Add unistd, extensions.
91118         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91119         (Include): Specify <unistd.h>.
91120         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
91121         HAVE_GETUSERSHELL.
91123 2008-10-18  Bruno Haible  <bruno@clisp.org>
91125         Add a getloadavg() declaration to <stdlib.h>.
91126         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
91127         getloadavg declaration.
91128         (getloadavg): New declaration.
91129         * lib/getloadavg.c: Include <stdlib.h> first.
91130         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
91131         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
91132         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
91133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
91134         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
91135         * modules/getloadavg (Depends-on): Add stdlib, extensions.
91136         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91137         (Include): Specify <stdlib.h>.
91138         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
91139         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
91141 2008-10-18  Bruno Haible  <bruno@clisp.org>
91143         * lib/dirchownmod.c: Don't include lchmod.h.
91145         Move the lchmod() declaration to <sys/stat.h>.
91146         * lib/lchmod.h: Remove file.
91147         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
91148         (lchmod): New declaration, moved here from lib/lchown.h.
91149         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
91150         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
91151         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
91152         and HAVE_LCHMOD.
91153         * modules/lchmod (Files): Remove lib/lchmod.h.
91154         (Depends-on): Add sys_stat, extensions.
91155         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
91156         (Include): Specify <sys/stat.h> instead of lchmod.h.
91157         * modules/sys_stat (Depends-on): Add link-warning.
91158         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
91159         definition of GL_LINK_WARNING.
91160         * NEWS: Mention the change.
91162 2008-10-18  Bruno Haible  <bruno@clisp.org>
91164         * lib/fchdir.c: Don't include dirfd.h.
91165         * lib/fts.c: Likewise.
91166         * lib/getcwd.c: Likewise.
91167         * lib/glob.c: Likewise.
91169         Move the dirfd() declaration to <dirent.h>.
91170         * lib/dirfd.h: Remove file.
91171         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
91172         (dirfd): New declaration.
91173         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
91174         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
91175         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
91176         HAVE_DECL_DIRFD.
91177         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
91178         HAVE_DECL_DIRFD.
91179         * modules/dirfd (Files): Remove lib/dirfd.h.
91180         (Depends-on): Add dirent, extensions.
91181         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
91182         (Include): Specify <dirent.h> instead of dirfd.h.
91183         * modules/dirent (Depends-on): Add link-warning.
91184         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
91185         definition of GL_LINK_WARNING.
91186         * NEWS: Mention the change.
91188 2008-10-18  Bruno Haible  <bruno@clisp.org>
91190         Move the euidaccess() declaration to <unistd.h>.
91191         * lib/euidaccess.h: Remove file.
91192         * lib/unistd.in.h (euidaccess): New declaration.
91193         * lib/euidaccess.c: Don't include euidaccess.h.
91194         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
91195         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
91196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
91197         and HAVE_EUIDACCESS.
91198         * modules/euidaccess (Files): Remove lib/euidaccess.h.
91199         (Depends-on): Add unistd.
91200         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91201         (Include): Specify <unistd.h> instead of euidaccess.h.
91202         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
91203         HAVE_EUIDACCESS.
91204         * NEWS: Mention the change.
91206 2008-10-18  Bruno Haible  <bruno@clisp.org>
91208         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
91210         Move the getdomainname() declaration to <unistd.h>.
91211         * lib/getdomainname.h: Remove file.
91212         * lib/unistd.in.h (getdomainname): New declaration.
91213         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
91214         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
91215         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
91216         HAVE_GETDOMAINNAME.
91217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91218         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
91219         * modules/getdomainname (Files): Remove lib/getdomainname.h.
91220         (Depends-on): Add unistd, extensions.
91221         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91222         (Includes): Specify <unistd.h> instead of getdomainname.h.
91223         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
91224         HAVE_GETDOMAINNAME.
91225         * NEWS: Mention the change.
91227 2008-10-18  Bruno Haible  <bruno@clisp.org>
91229         * modules/dirent: New file.
91230         * m4/dirent_h.m4: New file.
91231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
91232         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
91233         * modules/fchdir (Files): Remove lib/dirent.in.h.
91234         (Depends-on): Add dirent.
91235         (Makefile.am): Move rules to modules/dirent.
91236         * doc/posix-headers/dirent.texi: Mention the new module.
91238 2008-10-18  Bruno Haible  <bruno@clisp.org>
91240         Avoid -Wunused-parameter warnings in public gnulib header files.
91241         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
91242         macro.
91243         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
91245 2008-10-18  Bruno Haible  <bruno@clisp.org>
91247         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
91248         * doc/glibc-functions/error.texi: Mention the module 'error'.
91249         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
91250         * doc/glibc-functions/getdomainname.texi: Mention the module
91251         'getdomainname'.
91252         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
91253         * doc/glibc-functions/getpagesize.texi: Mention the module
91254         'getpagesize'.
91255         * doc/glibc-functions/getusershell.texi: Mention the module
91256         'getusershell'.
91257         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
91258         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
91259         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
91260         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
91261         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
91262         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
91263         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
91264         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
91265         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
91266         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
91267         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
91268         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
91269         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
91270         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
91272 2008-10-17  Bruno Haible  <bruno@clisp.org>
91274         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
91275         HP-UX and IRIX, use -0.0L.
91276         * tests/test-ceill.c (minus_zero): Likewise.
91277         * tests/test-floorl.c (minus_zero): Likewise.
91278         * tests/test-frexpl.c (minus_zero): Likewise.
91279         * tests/test-isnan.c (minus_zerol): Likewise.
91280         * tests/test-isnanl.h (minus_zero): Likewise.
91281         * tests/test-ldexpl.c (minus_zero): Likewise.
91282         * tests/test-roundl.c (minus_zero): Likewise.
91283         * tests/test-signbit.c (minus_zerol): Likewise.
91284         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
91285         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
91286         * tests/test-truncl.c (minus_zero): Likewise.
91287         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
91288         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
91289         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
91290         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
91292 2008-10-17  Bruno Haible  <bruno@clisp.org>
91294         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
91295         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
91296         that it gets activated only for gcc >= 3.0.
91297         * lib/dirent.in.h: Likewise.
91298         * lib/errno.in.h: Likewise.
91299         * lib/fcntl.in.h: Likewise.
91300         * lib/float.in.h: Likewise.
91301         * lib/iconv.in.h: Likewise.
91302         * lib/inttypes.in.h: Likewise.
91303         * lib/locale.in.h: Likewise.
91304         * lib/math.in.h: Likewise.
91305         * lib/netdb.in.h: Likewise.
91306         * lib/netinet_in.in.h: Likewise.
91307         * lib/search.in.h: Likewise.
91308         * lib/signal.in.h: Likewise.
91309         * lib/spawn.in.h: Likewise.
91310         * lib/stdarg.in.h: Likewise.
91311         * lib/stdint.in.h: Likewise.
91312         * lib/stdio.in.h: Likewise.
91313         * lib/stdlib.in.h: Likewise.
91314         * lib/string.in.h: Likewise.
91315         * lib/strings.in.h: Likewise.
91316         * lib/sys_file.in.h: Likewise.
91317         * lib/sys_ioctl.in.h: Likewise.
91318         * lib/sys_select.in.h: Likewise.
91319         * lib/sys_socket.in.h: Likewise.
91320         * lib/sys_stat.in.h: Likewise.
91321         * lib/sys_time.in.h: Likewise.
91322         * lib/sysexits.in.h: Likewise.
91323         * lib/time.in.h: Likewise.
91324         * lib/unistd.in.h: Likewise.
91325         * lib/wchar.in.h: Likewise.
91326         * lib/wctype.in.h: Likewise.
91327         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91329 2008-10-17  Jim Meyering  <meyering@redhat.com>
91331         ignore-value: don't depend on inline module
91332         * modules/ignore-value (Depends-on): Remove 'inline'.
91333         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
91334         Suggestion from Bruno Haible.
91336 2008-10-17  Bruno Haible  <bruno@clisp.org>
91338         New implementation of condition variables for Win32.
91339         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
91340         (gl_linked_waitqueue_t): New type.
91341         (gl_cond_t): Use it.
91342         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
91343         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
91344         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
91345         (glthread_cond_init_func, glthread_cond_wait_func,
91346         glthread_cond_timedwait_func, glthread_cond_signal_func,
91347         glthread_cond_broadcast_func, glthread_cond_destroy_func):
91348         Reimplemented on the basis of gl_linked_waitqueue_t.
91349         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
91350         gl_waitqueue_t.
91351         (gl_rwlock_t): Update.
91352         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
91354 2008-10-17  Simon Josefsson  <simon@josefsson.org>
91356         * modules/recvfrom (Depends-on): Add dependency on getpeername.
91357         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
91359 2008-10-17  Jim Meyering  <meyering@redhat.com>
91361         ignore-value: new module
91362         * modules/ignore-value: New file.
91363         * lib/ignore-value.h: New file.
91364         * MODULES.html.sh (Compiler warning management): New section,
91365         just for this module.  More to come.
91367 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
91369         open-safer.c: avoid 'signed and unsigned in conditional...' warning
91370         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
91371         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
91373 2008-10-16  Jim Meyering  <meyering@redhat.com>
91375         openat-die.c: avoid 'no previous prototype' warning
91376         * lib/openat-die.c: Include "openat.h".
91377         Reported by Reuben Thomas <rrt@sc3d.org>.
91379 2008-10-16  Simon Josefsson  <simon@josefsson.org>
91381         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
91382         * lib/netdb.in.h: Fix typo.
91383         Reported by Bruno Haible  <bruno@clisp.org>
91385         * lib/netdb.in.h: Include sys/socket.h for platforms without
91386         netdb.h, to get structures like hostent on MinGW.
91387         * modules/netdb (Depends-on): Add sys_socket.
91389 2008-10-15  Simon Josefsson  <simon@josefsson.org>
91391         * modules/netdb, modules/netdb-tests: New file.
91392         * m4/netdb_h.m4: New file.
91393         * lib/netdb.in.h: Add, currently just an empty file pending
91394         definitions.
91395         * tests/test-netdb.c: New file.
91396         * doc/posix-headers/netdb.texi: Mention that we replace it if
91397         needed.
91398         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91399         netdb.
91401 2008-10-15  Simon Josefsson  <simon@josefsson.org>
91403         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
91404         with code.
91406 2008-10-13  Bruno Haible  <bruno@clisp.org>
91408         * lib/glthread/cond.c (glthread_cond_wait_func,
91409         glthread_cond_timedwait_func): Add a comment.
91411 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
91413         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
91414         * tests/test-select.c: Likewise,
91416 2008-10-13  Bruno Haible  <bruno@clisp.org>
91418         * lib/glthread/cond.c (glthread_cond_wait_func,
91419         glthread_cond_timedwait_func): Fix variable name.
91420         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
91422 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
91424         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
91425         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
91426         struct sockaddr.sa_len.
91427         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
91429 2008-10-13  Simon Josefsson  <simon@josefsson.org>
91431         * build-aux/pmccabe2html: Add css and css_url parameters.
91433 2008-10-12  Bruno Haible  <bruno@clisp.org>
91435         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
91436         calling aclx_get.
91437         Reported by Rainer Tammer <tammer@tammer.net>.
91439 2008-10-12  Bruno Haible  <bruno@clisp.org>
91441         Use msvcrt aware primitives for creation/termination of Win32 threads.
91442         * lib/glthread/thread.c: Include <process.h>.
91443         (glthread_create_func): Use _beginthreadex instead of CreateThread.
91444         (wrapper_func): Update signature.
91445         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
91447 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
91448             Bruno Haible  <bruno@clisp.org>
91450         Provide a Win32 implementation of the 'cond' module.
91451         * lib/glthread/cond.h [USE_WIN32]: New implementation.
91452         * lib/glthread/cond.c (glthread_cond_init_func,
91453         glthread_cond_wait_func, glthread_cond_timedwait_func,
91454         glthread_cond_signal_func, glthread_cond_broadcast_func,
91455         glthread_cond_destroy_func) [USE_WIN32]: New functions.
91456         * modules/cond (Dependencies): Add gettimeofday.
91458 2008-10-11  Bruno Haible  <bruno@clisp.org>
91460         Make sleep work on older versions of mingw.
91461         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
91462         only whether it exists.
91463         * doc/posix-functions/sleep.texi: Mention the problem with older
91464         versions of mingw.
91466 2008-10-11  Bruno Haible  <bruno@clisp.org>
91468         New module 'shutdown'.
91469         * modules/shutdown: New file.
91470         * lib/sys_socket.in.h (shutdown): New declaration.
91471         * lib/winsock.c (shutdown): New function.
91472         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
91473         GNULIB_SHUTDOWN.
91474         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
91475         * doc/posix-functions/shutdown.texi: Document the new module.
91477 2008-10-11  Jim Meyering  <meyering@redhat.com>
91479         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
91481 2008-10-11  Bruno Haible  <bruno@clisp.org>
91483         New module 'fclose'.
91484         * modules/fclose: New file.
91485         * lib/stdio.in.h (fclose): New declaration.
91486         * lib/fclose.c: New file.
91487         * m4/fclose.m4: New file.
91488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
91489         REPLACE_FCLOSE.
91490         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
91491         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
91492         REPLACE_FCLOSE.
91493         * modules/close (Depends-on): fclose.
91494         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
91496 2008-10-11  Bruno Haible  <bruno@clisp.org>
91498         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
91499         set errno and don't call _close.
91501 2008-10-10  Bruno Haible  <bruno@clisp.org>
91503         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
91504         ACL, not afterwards. Fixes test failure on Cygwin.
91506 2008-10-09  Ben Pfaff  <blp@gnu.org>
91508         * build-aux/announce-gen: Fix gnulib version related part of usage
91509         message.  Die with a useful error message if no tarballs are
91510         found.
91512 2008-10-10  Jim Meyering  <meyering@redhat.com>
91514         bootstrap: use git's --depth=N option only if it's supported
91515         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
91516         recognize the --depth option.  Reported by Pádraig Brady.
91518 2008-10-09  Bruno Haible  <bruno@clisp.org>
91520         New module 'ioctl'.
91521         * modules/ioctl: New file.
91522         * lib/sys_socket.in.h (ioctl): Remove declaration.
91523         * lib/winsock.c: Include <sys/ioctl.h>.
91524         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
91525         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
91526         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
91527         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
91528         * doc/posix-functions/ioctl.texi: Mention the new module.
91530 2008-10-09  Bruno Haible  <bruno@clisp.org>
91532         New module 'sys_ioctl'.
91533         * lib/sys_ioctl.in.h: New file.
91534         * m4/sys_ioctl_h.m4: New file.
91535         * modules/sys_ioctl: New file.
91536         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
91538 2008-10-09  Bruno Haible  <bruno@clisp.org>
91540         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
91541         * lib/winsock.c: Include <stdarg.h>.
91542         (rpl_ioctl): Change to second argument 'int' and then varargs.
91544 2008-10-09  Bruno Haible  <bruno@clisp.org>
91546         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
91547         when the sys_socket module is present and the system has <winsock2.h>.
91549 2008-10-09  Bruno Haible  <bruno@clisp.org>
91551         * doc/posix-functions/close.texi: Mention module 'close' instead of
91552         module 'sys_socket'.
91554 2008-10-09  Bruno Haible  <bruno@clisp.org>
91556         * doc/glibc-headers/sys_ioctl.texi: New file.
91557         * doc/gnulib.texi: Include it.
91559 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91560             Bruno Haible  <bruno@clisp.org>
91562         Combine the two replacements of 'close'.
91563         * lib/sys_socket.in.h (close): Define to a reminder to include
91564         <unistd.h>.
91565         (_gl_close_fd_maybe_socket): New declaration.
91566         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
91567         * lib/winsock.c (close): Remove undefinition.
91568         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
91569         needed for the gnulib module 'close'.
91570         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
91571         define to an error symbol or to a warning, if suitable.
91572         * lib/close.c: Include <sys/socket.h>.
91573         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
91574         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
91575         UNISTD_H_HAVE_WINSOCK2_H.
91576         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
91577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91578         UNISTD_H_HAVE_WINSOCK2_H.
91579         * modules/sys_socket (Files): Add m4/unistd_h.m4.
91580         (configure.ac): Set a module indicator.
91581         (Makefile.am): Substitute GNULIB_CLOSE.
91582         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
91583         * modules/poll-tests (Depends-on): Add close.
91584         * modules/select-tests (Depends-on): Likewise.
91586 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91587             Bruno Haible  <bruno@clisp.org>
91589         New module 'close'.
91590         * modules/close: New file.
91591         * lib/unistd.in.h (close): Move declaration out of the
91592         FCHDIR_REPLACEMENT scope.
91593         (_gl_unregister_fd): New declaration.
91594         * lib/close.c: New file.
91595         * lib/fchdir.c (rpl_close): Remove function.
91596         * m4/close.m4: New file.
91597         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
91598         close.
91599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
91600         REPLACE_CLOSE.
91601         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
91602         REPLACE_CLOSE.
91603         * modules/fchdir (Depends-on): Add close.
91605 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91606             Bruno Haible  <bruno@clisp.org>
91608         * lib/fcntl.in.h (open): Simplify conditionals.
91609         (_gl_register_fd): New declaration.
91610         * lib/fchdir.c (rpl_open): Remove function.
91611         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
91612         also.
91613         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
91614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
91615         open.
91617 2008-10-09  Jim Meyering  <meyering@redhat.com>
91619         GNUmakefile: use the more name-space-friendly "_version"
91620         * top/GNUmakefile (_dummy): Update.
91621         (_version): Rename from "version".
91623 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91624             Bruno Haible  <bruno@clisp.org>
91626         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
91627         rpl_close.
91628         (_gl_register_fd): New function, extracted from rpl_open.
91629         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
91630         (rpl_open, rpl_opendir): Use _gl_register_fd.
91632 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
91634         Fix organization of 'open' replacement.
91635         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
91636         (gl_FUNC_OPEN): Use it.
91637         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
91639 2008-10-08  Bruno Haible  <bruno@clisp.org>
91641         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
91643 2008-10-08  Simon Josefsson  <simon@josefsson.org>
91645         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
91646         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
91647         listen).
91649 2008-10-08  Eric Blake  <ebb9@byu.net>
91651         GNUmakefile: add 'make version' target
91652         * top/GNUmakefile (_curr-ver): Split version update rules...
91653         (version): ...into a target.
91655 2008-10-07  Bruno Haible  <bruno@clisp.org>
91657         Use a more portable replacement expression for -0.0L.
91658         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
91659         instead of -0.0L. Fix m4 quotation.
91661         * tests/test-signbit.c: Include <float.h>.
91662         (minus_zero): New variable.
91663         (test_signbitl): Use minus_zero instead of -zero.
91664         * modules/signbit-tests (Depends-on): Add float.
91666         * tests/test-ceill.c: Include <float.h>.
91667         (zero): Remove variable.
91668         (minus_zero): New variable.
91669         (main): Use minus_zero instead of -zero.
91670         * modules/ceill-tests (Depends-on): Add float.
91672         * tests/test-floorl.c: Include <float.h>.
91673         (zero): Remove variable.
91674         (minus_zero): New variable.
91675         (main): Use minus_zero instead of -zero.
91676         * modules/floorl-tests (Depends-on): Add float.
91678         * tests/test-roundl.c: Include <float.h>.
91679         (zero): Remove variable.
91680         (minus_zero): New variable.
91681         (main): Use minus_zero instead of -zero.
91682         * modules/roundl-tests (Depends-on): Add float.
91684         * tests/test-truncl.c: Include <float.h>.
91685         (zero): Remove variable.
91686         (minus_zero): New variable.
91687         (main): Use minus_zero instead of -zero.
91688         * modules/truncl-tests (Depends-on): Add float.
91690         * tests/test-frexpl.c (zero): Remove variable.
91691         (minus_zero): New variable.
91692         (main): Use minus_zero instead of -zero.
91693         * modules/frexpl-tests (Depends-on): Add float.
91695         * tests/test-isnan.c (zerol): Remove variable.
91696         (minus_zerol): New variable.
91697         (test_long_double): Use minus_zerol instead of -zerol.
91698         * modules/isnan-tests (Depends-on): Add float.
91700         * tests/test-isnanl.h (zero): Remove variable.
91701         (minus_zero): New variable.
91702         (main): Use minus_zero instead of -zero.
91703         * modules/isnanl-nolibm-tests (Depends-on): Add float.
91704         * modules/isnanl-tests (Depends-on): Add float.
91706         * tests/test-ldexpl.c (zero): Remove variable.
91707         (minus_zero): New variable.
91708         (main): Use minus_zero instead of -zero.
91709         * modules/ldexpl-tests (Depends-on): Add float.
91711         * tests/test-snprintf-posix.h (zerol): Remove variable.
91712         (minus_zerol): New variable.
91713         (test_function): Use minus_zerol instead of -zerol.
91714         * modules/snprintf-posix-tests (Depends-on): Add float.
91715         * modules/vsnprintf-posix-tests (Depends-on): Add float.
91717         * tests/test-sprintf-posix.h (zerol): Remove variable.
91718         (minus_zerol): New variable.
91719         (test_function): Use minus_zerol instead of -zerol.
91720         * modules/sprintf-posix-tests (Depends-on): Add float.
91721         * modules/vsprintf-posix-tests (Depends-on): Add float.
91723         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
91724         (minus_zerol): New variable.
91725         (test_function): Use minus_zerol instead of -zerol.
91726         * modules/vasnprintf-posix-tests (Depends-on): Add float.
91728         * tests/test-vasprintf-posix.c (zerol): Remove variable.
91729         (minus_zerol): New variable.
91730         (test_function): Use minus_zerol instead of -zerol.
91731         * modules/vasprintf-posix-tests (Depends-on): Add float.
91733 2008-10-07  Simon Josefsson  <simon@josefsson.org>
91735         * MODULES.html.sh (Support for building documentation): Mention
91736         pmccabe2html.  Sort entries.
91738         Add pmccabe2html module, from gnupdf.
91739         * build-aux/pmccabe.css: New file.
91740         * build-aux/pmccabe2html: New file.
91741         * m4/pmccabe2html.m4: New file.
91742         * modules/pmccabe2html: New file.
91744 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
91746         flock: new module
91747         * MODULES.html.sh: Add to list of modules.
91748         * lib/flock.c: flock implementation for Windows and Unix systems
91749         which have fcntl.
91750         * doc/glibc-functions/flock.texi: Update documentation.
91751         * lib/sys_file.in.h: <sys/file.h> header file.
91752         * m4/flock.m4: M4 macros.
91753         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
91754         * modules/flock: flock module.
91755         * modules/flock-tests: flock tests module.
91756         * modules/sys_file: sys/file.h module.
91757         * tests/test-flock.c: test suite for flock.
91759 2008-10-06  Jim Meyering  <meyering@redhat.com>
91761         bootstrap: check for LT_INIT more portably still ;-)
91762         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
91763         Spotted by Bruno Haible.
91765 2008-10-06  Eric Blake  <ebb9@byu.net>
91767         test-signbit: avoid tripping Irix cc bug on -0.0L
91768         * tests/test-signbit.c (minus_zerol): Delete, and replace with
91769         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
91770         entire testsuite consistent and avoids an Irix 6.2 bug.
91772 2008-10-05  Bruno Haible  <bruno@clisp.org>
91773             Jim Meyering  <jim@meyering.net>
91775         Add an option for ignoring EPIPE during close_stdout.
91776         * lib/closeout.h: Include <stdbool.h>.
91777         (close_stdout_set_ignore_EPIPE): New declaration.
91778         * lib/closeout.c: Include <stdbool.h>.
91779         (ignore_EPIPE): New variable.
91780         (close_stdout_set_ignore_EPIPE): New function.
91781         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
91782         * lib/close-stream.c (close_stream): Mention the possible EPIPE
91783         failure.
91784         * modules/closeout (Depends-on): Add stdbool.
91786 2008-10-05  Bruno Haible  <bruno@clisp.org>
91788         * modules/accept: New file.
91789         * modules/bind: New file.
91790         * modules/connect: New file.
91791         * modules/getpeername: New file.
91792         * modules/getsockname: New file.
91793         * modules/getsockopt: New file.
91794         * modules/listen: New file.
91795         * modules/recv: New file.
91796         * modules/recvfrom: New file.
91797         * modules/send: New file.
91798         * modules/sendto: New file.
91799         * modules/setsockopt: New file.
91800         * modules/socket: New file.
91801         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
91802         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
91803         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
91804         the particular module is requested. Add a link warning when the
91805         particular module is not requested.
91806         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
91807         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
91808         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
91809         the particular module is requested.
91810         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
91811         gl_SYS_SOCKET_H_DEFAULTS): New macros.
91812         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
91813         * modules/sys_socket (Depends-on): Add link-warning.
91814         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
91815         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
91816         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
91817         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
91818         GL_LINK_WARNING.
91819         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
91820         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
91821         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
91822         * doc/posix-functions/getpeername.texi: Mention the new module
91823         'getpeername'.
91824         * doc/posix-functions/getsockname.texi: Mention the new module
91825         'getsockname'.
91826         * doc/posix-functions/getsockopt.texi: Mention the new module
91827         'getsockopt'.
91828         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
91829         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
91830         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
91831         * doc/posix-functions/send.texi: Mention the new module 'send'.
91832         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
91833         * doc/posix-functions/setsockopt.texi: Mention the new module
91834         'setsockopt'.
91835         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
91836         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
91837         listen, connect, accept.
91838         * modules/select-tests (Depends-on): Likewise.
91840 2008-10-05  Bruno Haible  <bruno@clisp.org>
91842         * lib/winsock.c (strerror): Remove unused #undef.
91843         (rpl_close): Remove unused local variable.
91845         * modules/sys_socket (Depends-on); Add errno.
91847 2008-10-05  Bruno Haible  <bruno@clisp.org>
91849         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
91850         (select): Add a link warning when the 'select' module is not used.
91851         * modules/sys_select (Depends-on): Add link-warning.
91852         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
91853         Suggested by Paolo Bonzini.
91855 2008-10-05  Jim Meyering  <meyering@redhat.com>
91857         bootstrap: check for LT_INIT more portably
91858         * build-aux/bootstrap: Avoid using grep -E, since it's not
91859         portable enough.  Suggestion from Bruno Haible.
91861 2008-10-05  Bruno Haible  <bruno@clisp.org>
91863         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
91864         as being fixed by gnulib.
91866 2008-10-05  Bruno Haible  <bruno@clisp.org>
91868         * modules/select-tests: New file, mostly copied from
91869         modules/sys_select-tests.
91870         * tests/test-select.c: New file, mostly copied from
91871         tests/test-sys_select.c.
91872         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
91873         * modules/sys_select-tests (Depends-on): Remove all dependencies.
91874         (Makefile.am): Remove test_sys_select_LDADD.
91876         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
91877         to an undefined symbol, for an error message.
91878         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
91879         (gl_SYS_SELECT_H_DEFAULTS): New macro.
91880         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
91881         winsock-select.c here.
91882         * modules/sys_select (Files): Remove lib/winsock-select.c.
91883         (Depends-on): Remove alloca.
91884         (Makefile.am): Substitute GNULIB_SELECT.
91885         * modules/select: New file.
91886         * doc/posix-functions/select.texi: Update.
91888 2008-10-05  Bruno Haible  <bruno@clisp.org>
91890         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
91891         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
91892         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
91893         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
91894         getdtablesize.
91895         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
91896         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
91898 2008-10-05  Bruno Haible  <bruno@clisp.org>
91900         * modules/getdtablesize-tests: New file.
91901         * tests/test-getdtablesize.c: New file.
91903         New module 'getdtablesize'.
91904         * lib/unistd.in.h (getdtablesize): New declaration.
91905         * lib/getdtablesize.c: New file.
91906         * m4/getdtablesize.m4: New file.
91907         * modules/getdtablesize: New file.
91908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91909         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
91910         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
91911         HAVE_GETDTABLESIZE.
91912         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
91914 2008-10-05  Bruno Haible  <bruno@clisp.org>
91916         * modules/sched (Makefile.am): Fix typo.
91917         Reported by Simon Josefsson.
91919 2008-10-05  Jim Meyering  <meyering@redhat.com>
91921         bootstrap: check for LT_INIT, too
91922         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
91923         are deprecated.  Suggestion from Ralf Wildenhues.
91925 2008-10-05  Bruno Haible  <bruno@clisp.org>
91927         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
91928         overriding them by ours.
91929         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
91931 2008-10-05  Jim Meyering  <meyering@redhat.com>
91933         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
91934         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
91935         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
91937 2008-10-04  Bruno Haible  <bruno@clisp.org>
91939         * modules/dup2 (License): Change to LGPLv2+.
91940         * modules/sleep (License): Likewise.
91941         * modules/perror (License): Likewise.
91942         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
91943         Blake.
91944         * modules/signal (License): Likewise.
91945         * modules/sigprocmask (License): Likewise.
91946         * modules/raise (License): Change to LGPLv2+, with approval by Jim
91947         Meyering.
91949 2008-10-04  Bruno Haible  <bruno@clisp.org>
91951         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
91952         Reported by Rainer Tammer <tammer@tammer.net>.
91954 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
91955             Bruno Haible  <bruno@clisp.org>
91957         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
91958         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
91959         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
91961 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
91963         filevercmp: new module
91964         * lib/filevercmp.h: New function filevercmp comparing version strings.
91965         * lib/filevercmp.c: Implementation of filevercmp function.
91966         * modules/filevercmp: Module metadata.
91967         * tests/test-filevercmp.c: Unit test for new module.
91968         * modules/filevercmp-tests: Unit test metadata.
91969         * MODULES.html.sh: Add filevercmp module.
91971 2008-10-03  Bruno Haible  <bruno@clisp.org>
91973         * lib/c-ctype.h: Add comment.
91974         Reported by Jim Meyering.
91976 2008-10-02  Bruno Haible  <bruno@clisp.org>
91978         * modules/posix_spawn-internal (Depends-on): Add 'open'.
91980 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91982         * build-aux/bootstrap: Allow renaming bootstrap, and change the
91983         name of bootstrap.conf accordingly.
91985 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91987         * build-aux/bootstrap: Install git-merge-changelog configuration
91988         items into .gitconfig if needed.
91990 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91992         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
91993         git repository, and initialize/update it accordingly.
91995 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
91997         * modules/fsync-tests: New file.
91998         * tests/test-fsync.c: New file.
92000         New module 'fsync'.
92001         * lib/fsync.c: New file.
92002         * m4/fsync.m4: New file.
92003         * modules/fsync: New file.
92004         * lib/unistd.in.h (fsync): New declaration.
92005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
92006         GNULIB_FSYNC and HAVE_FSYNC.
92007         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
92008         * MODULES.html.sh (posix_functions): Add fsync.
92009         * doc/posix-functions/fsync.texi: Mention the new module.
92011 2008-10-02  Jim Meyering  <meyering@redhat.com>
92013         fts.c: sync with similar code from coreutils' remove.c
92014         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
92015         Guard also with "#if defined __linux__", since for now at least,
92016         this code is Linux-kernel-specific.
92018 2008-10-02  Jim Meyering  <meyering@redhat.com>
92020         fts: bug fixes
92021         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
92022         Include <sys/vfs.h>, not <sys/statfs.h>.
92024         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
92025         Include <sys/vfs.h>, not <sys/statfs.h>.
92027 2008-10-01  Bruno Haible  <bruno@clisp.org>
92029         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
92030         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
92031         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
92032         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
92033         * doc/posix-functions/posix_spawnp.texi: Likewise.
92034         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
92035         whether posix_spawn actually works.
92036         * m4/pipe.m4 (gl_PIPE): Likewise.
92037         * modules/execute (Files): Add m4/posix_spawn.m4.
92038         * modules/pipe (Files): Add m4/posix_spawn.m4.
92039         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
92041 2008-10-01  Jim Meyering  <meyering@redhat.com>
92043         remove trailing spaces
92044         * NEWS: Likewise.
92045         * lib/poll.c (poll): Likewise.
92046         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
92047         * lib/winsock.c (rpl_close): Likewise.
92048         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
92049         * modules/yield: Likewise.
92050         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
92051         * tests/test-sys_select.c (connect_to_socket): Likewise.
92053         fts.c: adjust a new interface to be more generally useful
92054         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
92055         (fts_build): Adjust caller.
92057 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92059         * modules/cond-tests: New file.
92060         * tests/test-cond.c: New file.
92062 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92063             Bruno Haible  <bruno@clisp.org>
92065         * modules/cond (Dependencies): Add errno, time.
92066         * lib/glthread/cond.h: Include <time.h>.
92067         (gl_cond_define, gl_cond_define_initialized): Use the same definition
92068         across platforms.
92070 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92071             Bruno Haible  <bruno@clisp.org>
92073         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
92075 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92076             Bruno Haible  <bruno@clisp.org>
92078         * modules/tls-tests (Depends-on): Add thread, yield.
92079         (configure.ac): Remove all checks.
92080         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
92081         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
92082         gl_thread_self): Remove definitions. Include glthread/thread.h and
92083         glthread/yield.h instead.
92084         (test_tls): Pass an additional NULL argument to gl_thread_join.
92086 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92087             Bruno Haible  <bruno@clisp.org>
92089         * modules/lock-tests (Depends-on): Add thread, yield.
92090         (configure.ac): Remove all checks.
92091         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
92092         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
92093         gl_thread_self): Remove definitions. Include glthread/thread.h and
92094         glthread/yield.h instead.
92095         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
92096         additional NULL argument to gl_thread_join.
92098 2008-09-30  Bruno Haible  <bruno@clisp.org>
92100         Fix the Win32 implementation of the 'thread' module.
92101         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
92102         pointer type.
92103         (gl_thread_self): Invoke gl_thread_self_func.
92104         (gl_thread_self_func): New declaration.
92105         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
92106         (do_init_self_key, init_self_key): New functions.
92107         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
92108         Remove some fields.
92109         (running_threads, running_lock): Remove variables.
92110         (get_current_thread_handle): New function.
92111         (gl_thread_self_func, wrapper_func, glthread_create_func,
92112         glthread_join_func, gl_thread_exit_func): Largely rewritten and
92113         simplified.
92115 2008-09-30  Bruno Haible  <bruno@clisp.org>
92117         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
92118         files.
92120 2008-09-30  Jim Meyering  <meyering@redhat.com>
92122         fts.m4: correct the test for statfs.f_type
92123         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
92124         when checking for statfs.f_type.
92126 2008-09-15  Simon Josefsson  <simon@josefsson.org>
92128         tests: avoid some compiler warnings
92129         * tests/test-memchr.c (main): Pass NULL indirectly.
92130         * tests/test-getdate.c (main): Remove unused variable 'ret'.
92132 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
92134         getdate.y: disallow countable dayshifts like "4 yesterday ago"
92135         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
92136         exactly specified dayshifts.
92137         (dayshift): New rule.
92138         (rel): Add dayshift.
92139         (relative_time_table) [tomorrow, yesterday, today, now]:
92140         Use tDAY_SHIFT in place of tDAY_UNIT.
92141         * tests/test-getdate.c: Add tests for now-disallowed countable
92142         dayshifts, e.g., "4 yesterday ago".
92144 2008-09-29  Bruno Haible  <bruno@clisp.org>
92146         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
92147         * tests/test-posix_spawn1.in.sh: Renamed from
92148         tests/test-posix_spawn.in.sh.
92149         * tests/test-posix_spawn2.c: New file.
92150         * tests/test-posix_spawn2.in.sh: New file.
92151         * modules/posix_spawnp-tests (Files): Update.
92152         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
92154 2008-09-29  Bruno Haible  <bruno@clisp.org>
92156         Propagate effects of putenv/setenv/unsetenv to child processes.
92157         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
92158         * lib/pipe.c (create_pipe): Likewise.
92160 2008-09-29  Bruno Haible  <bruno@clisp.org>
92162         Enable use of shell scripts as executables in mingw.
92163         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
92164         run the program as a shell script.
92165         * lib/pipe.c (create_pipe): Likewise.
92166         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
92167         resulting array.
92169 2008-09-29  Eric Blake  <ebb9@byu.net>
92171         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
92173 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
92175         * doc/posix-functions/accept.texi: Update mingw problems.
92176         * doc/posix-functions/bind.texi: Update mingw problems.
92177         * doc/posix-functions/close.texi: Update mingw problems.
92178         * doc/posix-functions/connect.texi: Update mingw problems.
92179         * doc/posix-functions/getpeername.texi: Update mingw problems.
92180         * doc/posix-functions/getsockname.texi: Update mingw problems.
92181         * doc/posix-functions/getsockopt.texi: Update mingw problems.
92182         * doc/posix-functions/ioctl.texi: Update mingw problems.
92183         * doc/posix-functions/listen.texi: Update mingw problems.
92184         * doc/posix-functions/recv.texi: Update mingw problems.
92185         * doc/posix-functions/recvfrom.texi: Update mingw problems.
92186         * doc/posix-functions/select.texi: Update mingw problems.
92187         * doc/posix-functions/send.texi: Update mingw problems.
92188         * doc/posix-functions/sendto.texi: Update mingw problems.
92189         * doc/posix-functions/setsockopt.texi: Update mingw problems.
92190         * doc/posix-functions/socket.texi: Update mingw problems.
92192 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
92193             Bruno Haible  <bruno@clisp.org>
92195         * lib/sys_select.in.h: Include sys/time.h.
92196         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
92197         * modules/sys_select: Depend on sys_time.
92198         * tests/test-sys_select.c: Test that sys/select.h defines struct
92199         timeval fully.
92201 2008-09-29  Bruno Haible  <bruno@clisp.org>
92203         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
92204         * lib/sys_select.in.h: Likewise.
92206 2008-09-29  Bruno Haible  <bruno@clisp.org>
92208         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
92210 2008-09-29  Bruno Haible  <bruno@clisp.org>
92212         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
92213         Set LIBSOCKET instead of augmenting LIBS.
92214         * modules/sockets (Link): New section.
92215         * modules/sockets-tests (test_sockets_LDADD): New variable.
92216         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
92217         * modules/poll-tests (test_poll_LDADD): New variable.
92218         * NEWS: Document the change.
92220 2008-09-29  Bruno Haible  <bruno@clisp.org>
92222         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
92223         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
92224         ARPA_INET_H directly.
92225         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
92227 2008-09-28  Bruno Haible  <bruno@clisp.org>
92229         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
92230         from gl_HEADER_SYS_SOCKET.
92231         (gl_HEADER_SYS_SOCKET): Invoke it.
92232         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
92234 2008-09-28  Bruno Haible  <bruno@clisp.org>
92236         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
92237         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
92238         Needed on OSF/1 4.0.
92240 2008-09-28  Bruno Haible  <bruno@clisp.org>
92242         Override open more carefully.
92243         * lib/open.c (orig_open): New function.
92244         (rpl_open): Use orig_open instead of open.
92245         * lib/fcntl.in.h: Add special invocation convention.
92246         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
92247         (gl_FUNC_OPEN): Invoke it.
92249         Override freopen more carefully.
92250         * lib/freopen.c (orig_freopen): New function.
92251         (rpl_freopen): Use orig_freopen instead of freopen.
92252         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
92253         (gl_FUNC_FREOPEN): Invoke it.
92255         Override fopen more carefully.
92256         * lib/fopen.c (orig_fopen): New function.
92257         (rpl_fopen): Use orig_fopen instead of fopen.
92258         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
92259         (gl_FUNC_FOPEN): Invoke it.
92260         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
92262 2008-09-28  Bruno Haible  <bruno@clisp.org>
92264         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
92265         SIGPIPE.
92267 2008-09-28  Bruno Haible  <bruno@clisp.org>
92269         * tests/test-sigaction.c (handler, main): Disable the check whether
92270         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
92271         glibc systems with LinuxThreads.
92273 2008-09-28  Bruno Haible  <bruno@clisp.org>
92275         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
92277         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
92278         with AIX xlc.
92279         * lib/fcntl.in.h (open): Likewise.
92280         Reported by Rainer Tammer <tammer@tammer.net>.
92282 2008-09-28  Bruno Haible  <bruno@clisp.org>
92284         * modules/posix_spawnp-tests: New file.
92285         * tests/test-posix_spawn.c: New file.
92286         * tests/test-posix_spawn.in.sh: New file.
92288         New module 'posix_spawnp'.
92289         * modules/posix_spawnp: New file.
92290         * lib/spawnp.c: New file, from GNU libc with modifications.
92291         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
92293         New module 'posix_spawn'.
92294         * modules/posix_spawn: New file.
92295         * lib/spawn.c: New file, from GNU libc with modifications.
92296         * doc/posix-functions/posix_spawn.texi: Mention the new module.
92298         New module 'posix_spawnattr_destroy'.
92299         * modules/posix_spawnattr_destroy: New file.
92300         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
92301         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
92302         module.
92304         New module 'posix_spawnattr_setsigmask'.
92305         * modules/posix_spawnattr_setsigmask: New file.
92306         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
92307         modifications.
92308         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
92309         new module.
92311         New module 'posix_spawnattr_getsigmask'.
92312         * modules/posix_spawnattr_getsigmask: New file.
92313         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
92314         modifications.
92315         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
92316         new module.
92318         New module 'posix_spawnattr_setsigdefault'.
92319         * modules/posix_spawnattr_setsigdefault: New file.
92320         * lib/spawnattr_setdefault.c: New file, from GNU libc with
92321         modifications.
92322         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
92323         new module.
92325         New module 'posix_spawnattr_getsigdefault'.
92326         * modules/posix_spawnattr_getsigdefault: New file.
92327         * lib/spawnattr_getdefault.c: New file, from GNU libc with
92328         modifications.
92329         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
92330         new module.
92332         New module 'posix_spawnattr_setschedpolicy'.
92333         * modules/posix_spawnattr_setschedpolicy: New file.
92334         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
92335         modifications.
92336         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
92337         new module.
92339         New module 'posix_spawnattr_getschedpolicy'.
92340         * modules/posix_spawnattr_getschedpolicy: New file.
92341         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
92342         modifications.
92343         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
92344         new module.
92346         New module 'posix_spawnattr_setschedparam'.
92347         * modules/posix_spawnattr_setschedparam: New file.
92348         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
92349         modifications.
92350         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
92351         new module.
92353         New module 'posix_spawnattr_getschedparam'.
92354         * modules/posix_spawnattr_getschedparam: New file.
92355         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
92356         modifications.
92357         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
92358         new module.
92360         New module 'posix_spawnattr_setpgroup'.
92361         * modules/posix_spawnattr_setpgroup: New file.
92362         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
92363         modifications.
92364         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
92365         module.
92367         New module 'posix_spawnattr_getpgroup'.
92368         * modules/posix_spawnattr_getpgroup: New file.
92369         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
92370         modifications.
92371         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
92372         module.
92374         New module 'posix_spawnattr_setflags'.
92375         * modules/posix_spawnattr_setflags: New file.
92376         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
92377         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
92378         module.
92380         New module 'posix_spawnattr_getflags'.
92381         * modules/posix_spawnattr_getflags: New file.
92382         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
92383         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
92384         module.
92386         New module 'posix_spawnattr_init'.
92387         * modules/posix_spawnattr_init: New file.
92388         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
92389         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
92390         module.
92392         New module 'posix_spawn_file_actions_destroy'.
92393         * modules/posix_spawn_file_actions_destroy: New file.
92394         * lib/spawn_faction_destroy.c: New file, from GNU libc with
92395         modifications.
92396         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
92397         the new module.
92399         New module 'posix_spawn_file_actions_addopen'.
92400         * modules/posix_spawn_file_actions_addopen: New file.
92401         * lib/spawn_faction_addopen.c: New file, from GNU libc with
92402         modifications.
92403         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
92404         the new module.
92406         New module 'posix_spawn_file_actions_adddup2'.
92407         * modules/posix_spawn_file_actions_adddup2: New file.
92408         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
92409         modifications.
92410         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
92411         the new module.
92413         New module 'posix_spawn_file_actions_addclose'.
92414         * modules/posix_spawn_file_actions_addclose: New file.
92415         * lib/spawn_faction_addclose.c: New file, from GNU libc with
92416         modifications.
92417         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
92418         the new module.
92420         New module 'posix_spawn_file_actions_init'.
92421         * modules/posix_spawn_file_actions_init: New file.
92422         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
92423         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
92424         new module.
92426         New module 'posix_spawn-internal'.
92427         * modules/posix_spawn-internal: New file.
92428         * lib/spawn_int.h: New file, from GNU libc with modifications.
92429         * lib/spawni.c: New file, from GNU libc with modifications.
92430         * m4/posix_spawn.m4: New file.
92432         New module 'spawn'.
92433         * modules/spawn: New file.
92434         * lib/spawn.in.h: New file, from GNU libc with modifications.
92435         * m4/spawn_h.m4: New file.
92436         * doc/posix-headers/spawn.texi: Mention the new module.
92438 2008-09-28  Bruno Haible  <bruno@clisp.org>
92440         * modules/sched-tests: New file.
92441         * tests/test-sched.c: New file.
92443         New module 'sched'.
92444         * modules/sched: New file.
92445         * lib/sched.in.h: New file.
92446         * m4/sched_h.m4: New file.
92447         * doc/posix-headers/sched.texi: Mention the new module.
92449 2008-09-27  Eric Blake  <ebb9@byu.net>
92451         Fix previous patch, and tweak references to $0.
92452         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
92453         (func_version, func_gnulib_dir): Don't call this program
92454         gnulib-tool.
92455         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
92456         with using $0 in function.
92457         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
92458         (func_fatal_error): Reuse the name the user invoked us with.
92460 2008-09-27  Bruno Haible  <bruno@clisp.org>
92462         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
92463         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
92464         (gl_ICONV_H): Not here.
92465         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
92466         instead of assigning ICONV_H directly.
92468         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
92469         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
92470         WCHAR_H directly.
92472 2008-09-27  Bruno Haible  <bruno@clisp.org>
92474         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
92475         * modules/arpa_inet (Depends-on): Add link-warning.
92476         (Makefile.am): Insert the definition of GL_LINK-WARNING.
92477         * modules/unistd (Makefile.am): Likewise.
92479 2008-09-26  Bruno Haible  <bruno@clisp.org>
92481         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
92482         variables.
92483         (func_version): Essentially copied from gnulib-tool.
92484         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
92485         func_readlink): Copied from gnulib-tool.
92487 2008-09-26  Bruno Haible  <bruno@clisp.org>
92489         * gnulib-tool (func_version): Change directory to $gnulib_dir before
92490         invoking git-version-gen.
92492 2008-09-26  Bruno Haible  <bruno@clisp.org>
92494         * posix-modules: Update to directory names changed on 2008-01-19.
92495         Remove commas in output before splitting into words. No more need to
92496         avoid 'ftruncate' since 2007-02-19.
92498 2008-09-26  Bruno Haible  <bruno@clisp.org>
92500         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
92502 2008-09-26  Bruno Haible  <bruno@clisp.org>
92504         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
92505         * modules/fwriteerror (Depends-on): Add errno.
92507 2008-09-26  Bruno Haible  <bruno@clisp.org>
92509         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
92510         * tests/test-vc-list-files-cvs.sh: Likewise.
92512 2008-09-26  Bruno Haible  <bruno@clisp.org>
92514         * doc/posix-headers/sys_resource.texi: Reorder items.
92516 2008-09-26  Jim Meyering  <meyering@redhat.com>
92518         fts: tweak inode comparison function
92519         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
92520         inode numbers, as documented.
92522         fts: sort dirent entries on inode number before traversing
92523         This avoids a quadratic, seek-related performance penalty when
92524         operating on a directory containing many entries (measurable at 10k;
92525         3.5 hours at 2 million entries with a cold cache) on certain types
92526         of file systems, including ext3 and ext4, but not tmpfs.
92527         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
92528         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
92529         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
92530         (fs_handles_readdir_ordered_dirents_efficiently): New function.
92531         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
92532         (fts_build): Set the stat.st_ino member from D_INO.
92533         If it is likely to be useful, sort dirent entries on inode number.
92535         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
92536         and the struct statfs.f_type member.
92537         * modules/fts (Depends-on): Add d-ino.
92539 2008-09-26  Bruno Haible  <bruno@clisp.org>
92541         * modules/sigpipe-die (Depends-on): Add sigpipe.
92543         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
92544         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
92545         and GNULIB_STDIO_H_SIGPIPE are set.
92546         * lib/stdio-write.c: New file.
92547         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
92548         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92549         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92550         REPLACE_STDIO_WRITE_FUNCS.
92551         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
92552         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92553         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92554         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
92555         * modules/stdio (Files): Add lib/stdio-write.c.
92556         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
92557         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
92558         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
92559         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
92560         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
92561         REPLACE_FPRINTF_POSIX.
92562         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
92563         REPLACE_PRINTF_POSIX.
92564         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
92565         REPLACE_VFPRINTF_POSIX.
92566         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
92567         REPLACE_VPRINTF_POSIX.
92568         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
92569         SIGPIPE issue.
92570         * doc/posix-functions/fputc.texi: Likewise.
92571         * doc/posix-functions/fputs.texi: Likewise.
92572         * doc/posix-functions/fwrite.texi: Likewise.
92573         * doc/posix-functions/printf.texi: Likewise.
92574         * doc/posix-functions/putc.texi: Likewise.
92575         * doc/posix-functions/putchar.texi: Likewise.
92576         * doc/posix-functions/puts.texi: Likewise.
92577         * doc/posix-functions/vfprintf.texi: Likewise.
92578         * doc/posix-functions/vprintf.texi: Likewise.
92580         * modules/safe-write (Depends-on): Add write.
92582         * modules/sigpipe-tests: New file.
92583         * tests/test-sigpipe.c: New file.
92584         * tests/test-sigpipe.sh: New file.
92586         * modules/write: New file.
92587         * lib/unistd.in.h: Include <sys/types.h>.
92588         (write): New declaration.
92589         * lib/write.c: New file.
92590         * m4/write.m4: New file.
92591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
92592         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
92593         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
92594         GNULIB_WRITE, REPLACE_WRITE.
92595         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
92596         and the SIGPIPE issue.
92598         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
92599         (raise): New declaration.
92600         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
92601         (ext_signal): New function.
92602         (rpl_raise): New function.
92603         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
92604         GNULIB_SIGNAL_H_SIGPIPE.
92605         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
92606         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
92608         * modules/sigpipe: New file.
92609         * m4/sigpipe.m4: New file.
92611 2008-09-25  Derek Price  <derek@ximbiot.com>
92612             Bruno Haible  <bruno@clisp.org>
92614         * gnulib-tool (func_import): Report all license incompatibilities, not
92615         just the first one.
92617 2008-09-25  Bruno Haible  <bruno@clisp.org>
92619         * gnulib-tool (func_import): When computing the edits, consider not
92620         only the Makefile.ams that exist but also those that will be generated.
92622 2008-09-25  Simon Josefsson  <simon@josefsson.org>
92624         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
92625         fixes gnulib-tool --test warning about duplicate dependency.
92627 2008-09-25  Bruno Haible  <bruno@clisp.org>
92629         * gnulib-tool: Don't ask the user to perform edits in the generated
92630         Makefile.ams.
92631         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
92632         apply to the Makefile.am being generated.
92633         (func_emit_tests_Makefile_am): Execute edits that apply to the
92634         Makefile.am being generated.
92635         (func_import): Setup list of Makefile.am edits before emitting the
92636         Makefile.ams, not at the end.
92637         (func_create_testdir): Update.
92638         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92640 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92642         * gnulib-tool (func_import): Store the --tests-base option in the
92643         comment in gnulib-cache.m4.
92645 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
92647         * NEWS: Document increased portability that sys_select now provides.
92649         * lib/sys_select.in.h: Install select wrapper.
92650         * lib/sys_socket.in.h: Use more descriptive name when there is no
92651         select wrapper.
92652         * lib/winsock-select.c: New.
92653         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
92654         Require gl_HEADER_SYS_SOCKET.
92655         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
92656         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
92657         * tests/test-sys_select.c: Add functional tests.
92659 2008-09-24  Eric Blake  <ebb9@byu.net>
92661         open, fopen: close fd leak in last patch
92662         * lib/open.c (rpl_open): Close fd before returning error.
92663         * lib/fopen.c (rpl_fopen): Close fd before returning error.
92664         * doc/posix-functions/open.texi (open): Document that Irix also
92665         has the bug.
92666         * doc/posix-functions/fopen.texi (fopen): Likewise.
92667         Reported by Paolo Bonzini.
92669 2008-09-24  Bruno Haible  <bruno@clisp.org>
92671         Ensure that a filename ending in a slash cannot be used to access a
92672         non-directory.
92673         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
92674         to check whether it's really a directory.
92675         * lib/fopen.c: Include fcntl.h, unistd.h.
92676         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
92677         and fdopen().
92678         * modules/fopen (Depends-on): Add unistd.
92679         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
92680         * tests/test-fopen.c (main): Likewise.
92681         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
92682         * doc/posix-functions/fopen.texi: Likewise.
92683         Reported by Eric Blake.
92685 2008-09-23  Eric Blake  <ebb9@byu.net>
92687         c-stack: avoid compiler optimizations when provoking overflow
92688         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
92689         recursion harder to optimize, to ensure a stack overflow occurs.
92690         * tests/test-c-stack.c (recurse): Likewise.
92691         Borrowed from libsigsegv.
92693         c-stack: work around Irix sigaltstack bug
92694         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
92695         whether sigaltstack uses wrong end of stack_t (copied in part from
92696         libsigsegv).
92697         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
92698         Irix bug, without requiring an over-allocation.
92699         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
92700         bug.
92702         fopen: document mingw bug on directories
92703         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
92704         not allowing a stream visiting a directory, even though reading
92705         from such a stream is not portable.
92707 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92709         * lib/poll.c: Rewrite.
92710         * modules/poll: Depend on alloca.
92712 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92714         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
92715         instead define prototypes for a full set of wrappers.  Ensure
92716         that Cygwin does not use the compatibility code, which is only
92717         for MinGW.
92718         * lib/winsock.c: New.
92719         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
92720         * modules/sys_socket: Add lib/winsock.c.
92722         * modules/poll-tests: Add errno and perror.
92723         * tests/test-poll.c: Use ioctl, not ioctlsocket.
92725 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92727         * tests/test-poll.c: Downgrade minimum needed Winsock version.
92729 2008-09-23  Bruno Haible  <bruno@clisp.org>
92731         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
92732         * doc/glibc-functions/*: Likewise.
92734 2008-09-23  Simon Josefsson  <simon@josefsson.org>
92736         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
92737         success.
92739 2008-09-22  Eric Blake  <ebb9@byu.net>
92740             Bruno Haible  <bruno@clisp.org>
92742         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
92743         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
92744         supply %A but mishandle pseudo-NaN.
92745         Reported by Simon Josefsson.
92747 2008-09-21  Bruno Haible  <bruno@clisp.org>
92749         * tests/test-lock.c (main): Tweak skip message.
92750         * tests/test-tls.c (main): Likewise.
92752 2008-09-21  Bruno Haible  <bruno@clisp.org>
92754         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
92755         whether 'struct sigaction' has sa_sigaction here...
92756         (gl_PREREQ_SIG_HANDLER_H): ... not here.
92757         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
92759 2008-09-21  Bruno Haible  <bruno@clisp.org>
92761         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
92762         section.
92763         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
92764         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
92765         the new section.
92766         (Support for obsolete systems lacking POSIX:2001): New section.
92767         (String handling <string.h>): Move strdup to the new section.
92768         Suggested by Simon Josefsson and Paolo Bonzini.
92770 2008-09-21  Bruno Haible  <bruno@clisp.org>
92772         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
92773         exponents in %e and %g results on 'long double'. Needed for mingw's
92774         improved *printf functions.
92775         * tests/test-vasprintf-posix.c (test_function): Likewise.
92776         * tests/test-snprintf-posix.h (test_function): Likewise.
92777         * tests/test-sprintf-posix.h (test_function): Likewise.
92778         Reported by Eric Blake.
92780 2008-09-21  Bruno Haible  <bruno@clisp.org>
92782         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
92783         * tests/test-sprintf-posix.h (test_function): Likewise.
92785 2008-09-21  Bruno Haible  <bruno@clisp.org>
92787         * modules/getpass (Depends-on): Add strdup-posix.
92789         New module 'strdup-posix'.
92790         * modules/strdup-posix: New file.
92791         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
92792         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
92793         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92794         REPLACE_STRDUP.
92795         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
92796         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
92797         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92798         strdup-posix.
92800         * modules/strdup (Depends-on): Remove malloc-posix.
92802 2008-09-20  Bruno Haible  <bruno@clisp.org>
92804         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
92805         Wildenhues.
92807 2008-09-20  Bruno Haible  <bruno@clisp.org>
92809         Ensure that wint_t gets defined on IRIX 5.3.
92810         * lib/wchar.in.h (wint_t): Define if not defined by the system.
92811         * lib/wctype.in.h (wint_t): Likewise.
92812         (__wctype_wint_t): Remove type.
92813         (isw*): Use wint_t instead of __wctype_wint_t.
92814         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
92815         * modules/wchar (Files): Add m4/wint_t.m4.
92816         (Makefile.am): Substitute HAVE_WINT_T.
92817         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
92818         * tests/test-wctype.c: Check that wint_t is defined.
92819         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
92820         * doc/posix-headers/wctype.texi: Likewise.
92821         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
92823 2008-09-18  Bruno Haible  <bruno@clisp.org>
92825         * gnulib-tool (func_exit): Update comment.
92827 2008-09-18  Simon Josefsson  <simon@josefsson.org>
92829         * modules/getaddrinfo (Depends-on): Remove strdup, this module
92830         assumes strdup exists and does not depend on strdup to return
92831         ENOMEM on out of memory conditions.
92833 2008-09-18  Bruno Haible  <bruno@clisp.org>
92835         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
92836         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
92837         digits for the exponent.
92839 2008-09-18  Jim Meyering  <meyering@redhat.com>
92840             Bruno Haible  <bruno@clisp.org>
92842         * lib/vasnprintf.c (decimal_point_char): Define also if
92843         NEED_PRINTF_INFINITE_LONG_DOUBLE.
92845 2008-09-16  Bruno Haible  <bruno@clisp.org>
92846         and Eric Blake  <ebb9@byu.net>
92848         vasnprintf: support Irix 5.3
92849         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
92850         that mishandle long double infinity.
92851         Reported by Tom G. Christensen.
92853 2008-09-16  Bruno Haible  <bruno@clisp.org>
92855         * doc/glibc-functions/scandir.texi: Mention the function is missing on
92856         Solaris 9.
92857         * doc/glibc-functions/alphasort.texi: Likewise.
92858         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
92860 2008-09-16  Jim Meyering  <meyering@redhat.com>
92862         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
92863         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
92864         a umask modification leak out of a subshell.  Otherwise, the
92865         opensolaris /bin/sh would be accepted and thus cause unwarranted
92866         failures in the coreutils test suite.
92868 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
92870         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
92871         to succeed.
92873 2008-09-16  Jim Meyering  <meyering@redhat.com>
92875         avoid spurious test failure when library is built without ACL support
92876         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
92877         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
92878         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
92879         * tests/test-copy-acl.sh: Likewise.
92881 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92883         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
92884         based on character occurrence counts.
92886 2008-09-15  Eric Blake  <ebb9@byu.net>
92888         tests: avoid some compiler warnings
92889         * tests/test-memchr.c (main): Pass NULL indirectly.
92890         * tests/test-closein.c (main): Avoid unused variable.
92892 2008-09-15  Bruno Haible  <bruno@clisp.org>
92894         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
92895         are missing on OpenBSD 4.0 individually.
92896         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92898 2008-09-15  Bruno Haible  <bruno@clisp.org>
92900         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
92901         * doc/posix-functions/strerror.texi: Mention also Cygwin.
92902         * doc/posix-functions/perror.texi: Likewise.
92903         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
92904         is missing.
92905         Reported by Eric Blake.
92907         * lib/errno.in.h: Use replacement values >= 2000.
92908         Reported by Eric Blake.
92910 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92912         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
92913         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
92914         limit.
92915         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
92916         compareseq was aborted.
92918 2008-09-14  Bruno Haible  <bruno@clisp.org>
92920         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
92921         yvec_edit_count.
92922         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
92923         (fstrcmp_bounded): Simplify result computation accordingly.
92925 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92927         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
92928         (fstrcmp): Define in terms of fstrcmp_bounded.
92929         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
92930         lower_bound argument.
92931         Return quickly if the result is certainly < lower_bound.
92932         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
92934 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92936         * lib/diffseq.h (EARLY_ABORT): New macro.
92937         (compareseq): Change return type to bool. Return true when EARLY_ABORT
92938         evaluates to true.
92940 2008-09-14  Bruno Haible  <bruno@clisp.org>
92942         * modules/perror-tests: New file.
92943         * tests/test-perror.sh: New file.
92944         * tests/test-perror.c: New file.
92946         New module 'perror'.
92947         * lib/stdio.in.h (perror): New declaration.
92948         * lib/perror.c: New file.
92949         * m4/perror.m4: New file.
92950         * modules/perror: New file.
92951         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
92952         * doc/posix-functions/perror.texi: Mention the perror module.
92953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
92954         REPLACE_PERROR.
92955         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
92956         REPLACE_PERROR.
92958 2008-09-14  Bruno Haible  <bruno@clisp.org>
92960         * modules/stdio (Makefile.am): Reorder to match the order in
92961         lib/stdio.in.h.
92962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92964 2008-09-13  Bruno Haible  <bruno@clisp.org>
92966         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
92968 2008-09-13  Bruno Haible  <bruno@clisp.org>
92970         Extend strerror to cover the added errno values.
92971         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
92972         (rpl_strerror): Provide error messages for the added errno values and
92973         for the WSA* values.
92974         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
92975         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
92976         strerror.
92977         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
92978         * modules/strerror (Depends-on): Add errno.
92979         * doc/posix-functions/strerror.texi: Document the change.
92980         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
92981         and EOVERFLOW.
92983 2008-09-13  Bruno Haible  <bruno@clisp.org>
92985         * modules/EOVERFLOW: Remove file.
92986         * m4/eoverflow.m4: Remove file.
92987         * modules/EOVERFLOW-tests: Remove file.
92988         * tests/test-EOVERFLOW.c: Remove file.
92989         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
92990         * modules/ftell (Depends-on): Likewise.
92991         * modules/getdelim (Depends-on): Likewise.
92992         * modules/getugroups (Depends-on): Likewise.
92993         * modules/poll (Depends-on): Likewise.
92994         * modules/snprintf (Depends-on): Likewise.
92995         * modules/sprintf-posix (Depends-on): Likewise.
92996         * modules/vasnprintf (Depends-on): Likewise.
92997         * modules/vasprintf (Depends-on): Likewise.
92998         * modules/vfprintf-posix (Depends-on): Likewise.
92999         * modules/vsnprintf (Depends-on): Likewise.
93000         * modules/vsprintf-posix (Depends-on): Likewise.
93001         * modules/xvasprintf (Depends-on): Likewise.
93002         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
93003         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
93004         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
93005         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
93006         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
93007         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
93008         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
93009         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
93010         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
93011         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
93012         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
93013         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
93014         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
93015         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
93016         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
93017         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
93018         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
93019         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
93020         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
93021         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
93022         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
93023         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
93024         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
93025         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
93026         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
93027         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
93028         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
93029         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
93030         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
93031         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
93032         * MODULES.html.sh: Remove EOVERFLOW.
93033         * NEWS: Mention the change.
93035 2008-09-13  Bruno Haible  <bruno@clisp.org>
93037         * modules/errno-tests: New file.
93038         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
93040         * lib/errno.in.h: New file.
93041         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
93042         * modules/errno: New file.
93043         * doc/posix-headers/errno.texi: Update documentation.
93044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
93046 2008-09-13  Bruno Haible  <bruno@clisp.org>
93048         * tests/test-poll.c: Use #if for native Windows, rather than testing
93049         __MSVCRT__.
93051 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93052             Bruno Haible  <bruno@clisp.org>
93054         * lib/glob.c: Don't include <pwd.h> on native Windows.
93055         (WINDOWS32): New macro.
93056         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
93058 2008-09-13  Bruno Haible  <bruno@clisp.org>
93060         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
93061         (ETIMEDOUT): Remove macro.
93062         (glthread_cond_timedwait_multithreaded): New declaration.
93063         (glthread_cond_timedwait): Use it.
93064         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
93065         (glthread_cond_timedwait_multithreaded): New function.
93067 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
93069         * modules/poll-tests: Do not check for io.h.
93070         * tests/test-poll.c: Check for __MSVCRT__ instead.
93072 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
93074         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
93075         * modules/poll-tests: Add inet_pton, stdbool, sockets.
93076         * tests/test-poll.c: Use them.  Use _pipe on Windows.
93078 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
93080         * modules/poll-tests: New.
93081         * tests/test-poll.c: New.
93083 2008-09-12  Eric Blake  <ebb9@byu.net>
93085         frexp: test for NetBSD failure on -0.0
93086         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
93087         not all, bugs from NetBSD 3.0 have been fixed.
93088         * doc/posix-functions/frexp.texi (frexp): Document bug.
93089         Reported by Thomas Klausner.
93091         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
93092         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
93093         literal -0.0.
93094         Reported by Jonathan C. Patschke <jp@centtech.com>.
93096 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93098         * lib/glthread/cond.h: Use dummy implementation also if
93099         USE_WIN32_THREADS.
93101 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93103         * modules/fnmatch-posix (License): Change to LGPLv2+.
93104         * modules/fnmatch-gnu (License): Likewise.
93106 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93108         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
93110 2008-09-11  Jim Meyering  <meyering@redhat.com>
93112         * users.txt: Add gtk-vnc.
93114 2008-09-08  Simon Josefsson  <simon@josefsson.org>
93116         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
93117         rotate amounts.
93119         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
93120         required for 16-bit and 8-bit rotates.
93121         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
93122         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
93123         UINT8_MAX instead of hard-coded constants.
93124         Suggested by Paul Eggert.
93126 2008-09-07  Bruno Haible  <bruno@clisp.org>
93128         * tests/test-striconveh.c (main): Check behaviour when converting from
93129         UTF-7.
93131         Make striconveh work better with stateful encodings.
93132         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
93133         that iconv does not increment the inptr when returning -1/EINVAL.
93135 2008-09-07  Bruno Haible  <bruno@clisp.org>
93137         * build-aux/config.rpath: Update according to libtool-2.2.6.
93138         * build-aux/config.libpath: Likewise.
93140 2008-09-06  Bruno Haible  <bruno@clisp.org>
93142         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
93143         * lib/freadptr.c (freadptr): Likewise.
93144         * lib/freadseek.c (freadptrinc): Likewise.
93145         Reported by Simon Josefsson.
93147 2008-09-06  Bruno Haible  <bruno@clisp.org>
93149         * modules/freadptr (License): Change to LGPLv2+.
93150         * modules/freadseek (License): Likewise.
93151         Suggested by Eric Blake.
93153         * modules/memchr2 (License): Change to LGPLv2+.
93154         Approved by Eric Blake.
93156 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93157             Bruno Haible  <bruno@clisp.org>
93159         Make gnulib-tool work with native 'sed' on AIX.
93160         * gnulib-tool (sed_noop): New variable.
93161         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
93162         func_add_or_update, func_create_testdir): Use it to initialize sed
93163         script variables.
93164         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
93166 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
93167             Bruno Haible  <bruno@clisp.org>
93169         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
93170         also works after #include directives.
93172 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
93174         getdate.y: reject an out-of-range timezone value
93175         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
93176         the range [-24...+24].  When specified with only one or two digits,
93177         * tests/test-getdate.c: Tests for the fix.
93178         * doc/getdate.texi: Document this change.
93180 2008-09-03  Bruno Haible  <bruno@clisp.org>
93182         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
93184 2008-09-02  Simon Josefsson  <simon@josefsson.org>
93186         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
93187         <bruce.korb@gmail.com> with ideas from Ben Pfaff
93188         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
93189         Blake <ebb9@byu.net>.
93191         * tests/test-bitrotate.c: Add more test vectors.
93193 2008-09-02  Eric Blake  <ebb9@byu.net>
93195         vasnprintf-posix: handle large precision via %.*d
93196         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
93197         when handling it ourselves.
93198         * tests/test-vasnprintf-posix.c (test_function): Add test.
93199         * tests/test-snprintf-posix.h (test_function): Likewise.
93200         * tests/test-sprintf-posix.h (test_function): Likewise.
93201         * tests/test-vasprintf-posix.c (test_function): Likewise.
93202         Reported by Alain Guibert.
93204 2008-09-01  Eric Blake  <ebb9@byu.net>
93206         c-stack: make configure-time check more robust
93207         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
93208         successful sigaction call.
93209         Reported by Tom G. Christensen.
93211 2008-09-01  Bruno Haible  <bruno@clisp.org>
93213         New module 'findprog-lgpl'.
93214         * modules/findprog-lgpl: New file.
93215         * lib/findprog-lgpl.c: New file.
93216         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
93217         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
93218         to decide whether to use strdup or xstrdup, concatenated_filename or
93219         xconcatenated_filename.
93221 2008-09-01  Bruno Haible  <bruno@clisp.org>
93223         Split module 'concat-filename' into 'concat-filename' (LGPL) and
93224         'xconcat-filename' (GPL).
93225         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
93226         (License): Change to LGPLv2+.
93227         * modules/xconcat-filename: New file.
93228         * lib/concat-filename.h (concatenated_filename): Change specification.
93229         (xconcatenated_filename): New declaration.
93230         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
93231         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
93232         memory situations.
93233         * lib/xconcat-filename.c: New file.
93234         * NEWS: Mention the change.
93235         * lib/findprog.c: Include concat-filename.h, not filename.h.
93236         (find_in_path): Use xconcatenated_filename instead of
93237         concatenated_filename.
93238         * lib/javacomp.c: Include concat-filename.h, not filename.h.
93239         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
93240         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
93241         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
93242         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
93243         instead of concatenated_filename.
93244         * lib/javaexec.c: Include concat-filename.h, not filename.h.
93245         (execute_java_class): Use xconcatenated_filename instead of
93246         concatenated_filename.
93247         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
93248         * modules/javacomp (Depends-on): Likewise.
93249         * modules/javaexec (Depends-on): Likewise.
93251 2008-09-01  Bruno Haible  <bruno@clisp.org>
93253         Split module 'filename' into 'filename' and 'concat-filename'.
93254         * modules/filename: Keep only lib/filename.h.
93255         (License): Change to LGPLv2+.
93256         * modules/concat-filename: New file, extracted from modules/filename.
93257         * lib/filename.h (concatenated_filename): Remove declaration.
93258         * lib/concat-filename.h: New file, extracted from lib/filename.h.
93259         * lib/concat-filename.c: Include concat-filename.h.
93260         * NEWS: Mention the change.
93262 2008-09-01  Simon Josefsson  <simon@josefsson.org>
93264         * lib/bitrotate.h (rotl8, rotr8): Add.
93266         * modules/bitrotate (configure.ac): Need
93267         AC_REQUIRE([AC_C_INLINE]).
93268         (Description): Mention stdint.h.  Reported by Bruno Haible
93269         <bruno@clisp.org>.
93271         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
93272         Paolo Bonzini <bonzini@gnu.org>.
93274 2008-08-31  Bruno Haible  <bruno@clisp.org>
93276         Assume Solaris specific bi-arch conventions on Solaris systems.
93277         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
93278         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
93279         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
93280         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
93281         like acl_libdirstem.
93282         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
93283         acl_libdirstem.
93284         * NEWS: Mention the change.
93285         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
93287 2008-08-31  Jim Meyering  <meyering@redhat.com>
93289         * lib/strftime.h: Add comments describing the two added arguments.
93291         remove duplicate #include directives
93292         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
93293         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
93295 2008-08-31  Bruno Haible  <bruno@clisp.org>
93297         New module 'sigpipe-die'.
93298         * modules/sigpipe-die: New file.
93299         * lib/sigpipe-die.h: New file.
93300         * lib/sigpipe-die.c: New file.
93301         * MODULES.html.sh (Signal handling): Add sigpipe-die.
93303 2008-08-31  Bruno Haible  <bruno@clisp.org>
93305         Don't override previously installed signal handlers.
93306         * lib/fatal-signal.c (saved_sigactions): New variable.
93307         (uninstall_handlers): Reset the signal to the saved handler, not
93308         to SIG_DFL (except when ignored).
93309         (install_handlers): Save the previous handlers.
93311 2008-08-30  Bruno Haible  <bruno@clisp.org>
93313         * gnulib-tool (func_reset_sigpipe): New function.
93314         (func_get_automake_snippet, func_modules_transitive_closure,
93315         func_import): Invoke it before a join command that reads from stdin,
93316         to avoid "echo: write error: Broken pipe" error messages on stderr.
93317         Reported by Sam Steingold <sds@gnu.org>.
93319 2008-08-30  Bruno Haible  <bruno@clisp.org>
93321         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
93322         Code copied from m4/open.m4.
93323         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
93324         access and the filename ends in a slash. Code copied from lib/open.c.
93325         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
93326         * tests/test-fopen.c (main): Check against bug with trailing slash.
93328 2008-08-29  Bruno Haible  <bruno@clisp.org>
93330         Avoid some "gcc -pedantic" warnings.
93331         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
93332         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
93333         * lib/dirent.in.h: Likewise.
93334         * lib/fcntl.in.h: Likewise.
93335         * lib/float.in.h: Likewise.
93336         * lib/iconv.in.h: Likewise.
93337         * lib/inttypes.in.h: Likewise.
93338         * lib/locale.in.h: Likewise.
93339         * lib/math.in.h: Likewise.
93340         * lib/netinet_in.in.h: Likewise.
93341         * lib/search.in.h: Likewise.
93342         * lib/signal.in.h: Likewise.
93343         * lib/stdarg.in.h: Likewise.
93344         * lib/stdint.in.h: Likewise.
93345         * lib/stdio.in.h: Likewise.
93346         * lib/stdlib.in.h: Likewise.
93347         * lib/string.in.h: Likewise.
93348         * lib/strings.in.h: Likewise.
93349         * lib/sys_select.in.h: Likewise.
93350         * lib/sys_socket.in.h: Likewise.
93351         * lib/sys_stat.in.h: Likewise.
93352         * lib/sys_time.in.h: Likewise.
93353         * lib/sysexits.in.h: Likewise.
93354         * lib/time.in.h: Likewise.
93355         * lib/unistd.in.h: Likewise.
93356         * lib/wchar.in.h: Likewise.
93357         * lib/wctype.in.h: Likewise.
93358         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
93359         * modules/fchdir (Makefile.am): Likewise.
93360         * modules/fcntl (Makefile.am): Likewise.
93361         * modules/float (Makefile.am): Likewise.
93362         * modules/iconv_open (Makefile.am): Likewise.
93363         * modules/inttypes (Makefile.am): Likewise.
93364         * modules/locale (Makefile.am): Likewise.
93365         * modules/math (Makefile.am): Likewise.
93366         * modules/netinet_in (Makefile.am): Likewise.
93367         * modules/search (Makefile.am): Likewise.
93368         * modules/signal (Makefile.am): Likewise.
93369         * modules/stdarg (Makefile.am): Likewise.
93370         * modules/stdint (Makefile.am): Likewise.
93371         * modules/stdio (Makefile.am): Likewise.
93372         * modules/stdlib (Makefile.am): Likewise.
93373         * modules/string (Makefile.am): Likewise.
93374         * modules/strings (Makefile.am): Likewise.
93375         * modules/sys_select (Makefile.am): Likewise.
93376         * modules/sys_socket (Makefile.am): Likewise.
93377         * modules/sys_stat (Makefile.am): Likewise.
93378         * modules/sys_time (Makefile.am): Likewise.
93379         * modules/sysexits (Makefile.am): Likewise.
93380         * modules/time (Makefile.am): Likewise.
93381         * modules/unistd (Makefile.am): Likewise.
93382         * modules/wchar (Makefile.am): Likewise.
93383         * modules/wctype (Makefile.am): Likewise.
93384         Reported by Reuben Thomas <rrt@sc3d.org>.
93386 2008-08-29  Bruno Haible  <bruno@clisp.org>
93388         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
93389         any more.
93391 2008-08-29  Simon Josefsson  <simon@josefsson.org>
93393         * MODULES.html.sh (Misc): Add bitrotate.
93395         * modules/bitrotate: New file.
93397         * lib/bitrotate.h: New file.
93399         * modules/bitrotate-tests: New file.
93401         * tests/test-bitrotate.c: New file.
93403         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
93404         on the bitrotate module.
93406         * lib/arctwo.c: Use new bitrotate module.
93408 2008-08-29  Jim Meyering  <meyering@redhat.com>
93410         bootstrap: merge changes from coreutils
93411         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
93412         of copied files.  Remove a kludge, now that this is fixed.
93413         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
93414         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
93415         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
93417 2008-08-29  Bruno Haible  <bruno@clisp.org>
93419         * MODULES.html.sh: Remove --cvs-urls option.
93421 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
93423         maint.mk: adjust to file name change
93424         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
93426 2008-08-28  Jim Meyering  <meyering@redhat.com>
93428         * modules/getndelim2 (License): Relicense to LGPLv2+.
93429         Approved by Richard Stallman for the version of 1995, and by
93430         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
93432 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
93434         * lib/getdelim.c (flockfile, funlockfile): Make all of them
93435         dummy if one is not available.  Do not touch them if
93436         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
93437         (getc_maybe_unlocked): New.
93438         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
93440 2008-08-26  Eric Blake  <ebb9@byu.net>
93442         doc/INSTALL: resync from autoconf
93443         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
93444         (INSTALL_PRELUDE): Delete; this is done more efficiently by
93445         moving...
93446         * install.texi [!autoconf]: ...here.  Resync from autoconf.
93447         * INSTALL: Regenerate.
93448         * INSTALL.ISO: New file.
93449         * INSTALL.UTF-8: Likewise.
93451 2008-08-26  Jim Meyering  <meyering@redhat.com>
93453         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
93454         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
93455         these definitions conditional, so that they may be overridden, too.
93457 2008-08-26  Bruno Haible  <bruno@clisp.org>
93459         Generate INSTALL file variants with prettier quotes.
93460         * doc/Makefile (INSTALL_PRELUDE): New macro.
93461         (INSTALL): Use it.
93462         (INSTALL.ISO, INSTALL.UTF-8): New rules.
93464 2008-08-26  Bruno Haible  <bruno@clisp.org>
93466         Run makeinfo in an English locale.
93467         * doc/Makefile (MAKEINFO): New variable.
93469 2008-08-26  Bruno Haible  <bruno@clisp.org>
93471         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
93472         Suggested by Eric Blake.
93474 2008-08-25  Bruno Haible  <bruno@clisp.org>
93476         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
93478 2008-08-25  Eric Blake  <ebb9@byu.net>
93480         c-stack: test that stack overflow can be caught
93481         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
93482         that platform allows handling stack overflow; at least OS/2 EMX
93483         has sigaltstack, but crashes before transferring control to
93484         handler on stack overflow.
93485         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
93486         check for HAVE_STACK_OVERFLOW_HANDLING.
93487         Reported by Elbert Pol.
93489 2008-08-25  Bruno Haible  <bruno@clisp.org>
93491         * doc/posix-functions/strftime.texi: Fix description of strftime
93492         module.
93494 2008-08-24  Bruno Haible  <bruno@clisp.org>
93496         * tests/uniwidth/test-uc_width2.c: New file.
93497         * tests/uniwidth/test-uc_width2.sh: New file.
93498         * modules/uniwidth/width-tests (Files): Add the new files.
93499         (TESTS): Add uniwidth/test-uc_width2.sh.
93500         (TESTS_ENVIRONMENT): New variable.
93501         (check_PROGRAMS): Add test-uc_width2.
93502         (test_uc_width2_SOURCES): New variable.
93504         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
93505         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
93506         not 0x00AB.
93507         Reported by Alexander V. Lukyanov <lav@netis.ru>.
93509 2008-08-22  Eric Blake  <ebb9@byu.net>
93511         test-lock, test-tls: mention why a test is skipped
93512         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
93513         skipped.
93514         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
93516         count-one-bits: relax license
93517         * modules/count-one-bits (License): Relicense to LGPLv2+.
93518         Suggested by Ludovic Courtès, approved by Ben Pfaff.
93520 2008-08-22  Andreas Schwab  <schwab@suse.de>
93522         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
93523         Remove spurious space in assignment.
93525 2008-08-21  Simon Josefsson  <simon@josefsson.org>
93527         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
93528         Paul Eggert <eggert@CS.UCLA.EDU>.
93530 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
93532         * modules/gettext: Add m4/threadlib.m4.
93534 2008-08-19  Eric Blake  <ebb9@byu.net>
93536         test-c-stack: fix compilation failure on FreeBSD 5.0
93537         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
93538         headers before <sys/resource.h>.
93539         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
93540         the bug.
93541         Reported by Nelson H. F. Beebe.
93543         strverscmp: migrate from "strverscmp.h" to <string.h>
93544         * modules/string (Makefile.am): Add new hooks.
93545         * modules/strverscmp (Files): Remove strverscmp.h.
93546         (Depends-on): Add string.
93547         (configure.ac): Add indicator.
93548         (Include): Mention new header.
93549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
93550         defaults.
93551         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
93552         results.
93553         * lib/strverscmp.h: Delete.
93554         * lib/string.in.h (strverscmp): Provide declaration, when needed.
93555         * tests/test-strverscmp.c (includes): Adjust client.
93556         * lib/check-version.c (includes): Likewise.
93557         * NEWS: Document the change.
93559         strverscmp: add unit test
93560         * modules/strverscmp-tests: New file.
93561         * tests/test-strverscmp.c: Likewise.
93563 2008-08-19  Simon Josefsson  <simon@josefsson.org>
93565         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
93566         regarding Windows crypto stuff, from Mono.
93568 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
93570         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
93571         if present, for intel RND.  Return error on failures.
93573 2008-08-18  Ben Pfaff  <blp@gnu.org>
93575         gitlog-to-changelog: give better diagnostic for failed pipe-open
93576         * build-aux/gitlog-to-changelog: Improve error message: suggest
93577         that the version of Git may be too old.
93579 2008-08-18  Simon Josefsson  <simon@josefsson.org>
93581         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
93582         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
93584 2008-08-18  Bruno Haible  <bruno@clisp.org>
93586         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
93587         pthread_in_use().
93589 2008-08-18  Bruno Haible  <bruno@clisp.org>
93591         * lib/glthread/threadlib.c: Include <pthread.h>.
93593 2008-08-18  Bruno Haible  <bruno@clisp.org>
93595         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
93596         glthread_recursive_lock_* macros.
93597         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
93598         Fix syntax error.
93600 2008-08-18  Bruno Haible  <bruno@clisp.org>
93602         * lib/glthread/thread.c: Avoid forcing a context switch right after
93603         thread creation.
93605 2008-08-17  Bruno Haible  <bruno@clisp.org>
93607         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
93608         * lib/glthread/thread.h: Provide Win32 specific implementation.
93609         * modules/thread (Files): Add lib/glthread/thread.c.
93610         (Depends-on): Add lock.
93611         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
93613 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93615         New module 'yield'.
93616         * modules/yield: New file.
93617         * lib/glthread/yield.h: New file.
93618         * m4/yield.m4: New file.
93619         * MODULES.html.sh (Multithreading): Add yield.
93621 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93623         New module 'thread'.
93624         * modules/thread: New file.
93625         * lib/glthread/thread.h: New file.
93626         * m4/thread.m4: New file.
93627         * MODULES.html.sh (Multithreading): Add thread.
93629 2008-08-17  Bruno Haible  <bruno@clisp.org>
93631         * lib/glthread/lock.h: Include <stdlib.h> always.
93632         * lib/glthread/tls.h: Likewise.
93633         * lib/glthread/cond.h: Likewise.
93635 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93637         New module 'cond'.
93638         * modules/cond: New file.
93639         * lib/glthread/cond.h: New file.
93640         * lib/glthread/cond.c: New file.
93641         * m4/cond.m4: New file.
93642         * MODULES.html.sh (Multithreading): Add cond.
93644 2008-08-16  Eric Blake  <ebb9@byu.net>
93646         c-stack: fix regression on Irix 5.3 from 2008-06-21
93647         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
93648         sa_sigaction...
93649         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
93650         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
93651         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
93652         * modules/signal (Makefile.am): Use the value.
93653         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
93654         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
93655         * doc/posix-headers/signal.texi (signal.h): Document this
93656         portability issue.
93657         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
93658         Reported by Tom G. Christensen.
93660 2008-08-17  Bruno Haible  <bruno@clisp.org>
93662         New module 'threadlib'.
93663         * modules/threadlib: New file.
93664         * lib/glthread/threadlib.c: New file, extracted from
93665         lib/glthread/lock.c.
93666         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
93667         functions.
93668         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
93669         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
93670         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
93671         macros.
93672         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
93673         (gl_DISABLE_THREADS): Remove macro.
93674         * modules/lock (Files): Remove build-aux/config.rpath.
93675         (Depends-on): Remove havelib. Add threadlib.
93676         (configure.ac-early): Remove section.
93677         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
93678         * modules/tls (Depends-on): Remove lock. Add threadlib.
93679         (Link): New section, copied from threadlib.
93680         * MODULES.html.sh (Multithreading): Add threadlib.
93682 2008-08-14  Bruno Haible  <bruno@clisp.org>
93684         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
93685         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
93686         glthread_rwlock_unlock, glthread_rwlock_destroy,
93687         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
93688         glthread_recursive_lock_destroy): Define as macros always.
93689         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
93690         glthread_lock_lock.
93691         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
93692         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
93693         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
93694         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
93695         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
93696         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
93697         (glthread_recursive_lock_lock_func): Renamed from
93698         glthread_recursive_lock_lock.
93699         (glthread_recursive_lock_unlock_func): Renamed from
93700         glthread_recursive_lock_unlock.
93701         (glthread_recursive_lock_destroy_func): Renamed from
93702         glthread_recursive_lock_destroy.
93704 2008-08-14  Bruno Haible  <bruno@clisp.org>
93706         * lib/glthread/lock.h: Renamed from lib/lock.h.
93707         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
93708         * lib/glthread/tls.h: Renamed from lib/tls.h.
93709         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
93710         * lib/fstrcmp.c: Update includes.
93711         * lib/strsignal.c: Update includes.
93712         * modules/lock (Files, Makefile.am): Update.
93713         (Include): Change to "glthread/lock.h".
93714         * modules/tls (Files, Makefile.am): Update.
93715         (Include): Change to "glthread/tls.h".
93716         * tests/test-lock.c: Update includes.
93717         * tests/test-tls.c: Update includes.
93718         * NEWS: Mention the renamed header files.
93720 2008-08-11  Jim Meyering  <meyering@redhat.com>
93722         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
93724 2008-08-11  Eric Blake  <ebb9@byu.net>
93726         test-c-stack: avoid C99-ism
93727         * tests/test-c-stack.c (main): Fix whitespace, move declaration
93728         before statement.
93729         Reported by Alain Guibert.
93731 2008-08-10  Jim Meyering  <meyering@redhat.com>
93733         ensure that return value of uinttostr et al are not ignored
93734         * lib/inttostr.h (__GNUC_PREREQ): Define.
93735         (__attribute_warn_unused_result__): Define.
93736         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
93738 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
93740         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
93741         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
93743 2008-08-07  Jim Meyering  <meyering@redhat.com>
93745         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
93747         * modules/mkstemp (License): Relicense under LGPLv2+.
93748         * modules/tempname (License): Likewise.
93750 2008-08-06  Bruno Haible  <bruno@clisp.org>
93752         * lib/poll.c (poll): Further micro-optimization.
93754 2008-08-06  Jim Meyering  <meyering@redhat.com>
93756         inet_pton.c: use locale-independent tolower
93757         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
93758         (inet_pton6): Use c_tolower rather than tolower.
93759         * modules/inet_pton (Depends-on): Add c-ctype.
93761 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
93763         * lib/poll.c (poll): Avoid division when timeout is 0, cache
93764         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
93766 2008-08-06  Jim Meyering  <meyering@redhat.com>
93768         * modules/inet_pton (License): Relicense under LGPLv2+.
93770 2008-08-03  Bruno Haible  <bruno@clisp.org>
93772         Additional non-aborting API for lock and tls.
93773         * lib/lock.h: Include <errno.h>.
93774         (glthread_lock_init): New macro/function.
93775         (gl_lock_init): Define as wrapper around glthread_lock_init.
93776         (glthread_lock_lock): New macro/function.
93777         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
93778         (glthread_lock_unlock): New macro/function.
93779         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
93780         (glthread_lock_destroy): New macro/function.
93781         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
93782         (glthread_rwlock_init): New macro/function.
93783         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
93784         (glthread_rwlock_rdlock): New macro/function.
93785         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
93786         (glthread_rwlock_wrlock): New macro/function.
93787         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
93788         (glthread_rwlock_unlock): New macro/function.
93789         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
93790         (glthread_rwlock_destroy): New macro/function.
93791         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
93792         (glthread_recursive_lock_init): New macro/function.
93793         (gl_recursive_lock_init): Define as wrapper around
93794         glthread_recursive_lock_init.
93795         (glthread_recursive_lock_lock): New macro/function.
93796         (gl_recursive_lock_lock): Define as wrapper around
93797         glthread_recursive_lock_lock.
93798         (glthread_recursive_lock_unlock): New macro/function.
93799         (gl_recursive_lock_unlock): Define as wrapper around
93800         glthread_recursive_lock_unlock.
93801         (glthread_recursive_lock_destroy): New macro/function.
93802         (gl_recursive_lock_destroy): Define as wrapper around
93803         glthread_recursive_lock_destroy.
93804         (glthread_once): New macro/function.
93805         (gl_once): Define as wrapper around glthread_once.
93806         Update function declarations.
93807         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
93808         glthread_rwlock_init. Return error code.
93809         (glthread_rwlock_rdlock_multithreaded): Renamed from
93810         glthread_rwlock_rdlock. Return error code.
93811         (glthread_rwlock_wrlock_multithreaded): Renamed from
93812         glthread_rwlock_wrlock. Return error code.
93813         (glthread_rwlock_unlock_multithreaded): Renamed from
93814         glthread_rwlock_unlock. Return error code.
93815         (glthread_rwlock_destroy_multithreaded): Renamed from
93816         glthread_rwlock_destroy. Return error code.
93817         (glthread_recursive_lock_init_multithreaded): Renamed from
93818         glthread_recursive_lock_init. Return error code.
93819         (glthread_recursive_lock_lock_multithreaded): Renamed from
93820         glthread_recursive_lock_lock. Return error code.
93821         (glthread_recursive_lock_unlock_multithreaded): Renamed from
93822         glthread_recursive_lock_unlock. Return error code.
93823         (glthread_recursive_lock_destroy_multithreaded): Renamed from
93824         glthread_recursive_lock_destroy. Return error code.
93825         (glthread_once_call): Make static.
93826         (glthread_once_multithreaded): Renamed from glthread_once.
93827         * lib/tls.h: Include <errno.h>.
93828         (glthread_tls_key_init): New macro/function.
93829         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
93830         (glthread_tls_set): New macro/function.
93831         (gl_tls_set): Define as wrapper around glthread_tls_set.
93832         (glthread_tls_key_destroy): New macro/function.
93833         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
93834         Update function declarations.
93835         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
93836         glthread_tls_get.
93837         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
93839 2008-08-04  Eric Blake  <ebb9@byu.net>
93841         gnumakefile: use space, not TAB, outside of targets
93842         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
93844 2008-08-02  Jim Meyering  <meyering@redhat.com>
93846         getdate.y: avoid locale-dependent date parsing failure
93847         In Turkish locales, getdate would fail to recognize keywords
93848         containing a lowercase "i".  The solution is not to rely on
93849         locale-sensitive case-conversion.
93850         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
93851         (lookup_word): Use c_toupper in place of toupper.
93852         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
93853         Reported by Vefa Bicakci <bicave@superonline.com> in
93854         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
93855         * modules/getdate (Depends-on): Add c-ctype.
93857 2008-08-02  Bruno Haible  <bruno@clisp.org>
93859         * gnulib-tool (func_import): When updating or creating a .gitignore
93860         file, prepend each added line with a slash, and ignore leading slashes
93861         from the existing lines.
93862         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
93864 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93866         Portability fix for GNU make 3.79.1.
93867         * top/GNUmakefile: Avoid 'else COND', which older GNU make
93868         versions do not understand.
93870 2008-08-01  Bruno Haible  <bruno@clisp.org>
93872         Work around bug of HP-UX 10.20 cc with -0.0 literal.
93873         * tests/test-isnanf.h (zero): New variable.
93874         (main): Avoid literal -0.0f.
93875         * tests/test-isnand.h (zero): New variable.
93876         (main): Avoid literal -0.0.
93877         * tests/test-isnanl.h (zero): New variable.
93878         (main): Avoid literal -0.0L.
93879         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
93880         (test_float, test_double, test_long_double): Avoid literals -0.0f,
93881         -0.0, -0.0L.
93882         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
93883         (test_signbitd): Avoid literal -0.0.
93884         (test_signbitl): Avoid literal -0.0L.
93885         * tests/test-ceilf1.c (zero): New variable.
93886         (main): Avoid literal -0.0f.
93887         * tests/test-ceill.c (zero): New variable.
93888         (main): Avoid literal -0.0L.
93889         * tests/test-floorf1.c (zero): New variable.
93890         (main): Avoid literal -0.0f.
93891         * tests/test-floorl.c (zero): New variable.
93892         (main): Avoid literal -0.0L.
93893         * tests/test-roundf1.c (zero): New variable.
93894         (main): Avoid literal -0.0f.
93895         * tests/test-round1.c (zero): New variable.
93896         (main): Avoid literal -0.0.
93897         * tests/test-roundl.c (zero): New variable.
93898         (main): Avoid literal -0.0L.
93899         * tests/test-truncf1.c (zero): New variable.
93900         (main): Avoid literal -0.0f.
93901         * tests/test-trunc1.c (zero): New variable.
93902         (main): Avoid literal -0.0.
93903         * tests/test-truncl.c (zero): New variable.
93904         (main): Avoid literal -0.0L.
93905         * tests/test-frexp.c (zero): New variable.
93906         (main): Avoid literal -0.0.
93907         * tests/test-frexpl.c (zero): New variable.
93908         (main): Avoid literal -0.0L.
93909         * tests/test-ldexpl.c (zero): New variable.
93910         (main): Avoid literal -0.0L.
93911         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93912         (zerod, zerol): New variables.
93913         (test_function): Avoid literals -0.0, -0.0L.
93914         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93915         (zerod, zerol): New variables.
93916         (test_function): Avoid literals -0.0, -0.0L.
93917         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93918         (zerod, zerol): New variables.
93919         (test_function): Avoid literals -0.0, -0.0L.
93920         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93921         (zerod, zerol): New variables.
93922         (test_function): Avoid literals -0.0, -0.0L.
93923         * tests/test-strtod.c (zero): New variable.
93924         (main): Avoid literal -0.0.
93925         Reported by Jonathan C. Patschke <jp@centtech.com>.
93927 2008-07-31  Jim Meyering  <meyering@redhat.com>
93929         sha256.h: correct definition of SHA224_DIGEST_SIZE
93930         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
93931         Reported by Paulie Pena IV <paulie4@gmail.com>.
93932         Define as 224 / 8, rather than as a literal.
93933         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
93934         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
93935         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
93937 2008-07-31  Bruno Haible  <bruno@clisp.org>
93939         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
93940         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
93941         Reported by Jonathan Patschke <jp@centtech.com>.
93943 2008-07-31  Bruno Haible  <bruno@clisp.org>
93945         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
93946         Reported by Paolo Bonzini <bonzini@gnu.org>.
93948 2008-07-30  Eric Blake  <ebb9@byu.net>
93950         test-strtod: allow compilation without -lm
93951         * tests/test-strtod.c (main): Avoid link dependence on fabs.
93952         Reported by Dennis Clarke <blastwave@gmail.com>.
93954 2008-07-28  Jim Meyering  <meyering@redhat.com>
93956         bootstrap: work also when there are no .po files in po/
93957         * build-aux/bootstrap (update_po_files): Complete the change
93958         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
93960 2008-07-27  Jim Meyering  <meyering@redhat.com>
93962         * users.txt: Add zile.
93964 2008-07-26  Ben Pfaff  <blp@gnu.org>
93966         Add missing dependencies on new m4/exponent[fdl].m4 files.
93967         * modules/isnanf-nolibm: Add m4/exponentf.m4.
93968         * modules/isnand-nolibm: Add m4/exponentd.m4.
93969         * modules/isnanl-nolibm: Add m4/exponentl.m4.
93970         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
93971         m4/isnan[fdl].m4, because the macros actually used moved.
93972         Reported by Jim Meyering.
93974 2008-07-14  Ben Pfaff  <blp@gnu.org>
93976         Add isinf module.
93977         * lib/isinf.c: New file.
93978         * lib/math.in.h: Define isinf macro if we have decided to replace
93979         it.
93980         * m4/isinf.m4: New file.
93981         * m4/math_h.m4: Initialize and substitute variables for isinf
93982         module.
93983         * modules/isinf: New file.
93984         * modules/isinf-tests: New file.
93985         * modules/math: Add substitutions for new module.
93986         * tests/test-isinf.c: New file.
93987         * doc/posix-functions/isinf.texi: Mention new module.
93988         * MODULES.html.sh: Mention new module.
93990 2008-07-14  Ben Pfaff  <blp@gnu.org>
93992         Factor out some macros for use by additional modules.
93993         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
93994         exponentf.m4.
93995         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
93996         exponentd.m4.
93997         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
93998         file exponentl.m4.
93999         * m4/exponentf.m4: New file.
94000         * m4/exponentd.m4: New file.
94001         * m4/exponentl.m4: New file.
94002         * modules/isnanf: Use new file m4/exponentf.m4.
94003         * modules/isnand: Use new file m4/exponentd.m4.
94004         * modules/isnanl: Use new file m4/exponentl.m4.
94006 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
94008         mktime.c: normalize tp->tm_isdst value to -1/0/1.
94009         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
94010         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
94011         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
94013         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
94014         readlink on platforms without PATH_MAX.
94016 2008-07-21  Eric Blake  <ebb9@byu.net>
94018         Warn, not fail, on stale version.
94019         * top/GNUmakefile (_curr-ver): Tone down previous patch.
94021         Don't allow installation with stale devel version number.
94022         * top/GNUmakefile (_is-install-target): New macro.
94023         (_curr-ver): Forbid installation with stale version number.
94025 2008-07-20  Bruno Haible  <bruno@clisp.org>
94027         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
94028         TESTS_ENVIRONMENT.
94029         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
94031 2008-07-20  Bruno Haible  <bruno@clisp.org>
94033         * lib/c-stack.h (c_stack_action): Add documentation.
94034         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
94036 2008-07-20  Bruno Haible  <bruno@clisp.org>
94038         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
94039         * modules/readlink (License): Likewise.
94041 2008-07-17  Eric Blake  <ebb9@byu.net>
94043         * modules/c-stack (Link): Fix typo.
94045         Make c-stack use libsigsegv, when available.
94046         * modules/c-stack (Depends-on): Add libsigsegv.
94047         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
94048         needed.
94049         * lib/c-stack.c (SIGSTKSZ): Define fallback.
94050         (segv_handler, overflow_handler, c_stack_action)
94051         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
94052         implementation when libsigsegv is available, but only when using
94053         the library is necessary.
94054         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
94055         comment, explaining why XSI check fails on Linux.
94056         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
94057         * tests/test-c-stack2.sh: Tweak skip message.
94058         * NEWS: Document new link-time requirements.
94060 2008-07-16  Eric Blake  <ebb9@byu.net>
94062         c-stack: Expose false positives when not using libsigsegv.
94063         * modules/c-stack-tests (Files): Expand test.
94064         * tests/test-c-stack.c (main): Add means to conditionally trigger
94065         non-overflow SIGSEGV.
94066         * tests/test-c-stack2.sh: New file.
94068 2008-07-14  Bruno Haible  <bruno@clisp.org>
94070         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
94071         Reported by Eric Blake.
94073 2008-07-14  Sam Steingold  <sds@gnu.org>
94074             Bruno Haible  <bruno@clisp.org>
94076         New module libsigsegv.
94077         * modules/libsigsegv: New file.
94078         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
94079         modifications.
94080         * MODULES.html.sh (Signal handling): New section.
94082 2008-07-14  Bruno Haible  <bruno@clisp.org>
94084         * modules/unictype/ctype-* (Description): Add the word "function".
94085         Improves the resulting doc in MODULES.html.
94087 2008-07-12  Ben Pfaff  <blp@gnu.org>
94089         Add longlong module.
94090         * modules/longlong: New file.
94092 2008-07-12  Bruno Haible  <bruno@clisp.org>
94094         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
94095         to empty.
94097 2008-07-10  Ben Pfaff  <blp@gnu.org>
94099         Add isnan module.
94100         * doc/posix-functions/isnan.texi: Mention new module.
94101         * lib/math.in.h: Define isnan macro if we have decided to replace
94102         it.
94103         * m4/isnan.m4: New file.
94104         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
94105         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
94106         also.
94107         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
94108         redundancy.
94109         * m4/math_h.m4: Initialize and substitute variables for isnan
94110         module.
94111         * modules/isnan: New file.
94112         * modules/isnan-tests: New file.
94113         * modules/math: Add substitutions for new module.
94114         * tests/test-isnan.c: New file.
94115         * MODULES.html.sh: Mention new module.
94117 2008-07-10  Ben Pfaff  <blp@gnu.org>
94119         Add isnanf module.
94120         * lib/isnanf.m4: New file.
94121         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
94122         (gl_HAVE_ISNANF_IN_LIBM): New macro.
94123         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
94124         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
94125         * modules/isnanf: New file.
94126         * modules/isnanf-tests: New file.
94127         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
94128         files.
94129         * tests/test-isnanf-nolibm.c: factored most of its contents into
94130         new file tests/test-isnanf.h.
94131         * tests/test-isnanf.h: New file.
94132         * tests/test-isnanf.c: New file.
94133         * MODULES.html.sh: Mention new module.
94134         * doc/glibc-functions/isnanf.texi: Mention new module.
94136 2008-07-10  Ben Pfaff  <blp@gnu.org>
94138         Add isnand module.
94139         * lib/isnand.h: New file.
94140         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
94141         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
94142         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
94143         functionality also.
94144         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
94145         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
94146         (gl_HAVE_ISNAND_IN_LIBM): New macro.
94147         * modules/isnand: New file.
94148         * modules/isnand-tests: New file.
94149         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
94150         files.
94151         * tests/test-isnand-nolibm.c: factored most of its contents into
94152         new file tests/test-isnand.h.
94153         * tests/test-isnand.h: New file.
94154         * tests/test-isnand.c: New file.
94155         * MODULES.html.sh: Mention new module.
94157 2008-07-10  Ben Pfaff  <blp@gnu.org>
94159         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
94160         * lib/isnand.h: Rename lib/isnand-nolibm.h.
94161         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
94162         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
94163         * modules/isnanf-nolibm: Update references to renamed files.
94164         * modules/isnand-nolibm: Likewise.
94165         * modules/isnanf-nolibm-tests: Likewise.
94166         * modules/isnand-nolibm-tests: Likewise.
94167         * lib/frexp.c: Likewise.
94168         * lib/isfinite.c: Likewise.
94169         * lib/signbitd.c: Likewise.
94170         * lib/signbitf.c: Likewise.
94171         * lib/vasnprintf.c: Likewise.
94172         * tests/test-ceilf1.c: Likewise.
94173         * tests/test-ceilf2.c: Likewise.
94174         * tests/test-floorf1.c: Likewise.
94175         * tests/test-floorf2.c: Likewise.
94176         * tests/test-frexp.c: Likewise.
94177         * tests/test-round1.c: Likewise.
94178         * tests/test-round2.c: Likewise.
94179         * tests/test-roundf1.c: Likewise.
94180         * tests/test-strtod.c: Likewise.
94181         * tests/test-trunc1.c: Likewise.
94182         * tests/test-trunc2.c: Likewise.
94183         * tests/test-truncf1.c: Likewise.
94184         * tests/test-truncf2.c: Likewise.
94185         * NEWS: Mention the renamed header files.
94187 2008-07-11  Jim Meyering  <meyering@redhat.com>
94189         vc-list-files: make the last-resort awk code more portable
94190         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
94191         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
94192         does not support it.
94194 2008-07-10  Eric Blake  <ebb9@byu.net>
94196         Work with tar's bootstrap.
94197         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
94198         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
94199         an m4 comment.
94201 2008-07-09  Jim Meyering  <meyering@redhat.com>
94203         posix-shell.m4: fix typo that made this test malfunction
94204         * m4/posix-shell.m4: Remove capitalization in variable name.
94206 2008-07-08  Bruno Haible  <bruno@clisp.org>
94208         * m4/onceonly.m4: Update comments.
94209         Reported by Ben Pfaff <blp@cs.stanford.edu>.
94211 2008-07-04  Jim Meyering  <meyering@redhat.com>
94213         * users.txt: Add vc-dwim.
94214         (bison, coreutils): Use the gitweb URL.
94216 2008-07-03  Jim Meyering  <meyering@redhat.com>
94218         * users.txt: Add libffcall.  From Sam Steingold.
94220 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
94222         getdate.y: do not ignore TZ with relative day, month or year offset
94223         * lib/getdate.y (get_date): Move the tz-handling block to follow the
94224         relative-date-handling, since otherwise, the latter would clobber the
94225         sole output (an updated Start value) of the tz-handling block.
94226         * tests/test-getdate.c: Tests for the fix
94228 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94230         Recognize 'foo_LIBRARIES += libgnu.a'.
94231         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
94232         makefile snippet has already specified an installation location,
94233         also using '+='.
94235 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
94237         getdate.y: factor out common actions
94238         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
94239         Use them in place of open-coded actions.
94241 2008-07-01  Simon Josefsson  <simon@josefsson.org>
94243         Add self-test for getdate module.
94244         * modules/getdate-tests: New file.
94245         * tests/test-getdate.c: New file.
94247 2008-06-29  Bruno Haible  <bruno@clisp.org>
94249         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
94250         .gitignore.
94251         Reported by Sylvain Beucler <beuc@beuc.net>.
94253 2008-06-29  Bruno Haible  <bruno@clisp.org>
94255         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
94256         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
94258 2008-06-29  Bruno Haible  <bruno@clisp.org>
94260         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
94261         EXTRA_DIST.
94262         Reported by Sylvain Beucler <beuc@beuc.net>.
94264 2008-06-26  Jim Meyering  <meyering@redhat.com>
94266         make several modules depend on the "open" module
94267         This provides slightly increased consistency when opening-for-write
94268         the name of a non-directory spelled with a trailing slash.
94269         * modules/chdir-safer: Likewise.
94270         * modules/chown: Likewise.
94271         * modules/clean-temp: Likewise.
94272         * modules/copy-file: Likewise.
94273         * modules/fchdir: Likewise.
94274         * modules/fcntl-safer: Likewise.
94275         * modules/pipe: Likewise.
94276         * modules/utime: Likewise.
94277         Prompted by Eric Blake and Bruno Haible.
94279 2008-06-24  Andreas Schwab  <schwab@suse.de>
94281         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
94282         literals can be used as initializers for global variables.
94284 2008-06-23  Eric Blake  <ebb9@byu.net>
94286         Make gnulib-cache.m4 easier to diff.
94287         * gnulib-tool (func_import): Allow newlines when reading cached
94288         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
94290 2008-06-23  Bruno Haible  <bruno@clisp.org>
94292         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
94293         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
94294         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
94295         m4/signalblocking.m4.
94296         (gl_PREREQ_SIGACTION): Don't invoke it.
94297         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
94298         gl_PREREQ_SIG_HANDLER_H.
94299         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
94300         Don't check for sigaction here.
94302 2008-06-23  Bruno Haible  <bruno@clisp.org>
94304         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
94305         (install_handlers): Don't set the SA_RESETHAND flag.
94307 2008-06-23  Bruno Haible  <bruno@clisp.org>
94309         * m4/sigaction.m4: Comment fixes.
94310         * lib/signal.in.h: Likewise.
94312 2008-06-23  Eric Blake  <ebb9@byu.net>
94314         Fix typo.
94315         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
94317         Avoid SA_ namespace.
94318         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
94319         Reported by Ralf Wildenhues.
94321         Avoid test failure due to SA_RESTORER.
94322         * tests/test-sigaction.c (SA_MASK): New macro.
94323         (main): Avoid failing due to extension flags being set.
94324         Reported by Jim Meyering.
94326         Revert use of sig-handler.h in sigprocmask.c.
94327         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
94328         it requires the existence of struct sigaction.
94329         * lib/sigprocmask.c (handler_t): Restore typedef.
94330         (rpl_signal, old_handlers): Use local type.
94332 2008-06-22  Bruno Haible  <bruno@clisp.org>
94334         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
94335         conditionally.
94336         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
94338 2008-06-22  Bruno Haible  <bruno@clisp.org>
94340         * doc/posix-functions/siginterrupt.texi: Move note.
94342         * lib/signal.in.h (SA_RESTART): New macro.
94343         * lib/sigaction.c: Update comment.
94345         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
94347         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
94348         (gl_PREREQ_SIGPROCMASK): Invoke it.
94349         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
94351         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
94353         * lib/sigprocmask.c: Update a comment.
94355 2008-06-21  Eric Blake  <ebb9@byu.net>
94357         Use sigaction module rather than signal().
94358         * modules/c-stack (Depends-on): Add sigaction.
94359         * modules/fatal-signal (Depends-on): Likewise.
94360         * modules/nanosleep (Depends-on): Likewise.
94361         * modules/sigprocmask (Files): Add sig-handler.h.
94362         * modules/sigaction (Files): Likewise.
94363         * lib/sig-handler.h (get_handler): New file, suggested by Paul
94364         Eggert.
94365         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
94366         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
94367         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
94368         (init_fatal_signals): Likewise.
94369         * lib/nanosleep.c (rpl_nanosleep): Likewise.
94370         (siginterrupt): Delete fallback.
94371         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
94372         instead.
94373         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
94374         siginterrupt.
94376         New module sigaction, for mingw.
94377         * modules/sigaction: New module...
94378         * modules/sigaction-tests: ...and its test.
94379         * m4/sigaction.m4: New file.
94380         * lib/sigaction.c: Likewise.
94381         * tests/test-sigaction.c: Likewise.
94382         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
94383         * modules/signal (Makefile.am): Likewise.
94384         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
94385         needed.
94386         * doc/posix-headers/signal.texi (signal.h): Mention provided
94387         types.
94388         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
94389         that sigaction is preferable.
94390         * doc/posix-functions/sigaction.texi (sigaction): Mention new
94391         module.
94392         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
94393         sigaction.
94395         Improve robustness of sigprocmask by overriding signal.
94396         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
94397         is in use.
94398         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
94399         (SIGKILL, SIGSTOP): Provide fallbacks.
94400         (rpl_signal): Implement.
94401         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
94402         signal can be called inside handlers.
94404         Fix nanosleep module on mingw.
94405         * modules/nanosleep (Depends-on): Add sys_select.
94406         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
94408         Fix licensing of sigprocmask.
94409         * modules/raise (License): Relicense as LGPL.
94411 2008-06-21  Bruno Haible  <bruno@clisp.org>
94413         * lib/propername.c (proper_name_utf8): Don't use the transliterated
94414         result if it contains question marks.
94415         Reported by Michael Geng <linux@michaelgeng.de>.
94417 2008-06-19  Bruno Haible  <bruno@clisp.org>
94419         Fix CVS-ism.
94420         * doc/gnulib.texi: Include updated-stamp.texi.
94421         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
94422         (updated-stamp.texi): New rule.
94423         (gnulib.info): Depend on it.
94424         * doc/.gitignore: Add updated-stamp.texi.
94425         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
94427 2008-06-19  Bruno Haible  <bruno@clisp.org>
94429         * doc/Makefile (gnulib.info): Update and simplify dependencies.
94430         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
94432 2008-06-19  Eric Blake  <ebb9@byu.net>
94434         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
94435         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
94436         Reported by Stepan Kasal.
94438 2008-06-18  Bruno Haible  <bruno@clisp.org>
94440         * lib/fatal-signal.c (init_fatal_signals): Add comment.
94441         Reported by Eric Blake.
94443 2008-06-18  Eric Blake  <ebb9@byu.net>
94445         Work around cygwin 1.5.25 strsignal bug.
94446         * tests/test-strsignal.c: Allow for const char *.
94447         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
94449 2008-06-18  Simon Josefsson  <simon@josefsson.org>
94451         * users.txt: Update URL to article and add author/date
94452         information.
94454 2008-06-17  Bruno Haible  <bruno@clisp.org>
94456         New macro gl_DISABLE_THREADS.
94457         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
94458         if the user did not pass --enable-threads or --disable-threads option.
94459         (gl_DISABLE_THREADS): New macro.
94460         Reported by Eric Blake <ebb9@byu.net>.
94462 2008-06-17  Bruno Haible  <bruno@clisp.org>
94464         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
94465         when the macro ignores it.
94466         Based on a patch by Eric Blake <ebb9@byu.net>.
94468 2008-06-17  Bruno Haible  <bruno@clisp.org>
94470         * modules/tls (License): Change to LGPLv2+.
94471         Reported by Eric Blake.
94473 2008-06-17  Eric Blake  <ebb9@byu.net>
94475         Simplify c-stack prerequisites.
94476         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
94477         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
94478         no longer requires <ucontext.h> to exist.  Optimize setrlimit
94479         check.
94480         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
94481         <sys/resource.h>.
94483         Move c-stack test into testsuite.
94484         * modules/c-stack-tests: New file.
94485         * lib/c-stack.c [DEBUG]: Move test program...
94486         * tests/test-c-stack.c: ...into this new file.  Skip rather than
94487         fail test if sigaltstack is lacking.
94488         * tests/test-c-stack.sh: New driver file.
94490 2008-06-16  Eric Blake  <ebb9@byu.net>
94492         Use raise module consistently.
94493         * modules/fatal-signal (Depends-on): Add raise.
94494         * modules/sigprocmask (Depends-on): Likewise.
94495         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
94496         * lib/sigprocmask.c (sigprocmask): Likewise.
94497         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
94498         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
94500         Fix compliance bug in sigpending.
94501         * lib/sigprocmask.c (sigpending): Return pending array via
94502         parameter, not return value.
94504 2008-06-14  Eric Blake  <ebb9@byu.net>
94506         Improve obstack-printf test code.
94507         * tests/test-obstack-printf.c (test_function): Fix comment, and
94508         simplify usage of obstack_* in macros.  Add a test for coverage.
94509         Reported by Bruno Haible.
94511 2008-06-14  Bruno Haible  <bruno@clisp.org>
94513         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
94514         array size as a constant, not as a const variable.
94515         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
94516         AC_USE_SYSTEM_EXTENSIONS.
94517         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
94518         Test whether the obstack_printf function actually exists.
94519         * modules/obstack-printf (Depends-on): Add extensions.
94520         (Include): Remove obstack.h.
94521         * modules/obstack-printf-posix (Depends-on): Add extensions.
94522         (Include): Remove obstack.h.
94524 2008-06-13  Eric Blake  <ebb9@byu.net>
94526         Add obstack-printf and obstack-printf-posix modules.
94527         * modules/obstack-printf: New file.
94528         * modules/obstack-printf-posix: Likewise.
94529         * MODULES.html.sh (Misc): Mention them.
94530         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
94531         Likewise.
94532         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
94533         Likewise.
94534         * modules/stdio (Makefile.am): Accomodate new modules.
94535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
94536         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
94537         Declare.
94538         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
94539         functions.
94540         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
94541         (gl_REPLACE_OBSTACK_PRINTF): New macros
94542         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
94543         * tests/test-obstack-printf.c: New file.
94544         * modules/obstack-printf-tests: Likewise.
94545         * modules/obstack-printf-posix-tests: Likewise.
94547 2008-06-11  Bruno Haible  <bruno@clisp.org>
94549         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
94550         * lib/open.c: Include errno.h.
94551         (open): Fail when attempting to write to a file that has a trailing
94552         slash.
94553         * tests/test-open.c (main): Test against trailing slash bug.
94554         * doc/posix-functions/open.texi: Mention the trailing slash bug.
94556 2008-06-10  Bruno Haible  <bruno@clisp.org>
94558         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
94559         for $? to work inside the trap command, with various /bin/sh-s.
94560         * tests/test-vc-list-files-cvs.sh: Likewise.
94562 2008-06-10  Bruno Haible  <bruno@clisp.org>
94564         * lib/acl-internal.h: Don't include gettext.h here.
94565         * lib/set-mode-acl.c: Include gettext.h here.
94566         * lib/copy-acl.c: Likewise.
94568 2008-06-10  Bruno Haible  <bruno@clisp.org>
94570         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
94571         * lib/wait-process.c (wait_subprocess): Likewise.
94572         * lib/execute.h (execute): Add termsigp argument.
94573         * lib/execute.c (execute): Likewise.
94574         * lib/csharpcomp.c (compile_csharp_using_pnet,
94575         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
94576         * lib/csharpexec.c (execute_csharp_using_pnet,
94577         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
94578         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
94579         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
94580         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
94581         is_jikes_present): Update.
94582         * lib/javaexec.c (execute_java_class): Update.
94583         * lib/javaversion.c (execute_and_read_line): Update.
94584         * NEWS: Document the changes.
94585         Reported by Eric Blake.
94587 2008-06-10  Eric Blake  <ebb9@byu.net>
94589         Add missing include.
94590         * tests/test-strstr.c (includes): Add <signal.h>.
94591         * tests/test-strcasestr.c (includes): Likewise.
94592         * tests/test-memmem.c (includes): Likewise.
94594 2008-06-10  Bruno Haible  <bruno@clisp.org>
94596         * lib/wait-process.c (wait_subprocess): Add an assertion.
94598 2008-06-10  Bruno Haible  <bruno@clisp.org>
94600         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
94602 2008-06-10  Bruno Haible  <bruno@clisp.org>
94604         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
94605         using alarm().
94606         * tests/test-strcasestr.c (main): Likewise.
94607         * tests/test-strstr.c (main): Likewise.
94609 2008-06-09  Bruno Haible  <bruno@clisp.org>
94611         Work around the Solaris 10 ACE ACLs ABI change.
94612         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
94613         declare if ACL_NO_TRIVIAL is present.
94614         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
94615         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
94616         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
94617         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
94618         define if ACL_NO_TRIVIAL is present.
94619         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
94620         and use the current ABI.
94621         (file_has_acl): Use same #if condition as elsewhere.
94622         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
94623         in use, and use the current ABI.
94624         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
94625         Reported by Jim Meyering.
94627 2008-06-09  Eric Blake  <ebb9@byu.net>
94629         Work around environments that (stupidly) ignore SIGALRM.
94630         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
94631         before using alarm().
94632         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94633         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94634         Reported by Ian Beckwith <ianb@erislabs.net>.
94636         Produce autobuild blurb earlier in log.
94637         * modules/autobuild (configure.ac-early): Move AB_INIT here.
94639 2008-06-09  Jim Meyering  <meyering@redhat.com>
94640         and Ondřej Vašík  <ovasik@redhat.com>
94642         utimens.c: correct kernel bug work-around
94643         Ondřej Vašík found that the invalid return value of 280 indicates
94644         failure, not success, and the kernel bug we're trying to work
94645         around affects not just the utimensat call, but also the fallback
94646         futimens call.
94647         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
94648         not success.
94649         [HAVE_FUTIMENS]: Use the same work-around, here.
94651 2008-06-09  Jim Meyering  <meyering@redhat.com>
94653         add more guards around definition of ACE_-related code
94654         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
94655         ALLOW and ACE_OWNER are also defined.
94657 2008-06-08  Bruno Haible  <bruno@clisp.org>
94659         * lib/acl-internal.h: Add me as co-author.
94660         * lib/file-has-acl.c: Likewise.
94661         * lib/set-mode-acl.c: Likewise.
94662         * lib/copy-acl.c: Likewise.
94664 2008-06-08  Bruno Haible  <bruno@clisp.org>
94666         Add support for AIX ACLs.
94667         * lib/acl-internal.h (acl_nontrivial): New declaration.
94668         * lib/file-has-acl.c (acl_nontrivial): New function.
94669         (file_has_acl): Add implementation using AIX 4 ACL API.
94670         * lib/set-mode-acl.c (qset_acl): Likewise.
94671         * lib/copy-acl.c (qcopy_acl): Likewise.
94673 2008-06-08  Bruno Haible  <bruno@clisp.org>
94675         Add support for HP-UX ACLs.
94676         * lib/acl-internal.h (acl_nontrivial): New declaration.
94677         * lib/file-has-acl.c (acl_nontrivial): New function.
94678         (file_has_acl): Add implementation using HP-UX 11 ACL API.
94679         * lib/set-mode-acl.c (qset_acl): Likewise.
94680         * lib/copy-acl.c (qcopy_acl): Likewise.
94682 2008-06-08  Bruno Haible  <bruno@clisp.org>
94684         Add support for Cygwin ACLs.
94685         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
94686         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
94687         the chmod_or_fchmod call.
94688         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
94690 2008-06-08  Bruno Haible  <bruno@clisp.org>
94692         Fix bug with setuid modes in Solaris 10+ code.
94693         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
94694         succeeded, when the mode contains some special bits.
94696 2008-06-08  Bruno Haible  <bruno@clisp.org>
94698         Add support for Solaris 7..10 ACLs.
94699         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
94700         declarations.
94701         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
94702         functions.
94703         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
94704         * lib/set-mode-acl.c (qset_acl): Likewise.
94705         * lib/copy-acl.c (qcopy_acl): Likewise.
94707 2008-06-08  Bruno Haible  <bruno@clisp.org>
94709         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
94710         declaration.
94711         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
94712         (acl_access_nontrivial): Remove MacOS X case.
94713         (file_has_acl): Use acl_extended_nontrivial.
94714         * lib/copy-acl.c (qcopy_acl): Likewise.
94716 2008-06-08  Bruno Haible  <bruno@clisp.org>
94718         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
94720 2008-06-08  Jim Meyering  <meyering@redhat.com>
94722         * modules/acl (Maintainer): Add Bruno Haible.
94724 2008-06-07  Bruno Haible  <bruno@clisp.org>
94726         Improve support for Tru64 ACLs.
94727         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
94728         ACL on OSF/1.
94730 2008-06-07  Bruno Haible  <bruno@clisp.org>
94732         Add support for MacOS X ACLs.
94733         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
94734         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
94735         * lib/set-mode-acl.c (qset_acl): Likewise.
94736         * lib/copy-acl.c (qcopy_acl): Likewise.
94738 2008-06-07  Bruno Haible  <bruno@clisp.org>
94740         Fix memory leak introduced on 2008-05-22.
94741         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
94742         use.
94744 2008-06-07  Bruno Haible  <bruno@clisp.org>
94746         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
94747         to construct an empty ACL.
94749 2008-06-07  Bruno Haible  <bruno@clisp.org>
94751         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
94752         precisely.
94753         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
94755 2008-06-07  Bruno Haible  <bruno@clisp.org>
94757         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
94758         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
94760 2008-06-07  Bruno Haible  <bruno@clisp.org>
94762         * doc/posix-functions/_setjmp.texi: Explain the use of this function
94763         regardless of POSIX.
94764         * doc/posix-functions/_longjmp.texi: Likewise.
94765         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
94766         SystemV platform in this case.
94768 2008-06-06  Eric Blake  <ebb9@byu.net>
94770         Document abort() bugs.
94771         * doc/posix-functions/abort.texi (abort): Mention anomalies.
94773         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
94774         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
94775         sigsetjmp.
94776         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
94777         siglongjmp, but only as a macro.
94778         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
94779         is obsolete.
94780         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
94782         Tweak documentation to cover cygwin argz bugs.
94783         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
94784         argz bug fix; no code change needed since no cygwin releases
94785         occurred between the last fix and the bug being tested.
94786         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
94787         module and recently fixed cygwin bugs.
94788         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
94789         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
94790         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
94791         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
94792         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
94793         Likewise.
94794         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
94795         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
94796         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
94797         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
94798         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
94799         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
94800         Likewise.
94802         Avoid gcc warning on cygwin.
94803         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
94804         !ACL_NO_TRIVIAL]: Avoid unused variable.
94806 2008-06-05  Eric Blake  <ebb9@byu.net>
94808         Be tolerant of UNKNOWN version in gnulib-tool test dir.
94809         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
94810         git-version-gen fails to come up with a version.
94811         Reported by Simon Josefsson.
94813 2008-06-05  Jim Meyering  <meyering@redhat.com>
94814             Paul Eggert  <eggert@cs.ucla.edu>
94816         utimens.c: work around a probable Linux kernel bug
94817         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
94818         appears to be a kernel bug that causes utimensat to return 280
94819         instead of 0, indicating success.
94821 2008-06-04  Bruno Haible  <bruno@clisp.org>
94823         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
94824         2008-06-01 commit.
94826 2008-06-04  Bruno Haible  <bruno@clisp.org>
94828         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
94829         * lib/file-has-acl.c (acl_access_nontrivial): New function.
94830         (file_has_acl): Use it. Save errno afterwards.
94831         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
94833 2008-06-03  Bruno Haible  <bruno@clisp.org>
94835         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
94836         draft code. Simplify #ifs.
94837         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
94838         Put Solaris code after POSIX-draft code. Fix comments regarding
94839         Solaris 10, HP-UX. Mention Cygwin.
94840         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
94842 2008-06-03  Eric Blake  <ebb9@byu.net>
94844         Provide fallback for older kernels.
94845         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
94846         Provide runtime fallback if kernel lacks support.
94847         Reported by Mike Frysinger.
94849 2008-06-02  Bruno Haible  <bruno@clisp.org>
94851         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
94852         it exists.
94854 2008-06-02  Bruno Haible  <bruno@clisp.org>
94856         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
94857         * lib/copy-acl.c (qcopy_acl): Update comment.
94859 2008-06-02  Bruno Haible  <bruno@clisp.org>
94861         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
94862         like ACL APIs.
94864 2008-06-02  Bruno Haible  <bruno@clisp.org>
94866         * tests/test-file-has-acl.sh: Use different code for Cygwin.
94867         * tests/test-set-mode-acl.sh: Likewise.
94868         * tests/test-copy-acl.sh: Likewise.
94869         * tests/test-copy-file.sh: Likewise.
94871 2008-06-02  Bruno Haible  <bruno@clisp.org>
94873         * tests/test-file-has-acl.sh: Remove unused code.
94875 2008-06-01  Bruno Haible  <bruno@clisp.org>
94877         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
94878         (copy_acl): Just a wrapper around qcopy_acl that emits the error
94879         messages.
94880         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
94882 2008-06-01  Bruno Haible  <bruno@clisp.org>
94884         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
94885         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
94886         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
94887         APIs.
94888         * modules/acl-tests (configure.ac): Remove tests now contained in
94889         m4/acl.m4.
94891 2008-06-02  Jim Meyering  <meyering@redhat.com>
94893         announce-gen: use a better key-server host name
94894         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
94895         it may be more consistently reliable.  Suggested by Werner Koch
94896         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
94898 2008-06-01  Bruno Haible  <bruno@clisp.org>
94900         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
94901         Reported by Voroskoi Andras <voroskoi@gmail.com>.
94903 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
94905         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
94907 2008-06-01  Bruno Haible  <bruno@clisp.org>
94909         New ACL tests.
94910         * tests/test-file-has-acl.sh: New file.
94911         * tests/test-file-has-acl.c: New file.
94912         * tests/test-set-mode-acl.sh: New file.
94913         * tests/test-set-mode-acl.c: New file.
94914         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
94915         * tests/test-copy-acl.c: New file.
94916         * modules/acl-tests: New file, based on modules/copy-file-tests.
94917         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
94918         (Depends-on): Add acl-tests.
94919         (configure.ac): Remove checks.
94920         (Makefile.am): Don't create test-sameacls program here any more.
94922 2008-06-01  Bruno Haible  <bruno@clisp.org>
94924         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
94925         * tests/test-sameacls.c: Include progname.h.
94926         (main): Invoke set_program_name. Portability fixes for MacOS X,
94927         Solaris, HP-UX.
94929 2008-06-01  Bruno Haible  <bruno@clisp.org>
94931         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
94932         function.
94933         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
94935 2008-06-01  Bruno Haible  <bruno@clisp.org>
94937         * modules/rpmatch (Depends-on): Add strdup.
94939 2008-06-01  Bruno Haible  <bruno@clisp.org>
94941         * lib/pipe.c: Include unistd-safer.h.
94942         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
94943         * modules/pipe (Depends-on): Add unistd-safer.
94945 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94947         * modules/autobuild (configure.ac): Call AB_INIT.
94949 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94951         * tests/test-getaddrinfo.c: Don't print debug messages by default.
94952         Suggested by Bruno Haible <bruno@clisp.org>.
94954 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94956         * tests/test-base64.c: Cast size_t to unsigned long when invoking
94957         printf.  Use %lu instead of %d.  Reported by Bruno Haible
94958         <bruno@clisp.org>.
94960 2008-05-29  Eric Blake  <ebb9@byu.net>
94962         Prefer new POSIX 200x interfaces over futimesat.
94963         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
94964         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
94965         when available.
94966         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
94968 2008-05-28  Bruno Haible  <bruno@clisp.org>
94970         * modules/stpcpy (License): Change to LGPLv2+.
94971         Requested by David Lutterkort <dlutter@redhat.com>.
94973 2008-05-27  Bruno Haible  <bruno@clisp.org>
94975         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
94976         current mingw.
94977         Reported by Jose E. Marchesi <jemarch@gnu.org>.
94979 2008-05-27  Bruno Haible  <bruno@clisp.org>
94981         * modules/iconv_open (Link): New section, from module 'iconv'.
94982         * modules/striconv (Link): Likewise.
94983         * modules/striconveh (Link): Likewise.
94984         * modules/xstriconv (Link): Likewise.
94985         * modules/unicodeio (Link): Likewise.
94986         * modules/propername (Link): Likewise.
94987         Reported by Jim Meyering.
94989 2008-05-26  Jim Meyering  <meyering@redhat.com>
94991         sha256: do not artificially restrict buffer length to be < 2^32
94992         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
94993         uint32_t to size_t.
94994         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
94995         to match.
94997         avoid unaligned access errors, e.g., on sparc
94998         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
94999         direct access through a possibly-unaligned uint64* pointer.
95000         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
95001         direct access through a possibly-unaligned uint32* pointer.
95002         Prompted by this patch from Tom "spot" Callaway:
95003         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
95005         sha512.c: fix typo in comment
95006         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
95008 2008-05-25  Bruno Haible  <bruno@clisp.org>
95010         * lib/set-mode-acl.c: Renamed from lib/acl.c.
95011         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
95012         (Makefile.am): Update lib_SOURCES.
95014 2008-05-25  Bruno Haible  <bruno@clisp.org>
95016         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
95018 2008-05-25  Jim Meyering  <meyering@redhat.com>
95020         useless-if-before-free: freed expr may have white-space differences
95021         * build-aux/useless-if-before-free: Recognize cases in which the
95022         freed expression differs from the tested one in embedded white
95023         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
95024         $1 was used, so we can't make any regexp shy.  Improved tests now
95025         detect this.
95027         useless-if-before-free: accept white space in the expression.
95028         * build-aux/useless-if-before-free: For now, any white space
95029         in the expression must be identical in the free argument.
95031         useless-if-before-free: efficiency tweak
95032         * build-aux/useless-if-before-free: Make the expression-matching
95033         regexp "shy".
95034         Make the *outer* regexp shy, not the expr-matching one.
95036         update code-in-comment to accept cast of free arg
95037         * build-aux/useless-if-before-free: Update regexp.
95039 2008-05-25  Bruno Haible  <bruno@clisp.org>
95041         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
95042         * modules/copy-file-tests (Files, Makefile.am): Update.
95043         * tests/test-copy-file.c (func_test_copy): Update.
95045 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
95047         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
95049 2008-05-23  Bruno Haible  <bruno@clisp.org>
95051         Improve support for ACLs on OSF/1.
95052         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
95053         Remove fallback for unknown flavors of ACLs.
95055 2008-05-22  Bruno Haible  <bruno@clisp.org>
95057         Add support for ACLs on OSF/1.
95058         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
95059         replacements.
95060         (acl_free_text): New macro fallback.
95061         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
95062         acl_free.
95063         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
95064         acl_free_text function. Require AC_C_INLINE.
95066 2008-05-22  Bruno Haible  <bruno@clisp.org>
95068         Make copy_acl work on MacOS X 10.5.
95069         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
95070         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
95071         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
95072         If MODE_INSIDE_ACL, don't assume that every system has the same text
95073         representation for ACLs as FreeBSD.
95074         * lib/copy-acl.c (copy_acl): Add support for platforms with
95075         !MODE_INSIDE_ACL.
95076         * lib/file-has-acl.c (file_has_acl): Likewise.
95077         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
95078         FreeBSD, MacOS X, or IRIX, respectively.
95080 2008-05-22  Bruno Haible  <bruno@clisp.org>
95082         * lib/acl.h: Don't include <sys/acl.h>.
95083         (GETACLCNT): Move fallback to lib/acl-internal.h.
95084         * lib/acl-internal.h: Include <sys/acl.h> here.
95085         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
95087 2008-05-22  Bruno Haible  <bruno@clisp.org>
95089         Split off copy_acl function to separate file.
95090         * lib/copy-acl.c: New file, extracted from lib/acl.c.
95091         * lib/acl.c (copy_acl): Moved function to separate file.
95092         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
95093         * modules/acl (Files): Add lib/copy-acl.c.
95094         (Makefiles.am): Augment lib_SOURCES.
95096 2008-05-22  Bruno Haible  <bruno@clisp.org>
95098         * modules/copy-file-tests: New file.
95099         * tests/test-copy-file.sh: New file.
95100         * tests/test-copy-file.c: New file.
95101         * tests/test-copy-file-sameacls.c: New file.
95103 2008-05-22  Eric Blake  <ebb9@byu.net>
95105         Avoid gcc warning.
95106         * tests/test-memcmp.c (main): Pass NULL indirectly.
95108 2008-05-21  Bruno Haible  <bruno@clisp.org>
95110         Add reference doc about ACLs.
95111         * doc/acl-resources.txt: New file.
95112         * doc/acl-cygwin.txt: New file.
95114 2008-05-21  Bruno Haible  <bruno@clisp.org>
95116         Avoid one more warning from gcc.
95117         * lib/vasnprintf.c (IF_LINT): Update comments.
95118         (VASNPRINTF): Use it also for the 'prefix' array initializer.
95120 2008-05-21  Jim Meyering  <meyering@redhat.com>
95122         avoid a warning from gcc
95123         * lib/vasnprintf.c (IF_LINT): Define.
95124         (scale10_round_decimal_long_double):
95125         Use it to avoid a "may be used uninitialized" warning.
95126         (scale10_round_decimal_double): Likewise.
95128 2008-05-21  Simon Josefsson  <simon@josefsson.org>
95130         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
95131         declared.
95133 2008-05-20  Bruno Haible  <bruno@clisp.org>
95135         * tests/test-memcmp.c (main): Test also the sign of the result. Test
95136         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
95138 2008-05-20  Simon Josefsson  <simon@josefsson.org>
95140         * modules/memcmp-tests: New file.
95141         * tests/test-memcmp.c: New file.
95143 2008-05-19  Bruno Haible  <bruno@clisp.org>
95145         * modules/propername (Notice, configure.ac): Put quoted "..." into
95146         --keyword option.
95147         * lib/propername.h: Update comments accordingly.
95148         Reported by Eric Blake.
95150 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
95152         * modules/getpass-gnu (Depends-on): Add fseeko.
95154 2008-05-19  Simon Josefsson  <simon@josefsson.org>
95156         * modules/base64-tests: New file.
95158 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
95160         * lib/base64.c (base64_decode_ctx): If a decode context structure
95161         was passed in use it to ignore newlines.  If a context structure
95162         was _not_ passed in, continue to treat newlines as garbage (this
95163         is the historical behavior).  Formerly base64_decode.
95164         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
95165         takes a decode context structure.
95166         * lib/base64.h (base64_decode): Macro for four-argument calls.
95167         (base64_decode_alloc): Likewise.
95168         * lib/base64.c (base64_decode_ctx): If a decode context structure
95169         was passed in use it to ignore newlines.  If a context structure
95170         was _not_ passed in, continue to treat newlines as garbage (this
95171         is the historical behavior).  Formerly base64_decode.
95172         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
95173         takes a decode context structure.
95174         * lib/base64.h (base64_decode): Macro for four-argument calls.
95175         (base64_decode_alloc): Likewise.
95177 2008-05-19  Jim Meyering  <meyering@redhat.com>
95179         avoid a warning from gcc
95180         * lib/trim.c (IF_LINT): Define.
95181         (trim2): Use it to avoid a "may be used uninitialized" warning.
95183         Fix doc typo.
95184         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
95186 2008-05-19  Bruno Haible  <bruno@clisp.org>
95188         * doc/glibc-functions/getpass.texi: Document limits of other
95189         implementations.
95191 2008-05-19  Simon Josefsson  <simon@josefsson.org>
95192             Bruno Haible <bruno@clisp.org>
95194         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
95196 2008-05-18  Bruno Haible  <bruno@clisp.org>
95198         * modules/propername: New file, from GNU gettext.
95199         * lib/propername.h: New file, from GNU gettext.
95200         * lib/propername.c: New file, from GNU gettext.
95201         * MODULES.html.sh (Internationalization functions): Add propername.
95203 2008-05-16  Jim Meyering  <meyering@redhat.com>
95204             Bruno Haible  <bruno@clisp.org>
95206         Avoid some warnings from "gcc -Wshadow".
95207         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
95209 2008-05-15  Eric Blake  <ebb9@byu.net>
95211         Extend previous patch to cygwin 1.7.0.
95212         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
95213         fast implementation in cygwin >= 1.7.0.
95214         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
95215         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
95217 2008-05-15  Bruno Haible  <bruno@clisp.org>
95219         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
95220         implementation in glibc >= 2.9.
95221         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
95222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
95224 2008-05-15  Bruno Haible  <bruno@clisp.org>
95226         * MODULES.html.sh (Internationalization functions): Remove linebreak.
95227         (Unicode string functions): Add unilbrk/*.
95228         Reported by Karl Berry.
95230 2008-05-15  Eric Blake  <ebb9@byu.net>
95232         Fix violation of <stdbool.h> replacement in regex.
95233         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
95234         * lib/regexec.c (re_search_internal): Likewise.
95235         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
95237 2008-05-15  Jim Meyering  <meyering@redhat.com>
95239         avoid distracting test output when git or cvs is not found
95240         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
95241         * tests/test-vc-list-files-git.sh: Likewise.
95243 2008-05-15  Eric Blake  <ebb9@byu.net>
95245         Glibc finally accepted the memmem speedup code, bugzilla #5514.
95246         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
95247         glibc version.
95248         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
95249         * doc/posix-functions/strstr.texi (strstr): Likewise.
95250         * lib/str-two-way.h (MAX): Sychronize with glibc.
95252 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
95254         * lib/regcomp.c (optimize_utf8): Add a note on why we test
95255         opr.ctx_type.
95256         (calc_first): Initialize constraint field.
95257         (duplicate_node_closure): Use it instead of special casing ANCHORS.
95258         Fix grammar.
95259         (duplicate_node): Merge constraint field for all node types.
95260         (calc_eclosure_iter): Look at constraint field for all node types.
95261         * lib/regex_internal.c (create_cd_newstate): Don't look at
95262         opr.ctx_type.
95264 2008-05-14  Bruno Haible  <bruno@clisp.org>
95266         Help GCC to do better code generation.
95267         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
95268         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
95269         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
95270         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
95271         Declare with attribute 'malloc' if supported.
95273 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
95275         use "echo STR|wc -c" rather than unportable "expr length STR"
95276         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
95277         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
95279 2008-05-14  Jim Meyering  <meyering@redhat.com>
95281         use dd ibs=$n count=1 ... rather than less-portable head -c$n
95282         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
95283         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
95284         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
95285         via Collin Lasse.
95287 2008-05-14  Eric Blake  <ebb9@byu.net>
95289         Avoid quadratic growth in gl_LIBSOURCES.
95290         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
95291         Suggested by Bruno Haible.
95293         Test xmemdup0.
95294         * modules/xmemdup0-tests: New file.
95295         * tests/test-xmemdup0.c: Likewise.
95297 2008-05-13  Eric Blake  <ebb9@byu.net>
95299         Split xmemdup0 into its own module.
95300         * modules/xmemdup0: New file.
95301         * lib/xmemdup0.h: Likewise.
95302         * lib/xmemdup0.c: Likewise.
95303         * MODULES.html.sh (Memory management functions): Add xmemdup0.
95304         * lib/xalloc.h (xmemdup0): Remove.
95305         * lib/xmalloc.c (xmemdup0): Likewise.
95307 2008-05-13  Eric Blake  <ebb9@byu.net>
95308             Bruno Haible  <bruno@clisp.org>
95310         Reduce number of forks required during autoconf.
95311         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
95312         and gl_LIBSOURCES_DIR.
95313         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
95314         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
95315         m4_syscmd per file.
95316         <m4_foreach_w>: Move...
95317         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
95319 2008-05-13  Eric Blake  <ebb9@byu.net>
95321         * gnulib-tool: Fix various comment typos.
95323 2008-05-12  Bruno Haible  <bruno@clisp.org>
95325         Tailor the linebreaking algorithm.
95326         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
95328 2008-05-12  Bruno Haible  <bruno@clisp.org>
95330         Update to Unicode 5.0.0.
95331         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
95332         LBP_JV, LBP_JT. Redistribute values.
95333         (unilbrk_table): Change size.
95334         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
95335         Unicode TR#14 rev. 22.
95336         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
95337         LBP_JV, LBP_JT. Redistribute values.
95338         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
95339         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
95340         Update.
95341         * lib/unilbrk/lbrkprop1.h: Regenerated.
95342         * lib/unilbrk/lbrkprop2.h: Regenerated.
95343         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
95344         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
95345         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
95346         Likewise.
95347         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
95348         Likewise.
95349         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
95350         result.
95351         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
95352         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
95353         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
95354         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
95355         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
95356         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
95358 2008-05-11  Bruno Haible  <bruno@clisp.org>
95360         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
95362 2008-05-11  Bruno Haible  <bruno@clisp.org>
95364         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
95365         * modules/unilbrk/gen-lbrk: New file.
95367 2008-05-11  Bruno Haible  <bruno@clisp.org>
95369         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
95370         * m4/sha512.m4 (gl_SHA512): Likewise.
95372 2008-05-11  Jim Meyering  <meyering@redhat.com>
95374         New modules: crypto/sha256, crypto/sha512 (from coreutils)
95375         * modules/crypto/sha256: New file.
95376         * modules/crypto/sha512: Likewise.
95377         * lib/sha256.c: Likewise.
95378         * lib/sha256.h: Likewise.
95379         * lib/sha512.c: Likewise.
95380         * lib/sha512.h: Likewise.
95381         * lib/u64.h: Likewise.
95382         * m4/sha256.m4: Likewise.
95383         * m4/sha512.m4: Likewise.
95384         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
95386 2008-05-10  Bruno Haible  <bruno@clisp.org>
95388         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
95389         (Input/Output <stdio.h>): Add xprintf.
95390         (Signal handling <signal.h>): Add strsignal.
95391         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
95392         (Core language properties): Add func.
95393         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
95394         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
95395         strings.
95396         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
95397         (Input/output): New section.
95398         (File system functions): Add openat-die, stat-macros.
95399         (Networking functions): Add sockets.
95400         (Unicode string functions): Add unictype/*.
95401         (Support for building libraries and executables): Add gperf.
95402         (Support for building documentation): Add agpl-3.0.
95403         (Misc): Add nocrash.
95405 2008-05-10  Bruno Haible  <bruno@clisp.org>
95407         * modules/unictype/gen-ctype: New file.
95409 2008-05-10  Jim Meyering  <meyering@redhat.com>
95411         Make chdir-safer.c more efficient on a system with no symlinks.
95412         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
95413         also if ELOOP is zero.  Suggested by Bruno Haible.
95415         Make chdir-safer.c slightly safer.
95416         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
95417         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
95419         Avoid compile failure on systems without ELOOP (like mingw).
95420         * lib/chdir-safer.c (ELOOP): Define if not already defined.
95421         Reported by Bruno Haible.
95423 2008-05-10  Bruno Haible  <bruno@clisp.org>
95425         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
95426         (is_utf8_encoding): Use a case-insensitive comparison.
95427         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
95428         streq.
95430 2008-05-10  Bruno Haible  <bruno@clisp.org>
95432         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
95433         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
95434         * lib/unilbrk/ulc-common.h (iconv_string_length,
95435         iconv_string_keeping_offsets): Remove declarations.
95436         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
95437         Don't include <iconv.h>, streq.h, xsize.h.
95438         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
95439         conversion.
95440         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
95441         <iconv.h>, streq.h, xsize.h.
95442         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
95443         conversion.
95444         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
95445         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
95446         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
95447         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
95449 2008-05-10  Bruno Haible  <bruno@clisp.org>
95451         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
95452         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
95454         * modules/unilbrk/u32-width-linebreaks-tests: New file.
95455         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
95457         * modules/unilbrk/u16-width-linebreaks-tests: New file.
95458         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
95460         * modules/unilbrk/u8-width-linebreaks-tests: New file.
95461         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
95463         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
95464         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
95466         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
95467         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
95469         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
95470         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
95472         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
95473         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
95475 2008-05-10  Bruno Haible  <bruno@clisp.org>
95477         Split up 'linebreak' module.
95478         * lib/unilbrk.h: New file, based on lib/linebreak.h.
95479         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
95480         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
95481         modifications.
95482         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
95483         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
95484         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
95485         lib/linebreak.c.
95486         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
95487         lib/linebreak.c.
95488         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
95489         lib/linebreak.c.
95490         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
95491         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
95492         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
95493         lib/linebreak.c.
95494         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
95495         lib/linebreak.c.
95496         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
95497         lib/linebreak.c.
95498         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
95499         lib/linebreak.c.
95500         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
95501         lib/linebreak.c.
95502         * modules/unilbrk/base: New file.
95503         * modules/unilbrk/tables: New file.
95504         * modules/unilbrk/u8-possible-linebreaks: New file.
95505         * modules/unilbrk/u16-possible-linebreaks: New file.
95506         * modules/unilbrk/u32-possible-linebreaks: New file.
95507         * modules/unilbrk/ulc-common: New file.
95508         * modules/unilbrk/ulc-possible-linebreaks: New file.
95509         * modules/unilbrk/u8-width-linebreaks: New file.
95510         * modules/unilbrk/u16-width-linebreaks: New file.
95511         * modules/unilbrk/u32-width-linebreaks: New file.
95512         * modules/unilbrk/ulc-width-linebreaks: New file.
95513         * lib/linebreak.h: Remove file.
95514         * lib/linebreak.c: Remove file.
95515         * m4/linebreak.m4: Remove file.
95516         * modules/linebreak: Remove file.
95517         * NEWS: Mention the changes.
95519 2008-05-09  Eric Blake  <ebb9@byu.net>
95521         Add xmemdup0.
95522         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
95523         implementation.
95524         * lib/xmalloc.c (xmemdup0): New C implementation.
95526 2008-05-08  Bruno Haible  <bruno@clisp.org>
95528         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
95530 2008-05-07  Eric Blake  <ebb9@byu.net>
95532         Support cross-compilation of <wctype.h>.
95533         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
95534         AC_CACHE_CHECK.
95536 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
95538         * build-aux/vc-list-files: Add support for bzr.
95540 2008-05-03  Jim Meyering  <meyering@redhat.com>
95542         avoid failed assertion with tight malloc
95543         * tests/test-getndelim2.c: Correct an off-by-one assertion.
95545 2008-05-03  Simon Josefsson  <simon@josefsson.org>
95547         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
95548         are needed from arpa/inet.h.
95549         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
95550         Reported by Bruno Haible.
95552 2008-05-02  Jim Meyering  <meyering@redhat.com>
95554         avoid compilation error on FreeBSD 6
95555         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
95557 2008-05-01  Jim Meyering  <meyering@redhat.com>
95559         useless-if-before-free: correct --help's exit status description
95560         * build-aux/useless-if-before-free (usage): Like grep, exit 0
95561         for one or more matches, etc.  Reported by Bruno Haible.
95563         vc-list-files: make the stand-alone gnulib test work
95564         * modules/vc-list-files-tests (configure.ac):
95565         Define and AC_SUBST abs_aux_dir.
95566         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
95567         $(abs_top_srcdir) to each script and having each of them
95568         duplicate the work of setting PATH, set PATH here, using
95569         the new variable, abs_aux_dir instead.
95570         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
95571         * tests/test-vc-list-files-git.sh: Likewise.
95572         Reported by Bruno Haible.
95574 2008-05-01  Bruno Haible  <bruno@clisp.org>
95576         * lib/getndelim2.c (getndelim2): Fix newsize computation during
95577         reallocation. Rename 'done' to 'found_delimiter'.
95579 2008-05-01  Jim Meyering  <meyering@redhat.com>
95581         vc-list-files: accommodate /bin/sh like the one from Solaris 10
95582         * build-aux/vc-list-files: Use `...`, not $(...).
95584 2008-04-30  Jim Meyering  <meyering@redhat.com>
95586         add tests for vc-list-files
95587         * modules/vc-list-files-tests: New module.
95588         * tests/test-vc-list-files-cvs.sh: New file.
95589         * tests/test-vc-list-files-git.sh: New file.
95591         avoid a warning from gcc
95592         * lib/getndelim2.c (IF_LINT): Define.
95593         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
95595         vc-list-files: work properly with build-aux/cvsu, too
95596         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
95597         to all cvs-based clauses.
95599         vc-list-files: work properly in the CVS+awk case, too
95600         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
95602         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
95603         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
95604         take more than one file argument, so .  Add quotes, just in case $dir
95605         ever contains a shell meta-character.  Prompted by Soren Hansen in
95606         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
95608 2008-04-29  Eric Blake  <ebb9@byu.net>
95610         Optimize getndelim2 to use block operations when possible.
95611         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
95612         freadseek, and memchr2.
95613         * lib/getndelim2.c (getndelim2): Use them for block reads.
95615 2008-04-29  Bruno Haible  <bruno@clisp.org>
95617         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
95618         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
95619         * modules/inet_ntop (Depends-on): Add extensions.
95620         * modules/inet_pton (Depends-on): Likewise.
95621         Reported by Simon Josefsson.
95623 2008-04-29  Jim Meyering  <meyering@redhat.com>
95625         When the is more than one match in a block, match all of them.
95626         * build-aux/useless-if-before-free: Iterate through each block
95627         until there are no more matches.
95629         Fix broken useless-if-before-free script.
95630         * build-aux/useless-if-before-free: Fix typo: missing "?" after
95631         the expression to match cast of argument to free-like function.
95633 2008-04-29  Eric Blake  <ebb9@byu.net>
95635         Use new header.
95636         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
95638 2008-04-29  Jim Meyering  <meyering@redhat.com>
95640         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
95641         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
95642         by gnulib to exist and to declare e.g., inet_ntop.
95643         Don't include "inet_ntop.h", now removed.
95645         * m4/arpa_inet_h.m4: Remove trailing blanks.
95647 2008-04-29  Eric Blake  <ebb9@byu.net>
95649         Silence valgrind on safe reads beyond potential array bounds.
95650         * lib/rawmemchr.valgrind: New file.
95651         * lib/strchrnul.valgrind: Likewise.
95652         * modules/rawmemchr (Files): Distribute new file.
95653         * modules/strchrnul (Files): Likewise.
95654         Suggested by Bruno Haible.
95656 2008-04-29  Bruno Haible  <bruno@clisp.org>
95658         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
95659         (inet_ntop, inet_pton): Change portability warning's wording.
95660         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
95661         Invoke gl_CHECK_NEXT_HEADERS.
95662         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
95663         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
95664         set ARPA_INET_H.
95665         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
95666         * modules/arpa_inet (Description): No longer only for systems that
95667         lack it.
95668         (Depends-on): Add include_next.
95669         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
95670         HAVE_ARPA_INET_H.
95672 2008-04-29  Jim Meyering  <meyering@redhat.com>
95674         * modules/mkdir (License): Re-license as LGPLv2+.
95676 2008-04-29  Bruno Haible  <bruno@clisp.org>
95678         * modules/rawmemchr (Maintainer): Set to Eric.
95679         * modules/strchrnul (Maintainer): Likewise.
95681 2008-04-29  Simon Josefsson  <simon@josefsson.org>
95683         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
95684         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
95686         * modules/arpa_inet (arpa/inet.h): Use them.
95688 2008-04-28  Eric Blake  <ebb9@byu.net>
95690         Test getndelim2.
95691         * modules/getndelim2-tests: New file.
95692         * tests/test-getndelim2.c: Likewise.
95693         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
95694         stream.
95695         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
95697         * MODULES.html.sh: Document new module.
95699 2008-04-20  Bruno Haible  <bruno@clisp.org>
95701         * lib/c-stack.c (die): Use raise.
95702         * modules/c-stack (Depends-on): Add raise.
95704 2008-04-28  Bruno Haible  <bruno@clisp.org>
95706         Expect rpmatch to be declared.
95707         * lib/yesno.c (rpmatch): Remove declaration.
95709         Declare rpmatch.
95710         * lib/stdlib.in.h (rpmatch): New declaration.
95711         * lib/rpmatch.c: Include <stdlib.h> first.
95712         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
95713         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
95714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
95715         HAVE_RPMATCH.
95716         * modules/rpmatch (Depends-on): Add stdlib, extensions.
95717         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95718         (Include): Set to <stdlib.h>.
95719         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
95720         HAVE_RPMATCH.
95721         * NEWS: Document the change.
95723 2008-04-28  Bruno Haible  <bruno@clisp.org>
95725         Change rpmatch to use nl_langinfo when appropriate.
95726         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
95727         (N_): New macro.
95728         (localized_pattern): New function/macro.
95729         (try): Remove match, nomatch arguments. Copy the pattern into safe
95730         memory before caching it.
95731         (rpmatch): Use localized_pattern. Add translator comments.
95732         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
95733         Suggested by Eric Blake.
95734         * modules/rpmatch (Depends-on): Add stdbool.
95736 2008-04-28  Eric Blake  <ebb9@byu.net>
95738         Add rawmemchr module, matching glibc.
95739         * modules/string (Makefile.am): New indicator.
95740         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
95741         * lib/string.in.h (rawmemchr): Declare when appropriate.
95742         * modules/rawmemchr: New file.
95743         * m4/rawmemchr.m4: Likewise.
95744         * lib/rawmemchr.c: Likewise.
95745         * modules/rawmemchr-tests: Likewise.
95746         * tests/test-rawmemchr.c: Likewise.
95747         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
95748         module.
95749         * modules/strchrnul (Depends-on): Add rawmemchr.
95750         * lib/strchrnul.c (strchrnul): Optimize a corner case.
95752         Whitespace cleanup.
95753         * tests/test-strchrnul.c: Reindent.
95754         * lib/strchrnul.c: Likewise.
95756         Optimize and test strchrnul.
95757         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
95758         * modules/strchrnul-tests: New file.
95759         * tests/test-strchrnul.c: Likewise.
95761         Remove intprops dependency.
95762         * modules/memchr (Depends-on): Remove intprops.
95763         * modules/memrchr (Depends-on): Likewise.
95764         * modules/memchr2 (Depends-on): Likewise.
95765         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
95766         * lib/memrchr.c (__memrchr): Likewise.
95767         * lib/memrchr2.c (memchr2): Likewise.
95768         Reported by Simon Josefsson.
95770 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95772         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
95773         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95775 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95777         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
95779         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
95781         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
95783         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
95784         declarations.
95785         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
95787         * m4/inet_pton.m4: Don't check for header files.
95789         * m4/inet_ntop.m4: Don't check for header files.
95791 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95793         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
95794         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
95795         trigger for cygwin).
95796         Reported by Bruno Haible  <bruno@clisp.org>.
95798 2008-04-28  Bruno Haible  <bruno@clisp.org>
95800         * doc/posix-functions/strdup.texi: Mention mingw problem.
95802 2008-04-27  Bruno Haible  <bruno@clisp.org>
95804         * modules/stat-time-tests (Depends-on): Add sleep.
95805         * tests/test-stat-time.c (force_unlink): New function.
95806         (cleanup): Use it.
95807         (test_mtime): Remove the ctime related tests.
95808         (test_ctime): New function, containing the ctime related tests.
95809         (main): Call test_ctime, except on native Windows platforms.
95811 2008-04-27  Bruno Haible  <bruno@clisp.org>
95813         * lib/rpmatch.c (rpmatch): Add some comments.
95814         Reported by James Youngman <jay@gnu.org>.
95816 2008-04-27  Bruno Haible  <bruno@clisp.org>
95818         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
95819         quiet NaNs.
95821 2008-04-27  Bruno Haible  <bruno@clisp.org>
95823         Make test-yesno.sh work on mingw.
95824         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
95825         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
95826         (main): Set stdin to binary mode.
95827         * modules/yesno-tests (Depends-on): Add binary-io.
95829 2008-04-27  Bruno Haible  <bruno@clisp.org>
95831         Fix 'isfinite' on x86, x86_64, ia64 platforms.
95832         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
95833         argument that lie outside the IEEE 854 domain.
95834         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
95835         (gl_ISFINITE): Use it.
95836         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
95838 2008-04-27  Bruno Haible  <bruno@clisp.org>
95840         Allow local renaming in config.h.
95841         * lib/memrchr.c (memrchr): Don't undefine outside libc.
95843 2008-04-27  Bruno Haible  <bruno@clisp.org>
95845         * lib/memchr.c (__memchr): Change type of 'i'.
95846         * lib/memchr2.c (memchr2): Likewise.
95848 2008-04-26  Eric Blake  <ebb9@byu.net>
95849         and Bruno Haible  <bruno@clisp.org>
95851         Optimize and test memrchr.
95852         * modules/memrchr (Depends-on): Add intprops.
95853         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
95854         * modules/memrchr-tests: New file.
95855         * tests/test-memrchr.c: New file.
95857 2008-04-26  Bruno Haible  <bruno@clisp.org>
95859         Add tentative support for DragonFly BSD.
95860         * lib/stdio-impl.h: Add macros for DragonFly BSD.
95861         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
95862         fp.
95863         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95864         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
95865         * lib/fpurge.c (fpurge): Likewise.
95866         * lib/freadable.c (freaadable): Likewise.
95867         * lib/freadahead.c (freadahead): Likewise.
95868         * lib/freading.c (freading): Likewise.
95869         * lib/freadptr.c (freadptr): Likewise.
95870         * lib/freadseek.c (freadptrinc): Likewise.
95871         * lib/fseeko.c (fseeko): Likewise.
95872         * lib/fseterr.c (fseterr): Likewise.
95873         * lib/fwritable.c (fwritable): Likewise.
95874         * lib/fwriting.c (fwriting): Likewise.
95876 2008-04-26  Bruno Haible  <bruno@clisp.org>
95878         * lib/stdio-impl.h: New file.
95879         * lib/fbufmode.c: Include stdio-impl.h.
95880         (fbufmode): Use fp_, remove redundant #defines.
95881         * lib/fflush.c: Include stdio-impl.h.
95882         (clear_ungetc_buffer): Remove redundant #defines.
95883         * lib/fpurge.c: Include stdio-impl.h.
95884         (fpurge): Remove redundant #defines.
95885         * lib/freadable.c: Include stdio-impl.h.
95886         (freadable): Remove redundant #defines.
95887         * lib/freadahead.c: Include stdio-impl.h.
95888         (freadahead): Remove redundant #defines.
95889         * lib/freading.c: Include stdio-impl.h.
95890         (freading): Remove redundant #defines.
95891         * lib/freadptr.c: Include stdio-impl.h.
95892         (freadptr): Remove redundant #defines.
95893         * lib/freadseek.c: Include stdio-impl.h.
95894         (freadptrinc): Remove redundant #defines.
95895         * lib/fseeko.c: Include stdio-impl.h.
95896         (rpl_fseeko): Remove redundant #defines.
95897         * lib/fseterr.c: Include stdio-impl.h.
95898         (fseterr): Remove redundant #defines.
95899         * lib/fwritable.c: Include stdio-impl.h.
95900         (fwritable: Remove redundant #defines.
95901         * lib/fwriting.c: Include stdio-impl.h.
95902         (fwriting): Remove redundant #defines.
95903         * modules/fbufmode (Files): Add lib/stdio-impl.h.
95904         * modules/fflush (Files): Likewise.
95905         * modules/fpurge (Files): Likewise.
95906         * modules/freadable (Files): Likewise.
95907         * modules/freadahead (Files): Likewise.
95908         * modules/freading (Files): Likewise.
95909         * modules/freadptr (Files): Likewise.
95910         * modules/freadseek (Files): Likewise.
95911         * modules/fseeko (Files): Likewise.
95912         * modules/fseterr (Files): Likewise.
95913         * modules/fwritable (Files): Likewise.
95914         * modules/fwriting (Files): Likewise.
95916 2008-04-26  Bruno Haible  <bruno@clisp.org>
95918         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95919         restore_seek_optimization, update_fpos_cache): New functions, extracted
95920         from rpl_fflush.
95921         (rpl_fflush): Use them.
95922         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
95923         (gl_REPLACE_FFLUSH): Use it.
95925 2008-04-26  Bruno Haible  <bruno@clisp.org>
95927         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
95928         on Solaris.
95929         * tests/test-xstrtoimax.sh: Likewise.
95930         * tests/test-xstrtoumax.sh: Likewise.
95931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95933 2008-04-26  Bruno Haible  <bruno@clisp.org>
95935         * modules/memchr-tests: New file.
95936         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
95938 2008-04-26  Eric Blake  <ebb9@byu.net>
95939             Bruno Haible  <bruno@clisp.org>
95941         * lib/memchr.c: Include intprops.h.
95942         (__memchr): Optimize parallel detection of matching bytes. Rename local
95943         variables. Add explanatory comments.
95945 2008-04-26  Bruno Haible  <bruno@clisp.org>
95947         Fix module 'memchr', broken since 2000-10-28.
95948         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
95950 2008-04-26  Bruno Haible  <bruno@clisp.org>
95952         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
95953         comments.
95955 2008-04-25  Eric Blake  <ebb9@byu.net>
95957         Use native fstatat on cygwin 1.7.0.
95958         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
95959         first.
95961 2008-04-23  Eric Blake  <ebb9@byu.net>
95963         Improve memchr2 performance.
95964         * lib/memchr2.c (memchr2): Further optimize parallel detection of
95965         NUL bytes.
95966         * modules/memchr2 (Depends-on): Use intprops.h.
95968 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95970         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
95971         an inline function instead of a CPP macro.  Patch by Ben Pfaff
95972         <blp@cs.stanford.edu>.
95974 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95976         * lib/arpa_inet.in.h: New file.
95978         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
95979         (Makefile.am): Sed in substitute header file.
95981         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
95982         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
95984         * modules/inet_ntop (configure.ac): Use
95985         gl_ARPA_INET_MODULE_INDICATOR.
95987         * modules/inet_pton (configure.ac): Use
95988         gl_ARPA_INET_MODULE_INDICATOR.
95990 2008-04-22  Jim Meyering  <meyering@redhat.com>
95992         * modules/verify (License): Re-license as LGPLv2+.
95994 2008-04-22  Simon Josefsson  <simon@josefsson.org>
95996         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
95997         parameter to void* as per POSIX standard (MinGW uses char*).
95999 2008-04-21  Bruno Haible  <bruno@clisp.org>
96001         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
96002         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
96003         Define to replacements if REPLACE_ISWCNTRL is 1.
96004         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
96005         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
96006         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
96007         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
96008         what it fixes.
96009         * doc/posix-functions/iswalpha.texi: Likewise.
96010         * doc/posix-functions/iswblank.texi: Likewise.
96011         * doc/posix-functions/iswcntrl.texi: Likewise.
96012         * doc/posix-functions/iswdigit.texi: Likewise.
96013         * doc/posix-functions/iswgraph.texi: Likewise.
96014         * doc/posix-functions/iswlower.texi: Likewise.
96015         * doc/posix-functions/iswprint.texi: Likewise.
96016         * doc/posix-functions/iswpunct.texi: Likewise.
96017         * doc/posix-functions/iswspace.texi: Likewise.
96018         * doc/posix-functions/iswupper.texi: Likewise.
96019         * doc/posix-functions/iswxdigit.texi: Likewise.
96020         Reported by Alain Guibert.
96022 2008-04-21  Bruno Haible  <bruno@clisp.org>
96024         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
96025         Patch by Alain Guibert.
96027 2008-04-21  Bruno Haible  <bruno@clisp.org>
96029         Fix test failures on mingw.
96030         * tests/test-xstrtol.c (print_no_progname): New function.
96031         (main): Install it in error_print_progname hook.
96032         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
96033         * tests/test-xstrtoimax.sh: Likewise.
96034         * tests/test-xstrtoumax.sh: Likewise.
96036 2008-04-21  Bruno Haible  <bruno@clisp.org>
96038         Fix test failure on mingw.
96039         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
96041 2008-04-21  Bruno Haible  <bruno@clisp.org>
96043         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
96044         Actually assign a value.
96046 2008-04-20  Bruno Haible  <bruno@clisp.org>
96048         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
96049         take 2.
96050         * lib/canonicalize.c (canonicalize_file_name): Elide if the
96051         'canonicalize-lgpl' module is also used.
96052         * lib/canonicalize-lgpl.c: Undo last change.
96053         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
96055 2008-04-20  Bruno Haible  <bruno@clisp.org>
96057         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
96058         config.h. Provide _mkdir based fallback for mingw.
96059         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
96060         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
96061         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
96062         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
96063         rather than defining mkdir in config.h.
96064         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
96065         (gl_SYS_STAT_H_DEFAULTS): New macro.
96066         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
96067         HAVE_IO_H any more.
96068         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
96069         HAVE_DECL_MKDIR and HAVE_IO_H.
96071 2008-04-20  Bruno Haible  <bruno@clisp.org>
96073         * lib/isapipe.c: Port to native Windows platforms.
96075 2008-04-20  Bruno Haible  <bruno@clisp.org>
96077         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
96079 2008-04-21  Eric Blake  <ebb9@byu.net>
96081         Work around preprocessors that don't handle UINTMAX_MAX.
96082         * lib/memchr2.c (memchr2): Avoid embedded #if.
96083         Reported by Alain Guibert, fix suggested by Bruno Haible.
96085 2008-04-21  Simon Josefsson  <simon@josefsson.org>
96087         * doc/posix-functions/strftime.texi (strftime): Explain better
96088         Windows incompatibility.  Suggested by Micah Cowan
96089         <micah@cowan.name>.
96091 2008-04-20  Bruno Haible  <bruno@clisp.org>
96093         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
96094         unistr/u8-mblen.
96096 2008-04-20  Bruno Haible  <bruno@clisp.org>
96098         Fix test failure on platforms with non-GNU iconv.
96099         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
96100         (U_TO_U8): Use it, rather than u16_to_u8.
96101         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
96102         units at the end of the input string.
96103         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
96105 2008-04-20  Bruno Haible  <bruno@clisp.org>
96107         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
96108         when the resulting length is 0.
96109         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
96111 2008-04-20  Bruno Haible  <bruno@clisp.org>
96113         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
96114         works.
96115         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
96117 2008-04-20  Bruno Haible  <bruno@clisp.org>
96119         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
96120         * modules/tsearch-tests (configure.ac): Test for initstate function.
96122 2008-04-20  Bruno Haible  <bruno@clisp.org>
96124         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
96125         for nlink_t if missing.
96126         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
96128 2008-04-19  Bruno Haible  <bruno@clisp.org>
96130         Work around snprintf bug on Linux libc5.
96131         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
96132         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
96133         gl_SNPRINTF_SIZE1.
96134         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96135         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
96136         that test failed.
96137         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
96138         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
96139         * modules/snprintf (Files): Add m4/printf.m4.
96140         * modules/vsnprintf (Files): Likewise.
96141         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
96142         * doc/posix-functions/vsnprintf.texi: Likewise.
96144 2008-04-19  Bruno Haible  <bruno@clisp.org>
96146         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
96147         from 0.0058 to less than 10^-7.
96149 2008-04-19  Bruno Haible  <bruno@clisp.org>
96151         Fix rounding when a precision is given.
96152         * lib/vasnprintf.c (is_borderline): New function.
96153         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
96154         9...9x.
96155         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
96156         %e, %g.
96157         * tests/test-vasprintf-posix.c (test_function): Likewise.
96158         * tests/test-snprintf-posix.h (test_function): Likewise.
96159         * tests/test-sprintf-posix.h (test_function): Likewise.
96160         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
96161         * tests/test-printf-posix.h (test_function): Likewise.
96162         * tests/test-printf-posix.output: Update.
96163         Reported by John Darrington <john@darrington.wattle.id.au> via
96164         Ben Pfaff <blp@cs.stanford.edu>.
96166 2008-04-18  Simon Josefsson  <simon@josefsson.org>
96168         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
96169         Suggested by Bruno Haible <bruno@clisp.org>.
96171 2008-04-17  Bruno Haible  <bruno@clisp.org>
96173         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
96174         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
96175         implementation.
96176         Patch by Bruce Merry <bmerry@gmail.com>.
96178 2008-04-17  Simon Josefsson  <simon@josefsson.org>
96180         * doc/posix-functions/strftime.texi (strftime): Mention that %e
96181         doesn't work under Windows.
96183 2008-04-16  Bruno Haible  <bruno@clisp.org>
96185         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
96186         New macros.
96187         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
96188         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
96189         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
96190         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
96191         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
96192         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
96193         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
96194         macros.
96195         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
96196         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
96197         Northern Sotho, Uighur.
96199 2008-04-16  Bruno Haible  <bruno@clisp.org>
96201         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
96202         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
96203         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
96204         Reported by Daniel Bergström <daniel@octocode.com>.
96206 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
96207             Bruno Haible  <bruno@clisp.org>
96209         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
96210         function.
96211         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
96212         New functions, mostly extracted from gl_locale_name_default.
96213         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
96215 2008-04-16  Eric Blake  <ebb9@byu.net>
96217         Adjust strtod detection to catch glibc 2.7 bug.
96218         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
96219         Reported by John Gatewood Ham.
96221 2008-04-16  Bruno Haible  <bruno@clisp.org>
96223         Add tentative support for Linux libc5.
96224         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
96225         * lib/fpurge.c (fpurge): Likewise.
96226         * lib/freadable.c (freadable): Likewise.
96227         * lib/freadahead.c (freadahead): Likewise.
96228         * lib/freading.c (freading): Likewise.
96229         * lib/freadptr.c (freadptr): Likewise.
96230         * lib/freadseek.c (freadptrinc): Likewise.
96231         * lib/fseeko.c (rpl_fseeko): Likewise.
96232         * lib/fseterr.c (fseterr): Likewise.
96233         * lib/fwritable.c (fwritable): Likewise.
96234         * lib/fwriting.c (fwriting): Likewise.
96235         Reported by Alain Guibert <alguibert+bts@free.fr>.
96237 2008-04-15  Bruno Haible  <bruno@clisp.org>
96239         * modules/mathl (configure.ac): Define module indicator.
96241 2008-04-15  Bruno Haible  <bruno@clisp.org>
96243         * lib/logl.c (logl): Remove unused variables.
96245 2008-04-15  Bruno Haible  <bruno@clisp.org>
96247         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
96248         fails.
96250 2008-04-15  Bruno Haible  <bruno@clisp.org>
96252         * lib/trim.c (trim2): Fix argument of isspace() macro.
96254 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
96256         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
96257         to 0.
96258         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
96260 2008-04-14  Bruno Haible  <bruno@clisp.org>
96262         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
96263         AC_LANG_PROGRAM argument.
96264         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
96265         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
96266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
96267         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
96268         * m4/math_h.m4 (gl_MATH_H): Likewise.
96269         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
96270         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
96271         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
96272         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
96273         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
96274         * m4/regex.m4 (gl_REGEX): Likewise.
96275         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
96276         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
96277         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
96278         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
96279         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
96280         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
96281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
96282         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
96284 2008-04-14  Jim Meyering  <meyering@redhat.com>
96286         test-strtod: fix typos: s/abs/fabs/
96287         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
96289 2008-04-13  Bruno Haible  <bruno@clisp.org>
96291         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
96292         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
96293         module is also used and while not building the reloc-wrapper.
96295 2008-04-13  Bruno Haible  <bruno@clisp.org>
96297         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
96299 2008-04-13  Bruno Haible  <bruno@clisp.org>
96301         Fix AIX compilation failure introduced on 2008-04-02.
96302         * tests/test-frexp.c (exp): Undefine before redefining.
96303         * tests/test-frexpl.c (exp): Likewise.
96305 2008-04-13  Bruno Haible  <bruno@clisp.org>
96307         Work around a HP-UX stdio bug.
96308         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
96309         * tests/test-ftello.c (main): Likewise.
96310         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
96311         * doc/posix-functions/ftello.texi: Likewise.
96313 2008-04-13  Bruno Haible  <bruno@clisp.org>
96315         Make test-signbit pass on HP-UX/hppa.
96316         * tests/test-signbit.c (minus_zerol): New variable.
96317         (test_signbitl): Use it.
96319 2008-04-13  Bruno Haible  <bruno@clisp.org>
96321         Make truncl work on OSF/1 4.0.
96322         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
96323         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
96324         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
96325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
96326         HAVE_DECL_TRUNCL.
96327         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
96328         HAVE_DECL_TRUNCL.
96329         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
96331 2008-04-13  Bruno Haible  <bruno@clisp.org>
96333         * lib/unictype.h: Remove trailing comma from enumeration definitions.
96335 2008-04-13  Bruno Haible  <bruno@clisp.org>
96337         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
96338         expression, so as to avoid HP-UX 11 cc compiler bug.
96340 2008-04-13  Bruno Haible  <bruno@clisp.org>
96342         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
96344 2008-04-13  Bruno Haible  <bruno@clisp.org>
96346         * lib/git-merge-changelog.c: Remove empty declaration outside of
96347         functions.
96349 2008-04-13  Bruno Haible  <bruno@clisp.org>
96351         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
96353 2008-04-13  Bruno Haible  <bruno@clisp.org>
96355         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
96356         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
96357         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
96358         also if it exists but lacks definitions of the SHUT_* macros.
96359         * modules/sys_socket (Description): Update.
96360         Reported by Elbert Pol <e.pol@chello.nl>.
96362 2008-04-13  Bruno Haible  <bruno@clisp.org>
96364         * lib/localcharset.c (OS2): Don't redefine if already defined.
96365         Reported by Elbert Pol <e.pol@chello.nl>.
96367 2008-04-13  Bruno Haible  <bruno@clisp.org>
96369         * lib/binary-io.h [__EMX__]: Include <io.h>.
96370         Reported by Elbert Pol <e.pol@chello.nl>.
96372 2008-04-12  Bruno Haible  <bruno@clisp.org>
96374         * lib/fpucw.h: Enable the definitions also for x86_64.
96375         Needed for NetBSD/x86_64.
96376         Reported by Thomas Klausner <tk@giga.or.at>.
96378 2008-04-12  Bruno Haible  <bruno@clisp.org>
96380         * tests/test-strtod.c: Include isnand.h.
96381         (main): Use isnand instead of isnan.
96382         Reported by Jim Meyering.
96384 2008-04-12  Bruno Haible  <bruno@clisp.org>
96386         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
96387         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
96389 2008-04-12  Jim Meyering  <meyering@redhat.com>
96391         * m4/math_h.m4 (gl_MATH_H): Fix typos.
96393 2008-04-12  Bruno Haible  <bruno@clisp.org>
96395         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
96396         Reported by Elbert Pol <e.pol@chello.nl>.
96398 2008-04-12  Eric Blake  <ebb9@byu.net>
96400         Work around Solaris 10 math.h bug.
96401         * m4/math_h.m4 (gl_MATH_H): Check for bug.
96402         (gl_MATH_H_DEFAULTS): Set up default.
96403         * modules/math (Makefile.am): Replace new indicators.
96404         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
96405         * tests/test-math.c (main): Test this.
96406         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
96407         * doc/posix-headers/math.texi (math.h): Mention bug.
96408         Reported by Nelson H. F. Beebe and Jim Meyering.
96410 2008-04-11  Bruno Haible  <bruno@clisp.org>
96412         Adapt to future versions of Apple GCC.
96413         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
96414         Reported by Peter O'Gorman <peter@pogma.com>.
96416 2008-04-11  Bruno Haible  <bruno@clisp.org>
96418         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
96420 2008-04-11  Bruno Haible  <bruno@clisp.org>
96422         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
96424         * modules/getaddrinfo-tests (Makefile.am): Define
96425         test_getaddrinfo_LDADD.
96427 2008-04-11  Bruno Haible  <bruno@clisp.org>
96429         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
96430         (init): Fix syntax error.
96431         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
96432         is declared.
96434 2008-04-11  Bruno Haible  <bruno@clisp.org>
96436         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
96437         * modules/glob (Depends-on): Add stdbool.
96439 2008-04-11  Bruno Haible  <bruno@clisp.org>
96441         * lib/trim.c: Include <string.h>.
96443 2008-04-11  Eric Blake  <ebb9@byu.net>
96445         Avoid compile failure on OS/2.
96446         * lib/regex_internal.h (internal_function): Disable optimization
96447         on OS/2 (__EMX__), where it caused compiler error.
96448         Reported by Elbert Pol.
96450 2008-04-11  Bruno Haible  <bruno@clisp.org>
96452         Flush the standard error stream before aborting. Needed on mingw.
96453         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
96454         * tests/test-array_list.c (ASSERT): Likewise.
96455         * tests/test-array_oset.c (ASSERT): Likewise.
96456         * tests/test-avltree_list.c (ASSERT): Likewise.
96457         * tests/test-avltree_oset.c (ASSERT): Likewise.
96458         * tests/test-avltreehash_list.c (ASSERT): Likewise.
96459         * tests/test-binary-io.c (ASSERT): Likewise.
96460         * tests/test-byteswap.c (ASSERT): Likewise.
96461         * tests/test-c-ctype.c (ASSERT): Likewise.
96462         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
96463         * tests/test-c-strcasestr.c (ASSERT): Likewise.
96464         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
96465         * tests/test-c-strstr.c (ASSERT): Likewise.
96466         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
96467         * tests/test-canonicalize.c (ASSERT): Likewise.
96468         * tests/test-carray_list.c (ASSERT): Likewise.
96469         * tests/test-ceilf1.c (ASSERT): Likewise.
96470         * tests/test-ceilf2.c (ASSERT): Likewise.
96471         * tests/test-ceill.c (ASSERT): Likewise.
96472         * tests/test-count-one-bits.c (ASSERT): Likewise.
96473         * tests/test-fbufmode.c (ASSERT): Likewise.
96474         * tests/test-fflush2.c (ASSERT): Likewise.
96475         * tests/test-floorf1.c (ASSERT): Likewise.
96476         * tests/test-floorf2.c (ASSERT): Likewise.
96477         * tests/test-floorl.c (ASSERT): Likewise.
96478         * tests/test-fopen.c (ASSERT): Likewise.
96479         * tests/test-fpending.c (ASSERT): Likewise.
96480         * tests/test-fprintf-posix.c (ASSERT): Likewise.
96481         * tests/test-fpurge.c (ASSERT): Likewise.
96482         * tests/test-freadable.c (ASSERT): Likewise.
96483         * tests/test-freadahead.c (ASSERT): Likewise.
96484         * tests/test-freading.c (ASSERT): Likewise.
96485         * tests/test-freadptr.c (ASSERT): Likewise.
96486         * tests/test-freadptr2.c (ASSERT): Likewise.
96487         * tests/test-freadseek.c (ASSERT): Likewise.
96488         * tests/test-freopen.c (ASSERT): Likewise.
96489         * tests/test-frexp.c (ASSERT): Likewise.
96490         * tests/test-frexpl.c (ASSERT): Likewise.
96491         * tests/test-fseek.c (ASSERT): Likewise.
96492         * tests/test-fseeko.c (ASSERT): Likewise.
96493         * tests/test-fstrcmp.c (ASSERT): Likewise.
96494         * tests/test-ftell.c (ASSERT): Likewise.
96495         * tests/test-ftello.c (ASSERT): Likewise.
96496         * tests/test-func.c (ASSERT): Likewise.
96497         * tests/test-fwritable.c (ASSERT): Likewise.
96498         * tests/test-fwriting.c (ASSERT): Likewise.
96499         * tests/test-getdelim.c (ASSERT): Likewise.
96500         * tests/test-getline.c (ASSERT): Likewise.
96501         * tests/test-i-ring.c (ASSERT): Likewise.
96502         * tests/test-iconv-utf.c (ASSERT): Likewise.
96503         * tests/test-iconv.c (ASSERT): Likewise.
96504         * tests/test-isfinite.c (ASSERT): Likewise.
96505         * tests/test-isnand.c (ASSERT): Likewise.
96506         * tests/test-isnanf.c (ASSERT): Likewise.
96507         * tests/test-isnanl.h (ASSERT): Likewise.
96508         * tests/test-ldexpl.c (ASSERT): Likewise.
96509         * tests/test-linked_list.c (ASSERT): Likewise.
96510         * tests/test-linkedhash_list.c (ASSERT): Likewise.
96511         * tests/test-localename.c (ASSERT): Likewise.
96512         * tests/test-lseek.c (ASSERT): Likewise.
96513         * tests/test-mbscasecmp.c (ASSERT): Likewise.
96514         * tests/test-mbscasestr1.c (ASSERT): Likewise.
96515         * tests/test-mbscasestr2.c (ASSERT): Likewise.
96516         * tests/test-mbscasestr3.c (ASSERT): Likewise.
96517         * tests/test-mbscasestr4.c (ASSERT): Likewise.
96518         * tests/test-mbschr.c (ASSERT): Likewise.
96519         * tests/test-mbscspn.c (ASSERT): Likewise.
96520         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
96521         * tests/test-mbspbrk.c (ASSERT): Likewise.
96522         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
96523         * tests/test-mbsrchr.c (ASSERT): Likewise.
96524         * tests/test-mbsspn.c (ASSERT): Likewise.
96525         * tests/test-mbsstr1.c (ASSERT): Likewise.
96526         * tests/test-mbsstr2.c (ASSERT): Likewise.
96527         * tests/test-mbsstr3.c (ASSERT): Likewise.
96528         * tests/test-memchr2.c (ASSERT): Likewise.
96529         * tests/test-memmem.c (ASSERT): Likewise.
96530         * tests/test-open.c (ASSERT): Likewise.
96531         * tests/test-printf-frexp.c (ASSERT): Likewise.
96532         * tests/test-printf-frexpl.c (ASSERT): Likewise.
96533         * tests/test-printf-posix.c (ASSERT): Likewise.
96534         * tests/test-quotearg.c (ASSERT): Likewise.
96535         * tests/test-rbtree_list.c (ASSERT): Likewise.
96536         * tests/test-rbtree_oset.c (ASSERT): Likewise.
96537         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
96538         * tests/test-round1.c (ASSERT): Likewise.
96539         * tests/test-roundf1.c (ASSERT): Likewise.
96540         * tests/test-roundl.c (ASSERT): Likewise.
96541         * tests/test-signbit.c (ASSERT): Likewise.
96542         * tests/test-sleep.c (ASSERT): Likewise.
96543         * tests/test-snprintf-posix.c (ASSERT): Likewise.
96544         * tests/test-snprintf.c (ASSERT): Likewise.
96545         * tests/test-sprintf-posix.c (ASSERT): Likewise.
96546         * tests/test-stat-time.c (ASSERT): Likewise.
96547         * tests/test-strcasestr.c (ASSERT): Likewise.
96548         * tests/test-strerror.c (ASSERT): Likewise.
96549         * tests/test-striconv.c (ASSERT): Likewise.
96550         * tests/test-striconveh.c (ASSERT): Likewise.
96551         * tests/test-striconveha.c (ASSERT): Likewise.
96552         * tests/test-strsignal.c (ASSERT): Likewise.
96553         * tests/test-strstr.c (ASSERT): Likewise.
96554         * tests/test-strtod.c (ASSERT): Likewise.
96555         * tests/test-trunc1.c (ASSERT): Likewise.
96556         * tests/test-trunc2.c (ASSERT): Likewise.
96557         * tests/test-truncf1.c (ASSERT): Likewise.
96558         * tests/test-truncf2.c (ASSERT): Likewise.
96559         * tests/test-truncl.c (ASSERT): Likewise.
96560         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
96561         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
96562         * tests/test-vasnprintf.c (ASSERT): Likewise.
96563         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
96564         * tests/test-vasprintf.c (ASSERT): Likewise.
96565         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
96566         * tests/test-vprintf-posix.c (ASSERT): Likewise.
96567         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
96568         * tests/test-vsnprintf.c (ASSERT): Likewise.
96569         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
96570         * tests/test-wcwidth.c (ASSERT): Likewise.
96571         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
96572         * tests/test-xprintf-posix.c (ASSERT): Likewise.
96573         * tests/test-xvasprintf.c (ASSERT): Likewise.
96574         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
96575         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
96576         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
96577         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
96578         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
96579         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
96580         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
96581         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
96582         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
96583         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
96584         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
96585         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
96586         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
96587         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
96588         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
96589         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
96590         * tests/unictype/test-block_list.c (ASSERT): Likewise.
96591         * tests/unictype/test-block_of.c (ASSERT): Likewise.
96592         * tests/unictype/test-block_test.c (ASSERT): Likewise.
96593         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
96594         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
96595         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
96596         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
96597         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
96598         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
96599         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
96600         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
96601         * tests/unictype/test-combining.c (ASSERT): Likewise.
96602         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
96603         * tests/unictype/test-digit.c (ASSERT): Likewise.
96604         * tests/unictype/test-mirror.c (ASSERT): Likewise.
96605         * tests/unictype/test-numeric.c (ASSERT): Likewise.
96606         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
96607         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
96608         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
96609         * tests/unictype/test-scripts.c (ASSERT): Likewise.
96610         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
96611         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
96612         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
96613         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
96614         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
96615         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
96616         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
96617         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
96618         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
96619         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
96620         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
96621         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
96622         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
96623         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
96624         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
96625         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
96626         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
96627         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
96628         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
96629         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
96630         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
96631         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
96632         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
96633         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
96634         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
96635         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
96636         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
96637         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
96638         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
96639         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
96640         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
96641         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
96642         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
96643         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
96644         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
96645         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
96646         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
96647         Reported by Eric Blake.
96649 2008-04-11  Bruno Haible  <bruno@clisp.org>
96651         * lib/wchar.in.h: Tweak comment.
96653 2008-04-11  Bruno Haible  <bruno@clisp.org>
96655         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
96656         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
96657         gl_COMMON.
96658         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
96660 2008-04-11  Bruno Haible  <bruno@clisp.org>
96662         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
96664 2008-04-11  Simon Josefsson  <simon@josefsson.org>
96666         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
96667         of attempting to use non-existing /dev/*random.  Based on patch
96668         from Adam Strzelecki <ono@java.pl> in
96669         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
96671 2008-04-08  Bruno Haible  <bruno@clisp.org>
96673         Add tentative support for emx+gcc.
96674         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
96675         * lib/fpurge.c (fpurge): Likewise.
96676         * lib/freadable.c (freadable): Likewise.
96677         * lib/freadahead.c (freadahead): Likewise.
96678         * lib/freading.c (freading): Likewise.
96679         * lib/freadptr.c (freadptr): Likewise.
96680         * lib/freadseek.c (freadptrinc): Likewise.
96681         * lib/fseeko.c (rpl_fseeko): Likewise.
96682         * lib/fseterr.c (fseterr): Likewise.
96683         * lib/fwritable.c (fwritable): Likewise.
96684         * lib/fwriting.c (fwriting): Likewise.
96685         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
96687 2008-04-09  Eric Blake  <ebb9@byu.net>
96689         Avoid some autoconf warnings.
96690         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
96691         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
96692         * m4/afs.m4 (gl_AFS): Likewise.
96693         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
96694         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
96695         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
96696         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
96697         (gl_INTEGER_TYPE_SUFFIX): Likewise.
96698         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
96699         (AC_CHECK_DECLS_ONCE): Likewise.
96700         Rename file...
96701         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
96702         gnulib-tool requires autoconf 2.59 or better.
96703         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
96705 2008-04-08  Eric Blake  <ebb9@byu.net>
96707         Use 'git describe --match' if present (added in git 1.5.5).
96708         * build-aux/git-version-gen: Limit result to tags that match 'v*'
96709         if possible.
96711 2008-04-08  Bruno Haible  <bruno@clisp.org>
96713         Add tentative support for OpenServer.
96714         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
96715         _ptr, _cnt.
96716         * lib/fpurge.c (fpurge): Likewise.
96717         * lib/freadable.c (freadable): Likewise.
96718         * lib/freadahead.c (freadahead): Likewise.
96719         * lib/freading.c (freading): Likewise.
96720         * lib/freadptr.c (freadptr): Likewise.
96721         * lib/freadseek.c (freadptrinc): Likewise.
96722         * lib/fseeko.c (rpl_fseeko): Likewise.
96723         * lib/fseterr.c (fseterr): Likewise.
96724         * lib/fwritable.c (fwritable): Likewise.
96725         * lib/fwriting.c (fwriting): Likewise.
96726         Reported by Roger Cornelius <rac@tenzing.org> and
96727         Brian K. White <brian@aljex.com>.
96729 2008-04-06  Jim Meyering  <meyering@redhat.com>
96731         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
96733 2008-04-06  Bruno Haible  <bruno@clisp.org>
96735         Avoid possible error with non-ASCII bytes in UTF-8 locales.
96736         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
96737         * tests/test-printf-posix.sh: Likewise.
96738         * tests/test-vfprintf-posix.sh: Likewise.
96739         * tests/test-vprintf-posix.sh: Likewise.
96740         * tests/test-xprintf-posix.sh: Likewise.
96742 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96744         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
96745         hide error from 'ls', needed on OS/2.
96746         Report by Elbert Pol <elbert.pol@gmail.com>.
96748 2008-04-04  Eric Blake  <ebb9@byu.net>
96750         Make test-fseeko.c failures meaningful.
96751         * tests/test-fseeko.c: Print line number on failure.
96752         * tests/test-fseek.c: Likewise.
96753         Reported by Nelson H. F. Beebe.
96755         Improve strtod bug detection check.
96756         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
96757         required for Solaris 10.
96758         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
96760 2008-04-04  Bruno Haible  <bruno@clisp.org>
96762         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
96763         by m4/setenv.m4.
96765 2008-04-03  Eric Blake  <ebb9@byu.net>
96767         Ensure sane .version contents.
96768         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
96769         version string.
96770         * build-aux/git-version-gen: Improve documentation.
96772         Make GNU make output nicer.
96773         * top/GNUmakefile [!_have-Makefile]: Add dependency on
96774         MAKECMDGOALS to enforce message for all command line targets.  Set
96775         srcdir for use in maint.mk.
96777         Another maintainer tweak.
96778         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
96779         a target that regenerates version.
96781 2008-04-03  Jim Meyering  <meyering@redhat.com>
96783         vc-list-files: don't cause coreutils "make po-check" failure
96784         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
96786 2008-04-03  Eric Blake  <ebb9@byu.net>
96788         Allow VPATH usage of vc-list-files.
96789         * build-aux/vc-list-files (scriptversion): Add timestamp.
96790         (options): Add --help, --version, -C.
96791         (CVS): Support installed cvsu.
96793 2008-04-02  Bruno Haible  <bruno@clisp.org>
96795         Avoid some "statement with no effect" warnings from gcc.
96796         * tests/test-wctype.c (main): Explicitly ignore unused values.
96797         Reported by Jim Meyering.
96799 2008-04-02  Jim Meyering  <meyering@redhat.com>
96801         Avoid some warnings from "gcc -Wshadow".
96802         * tests/test-frexp.c (exp): Define to a different identifier.
96803         * tests/test-frexpl.c (exp): Likewise.
96805 2008-04-03  Jim Meyering  <meyering@redhat.com>
96807         bootstrap: remove dangling *.[ch] symlinks from lib
96808         * build-aux/bootstrap [dangling symlink removal]: Move find's
96809         -depth option to precede all others, to avoid a warning.
96810         Remove *.[ch] files too, and from "$source_base" (usually lib/).
96812 2008-04-02  Bruno Haible  <bruno@clisp.org>
96814         Avoid some warnings from "gcc -Wshadow".
96815         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
96816         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
96817         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
96818         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
96819         Reported by Jim Meyering.
96821 2008-04-01  Bruno Haible  <bruno@clisp.org>
96823         Fix test to work on IRIX 6.5 with cc.
96824         * tests/test-math.c (numeric_equal): New function.
96825         (main): Use it.
96827 2008-04-01  Bruno Haible  <bruno@clisp.org>
96829         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
96831 2008-04-01  Bruno Haible  <bruno@clisp.org>
96833         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
96834         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96835         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
96836         (Depends-on): Remove math.
96838         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
96839         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96840         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
96841         (Depends-on): Remove math.
96843         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
96844         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96845         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
96846         (Depends-on): Remove math.
96847         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
96848         (Depends-on): Remove math.
96850         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
96851         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96852         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
96853         (Depends-on): Remove math.
96854         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
96855         (Depends-on): Remove math.
96857         * tests/test-round1.c: Include nan.h.
96858         (main): Use NaNd instead of NAN.
96859         * modules/round-tests (Files): Add tests/nan.h.
96861         * tests/test-trunc1.c: Include nan.h.
96862         (main): Use NaNd instead of NAN.
96863         * modules/trunc-tests (Files): Add tests/nan.h.
96865         * tests/test-roundf1.c: Include nan.h.
96866         (main): Use NaNf instead of NAN.
96867         * modules/roundf-tests (Files): Add tests/nan.h.
96869         * tests/test-truncf1.c: Include nan.h.
96870         (main): Use NaNf instead of NAN.
96871         * modules/truncf-tests (Files): Add tests/nan.h.
96873         * tests/test-ceilf1.c: Include nan.h.
96874         (main): Use NaNf instead of NAN.
96875         * modules/ceilf-tests (Files): Add tests/nan.h.
96877         * tests/test-floorf1.c: Include nan.h.
96878         (main): Use NaNf instead of NAN.
96879         * modules/floorf-tests (Files): Add tests/nan.h.
96881         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
96882         (main): Use NaNf instead of NAN.
96883         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
96885         * tests/test-isnand.c: Include nan.h instead of <math.h>.
96886         (main): Use NaNd instead of NAN.
96887         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
96889         * tests/test-frexp.c: Include nan.h.
96890         (main): Use NaNd instead of NAN.
96891         * modules/frexp-tests (Files): Add tests/nan.h.
96893         * lib/isnan.c: Don't include <math.h>.
96894         (FUNC): Don't use NAN macro.
96895         * modules/isnand-nolibm (Depends-on): Remove math.
96896         * modules/isnanf-nolibm (Depends-on): Remove math.
96897         * modules/isnanl (Depends-on): Remove math.
96898         * modules/isnanl-nolibm (Depends-on): Remove math.
96900         * tests/nan.h: New file.
96902 2008-04-01  Eric Blake  <ebb9@byu.net>
96904         Fix typos.
96905         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
96906         values to be the right type.
96908         For now, cater to gnulib strtod inaccuracies.
96909         * tests/test-strtod.c (main): Allow 1-ulp error on expected
96910         fractional results.  While not as nice from a QoI perspective, it
96911         is a quicker patch than correctly implementing decimal to binary
96912         rounding.
96914 2008-03-31  Eric Blake  <ebb9@byu.net>
96916         Guarantee a definition of NAN.
96917         * lib/math.in.h (NAN): Define if missing.
96918         * tests/test-math.c (main): Test it.
96919         * doc/posix-headers/math.texi (math.h): Document this.
96920         * lib/isnan.c (rpl_isnand): Use it.
96921         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
96922         * tests/test-floorf1.c (NaN): Likewise.
96923         * tests/test-frexp.c (NaN): Likewise.
96924         * tests/test-isnand.c (NaN): Likewise.
96925         * tests/test-isnanf.c (NaN): Likewise.
96926         * tests/test-round1.c (NaN): Likewise.
96927         * tests/test-roundf1.c (NaN): Likewise.
96928         * tests/test-snprintf-posix.h (NaN): Likewise.
96929         * tests/test-sprintf-posix.h (NaN): Likewise.
96930         * tests/test-trunc1.c (NaN): Likewise.
96931         * tests/test-truncf1.c (NaN): Likewise.
96932         * tests/test-vasnprintf-posix.c (NaN): Likewise.
96933         * tests/test-vasprintf-posix.c (NaN): Likewise.
96934         * modules/isnand-nolibm (Depends-on): Add math.
96935         * modules/isnanf-nolibm (Depends-on): Likewise.
96936         * modules/isnanl (Depends-on): Likewise.
96937         * modules/isnanl-nolibm (Depends-on): Likewise.
96938         * modules/snprintf-posix-tests (Depends-on): Likewise.
96939         * modules/sprintf-posix-tests (Depends-on): Likewise.
96940         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
96941         * modules/vsprintf-posix-tests (Depends-on): Likewise.
96942         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
96943         * modules/vasprintf-posix-tests (Depends-on): Likewise.
96945 2008-03-31  Bruno Haible  <bruno@clisp.org>
96947         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
96948         * doc/posix-functions/strtod.texi: Likewise.
96950 2008-03-31  Bruno Haible  <bruno@clisp.org>
96952         * tests/test-strtod.c (main): Don't use C99 syntax.
96954 2008-03-31  Bruno Haible  <bruno@clisp.org>
96956         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
96957         Reported by Eric Blake.
96959 2008-03-31  Jim Meyering  <meyering@redhat.com>
96961         Don't compare actual signbit return values.
96962         * tests/test-strtod.c (main): Rather, compare only their
96963         zero/non-zero nature.
96965 2008-03-31  Eric Blake  <ebb9@byu.net>
96967         More strtod documentation.
96968         * doc/posix-functions/strtod.texi (strtod): Interpret more test
96969         failures as distinct bugs.
96971 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
96973         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
96974         Problem reported by Erik Benada in
96975         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
96977 2008-03-30  Bruno Haible  <bruno@clisp.org>
96979         * tests/test-strtod.c: Add comments about which assertion fails on which
96980         platform.
96981         * doc/posix-functions/strtod.texi: Add info about many more platforms.
96983 2008-03-30  Eric Blake  <ebb9@byu.net>
96985         Test signbit behavior on zeros.
96986         * tests/test-signbit.c (test_signbitf): Add tests for zero.
96987         (test_signbitd, test_signbitl): Likewise.
96989         More strtod touchups.
96990         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
96991         sign of negative underflow, for now.  Use .5, not .1.
96992         * doc/posix-functions/strtod.texi (strtod): Mention these
96993         limitations.
96994         Reported by Jim Meyering.
96996 2008-03-30  Bruno Haible  <bruno@clisp.org>
96998         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
96999         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
97001 2008-03-30  Bruno Haible  <bruno@clisp.org>
97003         Avoid failure when attempting to return empty iconv results on some
97004         platforms.
97005         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
97006         allocation, don't report ENOMEM when the resulting string is empty.
97008 2008-03-30  Bruno Haible  <bruno@clisp.org>
97010         Fix buffer overrun.
97011         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
97012         Don't consider the width for tmp_length. Check count against tmp_length
97013         before doing the padding. Ensure enough allocation during padding.
97015 2008-03-30  Eric Blake  <ebb9@byu.net>
97017         strtod touchups.
97018         * lib/strtod.c (strtod): Avoid compiler warnings.
97019         Reported by Jim Meyering.
97021 2008-03-30  Bruno Haible  <bruno@clisp.org>
97023         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
97024         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
97025         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
97026         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
97027         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
97028         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
97029         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
97030         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
97032         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
97033         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
97034         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
97035         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
97036         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
97037         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
97038         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
97039         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
97041         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
97042         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
97043         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
97044         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
97045         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
97046         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
97047         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
97048         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
97050         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
97051         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
97053         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
97054         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
97056         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
97057         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
97059         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
97060         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
97061         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
97063         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
97064         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
97065         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
97067         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
97068         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
97069         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
97071         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
97072         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
97073         * modules/vasprintf (Depends-on): Add EOVERFLOW.
97075         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
97076         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
97077         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
97078         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
97079         (Depends-on): Add EOVERFLOW.
97080         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
97081         (Depends-on): Add EOVERFLOW.
97082         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
97083         (Depends-on): Add EOVERFLOW.
97084         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
97085         (Depends-on): Add EOVERFLOW.
97086         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
97087         (Depends-on): Add EOVERFLOW.
97088         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
97089         (Depends-on): Add EOVERFLOW.
97090         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
97091         (Depends-on): Add EOVERFLOW.
97092         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
97093         (Depends-on): Add EOVERFLOW.
97095         * lib/sprintf.c (EOVERFLOW): Remove fallback.
97096         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
97097         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
97099         * lib/snprintf.c (EOVERFLOW): Remove fallback.
97100         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
97101         * modules/snprintf (Depends-on): Add EOVERFLOW.
97103         * lib/poll.c (EOVERFLOW): Remove fallback.
97104         * modules/poll (Depends-on): Add EOVERFLOW.
97106         * lib/getugroups.c (EOVERFLOW): Remove fallback.
97107         * modules/getugroups (Depends-on): Add EOVERFLOW.
97109         * lib/getdelim.c (EOVERFLOW): Remove fallback.
97110         * modules/getdelim (Depends-on): Add EOVERFLOW.
97112         * lib/ftell.c (EOVERFLOW): Remove fallback.
97113         * modules/ftell (Depends-on): Add EOVERFLOW.
97115         * lib/fprintf.c (EOVERFLOW): Remove fallback.
97116         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
97117         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
97119         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
97121         * modules/EOVERFLOW-tests: New file.
97122         * tests/test-EOVERFLOW.c: New file.
97124         * modules/EOVERFLOW: New file.
97125         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
97127 2008-03-30  Bruno Haible  <bruno@clisp.org>
97129         Fix bug introduced on 2007-06-10.
97130         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
97131         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
97133 2008-03-30  Bruno Haible  <bruno@clisp.org>
97135         Improve freadseek's efficiency after ungetc.
97136         * lib/freadseek.c: Include freadahead.h.
97137         (freadptrinc): New function, extracted from freadseek.
97138         (freadseek): Use it in a loop. Use freadahead to determine the number
97139         of loop iterations.
97140         * modules/freadseek (Depends-on): Add freadahead.
97141         (configure.ac): Require AC_C_INLINE.
97143 2008-03-30  Bruno Haible  <bruno@clisp.org>
97145         * lib/freadseek.c (freadseek): Don't ignore the return value of
97146         freadptr.
97148 2008-03-29  Eric Blake  <ebb9@byu.net>
97150         Add hex float support.
97151         * modules/strtod (Depends-on): Add c-ctype.
97152         (Link): Mention POW_LIB.
97153         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
97154         whitespace between 'e' and exponent.
97155         * tests/test-strtod.c (main): Enable hex float tests.
97156         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
97157         now provides.
97159         Document various strtod bugs, with some fixes.
97160         * doc/posix-functions/strtod.texi (strtod): Document bugs with
97161         "-0x", "inf", "nan", and hex constants.
97162         * doc/posix-functions/atof.texi (atof): Likewise.
97163         * modules/stdlib (Makefile.am): Support strtod.
97164         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
97165         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
97166         detect additional strtod bugs.
97167         * lib/stdlib.in.h (rpl_strtod): Add declarations.
97168         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
97169         bool where appropriate.  Parse 'inf' and 'nan'.
97170         * tests/test-strtod.c: New file.
97171         * modules/strtod (Depends-on): Add stdbool, stdlib.
97172         (configure.ac): Turn on module indicator.
97173         * modules/strtod-tests: New module.
97175 2008-03-29  Eric Blake  <ebb9@byu.net>
97177         Fix ftell on mingw.
97178         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
97179         * modules/ftell-tests (Depends-on): Add binary-io.
97180         * modules/ftello-tests (Depends-on): Likewise.
97181         * tests/test-ftell.c (main): Enhance test to cover behavior after
97182         ungetc.  Enforce binary mode.
97183         * tests/test-ftello.c (main): Likewise.
97185         Pass test-freadseek on cygwin.
97186         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
97187         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
97188         ungetc buffer.
97190         * tests/test-fflush2.c (main): Fix typo.
97192 2008-03-29  Bruno Haible  <bruno@clisp.org>
97194         * tests/test-fflush2.c (main): Temporarily disable the contents of
97195         this test.
97196         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
97197         Reported by Eric Blake.
97199 2008-03-28  Simon Josefsson  <simon@josefsson.org>
97201         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
97202         (GC_SHA224_DIGEST_SIZE): Add.
97204         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
97205         (gc_hash_digest_length): Likewise.
97206         (gc_hash_buffer): Likewise.
97208 2008-03-25  Bruno Haible  <bruno@clisp.org>
97210         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
97211         detail which gettext release to use.
97212         Reported by Simon Josefsson.
97214 2008-03-26  Jim Meyering  <meyering@redhat.com>
97216         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
97217         * modules/gnumakefile (clean-GNUmakefile): Also, use
97218         test ... && ... || : syntax rather than if-then ... fi.
97220         gnumakefile: Don't double-quote-expand $(VPATH) value.
97221         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
97223 2008-03-24  Eric Blake  <ebb9@byu.net>
97225         Alter GNUmakefile to install into top directory.
97226         * modules/maintainer-makefile: Split, and add dependency...
97227         * modules/gnumakefile: to this new module.
97228         * build-aux/GNUmakefile: Move...
97229         * top/GNUmakefile: ...here.
97230         * build-aux/maint.mk: Move...
97231         * top/maint.mk: ...here.
97232         * MODULES.html.sh (Support for maintaining...): Document new
97233         module.
97235 2008-03-23  Bruno Haible  <bruno@clisp.org>
97237         * gnulib-tool: New options --vc-files, --no-vc-files.
97238         (func_usage): Document them.
97239         (vc_files): New variable.
97240         (func_import): Consider vc_files.
97241         (func_create_testdir): Set vc_files to empty.
97242         Suggested by Jim Meyering and Karl Berry.
97244 2008-03-23  Bruno Haible  <bruno@clisp.org>
97246         Fix regex compilation error on HP-UX 11.
97247         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
97248         * modules/regex (Files): Add m4/mbstate_t.m4.
97249         Reported by Ton Voon <ton.voon@altinity.com>.
97251 2008-03-23  Bruno Haible  <bruno@clisp.org>
97253         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
97255 2008-03-23  Eric Blake  <ebb9@byu.net>
97256             Bruno Haible  <bruno@clisp.org>
97258         Install files from top/ in the destination directory.
97259         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
97260         augmentation also for the files from top/.
97261         (func_import, func_create_testdir): Rewrite file names:
97262         top/filename -> filename.
97264 2008-03-23  Bruno Haible  <bruno@clisp.org>
97266         Tweak "gnulib --version" output.
97267         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
97269 2008-03-23  Bruno Haible  <bruno@clisp.org>
97271         Tweak "gnulib --version" output.
97272         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
97273         rather than contents of ChangeLog, when possible.
97275 2008-03-21  Eric Blake  <ebb9@byu.net>
97277         More --version tweaks.
97278         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
97279         date of last ChangeLog entry.
97281 2008-03-21  Jim Meyering  <meyering@redhat.com>
97283         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
97285 2008-03-20  Eric Blake  <ebb9@byu.net>
97287         VPATH fix.
97288         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
97290 2008-03-20  Simon Josefsson  <simon@josefsson.org>
97292         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
97293         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
97295 2008-03-20  Eric Blake  <ebb9@byu.net>
97297         Sync GNUmakefile with coreutils.
97298         * build-aux/GNUmakefile (have-Makefile): Rename...
97299         (_have-Makefile): ...to this, for namespace consideration.
97300         (GNUmakefile.cfg): Include, if present.
97301         (_autoreconf): Define a default.
97302         (_is-dist-target): New rule for rebuilds to pick up intra-release
97303         version.
97304         (maint-cfg.mk): Rename...
97305         (cfg.mk): ...to this.
97307 2008-03-18  Jim Meyering  <meyering@redhat.com>
97309         New script and module: mktempd
97310         * MODULES.html.sh (maint+release support): Add mktempd.
97311         * build-aux/mktempd: New file.
97312         * modules/mktempd: New file.
97314 2008-03-15  Jim Meyering  <meyering@redhat.com>
97316         Undo last change.
97317         * lib/sha1.c, lib/md5.c: 63 != ~63.
97318         Reported by Andreas Schwab.
97320         sha1.c, md5.c: Hoist a redundant expression.
97321         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
97322         "ctx->buflen" only once, before calling *_process_block.
97323         * lib/md5.c (md5_process_bytes): Likewise.
97325 2008-03-14  Eric Blake  <ebb9@byu.net>
97327         Bump copyright year in files generated by gnulib-tool.
97328         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
97329         gnulib-tool, rather than hard-coding it.
97331         Fix 'gnulib-tool --version' output to work with git.
97332         * gnulib-tool (func_gnulib_dir): New function, extracted from...
97333         (startup): ...here.
97334         (func_version): Use it to invoke git-version-gen, rather than
97335         relying on CVS keyword expansion.  Modernize wording.
97336         (cvsdatestamp, last_checkin_date, version): Kill unused
97337         variables.
97339 2008-03-12  Jim Meyering  <meyering@redhat.com>
97341         Recognize optional cast of the argument to free.
97342         * build-aux/useless-if-before-free: Update regexps.
97344         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
97346 2008-03-11  Bruno Haible  <bruno@clisp.org>
97348         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
97349         by a single package.
97350         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
97351         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
97352         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
97353         Reported by Sam Steingold <sds@gnu.org>.
97355 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
97357         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
97358         repositories.
97360 2008-03-11  Bruno Haible  <bruno@clisp.org>
97362         Avoid conflicts between local macro definitions.
97363         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
97364         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
97366 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
97367             Bruno Haible  <bruno@clisp.org>
97369         Make va_copy work with some version of xlc on AIX 5.1.
97370         * lib/stdarg.in.h: New file.
97371         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
97372         On AIX, use a <stdarg.h> file substitute.
97373         * modules/stdarg (Files): Add lib/stdarg.in.h.
97374         (Depends-on): Add include_next.
97375         (Makefile.am): Build a stdarg.h substitute if requested.
97376         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
97378 2008-03-10  Bruno Haible  <bruno@clisp.org>
97380         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
97381         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
97382         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
97384 2008-03-10  Bruno Haible  <bruno@clisp.org>
97386         * modules/stdlib (Depends-on): Add include_next, remove
97387         absolute-header.
97389 2008-03-09  Bruno Haible  <bruno@clisp.org>
97391         * lib/freadahead.h (freadahead): Document more precisely.
97392         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
97393         the sum of both buffer sizes.
97394         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
97395         * NEWS: Document the change.
97397 2008-03-09  Bruno Haible  <bruno@clisp.org>
97399         Extend freadptr to return also the buffer size.
97400         * lib/freadptr.h (freadptr): Add sizep argument.
97401         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
97402         (freadptr): Add sizep argument. Determine buffer size like freadahead
97403         does.
97404         * tests/test-freadptr.c: Don't include freadahead.h.
97405         (main): Adapt for new calling convention of freadptr.
97406         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
97407         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
97408         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
97409         tests/test-freadptr2.sh.
97410         (Depends): Remove freadahead.
97411         (TESTS): Add test-freadptr2.sh.
97412         (check_PROGRAMS): Add test-freadptr2.
97414 2008-03-09  Bruno Haible  <bruno@clisp.org>
97416         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
97417         Report and solution by Simon Josefsson.
97419 2008-03-06  Bruno Haible  <bruno@clisp.org>
97421         Make fflush after ungetc work on BSD platforms.
97422         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
97423         * tests/test-fflush2.c: New file.
97424         * tests/test-fflush2.sh: New file.
97425         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
97426         tests/test-fflush2.c.
97427         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
97428         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
97430 2008-03-06  Eric Blake  <ebb9@byu.net>
97432         Likewise for ftello.
97433         * modules/ftello (Dependencies): Add extensions.
97434         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
97436 2008-03-06  Bruno Haible  <bruno@clisp.org>
97438         * modules/fseeko (Dependencies): Add extensions.
97439         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
97440         Needed on glibc systems.
97442 2008-03-06  Bruno Haible  <bruno@clisp.org>
97444         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
97445         email address.
97446         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
97448 2008-03-06  Bruno Haible  <bruno@clisp.org>
97450         * users.txt: Add libgnupdf.
97452 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
97454         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
97455         (Header File Substitutes, Function Substitutes,
97456         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
97457         (Build robot for gnulib): Fix typo.
97459 2008-03-06  Bruno Haible  <bruno@clisp.org>
97461         * doc/gnulib-tool.texi (VCS Issues): Small updates.
97462         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
97464 2008-03-06  Bruno Haible  <bruno@clisp.org>
97466         * doc/func.texi: New file, extracted from doc/gnulib.texi.
97467         * doc/gnulib.texi: Include it.
97469 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97471         * modules/func (License): Change license to unlimited; there was
97472         no LGPL parts in the module anyway.
97474 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97476         * modules/__func__: Renamed to modules/func.
97477         * modules/__func__-tests: Renamed to modules/func-tests.
97478         * tests/test-__func__.c: Renamed to tests/test-func.c.
97479         * m4/__func__.m4: Renamed to m4/func.m4.
97480         * doc/gnulib.texi (__func__): Section renamed to func.
97481         Suggested by Eric Blake <ebb9@byu.net>.
97483 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97485         * doc/gnulib.texi (__func__): Use C99 terminology when talking
97486         about __func__.  Make example self-contained.  Suggested by Eric
97487         Blake <ebb9@byu.net>.
97489         * tests/test-__func__.c (main): Avoid extraneous () around __func.
97490         Suggested by Eric Blake <ebb9@byu.net>.
97492 2008-03-06  Simon Josefsson  <simon@josefsson.org>
97494         * modules/__func__: New file.
97495         * modules/__func__-tests: New file.
97496         * tests/test-__func__.c: New file.
97497         * m4/__func__.m4: New file.
97498         * doc/gnulib.texi (__func__): Document __func__ module.
97500 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97502         * modules/byteswap (License): Re-license as LGPLv2+.
97504 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97506         * doc/Makefile: Add pdf target.
97508 2008-03-05  Simon Josefsson  <simon@josefsson.org>
97510         * modules/inline (License): Use 'unlimited', since there are only
97511         *.m4 files in this module.
97513 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
97514             Bruno Haible  <bruno@clisp.org>
97516         Add support for HP C 7.1 on OpenVMS 8.3.
97517         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
97519 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
97521         Update VMS specifics.
97522         * lib/getopt.c [VMS]: Remove include of unixlib.h.
97524 2008-03-02  Jim Meyering  <meyering@redhat.com>
97526         Remove the last dependency on the "free" module.
97527         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
97528         Reported by Bob Proulx.
97530         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
97532         Remove useless "if" tests before free.  Deprecate "free" module.
97533         * doc/posix-functions/free.texi: Mention that this
97534         module is no longer useful.
97535         * modules/free (Notice): Say this module is obsolete.
97536         * modules/readutmp (Depends-on): Remove free.
97537         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
97538         * lib/putenv.c (putenv): Likewise.
97539         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
97540         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
97541         * tests/test-c-strcasestr.c (main): Likewise.
97542         * tests/test-c-strstr.c (main): Likewise.
97543         * tests/test-mbscasestr1.c (main): Likewise.
97544         * tests/test-mbscasestr2.c (main): Likewise.
97545         * tests/test-mbsstr1.c (main): Likewise.
97546         * tests/test-mbsstr2.c (main): Likewise.
97547         * tests/test-memmem.c (main): Likewise.
97548         * tests/test-strcasestr.c (main): Likewise.
97549         * tests/test-striconv.c (main): Likewise.
97550         * tests/test-striconveh.c (main): Likewise.
97551         * tests/test-striconveha.c (main): Likewise.
97552         * tests/test-strstr.c (main): Likewise.
97554         * build-aux/git-version-gen: Adjust a comment and the Usage string.
97556         bootstrap: sync from coreutils again
97557         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
97559 2008-03-01  Jim Meyering  <meyering@redhat.com>
97561         bootstrap: sync from coreutils
97562         * build-aux/bootstrap (update_po_files): Copy a .po file into place
97563         also when the target doesn't exist.
97565 2008-03-01  Eric Blake  <ebb9@byu.net>
97567         Fix bugs in last patch.
97568         * lib/memchr2.c (memchr2): Fix typo.
97569         * tests/test-memchr2.c: Test previous bug, and don't use GNU
97570         extension.
97571         Reported by Bruce Korb.
97573         New module 'memchr2'.
97574         * modules/memchr2: New file.
97575         * modules/memchr2-tests: Likewise.
97576         * lib/memchr2.h: Likewise.
97577         * lib/memchr2.c: Likewise, based on memchr.c.
97578         * tests/test-memchr2.c: New test.
97579         * MODULES.html.sh (String handling): Add memchr2.
97581 2008-02-29  Bruno Haible  <bruno@clisp.org>
97583         * modules/freadseek-tests: New file.
97584         * tests/test-freadseek.sh: New file.
97585         * tests/test-freadseek.c: New file.
97587         New module 'freadseek'.
97588         * modules/freadseek: New file.
97589         * lib/freadseek.h: New file.
97590         * lib/freadseek.c: New file.
97591         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
97593 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
97595         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
97596         wydawca.
97598         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
97599         program_invocation_name and program_invocation_short_name are
97600         present.
97602 2008-02-28  Bruno Haible  <bruno@clisp.org>
97604         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
97605         * tests/test-freadptr.sh: Also test non-seekable stdin.
97607 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
97609         * build-aux/bootstrap (source_base, m4_base)
97610         (doc_base, tests_base): New variables.
97611         (gnulib_tool_options): Do not hardcode base directories, use
97612         the above variables instead.
97614 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
97616         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
97618 2008-02-28  Bruno Haible  <bruno@clisp.org>
97620         * modules/freadptr-tests: New file.
97621         * tests/test-freadptr.sh: New file.
97622         * tests/test-freadptr.c: New file.
97624         New module 'freadptr'.
97625         * modules/freadptr: New file.
97626         * lib/freadptr.h: New file.
97627         * lib/freadptr.c: New file.
97628         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
97630 2008-02-26  Karl Berry  <karl@freefriends.org>
97632         Sync from Libtool:
97633         * libltdl/argz.c (argz_add, argz_count): New functions.
97634         * libltdl/argz.in.h: Declare them.
97635         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
97637 2008-02-22  Bruno Haible  <bruno@clisp.org>
97639         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
97640         is a pointer type.  Needed for HP-UX 10.
97641         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
97642         * doc/posix-functions/gmtime_r.texi: Likewise.
97643         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
97645 2008-02-24  Bruno Haible  <bruno@clisp.org>
97647         * modules/environ-tests: New file.
97648         * tests/test-environ.c: New file.
97650         New module 'environ'.
97651         * modules/environ: New file.
97652         * lib/unistd.in.h (environ): New declaration.
97653         * m4/environ.m4: New file.
97654         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
97655         after use.
97656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
97657         HAVE_DECL_ENVIRON.
97658         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
97659         HAVE_DECL_ENVIRON.
97660         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
97661         wrong claim that 'environ' is missing on some systems.
97662         * modules/execute (Depends-on): Add environ.
97663         * lib/execute.c (environ): Remove fallback declaration.
97664         * modules/pipe (Depends-on): Add environ.
97665         * lib/pipe.c (environ): Remove fallback declaration.
97666         * modules/setenv (Depends-on): Add environ.
97667         * lib/setenv.c (environ): Remove fallback declaration.
97668         * modules/unsetenv (Depends-on): Add environ.
97669         * lib/unsetenv.c (environ): Remove fallback declaration.
97670         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
97671         m4/environ.m4.
97672         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
97673         (gl_PREREQ_UNSETENV): Likewise.
97675 2008-02-24  Bruno Haible  <bruno@clisp.org>
97677         * doc/posix-functions/environ.texi: Document the MacOS X problem.
97679 2008-02-20  Bob Proulx  <bob@proulx.com>
97681         Enable use of older two part flavor 'git describe'.
97682         * build-aux/git-version-gen: If using the older two part flavor of
97683         git version then recreate the third part now present in the
97684         newer three part flavor of git describe.
97686 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
97688         * lib/fts.c (fts_build): Typo correction to comment.
97690 2008-02-17  Bruno Haible  <bruno@clisp.org>
97692         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
97693         generating no-op conflicts.
97695 2008-02-17  Bruno Haible  <bruno@clisp.org>
97697         Speed up by 10%.
97698         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
97699         result_entries, rather than an index-based loop.
97701 2008-02-17  Bruno Haible  <bruno@clisp.org>
97703         Speed up by 25%.
97704         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
97705         'hashcode_cached'.
97706         (entry_create): New function.
97707         (entry_hashcode): Use the cached hashcode if possible.
97708         (read_changelog_file, try_split_merged_entry): Use entry_create.
97710 2008-02-17  Bruno Haible  <bruno@clisp.org>
97712         Speed up from O(n^2) to O(n) for long ChangeLog files.
97713         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
97714         (read_changelog_file): Change implementation of entries_reversed list
97715         to rbtreehash.
97716         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
97718 2008-02-17  Bruno Haible  <bruno@clisp.org>
97720         New option --split-merged-entry.
97721         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
97722         (find_paragraph_end, try_split_merged_entry): New functions.
97723         (long_options): Add option --split-merged-entry.
97724         (usage): Document option --split-merged-entry.
97725         (main): Implement option --split-merged-entry.
97726         Reported by Eric Blake.
97728 2008-02-17  Bruno Haible  <bruno@clisp.org>
97730         * lib/git-merge-changelog.c: Include c-strstr.h.
97731         (main): Support the "git pull --rebase" situation.
97732         * modules/git-merge-changelog (Depends-on): Add c-strstr.
97733         Reported by Eric Blake.
97735 2008-02-16  Eric Blake  <ebb9@byu.net>
97737         Avoid doubling \ in common case of "c-maybe" quoting style.
97738         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
97739         eliding outer quotes.
97740         * lib/quotearg.h: Document this.
97741         * tests/test-quotearg.c (result_strings, inputs, results_g)
97742         (flag_results, locale_results): Test it by adding a new string to
97743         each test group.
97744         (compare_strings): Test new string.
97746 2008-02-13  Eric Blake  <ebb9@byu.net>
97748         Avoid trigraph quoting in default output.
97749         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
97750         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
97751         unless explicitly requested.
97752         * tests/test-quotearg.c (flag_results, main): Add additional tests.
97754 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
97756         Don't rely on signed integer overflowing to negative value.
97757         * lib/getugroups.c (getugroups): Include <limits.h>.
97758         Instead, compare against INT_MAX, and increment only if the test passes.
97760 2008-02-13  Jim Meyering  <meyering@redhat.com>
97761         and Eric Blake  <ebb9@byu.net>
97763         Avoid shadowing warning and compile errors on Linux.
97764         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
97765         forwarding macros on Linux.
97766         (dcgettext): Define a stub, for Linux.
97767         (results_g, main): Avoid warnings.
97769 2008-02-12  Eric Blake  <ebb9@byu.net>
97771         Silence warning in last patch.
97772         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
97774         Quotearg part 4: add tests, fix c-maybe colon quoting.
97775         * lib/quotearg.h: Improve documentation.
97776         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
97777         escapes when adding outer quotes.  When quoting trigraphs, use
97778         valid C notation.  When quoting NUL, omit extra characters if next
97779         character is not digit.  Alter prototype.
97780         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
97781         callers.
97782         * modules/quotearg-tests: New module.
97783         * tests/test-quotearg.c: New test.
97785 2008-02-07  Eric Blake  <ebb9@byu.net>
97787         Quotearg part 3: add flag to control outer quote elision.
97788         * lib/quotearg.h (c_maybe_quoting_style): New style.
97789         (enum quoting_flags): Better documentation of flags.
97790         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
97791         c-maybe style.
97792         (quotearg_buffer_restyled): Handle new flag to elide outer
97793         quotes.
97795         Quotearg part 2: add flag that can control NUL elision.
97796         * lib/quotearg.h (set_quoting_flags): New prototype.
97797         * lib/quotearg.c (struct quoting_options): Add flag field.
97798         (set_quoting_flags): New function.
97799         (quotearg_buffer_restyled): Add flags parameter.
97800         (quotearg_alloc_mem): Set the flag if length cannot be returned.
97801         (quotearg_n_options): Set the flag, since length cannot be
97802         returned.
97803         (quoting_options_from_style): Default flags correctly.
97805         Quotearg part 1: more wrappers, restore quotearg_char state.
97806         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
97807         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
97808         (quotearg_colon_mem): New wrappers.
97809         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
97810         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
97811         functions.
97812         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
97813         (quotearg_colon_mem): New functions.
97815 2008-02-11  Bruno Haible  <bruno@clisp.org>
97817         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
97818         library in the current directory: it does not work with parallel make.
97819         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97821 2008-02-11  Bruno Haible  <bruno@clisp.org>
97823         * .gitattributes: New file.
97825 2008-02-11  Jim Meyering  <meyering@redhat.com>
97827         useless-if-before-free: Fix reversed exit values.
97828         * build-aux/useless-if-before-free: Use correct values
97829         for EXIT_MATCH and EXIT_NO_MATCH.
97831         * build-aux/useless-if-before-free: Close stdout carefully.
97833 2008-02-10  Bruno Haible  <bruno@clisp.org>
97835         New module 'git-merge-changelog'.
97836         * modules/git-merge-changelog: New file.
97837         * lib/git-merge-changelog.c: New file.
97839 2008-02-10  Jim Meyering  <meyering@redhat.com>
97841         useless-if-before-free: New option: --list (-l).
97843         useless-if-before-free: Don't exit immediately upon open failure.
97844         * build-aux/useless-if-before-free: Exit 2 for errors.
97845         Upon failure to open a file, don't exit immediately.
97846         Rather, just warn and continue with any remaining files.
97848 2008-02-10  Bruno Haible  <bruno@clisp.org>
97850         New abstract list operation 'node_set_value'.
97851         * lib/gl_list.h (gl_list_node_set_value): New function.
97852         (struct gl_list_implementation): New field node_set_value.
97853         * lib/gl_list.c (gl_list_node_set_value): New function.
97854         * lib/gl_array_list.c (gl_array_node_set_value): New function.
97855         (gl_array_list_implementation): Update.
97856         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
97857         (gl_carray_list_implementation): Update.
97858         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
97859         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
97860         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
97861         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
97862         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
97863         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
97864         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
97865         Update.
97866         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
97867         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
97868         (gl_sublist_list_implementation): Update.
97870 2008-02-10  Bruno Haible  <bruno@clisp.org>
97872         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
97873         Needed when ELEMENT is #defined to 'some_type *'.
97875 2008-02-10  Jim Meyering  <meyering@redhat.com>
97877         New script and module: useless-if-before-free
97878         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
97879         * build-aux/useless-if-before-free: New file.
97880         * modules/useless-if-before-free: New file.
97882         * build-aux/gitlog-to-changelog: Use committer date, not author date.
97884         xstrtol_error: Fix typo.
97885         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
97886         s/exit_failure/exit_status/.
97888 2008-02-09  Jim Meyering  <meyering@redhat.com>
97890         New script and module: gitlog-to-changelog
97891         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
97892         * modules/gitlog-to-changelog: New file.
97893         * build-aux/gitlog-to-changelog: New file.
97895 2008-02-08  Jim Meyering  <meyering@redhat.com>
97897         Avoid two "parameter unused" warnings.
97898         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
97899         Mark "st" as used.
97901         Use "git COMMAND", not "git-COMMAND".
97902         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
97903         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
97904         * build-aux/git-version-gen: Use "git status", not "git-status".
97906 2008-02-07  Bruno Haible  <bruno@clisp.org>
97908         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
97909         Avoids a crash on Windows Vista.
97910         Reported by Adam Strzelecki <ono@java.pl> via
97911         Simon Josefsson <simon@josefsson.org>.
97913 2008-02-06  Bruno Haible  <bruno@clisp.org>
97915         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
97916         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
97917         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
97918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
97919         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
97920         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97921         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
97922         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
97923         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97924         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97925         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97926         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97927         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97928         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97929         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97930         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
97931         left-adjust flag.
97932         * tests/test-snprintf-posix.h (test_function): Likewise.
97933         * tests/test-sprintf-posix.h (test_function): Likewise.
97934         * tests/test-vasprintf-posix.c (test_function): Likewise.
97935         * doc/posix-functions/fprintf.texi: Update.
97936         * doc/posix-functions/printf.texi: Update.
97937         * doc/posix-functions/snprintf.texi: Update.
97938         * doc/posix-functions/sprintf.texi: Update.
97939         * doc/posix-functions/vfprintf.texi: Update.
97940         * doc/posix-functions/vprintf.texi: Update.
97941         * doc/posix-functions/vsnprintf.texi: Update.
97942         * doc/posix-functions/vsprintf.texi: Update.
97943         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97945 2008-02-06  Bruno Haible  <bruno@clisp.org>
97947         Fix bug introduced on 2008-01-26.
97948         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
97950 2008-02-06  Bruno Haible  <bruno@clisp.org>
97952         Fix bug introduced on 2007-06-10.
97953         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
97954         !NEED_PRINTF_FLAG_ZERO.
97956 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
97958         getloadavg: use libperfstat on AIX5
97959         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
97961 2008-02-03  Bruno Haible  <bruno@clisp.org>
97963         * lib/diffseq.h: Add comments about required #includes.
97964         Reported by Michael Biggs <gnulib@doubleplum.net>.
97966 2008-02-01  Bruno Haible  <bruno@clisp.org>
97968         * users.txt: Add gnuit.
97970 2008-01-31  Bruno Haible  <bruno@clisp.org>
97972         * lib/md4.c (set_uint32): Mark as inline.
97973         * lib/md5.c (set_uint32): Likewise.
97974         * lib/sha1.c (set_uint32): Likewise.
97975         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
97976         * m4/md5.m4 (gl_MD5): Likewise.
97977         * m4/sha1.m4 (gl_SHA1): Likewise.
97979 2008-01-31  Jim Meyering  <meyering@redhat.com>
97981         Use "sizeof VAR", rather than a literal "4".
97982         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
97983         * lib/md4.c (md4_read_ctx): Likewise.
97984         * lib/sha1.c (sha1_read_ctx): Likewise.
97986 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97988         * tests/test-sha1.c: New file, based on test-md5.c.
97990         * modules/crypto/sha1-tests: New file.
97992 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97994         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
97996 2008-01-31  Jim Meyering  <meyering@redhat.com>
97998         Prefer "sizeof v" over the equivalent "4".
97999         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
98000         * lib/md5.c (set_uint32): Likewise.
98001         * lib/sha1.c (set_uint32): Likewise.
98003 2008-01-31  Simon Josefsson  <simon@josefsson.org>
98005         * lib/sha1.c (set_uint32): Mark function as static.
98007 2008-01-31  Simon Josefsson  <simon@josefsson.org>
98009         md2: clarify comments to say that alignment is not required.
98010         * lib/md2.h: Remove warning about alignment in comment.
98011         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
98012         never been required.
98014 2008-01-31  Simon Josefsson  <simon@josefsson.org>
98016         md4: adapt alignment constraint fix from sha1.
98017         * lib/md4.c (set_uint32): New function, from sha1.c
98018         (md4_read_ctx): Use it.
98019         (md4_finish_ctx): Doc fix.
98020         * lib/md4.h: Doc fix.
98022 2008-01-31  Simon Josefsson  <simon@josefsson.org>
98024         md5: adapt alignment constraint fix from sha1.
98025         * lib/md5.c (set_uint32): New function, from sha1.c
98026         (md5_read_ctx): Use it.
98027         (md5_finish_ctx): Doc fix.
98028         * lib/md5.h: Doc fix.
98030 2008-01-30  Peter Palfrader  <weasel@debian.org>
98032         sha1: remove the result buffer alignment constraint
98033         * lib/sha1.c (set_uint32): New function.
98034         (sha1_read_ctx): Rewrite to remove the result buffer alignment
98035         constraint.
98036         (sha1_finish_ctx): Remove comment warning about alignment constraint.
98037         * lib/sha1.h: Likewise.
98039 2008-01-30  Andreas Schwab  <schwab@suse.de>
98040             Bruno Haible  <bruno@clisp.org>
98042         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
98043         correct definition of LDBL_MIN_EXP.
98045 2008-01-30  Karl Berry  <karl@gnu.org>
98047         * config/srclist-update: try to preserve x bit on updates.
98048         * config/srclistvars.sh: update for karl.
98050 2008-01-29  Jim Meyering  <meyering@redhat.com>
98052         vasnprintf.c: Avoid warning about unused label
98053         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
98054         "overflow" label definition and associated code with the
98055         same cpp condition that guards the sole use of that label.
98057 2008-01-26  Bruno Haible  <bruno@clisp.org>
98059         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
98060         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
98061         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
98062         * lib/isnanl-nolibm.h (isnanl): Likewise.
98063         Reported by Paul Eggert <eggert@cs.ucla.edu>.
98065 2008-01-26  Bruno Haible  <bruno@clisp.org>
98067         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
98068         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
98070 2008-01-26  Bruno Haible  <bruno@clisp.org>
98072         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
98073         GCC >= 4.0 built-in.
98074         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
98076 2008-01-26  Bruno Haible  <bruno@clisp.org>
98078         Rename isnan, applicable to 'double' only, to isnand.
98079         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
98080         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
98081         (configure.ac): Update.
98082         (Include): Replace "isnan.h" with "isnand.h".
98083         * m4/isnand.m4: Renamed from m4/isnan.m4.
98084         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
98085         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
98086         instead of isnan.c.
98087         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
98088         instead of HAVE_ISNAN_IN_LIBC.
98089         (isnand): Renamed from isnan.
98090         * lib/isnand.c: New file.
98091         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
98092         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
98093         (Makefile.am): Update.
98094         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
98095         Include isnand.h instead of isnan.h.
98096         (main): Test isnand instead of isnan.
98097         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
98098         isnan-nolibm.
98099         * modules/frexp (Depends-on): Likewise.
98100         * modules/frexp-tests (Depends-on): Likewise.
98101         * modules/frexp-nolibm (Depends-on): Likewise.
98102         * modules/frexp-nolibm-tests (Depends-on): Likewise.
98103         * modules/isfinite (Depends-on): Likewise.
98104         * modules/round-tests (Depends-on): Likewise.
98105         * modules/signbit (Depends-on): Likewise.
98106         * modules/signbit-tests (Depends-on): Likewise.
98107         * modules/snprintf-posix (Depends-on): Likewise.
98108         * modules/sprintf-posix (Depends-on): Likewise.
98109         * modules/trunc-tests (Depends-on): Likewise.
98110         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
98111         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
98112         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
98113         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
98114         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
98115         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
98116         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
98117         * modules/vasnprintf-posix (Depends-on): Likewise.
98118         * modules/vasprintf-posix (Depends-on): Likewise.
98119         * modules/vfprintf-posix (Depends-on): Likewise.
98120         * modules/vsnprintf-posix (Depends-on): Likewise.
98121         * modules/vsprintf-posix (Depends-on): Likewise.
98122         * lib/frexp.c: Include isnand.h instead of isnan.h.
98123         (ISNAN): Set to isnand instead of isnan.
98124         * lib/isfinite.c: Include isnand.h instead of isnan.h.
98125         (gl_isfinited): Use isnand instead of isnan.
98126         * lib/signbitd.c: Include isnand.h instead of isnan.h.
98127         (gl_signbitd): Use isnand instead of isnan.
98128         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
98129         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
98130         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
98131         (main): Use isnand instead of isnan.
98132         * tests/test-round1.c: Include isnand.h.
98133         (main): Use isnand instead of isnan.
98134         * tests/test-round2.c: Include isnand.h instead of isnan.h.
98135         (ISNAN): Set to isnand instead of isnan.
98136         * tests/test-trunc1.c: Include isnand.h.
98137         (main): Use isnand instead of isnan.
98138         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
98139         (equal): Use isnand instead of isnan.
98140         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
98141         isnand-nolibm.
98142         * NEWS: Mention the change.
98144 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
98145             Bruno Haible  <bruno@clisp.org>
98147         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
98148         the GCC builtins for signbits are present and set
98149         REPLACE_SIGNBIT_USING_GCC if so.
98150         * lib/math.in.h (signbit): Define using GCC builtins if
98151         REPLACE_SIGNBIT_USING_GCC is set.
98152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
98153         REPLACE_SIGNBIT_USING_GCC.
98154         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
98156 2008-01-25  Jim Meyering  <meyering@redhat.com>
98158         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
98159         * lib/poll.c: Include <config.h>, not "config.h".
98160         * tests/test-getaddrinfo.c: Likewise.
98162 2008-01-25  Simon Josefsson  <simon@josefsson.org>
98164         * modules/sockets-tests: New file.
98166 2008-01-24  Simon Josefsson  <simon@josefsson.org>
98168         * modules/sockets: New module, can be used to call WSA_Startup and
98169         WSA_Cleanup when needed.
98171         * lib/sockets.h, lib/sockets.c: New files.
98173         * m4/sockets.m4: New file.
98175         * tests/test-sockets.c: New file.
98177 2008-01-19  Bruno Haible  <bruno@clisp.org>
98179         * doc/posix-headers: Renamed from doc/headers.
98180         * doc/posix-functions: Renamed from doc/functions.
98181         * doc/gnulib.texi: Update.
98183 2008-01-19  Bruno Haible  <bruno@clisp.org>
98185         * doc/glibc-functions/strcasestr.texi: Include contents of
98186         doc/functions/strcasestr.texi, fixing the list of platforms.
98187         * doc/functions/strcasestr.texi: Remove file.
98189 2008-01-19  Bruno Haible  <bruno@clisp.org>
98191         * doc/glibc-functions/memmem.texi: Include contents of
98192         doc/functions/memmem.texi.
98193         * doc/functions/memmem.texi: Remove file.
98195 2008-01-18  Bruno Haible  <bruno@clisp.org>
98197         * doc/glibc-functions/*.texi: New files.
98198         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
98199         to use the new files.
98201 2008-01-17  Bruno Haible  <bruno@clisp.org>
98203         * tests/test-gethostname.c (main): Fix printf statement.
98205 2008-01-17  Simon Josefsson  <simon@josefsson.org>
98207         * modules/gethostname-tests: New file.
98209         * tests/test-gethostname.c: New file.
98211 2008-01-17  Simon Josefsson  <simon@josefsson.org>
98213         * lib/gethostname.c: Include string.h unconditionally, strncpy is
98214         used by the UNAME case.  Reported by Bruno Haible
98215         <bruno@clisp.org>.
98217 2008-01-17  Eric Blake  <ebb9@byu.net>
98219         Convert c-strcasestr to be more efficient.
98220         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
98221         (Depends-on): Add c-strcase, remove malloca, strnlen.
98222         * tests/test-c-strcasestr.c (main): Enhance test.
98223         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
98225 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
98227         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
98228         Use it in creating po/Makevars.
98230 2008-01-15  Simon Josefsson  <simon@josefsson.org>
98232         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
98233         Applications that requires it should initialize libgcrypt
98234         manually.
98236 2008-01-16  Simon Josefsson  <simon@josefsson.org>
98238         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
98240 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
98242         Fix problem with getdate on mingw32 reported by Simon Josefsson
98243         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
98244         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
98245         tzname", when deciding whether to declare tzname.
98246         * lib/strftime.c (tzname): Likewise.
98248 2008-01-15  Bruno Haible  <bruno@clisp.org>
98250         Work around a MacOS X 10.5 bug in frexpl().
98251         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
98252         * doc/functions/frexpl.texi: Document the bug.
98253         Reported by Elias Pipping <pipping@gentoo.org>.
98255 2008-01-14  Eric Blake  <ebb9@byu.net>
98257         Touch up previous patch.
98258         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
98259         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
98261         Convert strcasestr module to use Two-Way algorithm.
98262         * modules/strcasestr-simple: New module, based on the old
98263         strcasestr, but with Two-Way rather than KMP.
98264         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
98265         * lib/string.in.h (rpl_strcasestr): Declare.
98266         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
98267         performance.
98268         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
98269         * modules/string (Makefile.am): Support strcasestr.
98270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
98271         * modules/strcasestr-tests (Depends-on): Check for alarm.
98272         * tests/test-strcasestr.c: Augment test.
98273         * lib/str-two-way.h: Clean up stray macro.
98274         * NEWS: Document new module.
98275         * MODULES.html.sh (string handling): Likewise.
98276         * doc/functions/strcasestr.texi: New file.
98277         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
98278         here, since it is not a POSIX function.
98280 2008-01-14  Colin Watson  <cjwatson@debian.org>
98281             Bruno Haible  <bruno@clisp.org>
98283         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
98284         works fine; if not, set REPLACE_STRSIGNAL.
98285         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
98286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
98287         REPLACE_STRSIGNAL.
98288         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
98289         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
98290         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
98292 2008-01-14  Bruno Haible  <bruno@clisp.org>
98294         * modules/strsignal (Include): Change to <string.h>.
98296 2008-01-14  Colin Watson  <cjwatson@debian.org>
98298         * modules/argp (Notice): Add a notice recommending to change
98299         XGETTEXT_OPTIONS.
98300         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
98302 2008-01-13  Colin Watson  <cjwatson@debian.org>
98304         * modules/strsignal-tests: New file.
98305         * tests/test-strsignal.c: New file.
98307         * lib/strsignal.c: New file, from glibc with modifications.
98308         * lib/siglist.h: New file, from glibc with modifications.
98309         * lib/string.in.h (strsignal): New declaration.
98310         * m4/strsignal.m4: New file.
98311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
98312         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
98313         * modules/strsignal: New file.
98314         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
98315         HAVE_DECL_STRSIGNAL.
98317 2008-01-13  Bruno Haible  <bruno@clisp.org>
98319         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
98320         locale encoding is not ASCII. Needed for OpenBSD 4.0.
98321         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
98322         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
98324 2008-01-13  Bruno Haible  <bruno@clisp.org>
98326         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
98327         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
98328         * lib/argp.h (__attribute__): Likewise.
98329         * lib/c-stack.c (__attribute__): Likewise.
98330         * lib/error.h (__attribute__): Likewise.
98331         * lib/fts.c (__attribute__): Likewise.
98332         * lib/openat.h (__attribute__): Likewise.
98333         * lib/stdio.in.h (__attribute__): Likewise.
98334         * lib/string.in.h (__attribute__): Likewise.
98335         * lib/utimens.c (__attribute__): Likewise.
98336         * lib/vasnprintf.h (__attribute__): Likewise.
98337         * lib/xalloc.h (__attribute__): Likewise.
98338         * lib/xprintf.h (__attribute__): Likewise.
98339         * lib/xstrtol.h (__attribute__): Likewise.
98340         * lib/xvasprintf.h (__attribute__): Likewise.
98342 2008-01-12  Bruno Haible  <bruno@clisp.org>
98344         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
98345         * doc/glibc-headers/a.out.texi: New file.
98346         * doc/glibc-headers/aliases.texi: New file.
98347         * doc/glibc-headers/alloca.texi: New file.
98348         * doc/glibc-headers/ar.texi: New file.
98349         * doc/glibc-headers/argp.texi: New file.
98350         * doc/glibc-headers/argz.texi: New file.
98351         * doc/glibc-headers/byteswap.texi: New file.
98352         * doc/glibc-headers/crypt.texi: New file.
98353         * doc/glibc-headers/endian.texi: New file.
98354         * doc/glibc-headers/envz.texi: New file.
98355         * doc/glibc-headers/err.texi: New file.
98356         * doc/glibc-headers/error.texi: New file.
98357         * doc/glibc-headers/execinfo.texi: New file.
98358         * doc/glibc-headers/fpu_control.texi: New file.
98359         * doc/glibc-headers/fstab.texi: New file.
98360         * doc/glibc-headers/fts.texi: New file.
98361         * doc/glibc-headers/getopt.texi: New file.
98362         * doc/glibc-headers/ieee754.texi: New file.
98363         * doc/glibc-headers/ifaddrs.texi: New file.
98364         * doc/glibc-headers/libintl.texi: New file.
98365         * doc/glibc-headers/mcheck.texi: New file.
98366         * doc/glibc-headers/mntent.texi: New file.
98367         * doc/glibc-headers/obstack.texi: New file.
98368         * doc/glibc-headers/paths.texi: New file.
98369         * doc/glibc-headers/printf.texi: New file.
98370         * doc/glibc-headers/pty.texi: New file.
98371         * doc/glibc-headers/resolv.texi: New file.
98372         * doc/glibc-headers/shadow.texi: New file.
98373         * doc/glibc-headers/sysexits.texi: New file.
98374         * doc/glibc-headers/ttyent.texi: New file.
98376 2008-01-12  Jim Meyering  <meyering@redhat.com>
98378         announce-gen: emit Gnulib's git-based version string.
98379         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
98380         New option --gnulib-version=V, where V is expected to be
98381         the output of running git describe in the gnulib directory.
98382         (get_tool_versions): Request feedback on xdelta.  I suspect it's
98383         not useful, and plan to stop publishing an xdelta file with each
98384         coreutils release.
98386         * build-aux/announce-gen: Also check for lzma-compressed files.
98388 2008-01-11  Bruno Haible  <bruno@clisp.org>
98390         * tests/test-memmem.c (main): Increase maximum allowed time.
98391         * tests/test-strstr.c (main): Likewise.
98393 2008-01-11  Bruno Haible  <bruno@clisp.org>
98395         * doc/functions/memmem.texi: Add more precisions about platforms.
98396         * doc/functions/strstr.texi: Likewise.
98398 2008-01-10  Eric Blake  <ebb9@byu.net>
98400         * m4/strstr.m4: Delete cruft from copy-n-paste.
98401         Reported by Bruno Haible.
98403 2008-01-10  Bruno Haible  <bruno@clisp.org>
98405         Make c-strstr rely on strstr.
98406         * lib/c-strstr.c: Don't include str-kmp.h.
98407         (c_strstr): Define in terms of strstr.
98408         * modules/c-strstr (Files): Remove lib/str-kmp.h.
98409         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
98411 2008-01-10  Bruno Haible  <bruno@clisp.org>
98413         * doc/gnulib.texi (String Functions in C Locale): New section.
98414         * doc/c-ctype.texi: New file.
98415         * doc/c-strcase.texi: New file.
98416         * doc/c-strcaseeq.texi: New file.
98417         * doc/c-strcasestr.texi: New file.
98418         * doc/c-strstr.texi: New file.
98419         * doc/c-strtod.texi: New file.
98420         * doc/c-strtold.texi: New file.
98422 2008-01-10  Eric Blake  <ebb9@byu.net>
98424         * lib/relocatable.h: Fix a comment.
98426 2008-01-10  Eric Blake  <ebb9@byu.net>
98428         Share two-way algorithm.
98429         * lib/str-two-way.h: New file, merged from...
98430         * lib/memmem.c: ...here...
98431         * lib/strstr.c: ...and here.
98432         * modules/memmem (Files): Use it.
98433         * modules/strstr (Files): Likewise.
98435         Avoid quadratic strstr implementations.
98436         * lib/strstr.c: New file.
98437         * m4/strstr.m4: Likewise.
98438         * modules/strstr: Likewise.
98439         * modules/strstr-tests: Likewise.
98440         * tests/test-strstr.c: Likewise.
98441         * lib/string.in.h (rpl_strstr): Declare.
98442         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
98443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
98444         * modules/string (Makefile.am): Likewise.
98445         * MODULES.html.sh (string handling): Mention new module.
98446         * doc/functions/strstr.texi (strstr): Document the bug.
98448 2008-01-10  Bruno Haible  <bruno@clisp.org>
98450         * lib/relocatable.h (relocate): State whether result is freshly
98451         allocated or not.
98452         * lib/relocatable.c (relocate): Return a freshly allocated string
98453         instead of a pointer to a privately held string.
98454         Reported by Sylvain Beucler <beuc@gnu.org>.
98456 2008-01-10  Colin Watson  <cjwatson@debian.org>
98458         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
98459         s/S_ISNLK/S_ISLNK/.
98461 2008-01-09  Bruno Haible  <bruno@clisp.org>
98463         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
98464         and other files.
98465         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
98466         if it's only a guess.
98467         * modules/memmem: Simplify by depending on memmem-simple.
98469 2008-01-09  Bruno Haible  <bruno@clisp.org>
98471         Work around OpenBSD 4.0 tdelete() bug.
98472         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
98473         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
98474         macros and don't redefine the enum values.
98475         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
98476         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
98477         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
98479 2008-01-09  Bruno Haible  <bruno@clisp.org>
98481         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
98482         (main): Don't perform the tests if setlocale did not install a UTF-8
98483         locale. Needed on OpenBSD 4.0.
98484         * modules/wcwidth-tests (Depends-on): Add localcharset.
98486 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
98488         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
98489         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
98490         * NEWS: announce this.
98491         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
98493 2008-01-09  Simon Josefsson  <simon@josefsson.org>
98494         and Eric Blake  <ebb9@byu.net>
98496         Add memmem-simple module.
98497         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
98498         (gl_FUNC_MEMMEM): Separate performance from presence checks.
98499         * modules/memmem-simple: New file.
98500         * modules/memmem (Description): Tweak.
98501         * MODULES.html.sh (string handling): Mention new module.
98502         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
98503         addressed by memmem-simple.
98504         * NEWS: Document the difference.
98506 2008-01-09  Eric Blake  <ebb9@byu.net>
98508         Give gcc some memmem optimization hints.
98509         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
98510         (strcasestr): Declare as pure.
98511         * modules/memmem (Maintainer): Claim my implementation.
98513 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98515         Support AIX 6.1 and higher.
98516         * build-aux/config.libpath: Likewise.
98517         * build-aux/config.rpath: Likewise.
98519 2008-01-08  Jim Meyering  <meyering@redhat.com>
98520             Bruno Haible  <bruno@clisp.org>
98522         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
98523         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
98524         Reported by Peter Fales in
98525         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
98527 2008-01-08  Bruno Haible  <bruno@clisp.org>
98529         * modules/unictype/category-of (Depends-on): Add
98530         unictype/category-none.
98531         * modules/unictype/category-and-tests (Depends-on): Add
98532         unictype/category-{L,N,Lu,Nd}.
98533         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
98534         * modules/unictype/category-or-tests (Depends-on): Add
98535         unictype/category-{L,N}.
98536         * modules/unictype/category-name-tests (Depends-on): Add
98537         unictype/category-{Z,Nl}.
98538         Reported by Simon Josefsson.
98540 2008-01-08  Bruno Haible  <bruno@clisp.org>
98542         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
98543         convention better.
98544         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
98545         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
98546         Reported by Peter Miller <millerp@canb.auug.org.au>.
98548 2008-01-08  Eric Blake  <ebb9@byu.net>
98550         Rewrite memmem to guarantee linear complexity without malloc.
98551         * lib/memmem.c (memmem): Use Two-Way rather than
98552         Knuth-Morris-Pratt, to allow O(1) space usage.
98553         (critical_factorization, two_way_short_needle)
98554         (two_way_long_needle): New functions.
98555         (knuth_morris_pratt): Delete.
98556         * modules/memmem (Depends-on): No longer need malloca or stdbool.
98557         Add stdint.
98558         * tests/test-memmem.c (main): Add tests for periodic needle and
98559         sublinear performance.
98560         * doc/functions/memmem.texi (memmem): Document other deficiencies
98561         in cygwin and older glibc.
98563 2008-01-08  Bruno Haible  <bruno@clisp.org>
98565         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
98566         augmentation.
98568 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
98570         Add a configure time option: --disable-acl.
98571         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
98572         AC_ARG_ENABLE(acl).
98574 2008-01-06  Simon Josefsson  <simon@josefsson.org>
98576         * tests/test-localename.c: Don't include obsolete "setenv.h".
98578         * modules/localename-tests (Depends-on): Need unsetenv.
98580 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98582         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
98584 2008-01-06  Colin Watson  <cjwatson@debian.org>
98586         * users.txt: Add man-db.
98588 2008-01-07  Bruno Haible  <bruno@clisp.org>
98590         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
98591         previous section name.
98593 2008-01-07  Bruno Haible  <bruno@clisp.org>
98595         * lib/progname.c (set_program_name): Don't strip off a leading
98596         "lt-" prefix outside a .libs directory.
98597         Suggested by Paul Eggert.
98599 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
98600             Bruno Haible  <bruno@clisp.org>
98602         Improve memory cleanup in 'relocatable' module.
98603         * lib/relocatable.h (compute_curr_prefix): Change return type to
98604         'char *'.
98605         * lib/relocatable.c (compute_curr_prefix): Change return type to
98606         'char *'. Free curr_installdir after use.
98607         (relocate): Free curr_prefix_better after use.
98608         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
98610 2008-01-01  Bruno Haible  <bruno@clisp.org>
98612         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
98613         failure on older glibc systems.
98614         Reported by Peter Fales <psfales@alcatel-lucent.com>.
98616 2008-01-05  Eric Blake  <ebb9@byu.net>
98618         Avoid quadratic system memmem.
98619         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
98620         Reported by Ralf Wildenhues.
98622         Fix memmem test for mingw.
98623         * modules/memmem-tests (configure.ac): Check for alarm.
98624         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
98625         it.
98626         * doc/functions/memmem.texi: New file.
98627         * doc/gnulib.texi (Function Substitutes): Add memmem.
98628         Reported by Bruno Haible.
98630 2008-01-04  Bruno Haible  <bruno@clisp.org>
98632         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
98633         Require gl_HEADER_STRINGS_H_DEFAULTS, not
98634         gl_HEADER_STRING_H_DEFAULTS.
98636 2008-01-04  Eric Blake  <ebb9@byu.net>
98638         Shorten duration of memmem test.
98639         * tests/test-memmem.c (main): Use alarm to declare failure if test
98640         is taking too long.
98641         Reported by Ralf Wildenhues.
98643 2007-12-21  Simon Josefsson  <simon@josefsson.org>
98645         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
98646         string, needed by strerror.
98648 2008-01-03  Colin Watson  <cjwatson@debian.org>
98649             Bruno Haible  <bruno@clisp.org>
98651         * doc/gnulib-tool.texi (Localization): New section.
98653 2008-01-02  Bruno Haible  <bruno@clisp.org>
98655         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
98656         variables to 'unsigned char *' type.
98657         Reported by Paul Eggert.
98659 2008-01-02  Jim Meyering  <jim@meyering.net>
98661         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
98663 2007-12-31  Jim Meyering  <jim@meyering.net>
98665         Avoid use of private FTS type name.
98666         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
98668 2007-12-30  Karl Berry  <karl@gnu.org>
98670         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
98671         work around defect in Texinfo and/or the standalone Info browser.
98673 2007-12-30  Bruno Haible  <bruno@clisp.org>
98675         Unify 5 copies of the KMP code.
98676         * lib/str-kmp.h: New file.
98677         * lib/c-strcasestr.c: Include str-kmp.h.
98678         (knuth_morris_pratt): Remove function.
98679         (c_strcasestr): Update.
98680         * lib/c-strstr.c: Include str-kmp.h.
98681         (knuth_morris_pratt): Remove function.
98682         (c_strcasestr): Update.
98683         * lib/mbscasestr.c: Include str-kmp.h.
98684         (knuth_morris_pratt_unibyte): Remove function.
98685         * lib/mbsstr.c: Include str-kmp.h.
98686         (knuth_morris_pratt_unibyte): Remove function.
98687         * lib/strcasestr.c: Include str-kmp.h.
98688         (knuth_morris_pratt): Remove function.
98689         (strcasestr): Update.
98690         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
98691         * modules/c-strstr (Files): Likewise.
98692         * modules/mbscasestr (Files): Likewise.
98693         * modules/mbsstr (Files): Likewise.
98694         * modules/strcasestr (Files): Likewise.
98695         Suggested by Paul Eggert.
98697 2007-12-30  Bruno Haible  <bruno@clisp.org>
98699         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
98700         defined.
98702 2007-12-30  Bruno Haible  <bruno@clisp.org>
98704         * lib/xmalloca.h: Include xalloc.h.
98705         (xnmalloca): New macro.
98707 2007-12-30  Bruno Haible  <bruno@clisp.org>
98709         * lib/malloca.h (nmalloca): New macro.
98710         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
98711         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
98712         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
98713         knuth_morris_pratt_multibyte): Likewise.
98714         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
98715         knuth_morris_pratt_multibyte): Likewise.
98716         * lib/memmem.c (knuth_morris_pratt): Likewise.
98717         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
98719 2007-12-25  Bruno Haible  <bruno@clisp.org>
98721         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
98722         * lib/glob.c: Don't include openat.h.
98723         (link_exists2_p): Add back the code that deals with the
98724         !GLOB_ALTDIRFUNC case.
98725         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
98726         let it do the filename concatenation.
98727         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
98728         * modules/glob (Depends-on): Remove openat.
98730 2007-12-31  Bruno Haible  <bruno@clisp.org>
98732         * modules/dirfd (License): Change to LGPLv2+.
98733         Approved by Jim Meyering.
98735 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
98737         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
98738         when multiplying M by sizeof (size_t).
98740 2007-12-10  Martin Lambers  <marlam@marlam.de>
98742         Override getpagesize on mingw.
98743         * lib/getpagesize.c: New file.
98744         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
98745         * modules/getpagesize (Files): Add lib/getpagesize.c.
98746         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
98747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
98748         REPLACE_GETPAGESIZE.
98749         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
98751 2007-12-25  Bruno Haible  <bruno@clisp.org>
98753         * modules/localcharset (Notice): New field.
98754         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
98755         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
98757 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
98758             Bruno Haible  <bruno@clisp.org>
98760         Avoid using the syntax symbol() in formatted documentation.
98761         * MODULES.html.sh (func_module): When replacing symbol() with a
98762         hyperlink, remove the parentheses. Show an error if some remain.
98763         Recognize and render the '...' syntax.
98764         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
98765         Rework. Add paragraph about GCC's inlining.
98766         * doc/alloca.texi: Likewise.
98767         * doc/error.texi: Remove parentheses from symbol reference.
98768         * doc/gnulib-intro.texi: Likewise.
98769         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
98770         * modules/fnmatch (Description): Reword to say "the ... function".
98771         * modules/full-read (Description): Likewise.
98772         * modules/full-write (Description): Likewise.
98773         * modules/safe-read (Description): Likewise.
98774         * modules/safe-write (Description): Likewise.
98775         * modules/strchrnul (Description): Likewise.
98776         * modules/trim (Description): Likewise.
98777         * modules/error (Description): Remove parentheses from symbol
98778         references.
98779         * modules/verror (Description): Likewise.
98780         Reported by Karl Berry.
98782 2007-12-25  Bruno Haible  <bruno@clisp.org>
98784         Fixup after 2007-10-16 commit.
98785         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
98787 2007-12-24  Bruno Haible  <bruno@clisp.org>
98789         Make --enable-relocatable work with DESTDIR.
98790         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
98791         to compute installdir from destprog.
98792         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
98793         also set the RELOC_DESTDIR variable.
98794         Reported by Левашев Иван <octagram@bluebottle.com>.
98796 2007-12-24  Bruno Haible  <bruno@clisp.org>
98798         Fix link error due to xalloc_die().
98799         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
98800         of xreadlink.
98801         * lib/relocwrapper.c: Update comments.
98802         * build-aux/install-reloc: Remove xreadlink.c from file list.
98803         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
98804         xreadlink.c.
98805         Reported by Левашев Иван <octagram@bluebottle.com>.
98807 2007-12-24  Bruno Haible  <bruno@clisp.org>
98809         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
98810         * lib/setenv.h: Remove file.
98811         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
98812         lib/setenv.h.
98813         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
98814         (Depends-on): Add stdlib.
98815         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
98816         gl_FUNC_UNSETENV.
98817         (Include): Replace setenv.h with <stdlib.h>.
98818         * modules/unsetenv: New file.
98819         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
98820         * lib/unsetenv.c: Include <stdlib.h> first.
98821         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
98822         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
98823         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
98824         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
98825         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
98826         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
98828         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98829         * doc/functions/unsetenv.texi: Update.
98830         * modules/xsetenv (Depends-on): Add unsetenv.
98831         * modules/getdate (Depends-on): Likewise.
98832         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
98833         * lib/xsetenv.c: Don't include setenv.h.
98834         * lib/getdate.y: Likewise.
98835         * lib/relocwrapper.c: Likewise.
98836         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
98837         (Depends-on): Add stdlib.
98838         * NEWS: Mention the changes.
98839         Reported by Левашев Иван <octagram@bluebottle.com>.
98841 2007-12-23  Bruno Haible  <bruno@clisp.org>
98843         * lib/memmem.c (memmem): Use lowercase variable names. Tab
98844         indentation.
98846 2007-12-23  Bruno Haible  <bruno@clisp.org>
98848         * lib/c-strcasestr.c: Add more comments.
98849         * lib/c-strstr.c: Likewise.
98850         * lib/mbscasestr.c: Likewise.
98851         * lib/mbsstr.c: Likewise.
98852         * lib/strcasestr.c: Likewise.
98853         * lib/memmem.c: Likewise.
98855 2007-12-23  Bruno Haible  <bruno@clisp.org>
98857         * tests/test-memmem.c: Include <string.h> first.
98859 2007-12-22  Bruno Haible  <bruno@clisp.org>
98861         * gnulib-tool (func_create_testdir): Change $auxdir while generating
98862         the contents of $testsbase.
98863         Reported by Ralf Wildenhues.
98865 2007-12-22  Bruno Haible  <bruno@clisp.org>
98867         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
98868         two variables local_ldadd_before, local_ldadd_last.
98870 2007-12-20  Eric Blake  <ebb9@byu.net>
98872         Work around circular library issue when cross-compiling.
98873         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
98874         that progname.o does not need to pull in rpl_memcmp.
98876 2007-12-19  Eric Blake  <ebb9@byu.net>
98878         Fix memmem to avoid O(n^2) worst-case complexity.
98879         * lib/memmem.c (knuth_morris_pratt): New function.
98880         (memmem): Use it if first few naive iterations fail.
98881         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
98882         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
98883         * modules/memchr (License): Likewise.
98884         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
98885         malloca.
98886         * tests/test-memmem.c: Rewrite, borrowing ideas from
98887         test-mbsstr1.c; the old version wouldn't even compile!
98888         * modules/memmem-tests: New file.
98889         * lib/string.in.h (rpl_memmem): Add declaration.
98890         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
98891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
98892         REPLACE_MEMMEM.
98894 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
98896         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
98897         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
98898         before any system include files, and undef after them all.  This
98899         should fix a problem on VMS reported by John E. Malmberg in
98900         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
98902 2007-12-17  Eric Blake  <ebb9@byu.net>
98904         Revert addition of verify, for BSD/OS.
98905         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
98906         can't handle large files, for the sake of obsolete platforms.
98907         * modules/fseeko (Depends-on): Remove verify.
98908         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
98909         * doc/functions/ftello.texi (ftello): Likewise.
98910         * doc/functions/fgetpos.texi (fgetpos): Likewise.
98911         Reported by Larry Jones.
98913 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
98915         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
98916         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
98918 2007-12-17  Jim Meyering  <meyering@redhat.com>
98920         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
98921         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
98922         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
98923         * modules/getcwd (Depends-on): Add openat.
98924         Reported by Petr Salinger.
98926 2007-12-17  Bruno Haible  <bruno@clisp.org>
98928         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
98929         avoid a segmentation fault of the configure test on x86_64 systems.
98931 2007-12-15  Jim Meyering  <meyering@redhat.com>
98933         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
98935 2007-12-13  Eric Blake  <ebb9@byu.net>
98937         Another fseek test.
98938         * tests/test-fseek.c (main): Also test ungetc handling.
98939         * tests/test-fseeko.c (main): Likewise.
98940         * modules/fseeko (Depends-on): Add verify.
98941         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
98942         large.
98943         Reported by Larry Jones.
98945         Fix fseeko on mingw.
98946         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
98947         seek.
98949         Beef up fseek tests.
98950         * tests/test-fseek.c (main): Also test eof handling.
98951         * tests/test-fseeko.c (main): Likewise.
98952         Reported by Larry Jones.
98954 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
98956         Fix fseeko on BSD-based platforms.
98957         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
98958         successful seek.
98960 2007-12-12  Eric Blake  <ebb9@byu.net>
98962         Allow circular dependency of separate libtests.a
98963         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
98964         when use_libtests.
98966 2007-12-11  Eric Blake  <ebb9@byu.net>
98968         Fix bug with -0.0L in previous patch.
98969         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
98970         * tests/test-isnan.c (main): Also test on zeroes.
98971         * tests/test-isnanf.c (main): Likewise.
98972         * tests/test-isnanl.h (main): Likewise.
98974         Detect pseudo-denormals on x86 even when cross-compiling.
98975         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
98976         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
98977         invalid bit patterns that happen to satisfy ==.
98979         Avoid link failures with separate libtests.a.
98980         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
98981         last, to satisfy circular dependencies.
98983 2007-12-11  Eric Blake  <ebb9@byu.net>
98984         and Bruno Haible  <bruno@clisp.org>
98986         Fix OpenBSD 4.0 <float.h> handling of long double.
98987         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
98988         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
98989         * doc/headers/float.texi (float.h): Document OpenBSD bug.
98991 2007-12-11  Jim Meyering  <meyering@redhat.com>
98993         * users.txt: Add libvirt.
98995         Support versions of autoconf prior to 2.59c.
98996         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
98997         if it is not already defined.
98999 2007-12-09  Bruno Haible  <bruno@clisp.org>
99001         Let 'gnulib-tool --import' collect sources needed for the tests in
99002         tests/ rather than in lib/.
99003         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
99004         argument. If true, add rules to generate libtests.a, and put libtests.a
99005         into $(LDADD). Consider source files in subdirectories and set
99006         uses_subdirs.
99007         (func_emit_initmacro_start, func_emit_initmacro_end,
99008         func_emit_initmacro_done): Pass all arguments explicitly.
99009         (func_import): Determine two module lists main_modules,
99010         testsrelated_modules. Determine use_libtests. Determine two variables
99011         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
99012         instead of just sed_transform_lib_file. Determine two variables
99013         main_files and testsrelated_files. Compute 'files' as the union of
99014         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
99015         func_add_or_update. In the generated gnulib-comp.m4, collect the
99016         object files for tests/ in different variables than those for lib/.
99017         Substitute LIBTESTS_LIBDEPS.
99018         (func_create_testdir): Combine the uses_subdirs results from
99019         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
99021 2007-12-09  Bruno Haible  <bruno@clisp.org>
99023         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
99024         the build-aux directory.
99026 2007-12-09  Bruno Haible  <bruno@clisp.org>
99028         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
99029         introduced on 2006-09-09.
99031 2007-12-07  Jim Meyering  <meyering@redhat.com>
99033         Let these macros work also with autoconf-2.59.
99034         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
99035         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
99036         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
99038 2007-12-06  Jim Meyering  <meyering@redhat.com>
99040         Avoid a configure-time syntax error in gl_FUNC_ACL.
99041         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
99042         function in each branch, before testing the cache variable.
99044 2007-12-04  Eric Blake  <ebb9@byu.net>
99046         Make scripts executable.
99047         * build-aux/config.guess: Add execute permissions.
99048         * build-aux/config.sub: Likewise.
99049         * build-aux/gendocs.sh: Likewise.
99051         Fix frexp on mingw.
99052         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
99053         cross-compiling.
99054         * doc/functions/frexp.texi (frexp): Document the bug.
99056         Make cygwin fseeko check more reliable.
99057         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
99058         version numbers, rather than unrelated feature check.
99059         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
99060         * doc/functions/ftello.texi (ftello): Likewise.
99061         Reported by Bruno Haible.
99063         * m4/strerror.m4: Bump version number.
99065 2007-12-03  Bruno Haible  <bruno@clisp.org>
99067         * doc/functions/mprotect.texi: Mention the mingw problem.
99069 2007-12-03  Eric Blake  <ebb9@byu.net>
99071         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
99072         REPLACE_STRERROR is initialized before this macro.
99074 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
99076         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
99077         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
99078         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
99079         put -lsec in even for programs other than 'ls'.  This fixes a problem
99080         for gettext reported by Bruno Haible in
99081         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
99082         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
99083         Add support for Solaris 10.  This isn't efficient, but should get the
99084         job done for now.
99086 2007-12-03  James Youngman  <jay@gnu.org>
99088         * doc/regexprops-generic.texi: change "an close-group" to "a
99089         close-group" and "illegal" to "not allowed".
99091 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99093         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
99094         pr_byname.h. Needed for the rare case when the maintainer has done
99095         "make maintainer-clean" in the source directory and then attempts a
99096         build outside the source directory.
99097         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
99098         scripts_byname.h.
99100 2007-12-02  Martin Lambers  <marlam@marlam.de>
99101             Bruno Haible  <bruno@clisp.org>
99103         * lib/getpagesize.h: Remove file.
99104         * lib/unistd.in.h: Include declaration of getpagesize here.
99105         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
99106         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
99107         HAVE_SYS_PARAM_H.
99108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
99109         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
99110         * modules/getpagesize (Files): Remove lib/getpagesize.h.
99111         (Depends-on): Add unistd.
99112         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
99113         (Include): Use <unistd.h> instead of getpagesize.h.
99114         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
99115         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
99116         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
99117         gl_GETPAGESIZE invocation, already handled by module dependency.
99118         * lib/pagealign_alloc.c: Don't include getpagesize.h.
99120 2007-12-02  Bruno Haible  <bruno@clisp.org>
99122         * modules/strings-tests: New file.
99123         * tests/test-strings.c: New file.
99125         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
99126         * lib/strings.in.h: New file.
99127         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
99128         * m4/strings_h.m4: New file.
99129         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
99130         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
99131         * modules/strings: New file.
99132         * modules/string (Makefile.am): Update.
99133         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
99134         Reported by Karl Berry.
99136 2007-12-01  Eric Blake  <ebb9@byu.net>
99138         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
99139         accommodate fix in cygwin 1.5.25.
99141 2007-12-01  Jim Meyering  <meyering@redhat.com>
99143         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
99144         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
99145         that would inhibit utf8-optimization of a regexp containing line-
99146         or buffer-anchors, e.g., `^', `$'.
99148 2007-11-30  Bruno Haible  <bruno@clisp.org>
99150         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
99151         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
99152         glthread_recursive_lock_init.
99153         * lib/lock.c (glthread_recursive_lock_init)
99154         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
99155         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
99157 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
99159         New function qset_acl, like set_acl but with syscall semantics.
99160         * lib/acl.h (qset_acl): New decl.
99161         * lib/acl.c (qset_acl): New function.
99162         (set_acl): Use new function.  Use more-consistent diagnostics.
99164 2007-11-28  Jim Meyering  <meyering@redhat.com>
99166         * modules/physmem (License): Change from GPL to LGPLv2+.
99168 2007-11-26  Bruno Haible  <bruno@clisp.org>
99170         * lib/vasnprintf.c (decode_long_double): Don't abort if the
99171         'long double' type has excess precision.
99172         Reported by Jim Meyering in
99173         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
99175 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99177         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
99178         Sync from <http://gnu.org/licenses>.
99179         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
99180         with license text from same location.
99181         * doc/maintain.texi, doc/standards.texi:  Sync from
99182         <http://savannah.gnu.org/projects/gnustandards>.
99184 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
99185         and Jim Meyering  <meyering@redhat.com>
99187         Adjust getdate' grammar to accept a slightly more regular language.
99188         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
99189         Before, the former was rejected.
99190         * lib/getdate.y (digits_to_date_time): New function, factored
99191         out of ...
99192         (number): ...here.  Just call digits_to_date_time.
99193         (hybrid): New non-terminal to handle an <unsigned number,
99194         signed relative offset> sequence consistently.
99196 2007-11-18  Jim Meyering  <meyering@redhat.com>
99198         Pull my changes from coreutils:
99199         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
99200         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
99201         use of $gnulib_tool_option_extras, so that it's separated from the
99202         preceding argument.
99204         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
99205         * build-aux/bootstrap (cp_mark_as_generated): Create any required
99206         parent destination directories before copying a file into place.
99208 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
99210         bootstrap: work also with 4-argument variant of AC_INIT
99211         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
99213 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
99215         Port test-getaddrinfo to Solaris.
99216         Problem reported by Bruno Haible in
99217         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
99218         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
99219         explanation of setting 'hints'.
99220         Don't reject an implementation merely because it returns EAI_SERVICE.
99221         (EAI_SERVICE): Define to 0 if not defined.
99223 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
99225         The license of gnu-make and posix-shell is now "GPLed build tool".
99226         * modules/gnu-make (License): Likewise.
99227         * modules/posix-shell (License): Likewise.
99229         New module posix-shell, for determining a POSIX shell
99230         or perhaps something that is close enough to a POSIX shell.
99231         * m4/posix-shell.m4: New file.
99232         * modules/posix-shell: New file.
99234         * MODULES.html.sh: Mention new module.
99236         New module gnu-make, for determining whether we're using GNU Make.
99237         * m4/gnu-make.m4: New file.
99238         * modules/gnu-make: New file.
99239         * MODULES.html.sh: Mention new module.
99241 2007-11-14  Jim Meyering  <meyering@redhat.com>
99243         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
99244         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
99245         use this macro to create a function _definition_.
99246         Remove useless "#undef ARGMATCH_DIE".
99248 2007-11-14  Bruno Haible  <bruno@clisp.org>
99250         * lib/config.charset: Update for OpenBSD 4.1.
99251         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
99253 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
99255         Document 64-bit #if problems in stdint.texi.
99256         * doc/headers/stdint.texi (stdint.h): Mention problems with
99257         64-bit-#if, and how to work around them.
99259         Don't insist on 'long long int' support in the preprocessor.  It
99260         breaks too many things.  For example, PRIdMAX still uses a 'long
99261         long int' format with the latest Sun compiler, even though
99262         HAVE_LONG_LONG_INT isn't defined due to that compiler's
99263         preprocessor problem.  This causes the latest coreutils to dump
99264         core on Solaris 10 sparc with the Sun C compiler.
99265         Instead, fix the 2007-10-16 problem in a different way, by evaluating
99266         the troublesome expressions at configure-time, not at #if-time.
99267         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
99268         preprocessor.
99269         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
99270         compile-time C checks, done at 'configure'-time.
99271         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
99272         * modules/inttypes (Makefile): Substitute the new symbols that
99273         gl_INTTYPES_H now generates.
99274         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
99276 2007-11-12  Bruno Haible  <bruno@clisp.org>
99278         Tests for Unicode character classification functions.
99280         * modules/unictype/bidicategory-byname-tests: New file.
99281         * modules/unictype/bidicategory-name-tests: New file.
99282         * modules/unictype/bidicategory-of-tests: New file.
99283         * modules/unictype/bidicategory-test-tests: New file.
99284         * modules/unictype/block-list-tests: New file.
99285         * modules/unictype/block-of-tests: New file.
99286         * modules/unictype/block-test-tests: New file.
99287         * modules/unictype/category-C-tests: New file.
99288         * modules/unictype/category-Cc-tests: New file.
99289         * modules/unictype/category-Cf-tests: New file.
99290         * modules/unictype/category-Cn-tests: New file.
99291         * modules/unictype/category-Co-tests: New file.
99292         * modules/unictype/category-Cs-tests: New file.
99293         * modules/unictype/category-L-tests: New file.
99294         * modules/unictype/category-Ll-tests: New file.
99295         * modules/unictype/category-Lm-tests: New file.
99296         * modules/unictype/category-Lo-tests: New file.
99297         * modules/unictype/category-Lt-tests: New file.
99298         * modules/unictype/category-Lu-tests: New file.
99299         * modules/unictype/category-M-tests: New file.
99300         * modules/unictype/category-Mc-tests: New file.
99301         * modules/unictype/category-Me-tests: New file.
99302         * modules/unictype/category-Mn-tests: New file.
99303         * modules/unictype/category-N-tests: New file.
99304         * modules/unictype/category-Nd-tests: New file.
99305         * modules/unictype/category-Nl-tests: New file.
99306         * modules/unictype/category-No-tests: New file.
99307         * modules/unictype/category-P-tests: New file.
99308         * modules/unictype/category-Pc-tests: New file.
99309         * modules/unictype/category-Pd-tests: New file.
99310         * modules/unictype/category-Pe-tests: New file.
99311         * modules/unictype/category-Pf-tests: New file.
99312         * modules/unictype/category-Pi-tests: New file.
99313         * modules/unictype/category-Po-tests: New file.
99314         * modules/unictype/category-Ps-tests: New file.
99315         * modules/unictype/category-S-tests: New file.
99316         * modules/unictype/category-Sc-tests: New file.
99317         * modules/unictype/category-Sk-tests: New file.
99318         * modules/unictype/category-Sm-tests: New file.
99319         * modules/unictype/category-So-tests: New file.
99320         * modules/unictype/category-Z-tests: New file.
99321         * modules/unictype/category-Zl-tests: New file.
99322         * modules/unictype/category-Zp-tests: New file.
99323         * modules/unictype/category-Zs-tests: New file.
99324         * modules/unictype/category-and-not-tests: New file.
99325         * modules/unictype/category-and-tests: New file.
99326         * modules/unictype/category-byname-tests: New file.
99327         * modules/unictype/category-name-tests: New file.
99328         * modules/unictype/category-none-tests: New file.
99329         * modules/unictype/category-of-tests: New file.
99330         * modules/unictype/category-or-tests: New file.
99331         * modules/unictype/category-test-withtable-tests: New file.
99332         * modules/unictype/combining-class-tests: New file.
99333         * modules/unictype/ctype-alnum-tests: New file.
99334         * modules/unictype/ctype-alpha-tests: New file.
99335         * modules/unictype/ctype-blank-tests: New file.
99336         * modules/unictype/ctype-cntrl-tests: New file.
99337         * modules/unictype/ctype-digit-tests: New file.
99338         * modules/unictype/ctype-graph-tests: New file.
99339         * modules/unictype/ctype-lower-tests: New file.
99340         * modules/unictype/ctype-print-tests: New file.
99341         * modules/unictype/ctype-punct-tests: New file.
99342         * modules/unictype/ctype-space-tests: New file.
99343         * modules/unictype/ctype-upper-tests: New file.
99344         * modules/unictype/ctype-xdigit-tests: New file.
99345         * modules/unictype/decimal-digit-tests: New file.
99346         * modules/unictype/digit-tests: New file.
99347         * modules/unictype/mirror-tests: New file.
99348         * modules/unictype/numeric-tests: New file.
99349         * modules/unictype/property-alphabetic-tests: New file.
99350         * modules/unictype/property-ascii-hex-digit-tests: New file.
99351         * modules/unictype/property-bidi-arabic-digit-tests: New file.
99352         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
99353         * modules/unictype/property-bidi-block-separator-tests: New file.
99354         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
99355         * modules/unictype/property-bidi-common-separator-tests: New file.
99356         * modules/unictype/property-bidi-control-tests: New file.
99357         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
99358         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
99359         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
99360         * modules/unictype/property-bidi-european-digit-tests: New file.
99361         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
99362         * modules/unictype/property-bidi-left-to-right-tests: New file.
99363         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
99364         * modules/unictype/property-bidi-other-neutral-tests: New file.
99365         * modules/unictype/property-bidi-pdf-tests: New file.
99366         * modules/unictype/property-bidi-segment-separator-tests: New file.
99367         * modules/unictype/property-bidi-whitespace-tests: New file.
99368         * modules/unictype/property-byname-tests: New file.
99369         * modules/unictype/property-combining-tests: New file.
99370         * modules/unictype/property-composite-tests: New file.
99371         * modules/unictype/property-currency-symbol-tests: New file.
99372         * modules/unictype/property-dash-tests: New file.
99373         * modules/unictype/property-decimal-digit-tests: New file.
99374         * modules/unictype/property-default-ignorable-code-point-tests: New file.
99375         * modules/unictype/property-deprecated-tests: New file.
99376         * modules/unictype/property-diacritic-tests: New file.
99377         * modules/unictype/property-extender-tests: New file.
99378         * modules/unictype/property-format-control-tests: New file.
99379         * modules/unictype/property-grapheme-base-tests: New file.
99380         * modules/unictype/property-grapheme-extend-tests: New file.
99381         * modules/unictype/property-grapheme-link-tests: New file.
99382         * modules/unictype/property-hex-digit-tests: New file.
99383         * modules/unictype/property-hyphen-tests: New file.
99384         * modules/unictype/property-id-continue-tests: New file.
99385         * modules/unictype/property-id-start-tests: New file.
99386         * modules/unictype/property-ideographic-tests: New file.
99387         * modules/unictype/property-ids-binary-operator-tests: New file.
99388         * modules/unictype/property-ids-trinary-operator-tests: New file.
99389         * modules/unictype/property-ignorable-control-tests: New file.
99390         * modules/unictype/property-iso-control-tests: New file.
99391         * modules/unictype/property-join-control-tests: New file.
99392         * modules/unictype/property-left-of-pair-tests: New file.
99393         * modules/unictype/property-line-separator-tests: New file.
99394         * modules/unictype/property-logical-order-exception-tests: New file.
99395         * modules/unictype/property-lowercase-tests: New file.
99396         * modules/unictype/property-math-tests: New file.
99397         * modules/unictype/property-non-break-tests: New file.
99398         * modules/unictype/property-not-a-character-tests: New file.
99399         * modules/unictype/property-numeric-tests: New file.
99400         * modules/unictype/property-other-alphabetic-tests: New file.
99401         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
99402         * modules/unictype/property-other-grapheme-extend-tests: New file.
99403         * modules/unictype/property-other-id-continue-tests: New file.
99404         * modules/unictype/property-other-id-start-tests: New file.
99405         * modules/unictype/property-other-lowercase-tests: New file.
99406         * modules/unictype/property-other-math-tests: New file.
99407         * modules/unictype/property-other-uppercase-tests: New file.
99408         * modules/unictype/property-paired-punctuation-tests: New file.
99409         * modules/unictype/property-paragraph-separator-tests: New file.
99410         * modules/unictype/property-pattern-syntax-tests: New file.
99411         * modules/unictype/property-pattern-white-space-tests: New file.
99412         * modules/unictype/property-private-use-tests: New file.
99413         * modules/unictype/property-punctuation-tests: New file.
99414         * modules/unictype/property-quotation-mark-tests: New file.
99415         * modules/unictype/property-radical-tests: New file.
99416         * modules/unictype/property-sentence-terminal-tests: New file.
99417         * modules/unictype/property-soft-dotted-tests: New file.
99418         * modules/unictype/property-space-tests: New file.
99419         * modules/unictype/property-terminal-punctuation-tests: New file.
99420         * modules/unictype/property-test-tests: New file.
99421         * modules/unictype/property-titlecase-tests: New file.
99422         * modules/unictype/property-unassigned-code-value-tests: New file.
99423         * modules/unictype/property-unified-ideograph-tests: New file.
99424         * modules/unictype/property-uppercase-tests: New file.
99425         * modules/unictype/property-variation-selector-tests: New file.
99426         * modules/unictype/property-white-space-tests: New file.
99427         * modules/unictype/property-xid-continue-tests: New file.
99428         * modules/unictype/property-xid-start-tests: New file.
99429         * modules/unictype/property-zero-width-tests: New file.
99430         * modules/unictype/scripts-tests: New file.
99431         * modules/unictype/syntax-c-ident-tests: New file.
99432         * modules/unictype/syntax-c-whitespace-tests: New file.
99433         * modules/unictype/syntax-java-ident-tests: New file.
99434         * modules/unictype/syntax-java-whitespace-tests: New file.
99435         * tests/unictype/test-bidi_byname.c: New file.
99436         * tests/unictype/test-bidi_name.c: New file.
99437         * tests/unictype/test-bidi_of.c: New file.
99438         * tests/unictype/test-bidi_test.c: New file.
99439         * tests/unictype/test-block_list.c: New file.
99440         * tests/unictype/test-block_of.c: New file.
99441         * tests/unictype/test-block_test.c: New file.
99442         * tests/unictype/test-categ_and.c: New file.
99443         * tests/unictype/test-categ_and_not.c: New file.
99444         * tests/unictype/test-categ_byname.c: New file.
99445         * tests/unictype/test-categ_name.c: New file.
99446         * tests/unictype/test-categ_none.c: New file.
99447         * tests/unictype/test-categ_of.c: New file.
99448         * tests/unictype/test-categ_or.c: New file.
99449         * tests/unictype/test-categ_test_withtable.c: New file.
99450         * tests/unictype/test-combining.c: New file.
99451         * tests/unictype/test-decdigit.c: New file.
99452         * tests/unictype/test-digit.c: New file.
99453         * tests/unictype/test-mirror.c: New file.
99454         * tests/unictype/test-numeric.c: New file.
99455         * tests/unictype/test-pr_byname.c: New file.
99456         * tests/unictype/test-pr_test.c: New file.
99457         * tests/unictype/test-predicate-part1.h: New file.
99458         * tests/unictype/test-predicate-part2.h: New file.
99459         * tests/unictype/test-scripts.c: New file.
99460         * tests/unictype/test-sy_c_ident.c: New file.
99461         * tests/unictype/test-sy_java_ident.c: New file.
99463         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
99464         for Unicode 5.0.0.
99465         * tests/unictype/test-categ_Cc.c: Likewise.
99466         * tests/unictype/test-categ_Cf.c: Likewise.
99467         * tests/unictype/test-categ_Cn.c: Likewise.
99468         * tests/unictype/test-categ_Co.c: Likewise.
99469         * tests/unictype/test-categ_Cs.c: Likewise.
99470         * tests/unictype/test-categ_L.c: Likewise.
99471         * tests/unictype/test-categ_Ll.c: Likewise.
99472         * tests/unictype/test-categ_Lm.c: Likewise.
99473         * tests/unictype/test-categ_Lo.c: Likewise.
99474         * tests/unictype/test-categ_Lt.c: Likewise.
99475         * tests/unictype/test-categ_Lu.c: Likewise.
99476         * tests/unictype/test-categ_M.c: Likewise.
99477         * tests/unictype/test-categ_Mc.c: Likewise.
99478         * tests/unictype/test-categ_Me.c: Likewise.
99479         * tests/unictype/test-categ_Mn.c: Likewise.
99480         * tests/unictype/test-categ_N.c: Likewise.
99481         * tests/unictype/test-categ_Nd.c: Likewise.
99482         * tests/unictype/test-categ_Nl.c: Likewise.
99483         * tests/unictype/test-categ_No.c: Likewise.
99484         * tests/unictype/test-categ_P.c: Likewise.
99485         * tests/unictype/test-categ_Pc.c: Likewise.
99486         * tests/unictype/test-categ_Pd.c: Likewise.
99487         * tests/unictype/test-categ_Pe.c: Likewise.
99488         * tests/unictype/test-categ_Pf.c: Likewise.
99489         * tests/unictype/test-categ_Pi.c: Likewise.
99490         * tests/unictype/test-categ_Po.c: Likewise.
99491         * tests/unictype/test-categ_Ps.c: Likewise.
99492         * tests/unictype/test-categ_S.c: Likewise.
99493         * tests/unictype/test-categ_Sc.c: Likewise.
99494         * tests/unictype/test-categ_Sk.c: Likewise.
99495         * tests/unictype/test-categ_Sm.c: Likewise.
99496         * tests/unictype/test-categ_So.c: Likewise.
99497         * tests/unictype/test-categ_Z.c: Likewise.
99498         * tests/unictype/test-categ_Zl.c: Likewise.
99499         * tests/unictype/test-categ_Zp.c: Likewise.
99500         * tests/unictype/test-categ_Zs.c: Likewise.
99501         * tests/unictype/test-ctype_alnum.c: Likewise.
99502         * tests/unictype/test-ctype_alpha.c: Likewise.
99503         * tests/unictype/test-ctype_blank.c: Likewise.
99504         * tests/unictype/test-ctype_cntrl.c: Likewise.
99505         * tests/unictype/test-ctype_digit.c: Likewise.
99506         * tests/unictype/test-ctype_graph.c: Likewise.
99507         * tests/unictype/test-ctype_lower.c: Likewise.
99508         * tests/unictype/test-ctype_print.c: Likewise.
99509         * tests/unictype/test-ctype_punct.c: Likewise.
99510         * tests/unictype/test-ctype_space.c: Likewise.
99511         * tests/unictype/test-ctype_upper.c: Likewise.
99512         * tests/unictype/test-ctype_xdigit.c: Likewise.
99513         * tests/unictype/test-decdigit.h: Likewise.
99514         * tests/unictype/test-digit.h: Likewise.
99515         * tests/unictype/test-numeric.h: Likewise.
99516         * tests/unictype/test-pr_alphabetic.c: Likewise.
99517         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
99518         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
99519         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
99520         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
99521         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
99522         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
99523         * tests/unictype/test-pr_bidi_control.c: Likewise.
99524         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
99525         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
99526         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
99527         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
99528         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
99529         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
99530         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
99531         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
99532         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
99533         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
99534         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
99535         * tests/unictype/test-pr_combining.c: Likewise.
99536         * tests/unictype/test-pr_composite.c: Likewise.
99537         * tests/unictype/test-pr_currency_symbol.c: Likewise.
99538         * tests/unictype/test-pr_dash.c: Likewise.
99539         * tests/unictype/test-pr_decimal_digit.c: Likewise.
99540         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
99541         * tests/unictype/test-pr_deprecated.c: Likewise.
99542         * tests/unictype/test-pr_diacritic.c: Likewise.
99543         * tests/unictype/test-pr_extender.c: Likewise.
99544         * tests/unictype/test-pr_format_control.c: Likewise.
99545         * tests/unictype/test-pr_grapheme_base.c: Likewise.
99546         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
99547         * tests/unictype/test-pr_grapheme_link.c: Likewise.
99548         * tests/unictype/test-pr_hex_digit.c: Likewise.
99549         * tests/unictype/test-pr_hyphen.c: Likewise.
99550         * tests/unictype/test-pr_id_continue.c: Likewise.
99551         * tests/unictype/test-pr_id_start.c: Likewise.
99552         * tests/unictype/test-pr_ideographic.c: Likewise.
99553         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
99554         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
99555         * tests/unictype/test-pr_ignorable_control.c: Likewise.
99556         * tests/unictype/test-pr_iso_control.c: Likewise.
99557         * tests/unictype/test-pr_join_control.c: Likewise.
99558         * tests/unictype/test-pr_left_of_pair.c: Likewise.
99559         * tests/unictype/test-pr_line_separator.c: Likewise.
99560         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
99561         * tests/unictype/test-pr_lowercase.c: Likewise.
99562         * tests/unictype/test-pr_math.c: Likewise.
99563         * tests/unictype/test-pr_non_break.c: Likewise.
99564         * tests/unictype/test-pr_not_a_character.c: Likewise.
99565         * tests/unictype/test-pr_numeric.c: Likewise.
99566         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
99567         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
99568         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
99569         * tests/unictype/test-pr_other_id_continue.c: Likewise.
99570         * tests/unictype/test-pr_other_id_start.c: Likewise.
99571         * tests/unictype/test-pr_other_lowercase.c: Likewise.
99572         * tests/unictype/test-pr_other_math.c: Likewise.
99573         * tests/unictype/test-pr_other_uppercase.c: Likewise.
99574         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
99575         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
99576         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
99577         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
99578         * tests/unictype/test-pr_private_use.c: Likewise.
99579         * tests/unictype/test-pr_punctuation.c: Likewise.
99580         * tests/unictype/test-pr_quotation_mark.c: Likewise.
99581         * tests/unictype/test-pr_radical.c: Likewise.
99582         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
99583         * tests/unictype/test-pr_soft_dotted.c: Likewise.
99584         * tests/unictype/test-pr_space.c: Likewise.
99585         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
99586         * tests/unictype/test-pr_titlecase.c: Likewise.
99587         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
99588         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
99589         * tests/unictype/test-pr_uppercase.c: Likewise.
99590         * tests/unictype/test-pr_variation_selector.c: Likewise.
99591         * tests/unictype/test-pr_white_space.c: Likewise.
99592         * tests/unictype/test-pr_xid_continue.c: Likewise.
99593         * tests/unictype/test-pr_xid_start.c: Likewise.
99594         * tests/unictype/test-pr_zero_width.c: Likewise.
99595         * tests/unictype/test-sy_c_whitespace.c: Likewise.
99596         * tests/unictype/test-sy_java_whitespace.c: Likewise.
99598 2007-11-12  Bruno Haible  <bruno@clisp.org>
99600         Unicode character classification functions.
99601         * lib/unictype.h: New file.
99602         * modules/unictype/base: New file.
99603         * modules/unictype/category-L: New file.
99604         * modules/unictype/category-Lu: New file.
99605         * modules/unictype/category-Ll: New file.
99606         * modules/unictype/category-Lt: New file.
99607         * modules/unictype/category-Lm: New file.
99608         * modules/unictype/category-Lo: New file.
99609         * modules/unictype/category-M: New file.
99610         * modules/unictype/category-Mn: New file.
99611         * modules/unictype/category-Mc: New file.
99612         * modules/unictype/category-Me: New file.
99613         * modules/unictype/category-N: New file.
99614         * modules/unictype/category-Nd: New file.
99615         * modules/unictype/category-Nl: New file.
99616         * modules/unictype/category-No: New file.
99617         * modules/unictype/category-P: New file.
99618         * modules/unictype/category-Pc: New file.
99619         * modules/unictype/category-Pd: New file.
99620         * modules/unictype/category-Ps: New file.
99621         * modules/unictype/category-Pe: New file.
99622         * modules/unictype/category-Pi: New file.
99623         * modules/unictype/category-Pf: New file.
99624         * modules/unictype/category-Po: New file.
99625         * modules/unictype/category-S: New file.
99626         * modules/unictype/category-Sm: New file.
99627         * modules/unictype/category-Sc: New file.
99628         * modules/unictype/category-Sk: New file.
99629         * modules/unictype/category-So: New file.
99630         * modules/unictype/category-Z: New file.
99631         * modules/unictype/category-Zs: New file.
99632         * modules/unictype/category-Zl: New file.
99633         * modules/unictype/category-Zp: New file.
99634         * modules/unictype/category-C: New file.
99635         * modules/unictype/category-Cc: New file.
99636         * modules/unictype/category-Cf: New file.
99637         * modules/unictype/category-Cs: New file.
99638         * modules/unictype/category-Co: New file.
99639         * modules/unictype/category-Cn: New file.
99640         * modules/unictype/category-or: New file.
99641         * modules/unictype/category-of: New file.
99642         * modules/unictype/category-test: New file.
99643         * modules/unictype/category-test-withtable: New file.
99644         * modules/unictype/category-byname: New file.
99645         * modules/unictype/category-none: New file.
99646         * modules/unictype/category-and: New file.
99647         * modules/unictype/category-and-not: New file.
99648         * modules/unictype/category-name: New file.
99649         * modules/unictype/combining-class: New file.
99650         * modules/unictype/category-all: New file.
99651         * modules/unictype/bidicategory-all: New file.
99652         * modules/unictype/bidicategory-byname: New file.
99653         * modules/unictype/bidicategory-name: New file.
99654         * modules/unictype/bidicategory-of: New file.
99655         * modules/unictype/bidicategory-test: New file.
99656         * modules/unictype/decimal-digit: New file.
99657         * modules/unictype/digit: New file.
99658         * modules/unictype/numeric: New file.
99659         * modules/unictype/mirror: New file.
99660         * modules/unictype/property-white-space: New file.
99661         * modules/unictype/property-alphabetic: New file.
99662         * modules/unictype/property-other-alphabetic: New file.
99663         * modules/unictype/property-not-a-character: New file.
99664         * modules/unictype/property-default-ignorable-code-point: New file.
99665         * modules/unictype/property-other-default-ignorable-code-point: New
99666         file.
99667         * modules/unictype/property-deprecated: New file.
99668         * modules/unictype/property-logical-order-exception: New file.
99669         * modules/unictype/property-variation-selector: New file.
99670         * modules/unictype/property-private-use: New file.
99671         * modules/unictype/property-unassigned-code-value: New file.
99672         * modules/unictype/property-uppercase: New file.
99673         * modules/unictype/property-other-uppercase: New file.
99674         * modules/unictype/property-lowercase: New file.
99675         * modules/unictype/property-other-lowercase: New file.
99676         * modules/unictype/property-titlecase: New file.
99677         * modules/unictype/property-soft-dotted: New file.
99678         * modules/unictype/property-id-start: New file.
99679         * modules/unictype/property-other-id-start: New file.
99680         * modules/unictype/property-id-continue: New file.
99681         * modules/unictype/property-other-id-continue: New file.
99682         * modules/unictype/property-xid-start: New file.
99683         * modules/unictype/property-xid-continue: New file.
99684         * modules/unictype/property-pattern-white-space: New file.
99685         * modules/unictype/property-pattern-syntax: New file.
99686         * modules/unictype/property-join-control: New file.
99687         * modules/unictype/property-grapheme-base: New file.
99688         * modules/unictype/property-grapheme-extend: New file.
99689         * modules/unictype/property-other-grapheme-extend: New file.
99690         * modules/unictype/property-grapheme-link: New file.
99691         * modules/unictype/property-bidi-control: New file.
99692         * modules/unictype/property-bidi-left-to-right: New file.
99693         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
99694         * modules/unictype/property-bidi-arabic-right-to-left: New file.
99695         * modules/unictype/property-bidi-european-digit: New file.
99696         * modules/unictype/property-bidi-eur-num-separator: New file.
99697         * modules/unictype/property-bidi-eur-num-terminator: New file.
99698         * modules/unictype/property-bidi-arabic-digit: New file.
99699         * modules/unictype/property-bidi-common-separator: New file.
99700         * modules/unictype/property-bidi-block-separator: New file.
99701         * modules/unictype/property-bidi-segment-separator: New file.
99702         * modules/unictype/property-bidi-whitespace: New file.
99703         * modules/unictype/property-bidi-non-spacing-mark: New file.
99704         * modules/unictype/property-bidi-boundary-neutral: New file.
99705         * modules/unictype/property-bidi-pdf: New file.
99706         * modules/unictype/property-bidi-embedding-or-override: New file.
99707         * modules/unictype/property-bidi-other-neutral: New file.
99708         * modules/unictype/property-hex-digit: New file.
99709         * modules/unictype/property-ascii-hex-digit: New file.
99710         * modules/unictype/property-ideographic: New file.
99711         * modules/unictype/property-unified-ideograph: New file.
99712         * modules/unictype/property-radical: New file.
99713         * modules/unictype/property-ids-binary-operator: New file.
99714         * modules/unictype/property-ids-trinary-operator: New file.
99715         * modules/unictype/property-zero-width: New file.
99716         * modules/unictype/property-space: New file.
99717         * modules/unictype/property-non-break: New file.
99718         * modules/unictype/property-iso-control: New file.
99719         * modules/unictype/property-format-control: New file.
99720         * modules/unictype/property-dash: New file.
99721         * modules/unictype/property-hyphen: New file.
99722         * modules/unictype/property-punctuation: New file.
99723         * modules/unictype/property-line-separator: New file.
99724         * modules/unictype/property-paragraph-separator: New file.
99725         * modules/unictype/property-quotation-mark: New file.
99726         * modules/unictype/property-sentence-terminal: New file.
99727         * modules/unictype/property-terminal-punctuation: New file.
99728         * modules/unictype/property-currency-symbol: New file.
99729         * modules/unictype/property-math: New file.
99730         * modules/unictype/property-other-math: New file.
99731         * modules/unictype/property-paired-punctuation: New file.
99732         * modules/unictype/property-left-of-pair: New file.
99733         * modules/unictype/property-combining: New file.
99734         * modules/unictype/property-composite: New file.
99735         * modules/unictype/property-decimal-digit: New file.
99736         * modules/unictype/property-numeric: New file.
99737         * modules/unictype/property-diacritic: New file.
99738         * modules/unictype/property-extender: New file.
99739         * modules/unictype/property-ignorable-control: New file.
99740         * modules/unictype/property-test: New file.
99741         * modules/unictype/property-byname: New file.
99742         * modules/unictype/property-all: New file.
99743         * modules/unictype/scripts: New file.
99744         * modules/unictype/scripts-all: New file.
99745         * modules/unictype/block-of: New file.
99746         * modules/unictype/block-test: New file.
99747         * modules/unictype/block-list: New file.
99748         * modules/unictype/block-all: New file.
99749         * modules/unictype/syntax-c-whitespace: New file.
99750         * modules/unictype/syntax-java-whitespace: New file.
99751         * modules/unictype/syntax-c-ident: New file.
99752         * modules/unictype/syntax-java-ident: New file.
99753         * modules/unictype/ctype-alnum: New file.
99754         * modules/unictype/ctype-alpha: New file.
99755         * modules/unictype/ctype-cntrl: New file.
99756         * modules/unictype/ctype-digit: New file.
99757         * modules/unictype/ctype-graph: New file.
99758         * modules/unictype/ctype-lower: New file.
99759         * modules/unictype/ctype-print: New file.
99760         * modules/unictype/ctype-punct: New file.
99761         * modules/unictype/ctype-space: New file.
99762         * modules/unictype/ctype-upper: New file.
99763         * modules/unictype/ctype-xdigit: New file.
99764         * modules/unictype/ctype-blank: New file.
99765         * lib/unictype/bidi_byname.c: New file.
99766         * lib/unictype/bidi_name.c: New file.
99767         * lib/unictype/bidi_of.c: New file.
99768         * lib/unictype/bidi_test.c: New file.
99769         * lib/unictype/bitmap.h: New file.
99770         * lib/unictype/block_test.c: New file.
99771         * lib/unictype/blocks.c: New file.
99772         * lib/unictype/categ_C.c: New file.
99773         * lib/unictype/categ_Cc.c: New file.
99774         * lib/unictype/categ_Cf.c: New file.
99775         * lib/unictype/categ_Cn.c: New file.
99776         * lib/unictype/categ_Co.c: New file.
99777         * lib/unictype/categ_Cs.c: New file.
99778         * lib/unictype/categ_L.c: New file.
99779         * lib/unictype/categ_Ll.c: New file.
99780         * lib/unictype/categ_Lm.c: New file.
99781         * lib/unictype/categ_Lo.c: New file.
99782         * lib/unictype/categ_Lt.c: New file.
99783         * lib/unictype/categ_Lu.c: New file.
99784         * lib/unictype/categ_M.c: New file.
99785         * lib/unictype/categ_Mc.c: New file.
99786         * lib/unictype/categ_Me.c: New file.
99787         * lib/unictype/categ_Mn.c: New file.
99788         * lib/unictype/categ_N.c: New file.
99789         * lib/unictype/categ_Nd.c: New file.
99790         * lib/unictype/categ_Nl.c: New file.
99791         * lib/unictype/categ_No.c: New file.
99792         * lib/unictype/categ_P.c: New file.
99793         * lib/unictype/categ_Pc.c: New file.
99794         * lib/unictype/categ_Pd.c: New file.
99795         * lib/unictype/categ_Pe.c: New file.
99796         * lib/unictype/categ_Pf.c: New file.
99797         * lib/unictype/categ_Pi.c: New file.
99798         * lib/unictype/categ_Po.c: New file.
99799         * lib/unictype/categ_Ps.c: New file.
99800         * lib/unictype/categ_S.c: New file.
99801         * lib/unictype/categ_Sc.c: New file.
99802         * lib/unictype/categ_Sk.c: New file.
99803         * lib/unictype/categ_Sm.c: New file.
99804         * lib/unictype/categ_So.c: New file.
99805         * lib/unictype/categ_Z.c: New file.
99806         * lib/unictype/categ_Zl.c: New file.
99807         * lib/unictype/categ_Zp.c: New file.
99808         * lib/unictype/categ_Zs.c: New file.
99809         * lib/unictype/categ_and.c: New file.
99810         * lib/unictype/categ_and_not.c: New file.
99811         * lib/unictype/categ_byname.c: New file.
99812         * lib/unictype/categ_name.c: New file.
99813         * lib/unictype/categ_none.c: New file.
99814         * lib/unictype/categ_of.c: New file.
99815         * lib/unictype/categ_or.c: New file.
99816         * lib/unictype/categ_test.c: New file.
99817         * lib/unictype/combining.c: New file.
99818         * lib/unictype/ctype_alnum.c: New file.
99819         * lib/unictype/ctype_alpha.c: New file.
99820         * lib/unictype/ctype_blank.c: New file.
99821         * lib/unictype/ctype_cntrl.c: New file.
99822         * lib/unictype/ctype_digit.c: New file.
99823         * lib/unictype/ctype_graph.c: New file.
99824         * lib/unictype/ctype_lower.c: New file.
99825         * lib/unictype/ctype_print.c: New file.
99826         * lib/unictype/ctype_punct.c: New file.
99827         * lib/unictype/ctype_space.c: New file.
99828         * lib/unictype/ctype_upper.c: New file.
99829         * lib/unictype/ctype_xdigit.c: New file.
99830         * lib/unictype/decdigit.c: New file.
99831         * lib/unictype/digit.c: New file.
99832         * lib/unictype/identsyntaxmap.h: New file.
99833         * lib/unictype/mirror.c: New file.
99834         * lib/unictype/numeric.c: New file.
99835         * lib/unictype/pr_alphabetic.c: New file.
99836         * lib/unictype/pr_ascii_hex_digit.c: New file.
99837         * lib/unictype/pr_bidi_arabic_digit.c: New file.
99838         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
99839         * lib/unictype/pr_bidi_block_separator.c: New file.
99840         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
99841         * lib/unictype/pr_bidi_common_separator.c: New file.
99842         * lib/unictype/pr_bidi_control.c: New file.
99843         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
99844         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
99845         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
99846         * lib/unictype/pr_bidi_european_digit.c: New file.
99847         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
99848         * lib/unictype/pr_bidi_left_to_right.c: New file.
99849         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
99850         * lib/unictype/pr_bidi_other_neutral.c: New file.
99851         * lib/unictype/pr_bidi_pdf.c: New file.
99852         * lib/unictype/pr_bidi_segment_separator.c: New file.
99853         * lib/unictype/pr_bidi_whitespace.c: New file.
99854         * lib/unictype/pr_byname.c: New file.
99855         * lib/unictype/pr_byname.gperf: New file.
99856         * lib/unictype/pr_combining.c: New file.
99857         * lib/unictype/pr_composite.c: New file.
99858         * lib/unictype/pr_currency_symbol.c: New file.
99859         * lib/unictype/pr_dash.c: New file.
99860         * lib/unictype/pr_decimal_digit.c: New file.
99861         * lib/unictype/pr_default_ignorable_code_point.c: New file.
99862         * lib/unictype/pr_deprecated.c: New file.
99863         * lib/unictype/pr_diacritic.c: New file.
99864         * lib/unictype/pr_extender.c: New file.
99865         * lib/unictype/pr_format_control.c: New file.
99866         * lib/unictype/pr_grapheme_base.c: New file.
99867         * lib/unictype/pr_grapheme_extend.c: New file.
99868         * lib/unictype/pr_grapheme_link.c: New file.
99869         * lib/unictype/pr_hex_digit.c: New file.
99870         * lib/unictype/pr_hyphen.c: New file.
99871         * lib/unictype/pr_id_continue.c: New file.
99872         * lib/unictype/pr_id_start.c: New file.
99873         * lib/unictype/pr_ideographic.c: New file.
99874         * lib/unictype/pr_ids_binary_operator.c: New file.
99875         * lib/unictype/pr_ids_trinary_operator.c: New file.
99876         * lib/unictype/pr_ignorable_control.c: New file.
99877         * lib/unictype/pr_iso_control.c: New file.
99878         * lib/unictype/pr_join_control.c: New file.
99879         * lib/unictype/pr_left_of_pair.c: New file.
99880         * lib/unictype/pr_line_separator.c: New file.
99881         * lib/unictype/pr_logical_order_exception.c: New file.
99882         * lib/unictype/pr_lowercase.c: New file.
99883         * lib/unictype/pr_math.c: New file.
99884         * lib/unictype/pr_non_break.c: New file.
99885         * lib/unictype/pr_not_a_character.c: New file.
99886         * lib/unictype/pr_numeric.c: New file.
99887         * lib/unictype/pr_other_alphabetic.c: New file.
99888         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
99889         * lib/unictype/pr_other_grapheme_extend.c: New file.
99890         * lib/unictype/pr_other_id_continue.c: New file.
99891         * lib/unictype/pr_other_id_start.c: New file.
99892         * lib/unictype/pr_other_lowercase.c: New file.
99893         * lib/unictype/pr_other_math.c: New file.
99894         * lib/unictype/pr_other_uppercase.c: New file.
99895         * lib/unictype/pr_paired_punctuation.c: New file.
99896         * lib/unictype/pr_paragraph_separator.c: New file.
99897         * lib/unictype/pr_pattern_syntax.c: New file.
99898         * lib/unictype/pr_pattern_white_space.c: New file.
99899         * lib/unictype/pr_private_use.c: New file.
99900         * lib/unictype/pr_punctuation.c: New file.
99901         * lib/unictype/pr_quotation_mark.c: New file.
99902         * lib/unictype/pr_radical.c: New file.
99903         * lib/unictype/pr_sentence_terminal.c: New file.
99904         * lib/unictype/pr_soft_dotted.c: New file.
99905         * lib/unictype/pr_space.c: New file.
99906         * lib/unictype/pr_terminal_punctuation.c: New file.
99907         * lib/unictype/pr_test.c: New file.
99908         * lib/unictype/pr_titlecase.c: New file.
99909         * lib/unictype/pr_unassigned_code_value.c: New file.
99910         * lib/unictype/pr_unified_ideograph.c: New file.
99911         * lib/unictype/pr_uppercase.c: New file.
99912         * lib/unictype/pr_variation_selector.c: New file.
99913         * lib/unictype/pr_white_space.c: New file.
99914         * lib/unictype/pr_xid_continue.c: New file.
99915         * lib/unictype/pr_xid_start.c: New file.
99916         * lib/unictype/pr_zero_width.c: New file.
99917         * lib/unictype/scripts.c: New file.
99918         * lib/unictype/sy_c_ident.c: New file.
99919         * lib/unictype/sy_c_whitespace.c: New file.
99920         * lib/unictype/sy_java_ident.c: New file.
99921         * lib/unictype/sy_java_whitespace.c: New file.
99923         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
99924         Unicode 5.0.0.
99925         * lib/unictype/blocks.h: Likewise.
99926         * lib/unictype/categ_C.h: Likewise.
99927         * lib/unictype/categ_Cc.h: Likewise.
99928         * lib/unictype/categ_Cf.h: Likewise.
99929         * lib/unictype/categ_Cn.h: Likewise.
99930         * lib/unictype/categ_Co.h: Likewise.
99931         * lib/unictype/categ_Cs.h: Likewise.
99932         * lib/unictype/categ_L.h: Likewise.
99933         * lib/unictype/categ_Ll.h: Likewise.
99934         * lib/unictype/categ_Lm.h: Likewise.
99935         * lib/unictype/categ_Lo.h: Likewise.
99936         * lib/unictype/categ_Lt.h: Likewise.
99937         * lib/unictype/categ_Lu.h: Likewise.
99938         * lib/unictype/categ_M.h: Likewise.
99939         * lib/unictype/categ_Mc.h: Likewise.
99940         * lib/unictype/categ_Me.h: Likewise.
99941         * lib/unictype/categ_Mn.h: Likewise.
99942         * lib/unictype/categ_N.h: Likewise.
99943         * lib/unictype/categ_Nd.h: Likewise.
99944         * lib/unictype/categ_Nl.h: Likewise.
99945         * lib/unictype/categ_No.h: Likewise.
99946         * lib/unictype/categ_P.h: Likewise.
99947         * lib/unictype/categ_Pc.h: Likewise.
99948         * lib/unictype/categ_Pd.h: Likewise.
99949         * lib/unictype/categ_Pe.h: Likewise.
99950         * lib/unictype/categ_Pf.h: Likewise.
99951         * lib/unictype/categ_Pi.h: Likewise.
99952         * lib/unictype/categ_Po.h: Likewise.
99953         * lib/unictype/categ_Ps.h: Likewise.
99954         * lib/unictype/categ_S.h: Likewise.
99955         * lib/unictype/categ_Sc.h: Likewise.
99956         * lib/unictype/categ_Sk.h: Likewise.
99957         * lib/unictype/categ_Sm.h: Likewise.
99958         * lib/unictype/categ_So.h: Likewise.
99959         * lib/unictype/categ_Z.h: Likewise.
99960         * lib/unictype/categ_Zl.h: Likewise.
99961         * lib/unictype/categ_Zp.h: Likewise.
99962         * lib/unictype/categ_Zs.h: Likewise.
99963         * lib/unictype/categ_of.h: Likewise.
99964         * lib/unictype/combining.h: Likewise.
99965         * lib/unictype/ctype_alnum.h: Likewise.
99966         * lib/unictype/ctype_alpha.h: Likewise.
99967         * lib/unictype/ctype_blank.h: Likewise.
99968         * lib/unictype/ctype_cntrl.h: Likewise.
99969         * lib/unictype/ctype_digit.h: Likewise.
99970         * lib/unictype/ctype_graph.h: Likewise.
99971         * lib/unictype/ctype_lower.h: Likewise.
99972         * lib/unictype/ctype_print.h: Likewise.
99973         * lib/unictype/ctype_punct.h: Likewise.
99974         * lib/unictype/ctype_space.h: Likewise.
99975         * lib/unictype/ctype_upper.h: Likewise.
99976         * lib/unictype/ctype_xdigit.h: Likewise.
99977         * lib/unictype/decdigit.h: Likewise.
99978         * lib/unictype/digit.h: Likewise.
99979         * lib/unictype/mirror.h: Likewise.
99980         * lib/unictype/numeric.h: Likewise.
99981         * lib/unictype/pr_alphabetic.h: Likewise.
99982         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
99983         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
99984         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
99985         * lib/unictype/pr_bidi_block_separator.h: Likewise.
99986         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
99987         * lib/unictype/pr_bidi_common_separator.h: Likewise.
99988         * lib/unictype/pr_bidi_control.h: Likewise.
99989         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
99990         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
99991         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
99992         * lib/unictype/pr_bidi_european_digit.h: Likewise.
99993         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
99994         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
99995         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
99996         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
99997         * lib/unictype/pr_bidi_pdf.h: Likewise.
99998         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
99999         * lib/unictype/pr_bidi_whitespace.h: Likewise.
100000         * lib/unictype/pr_combining.h: Likewise.
100001         * lib/unictype/pr_composite.h: Likewise.
100002         * lib/unictype/pr_currency_symbol.h: Likewise.
100003         * lib/unictype/pr_dash.h: Likewise.
100004         * lib/unictype/pr_decimal_digit.h: Likewise.
100005         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
100006         * lib/unictype/pr_deprecated.h: Likewise.
100007         * lib/unictype/pr_diacritic.h: Likewise.
100008         * lib/unictype/pr_extender.h: Likewise.
100009         * lib/unictype/pr_format_control.h: Likewise.
100010         * lib/unictype/pr_grapheme_base.h: Likewise.
100011         * lib/unictype/pr_grapheme_extend.h: Likewise.
100012         * lib/unictype/pr_grapheme_link.h: Likewise.
100013         * lib/unictype/pr_hex_digit.h: Likewise.
100014         * lib/unictype/pr_hyphen.h: Likewise.
100015         * lib/unictype/pr_id_continue.h: Likewise.
100016         * lib/unictype/pr_id_start.h: Likewise.
100017         * lib/unictype/pr_ideographic.h: Likewise.
100018         * lib/unictype/pr_ids_binary_operator.h: Likewise.
100019         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
100020         * lib/unictype/pr_ignorable_control.h: Likewise.
100021         * lib/unictype/pr_iso_control.h: Likewise.
100022         * lib/unictype/pr_join_control.h: Likewise.
100023         * lib/unictype/pr_left_of_pair.h: Likewise.
100024         * lib/unictype/pr_line_separator.h: Likewise.
100025         * lib/unictype/pr_logical_order_exception.h: Likewise.
100026         * lib/unictype/pr_lowercase.h: Likewise.
100027         * lib/unictype/pr_math.h: Likewise.
100028         * lib/unictype/pr_non_break.h: Likewise.
100029         * lib/unictype/pr_not_a_character.h: Likewise.
100030         * lib/unictype/pr_numeric.h: Likewise.
100031         * lib/unictype/pr_other_alphabetic.h: Likewise.
100032         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
100033         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
100034         * lib/unictype/pr_other_id_continue.h: Likewise.
100035         * lib/unictype/pr_other_id_start.h: Likewise.
100036         * lib/unictype/pr_other_lowercase.h: Likewise.
100037         * lib/unictype/pr_other_math.h: Likewise.
100038         * lib/unictype/pr_other_uppercase.h: Likewise.
100039         * lib/unictype/pr_paired_punctuation.h: Likewise.
100040         * lib/unictype/pr_paragraph_separator.h: Likewise.
100041         * lib/unictype/pr_pattern_syntax.h: Likewise.
100042         * lib/unictype/pr_pattern_white_space.h: Likewise.
100043         * lib/unictype/pr_private_use.h: Likewise.
100044         * lib/unictype/pr_punctuation.h: Likewise.
100045         * lib/unictype/pr_quotation_mark.h: Likewise.
100046         * lib/unictype/pr_radical.h: Likewise.
100047         * lib/unictype/pr_sentence_terminal.h: Likewise.
100048         * lib/unictype/pr_soft_dotted.h: Likewise.
100049         * lib/unictype/pr_space.h: Likewise.
100050         * lib/unictype/pr_terminal_punctuation.h: Likewise.
100051         * lib/unictype/pr_titlecase.h: Likewise.
100052         * lib/unictype/pr_unassigned_code_value.h: Likewise.
100053         * lib/unictype/pr_unified_ideograph.h: Likewise.
100054         * lib/unictype/pr_uppercase.h: Likewise.
100055         * lib/unictype/pr_variation_selector.h: Likewise.
100056         * lib/unictype/pr_white_space.h: Likewise.
100057         * lib/unictype/pr_xid_continue.h: Likewise.
100058         * lib/unictype/pr_xid_start.h: Likewise.
100059         * lib/unictype/pr_zero_width.h: Likewise.
100060         * lib/unictype/scripts.h: Likewise.
100061         * lib/unictype/scripts_byname.gperf: Likewise.
100062         * lib/unictype/sy_c_ident.h: Likewise.
100063         * lib/unictype/sy_c_whitespace.h: Likewise.
100064         * lib/unictype/sy_java_ident.h: Likewise.
100065         * lib/unictype/sy_java_whitespace.h: Likewise.
100067         * lib/unictype/Makefile: New file.
100068         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
100069         glibc.
100070         * lib/unictype/3level.h: New file, copied from glibc.
100071         * lib/unictype/3levelbit.h: New file.
100073 2007-11-11  Bruno Haible  <bruno@clisp.org>
100075         * modules/gperf: New file.
100076         * modules/iconv_open (Depends-on): Add it.
100077         (Makefile.am): Remove the GPERF definition.
100079 2007-11-11  Bruno Haible  <bruno@clisp.org>
100081         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
100082         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
100084 2007-11-11  Bruno Haible  <bruno@clisp.org>
100086         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
100087         (usage): Remove function.
100089 2007-11-11  Bruno Haible  <bruno@clisp.org>
100091         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
100092         gl_FUNC_CEILF_LIBS.
100093         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
100094         gl_FUNC_CEIL_LIBS.
100095         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
100096         gl_FUNC_CEILL_LIBS.
100097         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
100098         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
100099         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
100101 2007-11-11  Bruno Haible  <bruno@clisp.org>
100103         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
100104         roundf were declared but do not exist on functions.
100105         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
100106         roundl were declared but do not exist on functions.
100107         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
100108         HAVE_FLOORL_AND_CEILL, respectively.
100109         Needed for Sun C on Solaris 10.
100111 2007-11-11  Bruno Haible  <bruno@clisp.org>
100113         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
100114         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
100115         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
100116         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
100117         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
100118         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
100119         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
100120         HAVE_DECL_ROUNDF.
100121         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
100122         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
100123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
100124         of HAVE_DECL_ROUND*.
100125         * modules/math (Makefile.am): Update.
100127 2007-11-10  Bruno Haible  <bruno@clisp.org>
100129         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
100130         ptrdiff_t as m4/intl.m4.
100132 2007-11-10  Jim Meyering  <meyering@redhat.com>
100134         Avoid link failure for the argmatch test.
100135         * tests/test-argmatch.c (usage): Define function to avoid a link
100136         failure: argmatch_die requires a usage function.
100138 2007-11-09  Bruno Haible  <bruno@clisp.org>
100140         * doc/functions/snprintf.texi: Mention BeOS deficiency.
100141         * doc/functions/vsnprintf.texi: Likewise.
100142         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
100143         with a size argument < 2.
100145 2007-11-09  Bruno Haible  <bruno@clisp.org>
100147         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
100148         buffer. Fixes an inefficiency introduced on 2007-11-03.
100150 2007-11-09  Bruno Haible  <bruno@clisp.org>
100152         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
100153         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
100155 2007-11-08  Jim Meyering  <meyering@redhat.com>
100157         Change cache variable name prefix "jm_" to "gl_" everywhere.
100158         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
100159         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
100160         * m4/uptime.m4: s/gl_/jm_/
100162 2007-11-07  Bruno Haible  <bruno@clisp.org>
100164         Update to GNU gettext 0.17.
100165         * m4/intl.m4: Update to GNU gettext 0.17.
100166         * m4/po.m4: Likewise.
100167         * modules/gettext (Files): Remove m4/ulonglong.m4.
100168         (configure.ac): Require gettext infrastructure from version 0.17.
100170 2007-11-06  Bruno Haible  <bruno@clisp.org>
100172         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
100173         symbolic values are not defined in a public header.
100174         * lib/freadable.c (freadable) [QNX]: Likewise.
100175         * lib/freadahead.c (freadahead) [QNX]: Likewise.
100176         * lib/freading.c (freading) [QNX]: Likewise.
100177         * lib/fseterr.c (fseterr) [QNX]: Likewise.
100178         * lib/fwritable.c (fwritable) [QNX]: Likewise.
100179         * lib/fwriting.c (fwriting) [QNX]: Likewise.
100180         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
100181         Reported by Alain Magloire.
100183         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
100185 2007-11-05  Bruno Haible  <bruno@clisp.org>
100187         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
100188         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
100189         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
100190         Reported by Eric Blake.
100192 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100193             Bruno Haible  <bruno@clisp.org>
100195         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
100196         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
100197         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
100198         (malloc): Undefine also before including <stdlib.h>.
100199         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
100200         Needed on OSF/1 4.0.
100202 2007-11-05  Jim Meyering  <meyering@redhat.com>
100204         git-version-gen: sync from coreutils.
100205         * build-aux/git-version-gen: Add comments.
100206         Change the first '-' to '.' in the snapshot version string,
100207         e.g., 6.9-377-08144 -> 6.9.377-08144
100208         Remove first parameter.
100209         Don't declare a version "-dirty" merely because a time
100210         stamp has changed.
100212 2007-11-04  Bruno Haible  <bruno@clisp.org>
100214         * lib/lock.h: Protect all macro definitions containing an 'if'
100215         statement through a "do { ... } while (0)".
100216         * lib/tls.h: Likewise.
100218 2007-11-04  Bruno Haible  <bruno@clisp.org>
100220         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
100222 2007-11-04  Bruno Haible  <bruno@clisp.org>
100224         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
100225         * modules/fprintf-posix (Depends-on): Add nocrash.
100226         * modules/snprintf-posix (Depends-on): Likewise.
100227         * modules/sprintf-posix (Depends-on): Likewise.
100228         * modules/vasnprintf-posix (Depends-on): Likewise.
100229         * modules/vasprintf-posix (Depends-on): Likewise.
100230         * modules/vfprintf-posix (Depends-on): Likewise.
100231         * modules/vsnprintf-posix (Depends-on): Likewise.
100232         * modules/vsprintf-posix (Depends-on): Likewise.
100233         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
100234         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
100235         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
100236         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
100237         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
100238         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
100239         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
100241 2007-11-04  Bruno Haible  <bruno@clisp.org>
100243         * modules/nocrash: New file.
100244         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
100245         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
100247 2007-11-04  Bruno Haible  <bruno@clisp.org>
100249         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
100250         precision handling.
100251         * tests/test-vasprintf-posix.c (test_function): Likewise.
100252         * tests/test-snprintf-posix.h (test_function): Likewise.
100253         * tests/test-sprintf-posix.h (test_function): Likewise.
100255         Fix *printf behaviour for large precisions on mingw and BeOS.
100256         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
100257         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
100258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
100259         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
100260         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100261         gl_PRINTF_PRECISION and test its result. Invoke
100262         gl_PREREQ_VASNPRINTF_PRECISION.
100263         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100264         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100265         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100266         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100267         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100269         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100270         * doc/functions/fprintf.texi: Update.
100271         * doc/functions/printf.texi: Update.
100272         * doc/functions/snprintf.texi: Update.
100273         * doc/functions/sprintf.texi: Update.
100274         * doc/functions/vfprintf.texi: Update.
100275         * doc/functions/vprintf.texi: Update.
100276         * doc/functions/vsnprintf.texi: Update.
100277         * doc/functions/vsprintf.texi: Update.
100279 2007-11-04  Bruno Haible  <bruno@clisp.org>
100281         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
100283 2007-11-04  Bruno Haible  <bruno@clisp.org>
100285         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
100286         Reported by Sylvain Beucler <beuc@gnu.org>.
100288 2007-11-03  Bruno Haible  <bruno@clisp.org>
100290         * tests/test-fprintf-posix2.sh: New file.
100291         * tests/test-fprintf-posix2.c: New file.
100292         * modules/fprintf-posix-tests (Files): Add them.
100293         (TESTS): Add test-fprintf-posix2.sh.
100294         (configure.ac): Check for getrlimit and setrlimit.
100295         (check_PROGRAMS): Add test-fprintf-posix2.
100297         * tests/test-printf-posix2.sh: New file.
100298         * tests/test-printf-posix2.c: New file.
100299         * modules/printf-posix-tests (Files): Add them.
100300         (TESTS): Add test-printf-posix2.sh.
100301         (configure.ac): Check for getrlimit and setrlimit.
100302         (check_PROGRAMS): Add test-printf-posix2.
100304         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
100305         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
100306         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
100307         (decode_double): New function, copied from decode_long_double.
100308         (scale10_round_decimal_decoded): New function, extracted from
100309         scale10_round_decimal_long_double.
100310         (scale10_round_decimal_long_double): Use it.
100311         (scale10_round_decimal_double): New function.
100312         (floorlog10): New function.
100313         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
100314         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
100315         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
100316         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100317         gl_PRINTF_ENOMEM and test its result. Invoke
100318         gl_PREREQ_VASNPRINTF_ENOMEM.
100319         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100320         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100321         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100322         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100323         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100325         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100326         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
100327         * modules/snprintf-posix (Depends-on): Likewise.
100328         * modules/sprintf-posix (Depends-on): Likewise.
100329         * modules/vasnprintf-posix (Depends-on): Likewise.
100330         * modules/vasprintf-posix (Depends-on): Likewise.
100331         * modules/vfprintf-posix (Depends-on): Likewise.
100332         * modules/vsnprintf-posix (Depends-on): Likewise.
100333         * modules/vsprintf-posix (Depends-on): Likewise.
100334         * doc/functions/fprintf.texi: Update.
100335         * doc/functions/printf.texi: Update.
100336         * doc/functions/snprintf.texi: Update.
100337         * doc/functions/sprintf.texi: Update.
100338         * doc/functions/vfprintf.texi: Update.
100339         * doc/functions/vprintf.texi: Update.
100340         * doc/functions/vsnprintf.texi: Update.
100341         * doc/functions/vsprintf.texi: Update.
100343 2007-11-03  Bruno Haible  <bruno@clisp.org>
100345         * modules/frexp-nolibm-tests: New file.
100347         * modules/frexp-nolibm: New file.
100348         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
100350 2007-11-03  Bruno Haible  <bruno@clisp.org>
100352         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
100353         value is C99 compliant.
100354         Needed for OSF/1 5.1.
100356 2007-11-03  Bruno Haible  <bruno@clisp.org>
100358         Fix out-of-memory handling of vasnprintf.
100359         * lib/printf-parse.c: Include <errno.h>.
100360         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
100361         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
100362         is already set.
100364 2007-11-02  Eric Blake  <ebb9@byu.net>
100366         Fix tests on cygwin.
100367         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
100369 2007-11-01  Bruno Haible  <bruno@clisp.org>
100371         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
100372         warning.
100373         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
100374         needed for POSIX compatibility.
100376 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
100378         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
100379         for compatibility with GNU.
100381 2007-11-01  Bruno Haible  <bruno@clisp.org>
100383         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
100384         (putenv): Renamed from rpl_putenv. Change argument type from
100385         'const char *' to 'char *'.
100386         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
100387         of defining putenv in config.h, just set REPLACE_PUTENV.
100388         * modules/putenv (Depends-on): Add stdlib.
100389         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
100390         (Include): Use <stdlib.h>.
100391         * lib/stdlib.in.h (putenv): New declaration.
100392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
100393         REPLACE_PUTENV.
100394         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
100395         REPLACE_PUTENV.
100396         Needed for MacOS X 10.5.0.
100397         Reported by Peter O'Gorman <peter@pogma.com>.
100399 2007-11-01  Jim Meyering  <meyering@redhat.com>
100401         Treat an empty date string exactly like "0".
100402         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
100403         if the remaining date string (to be parsed) is empty, use "0".
100404         Reported by Mischa Molhoek and discussed in this thread:
100405         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
100407 2007-10-31  Bruno Haible  <bruno@clisp.org>
100409         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
100410         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
100411         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
100412         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
100413         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
100414         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
100416 2007-10-31  Bruno Haible  <bruno@clisp.org>
100418         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
100419         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
100420         (AC_TYPE_LONG_LONG_INT): Use it.
100421         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
100422         it as well.
100423         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
100424         to m4/longlong.m4.
100425         * modules/stdint (Files): Remove m4/ulonglong.m4.
100426         * modules/strtoull (Files): Use m4/longlong.m4 instead of
100427         m4/ulonglong.m4.
100428         * modules/strtoumax (Files): Likewise.
100430 2007-10-30  Bruno Haible  <bruno@clisp.org>
100432         * modules/xvasprintf-posix: New file.
100433         Suggested by Eric Blake.
100435 2007-10-30  Bruno Haible  <bruno@clisp.org>
100437         * modules/xprintf-posix-tests: New file.
100438         * tests/test-xprintf-posix.sh: New file.
100439         * tests/test-xprintf-posix.c: New file.
100440         * tests/test-xfprintf-posix.c: New file.
100442         * modules/xprintf-posix: New file.
100444 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100446         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
100447         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
100448         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
100450 2007-10-29  Bruno Haible  <bruno@clisp.org>
100452         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
100453         contain the special marker '_cv_'.
100454         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
100455         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
100456         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
100457         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
100458         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
100459         Reported by Ralf Wildenhues.
100461 2007-10-29  Bruno Haible  <bruno@clisp.org>
100463         * gnulib-tool (func_import): When --lgpl is not specified, set
100464         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
100465         GPLv3.
100466         Reported by Simon Josefsson.
100468 2007-10-28  Bruno Haible  <bruno@clisp.org>
100470         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
100471         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
100472         HAVE_DECL_ISFINITE.
100473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
100474         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
100475         HAVE_DECL_ISFINITE.
100477 2007-10-28  Bruno Haible  <bruno@clisp.org>
100479         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
100480         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
100482 2007-10-28  Bruno Haible  <bruno@clisp.org>
100484         Fix link errors with Sun C 5.0 on Solaris 10.
100485         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
100486         function is declared but not present in the compiler's libm.
100487         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
100488         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
100489         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
100490         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
100491         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
100492         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
100493         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
100494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
100495         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
100496         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
100497         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
100498         HAVE_DECL_FLOORL.
100500 2007-10-28  Bruno Haible  <bruno@clisp.org>
100502         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
100503         gl_FUNC_FLOORL. Cache the result.
100504         (gl_FUNC_FLOORL): Use it.
100505         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
100506         gl_FUNC_CEILL. Cache the result.
100507         (gl_FUNC_CEILL): Use it.
100509         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
100510         gl_FUNC_FLOOR. Cache the result.
100511         (gl_FUNC_FLOOR): Use it.
100512         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
100513         gl_FUNC_CEIL. Cache the result.
100514         (gl_FUNC_CEIL): Use it.
100516         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
100517         gl_FUNC_FLOORF. Cache the result.
100518         (gl_FUNC_FLOORF): Use it.
100519         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
100520         gl_FUNC_CEILF. Cache the result.
100521         (gl_FUNC_CEILF): Use it.
100523 2007-10-28  Bruno Haible  <bruno@clisp.org>
100525         * gnulib-tool: Allow specifying the LGPL version number through
100526         --lgpl=2 or --lgpl=3.
100527         (func_usage): Document --lgpl with argument.
100528         Handle --lgpl=... arguments.
100529         (func_import): Recognize also gl_LGPL calls with an argument. When
100530         --lgpl=2 is used and the module's license is just LGPL, report an
100531         error. Set sed_transform_lib_file according to the lgpl variable. In
100532         the generated files, use --lgpl or gl_LGPL invocations with argument,
100533         if necessary.
100534         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
100535         an LGPv2+ license.
100536         * doc/gnulib-tool.texi (Modified imports): Update explanation of
100537         gl_LGPL macro.
100539 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100540             Bruno Haible  <bruno@clisp.org>
100542         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
100543         (u16_uctomb_aux): Likewise.
100544         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
100545         !HAVE_INLINE.
100546         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
100548 2007-10-28  Bruno Haible  <bruno@clisp.org>
100550         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
100551         Invoke AM_GETTEXT_OPTION if it exists.
100552         * modules/vasprintf: Likewise.
100553         * modules/verror: Likewise.
100554         * modules/xprintf: Likewise.
100555         * modules/xvasprintf: Likewise.
100557 2007-10-27  Ben Pfaff  <blp@gnu.org>
100559         * lib/math.in.h: Define isfinite macro and prototypes for
100560         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
100561         implementations.
100562         * m4/math_h.m4: New substitutions for isfinite module.
100563         * lib/isfinite.c: New file.
100564         * m4/isfinite.m4: New file.
100565         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
100566         * modules/isfinite: New file.
100567         * modules/isfinite-tests: New file.
100568         * tests/tests-isfinite.c: New file.
100569         * doc/functions/isfinite.texi: Mention isfinite module.
100570         * MODULES.html.sh: Mention new module.
100572 2007-10-27  Ben Pfaff  <blp@gnu.org>
100574         Ralf Wildenhues reported that Tru64 4.0D declares the round
100575         functions but does not have definitions.
100576         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
100577         cannot be found in any library, set the output variable to
100578         "missing" instead of "".
100579         * m4/round.m4: Also use our substitute if we cannot find round in
100580         any library, even if it is declared.
100581         * m4/roundf.m4: Likewise for roundf.
100582         * m4/roundl.m4: Likewise for roundl.
100583         * lib/math.in.h: Undefine roundf, round, roundl before defining
100584         their replacements, to allow for hypothetical systems where these
100585         may be defined as macros but not available in libraries.
100587 2007-10-27  Bruno Haible  <bruno@clisp.org>
100589         * doc/gnulib.texi: Invoke @firstparagraphindent.
100590         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
100591         changes in gnulib.
100592         (Source changes): New section.
100594 2007-10-26  Bruno Haible  <bruno@clisp.org>
100596         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
100597         borrowed from autoconf.
100599 2007-10-26  Bruno Haible  <bruno@clisp.org>
100601         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
100602         strerror returned the empty string. Needed on HP-UX 11.00.
100604 2007-10-24  Micah Cowan  <micah@cowan.name>
100606         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
100607         * build-aux/bootstrap: Remove support for now-unnecessary option,
100608         --cvs-user, and envvars CVS_USER, CVS_RSH.
100610 2007-10-24  Jim Meyering  <meyering@redhat.com>
100612         Avoid diagnostics from sha1sum when there is no cached checksum.
100613         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
100614         if the po.s1 file hasn't been created yet.
100616         * build-aux/bootstrap: Sync from coreutils:
100617         2007-10-24  Jim Meyering  <meyering@redhat.com>
100618         Get gnulib from the git repository, not from an obsolete cvs one.
100619         * build-aux/bootstrap: Suggestion from Micah Cowan.
100620         2007-10-04  Jim Meyering  <jim@meyering.net>
100621         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
100622         (update_po_files): Work also when there are no .po files in po/.
100624 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
100626         * README: Append ".git" to git and cg examples.
100627         Problem reported by Benoit Sigoure.
100629 2007-10-23  Micah Cowan  <micah@cowan.name>
100631         * users.txt: Add wget.
100633 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100635         Fix linking of some unistdio tests on FreeBSD.
100636         * modules/unistdio/u16-vsnprintf-tests
100637         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
100638         * modules/unistdio/u16-vsprintf-tests
100639         (test_u16_vsnprintf1_LDADD): Likewise.
100640         * modules/unistdio/u32-vsnprintf-tests
100641         (test_u32_vsnprintf1_LDADD): Likewise.
100642         * modules/unistdio/u32-vsprintf-tests
100643         (test_u32_vsprintf1_LDADD): Likewise.
100644         * modules/unistdio/u8-vsnprintf-tests
100645         (test_u8_vsnprintf1_LDADD): Likewise.
100646         * modules/unistdio/u8-vsprintf-tests
100647         (test_u8_vsprintf1_LDADD): Likewise.
100648         * modules/unistdio/ulc-vsnprintf-tests
100649         (test_ulc_vsnprintf1_LDADD): Likewise.
100650         * modules/unistdio/ulc-vsprintf-tests
100651         (test_ulc_vsprintf1_LDADD): Likewise.
100653         Fix linking of some uniconv tests on FreeBSD.
100654         * modules/uniconv/u16-conv-from-enc-tests
100655         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
100656         * modules/uniconv/u16-conv-to-enc-tests
100657         (test_u16_conv_to_enc_LDADD): Likewise.
100658         * modules/uniconv/u16-strconv-from-enc-tests
100659         (test_u16_strconv_from_enc_LDADD): Likewise.
100660         * modules/uniconv/u16-strconv-to-enc-tests
100661         (test_u16_strconv_to_enc_LDADD): Likewise.
100662         * modules/uniconv/u32-conv-from-enc-tests
100663         (test_u32_conv_from_enc_LDADD): Likewise.
100664         * modules/uniconv/u32-conv-to-enc-tests
100665         (test_u32_conv_to_enc_LDADD): Likewise.
100666         * modules/uniconv/u32-strconv-from-enc-tests
100667         (test_u32_strconv_from_enc_LDADD): Likewise.
100668         * modules/uniconv/u32-strconv-to-enc-tests
100669         (test_u32_strconv_to_enc_LDADD): Likewise.
100670         * modules/uniconv/u8-conv-from-enc-tests
100671         (test_u8_conv_from_enc_LDADD): Likewise.
100672         * modules/uniconv/u8-conv-to-enc-tests
100673         (test_u8_conv_to_enc_LDADD): Likewise.
100674         * modules/uniconv/u8-strconv-from-enc-tests
100675         (test_u8_strconv_from_enc_LDADD): Likewise.
100676         * modules/uniconv/u8-strconv-to-enc-tests
100677         (test_u8_strconv_to_enc_LDADD): Likewise.
100679 2007-10-22  Bruno Haible  <bruno@clisp.org>
100681         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
100682         size.
100684 2007-10-22  Eric Blake  <ebb9@byu.net>
100686         Tweak x*printf documentation.
100687         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
100688         variable name and comments.
100689         Suggested by Bruno Haible.
100691 2007-10-22  Bruno Haible  <bruno@clisp.org>
100693         * lib/acl.c (copy_acl): Fix file name in comment.
100695 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100697         Fix Tru64 problem with stdbool.h.
100698         * lib/stdbool.in.h (false, true):
100699         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
100700         Don't declare as an enum in this situation; it runs afoul of Tru64.
100701         Problem reported by Steven M. Schweda in
100702         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
100704 2007-10-22  Eric Blake  <ebb9@byu.net>
100706         Also wrap vf?printf.
100707         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
100708         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
100709         (xvprintf, xvfprintf): New functions.
100711 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100713         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
100714         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
100716         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
100717         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
100719 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100721         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
100722         by Bruno Haible.
100724 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100726         * lib/getloadavg.c
100727         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
100728         Undef `sys' after including sys/table.h, for Tru64 4.0D.
100730         * tests/test-i-ring.c: Work for C89.
100732 2007-10-22  Bruno Haible  <bruno@clisp.org>
100734         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
100735         -1u, in preprocessor expression, so that we don't test for the bug
100736         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
100737         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
100739 2007-10-22  Eric Blake  <ebb9@byu.net>
100741         * tests/test-yesno.sh: Silence stderr during test.
100743 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100745         * modules/crypto/gc-camellia: New file.
100747         * m4/gc-camellia.m4: New file.
100749         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
100751         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
100753 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100755         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
100756         --help to stdout.  Reported by sms@antinode.org (Steven
100757         M. Schweda).
100759 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100761         * users.txt: Fix link to libksba.
100763 2007-10-21  Ben Pfaff  <blp@gnu.org>
100765         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
100766         round.c roundf implementation that depends on floorf and ceilf to
100767         be tested unconditionally.
100769 2007-10-21  Ben Pfaff  <blp@gnu.org>
100771         * m4/check-libm-func.m4: Removed.
100772         * m4/check-math-lib.m4: New file.
100773         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
100774         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
100775         definition and lack of AC_LIBOBJ([roundf]).
100776         * m4/roundl.m4: Ditto, and similarly for roundl.
100777         * modules/round: Reference new m4 file.
100778         * modules/roundf: Ditto.
100779         * modules/roundl: Ditto.
100780         * tests/test-round2.c (main): Use ROUND instead of round.
100781         Bug report from Bruno Haible.
100783 2007-10-21  Bruno Haible  <bruno@clisp.org>
100785         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
100786         context.
100788 2007-10-21  Bruno Haible  <bruno@clisp.org>
100790         * tests/test-wcwidth.c (main): Allow negative result for some control
100791         characters.
100793         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
100794         Needed on OSF/1 5.1.
100796 2007-10-21  Bruno Haible  <bruno@clisp.org>
100798         * tests/test-floorf1.c: Include isnanf.h.
100799         (main): Use isnanf() instead of isnan().
100800         * tests/test-ceilf1.c: Include isnanf.h.
100801         (main): Use isnanf() instead of isnan().
100802         * tests/test-truncf1.c: Include isnanf.h.
100803         (main): Use isnanf() instead of isnan().
100804         * tests/test-roundf1.c: Include isnanf.h.
100805         (main): Use isnanf() instead of isnan().
100807 2007-10-21  Eric Blake  <ebb9@byu.net>
100809         * users.txt: Update URL for m4.
100811 2007-10-21  Bruno Haible  <bruno@clisp.org>
100813         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
100815 2007-10-21  Bruno Haible  <bruno@clisp.org>
100817         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
100818         Git's management files if the CVS files are not present.
100820 2007-10-20  Bruno Haible  <bruno@clisp.org>
100822         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
100823         gcc-3.4.x.
100825 2007-10-20  Ben Pfaff  <blp@gnu.org>
100827         * lib/math.in.h: Declare round, roundf, roundl if we are providing
100828         implementations.
100829         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
100830         * lib/round.c: New file.
100831         * lib/roundf.c: New file.
100832         * lib/roundl.c: New file.
100833         * m4/round.m4: New file.
100834         * m4/roundf.m4: New file.
100835         * m4/roundl.m4: New file.
100836         * m4/check-libm-func-m4: New file.
100837         * modules/math: Replace round, roundf, roundl related @VARS@ in
100838         math.in.h.
100839         * modules/round: New file.
100840         * modules/round-tests: New file.
100841         * modules/roundf: New file.
100842         * modules/roundf-tests: New file.
100843         * modules/roundl: New file.
100844         * modules/roundl-tests: New file.
100845         * tests/test-round1.c: New file.
100846         * tests/test-round2.c: New file.
100847         * tests/test-roundf1.c: New file.
100848         * tests/test-roundf2.c: New file.
100849         * tests/test-roundl.c: New file.
100850         * doc/functions/round.texi: Mention round module.
100851         * doc/functions/roundf.texi: Mention roundf module.
100852         * doc/functions/roundl.texi: Mention roundl module.
100853         * MODULES.html.sh: Mention new modules.
100854         Thanks to Bruno Haible for suggestions.
100856 2007-10-20  Jim Meyering  <meyering@redhat.com>
100858         * lib/xprintf.c: Include <config.h> unconditionally.
100860         Change xprintf's license to GPL.
100861         * modules/xprintf (License): s/LGPL/GPL/, since this module
100862         depends on modules (exit and exitfail) which are GPL.
100863         Suggestion from Bruno Haible.
100865         xprintf fixes.
100866         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
100867         Use a clearer diagnostic.
100868         Patch from Bruno Haible.
100870 2007-10-20  Bruno Haible  <bruno@clisp.org>
100872         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
100873         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
100874         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100876 2007-10-20  Bruno Haible  <bruno@clisp.org>
100878         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
100879         precision in the comparison result > x - 1 or similar.
100880         * tests/test-ceilf2.c (correct_result_p): Likewise.
100881         * tests/test-truncf2.c (correct_result_p): Likewise.
100882         * tests/test-trunc2.c (correct_result_p): Likewise.
100883         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100885 2007-10-20  Bruno Haible  <bruno@clisp.org>
100887         * modules/ceil: New file.
100888         * m4/ceil.m4: New file.
100889         * doc/functions/ceil.texi: Mention the 'ceil' module.
100891 2007-10-20  Bruno Haible  <bruno@clisp.org>
100893         * modules/floor: New file.
100894         * m4/floor.m4: New file.
100895         * doc/functions/floor.texi: Mention the 'floor' module.
100897 2007-10-20  Bruno Haible  <bruno@clisp.org>
100899         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
100900         of %a.
100901         * modules/floorf-tests (Depends-on): Likewise.
100902         * modules/truncf-tests (Depends-on): Likewise.
100903         * modules/trunc-tests (Depends-on): Likewise.
100904         Reported by Ben Pfaff.
100906 2007-10-19  Jim Meyering  <meyering@redhat.com>
100908         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
100909         Don't bother testing specific errno values.  Just test ferror.
100911         New module: xprintf
100912         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
100914 2007-10-19  Bruno Haible  <bruno@clisp.org>
100916         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
100917         syntax.
100918         * modules/javaexec (Makefile.am): Likewise.
100919         * modules/relocatable-prog (Makefile.am): Likewise.
100920         Suggested by Jim Meyering.
100922 2007-10-18  Bruno Haible  <bruno@clisp.org>
100924         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
100925         Reported by Jim Meyering.
100927 2007-10-18  Eric Blake  <ebb9@byu.net>
100929         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
100931 2007-10-18  Bruno Haible  <bruno@clisp.org>
100933         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
100934         the format string into writable memory. Needed in Fortify conditions.
100936 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
100937             Bruno Haible  <bruno@clisp.org>
100939         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
100940         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
100941         * modules/trim (Depends-on): Add mbchar.
100942         (configure.ac): Add gl_FUNC_MBRTOWC.
100943         (Makefile.am): Augment lib_SOURCES.
100945 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
100947         Modify glob.c to use fstatat and dirfd, to simplify it.
100948         Suggested by Eric Blake.
100949         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
100950         Don't include <stdbool.h>; not used.
100951         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
100952         (link_exists_p): Simplify implementation, since we can now assume
100953         dirfd and fstatat.
100954         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
100956 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100958         * gnulib-tool (func_get_dependencies): Fix sed script to
100959         match only tests.
100961 2007-10-17  Bruno Haible  <bruno@clisp.org>
100963         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
100964         allow locale names without encoding suffix.
100965         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
100966         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
100968 2007-10-16  Bruno Haible  <bruno@clisp.org>
100970         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
100971         * lib/getgroups.c (getgroups): Likewise.
100972         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
100974 2007-10-16  Bruno Haible  <bruno@clisp.org>
100976         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
100977         * modules/malloc-posix (License): Likewise.
100978         * modules/realloc-posix (License): Likewise.
100979         * modules/calloc-posix (License): Likewise.
100980         * modules/intprops (License): Change from GPL to LGPL, with
100981         Paul Eggert's approval.
100983 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100985         Merge glibc changes into lib/glob.c.
100987         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
100988         2007-10-15 04:59:03 UTC.  Here are the changes:
100990         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
100992         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
100994         * lib/glob.c: Add some branch prediction throughout.
100996         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
100998         [BZ #5103]
100999         * lib/glob.c (glob): Recognize patterns starting \/.
101001         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
101003         [BZ #3996]
101004         * lib/glob.c (attribute_hidden): Define if not defined.
101005         (glob): Unescape dirname, filename or username when needed and not
101006         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
101007         is NULL.  Handle unescaped [ in pattern without closing ].
101008         Don't pass GLOB_CHECK down to recursive glob for directories.
101009         (__glob_pattern_type): New function.
101010         (__glob_pattern_p): Implement using __glob_pattern_type.
101011         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
101012         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
101013         Remove unreachable code.
101015         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
101017         * lib/glob.c (glob_in_dir): Add some comments and asserts to
101018         explain why there are no leaks.
101020         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
101022         [BZ #3253]
101023         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
101024         time, rather allocate increasingly bigger arrays of pointers, if
101025         possible with alloca, if too large with malloc.
101027 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
101029         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
101030         Problem reported by H.Merijn Brand in
101031         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
101032         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
101033         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
101035 2007-10-15  Bruno Haible  <bruno@clisp.org>
101037         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
101038         with explicit rpl_ prefix.
101039         * lib/fopen.c (fopen): Likewise.
101040         * lib/freopen.c (freopen): Likewise.
101041         * lib/iconv.c (iconv): Likewise.
101042         * lib/iconv_close.c (iconv_close): Likewise.
101044 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101046         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
101048 2007-10-15  Bruno Haible  <bruno@clisp.org>
101050         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
101051         <stddef.h> instead of <stdlib.h> since we only need NULL.
101052         Reported by Ben Pfaff <blp@cs.stanford.edu>.
101054 2007-10-15  Bruno Haible  <bruno@clisp.org>
101056         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
101057         Replace paragraph talking about LIBOBJS.
101058         Reported by Colin Watson <cjwatson@debian.org>.
101060 2007-10-15  Bruno Haible  <bruno@clisp.org>
101062         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
101063         <stdlib.h> before using NULL.
101065 2007-10-15  Simon Josefsson  <simon@josefsson.org>
101067         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
101068         Reported by Albert Chin <china@thewrittenword.com>.
101070 2007-10-14  Bruno Haible  <bruno@clisp.org>
101072         * modules/iconv_open-utf-tests: New file.
101073         * tests/test-iconv-utf.c: New file.
101075         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
101076         * modules/iconv_open-utf: New file.
101077         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
101078         (iconv, iconv_close): New declarations.
101079         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
101080         be defined.
101081         (iconv_open): Add special handling of conversion between UTF-8 and
101082         UTF-{16,32}{BE,LE}.
101083         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
101084         * lib/iconv_close.c: New file.
101085         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
101086         gl_FUNC_ICONV_OPEN.
101087         (gl_FUNC_ICONV_OPEN): Use it.
101088         (gl_FUNC_ICONV_OPEN_UTF): New macro.
101089         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
101090         and REPLACE_ICONV_UTF.
101091         * modules/iconv_open (Depends-on): Add c-strcase.
101092         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
101093         ICONV_CONST.
101094         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
101096 2007-10-13  Albert Chin  <china@thewrittenword.com>
101097             Bruno Haible  <bruno@clisp.org>
101099         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
101100         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
101102 2007-10-13  Bruno Haible  <bruno@clisp.org>
101104         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
101105         defined, use the ISO C99 inline semantics.
101106         * lib/argp.h (ARGP_EI): Likewise.
101108 2007-10-13  Bruno Haible  <bruno@clisp.org>
101110         Handle 'inline' change in gcc 4.3.0.
101111         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
101112         argp_fmtstream_write, argp_fmtstream_set_lmargin,
101113         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
101114         argp_fmtstream_point): Disable 'extern' declaration if the function
101115         definition is going to be provided inline.
101116         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
101117         semantics, not the ISO C99 inline semantics.
101118         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
101119         'extern' declaration if the function definition is going to be provided
101120         inline.
101121         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
101122         the GNU C inline semantics, not the ISO C99 inline semantics. With
101123         GCC 4.2, avoid a warning.
101125 2007-10-13  Bruno Haible  <bruno@clisp.org>
101127         * lib/freading.h (freading): Enable the use of __freading for
101128         glibc >= 2.7.
101129         * lib/freading.c (freading): Likewise.
101131 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
101133         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
101134         "warning: C99 inline functions are not supported; using GNU89".
101136 2007-10-12  Bruno Haible  <bruno@clisp.org>
101138         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
101139         of 2.
101140         * tests/test-ceilf2.c: New file.
101141         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
101143         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
101144         * modules/ceilf-tests: Update.
101146 2007-10-12  Bruno Haible  <bruno@clisp.org>
101148         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
101149         of 2.
101150         * tests/test-floorf2.c: New file.
101151         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
101153         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
101154         * modules/floorf-tests: Update.
101156 2007-10-12  Bruno Haible  <bruno@clisp.org>
101158         * tests/test-trunc2.c: New file.
101159         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
101161         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
101162         * modules/trunc-tests: Update.
101164 2007-10-12  Bruno Haible  <bruno@clisp.org>
101166         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
101167         of 2.
101168         * tests/test-truncf2.c: New file.
101169         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
101171         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
101172         * modules/truncf-tests: Update.
101174 2007-10-11  Eric Blake  <ebb9@byu.net>
101176         Don't claim strerror is broken on Interix.
101177         * doc/functions/strerror.texi (strerror): Known broken systems are
101178         now Solaris 8, and not Interix.
101179         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
101180         Interix on cross-compile.
101181         Reported by Martin Koeppe in
101182         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
101184 2007-10-11  Bruno Haible  <bruno@clisp.org>
101186         * modules/i-ring-tests: New file.
101187         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
101188         instead of assert.
101190 2007-10-11  Bruno Haible  <bruno@clisp.org>
101192         * modules/filenamecat-tests: New file.
101193         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
101194         * lib/filenamecat.c: Remove test code.
101196 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
101198         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
101200         * lib/strerror.c: Include <string.h> always, to test interface,
101201         and to remove the need for the dummy.
101202         Include intprops.h to compute width instead of doing it ourselves
101203         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
101204         (strerror): Define it to return NULL if there's no system strerror.
101205         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
101206         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
101207         ancient pre-strerror Unix systems well any more.  Saying "unknown
101208         system error" is enough.
101209         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
101210         simpler strerror.c implementation.
101211         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
101212         Simplify the tests to reflect the simpler strerror implementation.
101213         * modules/strerror (Depends-on): Add intprops.
101215 2007-10-09  Eric Blake  <ebb9@byu.net>
101217         Silence test-fpending.
101218         * modules/fpending-tests (Files): Add wrapper script.
101219         * tests/test-fpending.sh: New file.
101221 2007-10-09  Bruno Haible  <bruno@clisp.org>
101223         * MODULES.html.sh (func_module): Don't create a hyperlink for
101224         function names like 'printf_frexp'.
101225         (Misc): Add crc, memxor.
101226         (Characteristics of floating types): New section.
101227         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
101228         isnanf-nolibm, signbit, trunc, truncf, truncl.
101229         (Enhancements for ISO C 99 functions): New subsection Input/output.
101230         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
101231         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
101232         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
101233         (Compatibility checks for POSIX:2001 functions): Add clock-time.
101234         (Enhancements for POSIX:2001 functions): Add chdir-long.
101235         (File system functions): Add areadlink, chdir-safer, read-file.
101236         Remove cycle-check.
101237         (File system as inode set): New section.
101238         (Date and time): Add gethrxtime.
101239         (Multithreading): Add openmp.
101240         (Internationalization functions): Add localename.
101241         (Unicode string functions): Add unistr/u*-mbsnlen.
101242         (Support for maintaining and releasing projects): Add git-version-gen.
101243         (Lone files): Remove directories.
101245 2007-10-08  Ben Pfaff  <blp@gnu.org>
101247         * lib/xmalloca.h: Fix typo in comment.
101249 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
101251         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
101252         when avoiding problems with integer overflow.  Use a portable test
101253         instead.
101255 2007-10-08  Simon Josefsson  <simon@josefsson.org>
101257         * modules/dummy (License): Change to LGPLv2+.
101258         * modules/float (License): Likewise
101259         * modules/realloc (License): Likewise
101260         * modules/stdlib (License): Likewise
101262 2007-10-07  Bruno Haible  <bruno@clisp.org>
101264         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
101265         * floor.c (TWO_MANT_DIG): Likewise.
101266         * ceil.c (TWO_MANT_DIG): Likewise.
101267         Reported by Ben Pfaff.
101269 2007-10-07  Bruno Haible  <bruno@clisp.org>
101271         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
101272         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
101273         * lib/frexp.c (FUNC): Likewise.
101274         * lib/printf-frexp.h (printf_frexp): Likewise.
101275         * lib/printf-frexpl.h (printf_frexpl): Likewise.
101276         * lib/printf-frexp.c (FUNC): Likewise.
101277         Suggested by Jim Meyering.
101279 2007-10-07  Jim Meyering  <meyering@redhat.com>
101281         Make xnanosleep's integer overflow test more robust.
101282         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
101283         so that gcc-4.3.0 doesn't optimize away this test for overflow.
101285 2007-10-07  Bruno Haible  <bruno@clisp.org>
101287         * NEWS: Mention the license change.
101289         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
101290         abbreviations in the modules files.
101292         Change copyright notice from GPLv2+ to GPLv3+.
101293         * README: Change copyright notice.
101294         * MODULES.html.sh: Likewise.
101295         * build-aux/bootstrap.conf: Likewise.
101296         * build-aux/config.libpath: Likewise.
101297         * build-aux/csharpcomp.sh.in: Likewise.
101298         * build-aux/csharpexec.sh.in: Likewise.
101299         * build-aux/install-reloc: Likewise.
101300         * build-aux/javacomp.sh.in: Likewise.
101301         * build-aux/javaexec.sh.in: Likewise.
101302         * build-aux/ldd.sh.in: Likewise.
101303         * build-aux/reloc-ldflags: Likewise.
101304         * build-aux/relocatable.sh.in: Likewise.
101305         * build-aux/x-to-1.in: Likewise.
101306         * check-module: Likewise.
101307         * config/srclistvars.sh: Likewise.
101308         * gnulib-tool: Likewise.
101309         * lib/acl-internal.h: Likewise.
101310         * lib/acl.c: Likewise.
101311         * lib/acl.h: Likewise.
101312         * lib/acl_entries.c: Likewise.
101313         * lib/areadlink-with-size.c: Likewise.
101314         * lib/areadlink.c: Likewise.
101315         * lib/areadlink.h: Likewise.
101316         * lib/argmatch.c: Likewise.
101317         * lib/argmatch.h: Likewise.
101318         * lib/argp-ba.c: Likewise.
101319         * lib/argp-eexst.c: Likewise.
101320         * lib/argp-fmtstream.c: Likewise.
101321         * lib/argp-fmtstream.h: Likewise.
101322         * lib/argp-fs-xinl.c: Likewise.
101323         * lib/argp-help.c: Likewise.
101324         * lib/argp-namefrob.h: Likewise.
101325         * lib/argp-parse.c: Likewise.
101326         * lib/argp-pin.c: Likewise.
101327         * lib/argp-pv.c: Likewise.
101328         * lib/argp-pvh.c: Likewise.
101329         * lib/argp-xinl.c: Likewise.
101330         * lib/argp.h: Likewise.
101331         * lib/at-func.c: Likewise.
101332         * lib/atanl.c: Likewise.
101333         * lib/backupfile.c: Likewise.
101334         * lib/backupfile.h: Likewise.
101335         * lib/basename.c: Likewise.
101336         * lib/binary-io.h: Likewise.
101337         * lib/byteswap.in.h: Likewise.
101338         * lib/c-stack.c: Likewise.
101339         * lib/c-stack.h: Likewise.
101340         * lib/c-strcasestr.c: Likewise.
101341         * lib/c-strcasestr.h: Likewise.
101342         * lib/c-strstr.c: Likewise.
101343         * lib/c-strstr.h: Likewise.
101344         * lib/c-strtod.c: Likewise.
101345         * lib/calloc.c: Likewise.
101346         * lib/canon-host.c: Likewise.
101347         * lib/canon-host.h: Likewise.
101348         * lib/canonicalize-lgpl.c: Likewise.
101349         * lib/canonicalize.c: Likewise.
101350         * lib/canonicalize.h: Likewise.
101351         * lib/ceil.c: Likewise.
101352         * lib/ceilf.c: Likewise.
101353         * lib/ceill.c: Likewise.
101354         * lib/chdir-long.c: Likewise.
101355         * lib/chdir-long.h: Likewise.
101356         * lib/chdir-safer.c: Likewise.
101357         * lib/chdir-safer.h: Likewise.
101358         * lib/chown.c: Likewise.
101359         * lib/classpath.c: Likewise.
101360         * lib/classpath.h: Likewise.
101361         * lib/clean-temp.c: Likewise.
101362         * lib/clean-temp.h: Likewise.
101363         * lib/cloexec.c: Likewise.
101364         * lib/close-stream.c: Likewise.
101365         * lib/closein.c: Likewise.
101366         * lib/closein.h: Likewise.
101367         * lib/closeout.c: Likewise.
101368         * lib/closeout.h: Likewise.
101369         * lib/concat-filename.c: Likewise.
101370         * lib/copy-file.c: Likewise.
101371         * lib/copy-file.h: Likewise.
101372         * lib/count-one-bits.h: Likewise.
101373         * lib/crc.c: Likewise.
101374         * lib/crc.h: Likewise.
101375         * lib/creat-safer.c: Likewise.
101376         * lib/csharpcomp.c: Likewise.
101377         * lib/csharpcomp.h: Likewise.
101378         * lib/csharpexec.c: Likewise.
101379         * lib/csharpexec.h: Likewise.
101380         * lib/cycle-check.c: Likewise.
101381         * lib/cycle-check.h: Likewise.
101382         * lib/diacrit.c: Likewise.
101383         * lib/diacrit.h: Likewise.
101384         * lib/diffseq.h: Likewise.
101385         * lib/dirchownmod.c: Likewise.
101386         * lib/dirent.in.h: Likewise.
101387         * lib/dirfd.c: Likewise.
101388         * lib/dirfd.h: Likewise.
101389         * lib/dirname.c: Likewise.
101390         * lib/dirname.h: Likewise.
101391         * lib/dummy.c: Likewise.
101392         * lib/dup-safer.c: Likewise.
101393         * lib/dup2.c: Likewise.
101394         * lib/eealloc.h: Likewise.
101395         * lib/error.c: Likewise.
101396         * lib/error.h: Likewise.
101397         * lib/euidaccess.c: Likewise.
101398         * lib/exclude.c: Likewise.
101399         * lib/exclude.h: Likewise.
101400         * lib/execute.c: Likewise.
101401         * lib/execute.h: Likewise.
101402         * lib/exitfail.c: Likewise.
101403         * lib/exitfail.h: Likewise.
101404         * lib/expl.c: Likewise.
101405         * lib/fatal-signal.c: Likewise.
101406         * lib/fatal-signal.h: Likewise.
101407         * lib/fbufmode.c: Likewise.
101408         * lib/fbufmode.h: Likewise.
101409         * lib/fchdir.c: Likewise.
101410         * lib/fchmodat.c: Likewise.
101411         * lib/fchownat.c: Likewise.
101412         * lib/fcntl--.h: Likewise.
101413         * lib/fcntl-safer.h: Likewise.
101414         * lib/fcntl.in.h: Likewise.
101415         * lib/fd-safer.c: Likewise.
101416         * lib/fflush.c: Likewise.
101417         * lib/file-has-acl.c: Likewise.
101418         * lib/file-set.c: Likewise.
101419         * lib/file-type.c: Likewise.
101420         * lib/file-type.h: Likewise.
101421         * lib/fileblocks.c: Likewise.
101422         * lib/filemode.c: Likewise.
101423         * lib/filemode.h: Likewise.
101424         * lib/filename.h: Likewise.
101425         * lib/filenamecat.c: Likewise.
101426         * lib/filenamecat.h: Likewise.
101427         * lib/findprog.c: Likewise.
101428         * lib/findprog.h: Likewise.
101429         * lib/float.in.h: Likewise.
101430         * lib/floor.c: Likewise.
101431         * lib/floorf.c: Likewise.
101432         * lib/floorl.c: Likewise.
101433         * lib/fopen-safer.c: Likewise.
101434         * lib/fopen.c: Likewise.
101435         * lib/fpending.c: Likewise.
101436         * lib/fpending.h: Likewise.
101437         * lib/fprintf.c: Likewise.
101438         * lib/fprintftime.h: Likewise.
101439         * lib/fpucw.h: Likewise.
101440         * lib/fpurge.c: Likewise.
101441         * lib/fpurge.h: Likewise.
101442         * lib/freadable.c: Likewise.
101443         * lib/freadable.h: Likewise.
101444         * lib/freadahead.c: Likewise.
101445         * lib/freadahead.h: Likewise.
101446         * lib/freading.c: Likewise.
101447         * lib/freading.h: Likewise.
101448         * lib/free.c: Likewise.
101449         * lib/freopen.c: Likewise.
101450         * lib/frexp.c: Likewise.
101451         * lib/frexpl.c: Likewise.
101452         * lib/fseek.c: Likewise.
101453         * lib/fseterr.c: Likewise.
101454         * lib/fseterr.h: Likewise.
101455         * lib/fstatat.c: Likewise.
101456         * lib/fstrcmp.c: Likewise.
101457         * lib/fstrcmp.h: Likewise.
101458         * lib/fsusage.c: Likewise.
101459         * lib/fsusage.h: Likewise.
101460         * lib/ftell.c: Likewise.
101461         * lib/ftello.c: Likewise.
101462         * lib/fts-cycle.c: Likewise.
101463         * lib/fts.c: Likewise.
101464         * lib/fts_.h: Likewise.
101465         * lib/full-read.c: Likewise.
101466         * lib/full-read.h: Likewise.
101467         * lib/full-write.c: Likewise.
101468         * lib/full-write.h: Likewise.
101469         * lib/fwritable.c: Likewise.
101470         * lib/fwritable.h: Likewise.
101471         * lib/fwriteerror.c: Likewise.
101472         * lib/fwriteerror.h: Likewise.
101473         * lib/fwriting.c: Likewise.
101474         * lib/fwriting.h: Likewise.
101475         * lib/gcd.c: Likewise.
101476         * lib/gcd.h: Likewise.
101477         * lib/getcwd.c: Likewise.
101478         * lib/getdate.h: Likewise.
101479         * lib/getdate.y: Likewise.
101480         * lib/getdomainname.c: Likewise.
101481         * lib/getdomainname.h: Likewise.
101482         * lib/getgroups.c: Likewise.
101483         * lib/gethostname.c: Likewise.
101484         * lib/gethrxtime.c: Likewise.
101485         * lib/gethrxtime.h: Likewise.
101486         * lib/getloadavg.c: Likewise.
101487         * lib/getndelim2.c: Likewise.
101488         * lib/getndelim2.h: Likewise.
101489         * lib/getnline.c: Likewise.
101490         * lib/getnline.h: Likewise.
101491         * lib/getopt.c: Likewise.
101492         * lib/getopt.in.h: Likewise.
101493         * lib/getopt1.c: Likewise.
101494         * lib/getopt_int.h: Likewise.
101495         * lib/getpagesize.h: Likewise.
101496         * lib/getsubopt.c: Likewise.
101497         * lib/gettime.c: Likewise.
101498         * lib/getugroups.c: Likewise.
101499         * lib/getugroups.h: Likewise.
101500         * lib/getusershell.c: Likewise.
101501         * lib/gl_anyavltree_list1.h: Likewise.
101502         * lib/gl_anyavltree_list2.h: Likewise.
101503         * lib/gl_anyhash_list1.h: Likewise.
101504         * lib/gl_anyhash_list2.h: Likewise.
101505         * lib/gl_anylinked_list1.h: Likewise.
101506         * lib/gl_anylinked_list2.h: Likewise.
101507         * lib/gl_anyrbtree_list1.h: Likewise.
101508         * lib/gl_anyrbtree_list2.h: Likewise.
101509         * lib/gl_anytree_list1.h: Likewise.
101510         * lib/gl_anytree_list2.h: Likewise.
101511         * lib/gl_anytree_oset.h: Likewise.
101512         * lib/gl_anytreehash_list1.h: Likewise.
101513         * lib/gl_anytreehash_list2.h: Likewise.
101514         * lib/gl_array_list.c: Likewise.
101515         * lib/gl_array_list.h: Likewise.
101516         * lib/gl_array_oset.c: Likewise.
101517         * lib/gl_array_oset.h: Likewise.
101518         * lib/gl_avltree_list.c: Likewise.
101519         * lib/gl_avltree_list.h: Likewise.
101520         * lib/gl_avltree_oset.c: Likewise.
101521         * lib/gl_avltree_oset.h: Likewise.
101522         * lib/gl_avltreehash_list.c: Likewise.
101523         * lib/gl_avltreehash_list.h: Likewise.
101524         * lib/gl_carray_list.c: Likewise.
101525         * lib/gl_carray_list.h: Likewise.
101526         * lib/gl_linked_list.c: Likewise.
101527         * lib/gl_linked_list.h: Likewise.
101528         * lib/gl_linkedhash_list.c: Likewise.
101529         * lib/gl_linkedhash_list.h: Likewise.
101530         * lib/gl_list.c: Likewise.
101531         * lib/gl_list.h: Likewise.
101532         * lib/gl_oset.c: Likewise.
101533         * lib/gl_oset.h: Likewise.
101534         * lib/gl_rbtree_list.c: Likewise.
101535         * lib/gl_rbtree_list.h: Likewise.
101536         * lib/gl_rbtree_oset.c: Likewise.
101537         * lib/gl_rbtree_oset.h: Likewise.
101538         * lib/gl_rbtreehash_list.c: Likewise.
101539         * lib/gl_rbtreehash_list.h: Likewise.
101540         * lib/gl_sublist.c: Likewise.
101541         * lib/gl_sublist.h: Likewise.
101542         * lib/group-member.c: Likewise.
101543         * lib/group-member.h: Likewise.
101544         * lib/hard-locale.c: Likewise.
101545         * lib/hard-locale.h: Likewise.
101546         * lib/hash-pjw.c: Likewise.
101547         * lib/hash-pjw.h: Likewise.
101548         * lib/hash-triple.c: Likewise.
101549         * lib/hash.c: Likewise.
101550         * lib/hash.h: Likewise.
101551         * lib/human.c: Likewise.
101552         * lib/human.h: Likewise.
101553         * lib/i-ring.c: Likewise.
101554         * lib/i-ring.h: Likewise.
101555         * lib/idcache.c: Likewise.
101556         * lib/imaxabs.c: Likewise.
101557         * lib/imaxdiv.c: Likewise.
101558         * lib/inet_pton.c: Likewise.
101559         * lib/inet_pton.h: Likewise.
101560         * lib/intprops.h: Likewise.
101561         * lib/inttostr.c: Likewise.
101562         * lib/inttostr.h: Likewise.
101563         * lib/inttypes.in.h: Likewise.
101564         * lib/isapipe.c: Likewise.
101565         * lib/isdir.c: Likewise.
101566         * lib/isnan.c: Likewise.
101567         * lib/isnan.h: Likewise.
101568         * lib/isnanf.c: Likewise.
101569         * lib/isnanf.h: Likewise.
101570         * lib/isnanl-nolibm.h: Likewise.
101571         * lib/isnanl.c: Likewise.
101572         * lib/isnanl.h: Likewise.
101573         * lib/javacomp.c: Likewise.
101574         * lib/javacomp.h: Likewise.
101575         * lib/javaexec.c: Likewise.
101576         * lib/javaexec.h: Likewise.
101577         * lib/javaversion.c: Likewise.
101578         * lib/javaversion.h: Likewise.
101579         * lib/javaversion.java: Likewise.
101580         * lib/lbrkprop.h: Likewise.
101581         * lib/lchmod.h: Likewise.
101582         * lib/lchown.c: Likewise.
101583         * lib/ldexpl.c: Likewise.
101584         * lib/linebreak.c: Likewise.
101585         * lib/linebreak.h: Likewise.
101586         * lib/linebuffer.c: Likewise.
101587         * lib/linebuffer.h: Likewise.
101588         * lib/locale.in.h: Likewise.
101589         * lib/logl.c: Likewise.
101590         * lib/long-options.c: Likewise.
101591         * lib/long-options.h: Likewise.
101592         * lib/lstat.c: Likewise.
101593         * lib/lstat.h: Likewise.
101594         * lib/math.in.h: Likewise.
101595         * lib/mbchar.c: Likewise.
101596         * lib/mbchar.h: Likewise.
101597         * lib/mbfile.h: Likewise.
101598         * lib/mbiter.h: Likewise.
101599         * lib/mbscasecmp.c: Likewise.
101600         * lib/mbscasestr.c: Likewise.
101601         * lib/mbschr.c: Likewise.
101602         * lib/mbscspn.c: Likewise.
101603         * lib/mbslen.c: Likewise.
101604         * lib/mbsncasecmp.c: Likewise.
101605         * lib/mbsnlen.c: Likewise.
101606         * lib/mbspbrk.c: Likewise.
101607         * lib/mbspcasecmp.c: Likewise.
101608         * lib/mbsrchr.c: Likewise.
101609         * lib/mbssep.c: Likewise.
101610         * lib/mbsspn.c: Likewise.
101611         * lib/mbsstr.c: Likewise.
101612         * lib/mbstok_r.c: Likewise.
101613         * lib/mbswidth.c: Likewise.
101614         * lib/mbswidth.h: Likewise.
101615         * lib/mbuiter.h: Likewise.
101616         * lib/memcasecmp.c: Likewise.
101617         * lib/memcasecmp.h: Likewise.
101618         * lib/memchr.c: Likewise.
101619         * lib/memcmp.c: Likewise.
101620         * lib/memcoll.c: Likewise.
101621         * lib/memcoll.h: Likewise.
101622         * lib/memcpy.c: Likewise.
101623         * lib/memrchr.c: Likewise.
101624         * lib/mkancesdirs.c: Likewise.
101625         * lib/mkdir-p.c: Likewise.
101626         * lib/mkdir-p.h: Likewise.
101627         * lib/mkdir.c: Likewise.
101628         * lib/mkdirat.c: Likewise.
101629         * lib/mkdtemp.c: Likewise.
101630         * lib/mkstemp-safer.c: Likewise.
101631         * lib/mkstemp.c: Likewise.
101632         * lib/modechange.c: Likewise.
101633         * lib/modechange.h: Likewise.
101634         * lib/mountlist.c: Likewise.
101635         * lib/mountlist.h: Likewise.
101636         * lib/mpsort.c: Likewise.
101637         * lib/nanosleep.c: Likewise.
101638         * lib/obstack.c: Likewise.
101639         * lib/obstack.h: Likewise.
101640         * lib/open-safer.c: Likewise.
101641         * lib/open.c: Likewise.
101642         * lib/openat-die.c: Likewise.
101643         * lib/openat-priv.h: Likewise.
101644         * lib/openat-proc.c: Likewise.
101645         * lib/openat.c: Likewise.
101646         * lib/openat.h: Likewise.
101647         * lib/pagealign_alloc.c: Likewise.
101648         * lib/pagealign_alloc.h: Likewise.
101649         * lib/physmem.c: Likewise.
101650         * lib/physmem.h: Likewise.
101651         * lib/pipe-safer.c: Likewise.
101652         * lib/pipe.c: Likewise.
101653         * lib/pipe.h: Likewise.
101654         * lib/posixtm.c: Likewise.
101655         * lib/posixtm.h: Likewise.
101656         * lib/posixver.c: Likewise.
101657         * lib/printf-frexp.c: Likewise.
101658         * lib/printf-frexp.h: Likewise.
101659         * lib/printf-frexpl.c: Likewise.
101660         * lib/printf-frexpl.h: Likewise.
101661         * lib/printf.c: Likewise.
101662         * lib/progname.c: Likewise.
101663         * lib/progname.h: Likewise.
101664         * lib/progreloc.c: Likewise.
101665         * lib/putenv.c: Likewise.
101666         * lib/quote.c: Likewise.
101667         * lib/quote.h: Likewise.
101668         * lib/quotearg.c: Likewise.
101669         * lib/quotearg.h: Likewise.
101670         * lib/raise.c: Likewise.
101671         * lib/readline.c: Likewise.
101672         * lib/readline.h: Likewise.
101673         * lib/readlink.c: Likewise.
101674         * lib/readtokens.c: Likewise.
101675         * lib/readtokens.h: Likewise.
101676         * lib/readtokens0.c: Likewise.
101677         * lib/readtokens0.h: Likewise.
101678         * lib/readutmp.c: Likewise.
101679         * lib/readutmp.h: Likewise.
101680         * lib/realloc.c: Likewise.
101681         * lib/relocwrapper.c: Likewise.
101682         * lib/rename-dest-slash.c: Likewise.
101683         * lib/rename.c: Likewise.
101684         * lib/rmdir.c: Likewise.
101685         * lib/rpmatch.c: Likewise.
101686         * lib/safe-read.c: Likewise.
101687         * lib/safe-read.h: Likewise.
101688         * lib/safe-write.c: Likewise.
101689         * lib/safe-write.h: Likewise.
101690         * lib/same-inode.h: Likewise.
101691         * lib/same.c: Likewise.
101692         * lib/same.h: Likewise.
101693         * lib/save-cwd.c: Likewise.
101694         * lib/save-cwd.h: Likewise.
101695         * lib/savedir.c: Likewise.
101696         * lib/savedir.h: Likewise.
101697         * lib/savewd.c: Likewise.
101698         * lib/savewd.h: Likewise.
101699         * lib/search.in.h: Likewise.
101700         * lib/setenv.c: Likewise.
101701         * lib/setenv.h: Likewise.
101702         * lib/settime.c: Likewise.
101703         * lib/sh-quote.c: Likewise.
101704         * lib/sh-quote.h: Likewise.
101705         * lib/sig2str.c: Likewise.
101706         * lib/sig2str.h: Likewise.
101707         * lib/signal.in.h: Likewise.
101708         * lib/signbitd.c: Likewise.
101709         * lib/signbitf.c: Likewise.
101710         * lib/signbitl.c: Likewise.
101711         * lib/sigprocmask.c: Likewise.
101712         * lib/sincosl.c: Likewise.
101713         * lib/sleep.c: Likewise.
101714         * lib/sprintf.c: Likewise.
101715         * lib/sqrtl.c: Likewise.
101716         * lib/stat-time.h: Likewise.
101717         * lib/stdio--.h: Likewise.
101718         * lib/stdio-safer.h: Likewise.
101719         * lib/stdlib--.h: Likewise.
101720         * lib/stdlib-safer.h: Likewise.
101721         * lib/stdlib.in.h: Likewise.
101722         * lib/stpcpy.c: Likewise.
101723         * lib/stpncpy.c: Likewise.
101724         * lib/strchrnul.c: Likewise.
101725         * lib/strcspn.c: Likewise.
101726         * lib/strerror.c: Likewise.
101727         * lib/strftime.c: Likewise.
101728         * lib/strftime.h: Likewise.
101729         * lib/striconveh.c: Likewise.
101730         * lib/striconveh.h: Likewise.
101731         * lib/striconveha.c: Likewise.
101732         * lib/striconveha.h: Likewise.
101733         * lib/stripslash.c: Likewise.
101734         * lib/strnlen1.c: Likewise.
101735         * lib/strnlen1.h: Likewise.
101736         * lib/strtod.c: Likewise.
101737         * lib/strtoimax.c: Likewise.
101738         * lib/strtok_r.c: Likewise.
101739         * lib/strtol.c: Likewise.
101740         * lib/strtoll.c: Likewise.
101741         * lib/strtoul.c: Likewise.
101742         * lib/strtoull.c: Likewise.
101743         * lib/sysexits.in.h: Likewise.
101744         * lib/tempname.c: Likewise.
101745         * lib/tempname.h: Likewise.
101746         * lib/timespec.h: Likewise.
101747         * lib/tls.c: Likewise.
101748         * lib/tls.h: Likewise.
101749         * lib/tmpdir.c: Likewise.
101750         * lib/tmpdir.h: Likewise.
101751         * lib/tmpfile-safer.c: Likewise.
101752         * lib/tmpfile.c: Likewise.
101753         * lib/trigl.c: Likewise.
101754         * lib/trigl.h: Likewise.
101755         * lib/trim.c: Likewise.
101756         * lib/trim.h: Likewise.
101757         * lib/trunc.c: Likewise.
101758         * lib/truncf.c: Likewise.
101759         * lib/truncl.c: Likewise.
101760         * lib/tsearch.c: Likewise.
101761         * lib/unicodeio.c: Likewise.
101762         * lib/unicodeio.h: Likewise.
101763         * lib/unistd--.h: Likewise.
101764         * lib/unistd-safer.h: Likewise.
101765         * lib/unistdio/ulc-fprintf.c: Likewise.
101766         * lib/unistdio/ulc-vfprintf.c: Likewise.
101767         * lib/unlinkdir.c: Likewise.
101768         * lib/unlinkdir.h: Likewise.
101769         * lib/unlocked-io.h: Likewise.
101770         * lib/unsetenv.c: Likewise.
101771         * lib/userspec.c: Likewise.
101772         * lib/utime.c: Likewise.
101773         * lib/utimecmp.c: Likewise.
101774         * lib/utimecmp.h: Likewise.
101775         * lib/utimens.c: Likewise.
101776         * lib/verify.h: Likewise.
101777         * lib/verror.c: Likewise.
101778         * lib/verror.h: Likewise.
101779         * lib/version-etc-fsf.c: Likewise.
101780         * lib/version-etc.c: Likewise.
101781         * lib/version-etc.h: Likewise.
101782         * lib/vfprintf.c: Likewise.
101783         * lib/vprintf.c: Likewise.
101784         * lib/vsprintf.c: Likewise.
101785         * lib/w32spawn.h: Likewise.
101786         * lib/wait-process.c: Likewise.
101787         * lib/wait-process.h: Likewise.
101788         * lib/wcwidth.c: Likewise.
101789         * lib/write-any-file.c: Likewise.
101790         * lib/xalloc-die.c: Likewise.
101791         * lib/xalloc.h: Likewise.
101792         * lib/xasprintf.c: Likewise.
101793         * lib/xgetcwd.c: Likewise.
101794         * lib/xgetcwd.h: Likewise.
101795         * lib/xgetdomainname.c: Likewise.
101796         * lib/xgetdomainname.h: Likewise.
101797         * lib/xgethostname.c: Likewise.
101798         * lib/xmalloc.c: Likewise.
101799         * lib/xmalloca.c: Likewise.
101800         * lib/xmalloca.h: Likewise.
101801         * lib/xmemcoll.c: Likewise.
101802         * lib/xnanosleep.c: Likewise.
101803         * lib/xreadlink.c: Likewise.
101804         * lib/xreadlink.h: Likewise.
101805         * lib/xsetenv.c: Likewise.
101806         * lib/xsetenv.h: Likewise.
101807         * lib/xstriconv.c: Likewise.
101808         * lib/xstriconv.h: Likewise.
101809         * lib/xstrndup.c: Likewise.
101810         * lib/xstrndup.h: Likewise.
101811         * lib/xstrtod.c: Likewise.
101812         * lib/xstrtod.h: Likewise.
101813         * lib/xstrtol-error.c: Likewise.
101814         * lib/xstrtol.c: Likewise.
101815         * lib/xstrtol.h: Likewise.
101816         * lib/xtime.h: Likewise.
101817         * lib/xvasprintf.c: Likewise.
101818         * lib/xvasprintf.h: Likewise.
101819         * lib/yesno.c: Likewise.
101820         * lib/yesno.h: Likewise.
101821         * posix-modules: Likewise.
101822         * tests/test-alloca-opt.c: Likewise.
101823         * tests/test-arcfour.c: Likewise.
101824         * tests/test-arctwo.c: Likewise.
101825         * tests/test-argmatch.c: Likewise.
101826         * tests/test-argp-2.sh: Likewise.
101827         * tests/test-argp.c: Likewise.
101828         * tests/test-arpa_inet.c: Likewise.
101829         * tests/test-array_list.c: Likewise.
101830         * tests/test-array_oset.c: Likewise.
101831         * tests/test-atexit.c: Likewise.
101832         * tests/test-avltree_list.c: Likewise.
101833         * tests/test-avltree_oset.c: Likewise.
101834         * tests/test-avltreehash_list.c: Likewise.
101835         * tests/test-base64.c: Likewise.
101836         * tests/test-binary-io.c: Likewise.
101837         * tests/test-byteswap.c: Likewise.
101838         * tests/test-c-ctype.c: Likewise.
101839         * tests/test-c-strcasecmp.c: Likewise.
101840         * tests/test-c-strcasestr.c: Likewise.
101841         * tests/test-c-strncasecmp.c: Likewise.
101842         * tests/test-c-strstr.c: Likewise.
101843         * tests/test-canonicalize-lgpl.c: Likewise.
101844         * tests/test-canonicalize.c: Likewise.
101845         * tests/test-carray_list.c: Likewise.
101846         * tests/test-ceilf.c: Likewise.
101847         * tests/test-ceill.c: Likewise.
101848         * tests/test-count-one-bits.c: Likewise.
101849         * tests/test-crc.c: Likewise.
101850         * tests/test-dirname.c: Likewise.
101851         * tests/test-fbufmode.c: Likewise.
101852         * tests/test-fcntl.c: Likewise.
101853         * tests/test-fflush.c: Likewise.
101854         * tests/test-floorf.c: Likewise.
101855         * tests/test-floorl.c: Likewise.
101856         * tests/test-fopen.c: Likewise.
101857         * tests/test-fprintf-posix.c: Likewise.
101858         * tests/test-fprintf-posix.h: Likewise.
101859         * tests/test-fpurge.c: Likewise.
101860         * tests/test-freadable.c: Likewise.
101861         * tests/test-freadahead.c: Likewise.
101862         * tests/test-freading.c: Likewise.
101863         * tests/test-freopen.c: Likewise.
101864         * tests/test-frexp.c: Likewise.
101865         * tests/test-frexpl.c: Likewise.
101866         * tests/test-fseek.c: Likewise.
101867         * tests/test-fseeko.c: Likewise.
101868         * tests/test-fseterr.c: Likewise.
101869         * tests/test-fstrcmp.c: Likewise.
101870         * tests/test-ftell.c: Likewise.
101871         * tests/test-ftello.c: Likewise.
101872         * tests/test-fwritable.c: Likewise.
101873         * tests/test-fwriting.c: Likewise.
101874         * tests/test-getaddrinfo.c: Likewise.
101875         * tests/test-getpass.c: Likewise.
101876         * tests/test-gettimeofday.c: Likewise.
101877         * tests/test-hmac-md5.c: Likewise.
101878         * tests/test-hmac-sha1.c: Likewise.
101879         * tests/test-iconv.c: Likewise.
101880         * tests/test-iconvme.c: Likewise.
101881         * tests/test-inttypes.c: Likewise.
101882         * tests/test-isnan.c: Likewise.
101883         * tests/test-isnanf.c: Likewise.
101884         * tests/test-isnanl-nolibm.c: Likewise.
101885         * tests/test-isnanl.c: Likewise.
101886         * tests/test-isnanl.h: Likewise.
101887         * tests/test-ldexpl.c: Likewise.
101888         * tests/test-linked_list.c: Likewise.
101889         * tests/test-linkedhash_list.c: Likewise.
101890         * tests/test-locale.c: Likewise.
101891         * tests/test-localename.c: Likewise.
101892         * tests/test-lock.c: Likewise.
101893         * tests/test-lseek.c: Likewise.
101894         * tests/test-malloca.c: Likewise.
101895         * tests/test-math.c: Likewise.
101896         * tests/test-mbscasecmp.c: Likewise.
101897         * tests/test-mbscasestr1.c: Likewise.
101898         * tests/test-mbscasestr2.c: Likewise.
101899         * tests/test-mbscasestr3.c: Likewise.
101900         * tests/test-mbscasestr4.c: Likewise.
101901         * tests/test-mbschr.c: Likewise.
101902         * tests/test-mbscspn.c: Likewise.
101903         * tests/test-mbsncasecmp.c: Likewise.
101904         * tests/test-mbspbrk.c: Likewise.
101905         * tests/test-mbspcasecmp.c: Likewise.
101906         * tests/test-mbsrchr.c: Likewise.
101907         * tests/test-mbsspn.c: Likewise.
101908         * tests/test-mbsstr1.c: Likewise.
101909         * tests/test-mbsstr2.c: Likewise.
101910         * tests/test-mbsstr3.c: Likewise.
101911         * tests/test-md5.c: Likewise.
101912         * tests/test-memmem.c: Likewise.
101913         * tests/test-netinet_in.c: Likewise.
101914         * tests/test-open.c: Likewise.
101915         * tests/test-printf-frexp.c: Likewise.
101916         * tests/test-printf-frexpl.c: Likewise.
101917         * tests/test-printf-posix.c: Likewise.
101918         * tests/test-printf-posix.h: Likewise.
101919         * tests/test-rbtree_list.c: Likewise.
101920         * tests/test-rbtree_oset.c: Likewise.
101921         * tests/test-rbtreehash_list.c: Likewise.
101922         * tests/test-read-file.c: Likewise.
101923         * tests/test-rijndael.c: Likewise.
101924         * tests/test-search.c: Likewise.
101925         * tests/test-signbit.c: Likewise.
101926         * tests/test-sleep.c: Likewise.
101927         * tests/test-snprintf-posix.c: Likewise.
101928         * tests/test-snprintf-posix.h: Likewise.
101929         * tests/test-snprintf.c: Likewise.
101930         * tests/test-sprintf-posix.c: Likewise.
101931         * tests/test-sprintf-posix.h: Likewise.
101932         * tests/test-stat-time.c: Likewise.
101933         * tests/test-stdbool.c: Likewise.
101934         * tests/test-stdint.c: Likewise.
101935         * tests/test-stdio.c: Likewise.
101936         * tests/test-stdlib.c: Likewise.
101937         * tests/test-stpncpy.c: Likewise.
101938         * tests/test-strcasestr.c: Likewise.
101939         * tests/test-striconv.c: Likewise.
101940         * tests/test-striconveh.c: Likewise.
101941         * tests/test-striconveha.c: Likewise.
101942         * tests/test-string.c: Likewise.
101943         * tests/test-sys_select.c: Likewise.
101944         * tests/test-sys_socket.c: Likewise.
101945         * tests/test-sys_stat.c: Likewise.
101946         * tests/test-sys_time.c: Likewise.
101947         * tests/test-sysexits.c: Likewise.
101948         * tests/test-time.c: Likewise.
101949         * tests/test-tls.c: Likewise.
101950         * tests/test-trunc.c: Likewise.
101951         * tests/test-truncf.c: Likewise.
101952         * tests/test-truncl.c: Likewise.
101953         * tests/test-unistd.c: Likewise.
101954         * tests/test-vasnprintf-posix.c: Likewise.
101955         * tests/test-vasnprintf-posix2.c: Likewise.
101956         * tests/test-vasnprintf.c: Likewise.
101957         * tests/test-vasprintf-posix.c: Likewise.
101958         * tests/test-vasprintf.c: Likewise.
101959         * tests/test-verify.c: Likewise.
101960         * tests/test-vfprintf-posix.c: Likewise.
101961         * tests/test-vprintf-posix.c: Likewise.
101962         * tests/test-vsnprintf-posix.c: Likewise.
101963         * tests/test-vsnprintf.c: Likewise.
101964         * tests/test-vsprintf-posix.c: Likewise.
101965         * tests/test-wchar.c: Likewise.
101966         * tests/test-wctype.c: Likewise.
101967         * tests/test-wcwidth.c: Likewise.
101968         * tests/test-xstrtol.c: Likewise.
101969         * tests/test-xvasprintf.c: Likewise.
101970         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
101971         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
101972         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
101973         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
101974         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
101975         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
101976         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
101977         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
101978         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
101979         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
101980         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
101981         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
101982         * tests/uniname/test-uninames.c: Likewise.
101983         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
101984         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
101985         * tests/unistdio/test-u16-printf1.h: Likewise.
101986         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
101987         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
101988         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
101989         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
101990         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
101991         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
101992         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
101993         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
101994         * tests/unistdio/test-u32-printf1.h: Likewise.
101995         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
101996         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
101997         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
101998         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
101999         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
102000         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
102001         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
102002         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
102003         * tests/unistdio/test-u8-printf1.h: Likewise.
102004         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
102005         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
102006         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
102007         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
102008         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
102009         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
102010         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
102011         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
102012         * tests/unistdio/test-ulc-printf1.h: Likewise.
102013         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
102014         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
102015         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
102016         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
102017         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
102018         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
102019         * tests/uniwidth/test-u16-strwidth.c: Likewise.
102020         * tests/uniwidth/test-u16-width.c: Likewise.
102021         * tests/uniwidth/test-u32-strwidth.c: Likewise.
102022         * tests/uniwidth/test-u32-width.c: Likewise.
102023         * tests/uniwidth/test-u8-strwidth.c: Likewise.
102024         * tests/uniwidth/test-u8-width.c: Likewise.
102025         * tests/uniwidth/test-uc_width.c: Likewise.
102026         * config/srclist-update: Likewise.
102027         (fixlicense): Update to GPLv3+.
102029         Change copyright notice from LGPLv2.1+ to LGPLv3+.
102030         * tests/test-tsearch.c: Change copyright notice.
102032         Change copyright notice from LGPLv2.0+ to LGPLv3+.
102033         * lib/c-strcaseeq.h: Change copyright notice.
102034         * lib/streq.h: Likewise.
102035         * lib/uniconv.h: Likewise.
102036         * lib/uniconv/u-conv-from-enc.h: Likewise.
102037         * lib/uniconv/u-conv-to-enc.h: Likewise.
102038         * lib/uniconv/u-strconv-from-enc.h: Likewise.
102039         * lib/uniconv/u-strconv-to-enc.h: Likewise.
102040         * lib/uniconv/u16-conv-from-enc.c: Likewise.
102041         * lib/uniconv/u16-conv-to-enc.c: Likewise.
102042         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
102043         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
102044         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
102045         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
102046         * lib/uniconv/u32-conv-from-enc.c: Likewise.
102047         * lib/uniconv/u32-conv-to-enc.c: Likewise.
102048         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
102049         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
102050         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
102051         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
102052         * lib/uniconv/u8-conv-from-enc.c: Likewise.
102053         * lib/uniconv/u8-conv-to-enc.c: Likewise.
102054         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
102055         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
102056         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
102057         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
102058         * lib/uniname.h: Likewise.
102059         * lib/uniname/uniname.c: Likewise.
102060         * lib/unistdio.h: Likewise.
102061         * lib/unistdio/u-asnprintf.h: Likewise.
102062         * lib/unistdio/u-asprintf.h: Likewise.
102063         * lib/unistdio/u-printf-args.c: Likewise.
102064         * lib/unistdio/u-printf-args.h: Likewise.
102065         * lib/unistdio/u-printf-parse.h: Likewise.
102066         * lib/unistdio/u-snprintf.h: Likewise.
102067         * lib/unistdio/u-sprintf.h: Likewise.
102068         * lib/unistdio/u-vasprintf.h: Likewise.
102069         * lib/unistdio/u-vsnprintf.h: Likewise.
102070         * lib/unistdio/u-vsprintf.h: Likewise.
102071         * lib/unistdio/u16-asnprintf.c: Likewise.
102072         * lib/unistdio/u16-asprintf.c: Likewise.
102073         * lib/unistdio/u16-printf-parse.c: Likewise.
102074         * lib/unistdio/u16-snprintf.c: Likewise.
102075         * lib/unistdio/u16-sprintf.c: Likewise.
102076         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
102077         * lib/unistdio/u16-u16-asprintf.c: Likewise.
102078         * lib/unistdio/u16-u16-snprintf.c: Likewise.
102079         * lib/unistdio/u16-u16-sprintf.c: Likewise.
102080         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
102081         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
102082         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
102083         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
102084         * lib/unistdio/u16-vasnprintf.c: Likewise.
102085         * lib/unistdio/u16-vasprintf.c: Likewise.
102086         * lib/unistdio/u16-vsnprintf.c: Likewise.
102087         * lib/unistdio/u16-vsprintf.c: Likewise.
102088         * lib/unistdio/u32-asnprintf.c: Likewise.
102089         * lib/unistdio/u32-asprintf.c: Likewise.
102090         * lib/unistdio/u32-printf-parse.c: Likewise.
102091         * lib/unistdio/u32-snprintf.c: Likewise.
102092         * lib/unistdio/u32-sprintf.c: Likewise.
102093         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
102094         * lib/unistdio/u32-u32-asprintf.c: Likewise.
102095         * lib/unistdio/u32-u32-snprintf.c: Likewise.
102096         * lib/unistdio/u32-u32-sprintf.c: Likewise.
102097         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
102098         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
102099         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
102100         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
102101         * lib/unistdio/u32-vasnprintf.c: Likewise.
102102         * lib/unistdio/u32-vasprintf.c: Likewise.
102103         * lib/unistdio/u32-vsnprintf.c: Likewise.
102104         * lib/unistdio/u32-vsprintf.c: Likewise.
102105         * lib/unistdio/u8-asnprintf.c: Likewise.
102106         * lib/unistdio/u8-asprintf.c: Likewise.
102107         * lib/unistdio/u8-printf-parse.c: Likewise.
102108         * lib/unistdio/u8-snprintf.c: Likewise.
102109         * lib/unistdio/u8-sprintf.c: Likewise.
102110         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
102111         * lib/unistdio/u8-u8-asprintf.c: Likewise.
102112         * lib/unistdio/u8-u8-snprintf.c: Likewise.
102113         * lib/unistdio/u8-u8-sprintf.c: Likewise.
102114         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
102115         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
102116         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
102117         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
102118         * lib/unistdio/u8-vasnprintf.c: Likewise.
102119         * lib/unistdio/u8-vasprintf.c: Likewise.
102120         * lib/unistdio/u8-vsnprintf.c: Likewise.
102121         * lib/unistdio/u8-vsprintf.c: Likewise.
102122         * lib/unistdio/ulc-asnprintf.c: Likewise.
102123         * lib/unistdio/ulc-asprintf.c: Likewise.
102124         * lib/unistdio/ulc-printf-parse.c: Likewise.
102125         * lib/unistdio/ulc-snprintf.c: Likewise.
102126         * lib/unistdio/ulc-sprintf.c: Likewise.
102127         * lib/unistdio/ulc-vasnprintf.c: Likewise.
102128         * lib/unistdio/ulc-vasprintf.c: Likewise.
102129         * lib/unistdio/ulc-vsnprintf.c: Likewise.
102130         * lib/unistdio/ulc-vsprintf.c: Likewise.
102131         * lib/unistr.h: Likewise.
102132         * lib/unistr/u-cpy-alloc.h: Likewise.
102133         * lib/unistr/u-cpy.h: Likewise.
102134         * lib/unistr/u-endswith.h: Likewise.
102135         * lib/unistr/u-move.h: Likewise.
102136         * lib/unistr/u-set.h: Likewise.
102137         * lib/unistr/u-startswith.h: Likewise.
102138         * lib/unistr/u-stpcpy.h: Likewise.
102139         * lib/unistr/u-stpncpy.h: Likewise.
102140         * lib/unistr/u-strcat.h: Likewise.
102141         * lib/unistr/u-strcpy.h: Likewise.
102142         * lib/unistr/u-strcspn.h: Likewise.
102143         * lib/unistr/u-strdup.h: Likewise.
102144         * lib/unistr/u-strlen.h: Likewise.
102145         * lib/unistr/u-strncat.h: Likewise.
102146         * lib/unistr/u-strncpy.h: Likewise.
102147         * lib/unistr/u-strnlen.h: Likewise.
102148         * lib/unistr/u-strpbrk.h: Likewise.
102149         * lib/unistr/u-strspn.h: Likewise.
102150         * lib/unistr/u-strstr.h: Likewise.
102151         * lib/unistr/u-strtok.h: Likewise.
102152         * lib/unistr/u16-check.c: Likewise.
102153         * lib/unistr/u16-chr.c: Likewise.
102154         * lib/unistr/u16-cmp.c: Likewise.
102155         * lib/unistr/u16-cpy-alloc.c: Likewise.
102156         * lib/unistr/u16-cpy.c: Likewise.
102157         * lib/unistr/u16-endswith.c: Likewise.
102158         * lib/unistr/u16-mblen.c: Likewise.
102159         * lib/unistr/u16-mbsnlen.c: Likewise.
102160         * lib/unistr/u16-mbtouc-aux.c: Likewise.
102161         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
102162         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
102163         * lib/unistr/u16-mbtouc.c: Likewise.
102164         * lib/unistr/u16-mbtoucr.c: Likewise.
102165         * lib/unistr/u16-move.c: Likewise.
102166         * lib/unistr/u16-next.c: Likewise.
102167         * lib/unistr/u16-prev.c: Likewise.
102168         * lib/unistr/u16-set.c: Likewise.
102169         * lib/unistr/u16-startswith.c: Likewise.
102170         * lib/unistr/u16-stpcpy.c: Likewise.
102171         * lib/unistr/u16-stpncpy.c: Likewise.
102172         * lib/unistr/u16-strcat.c: Likewise.
102173         * lib/unistr/u16-strchr.c: Likewise.
102174         * lib/unistr/u16-strcmp.c: Likewise.
102175         * lib/unistr/u16-strcpy.c: Likewise.
102176         * lib/unistr/u16-strcspn.c: Likewise.
102177         * lib/unistr/u16-strdup.c: Likewise.
102178         * lib/unistr/u16-strlen.c: Likewise.
102179         * lib/unistr/u16-strmblen.c: Likewise.
102180         * lib/unistr/u16-strmbtouc.c: Likewise.
102181         * lib/unistr/u16-strncat.c: Likewise.
102182         * lib/unistr/u16-strncmp.c: Likewise.
102183         * lib/unistr/u16-strncpy.c: Likewise.
102184         * lib/unistr/u16-strnlen.c: Likewise.
102185         * lib/unistr/u16-strpbrk.c: Likewise.
102186         * lib/unistr/u16-strrchr.c: Likewise.
102187         * lib/unistr/u16-strspn.c: Likewise.
102188         * lib/unistr/u16-strstr.c: Likewise.
102189         * lib/unistr/u16-strtok.c: Likewise.
102190         * lib/unistr/u16-to-u32.c: Likewise.
102191         * lib/unistr/u16-to-u8.c: Likewise.
102192         * lib/unistr/u16-uctomb-aux.c: Likewise.
102193         * lib/unistr/u16-uctomb.c: Likewise.
102194         * lib/unistr/u32-check.c: Likewise.
102195         * lib/unistr/u32-chr.c: Likewise.
102196         * lib/unistr/u32-cmp.c: Likewise.
102197         * lib/unistr/u32-cpy-alloc.c: Likewise.
102198         * lib/unistr/u32-cpy.c: Likewise.
102199         * lib/unistr/u32-endswith.c: Likewise.
102200         * lib/unistr/u32-mblen.c: Likewise.
102201         * lib/unistr/u32-mbsnlen.c: Likewise.
102202         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
102203         * lib/unistr/u32-mbtouc.c: Likewise.
102204         * lib/unistr/u32-mbtoucr.c: Likewise.
102205         * lib/unistr/u32-move.c: Likewise.
102206         * lib/unistr/u32-next.c: Likewise.
102207         * lib/unistr/u32-prev.c: Likewise.
102208         * lib/unistr/u32-set.c: Likewise.
102209         * lib/unistr/u32-startswith.c: Likewise.
102210         * lib/unistr/u32-stpcpy.c: Likewise.
102211         * lib/unistr/u32-stpncpy.c: Likewise.
102212         * lib/unistr/u32-strcat.c: Likewise.
102213         * lib/unistr/u32-strchr.c: Likewise.
102214         * lib/unistr/u32-strcmp.c: Likewise.
102215         * lib/unistr/u32-strcpy.c: Likewise.
102216         * lib/unistr/u32-strcspn.c: Likewise.
102217         * lib/unistr/u32-strdup.c: Likewise.
102218         * lib/unistr/u32-strlen.c: Likewise.
102219         * lib/unistr/u32-strmblen.c: Likewise.
102220         * lib/unistr/u32-strmbtouc.c: Likewise.
102221         * lib/unistr/u32-strncat.c: Likewise.
102222         * lib/unistr/u32-strncmp.c: Likewise.
102223         * lib/unistr/u32-strncpy.c: Likewise.
102224         * lib/unistr/u32-strnlen.c: Likewise.
102225         * lib/unistr/u32-strpbrk.c: Likewise.
102226         * lib/unistr/u32-strrchr.c: Likewise.
102227         * lib/unistr/u32-strspn.c: Likewise.
102228         * lib/unistr/u32-strstr.c: Likewise.
102229         * lib/unistr/u32-strtok.c: Likewise.
102230         * lib/unistr/u32-to-u16.c: Likewise.
102231         * lib/unistr/u32-to-u8.c: Likewise.
102232         * lib/unistr/u32-uctomb.c: Likewise.
102233         * lib/unistr/u8-check.c: Likewise.
102234         * lib/unistr/u8-chr.c: Likewise.
102235         * lib/unistr/u8-cmp.c: Likewise.
102236         * lib/unistr/u8-cpy-alloc.c: Likewise.
102237         * lib/unistr/u8-cpy.c: Likewise.
102238         * lib/unistr/u8-endswith.c: Likewise.
102239         * lib/unistr/u8-mblen.c: Likewise.
102240         * lib/unistr/u8-mbsnlen.c: Likewise.
102241         * lib/unistr/u8-mbtouc-aux.c: Likewise.
102242         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
102243         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
102244         * lib/unistr/u8-mbtouc.c: Likewise.
102245         * lib/unistr/u8-mbtoucr.c: Likewise.
102246         * lib/unistr/u8-move.c: Likewise.
102247         * lib/unistr/u8-next.c: Likewise.
102248         * lib/unistr/u8-prev.c: Likewise.
102249         * lib/unistr/u8-set.c: Likewise.
102250         * lib/unistr/u8-startswith.c: Likewise.
102251         * lib/unistr/u8-stpcpy.c: Likewise.
102252         * lib/unistr/u8-stpncpy.c: Likewise.
102253         * lib/unistr/u8-strcat.c: Likewise.
102254         * lib/unistr/u8-strchr.c: Likewise.
102255         * lib/unistr/u8-strcmp.c: Likewise.
102256         * lib/unistr/u8-strcpy.c: Likewise.
102257         * lib/unistr/u8-strcspn.c: Likewise.
102258         * lib/unistr/u8-strdup.c: Likewise.
102259         * lib/unistr/u8-strlen.c: Likewise.
102260         * lib/unistr/u8-strmblen.c: Likewise.
102261         * lib/unistr/u8-strmbtouc.c: Likewise.
102262         * lib/unistr/u8-strncat.c: Likewise.
102263         * lib/unistr/u8-strncmp.c: Likewise.
102264         * lib/unistr/u8-strncpy.c: Likewise.
102265         * lib/unistr/u8-strnlen.c: Likewise.
102266         * lib/unistr/u8-strpbrk.c: Likewise.
102267         * lib/unistr/u8-strrchr.c: Likewise.
102268         * lib/unistr/u8-strspn.c: Likewise.
102269         * lib/unistr/u8-strstr.c: Likewise.
102270         * lib/unistr/u8-strtok.c: Likewise.
102271         * lib/unistr/u8-to-u16.c: Likewise.
102272         * lib/unistr/u8-to-u32.c: Likewise.
102273         * lib/unistr/u8-uctomb-aux.c: Likewise.
102274         * lib/unistr/u8-uctomb.c: Likewise.
102275         * lib/unitypes.h: Likewise.
102276         * lib/uniwidth.h: Likewise.
102277         * lib/uniwidth/cjk.h: Likewise.
102278         * lib/uniwidth/u16-strwidth.c: Likewise.
102279         * lib/uniwidth/u16-width.c: Likewise.
102280         * lib/uniwidth/u32-strwidth.c: Likewise.
102281         * lib/uniwidth/u32-width.c: Likewise.
102282         * lib/uniwidth/u8-strwidth.c: Likewise.
102283         * lib/uniwidth/u8-width.c: Likewise.
102284         * lib/uniwidth/width.c: Likewise.
102286 2007-10-07  Bruno Haible  <bruno@clisp.org>
102288         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
102289         The file is still under LGPL (see modules/inttypes).
102291 2007-10-06  Bruno Haible  <bruno@clisp.org>
102293         * modules/trunc (Dependencies): Add 'extensions'.
102294         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
102295         Reported by Ben Pfaff <blp@gnu.org>.
102297 2007-10-06  Bruno Haible  <bruno@clisp.org>
102299         * modules/freopen-tests: New file.
102300         * tests/test-freopen.c: New file.
102302         * modules/fopen-tests: New file.
102303         * tests/test-fopen.c: New file.
102305         * modules/fopen: New file.
102306         * lib/fopen.c: New file.
102307         * m4/fopen.m4: New file.
102308         * modules/freopen: New file.
102309         * lib/freopen.c: New file.
102310         * m4/freopen.m4: New file.
102311         * lib/stdio.in.h (fopen, freopen): New declarations.
102312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
102313         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
102314         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
102315         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
102316         * doc/functions/fopen.texi: Mention the 'fopen' module.
102317         * doc/functions/freopen.texi: Mention the 'freopen' module.
102319 2007-10-06  Bruno Haible  <bruno@clisp.org>
102321         * modules/open-tests: New file.
102322         * tests/test-open.c: New file.
102324         * modules/open: New file.
102325         * lib/open.c: New file.
102326         * m4/open.m4: New file.
102327         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
102328         lib/open.c does.
102329         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
102330         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
102331         macros.
102332         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
102333         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
102334         REPLACE_OPEN.
102335         * doc/functions/open.texi: Mention the 'open' module.
102337 2007-10-04  Bruno Haible  <bruno@clisp.org>
102339         * modules/ceill-tests: New file.
102340         * tests/test-ceill.c: New file.
102342         * modules/ceill: New file.
102343         * lib/ceill.c: Replace entire file.
102344         * m4/ceill.m4: New file.
102345         * lib/math.in.h (ceill): Replace declaration.
102346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
102347         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
102348         * doc/functions/ceill.texi: Mention the 'ceill' module.
102349         * modules/mathl (Files): Remove lib/ceill.c.
102350         (Depends-on): Add ceill.
102352 2007-10-04  Bruno Haible  <bruno@clisp.org>
102354         * modules/ceilf-tests: New file.
102355         * tests/test-ceilf.c: New file.
102357         * modules/ceilf: New file.
102358         * lib/ceil.c: New file.
102359         * lib/ceilf.c: New file.
102360         * m4/ceilf.m4: New file.
102361         * lib/math.in.h (ceilf): New declaration.
102362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
102363         HAVE_DECL_CEILF.
102364         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
102365         HAVE_DECL_CEILF.
102366         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
102368 2007-10-04  Bruno Haible  <bruno@clisp.org>
102370         * modules/floorl-tests: New file.
102371         * tests/test-floorl.c: New file.
102373         * modules/floorl: New file.
102374         * lib/floorl.c: Replace entire file.
102375         * m4/floorl.m4: New file.
102376         * lib/math.in.h (floorl): Replace declaration.
102377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
102378         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
102379         * doc/functions/floorl.texi: Mention the 'floorl' module.
102380         * modules/mathl (Files): Remove lib/floorl.c.
102381         (Depends-on): Add floorl.
102383 2007-10-04  Bruno Haible  <bruno@clisp.org>
102385         * modules/floorf-tests: New file.
102386         * tests/test-floorf.c: New file.
102388         * modules/floorf: New file.
102389         * lib/floor.c: New file.
102390         * lib/floorf.c: New file.
102391         * m4/floorf.m4: New file.
102392         * lib/math.in.h (floorf): New declaration.
102393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
102394         HAVE_DECL_FLOORF.
102395         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
102396         HAVE_DECL_FLOORF.
102397         * doc/functions/floorf.texi: Mention the 'floorf' module.
102399 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
102400             Bruno Haible  <bruno@clisp.org>
102402         Advertise for the Git server instead of the CVS server.
102403         * doc/gnulib-intro.texi (Steady Development): Mention the Git
102404         repository instead of the CVS one.
102405         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
102406         about all VCS systems generically.
102407         * doc/gnulib.texi (Introduction): Capitalize `Git'.
102409 2007-10-04  Bruno Haible  <bruno@clisp.org>
102411         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
102412         means.
102413         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
102415 2007-10-04  Bruno Haible  <bruno@clisp.org>
102417         * modules/truncl-tests: New file.
102418         * tests/test-truncl.c: New file.
102420         * modules/truncl: New file.
102421         * lib/truncl.c: New file.
102422         * m4/truncl.m4: New file.
102423         * lib/math.in.h (truncl): New declaration.
102424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
102425         HAVE_DECL_TRUNCL.
102426         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
102427         HAVE_DECL_TRUNCL.
102428         * doc/functions/truncl.texi: Mention the 'truncl' module.
102430 2007-10-04  Bruno Haible  <bruno@clisp.org>
102432         * modules/truncf-tests: New file.
102433         * tests/test-truncf.c: New file.
102435         * modules/truncf: New file.
102436         * lib/trunc.c: Make paramerizable through USE_* macros.
102437         * lib/truncf.c: New file.
102438         * m4/truncf.m4: New file.
102439         * lib/math.in.h (truncf): New declaration.
102440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
102441         HAVE_DECL_TRUNCF.
102442         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
102443         HAVE_DECL_TRUNCF.
102444         * doc/functions/truncf.texi: Mention the 'truncf' module.
102446 2007-10-03  Bruno Haible  <bruno@clisp.org>
102448         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
102449         augmentation also for tests modules.
102450         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
102451         * modules/atexit-tests (Makefile.am): Likewise.
102452         * modules/binary-io-tests (Makefile.am): Likewise.
102453         * modules/c-strcase-tests (Makefile.am): Likewise.
102454         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
102455         * modules/canonicalize-tests (Makefile.am): Likewise.
102456         * modules/closein-tests (Makefile.am): Likewise.
102457         * modules/fprintf-posix-tests (Makefile.am): Likewise.
102458         * modules/freadahead-tests (Makefile.am): Likewise.
102459         * modules/fseek-tests (Makefile.am): Likewise.
102460         * modules/fseeko-tests (Makefile.am): Likewise.
102461         * modules/ftell-tests (Makefile.am): Likewise.
102462         * modules/ftello-tests (Makefile.am): Likewise.
102463         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
102464         * modules/isnanl-tests (Makefile.am): Likewise.
102465         * modules/lseek-tests (Makefile.am): Likewise.
102466         * modules/mbscasecmp-tests (Makefile.am): Likewise.
102467         * modules/mbscasestr-tests (Makefile.am): Likewise.
102468         * modules/mbschr-tests (Makefile.am): Likewise.
102469         * modules/mbscspn-tests (Makefile.am): Likewise.
102470         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
102471         * modules/mbspbrk-tests (Makefile.am): Likewise.
102472         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
102473         * modules/mbsrchr-tests (Makefile.am): Likewise.
102474         * modules/mbsspn-tests (Makefile.am): Likewise.
102475         * modules/mbsstr-tests (Makefile.am): Likewise.
102476         * modules/printf-posix-tests (Makefile.am): Likewise.
102477         * modules/snprintf-posix-tests (Makefile.am): Likewise.
102478         * modules/sprintf-posix-tests (Makefile.am): Likewise.
102479         * modules/tsearch-tests (Makefile.am): Likewise.
102480         * modules/uniname/uniname-tests (Makefile.am): Likewise.
102481         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
102482         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
102483         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
102484         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
102485         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
102486         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
102487         * modules/vprintf-posix-tests (Makefile.am): Likewise.
102488         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
102489         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
102490         * modules/xstrtoimax-tests (Makefile.am): Likewise.
102491         * modules/xstrtol-tests (Makefile.am): Likewise.
102492         * modules/xstrtoumax-tests (Makefile.am): Likewise.
102493         * modules/yesno-tests (Makefile.am): Likewise.
102495 2007-10-03  Bruno Haible  <bruno@clisp.org>
102497         * modules/trunc-tests: New file.
102498         * tests/test-trunc.c: New file.
102500         * modules/trunc: New file.
102501         * lib/trunc.c: New file.
102502         * m4/trunc.m4: New file.
102503         * lib/math.in.h (trunc): New declaration.
102504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
102505         HAVE_DECL_TRUNC.
102506         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
102507         HAVE_DECL_TRUNC.
102508         * doc/functions/trunc.texi: Mention the 'trunc' module.
102510 2007-10-03  Bruno Haible  <bruno@clisp.org>
102512         * tests/test-fpending.c: New file, mostly copied
102513         from coreutils/lib/t-fpending.c.
102514         * modules/fpending-tests: New file.
102516 2007-10-03  Bruno Haible  <bruno@clisp.org>
102518         Port the stdio extensions to QNX (untested).
102519         * lib/fseterr.c (fseterr): Add support for QNX.
102520         * lib/fbufmode.c (fbufmode): Likewise.
102521         * lib/freadable.c (freadable): Likewise.
102522         * lib/fwritable.c (fwritable): Likewise.
102523         * lib/freading.c (freading): Likewise.
102524         * lib/fwriting.c (fwriting): Likewise.
102525         * lib/freadahead.c (freadahed): Likewise.
102526         * lib/fpurge.c (fpurge): Likewise.
102527         * lib/fseeko.c (rpl_fseeko): Likewise.
102529 2007-10-03  Bruno Haible  <bruno@clisp.org>
102530             Jim Meyering  <jim@meyering.net>
102531             Eric Blake  <ebb9@byu.net>
102533         * doc/relocatable.texi: Use @command instead of @program.
102535 2007-10-02  Jim Meyering  <jim@meyering.net>
102537         Perform one more "_.h" -> ".in.h" substitution.
102538         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
102539         instead of unistd_.h here, too.
102541 2007-10-01  Bruno Haible  <bruno@clisp.org>
102543         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
102544         Needed for the alloca-opt module.
102546 2007-09-30  Bruno Haible  <bruno@clisp.org>
102548         * lib/alloca.in.h: Renamed from lib/alloca_.h.
102549         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
102550         alloca_.h.
102551         * lib/argz.in.h: Renamed from lib/argz_.h.
102552         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
102553         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
102554         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
102555         byteswap_.h.
102556         * lib/dirent.in.h: Renamed from lib/dirent_.h.
102557         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
102558         dirent_.h.
102559         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
102560         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
102561         fcntl_.h.
102562         * lib/float.in.h: Renamed from lib/float_.h.
102563         * modules/float (Files, Makefile.am): Use float.in.h instead of
102564         float_.h.
102565         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
102566         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
102567         fnmatch_.h.
102568         * lib/getopt.in.h: Renamed from lib/getopt_.h.
102569         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
102570         getopt_.h.
102571         * lib/glob.in.h: Renamed from lib/glob_.h.
102572         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
102573         * lib/iconv.in.h: Renamed from lib/iconv_.h.
102574         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
102575         iconv_.h.
102576         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
102577         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
102578         inttypes_.h.
102579         * lib/locale.in.h: Renamed from lib/locale_.h.
102580         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
102581         locale_.h.
102582         * lib/math.in.h: Renamed from lib/math_.h.
102583         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
102584         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
102585         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
102586         of netinet_in_.h. Add dependency.
102587         * lib/poll.in.h: Renamed from lib/poll_.h.
102588         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
102589         * lib/search.in.h: Renamed from lib/search_.h.
102590         * modules/search (Files, Makefile.am): Use search.in.h instead of
102591         search_.h.
102592         * lib/signal.in.h: Renamed from lib/signal_.h.
102593         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
102594         _signal.h.
102595         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
102596         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
102597         stdbool_.h.
102598         * lib/stdint.in.h: Renamed from lib/stdint_.h.
102599         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
102600         stdint_.h.
102601         * lib/stdio.in.h: Renamed from lib/stdio_.h.
102602         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
102603         stdio_.h.
102604         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
102605         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
102606         stdlib_.h.
102607         * lib/string.in.h: Renamed from lib/string_.h.
102608         * modules/string (Files, Makefile.am): Use string.in.h instead of
102609         string_.h.
102610         * doc/gnulib-tool.texi (Initial import): Update.
102611         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
102612         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
102613         of sys_select_.h. Add dependency.
102614         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
102615         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
102616         of sys_socket_.h.
102617         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
102618         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
102619         sys_stat_.h.
102620         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
102621         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
102622         sys_time_.h.
102623         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
102624         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
102625         sysexits_.h.
102626         * lib/time.in.h: Renamed from lib/time_.h.
102627         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
102628         * lib/unistd.in.h: Renamed from lib/unistd_.h.
102629         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
102630         unistd_.h.
102631         * lib/wchar.in.h: Renamed from lib/wchar_.h.
102632         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
102633         wchar_.h.
102634         * lib/wctype.in.h: Renamed from lib/wctype_.h.
102635         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
102636         wctype_.h.
102637         * build-aux/bootstrap (slurp): Update.
102638         * lib/.cppi-disable: Update.
102640 2007-09-30  Bruno Haible  <bruno@clisp.org>
102642         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
102643         Needed on BeOS.
102645 2007-09-30  Bruno Haible  <bruno@clisp.org>
102647         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
102649 2007-09-29  Bruno Haible  <bruno@clisp.org>
102651         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
102653 2007-09-29  Bruno Haible  <bruno@clisp.org>
102655         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
102656         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
102657         * build-aux/install-reloc: Compile also areadlink.c.
102658         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
102660 2007-09-29  Bruno Haible  <bruno@clisp.org>
102662         * gnulib-tool (func_emit_initmacro_done): Indentation.
102664 2007-09-29  Bruno Haible  <bruno@clisp.org>
102666         * README: Add CVS checkout update instructions.
102667         Info from Bob Proulx <bob@proulx.com>.
102669 2007-09-28  Eric Blake  <ebb9@byu.net>
102671         Provide move-if-change.
102672         * build-aux/move-if-change: New file, based on best practice
102673         rather than any canonical upstream location.
102675 2007-09-28  Jim Meyering  <jim@meyering.net>
102677         Fix canonicalize loop-detection corner case.
102678         Do not attempt to stat the symlink values stored via seen_triple.
102679         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
102680         on linux-2.6.18, (but not 2.6.22).
102681         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
102682         triple_compare.  The former compares dev,ino,filename, while the latter
102683         would actually stat dirname(filename) when dev and ino were equal.
102684         * lib/hash-triple.c: Install <string.h>.
102685         (STREQ): Define.
102686         (triple_compare_ino_str): New function.
102687         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
102689 2007-09-28  Eric Blake  <ebb9@byu.net>
102691         Enforce that AC_REPLACE_FUNCS files exist.
102692         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
102693         override check for typos.
102695         Fix test-closein on Solaris 10.
102696         * tests/test-closein.c (main): Don't assume stdin can be inherited
102697         closed on all systems.
102698         * tests/test-closein.sh: Likewise.
102699         Reported by Piotr Tarnowski.
102701 2007-09-28  Jim Meyering  <jim@meyering.net>
102703         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
102705 2007-09-27  Jim Meyering  <jim@meyering.net>
102707         canonicalize: Avoid a false-positive cycle failure.
102708         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
102709         Sort.  Remove cycle-check.
102710         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
102711         not cycle-check.h.
102712         (seen_triple): New function.
102713         (canonicalize_filename_mode): Use it instead of cycle-check.
102714         * tests/test-canonicalize.c: Add a test for this bug.
102715         * tests/test-canonicalize.sh: Set up and run the test.
102717         New module, file-set, from coreutils.
102718         * modules/file-set: Define it.
102719         * lib/file-set.c, lib/file-set.h: Implement.
102721         New module, hash-triple, from coreutils.
102722         * modules/hash-triple: Define it.
102723         * lib/hash-triple.c, lib/hash-triple.h: Implement.
102725 2007-09-25  Eric Blake  <ebb9@byu.net>
102727         Fix strerror on Interix.
102728         * lib/string_.h (strerror): Declare replacement.
102729         * doc/functions/strerror.texi (strerror): Document the Interix
102730         shortcoming.
102731         * modules/string (Makefile.am): Support new hooks.
102732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
102733         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
102734         gl_FUNC_STRERROR_SEPARATE.
102735         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
102736         * lib/strerror.c (rpl_strerror): Provide replacement.
102737         * modules/strerror (Depends-on): Add string.
102738         (configure.ac): Detect use of module.
102739         * tests/test-strerror.c: New file.
102740         * modules/strerror-tests: New test module.
102741         * modules/argp (Depends-on): Add strerror.
102742         * modules/error (Depends-on): Likewise.
102743         Reported by Martin Koeppe.
102745 2007-09-24  Bruno Haible  <bruno@clisp.org>
102747         * README: Update git instructions.
102749 2007-09-24  Eric Blake  <ebb9@byu.net>
102751         Revert fpending breakage from 2007-09-08.
102752         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
102753         __fpending.c.
102755 2007-09-24  Jim Meyering  <jim@meyering.net>
102757         filenamecat.c: Add a test.
102758         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
102759         showing how the function works when DIR is the empty string.
102761 2007-09-21  Simon Josefsson  <simon@josefsson.org>
102763         * tests/test-canonicalize.sh: Turn on executable bit.
102765 2007-09-19  Eric Blake  <ebb9@byu.net>
102767         * README: Update CVS instructions.
102769 2007-09-18  Bruno Haible  <bruno@clisp.org>
102771         * modules/areadlink: New file.
102772         * lib/areadlink.h (areadlink): New declaration.
102773         * lib/areadlink.c: New file, based on lib/xreadlink.c.
102775 2007-09-17  Jim Meyering  <jim@meyering.net>
102777         * lib/savewd.c (ESTALE) [!defined]: Define.
102778         Reported to be required on Interix by Martin Koeppe.
102780 2007-09-17  Bruno Haible  <bruno@clisp.org>
102782         * gnulib-tool (func_version): Use $version.
102784 2007-09-16  Bruno Haible  <bruno@clisp.org>
102786         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
102787         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
102788         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
102789         Reported by Greg Schafer <gschafer@zip.com.au>.
102791 2007-09-15  Bruno Haible  <bruno@clisp.org>
102793         * gnulib-tool (sed): Try a little harder to make bash understand the
102794         alias.
102795         Reported by Bruce Korb <bruce.korb@gmail.com>.
102797 2007-09-13  Eric Blake  <ebb9@byu.net>
102799         * ChangeLog: Remove conflict markers.
102801 2007-09-13  Simon Josefsson  <simon@josefsson.org>
102803         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
102804         Reported by Bruno Haible <bruno@clisp.org>.
102806 2007-09-12  Bruno Haible  <bruno@clisp.org>
102808         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
102809         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
102810         is not defined.
102812 2007-09-12  Eric Blake  <ebb9@byu.net>
102814         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
102815         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
102816         Autoconf definition.
102817         * modules/euidaccess (Depends-on): Add extensions, for
102818         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
102819         * modules/fnmatch (Depends-on): Likewise.
102820         * modules/getaddrinfo (Depends-on): Likewise.
102821         * modules/getdelim (Depends-on): Likewise.
102822         * modules/getline (Depends-on): Likewise.
102823         * modules/getsubopt (Depends-on): Likewise.
102824         * modules/gettext (Depends-on): Likewise.
102825         * modules/group-member (Depends-on): Likewise.
102826         * modules/mbchar (Depends-on): Likewise.
102827         * modules/memmem (Depends-on): Likewise.
102828         * modules/mempcpy (Depends-on): Likewise.
102829         * modules/memrchr (Depends-on): Likewise.
102830         * modules/pagealign_alloc (Depends-on): Likewise.
102831         * modules/readutmp (Depends-on): Likewise.
102832         * modules/stpcpy (Depends-on): Likewise.
102833         * modules/stpncpy (Depends-on): Likewise.
102834         * modules/strchrnul (Depends-on): Likewise.
102835         * modules/strndup (Depends-on): Likewise.
102836         * modules/strsep (Depends-on): Likewise.
102837         * modules/strverscmp (Depends-on): Likewise.
102838         * modules/vasprintf (Depends-on): Likewise.
102839         * modules/wcwidth (Depends-on): Likewise.
102840         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
102841         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
102842         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
102843         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
102844         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
102845         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102846         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
102847         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
102848         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
102849         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
102850         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
102851         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
102852         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
102853         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
102854         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
102855         * m4/readutmp.m4 (gl_READUTMP): Likewise.
102856         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102857         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
102858         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
102859         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
102860         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
102861         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
102862         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
102863         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
102864         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
102865         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
102866         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
102867         so that lock.m4 can be used in gettext without extensions module.
102869 2007-09-11  Bruno Haible  <bruno@clisp.org>
102871         * m4/isc-posix.m4: Remove file.
102872         Suggested by Eric Blake.
102874 2007-09-11  Eric Blake  <ebb9@byu.net>
102876         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
102878 2007-09-10  Bruno Haible  <bruno@clisp.org>
102880         * posix-modules: Fix typo in error message.
102881         Reported by Matt <mkraai@beckman.com>.
102883 2007-09-09  Bruno Haible  <bruno@clisp.org>
102885         * doc/functions/getdelim.texi: Update list of platforms lacking the
102886         function.
102887         * doc/functions/getline.texi: Likewise.
102889 2007-09-09  Jim Meyering  <jim@meyering.net>
102891         * lib/hash.c (hash_initialize): Detect calloc failure.
102892         Reported by Bruno Haible.
102894 2007-09-09  Bruno Haible  <bruno@clisp.org>
102896         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
102897         malloc or realloc fails.
102899 2007-09-09  Bruno Haible  <bruno@clisp.org>
102901         * modules/getcwd (Depends-on): Add malloc-posix.
102902         * modules/glob (Depends-on): Likewise.
102903         * modules/putenv (Depends-on): Likewise.
102904         * modules/strdup (Depends-on): Likewise.
102905         * modules/getdelim (Depends-on): Add realloc-posix.
102906         * modules/read-file (Depends-on): Likewise.
102908 2007-09-09  Bruno Haible  <bruno@clisp.org>
102910         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
102911         (gl_FUNC_MALLOC_POSIX): Require it.
102912         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
102913         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
102914         * modules/realloc (Files): Add m4/malloc.m4.
102915         * modules/calloc (Files): Likewise.
102917 2007-09-09  Bruno Haible  <bruno@clisp.org>
102919         * modules/malloc-posix: New file.
102920         * modules/malloc (Depends-on): Add malloc-posix.
102921         * lib/malloc.c: Include errno.h.
102922         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
102923         and a POSIX-compatible malloc into a single function. Set ENOMEM
102924         when returning NULL.
102925         * m4/malloc.m4: New file.
102926         * doc/functions/malloc.texi: Mention the malloc-posix module.
102927         * lib/stdlib_.h (malloc): New declaration.
102928         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102929         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
102930         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
102931         and HAVE_MALLOC_POSIX.
102933 2007-09-09  Bruno Haible  <bruno@clisp.org>
102935         * modules/realloc-posix: New file.
102936         * modules/realloc (Depends-on): Add realloc-posix.
102937         * lib/realloc.c: Include errno.h.
102938         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
102939         and a POSIX-compatible realloc into a single function. Set ENOMEM
102940         when returning NULL.
102941         * m4/realloc.m4: New file.
102942         * doc/functions/realloc.texi: Mention the realloc-posix module.
102943         * lib/stdlib_.h (realloc): New declaration.
102944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102945         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
102946         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
102947         and HAVE_REALLOC_POSIX.
102949 2007-09-09  Bruno Haible  <bruno@clisp.org>
102951         * modules/calloc-posix: New file.
102952         * modules/calloc (Depends-on): Add calloc-posix.
102953         * lib/calloc.c: Include errno.h.
102954         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
102955         and a POSIX-compatible calloc into a single function. Set ENOMEM
102956         when returning NULL.
102957         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
102958         * doc/functions/calloc.texi: Mention the calloc-posix module.
102959         * lib/stdlib_.h (calloc): New declaration.
102960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102961         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
102962         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
102963         and HAVE_CALLOC_POSIX.
102965 2007-09-09  Bruno Haible  <bruno@clisp.org>
102967         Allow for modules to show an arbitrary notice.
102968         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
102969         * gnulib-tool: New option --extract-notice.
102970         (func_usage): Document it.
102971         (sed_extract_prog): Update.
102972         (func_get_notice): New function.
102973         (func_modules_notice): New function.
102974         (func_import, func_create_testdir): Invoke it.
102975         Suggested by Jim Meyering.
102977 2007-09-09  Bruno Haible  <bruno@clisp.org>
102979         * gnulib-tool: New options --verbose, --quiet.
102980         (func_usage): Document them.
102981         (verbose): New variable.
102982         (func_execute_command): New function.
102983         (func_import): Don't show the module list and the file list if
102984         $verbose < 0.
102985         (func_create_testdir): Likewise. Use func_execute_command.
102986         (func_create_megatestdir): Use func_execute_command.
102988 2007-09-08  Bruno Haible  <bruno@clisp.org>
102990         * gnulib-tool (func_import): Prefer rsync over wget when available,
102991         for fetching the PO files.
102993 2007-09-08  Bruno Haible  <bruno@clisp.org>
102995         * posix-modules: New file. Portions copied from gnulib-tool.
102996         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
102998 2007-09-08  Jim Meyering  <jim@meyering.net>
103000         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
103001         * lib/fpending.h: Rename from __fpending.h.
103002         * lib/fpending.c: Rename from __fpending.c.
103003         Include "fpending.h", not "__fpending.h".
103004         * lib/__fpending.h, lib/__fpending.c: Remove files.
103005         * modules/fpending (Files): Reflect new file names.
103006         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
103008 2007-09-08  Bruno Haible  <bruno@clisp.org>
103010         * m4/inttypes-h.m4: Remove stub file.
103012 2007-09-07  Simon Josefsson  <simon@josefsson.org>
103014         * doc/headers/stdint.texi: Discuss #include_next issue.
103016 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
103018         * build-aux/bootstrap: Remove obsolete comment about wget --help.
103020 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103022         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
103023         in variable name.
103025 2007-09-03  Jim Meyering  <jim@meyering.net>
103027         New module: git-version-gen.
103028         * modules/git-version-gen: New file.
103030         Import changes from coreutils for bootstrap script.
103032         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
103034         bootstrap: uses rsync to download the .po files
103035         * build-aux/bootstrap (po_download_command_format): New global.
103036         (download_po_files): Use rsync.
103037         (update_po_files): Don't remove .po files after download,
103038         so future rsync runs can take advantage of the copies.
103040         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
103042         Solve the unnecessary-.po-file-regeneration problem once and for all.
103043         * build-aux/bootstrap (download_po_files): New function, renamed from
103044         get_translations.  Now, downloads, but doesn't update LINGUAS.
103045         (update_po_files): New function.
103047         bootstrap: Ignore more.
103048         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
103049         uniwidth to e.g., lib/.gitignore.
103050         (slurp): Handle the sys_stat_.h -> sys mapping, too.
103052         * build-aux/bootstrap: New setting: vc_ignore.
103053         (insert_sorted_if_absent): Create $file if absent.
103054         Adapt to new, possibly empty, list: $vc_ignore.
103056         bootstrap: generate more ignorable names
103057         * build-aux/bootstrap (slurp): When generating ignorable names,
103058         also map .sin to .sed, .gperf to .c, and .y to .c.
103060 2007-09-03  Jim Meyering  <jim@meyering.net>
103062         * build-aux/git-version-gen: New file, from coreutils.  For details, see
103063         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
103065 2007-09-02  Bruno Haible  <bruno@clisp.org>
103067         Fix mis-recognition of 'mcs' on QNX 6.
103068         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
103069         output contains the string "Mono".
103070         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
103071         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
103073 2007-09-01  Bruno Haible  <bruno@clisp.org>
103075         Fix collision between uniwidth/* and linebreak modules.
103076         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
103077         u32_width): Remove declarations.
103078         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
103079         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
103080         streq3, streq2, streq1, streq0): Remove functions.
103081         (STREQ): Remove macro.
103082         (is_cjk_encoding): Remove function.
103083         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
103084         (uc_width, u8_width, u16_width, u32_width): Remove functions.
103085         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
103086         * NEWS: Document the change.
103088 2007-09-01  Bruno Haible  <bruno@clisp.org>
103090         * lib/streq.h: Add double-inclusion guard.
103092 2007-09-01  Karl Berry  <karl@gnu.org>
103094         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
103096 2007-08-28  Jim Meyering  <jim@meyering.net>
103098         Rename mreadlink_with_size to areadlink_with_size.
103099         * NEWS: Document the change.
103100         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
103101         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
103102         * lib/mreadlink.h: Rename this to...
103103         * lib/areadlink.h: ...this.
103104         * modules/mreadlink-with-size: Rename this to...
103105         * modules/areadlink-with-size: ...this.
103106         * lib/canonicalize.c: Reflect the renaming.
103107         * modules/canonicalize: Likewise.
103109 2007-08-26  Bruno Haible  <bruno@clisp.org>
103111         * gnulib-tool (func_import): When deciding which files to remove,
103112         consider also dangling symbolic links.
103113         Reported by Eric Blake.
103115 2007-08-26  Bruno Haible  <bruno@clisp.org>
103117         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
103119 2007-08-23  Simon Josefsson  <simon@josefsson.org>
103121         * lib/readline.c: Don't include getline.h, the prototype is now
103122         found in stdio.h.
103124 2007-08-23  Jim Meyering  <jim@meyering.net>
103126         Getdelim touchup.
103127         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
103128         around the funlockfile call, since funlockfile never sets errno.
103129         Don't set errno upon failed realloc.
103131 2007-08-22  Eric Blake  <ebb9@byu.net>
103133         Getline touchups.
103134         * lib/getdelim.c (getdelim): Revert regression that required *n to
103135         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
103136         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
103137         getdelim, rather than whether implementation is missing.
103138         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
103139         * lib/stdio_.h (getline): Also declare if replacement is
103140         required.
103141         * doc/functions/getdelim.texi: New file.
103142         * doc/functions/getline.texi: Likewise.
103143         * doc/gnulib.texi (Function Substitutes): Add new files.
103144         Reported by Bruno Haible.
103146 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
103148         * users.txt: Add Guile.
103150 2007-08-22  Eric Blake  <ebb9@byu.net>
103152         * tests/test-getdelim.c (main): Use remove, not unlink.
103153         * tests/test-getline.c (main): Likewise.
103155         Move getline and getdelim into stdio.h, per POSIX 200x.
103156         * modules/getline (Files): Remove getline.h.
103157         (Depends-on): Add stdio.
103158         (configure.ac): Add module indicator.
103159         * modules/getdelim (Files): Remove getdelim.h.
103160         (Depends-on): Add stdio.
103161         (configure.ac): Add module indicator.
103162         * modules/stdio (Makefile.am): Work with new indicators.
103163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
103164         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
103165         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
103166         * lib/getdelim.h: Delete.
103167         * lib/getline.h: Delete.
103168         * lib/stdio_.h (getdelim, getline): Declare.
103169         * modules/getdelim-tests: New module.
103170         * modules/getline-tests: Likewise.
103171         * tests/test-getdelim.c: New file.
103172         * tests/test-getline.c: Likewise.
103173         * NEWS: Document the change.
103174         * lib/getline.c: Update choice of header.
103175         * lib/csharpcomp.c: Likewise.
103176         * lib/getpass.c: Likewise.
103177         * lib/javacomp.c: Likewise.
103178         * lib/javaversion.c: Likewise.
103179         * lib/yesno.c: Likewise.
103180         * lib/getdelim.c: Likewise.
103181         (getdelim): Set errno on failure, and avoid memory leak.
103183 2007-08-19  Bruno Haible  <bruno@clisp.org>
103185         * modules/closein (Depends-on): Add freadahead.
103186         * lib/closein.c: Include freadahead.h.
103187         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
103188         is zero.
103190 2007-08-19  Bruno Haible  <bruno@clisp.org>
103192         * modules/freadahead-tests: New file.
103193         * tests/test-freadahead.sh: New file.
103194         * tests/test-freadahead.c: New file.
103196         * modules/freadahead: New file.
103197         * lib/freadahead.h: New file.
103198         * lib/freadahead.c: New file.
103199         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
103200         fbufmode, fpurge, freadable, fwritable.
103202 2007-08-19  Eric Blake  <ebb9@byu.net>
103204         Test yesno in combination with closein.
103205         * lib/yesno.c (yesno): Document use of stdin.
103206         * modules/yesno-tests (Files): New module.
103207         * tests/test-yesno.c (main): New file.
103208         * tests/test-yesno.sh: Likewise.
103210 2007-08-19  Bruno Haible  <bruno@clisp.org>
103212         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
103213         * lib/fseeko.c (rpl_fseeko): Likewise.
103214         * lib/fseterr.c (fseterr): Likewise.
103216 2007-08-19  Bruno Haible  <bruno@clisp.org>
103218         * tests/test-lseek.c (main): Disable a test for BeOS.
103219         * doc/functions/lseek.texi: Document the BeOS bug.
103221 2007-08-19  Bruno Haible  <bruno@clisp.org>
103222             Eric Blake  <ebb9@byu.net>
103224         * lib/lseek.c: Include <sys/stat.h>.
103225         (rpl_lseek): Add workaround code also for Unix platforms.
103226         Needed for BeOS.
103227         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
103228         * doc/functions/lseek.texi: Document BeOS definiency.
103230 2007-08-18  Bruno Haible  <bruno@clisp.org>
103232         * modules/fstrcmp-tests: New file.
103233         * tests/test-fstrcmp.c: New file.
103235 2007-08-18  Bruno Haible  <bruno@clisp.org>
103237         * modules/fstrcmp: New file, from GNU gettext with modifications.
103238         * lib/fstrcmp.h: New file, from GNU gettext.
103239         * lib/fstrcmp.c: New file, from GNU gettext.
103240         * MODULES.html.sh (String handling): Add fstrcmp.
103242 2007-08-18  Bruno Haible  <bruno@clisp.org>
103244         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
103245         'bool'.
103246         (diag, compareseq): Remove const from the ctxt argument.
103247         (USE_HEURISTIC): Undefine at the end.
103249 2007-08-18  Jim Meyering  <jim@meyering.net>
103251         New file: lib/idcache.h
103252         * NEWS: Mention the addition.
103253         * modules/idcache (Files): Add lib/idcache.h
103254         * lib/idcache.c: Include "idcache.h".
103255         Don't include <sys/types.h>.
103256         Add a FIXME comment.
103257         Move file-scoped "static" declarations to the top.
103258         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
103260 2007-08-17  Bruno Haible  <bruno@clisp.org>
103261         and Paul Eggert  <eggert@cs.ucla.edu>
103263         * MODULES.html.sh: Add diffseq.
103264         * modules/diffseq: New file.
103265         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
103266         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
103268 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103270         Import changes from coreutils for bootstrap script.
103272         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
103274         * build-aux/bootstrap (slurp): Work even in environments where
103275         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
103276         current code does not slurp files whose names start with ".", and
103277         this looks like it might be a troublesome area.
103279         2007-07-11  Jim Meyering  <jim@meyering.net>
103281         If there's a GPL vN copyright comment, require that N == 3.
103283         2007-07-08  Jim Meyering  <jim@meyering.net>
103285         Run the coreutils-specific code only if tests/Makefile.am.in exists.
103286         * build-aux/bootstrap (mam_template): Move definition out of loop.
103288         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
103290         * build-aux/bootstrap (symlink_to_dir): Rename function from
103291         symlink_to_gnulib.  Add a directory parameter.  Update all
103292         callers.
103293         (cp_mark_as_generated): Also check for -- and link to -- files in
103294         gl/.
103296         2007-07-08  Jim Meyering  <jim@meyering.net>
103298         Adapt to deeper hierarchy in gnulib.
103299         * build-aux/bootstrap (symlink_to_dir): If the destination
103300         directory doesn't exist, create it. This is required at least for
103301         "lib/uniwidth/cjk.h".
103303         2007-05-15  Jim Meyering  <jim@meyering.net>
103305         * build-aux/bootstrap: Now that generated Makefile.am files
103306         are no longer under version control, they must be created at
103307         bootstrap time.
103309 2007-08-14  Ben Pfaff  <blp@gnu.org>
103311         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
103313 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
103315         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
103316         given the changes below.
103317         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
103318         even on hosts that have padding bits beyond the supported 64.
103320 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
103322         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
103323         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
103324         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
103325         depends on it.
103326         (xstrtol_error): Remove.
103327         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
103328         but with a different signature.
103329         (ATTRIBUTE_NORETURN, __attribute__): New macros.
103330         * lib/xstrtol-error.c: Include exitfail.h.
103331         (xstrtol_fatal): New function, with a different signature from the
103332         old xstrtol_error, so that the caller need not worry about passing
103333         in an exit status, or about storage management of the option argument.
103334         (xstrtol_error): Now a static function.  Redo signature to
103335         implement xstrtol_fatal.  Output the correct number of hyphens in
103336         front of the option so that the caller need not worry about
103337         storage management.
103338         (N_): New macro.
103339         (_): Remove; not used now.
103340         * modules/xstrtol: Depend on getopt.
103341         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
103342         of old STRTOL_FATAL_ERROR macro.
103343         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
103344         of test program.
103345         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
103346         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
103348 2007-08-08  Eric Blake  <ebb9@byu.net>
103350         * lib/xstrtol-error.c: Add missing include.
103352         Move xstrtol messages into gnulib domain, when --pobase is used.
103353         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
103354         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
103355         * modules/xstrtol (Files): Distribute new file.
103356         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
103357         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
103358         * tests/test-xstrtol.c: ...into new file.
103359         * tests/test-xstrtoul.c: Also test xstrtoul.
103360         * tests/test-xstrtoimax.c: Also test xstrtoimax.
103361         * tests/test-xstrtoumax.c: Also test xstrtoumax.
103362         * tests/test-xstrtol.sh: Drive the tests.
103363         * tests/test-xstrtoimax.sh: Likewise.
103364         * tests/test-xstrtoumax.sh: Likewise.
103365         * modules/xstrtol-tests: New module.
103366         * modules/xstrtoimax-tests: Likewise.
103367         * modules/xstrtoumax-tests: Likewise.
103369 2007-08-08  Jim Meyering  <jim@meyering.net>
103371         New function: mfile_name_concat.
103372         * lib/filenamecat.c (mfile_name_concat): New function, just like
103373         file_name_concat, but return NULL upon failure rather than exiting
103374         with a diagnostic.
103375         * lib/filenamecat.h: Declare it.
103377 2007-08-07  Bruno Haible  <bruno@clisp.org>
103379         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
103380         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
103381         warning from gcc.
103382         Reported by Eric Blake.
103384 2007-08-07  Simon Josefsson  <simon@josefsson.org>
103386         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
103387         * modules/crypto/arcfour (License): Likewise.
103388         * modules/crypto/des-tests (License): Likewise.
103389         * modules/crypto/gc-arctwo-tests (License): Likewise.
103390         * modules/crypto/gc-des-tests (License): Likewise.
103391         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
103392         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
103393         * modules/crypto/gc-md2-tests (License): Likewise.
103394         * modules/crypto/gc-md4-tests (License): Likewise.
103395         * modules/crypto/gc-md5-tests (License): Likewise.
103396         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
103397         * modules/crypto/gc-rijndael-tests (License): Likewise.
103398         * modules/crypto/gc-sha1-tests (License): Likewise.
103399         * modules/crypto/gc-tests (License): Likewise.
103400         * modules/crypto/hmac-md5 (License): Likewise.
103401         * modules/crypto/hmac-sha1 (License): Likewise.
103402         * modules/crypto/md2-tests (License): Likewise.
103403         * modules/crypto/md4-tests (License): Likewise.
103404         * modules/crypto/md5 (License): Likewise.
103405         * modules/crypto/rijndael (License): Likewise.
103406         * modules/crypto/sha1 (License): Likewise.
103407         * modules/memxor (License): Likewise.
103409 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
103410         and Bruno Haible  <bruno@clisp.org>
103412         * NEWS: Describe interface changes to human, xstrtol.
103413         * lib/human.h: Include <xstrtol.h>.
103414         (human_options): Return enum strtol_error, not int.  Remove
103415         bool arg; take int * instead.
103416         * lib/human.c: Don't include "gettext.h".
103417         (_): Remove; no longer used.
103418         Don't include <xstrtol.h>, since human.h does it.
103419         (human_options): Adjust to abovementioned interface changes.
103420         Do not report error to stderr; that's now the caller's
103421         responsibility.
103422         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
103423         interface change.
103424         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
103425         Str, Argument_type_string.  All uses changed.  Put " argument"
103426         in diagnostics to make them clearer.  Change wording of suffix
103427         message for clarity.
103428         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
103429         Argument_type_string.
103430         (STRTOL_FATAL_WARN): Remove; no longer used.
103431         * modules/human (Depends-on): Remove gettext-h.
103433 2007-08-06  Simon Josefsson  <simon@josefsson.org>
103435         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
103437 2007-07-31  Bruno Haible  <bruno@clisp.org>
103439         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
103440         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
103441         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
103443 2007-07-31  Bruno Haible  <bruno@clisp.org>
103445         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
103446         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
103448 2007-07-30  Bruno Haible  <bruno@clisp.org>
103450         * modules/base64 (License): Use the synonymous term "LGPLv2+".
103451         * modules/c-ctype (License): Likewise.
103452         * modules/c-strcase (License): Likewise.
103453         * modules/check-version (License): Likewise.
103454         * modules/iconv (License): Likewise.
103455         * modules/iconv_open (License): Likewise.
103456         * modules/read-file (License): Likewise.
103457         * modules/striconv (License): Likewise.
103458         * modules/strverscmp (License): Likewise.
103459         * modules/vasprintf (License): Likewise.
103460         * modules/crypto/des (License): Likewise.
103461         * modules/crypto/gc (License): Likewise.
103462         * modules/crypto/gc-arcfour (License): Likewise.
103463         * modules/crypto/gc-arctwo (License): Likewise.
103464         * modules/crypto/gc-des (License): Likewise.
103465         * modules/crypto/gc-hmac-md5 (License): Likewise.
103466         * modules/crypto/gc-hmac-sha1 (License): Likewise.
103467         * modules/crypto/gc-md2 (License): Likewise.
103468         * modules/crypto/gc-md4 (License): Likewise.
103469         * modules/crypto/gc-md5 (License): Likewise.
103470         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
103471         * modules/crypto/gc-random (License): Likewise.
103472         * modules/crypto/gc-rijndael (License): Likewise.
103473         * modules/crypto/gc-sha1 (License): Likewise.
103474         * modules/crypto/md2 (License): Likewise.
103475         * modules/crypto/md4 (License): Likewise.
103477 2007-07-30  Jim Meyering  <jim@meyering.net>
103479         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
103480         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
103481         it has valid stat data.  This bug would cause du not to count the
103482         sizes of inaccessible directories.
103483         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
103484         in <http://bugzilla.redhat.com/250077>.
103486 2007-07-25  Peter O'Gorman  <peter@pogma.com>
103487             Bruno Haible  <bruno@clisp.org>
103489         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
103490         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
103491         #include_next, gives a diagnostic about it, but reports no error in
103492         the exit code.
103493         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
103495 2007-07-24  Ben Pfaff  <blp@gnu.org>
103497         Improve name: "count-one-bits" is better than "popcount".
103498         * MODULES.html.sh: Update name.
103499         * lib/popcount.h: Renamed lib/count-one-bits.h.
103500         (popcount): Renamed count_one_bits.
103501         (popcountl): Renamed count_one_bits_l.
103502         (popcountll): Renamed count_one_bits_ll.
103503         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
103504         * modules/popcount: Renamed module/count-one-bits.
103505         * modules/popcount-tests: Renamed module/count-one-bits-tests.
103506         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
103508 2007-07-23  Ben Pfaff  <blp@gnu.org>
103510         * lib/popcount.h (popcount32): Reduce size of constants, to allow
103511         better code generation, and add U to large constants to avoid
103512         warnings, in non-GCC case.
103513         Suggested by Bruno Haible.
103515 2007-07-23  Ben Pfaff  <blp@gnu.org>
103517         * lib/popcount.h: Use verify_true instead of if...abort.
103518         * modules/popcount: Depend on verify module.
103519         Suggested by Jim Meyering.
103521 2007-07-23  Bruno Haible  <bruno@clisp.org>
103523         * gnulib-tool (func_import): Create a .cvsignore file also when the
103524         directory is not yet in CVS but the toplevel directory is. When
103525         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
103526         Reported by Karl Berry.
103528 2007-07-22  Ben Pfaff  <blp@gnu.org>
103530         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
103531         case.
103532         Suggested by Eric Blake.
103534 2007-07-22  Ben Pfaff  <blp@gnu.org>
103536         New module: popcount.
103537         * MODULES.html.sh: Add popcount.
103538         * modules/popcount: New file.
103539         * modules/popcount-tests: New file.
103540         * tests/test-popcount.c: New file.
103541         * lib/popcount.h: New file.
103542         * m4/popcount.m4: New file.
103544 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
103546         * build-aux/announce-gen: Update to GPLv3.
103548         * build-aux/config.guess: Update from config.
103550 2007-07-21  Bruno Haible  <bruno@clisp.org>
103552         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
103553         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
103555 2007-07-20  Jim Meyering  <jim@meyering.net>
103557         * check-module: Diagnose a self-dependency.
103559 2007-07-19  Bruno Haible  <bruno@clisp.org>
103561         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
103562         empty.
103563         Reported by Eric Blake.
103565 2007-07-18  Bruno Haible  <bruno@clisp.org>
103567         * gnulib-tool: New options --po-base, --po-domain.
103568         (func_usage): Document them.
103569         (pobase, po_domain): New variables.
103570         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
103571         DEFAULT_TEXT_DOMAIN.
103572         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
103573         (func_import): Consider pobase and po_domain. Create a po/ directory.
103574         (func_create_testdir): Set pobase and po_domain to empty.
103575         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
103576         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
103578 2007-07-18  Bruno Haible  <bruno@clisp.org>
103580         * gnulib-tool (func_get_automake_snippet): Synthesize also an
103581         EXTRA_DIST augmentation for files in build-aux/.
103583 2007-07-16  Bruno Haible  <bruno@clisp.org>
103585         * modules/lseek (License): Use the synonymous term "LGPLv2+".
103586         * modules/getdelim (License): Likewise.
103588 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
103590         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
103591         * modules/d-type (License): Likewise.
103592         * modules/extensions (License): Likewise.
103593         * modules/fnmatch (License): Likewise.
103594         * modules/fseeko (License): Likewise.
103595         * modules/getaddrinfo (License): Likewise.
103596         * modules/getline (License): Likewise.
103597         * modules/getlogin_r (License): Likewise.
103598         * modules/getpass (License): Likewise.
103599         * modules/gettimeofday (License): Likewise.
103600         * modules/glob (License): Likewise.
103601         * modules/inet_ntop (License): Likewise.
103602         * modules/malloc (License): Likewise.
103603         * modules/malloca (License): Likewise.
103604         * modules/memmem (License): Likewise.
103605         * modules/mempcpy (License): Likewise.
103606         * modules/memset (License): Likewise.
103607         * modules/minmax (License): Likewise.
103608         * modules/mktime (License): Likewise.
103609         * modules/netinet_in (License): Likewise.
103610         * modules/pathmax (License): Likewise.
103611         * modules/poll (License): Likewise.
103612         * modules/regex (License): Likewise.
103613         * modules/snprintf (License): Likewise.
103614         * modules/stdbool (License): Likewise.
103615         * modules/stdint (License): Likewise.
103616         * modules/stdio (License): Likewise.
103617         * modules/strcase (License): Likewise.
103618         * modules/strcasestr (License): Likewise.
103619         * modules/strdup (License): Likewise.
103620         * modules/string (License): Likewise.
103621         * modules/strndup (License): Likewise.
103622         * modules/strnlen (License): Likewise.
103623         * modules/strpbrk (License): Likewise.
103624         * modules/strptime (License): Likewise.
103625         * modules/strsep (License): Likewise.
103626         * modules/sys_select (License): Likewise.
103627         * modules/sys_socket (License): Likewise.
103628         * modules/sys_stat (License): Likewise.
103629         * modules/sys_time (License): Likewise.
103630         * modules/time (License): Likewise.
103631         * modules/time_r (License): Likewise.
103632         * modules/timegm (License): Likewise.
103633         * modules/unistd (License): Likewise.
103634         * modules/vsnprintf (License): Likewise.
103635         * modules/wctype (License): Likewise.
103637 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103639         * modules/argz (License): LGPLv2+.
103641 2007-07-15  Karl Berry  <karl@gnu.org>
103643         * doc/gnulib.texi: revise node structure per new fdl.texi.
103645 2007-07-14  Bruno Haible  <bruno@clisp.org>
103647         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
103648         the output file.
103649         * lib/uniname/uninames.h: Regenerated.
103651 2007-07-14  Karl Berry  <karl@gnu.org>
103653         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
103654         omitting sectioning and index commands.
103656 2007-07-13  Bruno Haible  <bruno@clisp.org>
103658         New gnulib-tool option --more-symlinks.
103659         * gnulib-tool (func_usage): Document --more-symlinks.
103660         (do_copyrights): New variable.
103661         Recognize option --more-symlinks.
103662         (func_import): Don't add a copyright notice transform to
103663         sed_transform_lib_file if do_copyrights is empty.
103665 2007-07-13  Bruno Haible  <bruno@clisp.org>
103667         * lib/vasnprintf.c (decimal_point_char): Define also if
103668         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
103669         && !NEED_PRINTF_DIRECTIVE_A.
103670         Reported by Clemens Koller <clemens.koller@anagramm.de> via
103671         Gary V. Vaughan <gary@gnu.org>.
103673 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
103675         * lib/inttypes_.h: Undo previous change, since it was fixed
103676         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
103678 2007-07-13  Bruno Haible  <bruno@clisp.org>
103680         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
103681         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
103683 2007-07-13  Jim Meyering  <jim@meyering.net>
103685         df: Don't fail for Tru64's "file-on-file mount".
103686         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
103687         so we fall through and use statfs instead.  Details here:
103688         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
103689         Reported by Albert Chin.
103691 2007-07-13  Bruno Haible  <bruno@clisp.org>
103693         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
103694         * modules/configmake (License): Likewise.
103695         * modules/gettext (License): Likewise.
103696         * modules/gettext-h (License): Likewise.
103697         * modules/include_next (License): Likewise.
103698         * modules/link-warning (License): Likewise.
103699         * modules/localcharset (License): Likewise.
103700         * modules/localename (License): Likewise.
103701         * modules/lock (License): Likewise.
103702         * modules/relocatable-lib-lgpl (License): Likewise.
103703         * modules/size_max (License): Likewise.
103704         * modules/vasnprintf (License): Likewise.
103705         * modules/wchar (License): Likewise.
103706         * modules/xsize (License): Likewise.
103708 2007-07-13  Bruno Haible  <bruno@clisp.org>
103710         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
103711         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
103713 2007-07-12  Bruno Haible  <bruno@clisp.org>
103715         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
103716         in the modules files.
103718 2007-07-11  Karl Berry  <karl@gnu.org>
103720         * MODULES.html.sh (func_module): use
103721          sed -e '\|^'"${includefile}"'$|d'
103722          instead of /.../d, to avoid errors on $includefile's containing /.
103724 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
103726         * gnulib-tool (func_import): Avoid duplication of --avoid
103727         statements
103728         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
103729         names to `_' in variable names.
103731 2007-07-10  Eric Blake  <ebb9@byu.net>
103733         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
103734         * NEWS: Document this change.
103736 2007-07-08  Bruno Haible  <bruno@clisp.org>
103738         Update to Unicode 5.0.
103739         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
103740         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
103741         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
103742         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
103743         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
103744         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
103745         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
103746         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
103747         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
103748         U+10A3F, U+1D242..U+1D244.
103749         (nonspacing_table_ind): Update.
103750         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
103751         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
103753 2007-07-08  Bruno Haible  <bruno@clisp.org>
103755         Update to Unicode 5.0.
103756         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
103757         code transform. Extend the name index field of unicode_name_to_code and
103758         unicode_code_to_name from 16 to 24 bits.
103759         * lib/uniname/uniname.c (unicode_character_name,
103760         unicode_name_character): Add the range 0x12xxx to the code transform.
103761         * lib/uniname/uninames.h: Regenerated.
103762         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
103764 2007-07-07  Bruno Haible  <bruno@clisp.org>
103766         * modules/wcwidth-tests: New file.
103767         * tests/test-wcwidth.c: New file.
103769         Work around MacOS X wcwidth() bug.
103770         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
103771         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
103772         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
103773         original wcwidth in non-UTF-8 locales.
103774         * modules/wcwidth (Depends-on): Add localcharset, streq,
103775         uniwidth/width.
103776         * doc/functions/wcwidth.texi: Update.
103778 2007-07-07  Bruno Haible  <bruno@clisp.org>
103780         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
103781         (wcwidth): New declaration.
103782         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
103783         macros.
103784         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
103785         here. Prepare for creating <wchar.h> unconditionally.
103786         * modules/wchar (Depends-on): Add link-warning.
103787         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
103788         REPLACE_WCWIDTH, and GL_LINK_WARNING.
103789         * lib/wcwidth.h: Remove file.
103790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
103791         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
103792         * modules/wcwidth (Files): Remove lib/wcwidth.h.
103793         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
103794         (Include): Replace wcwidth.h with <wchar.h>.
103795         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
103796         * lib/mbchar.h: Don't include wcwidth.h.
103797         * lib/mbswidth.c: Likewise.
103798         * NEWS: Mention the change.
103800 2007-07-07  Bruno Haible  <bruno@clisp.org>
103802         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
103803         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
103804         definition with an external declaration.
103805         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
103806         defined as a function. Remove AC_C_INLINE requirement.
103807         * modules/wcwidth (Files): Add lib/wcwidth.c.
103808         (Makefile.am): Remove redundant statement.
103810 2007-07-07  Bruno Haible  <bruno@clisp.org>
103812         * MODULES.html.sh (Unicode string functions): Add the new modules.
103814         * tests/uniwidth/test-u32-strwidth.c: New file.
103815         * modules/uniwidth/u32-strwidth-tests: New file.
103817         * lib/uniwidth/u32-strwidth.c: New file.
103818         * modules/uniwidth/u32-strwidth: New file.
103820         * tests/uniwidth/test-u16-strwidth.c: New file.
103821         * modules/uniwidth/u16-strwidth-tests: New file.
103823         * lib/uniwidth/u16-strwidth.c: New file.
103824         * modules/uniwidth/u16-strwidth: New file.
103826         * tests/uniwidth/test-u8-strwidth.c: New file.
103827         * modules/uniwidth/u8-strwidth-tests: New file.
103829         * lib/uniwidth/u8-strwidth.c: New file.
103830         * modules/uniwidth/u8-strwidth: New file.
103832         * tests/uniwidth/test-u32-width.c: New file.
103833         * modules/uniwidth/u32-width-tests: New file.
103835         * lib/uniwidth/u32-width.c: New file.
103836         * modules/uniwidth/u32-width: New file.
103838         * tests/uniwidth/test-u16-width.c: New file.
103839         * modules/uniwidth/u16-width-tests: New file.
103841         * lib/uniwidth/u16-width.c: New file.
103842         * modules/uniwidth/u16-width: New file.
103844         * tests/uniwidth/test-u8-width.c: New file.
103845         * modules/uniwidth/u8-width-tests: New file.
103847         * lib/uniwidth/u8-width.c: New file.
103848         * modules/uniwidth/u8-width: New file.
103850         * tests/uniwidth/test-uc_width.c: New file.
103851         * modules/uniwidth/width-tests: New file.
103853         * lib/uniwidth/width.c: New file, from GNU libiconv.
103854         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
103855         * modules/uniwidth/width: New file.
103857         * lib/uniwidth.h: New file, from GNU libiconv.
103858         * modules/uniwidth/base: New file.
103860 2007-07-07  Bruno Haible  <bruno@clisp.org>
103862         * lib/uniname.h: New file, from GNU gettext.
103863         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
103864         * lib/uniname/uninames.h: New file, from GNU gettext.
103865         * lib/uniname/uniname.c: New file, from GNU gettext.
103866         * tests/uniname/test-uninames.sh: New file.
103867         * tests/uniname/test-uninames.c: New file, from GNU gettext.
103868         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
103869         * modules/uniname/base: New file.
103870         * modules/uniname/uniname: New file.
103871         * modules/uniname/uniname-tests: New file.
103872         * MODULES.html.sh (Unicode string functions): Add the new modules.
103874 2007-07-06  Bruno Haible  <bruno@clisp.org>
103876         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
103878 2007-07-06  Bruno Haible  <bruno@clisp.org>
103880         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
103881         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
103882         includes <cygwin/sys_time.h> which includes <sys/select.h> which
103883         include <sys/time.h>.
103884         Reported by Eric Blake.
103886 2007-07-06  Eric Blake  <ebb9@byu.net>
103888         Fix testing canonicalize on cygwin.
103889         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103890         Revert patch from 2007-06-19.
103891         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
103892         canonicalize module is also in use.
103893         * tests/test-canonicalize.c: New file.
103894         * tests/test-canonicalize.sh: Likewise.
103895         * modules/canonicalize-tests: Likewise.
103897 2007-07-06  Jim Meyering  <jim@meyering.net>
103899         * lib/getugroups.c (getugroups): Detect getgrent failure.
103900         Adjust comment to reflect reality: this function may return -1.
103902 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
103904         * build-aux/bootstrap (TP_URL,get_translations): Update to use
103905         the new TP address.
103906         (usage): Fix typo
103907         (gnulib_mk): New variable.
103909 2007-07-05  Jim Meyering  <jim@meyering.net>
103911         Don't let endgrent clobber errno, no matter how improbable.
103912         * lib/getugroups.c (getugroups): Save and restore errno around
103913         endgrent call.
103915         Close the group DB even when failing with 2^31 or more members.
103916         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
103918 2007-07-04  Jim Meyering  <jim@meyering.net>
103920         * lib/getugroups.h: New file.
103921         * lib/getugroups.c: Include "getugroups.h".
103922         Remove uses of "register" keyword.
103923         Move local variable, "cp", down into scope where used.
103924         Give "username" parameter the "const" attribute.
103925         * modules/getugroups (Files): Add lib/getugroups.h
103927 2007-07-04  Karl Berry  <karl@gnu.org>
103929         * MODULES.html.sh (func_all_modules): Complete rename of
103930         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
103932 2007-07-02  Bruno Haible  <bruno@clisp.org>
103934         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
103935         mode, when inttypes.h comes from gnulib.
103936         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
103938 2007-07-02  Simon Josefsson  <simon@josefsson.org>
103940         * NEWS: Mention lgpl module name change.
103942         * modules/lgpl-2.1: Renamed from lgpl.
103944         * NEWS: Mention gpl module name change.
103946         * modules/gpl-3.0: New file, based on gpl-2.0.
103948         * modules/gpl-2.0: Renamed from gpl.
103950         * modules/gpl: Fix filename, doc/gpl.texi is now found at
103951         doc/gpl-2.0.texi.
103953 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
103955         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
103956         #define __STDC_LIMIT_MACROS temporarily while including
103957         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
103958         Problem reported by Joel E. Denny in
103959         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
103961 2007-07-01  Bruno Haible  <bruno@clisp.org>
103963         * lib/unistdio.h: New file.
103964         * lib/unistdio/u-asnprintf.h: New file.
103965         * lib/unistdio/u-asprintf.h: New file.
103966         * lib/unistdio/u-printf-args.c: New file.
103967         * lib/unistdio/u-printf-args.h: New file.
103968         * lib/unistdio/u-printf-parse.h: New file.
103969         * lib/unistdio/u-snprintf.h: New file.
103970         * lib/unistdio/u-sprintf.h: New file.
103971         * lib/unistdio/u-vasprintf.h: New file.
103972         * lib/unistdio/u-vsnprintf.h: New file.
103973         * lib/unistdio/u-vsprintf.h: New file.
103974         * lib/unistdio/ulc-asnprintf.c: New file.
103975         * lib/unistdio/ulc-asprintf.c: New file.
103976         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
103977         * lib/unistdio/ulc-printf-parse.c: New file.
103978         * lib/unistdio/ulc-snprintf.c: New file.
103979         * lib/unistdio/ulc-sprintf.c: New file.
103980         * lib/unistdio/ulc-vasnprintf.c: New file.
103981         * lib/unistdio/ulc-vasprintf.c: New file.
103982         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
103983         * lib/unistdio/ulc-vsnprintf.c: New file.
103984         * lib/unistdio/ulc-vsprintf.c: New file.
103985         * lib/unistdio/u8-asnprintf.c: New file.
103986         * lib/unistdio/u8-asprintf.c: New file.
103987         * lib/unistdio/u8-printf-parse.c: New file.
103988         * lib/unistdio/u8-snprintf.c: New file.
103989         * lib/unistdio/u8-sprintf.c: New file.
103990         * lib/unistdio/u8-vasnprintf.c: New file.
103991         * lib/unistdio/u8-vasprintf.c: New file.
103992         * lib/unistdio/u8-vsnprintf.c: New file.
103993         * lib/unistdio/u8-vsprintf.c: New file.
103994         * lib/unistdio/u8-u8-asnprintf.c: New file.
103995         * lib/unistdio/u8-u8-asprintf.c: New file.
103996         * lib/unistdio/u8-u8-snprintf.c: New file.
103997         * lib/unistdio/u8-u8-sprintf.c: New file.
103998         * lib/unistdio/u8-u8-vasnprintf.c: New file.
103999         * lib/unistdio/u8-u8-vasprintf.c: New file.
104000         * lib/unistdio/u8-u8-vsnprintf.c: New file.
104001         * lib/unistdio/u8-u8-vsprintf.c: New file.
104002         * lib/unistdio/u16-asnprintf.c: New file.
104003         * lib/unistdio/u16-asprintf.c: New file.
104004         * lib/unistdio/u16-printf-parse.c: New file.
104005         * lib/unistdio/u16-snprintf.c: New file.
104006         * lib/unistdio/u16-sprintf.c: New file.
104007         * lib/unistdio/u16-vasnprintf.c: New file.
104008         * lib/unistdio/u16-vasprintf.c: New file.
104009         * lib/unistdio/u16-vsnprintf.c: New file.
104010         * lib/unistdio/u16-vsprintf.c: New file.
104011         * lib/unistdio/u16-u16-asnprintf.c: New file.
104012         * lib/unistdio/u16-u16-asprintf.c: New file.
104013         * lib/unistdio/u16-u16-snprintf.c: New file.
104014         * lib/unistdio/u16-u16-sprintf.c: New file.
104015         * lib/unistdio/u16-u16-vasnprintf.c: New file.
104016         * lib/unistdio/u16-u16-vasprintf.c: New file.
104017         * lib/unistdio/u16-u16-vsnprintf.c: New file.
104018         * lib/unistdio/u16-u16-vsprintf.c: New file.
104019         * lib/unistdio/u32-asnprintf.c: New file.
104020         * lib/unistdio/u32-asprintf.c: New file.
104021         * lib/unistdio/u32-printf-parse.c: New file.
104022         * lib/unistdio/u32-snprintf.c: New file.
104023         * lib/unistdio/u32-sprintf.c: New file.
104024         * lib/unistdio/u32-vasnprintf.c: New file.
104025         * lib/unistdio/u32-vasprintf.c: New file.
104026         * lib/unistdio/u32-vsnprintf.c: New file.
104027         * lib/unistdio/u32-vsprintf.c: New file.
104028         * lib/unistdio/u32-u32-asnprintf.c: New file.
104029         * lib/unistdio/u32-u32-asprintf.c: New file.
104030         * lib/unistdio/u32-u32-snprintf.c: New file.
104031         * lib/unistdio/u32-u32-sprintf.c: New file.
104032         * lib/unistdio/u32-u32-vasnprintf.c: New file.
104033         * lib/unistdio/u32-u32-vasprintf.c: New file.
104034         * lib/unistdio/u32-u32-vsnprintf.c: New file.
104035         * lib/unistdio/u32-u32-vsprintf.c: New file.
104036         * tests/unistdio/test-ulc-asnprintf1.c: New file.
104037         * tests/unistdio/test-ulc-asnprintf1.h: New file.
104038         * tests/unistdio/test-ulc-printf1.h: New file.
104039         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
104040         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
104041         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
104042         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
104043         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
104044         * tests/unistdio/test-ulc-vasprintf1.c: New file.
104045         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
104046         * tests/unistdio/test-ulc-vsprintf1.c: New file.
104047         * tests/unistdio/test-u8-asnprintf1.c: New file.
104048         * tests/unistdio/test-u8-asnprintf1.h: New file.
104049         * tests/unistdio/test-u8-printf1.h: New file.
104050         * tests/unistdio/test-u8-vasnprintf1.c: New file.
104051         * tests/unistdio/test-u8-vasnprintf2.c: New file.
104052         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
104053         * tests/unistdio/test-u8-vasnprintf3.c: New file.
104054         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
104055         * tests/unistdio/test-u8-vasprintf1.c: New file.
104056         * tests/unistdio/test-u8-vsnprintf1.c: New file.
104057         * tests/unistdio/test-u8-vsprintf1.c: New file.
104058         * tests/unistdio/test-u16-asnprintf1.c: New file.
104059         * tests/unistdio/test-u16-asnprintf1.h: New file.
104060         * tests/unistdio/test-u16-printf1.h: New file.
104061         * tests/unistdio/test-u16-vasnprintf1.c: New file.
104062         * tests/unistdio/test-u16-vasnprintf2.c: New file.
104063         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
104064         * tests/unistdio/test-u16-vasnprintf3.c: New file.
104065         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
104066         * tests/unistdio/test-u16-vasprintf1.c: New file.
104067         * tests/unistdio/test-u16-vsnprintf1.c: New file.
104068         * tests/unistdio/test-u16-vsprintf1.c: New file.
104069         * tests/unistdio/test-u32-asnprintf1.c: New file.
104070         * tests/unistdio/test-u32-asnprintf1.h: New file.
104071         * tests/unistdio/test-u32-printf1.h: New file.
104072         * tests/unistdio/test-u32-vasnprintf1.c: New file.
104073         * tests/unistdio/test-u32-vasnprintf2.c: New file.
104074         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
104075         * tests/unistdio/test-u32-vasnprintf3.c: New file.
104076         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
104077         * tests/unistdio/test-u32-vasprintf1.c: New file.
104078         * tests/unistdio/test-u32-vsnprintf1.c: New file.
104079         * tests/unistdio/test-u32-vsprintf1.c: New file.
104080         * modules/unistdio/base: New file.
104081         * modules/unistdio/u-printf-args: New file.
104082         * modules/unistdio/ulc-asnprintf: New file.
104083         * modules/unistdio/ulc-asprintf: New file.
104084         * modules/unistdio/ulc-fprintf: New file.
104085         * modules/unistdio/ulc-printf-parse: New file.
104086         * modules/unistdio/ulc-snprintf: New file.
104087         * modules/unistdio/ulc-sprintf: New file.
104088         * modules/unistdio/ulc-vasnprintf: New file.
104089         * modules/unistdio/ulc-vasprintf: New file.
104090         * modules/unistdio/ulc-vfprintf: New file.
104091         * modules/unistdio/ulc-vsnprintf: New file.
104092         * modules/unistdio/ulc-vsprintf: New file.
104093         * modules/unistdio/u8-asnprintf: New file.
104094         * modules/unistdio/u8-asprintf: New file.
104095         * modules/unistdio/u8-printf-parse: New file.
104096         * modules/unistdio/u8-snprintf: New file.
104097         * modules/unistdio/u8-sprintf: New file.
104098         * modules/unistdio/u8-vasnprintf: New file.
104099         * modules/unistdio/u8-vasprintf: New file.
104100         * modules/unistdio/u8-vsnprintf: New file.
104101         * modules/unistdio/u8-vsprintf: New file.
104102         * modules/unistdio/u8-u8-asnprintf: New file.
104103         * modules/unistdio/u8-u8-asprintf: New file.
104104         * modules/unistdio/u8-u8-snprintf: New file.
104105         * modules/unistdio/u8-u8-sprintf: New file.
104106         * modules/unistdio/u8-u8-vasnprintf: New file.
104107         * modules/unistdio/u8-u8-vasprintf: New file.
104108         * modules/unistdio/u8-u8-vsnprintf: New file.
104109         * modules/unistdio/u8-u8-vsprintf: New file.
104110         * modules/unistdio/u16-asnprintf: New file.
104111         * modules/unistdio/u16-asprintf: New file.
104112         * modules/unistdio/u16-printf-parse: New file.
104113         * modules/unistdio/u16-snprintf: New file.
104114         * modules/unistdio/u16-sprintf: New file.
104115         * modules/unistdio/u16-vasnprintf: New file.
104116         * modules/unistdio/u16-vasprintf: New file.
104117         * modules/unistdio/u16-vsnprintf: New file.
104118         * modules/unistdio/u16-vsprintf: New file.
104119         * modules/unistdio/u16-u16-asnprintf: New file.
104120         * modules/unistdio/u16-u16-asprintf: New file.
104121         * modules/unistdio/u16-u16-snprintf: New file.
104122         * modules/unistdio/u16-u16-sprintf: New file.
104123         * modules/unistdio/u16-u16-vasnprintf: New file.
104124         * modules/unistdio/u16-u16-vasprintf: New file.
104125         * modules/unistdio/u16-u16-vsnprintf: New file.
104126         * modules/unistdio/u16-u16-vsprintf: New file.
104127         * modules/unistdio/u32-asnprintf: New file.
104128         * modules/unistdio/u32-asprintf: New file.
104129         * modules/unistdio/u32-printf-parse: New file.
104130         * modules/unistdio/u32-snprintf: New file.
104131         * modules/unistdio/u32-sprintf: New file.
104132         * modules/unistdio/u32-vasnprintf: New file.
104133         * modules/unistdio/u32-vasprintf: New file.
104134         * modules/unistdio/u32-vsnprintf: New file.
104135         * modules/unistdio/u32-vsprintf: New file.
104136         * modules/unistdio/u32-u32-asnprintf: New file.
104137         * modules/unistdio/u32-u32-asprintf: New file.
104138         * modules/unistdio/u32-u32-snprintf: New file.
104139         * modules/unistdio/u32-u32-sprintf: New file.
104140         * modules/unistdio/u32-u32-vasnprintf: New file.
104141         * modules/unistdio/u32-u32-vasprintf: New file.
104142         * modules/unistdio/u32-u32-vsnprintf: New file.
104143         * modules/unistdio/u32-u32-vsprintf: New file.
104144         * modules/unistdio/ulc-asnprintf-tests: New file.
104145         * modules/unistdio/ulc-vasnprintf-tests: New file.
104146         * modules/unistdio/ulc-vasprintf-tests: New file.
104147         * modules/unistdio/ulc-vsnprintf-tests: New file.
104148         * modules/unistdio/ulc-vsprintf-tests: New file.
104149         * modules/unistdio/u8-asnprintf-tests: New file.
104150         * modules/unistdio/u8-vasnprintf-tests: New file.
104151         * modules/unistdio/u8-vasprintf-tests: New file.
104152         * modules/unistdio/u8-vsnprintf-tests: New file.
104153         * modules/unistdio/u8-vsprintf-tests: New file.
104154         * modules/unistdio/u16-asnprintf-tests: New file.
104155         * modules/unistdio/u16-vasnprintf-tests: New file.
104156         * modules/unistdio/u16-vasprintf-tests: New file.
104157         * modules/unistdio/u16-vsnprintf-tests: New file.
104158         * modules/unistdio/u16-vsprintf-tests: New file.
104159         * modules/unistdio/u32-asnprintf-tests: New file.
104160         * modules/unistdio/u32-vasnprintf-tests: New file.
104161         * modules/unistdio/u32-vasprintf-tests: New file.
104162         * modules/unistdio/u32-vsnprintf-tests: New file.
104163         * modules/unistdio/u32-vsprintf-tests: New file.
104164         * MODULES.html.sh (Unicode string functions): Add the new modules.
104166 2007-07-01  Bruno Haible  <bruno@clisp.org>
104168         * lib/sprintf.c (sprintf): Limit the available length estimation,
104169         to avoid address wraparound.
104170         * lib/vsprintf.c (vsprintf): Likewise.
104171         * modules/sprintf-posix (Dependencies): Add stdint.
104172         * modules/vsprintf-posix (Dependencies): Likewise.
104174 2007-07-01  Bruno Haible  <bruno@clisp.org>
104176         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
104177         Windows PATH as well. Conservative double-quoting. Comments.
104179 2007-07-01  Bruno Haible  <bruno@clisp.org>
104180             Eric Blake  <ebb9@byu.net>
104181             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104183         * gnulib-tool (self_abspathname): Fix algorithm to cope with
104184         empty components in $PATH, denoting '.'.
104186 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104188         * gnulib-tool: Fix indentation.
104189         (func_create_megatestdir): Likewise.
104190         Report by Bruno Haible.
104192 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104194         Sync from Automake.
104195         * build-aux/gnupload: Fix shell portability issues with for loops.
104196         Report by Karl Berry.
104198 2007-06-29  Simon Josefsson  <simon@josefsson.org>
104200         * build-aux/maint.mk (POURL): Use translationproject.org.
104202 2007-06-27  Simon Josefsson  <simon@josefsson.org>
104203             Bruno Haible  <bruno@clisp.org>
104205         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
104206         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
104207         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
104208         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
104209         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
104211 2007-06-27  Bruno Haible  <bruno@clisp.org>
104213         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
104214         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
104216 2007-06-26  Karl Berry  <karl@gnu.org>
104218         * MODULES.html.sh: remove xreadlink-with-size.
104220 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
104222         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
104223         method that I hope also handles the double-include problem noted
104224         by Bruno Haible in
104225         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
104227 2007-06-23  Bruno Haible  <bruno@clisp.org>
104229         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
104230         Don't let the 'mostlyclean' target fail if the last subdirectory could
104231         not be removed.
104232         Reported by Karl Berry.
104234 2007-06-23  Bruno Haible  <bruno@clisp.org>
104236         * gnulib-tool (echo): Add a speedier workaround for ksh.
104237         * tests/test-echo.sh: Likewise.
104239 2007-06-23  Bruno Haible  <bruno@clisp.org>
104241         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
104242         * tests/test-echo.sh: Likewise.
104244 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104246         * gnulib-tool (IFS): Initialize early, so we don't set it to
104247         empty later.
104248         (self_abspathname): Rewrite algorithm to set it, reindent.
104249         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
104250         (func_create_megatestdir): Merge some sed scripts.
104252 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
104254         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
104255         exposed by Sun Studio 11 cc on Solaris 8.
104257 2007-06-22  Bruno Haible  <bruno@clisp.org>
104259         * gnulib-tool (echo): Ensure the echo primitive does not interpret
104260         backslashes.
104261         * tests/test-echo.sh: New file.
104263 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104265         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
104266         simplify `sed_replace_build_aux' scripts, they are portable but
104267         echoing them with `echo' is not.
104268         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
104270 2007-06-21  Karl Berry  <karl@gnu.org>
104272         * config/srclist.txt: guess we can't handle the licenses via
104273         srclist at the moment.
104275 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
104277         * MODULES.html.sh: Add include_next.
104278         * modules/include_next: New file.
104280 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
104282         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
104283         INCLUDE_NEXT.
104284         (gl_CHECK_NEXT_HEADERS): New macro.
104285         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
104286         the obsolescent gl_ABSOLUTE_HEADER.
104287         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
104288         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
104289         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
104290         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
104291         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
104292         * m4/math_h.m4 (gl_MATH_H): Likewise.
104293         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
104294         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
104295         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
104296         * m4/stdint.m4 (gl_STDINT_H): Likewise.
104297         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
104298         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
104299         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
104300         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
104301         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
104302         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
104303         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
104304         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
104305         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
104306         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
104307         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
104308         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
104309         * m4/inttypes.m4 (gl_INTTYPES_H): Define
104310         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
104311         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
104312         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
104313         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
104314         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
104315         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
104316         * lib/float_.h: Likewise.
104317         * lib/inttypes_.h: Likewise.
104318         * lib/math_.h: Likewise.
104319         * lib/search_.h: Likewise.
104320         * lib/signal_.h: Likewise.
104321         * lib/stdint_.h: Likewise.
104322         * lib/stdio_.h: Likewise.
104323         * lib/stdlib_.h: Likewise.
104324         * lib/string_.h: Likewise.
104325         * lib/sys_stat_.h: Likewise.
104326         * lib/sys_time_.h: Likewise.
104327         * lib/time_.h: Likewise.
104328         * lib/unistd_.h: Likewise.
104329         * lib/wchar_.h: Likewise.
104330         * lib/wctype_.h: Likewise.
104331         * lib/dirent_.h: Likewise.
104332         * lib/iconv_.h: Likewise.
104333         * lib/locale_.h: Likewise.
104334         * lib/netinet_in_.h: Likewise.
104335         * lib/sys_select_.h: Likewise.
104336         * lib/sys_socket_.h: Likewise.
104337         * lib/sysexits_.h: Likewise.
104338         * modules/fcntl (Depends-on): Depend on include_next, not
104339         absolute_header.
104340         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
104341         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
104342         * modules/fchdir: Likewise.
104343         * modules/float: Likewise.
104344         * modules/iconv_open: Likewise.
104345         * modules/inttypes: Likewise.
104346         * modules/locale: Likewise.
104347         * modules/math: Likewise.
104348         * modules/netinet_in: Likewise.
104349         * modules/search: Likewise.
104350         * modules/signal: Likewise.
104351         * modules/stdint: Likewise.
104352         * modules/stdio: Likewise.
104353         * modules/stdlib: Likewise.
104354         * modules/string: Likewise.
104355         * modules/sys_select: Likewise.
104356         * modules/sys_socket: Likewise.
104357         * modules/sys_stat: Likewise.
104358         * modules/sys_time: Likewise.
104359         * modules/sysexits: Likewise.
104360         * modules/time: Likewise.
104361         * modules/unistd: Likewise.
104362         * modules/wchar: Likewise.
104363         * modules/wctype: Likewise.
104364         * modules/sys_stat: Change maintainer to "all".
104365         * modules/unistd: Likewise.
104367 2007-06-20  Karl Berry  <karl@gnu.org>
104369         * config/srclist.txt: track www changes in license files.
104371 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
104373         * build-aux/bootstrap: Remove stray dot.
104374         Make sure build_aux settings are honored when linking
104375         gnulib_extra_files.
104377 2007-06-19  Eric Blake  <ebb9@byu.net>
104379         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
104380         Allow compilation on cygwin.
104382 2007-06-19  Jim Meyering  <jim@meyering.net>
104384         xreadlink-with-size: Remove module.  No longer used.
104385         Ex-callers now use xreadlink or mreadlink-with-size.
104386         * modules/xreadlink-with-size: Remove module.
104387         * lib/xreadlink-with-size.c: Remove file.
104388         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
104389         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
104390         just before the function definition *is* accurate.
104392         Eliminate one way canonicalize_filename_mode could exit.
104393         * lib/canonicalize.c (canonicalize_filename_mode):
104394         Use mreadlink_with_size, not xreadlink_with_size.
104396 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
104398         Detect porting problems to FreeBSD/arm, which has time_t wider than
104399         long int.  Original problem reported for GNU diff by Xin Li in
104400         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
104401         * modules/getdate (Depends-on): Add intprops, verify.
104402         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
104403         is an integer type no wider than long int.
104405 2007-06-18  Jim Meyering  <jim@meyering.net>
104407         New module: mreadlink-with-size.
104408         * MODULES.html.sh: Add mreadlink-with-size.
104409         * modules/mreadlink-with-size: New module
104410         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
104411         not xreadlink-with-size.
104412         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
104414 2007-06-16  Bruno Haible  <bruno@clisp.org>
104416         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
104417         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
104418         Reported by Gary V. Vaughan <gary@gnu.org>.
104420 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
104422         Revamp lchown so that it lives in unistd.h where it belongs.
104423         * lib/lchown.h: Remove.
104424         * lib/dirchownmod.c: Don't include lib/lchown.h.
104425         * lib/fchownat.c: Likewise.
104426         * lib/openat.c: Likewise.
104427         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
104428         does not follow symlinks.
104429         (EOPNOTSUPP): Define if not defined.
104430         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
104431         is defined to 0.
104432         (lchown): New decl.
104433         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
104434         Do not check for lchown decl.
104435         Set REPLACE_LCHOWN.
104436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
104437         REPLACE_LCHOWN.
104438         * modules/chown: Make it clear it follows symlinks.
104439         * modules/lchown: Make it clear it doesn't follow symlinks.
104440         (Files): Remove lib/lchown.h
104441         (Depends-on): Add unistd.
104442         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
104443         (Include): Include <unistd.h>, not "lchown.h".
104444         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
104445         REPLACE_LCHOWN.
104447 2007-06-15  Jim Meyering  <jim@meyering.net>
104449         Change license (GPL to LGPL) of fsusage and dependents.
104450         * modules/fsusage (License): Change to LGPL.
104451         * modules/full-read (License): Likewise.
104452         * modules/full-write (License): Likewise.
104453         * modules/safe-read (License): Likewise.
104454         * modules/safe-write (License): Likewise.
104456 2007-06-14  Ben Pfaff  <blp@gnu.org>
104458         Missing part of allocsa -> malloca transition.
104459         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
104460         gl_MALLOCA.
104462 2007-06-12  Bruno Haible  <bruno@clisp.org>
104464         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
104465         to ia64, x86_64, i386.
104466         Reported by Eric Blake.
104468 2007-06-12  Bruno Haible  <bruno@clisp.org>
104470         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
104471         cross-compiling to x86_64.
104473 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
104475         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
104476         glitch reported by Ralf Wildenhues in
104477         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
104479         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
104480         Vin Shelton.
104482 2007-06-11  Bruno Haible  <bruno@clisp.org>
104484         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
104485         replacement string.
104486         Reported by Eric Blake.
104488 2007-06-10  Bruno Haible  <bruno@clisp.org>
104490         Prepare vasnprintf code for use with Unicode strings.
104491         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
104492         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
104493         TYPE_U32_STRING.
104494         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
104495         a_u32_string variants.
104496         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
104497         * lib/printf-args.c: Don't include config.h and the specification
104498         header if PRINTF_FETCHARGS is already defined.
104499         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
104500         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
104501         TYPE_U16_STRING, TYPE_U32_STRING.
104502         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
104503         u16_directive, u16_directives, u32_directive, u32_directives): New
104504         types.
104505         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
104506         New declarations.
104507         * lib/printf-parse.c: Don't include config.h and the specification
104508         header if PRINTF_PARSE is already defined. Eliminate the set of
104509         parameters for WIDE_CHAR_VERSION; the user of this file must provide
104510         them now. Include c-ctype.h.
104511         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
104512         directive and CHAR_T_ONLY_ASCII.
104513         * lib/vasnprintf.c: Don't include config.h and the specification header
104514         if VASNPRINTF is already defined.
104515         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
104516         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
104517         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
104518         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
104519         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
104520         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
104521         code accordingly.
104522         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
104523         pad_ourselves also in this case, with the 'c' and 's' directives, and
104524         with a different notion of "width".
104525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
104527 2007-06-10  Bruno Haible  <bruno@clisp.org>
104529         * modules/unistr/u32-mbsnlen: New file.
104530         * lib/unistr/u32-mbsnlen.c: New file.
104532         * modules/unistr/u16-mbsnlen: New file.
104533         * lib/unistr/u16-mbsnlen.c: New file.
104535         * modules/unistr/u8-mbsnlen: New file.
104536         * lib/unistr/u8-mbsnlen.c: New file.
104538         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
104539         declarations.
104541 2007-06-10  Bruno Haible  <bruno@clisp.org>
104543         * lib/string_.h (mbsnlen): New declaration.
104544         * lib/mbsnlen.c: New file.
104545         * m4/mbsnlen.m4: New file.
104546         * modules/mbsnlen: New file.
104547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
104548         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
104549         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
104551 2007-06-10  Bruno Haible  <bruno@clisp.org>
104553         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
104555 2007-06-10  Bruno Haible  <bruno@clisp.org>
104557         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
104558         * lib/mbuiter.h: Likewise.
104560 2007-06-10  Bruno Haible  <bruno@clisp.org>
104562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
104563         declaration.
104565 2007-06-10  Karl Berry  <karl@gnu.org>
104567         * config/srclist.txt: remove gettext entries, Bruno prefers
104568         to update individually.
104570 2007-06-10  Bruno Haible  <bruno@clisp.org>
104572         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
104573         'maxlen'. Ensure only length + width bytes are allocated, not
104574         length + 1 + width.
104576 2007-06-09  Bruno Haible  <bruno@clisp.org>
104578         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
104579         (CHAR_T): Remove macro.
104580         (VASNPRINTF): Update.
104582 2007-06-09  Bruno Haible  <bruno@clisp.org>
104584         * MODULES.html.sh (Unicode string functions): Add the new modules.
104586         * modules/uniconv/u32-conv-to-enc: New file.
104587         * lib/uniconv/u32-conv-to-enc.c: New file.
104588         * modules/uniconv/u32-conv-to-enc-tests: New file.
104589         * tests/uniconv/test-u32-conv-to-enc.c: New file.
104591         * modules/uniconv/u16-conv-to-enc: New file.
104592         * lib/uniconv/u16-conv-to-enc.c: New file.
104593         * lib/uniconv/u-conv-to-enc.h: New file.
104594         * modules/uniconv/u16-conv-to-enc-tests: New file.
104595         * tests/uniconv/test-u16-conv-to-enc.c: New file.
104597         * modules/uniconv/u8-conv-to-enc: New file.
104598         * lib/uniconv/u8-conv-to-enc.c: New file.
104599         * modules/uniconv/u8-conv-to-enc-tests: New file.
104600         * tests/uniconv/test-u8-conv-to-enc.c: New file.
104602         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
104603         u32_conv_to_encoding): New declarations.
104605 2007-06-09  Bruno Haible  <bruno@clisp.org>
104607         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
104609 2007-06-09  Bruno Haible  <bruno@clisp.org>
104611         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
104612         * modules/malloca: Renamed from modules/allocsa, updated.
104613         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
104614         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
104615         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
104616         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
104617         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
104618         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
104619         * modules/xmalloca: Renamed from modules/xallocsa, updated.
104620         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
104621         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
104622         * modules/c-strcasestr (Depends-on): Update.
104623         * lib/c-strcasestr.c: Update.
104624         * modules/c-strstr (Depends-on): Update.
104625         * lib/c-strstr.c: Update.
104626         * modules/canonicalize-lgpl (Depends-on): Update.
104627         * lib/canonicalize-lgpl.c: Update.
104628         * modules/clean-temp (Depends-on): Update.
104629         * lib/clean-temp.c: Update.
104630         * modules/csharpcomp (Depends-on): Update.
104631         * lib/csharpcomp.c: Update.
104632         * modules/csharpexec (Depends-on): Update.
104633         * lib/csharpexec.c: Update.
104634         * modules/javacomp (Depends-on): Update.
104635         * lib/javacomp.c: Update.
104636         * modules/javaexec (Depends-on): Update.
104637         * lib/javaexec.c: Update.
104638         * modules/mbscasestr (Depends-on): Update.
104639         * lib/mbscasestr.c: Update.
104640         * modules/mbsstr (Depends-on): Update.
104641         * lib/mbsstr.c: Update.
104642         * modules/setenv (Depends-on): Update.
104643         * lib/setenv.c: Update.
104644         * modules/strcasestr (Depends-on): Update.
104645         * lib/strcasestr.c: Update.
104646         * modules/striconveha (Depends-on): Update.
104647         * lib/striconveha.c: Update.
104648         * modules/relocatable-prog-wrapper (Files): Update.
104649         * lib/relocwrapper.c: Update.
104650         * build-aux/install-reloc: Update.
104651         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
104653 2007-06-08  Bruno Haible  <bruno@clisp.org>
104655         Port to uClibc.
104656         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
104657         * lib/fpurge.c (fpurge): Likewise.
104658         * lib/freading.c (freading): Likewise.
104659         * lib/fseeko.c (rpl_fseeko): Likewise.
104660         * lib/fseterr.c (fseterr): Likewise.
104661         * lib/fwriting.c (fwriting): Likewise.
104662         * tests/test-fflush.c (main): Avoid a failure on uClibc.
104664 2007-06-08  Bruno Haible  <bruno@clisp.org>
104666         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
104667         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
104668         * modules/gettext (Files): Add m4/intlmacosx.m4.
104670 2007-06-07  Bruno Haible  <bruno@clisp.org>
104672         * modules/localename-tests: New file.
104673         * tests/test-localename.c: New file.
104675         New module 'localename'.
104676         * lib/localename.h: New file.
104677         * lib/localename.c: New file, from GNU gettext.
104678         * m4/localename.m4: New file.
104679         * modules/localename: New file.
104681 2007-06-07  Bruno Haible  <bruno@clisp.org>
104683         Work around the lack of <wchar.h> on some builds of uClibc.
104684         * doc/headers/wchar.texi: Update.
104685         * lib/wchar_.h: Include <wchar.h> only if it exists.
104686         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
104687         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
104688         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
104689         doesn't exist.
104690         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
104691         * modules/mbfile (Depends-on): Add wchar.
104692         * modules/mbiter (Depends-on): Likewise.
104693         * modules/mbuiter (Depends-on): Likewise.
104694         Reported by Simon Josefsson.
104696 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
104698         Work around problem reported by Steven M. Schweda in
104699         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
104700         Tru64 5.1B with the Compaq compiler environment installed declares
104701         an 'isblank' function but does not define it in the C library.
104702         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
104703         * lib/regex_internal.h (isblank): Likewise.
104704         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
104705         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
104707 2007-06-05  Bruno Haible  <bruno@clisp.org>
104709         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
104710         ia64.
104711         * modules/printf-safe: New file.
104712         * modules/fprintf-posix (Depends-on): Add printf-safe.
104713         * modules/printf-posix (Depends-on): Likewise.
104714         * modules/snprintf-posix (Depends-on): Likewise.
104715         * modules/sprintf-posix (Depends-on): Likewise.
104716         * modules/vasnprintf-posix (Depends-on): Likewise.
104717         * modules/vasprintf-posix (Depends-on): Likewise.
104718         * modules/vfprintf-posix (Depends-on): Likewise.
104719         * modules/vprintf-posix (Depends-on): Likewise.
104720         * modules/vsnprintf-posix (Depends-on): Likewise.
104721         * modules/vsprintf-posix (Depends-on): Likewise.
104722         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
104723         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
104724         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
104725         "no" on i386, x86_64, ia64.
104726         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
104727         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104728         on i386, x86_64, ia64.
104729         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
104730         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104731         on i386, x86_64, ia64.
104732         * tests/test-vasnprintf-posix.c: Include float.h.
104733         (LDBL80_WORDS): New macro.
104734         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104735         on i386, x86_64, ia64.
104736         * tests/test-vasprintf-posix.c: Include float.h.
104737         (LDBL80_WORDS): New macro.
104738         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104739         on i386, x86_64, ia64.
104740         * tests/test-snprintf-posix.c: Include float.h.
104741         * tests/test-sprintf-posix.c: Likewise.
104742         * tests/test-vsnprintf-posix.c: Likewise.
104743         * tests/test-vsprintf-posix.c: Likewise.
104745 2007-06-05  Bruno Haible  <bruno@clisp.org>
104747         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
104748         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
104749         non-IEEE numbers on i386, x86_64, ia64.
104750         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
104751         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
104752         * tests/test-isnanl.h: Include float.h.
104753         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
104755 2007-06-05  Bruno Haible  <bruno@clisp.org>
104757         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
104758         also the %a / %A. Handle the %a / %A code before this extra handling.
104760 2007-06-05  Bruno Haible  <bruno@clisp.org>
104762         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
104763         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
104765 2007-06-05  Bruno Haible  <bruno@clisp.org>
104767         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
104768         typo in variable name.
104770 2007-06-05  Eric Blake  <ebb9@byu.net>
104772         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
104773         Reported by Simon Josefsson.
104775 2007-06-04  Bruno Haible  <bruno@clisp.org>
104777         Avoid test failures on some PowerPC platforms.
104778         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
104779         Define differently for PowerPC.
104780         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
104781         Reported by Gary V. Vaughan <gary@gnu.org>.
104783 2007-06-02  Bruno Haible  <bruno@clisp.org>
104785         Fix test-stdint failure on FreeBSD/ia64.
104786         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
104787         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
104788         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
104789         * doc/headers/stdint.texi: Update.
104791 2007-06-01  Bruno Haible  <bruno@clisp.org>
104793         * tests/test-binary-io.c (main): Pass a third argument to open().
104794         Reported by Gary V. Vaughan <gary@gnu.org>.
104796 2007-06-01  Bruno Haible  <bruno@clisp.org>
104798         * doc/functions/frexpl.texi: Update for mingw.
104800 2007-06-01  Bruno Haible  <bruno@clisp.org>
104802         * tests/test-lseek.c (main): Disable test of errno for invalid third
104803         argument.
104804         * doc/functions/lseek.texi: Update.
104805         Reported by Gary V. Vaughan <gary@gnu.org>.
104807 2007-05-28  Bruno Haible  <bruno@clisp.org>
104809         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
104811 2007-05-31  Eric Blake  <ebb9@byu.net>
104813         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
104814         cross compiling.
104816 2007-05-30  Eric Blake  <ebb9@byu.net>
104817         and Bruno Haible  <bruno@clisp.org>
104819         Work around mingw test failures exposed by m4-1.4.9b.
104820         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
104821         * tests/test-unistd.c: Disable uid_t and git_t tests for the
104822         moment.
104824 2007-05-30  Bruno Haible  <bruno@clisp.org>
104826         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
104827         assuming that they are closed. Needed on HP-UX 11.
104829 2007-05-29  Bruno Haible  <bruno@clisp.org>
104831         Fix a problem with #include_next.
104832         * lib/dirent_.h: Split the double-inclusion guard.
104833         * lib/fcntl_.h: Likewise.
104834         * lib/float_.h: Likewise.
104835         * lib/iconv_.h: Likewise.
104836         * lib/inttypes_.h: Likewise.
104837         * lib/locale_.h: Likewise.
104838         * lib/math_.h: Likewise.
104839         * lib/netinet_in_.h: Likewise.
104840         * lib/search_.h: Likewise.
104841         * lib/signal_.h: Likewise.
104842         * lib/stdint_.h: Likewise.
104843         * lib/stdio_.h: Likewise.
104844         * lib/stdlib_.h: Likewise.
104845         * lib/string_.h: Likewise.
104846         * lib/sys_select_.h: Likewise.
104847         * lib/sys_socket_.h: Likewise.
104848         * lib/sys_stat_.h: Likewise.
104849         * lib/sys_time_.h: Likewise.
104850         * lib/sysexits_.h: Likewise.
104851         * lib/time_.h: Likewise.
104852         * lib/unistd_.h: Likewise.
104853         * lib/wchar_.h: Likewise.
104854         * lib/wctype_.h: Likewise.
104856 2007-05-29  Bruno Haible  <bruno@clisp.org>
104858         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
104859         for the moment.
104861 2007-05-29  Bruno Haible  <bruno@clisp.org>
104863         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
104864         invocation.
104865         Reported by Eric Blake.
104867 2007-05-29  Bruno Haible  <bruno@clisp.org>
104869         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
104870         compiling case.
104872 2007-05-29  Eric Blake  <ebb9@byu.net>
104873             Bruno Haible  <bruno@clisp.org>
104875         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
104876         cross compiles.
104878 2007-05-28  Eric Blake  <ebb9@byu.net>
104880         * modules/closein-tests (test_closein_LDADD): Support test on
104881         cygwin with libtool.
104883 2007-05-28  Bruno Haible  <bruno@clisp.org>
104885         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
104886         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
104887         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
104888         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
104889         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
104890         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
104891         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
104892         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
104893         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
104895 2007-05-28  Eric Blake  <ebb9@byu.net>
104897         Unconditionally include <config.h> in unit tests.
104898         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
104899         * tests/test-allocsa.c, tests/test-arcfour.c,
104900         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
104901         tests/test-array_list.c, tests/test-array_oset.c,
104902         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
104903         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
104904         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
104905         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
104906         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
104907         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
104908         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
104909         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
104910         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
104911         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
104912         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
104913         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
104914         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
104915         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
104916         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
104917         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
104918         test-md5.c, test-memmem.c, test-printf-posix.c,
104919         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
104920         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
104921         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
104922         test-strcasestr.c, test-striconv.c, test-striconveh.c,
104923         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
104924         test-vasnprintf-posix2.c, test-vasnprintf.c,
104925         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
104926         test-vfprintf-posix.c, test-vprintf-posix.c,
104927         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
104928         test-xvasprintf.c: Likewise.
104930 2007-05-28  Bruno Haible  <bruno@clisp.org>
104932         * gnulib-tool (func_import): Remember the --with-tests command-line
104933         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
104934         Reported by Eric Blake.
104936 2007-05-28  Bruno Haible  <bruno@clisp.org>
104938         * modules/ftell-tests: New file.
104939         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
104940         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
104942         * lib/ftell.c: New file.
104943         * modules/ftell: New file.
104944         * m4/ftell.m4: New file.
104945         * doc/functions/ftell.texi: Update.
104946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
104947         REPLACE_FTELL.
104948         * lib/stdio_.h (rpl_ftell): New declaration.
104949         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
104950         REPLACE_FTELL.
104952 2007-05-28  Eric Blake  <ebb9@byu.net>
104954         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
104956 2007-05-28  Bruno Haible  <bruno@clisp.org>
104958         * modules/fseek-tests: New file.
104959         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
104960         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
104962         * lib/fseek.c: New file.
104963         * modules/fseek: New file.
104964         * m4/fseek.m4: New file.
104965         * doc/functions/fseek.texi: Update.
104966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
104967         REPLACE_FSEEK.
104968         * lib/stdio_.h (rpl_fseek): New declaration.
104969         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
104970         REPLACE_FSEEK.
104972 2007-05-28  Bruno Haible  <bruno@clisp.org>
104974         * lib/stdio_.h (fflush): More comments.
104976 2007-05-28  Bruno Haible  <bruno@clisp.org>
104978         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
104979         runtime test.
104981 2007-05-28  Eric Blake  <ebb9@byu.net>
104983         Improve lseek module.
104984         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
104985         * lib/unistd_.h (lseek): Scale back link warning message.
104986         * tests/test-lseek.c: Beef up test.
104987         * tests/test-lseek.sh: Exercise more facets of lseek.
104988         Reported by Bruno Haible.
104990 2007-05-28  Bruno Haible  <bruno@clisp.org>
104992         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
104993         to define.
104995 2007-05-27  Bruno Haible  <bruno@clisp.org>
104997         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
104999 2007-05-27  Bruno Haible  <bruno@clisp.org>
105001         * modules/openmp: New file.
105002         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
105003         Noah Misch.
105005 2007-05-26  Bruno Haible  <bruno@clisp.org>
105007         * modules/chdir-long (Depends-on): Add fchdir.
105008         * modules/chdir-safer (Depends-on): Likewise.
105009         * modules/fts (Depends-on): Likewise.
105010         * modules/fts-lgpl (Depends-on): Likewise.
105011         * modules/openat (Depends-on): Likewise.
105012         * modules/savewd (Depends-on): Likewise.
105014 2007-05-24  Eric Blake  <ebb9@byu.net>
105016         Fix lseek on mingw.
105017         * modules/lseek: New module.
105018         * m4/lseek.m4: New file.
105019         * lib/lseek.c: New file.
105020         * modules/lseek-tests: New file.
105021         * tests/test-lseek.c: New file.
105022         * tests/test-lseek.sh: New file.
105023         * MODULES.html.sh: Document lseek module.
105024         * modules/fflush (Depends-on): Add lseek, fseeko.
105025         * modules/fseeko (Depends-on): Likewise.
105026         * modules/ftello (Depends-on): Likewise.
105027         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
105028         broken.
105029         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
105030         broken.
105031         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
105032         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
105033         * lib/ftello.c (rpl_ftello): Likewise.
105034         * tests/test-fseeko.c (main): Test this.
105035         * tests/test-fseeko.sh: Likewise.
105036         * tests/test-ftello.c (main): Likewise.
105037         * tests/test-ftello.sh: Likewise.
105038         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
105039         implies replacing fseek.
105040         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
105041         HAVE_FTELLO.
105042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
105043         * modules/unistd (Makefile.am): Likewise.
105044         * lib/unistd_.h (lseek): Declare a replacement.
105045         * doc/functions/lseek.texi (lseek): Document this fix.
105046         * doc/functions/fseek.texi (fseek): Likewise.
105047         * doc/functions/ftell.texi (ftell): Likewise.
105049 2007-05-24  Bruno Haible  <bruno@clisp.org>
105051         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
105052         in the printed representation of a NaN.
105053         * tests/test-vasprintf-posix.c (test_function): Likewise.
105054         * tests/test-snprintf-posix.h (test_function): Likewise.
105055         * tests/test-sprintf-posix.h (test_function): Likewise.
105056         Reported by Eric Blake.
105058 2007-05-23  Eric Blake  <ebb9@byu.net>
105060         Fix fseeko/ftello on cygwin 1.5.24.
105061         * doc/functions/fseeko.texi (fseeko): Document the fix.
105062         * doc/functions/ftello.texi (ftello): Document the fix.
105063         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
105064         * doc/functions/stdout.text (stdout): New file.
105065         * doc/functions/stderr.text (stderr): New file.
105066         * doc/gnulib.texi (Function Substitutes): Use new files.
105067         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
105068         prior to 1.7.0.
105069         * tests/test-ftello.c (main): Likewise for ftello.
105070         * tests/test-fseeko.sh: New file.
105071         * tests/test-ftello.sh: New file.
105072         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
105073         with seekable stdin.
105074         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
105075         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
105076         (gl_REPLACE_FSEEKO): New macro.
105077         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
105078         * modules/fseeko (Files): Distribute fseeko.c.
105079         * modules/ftello (Files): Distribute ftello.c.
105080         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
105081         mode.
105082         * lib/ftello.c (rpl_ftello): New file.
105083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
105084         fseeko, ftello.
105085         (gl_STDIN_LARGE_OFFSET): New macro.
105086         * modules/stdio (Makefile.am): Perform the replacement.
105087         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
105089 2007-05-23  Bruno Haible  <bruno@clisp.org>
105091         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
105092         GNULIB_POSIXCHECK is defined.
105094 2007-05-21  Bruno Haible  <bruno@clisp.org>
105096         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
105097         Check also the output for NaN arguments. When cross-compiling, guess
105098         no on IRIX.
105099         * lib/vasnprintf.c: Update comments.
105100         * tests/test-vasnprintf-posix.c (strisnan): New function.
105101         (test_function): Use it.
105102         * tests/test-vasprintf-posix.c (strisnan): New function.
105103         (test_function): Use it.
105104         * tests/test-snprintf-posix.h (strisnan): New function.
105105         (test_function): Use it.
105106         * tests/test-sprintf-posix.h (strisnan): New function.
105107         (test_function): Use it.
105108         Reported by Eric Blake.
105110 2007-05-20  Bruno Haible  <bruno@clisp.org>
105112         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
105113         numbers that fails on BeOS.
105114         * doc/functions/frexpl.texi: Update.
105116 2007-05-20  Jim Meyering  <jim@meyering.net>
105118         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
105119         forced upon us by glibc-2.6.
105121 2007-05-20  Bruno Haible  <bruno@clisp.org>
105123         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
105124         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
105125         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
105126         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
105127         NEED_PRINTF_INFINITE.
105128         (is_infinitel): New function.
105129         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
105130         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
105131         gl_PREREQ_VASNPRINTF_INFINITE.
105132         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
105133         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105134         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
105135         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
105136         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
105137         gl_PREREQ_VASNPRINTF_INFINITE.
105138         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105139         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105140         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105141         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105142         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105143         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105144         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105145         * doc/functions/fprintf.texi: Update.
105146         * doc/functions/printf.texi: Update.
105147         * doc/functions/snprintf.texi: Update.
105148         * doc/functions/sprintf.texi: Update.
105149         * doc/functions/vfprintf.texi: Update.
105150         * doc/functions/vprintf.texi: Update.
105151         * doc/functions/vsnprintf.texi: Update.
105152         * doc/functions/vsprintf.texi: Update.
105154 2007-05-20  Bruno Haible  <bruno@clisp.org>
105156         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
105157         was not found in libc.
105158         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
105160 2007-05-20  Bruno Haible  <bruno@clisp.org>
105162         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
105163         printed as "-nan" instead of "nan".
105164         * tests/test-vasprintf-posix.c (test_function): Likewise.
105165         * tests/test-snprintf-posix.h (test_function): Likewise.
105166         * tests/test-sprintf-posix.h (test_function): Likewise.
105167         Needed for HP-UX 11.
105169 2007-05-20  Jim Meyering  <jim@meyering.net>
105171         Fix buggy test for the fchownat-deref bug.
105172         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
105173         symlink required for the run-test.  Without it, this test would
105174         always declare that fchownat doesn't work, and client code would
105175         unnecessarily use the replacement function with fixed libc.
105176         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
105177         Reported by Greg Schafer.
105179 2007-05-19  Bruno Haible  <bruno@clisp.org>
105181         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
105182         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
105183         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
105184         Needed for IRIX 6.5 and Solaris 2.5.1.
105186 2007-05-19  Bruno Haible  <bruno@clisp.org>
105188         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
105189         (test_function): Skip tests involving -0.0 on platforms where
105190         -0.0 = 0.0.
105191         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
105192         (test_function): Skip tests involving -0.0 on platforms where
105193         -0.0 = 0.0.
105194         * tests/test-snprintf-posix.h (have_minus_zero): New function.
105195         (test_function): Skip tests involving -0.0 on platforms where
105196         -0.0 = 0.0.
105197         * tests/test-sprintf-posix.h (have_minus_zero): New function.
105198         (test_function): Skip tests involving -0.0 on platforms where
105199         -0.0 = 0.0.
105200         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
105201         tests.
105202         * tests/test-printf-posix.h (test_function): Likewise.
105203         * tests/test-printf-posix.output: Remove all -0.0 related results.
105204         Needed for IRIX 6.5.
105206 2007-05-19  Bruno Haible  <bruno@clisp.org>
105208         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
105209         printed as "nan0x7fffffff" instead of "nan".
105210         * tests/test-vasprintf-posix.c (test_function): Likewise.
105211         * tests/test-snprintf-posix.h (test_function): Likewise.
105212         * tests/test-sprintf-posix.h (test_function): Likewise.
105213         * tests/test-fprintf-posix.h (NaN): Remove macro.
105214         (test_function): Remove all NaN related tests.
105215         * tests/test-printf-posix.h (NaN): Remove macro.
105216         (test_function): Remove all NaN related tests.
105217         * tests/test-printf-posix.output: Remove all NaN related results.
105218         Needed for IRIX 6.5.
105220 2007-05-19  Bruno Haible  <bruno@clisp.org>
105222         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
105223         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
105225 2007-05-19  Bruno Haible  <bruno@clisp.org>
105227         * lib/float_.h: New file.
105228         * m4/float_h.m4: New file.
105229         * modules/float: New file.
105230         * modules/isnanl (Dependencies): Add float.
105231         * modules/isnanl-nolibm (Dependencies): Likewise.
105232         * modules/mathl (Dependencies): Likewise.
105233         * modules/printf-frexpl (Dependencies): Likewise.
105234         * modules/signbit (Dependencies): Likewise.
105235         * modules/vasnprintf (Dependencies): Likewise.
105236         * doc/headers/float.texi: Update.
105238 2007-05-19  Jim Meyering  <jim@meyering.net>
105240         * lib/utimens.c (gl_futimens): Rename from futimens,
105241         now that glibc-2.6 declares futimens.
105242         * lib/utimens.h: Likewise.
105244 2007-05-19  Bruno Haible  <bruno@clisp.org>
105246         Avoid test failures on mingw.
105247         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
105248         * tests/test-printf-posix.sh: Likewise.
105249         * tests/test-vfprintf-posix.sh: Likewise.
105250         * tests/test-vprintf-posix.sh: Likewise.
105252 2007-05-19  Bruno Haible  <bruno@clisp.org>
105254         Fix *printf result for NaN, Inf, -0.0 on mingw.
105255         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
105256         * lib/vasnprintf.c: Include math.h and isnan.h.
105257         (is_infinite_or_zero): New function.
105258         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
105259         values in the %f, %F, %e, %E, %g, %G directives.
105260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
105261         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105262         gl_PRINTF_INFINITE and test its result. Invoke
105263         gl_PREREQ_VASNPRINTF_INFINITE.
105264         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105265         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105266         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105267         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105268         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105269         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105270         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105271         * doc/functions/fprintf.texi: Update.
105272         * doc/functions/printf.texi: Update.
105273         * doc/functions/snprintf.texi: Update.
105274         * doc/functions/sprintf.texi: Update.
105275         * doc/functions/vfprintf.texi: Update.
105276         * doc/functions/vprintf.texi: Update.
105277         * doc/functions/vsnprintf.texi: Update.
105278         * doc/functions/vsprintf.texi: Update.
105280 2007-05-19  Bruno Haible  <bruno@clisp.org>
105282         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
105283         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
105284         Instead of multiplying with 10^k, set extra_zeroes to k.
105285         (scale10_round_long_double): Remove function.
105287 2007-05-18  Bruno Haible  <bruno@clisp.org>
105289         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
105290         introduced on 2007-05-06.
105292 2007-05-18  Bruno Haible  <bruno@clisp.org>
105294         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
105295         %g directives.
105296         * tests/test-vasprintf-posix.c (test_function): Likewise.
105297         * tests/test-snprintf-posix.h (test_function): Likewise.
105298         * tests/test-sprintf-posix.h (test_function): Likewise.
105300 2007-05-18  Bruno Haible  <bruno@clisp.org>
105302         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
105303         (strmatch): New function.
105304         (test_function): Test the %f directive on numbers of various exponents.
105305         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
105306         (strmatch): New function.
105307         (test_function): Test the %f directive on numbers of various exponents.
105308         * tests/test-snprintf-posix.h (strmatch): New function.
105309         (test_function): Test the %f directive on numbers of various exponents.
105310         * tests/test-sprintf-posix.h (strmatch): New function.
105311         (test_function): Test the %f directive on numbers of various exponents.
105312         * tests/test-snprintf-posix.c (SIZEOF): New macro.
105313         * tests/test-sprintf-posix.c (SIZEOF): New macro.
105314         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
105315         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
105317 2007-05-18  Bruno Haible  <bruno@clisp.org>
105319         Add support for 'long double' number output.
105320         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
105321         * lib/vasnprintf.c: Include math.h and float+.h.
105322         (mp_limb_t): New type.
105323         (GMP_LIMB_BITS): New macro.
105324         (mp_twolimb_t): New type.
105325         (GMP_TWOLIMB_BITS): New macro.
105326         (mpn_t): New type.
105327         (multiply, divide, convert_to_decimal, decode_long_double,
105328         scale10_round_long_double, scale10_round_decimal_long_double,
105329         floorlog10l): New functions.
105330         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
105331         for the %f, %F, %e, %E, %g, %G directives.
105332         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
105333         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105334         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
105335         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
105336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105337         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105338         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105339         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105340         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105341         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105342         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105343         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
105344         * modules/snprintf-posix (Depends-on): Likewise.
105345         * modules/sprintf-posix (Depends-on): Likewise.
105346         * modules/vasnprintf-posix (Depends-on): Likewise.
105347         * modules/vasprintf-posix (Depends-on): Likewise.
105348         * modules/vfprintf-posix (Depends-on): Likewise.
105349         * modules/vsnprintf-posix (Depends-on): Likewise.
105350         * modules/vsprintf-posix (Depends-on): Likewise.
105351         * modules/vasnprintf (Files): Add lib/float+.h.
105352         * doc/functions/fprintf.texi: Update.
105353         * doc/functions/printf.texi: Update.
105354         * doc/functions/snprintf.texi: Update.
105355         * doc/functions/sprintf.texi: Update.
105356         * doc/functions/vfprintf.texi: Update.
105357         * doc/functions/vprintf.texi: Update.
105358         * doc/functions/vsnprintf.texi: Update.
105359         * doc/functions/vsprintf.texi: Update.
105361 2007-05-18  Bruno Haible  <bruno@clisp.org>
105363         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
105365 2007-05-18  Bruno Haible  <bruno@clisp.org>
105367         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
105368         for printing 64-bit integers. Needed for mingw.
105370 2007-05-18  Bruno Haible  <bruno@clisp.org>
105372         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
105373         gl_FUNC_FREXPL_WORKS.
105374         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
105376 2007-05-18  Bruno Haible  <bruno@clisp.org>
105378         * modules/frexpl-nolibm-tests: New file.
105380         * modules/frexpl-nolibm: New file.
105381         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
105383 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
105385         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
105386         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
105387         GCC 4.2, which otherwise issues a lot of warnings.
105388         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
105389         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
105390         Likewise.
105391         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
105392         * modules/iconv_open (iconv.h): Likewise.
105393         * modules/locale (locale.h): Likewise.
105394         * modules/netinet_in (netinet/in.h): Likewise.
105395         * modules/sys_select (sys_select.h): Likewise.
105396         * modules/sys_socket (sys/socket.h): Likewise.
105397         * modules/sys_stat (sys/stat.h): Likewise.
105398         * modules/sysexits (sysexits.h): Likewise.
105399         * modules/unistd (unistd.h): Likewise.
105401 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105403         * modules/closein-tests (Makefile.am): Distribute
105404         `test-closein.sh'.
105406 2007-05-17  Bruno Haible  <bruno@clisp.org>
105408         * tests/test-printf-posix.output: Renamed from
105409         tests/test-fprintf-posix.out.
105410         * modules/fprintf-posix-tests: Update.
105411         * modules/printf-posix-tests: Update.
105412         * modules/vfprintf-posix-tests: Update.
105413         * modules/vprintf-posix-tests: Update.
105414         * tests/test-fprintf-posix.sh: Update.
105415         * tests/test-printf-posix.sh: Update.
105416         * tests/test-vfprintf-posix.sh: Update.
105417         * tests/test-vprintf-posix.sh: Update.
105418         Reported by Ralf Wildenhues.
105420 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
105422         * lib/fcntl_.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/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
105426         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
105427         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
105428         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
105429         it should no longer be needed.
105430         * lib/string_.h: Likewise.
105431         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
105432         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
105433         * modules/inttypes (inttypes.h): Likewise.
105434         * modules/math (math.h): Likewise.
105435         * modules/search (search.h): Likewise.
105436         * modules/signal (signal.h): Likewise.
105437         * modules/stdint (stdint.h): Likewise.
105438         * modules/stdio (stdio.h): Likewise.
105439         * modules/stdlib (stdlib.h): Likewise.
105440         * modules/string (string.h): Likewise.
105441         * modules/sys_time (sys/time.h): Likewise.
105442         * modules/time (time.h): Likewise.
105443         * modules/wchar (wchar.h): Likewise.
105444         * modules/wctype (wtype.h): Likewise.
105446 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
105448         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
105450 2007-05-13  Bruno Haible  <bruno@clisp.org>
105452         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
105453         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
105454         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
105455         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
105456         (gl_PREREQ_STRTOK_R): Don't require it here.
105458 2007-05-13  Bruno Haible  <bruno@clisp.org>
105460         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
105461         when used in C++ mode.
105463 2007-05-12  Bruno Haible  <bruno@clisp.org>
105465         * lib/linebuffer.h: Tweak doc.
105466         * lib/linebuffer.c: Likewise.
105468 2007-05-12  James Youngman  <jay@gnu.org>
105470         * lib/linebuffer.c (readlinebuffer_delim): New function,
105471         like readlinebuffer, but use a caller-specified delimiter.
105472         (readlinebuffer): Just call readlinebuffer_delim with '\n'
105473         as the delimiter.
105474         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
105476 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
105478         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
105479         * modules/openat (Files): Remove openat-die.c.
105480         (Depends-on): Add openat-die.
105481         * modules/openat-die: New module.
105483 2007-05-06  Bruno Haible  <bruno@clisp.org>
105485         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
105486         Update with info about Cygwin.
105487         * doc/functions/fprintf.texi: Update.
105488         * doc/functions/printf.texi: Update.
105489         * doc/functions/snprintf.texi: Update.
105490         * doc/functions/sprintf.texi: Update.
105491         * doc/functions/vfprintf.texi: Update.
105492         * doc/functions/vprintf.texi: Update.
105493         * doc/functions/vsnprintf.texi: Update.
105494         * doc/functions/vsprintf.texi: Update.
105495         Reported by Eric Blake.
105497 2007-05-06  Bruno Haible  <bruno@clisp.org>
105499         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
105500         padding ourselves for the floating-point directives.
105501         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
105502         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
105503         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105504         gl_PRINTF_FLAG_ZERO and test its result. Invoke
105505         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
105506         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105507         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
105508         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105509         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105510         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105511         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105512         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105513         * tests/test-snprintf-posix.h (test_function): Also check the width
105514         and some flags in the %f directive.
105515         * tests/test-sprintf-posix.h (test_function): Likewise.
105516         * tests/test-vasnprintf-posix.c (test_function): Likewise.
105517         * tests/test-vasprintf-posix.c (test_function): Likewise.
105518         * doc/functions/fprintf.texi: Update.
105519         * doc/functions/printf.texi: Update.
105520         * doc/functions/snprintf.texi: Update.
105521         * doc/functions/sprintf.texi: Update.
105522         * doc/functions/vfprintf.texi: Update.
105523         * doc/functions/vprintf.texi: Update.
105524         * doc/functions/vsnprintf.texi: Update.
105525         * doc/functions/vsprintf.texi: Update.
105527 2007-05-06  Bruno Haible  <bruno@clisp.org>
105529         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
105530         pass the ' flag character to sprintf or snprintf.
105531         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
105532         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
105533         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105534         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
105535         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
105536         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105537         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
105538         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105539         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105540         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105541         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105542         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105543         * tests/test-snprintf-posix.h (test_function): Also check the grouping
105544         flag.
105545         * tests/test-sprintf-posix.h (test_function): Likewise.
105546         * tests/test-vasnprintf-posix.c (test_function): Likewise.
105547         * tests/test-vasprintf-posix.c (test_function): Likewise.
105548         * doc/functions/fprintf.texi: Update.
105549         * doc/functions/printf.texi: Update.
105550         * doc/functions/snprintf.texi: Update.
105551         * doc/functions/sprintf.texi: Update.
105552         * doc/functions/vfprintf.texi: Update.
105553         * doc/functions/vprintf.texi: Update.
105554         * doc/functions/vsnprintf.texi: Update.
105555         * doc/functions/vsprintf.texi: Update.
105557 2007-05-01  Bruno Haible  <bruno@clisp.org>
105559         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
105561 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
105563         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
105564         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
105566 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
105568         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
105569         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
105570         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
105572 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
105574         * lib/argp-help.c (struct hol_entry): New member `ord'.
105575         (HOL_ENTRY_PTRCMP): Use ord for comparison
105576         (hol_sort): Initialize ord.
105578 2007-05-01  Bruno Haible  <bruno@clisp.org>
105580         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
105581         Reported by Eric Blake.
105582         * doc/gnulib.texi (Function Substitutes): Update.
105584 2007-05-01  Bruno Haible  <bruno@clisp.org>
105586         * doc/functions.texi: Remove file, now redundant through
105587         doc/functions/*.texi.
105589 2007-05-01  Bruno Haible  <bruno@clisp.org>
105591         * modules/argp (Depends-on): Add sleep.
105593 2007-05-01  Bruno Haible  <bruno@clisp.org>
105595         * modules/sleep-tests: New file.
105596         * tests/test-sleep.c: New file.
105598         * modules/sleep: New file.
105599         * lib/sleep.c: New file.
105600         * m4/sleep.m4: New file.
105601         * lib/unistd_.h (sleep): New declaration.
105602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
105603         HAVE_SLEEP.
105604         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
105605         * doc/functions/sleep.texi: Document the sleep module.
105607 2007-05-01  Bruno Haible  <bruno@clisp.org>
105609         * lib/sigprocmask.h: Remove file.
105610         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
105611         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
105612         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
105613         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
105614         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
105615         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
105616         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
105617         HAVE_SIGSET_T as a shell variable.
105618         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
105619         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
105620         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
105621         (Depends-on): Add signal. Remove verify.
105622         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
105623         (Include): Mention <signal.h> instead of sigprocmask.h.
105624         * NEWS: Mention the change.
105625         * lib/fatal-signal.c: Don't include sigprocmask.h.
105627 2007-05-01  Bruno Haible  <bruno@clisp.org>
105629         * modules/signal: New file.
105630         * lib/signal_.h: New file.
105631         * m4/signal_h.m4: New file.
105633 2007-05-01  Bruno Haible  <bruno@clisp.org>
105635         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
105636         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
105637         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
105638         HAVE_WCTYPE_CTMP_BUG into wctype.h.
105640 2007-05-01  Bruno Haible  <bruno@clisp.org>
105642         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
105643         configure time.
105644         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
105645         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
105646         * modules/sys_stat (Makefile.am): Substitute their values into
105647         sys/stat.h.
105649 2007-05-01  Bruno Haible  <bruno@clisp.org>
105651         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
105652         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
105653         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
105655 2007-05-01  Bruno Haible  <bruno@clisp.org>
105657         * doc/header/assert.texi: Undo last change: don't mention the gnulib
105658         'assert' module here.
105660 2007-05-01  Bruno Haible  <bruno@clisp.org>
105662         * doc/functions/*.texi: New files.
105663         * doc/functions/google-ranking.txt: New file.
105664         * doc/gnulib.texi (Function Substitutes): New chapter.
105665         (ctime, inet_ntoa): Remove sections.
105666         * doc/ctime.texi: Remove file.
105667         * doc/inet_ntoa.texi: Remove file.
105668         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
105669         dependencies.
105670         (%.info): New rule, specifying a --reference-limit.
105672 2007-05-01  Bruno Haible  <bruno@clisp.org>
105674         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
105676 2007-05-01  Bruno Haible  <bruno@clisp.org>
105678         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
105679         the portability of 'mkdir' to mingw systems.
105681 2007-05-01  Bruno Haible  <bruno@clisp.org>
105683         * doc/headers/google-ranking.txt: New file.
105685 2007-04-30  Eric Blake  <ebb9@byu.net>
105687         Prefer fseeko to fseek.
105688         * modules/getpass (Depends-on): Add fseeko.
105689         * lib/getpass.c (getpass): Use fseeko, not fseek.
105691 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
105693         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
105694         assumes the sorting is stable, while most qsort implementations
105695         are not.  Use argument addresses to ensure they never compare as
105696         equal.
105698         * tests/test-argp-2.sh (usage-indent test): Fix output
105699         (func_compare): Restore diff options
105700         * tests/test-argp.c: Restore #include "progname.h"
105702 2007-04-29  Bruno Haible  <bruno@clisp.org>
105704         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
105705         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105706         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
105707         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105708         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
105709         (configure.ac): Define CHECK_SNPRINTF_POSIX.
105710         (TESTS, check_PROGRAMS): Add test-snprintf.
105711         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
105712         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
105713         (TESTS, check_PROGRAMS): Add test-vsnprintf.
105714         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
105715         assertions that fail on HP-UX, OSF/1, or IRIX.
105716         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
105718 2007-04-29  Bruno Haible  <bruno@clisp.org>
105720         * MODULES.html.sh (posix_functions): Remove 'contents'.
105722 2007-04-29  Karl Berry  <karl@gnu.org>
105724         * config/srclist.txt (gendocs_template_min): new entry.
105726 2007-04-29  Bruno Haible  <bruno@clisp.org>
105728         Work around fpurge bug on BSD systems.
105729         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
105730         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
105731         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
105732         fpurge to rpl_fpurge if the system already has this function.
105733         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
105734         the case where the system already has this function. Correct invariants
105735         on BSD systems.
105736         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
105737         BSD systems.
105739 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
105741         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
105742         proposed by Sven Verdoolaege.
105744         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
105745         options.
105746         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
105747         (usage and help tests): Update
105749 2007-04-29  Bruno Haible  <bruno@clisp.org>
105751         * tests/test-fflush.c (main): Use a file of size 17, not 10.
105752         Print more information in case of failure. Disable a test on BeOS.
105754 2007-04-29  Bruno Haible  <bruno@clisp.org>
105756         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
105757         This helps debugging on systems on which no gdb is available.
105759 2007-04-29  Bruno Haible  <bruno@clisp.org>
105761         * lib/freading.h: Improve comments.
105762         * lib/fwriting.h: Likewise.
105763         * tests/test-freading.c (main): Don't check freading immediately after
105764         repositioning. Needed for glibc.
105766 2007-04-29  Bruno Haible  <bruno@clisp.org>
105768         * lib/freading.c (freading): Trivial simplification.
105770 2007-04-28  Bruno Haible  <bruno@clisp.org>
105772         * tests/test-fwriting.c (main): Also test the interaction between
105773         fflush and fwriting.
105774         * modules/fwriting-tests (Depends-on): Add fflush.
105776         * tests/test-freading.c (main): Also test the interaction between
105777         fflush and freading.
105778         * modules/freading-tests (Depends-on): Add fflush.
105780 2007-04-28  Bruno Haible  <bruno@clisp.org>
105782         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
105783         fseeko and ftello.
105784         Suggested by Eric Blake.
105786 2007-04-28  Jim Meyering  <jim@meyering.net>
105788         Avoid false-negative in gl_STDINT_H's C99 conformance test.
105789         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
105790         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
105792 2007-04-27  Eric Blake  <ebb9@byu.net>
105794         * doc/headers/assert.texi (assert.h): Document assert module use.
105796 2007-04-27  Bruno Haible  <bruno@clisp.org>
105798         * doc/headers/*.texi: New files.
105799         * doc/gnulib.texi (Header File Substitutes): New chapter.
105800         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
105801         dependencies.
105802         (standards.info ,standards.html, standards.dvi): Update dependencies.
105803         (mostlyclean, clean): New targets.
105805 2007-04-27  Bruno Haible  <bruno@clisp.org>
105807         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
105808         * modules/sysexits (Files, Makefile.am): Update.
105810         * lib/sys_socket_.h: Renamed from lib/socket_.h.
105811         * modules/sys_socket (Files, Makefile.am): Update.
105813         * lib/sys_stat_.h: Renamed from lib/stat_.h.
105814         * modules/sys_stat (Files, Makefile.am): Update.
105816 2007-04-27  Eric Blake  <ebb9@byu.net>
105818         * lib/freading.h: Improve comments.
105819         * lib/fwriting.h: Likewise.
105820         * lib/fflush.c: Likewise.
105822         Fix closein for mingw.
105823         * modules/closein-tests: Add tests for closein.
105824         * tests/test-closein.c: New file.
105825         * tests/test-closein.sh: Likewise.
105826         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
105827         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
105829 2007-04-27  Bruno Haible  <bruno@clisp.org>
105831         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
105832         version is < 6.
105833         * lib/math_.h [__DECC]: Likewise.
105834         * lib/stdio_.h [__DECC]: Likewise.
105835         * lib/stdlib_.h [__DECC]: Likewise.
105836         * lib/string_.h [__DECC]: Likewise.
105837         * lib/time_.h [__DECC]: Likewise.
105838         * lib/wchar_.h [__DECC]: Likewise.
105839         * lib/wctype_.h [__DECC]: Likewise.
105841 2007-04-27  Bruno Haible  <bruno@clisp.org>
105843         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
105845 2007-04-27  Bruno Haible  <bruno@clisp.org>
105847         * lib/fflush.c: Add comments.
105848         * modules/fpurge-tests (Depends-on): Add fflush.
105849         * modules/freadable-tests (Depends-on): Likewise.
105850         * modules/fwritable-tests (Depends-on): Likewise.
105852 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
105854         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
105855         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
105856         Report by Bruno Haible <bruno@clisp.org>.
105858 2007-04-26  Eric Blake  <ebb9@byu.net>
105860         Fix fflush on mingw.
105861         * modules/fflush (Depends-on): Add freading.
105862         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
105863         but unread data.
105865 2007-04-26  Eric Blake  <ebb9@byu.net>
105866         and Bruno Haible  <bruno@clisp.org>
105868         Implement freading and fwriting.
105869         * lib/freading.c: New file.
105870         * lib/freading.h: Likewise.
105871         * m4/freading.m4: Likewise.
105872         * modules/freading: Likewise.
105873         * modules/freading-tests: Likewise.
105874         * tests/test-freading.c: Likewise.
105875         * lib/fwriting.c: New file.
105876         * lib/fwriting.h: Likewise.
105877         * m4/fwriting.m4: Likewise.
105878         * modules/fwriting: Likewise.
105879         * modules/fwriting-tests: Likewise.
105880         * tests/test-fwriting.c: Likewise.
105881         * MODULES.html.sh (File stream based Input/Output): Mention them.
105883 2007-04-26  Bruno Haible  <bruno@clisp.org>
105885         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
105886         'long' when we assume it.
105887         Suggested by Eric Blake.
105889 2007-04-26  Bruno Haible  <bruno@clisp.org>
105891         Ensure fseeko, ftello are declared on glibc systems.
105892         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
105893         * modules/fseeko (configure.ac-early): Likewise.
105894         * modules/ftello (configure.ac-early): Likewise.
105895         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
105896         AC_FUNC_FSEEKO for this.
105897         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
105898         (gl_CHECK_FSEEKO): Remove macro.
105900 2007-04-26  Bruno Haible  <bruno@clisp.org>
105902         * tests/test-fflush.c (main): Also check the ftell result after
105903         fflush and fseek/fseeko.
105904         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
105905         file descriptor position cache in the stream.
105906         * lib/fseeko.c (rpl_fseeko): Likewise.
105908 2007-04-26  Bruno Haible  <bruno@clisp.org>
105910         * modules/fflush-tests (Depends-on): Add fseeko.
105912 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
105913             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105915         * lib/argz_.h: ensure error_t definition is obtained in same
105916         mechanism system argz.h would have.
105917         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
105918         argz facilities are known bad.  Err on the side of caution if
105919         cross-compiling.
105921 2007-04-25  Eric Blake  <ebb9@byu.net>
105923         * lib/fpurge.c (includes): Use stdlib.h for free.
105924         * tests/test-fflush.c (main): Also test fflush-fseeko.
105926 2007-04-25  Bruno Haible  <bruno@clisp.org>
105928         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
105929         * lib/fseeko.c: New file.
105930         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
105931         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
105932         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
105933         gl_FUNC_FSEEKO.
105934         (gl_FUNC_FSEEKO): Invoke it.
105935         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
105936         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
105937         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
105939 2007-04-25  Bruno Haible  <bruno@clisp.org>
105941         * modules/fflush (Depends-on): Add ftello.
105943 2007-04-25  Bruno Haible  <bruno@clisp.org>
105945         * modules/ftello-tests: New file.
105946         * tests/test-ftello.c: New file.
105948         * modules/ftello: New file.
105949         * m4/ftello.m4: New file.
105950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
105951         HAVE_FTELLO.
105952         * lib/stdio_.h (ftello): New declaration.
105953         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
105954         HAVE_FTELLO.
105956 2007-04-25  Bruno Haible  <bruno@clisp.org>
105958         * modules/fseeko-tests: New file.
105959         * tests/test-fseeko.c: New file.
105961         * modules/fseeko: New file.
105962         * m4/fseeko.m4: New file.
105963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
105964         HAVE_FSEEKO.
105965         * lib/stdio_.h (fseeko): New declaration.
105966         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
105967         HAVE_FSEEKO.
105969 2007-04-25  Bruno Haible  <bruno@clisp.org>
105971         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
105973 2007-04-25  Bruno Haible  <bruno@clisp.org>
105975         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
105976         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
105977         * tests/test-unistd.c: Likewise.
105978         * tests/test-fcntl.c: Likewise.
105980 2007-04-23  Eric Blake  <ebb9@byu.net>
105982         * lib/fflush.c: Fix missing include.
105983         Reported by Bruno Haible.
105985 2007-04-23  Bruno Haible  <bruno@clisp.org>
105987         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
105988         Reported by Eric Blake.
105990 2007-04-23  Bruno Haible  <bruno@clisp.org>
105992         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
105994 2007-04-23  Bruno Haible  <bruno@clisp.org>
105996         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
105998 2007-04-23  Bruno Haible  <bruno@clisp.org>
106000         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
106001         Needed on HP-UX 11.
106003 2007-04-16  Eric Blake  <ebb9@byu.net>
106005         Make fflush rely on fpurge.
106006         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
106007         open coding all variants.
106008         * modules/fflush (Depends-on): Add fpurge and unistd.
106009         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
106010         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
106012         Fix --with-tests compilation on cygwin.
106013         * modules/argmatch-tests (Makefile.am): List gnulib library first
106014         in LDADD.
106015         * modules/argp-tests (Makefile.am): Likewise.
106016         * modules/array-list-tests (Makefile.am): Likewise.
106017         * modules/array-oset-tests (Makefile.am): Likewise.
106018         * modules/avltree-list-tests (Makefile.am): Likewise.
106019         * modules/avltree-oset-tests (Makefile.am): Likewise.
106020         * modules/avltreehash-list-tests (Makefile.am): Likewise.
106021         * modules/carray-list-tests (Makefile.am): Likewise.
106022         * modules/dirname-tests (Makefile.am): Likewise.
106023         * modules/frexp-tests (Makefile.am): Likewise.
106024         * modules/isnanl-tests (Makefile.am): Likewise.
106025         * modules/linked-list-tests (Makefile.am): Likewise.
106026         * modules/linkedhash-list-tests (Makefile.am): Likewise.
106027         * modules/lock-tests (Makefile.am): Likewise.
106028         * modules/rbtree-list-tests (Makefile.am): Likewise.
106029         * modules/rbtree-oset-tests (Makefile.am): Likewise.
106030         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
106031         * modules/tls-tests (Makefile.am): Likewise.
106032         * modules/tsearch-tests (Makefile.am): Likewise.
106033         * modules/xvasprintf-tests (Makefile.am): Likewise.
106035         Fix fpurge for cygwin.
106036         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
106037         value.
106038         * modules/fpurge-tests (Depends-on): Clean up trash.
106040 2007-04-16  Simon Josefsson  <simon@josefsson.org>
106042         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
106044         * m4/autobuild.m4: Re-indent.
106046 2007-04-13  Bruno Haible  <bruno@clisp.org>
106048         * modules/fpurge-tests: New file.
106049         * tests/test-fpurge.c: New file.
106051         * modules/fpurge: New file.
106052         * lib/fpurge.h: New file.
106053         * lib/fpurge.c: New file.
106054         * m4/fpurge.m4: New file.
106056 2007-04-13  Bruno Haible  <bruno@clisp.org>
106058         * modules/fbufmode-tests: New file.
106059         * tests/test-fbufmode.c: New file.
106061         * modules/fbufmode: New file.
106062         * lib/fbufmode.h: New file.
106063         * lib/fbufmode.c: New file.
106064         * m4/fbufmode.m4: New file.
106066 2007-04-13  Bruno Haible  <bruno@clisp.org>
106068         * modules/fwritable-tests: New file.
106069         * tests/test-fwritable.c: New file.
106071         * modules/fwritable: New file.
106072         * lib/fwritable.h: New file.
106073         * lib/fwritable.c: New file.
106074         * m4/fwritable.m4: New file.
106076 2007-04-13  Bruno Haible  <bruno@clisp.org>
106078         * modules/freadable-tests: New file.
106079         * tests/test-freadable.c: New file.
106081         * modules/freadable: New file.
106082         * lib/freadable.h: New file.
106083         * lib/freadable.c: New file.
106084         * m4/freadable.m4: New file.
106086 2007-04-13  Bruno Haible  <bruno@clisp.org>
106088         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
106089         MOSTLYCLEANFILES.
106091 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
106093         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
106094         gzip bootstrap.conf to avoid dragging in i18n machinery.
106095         (gnulib_tool_option): Use it.
106097 2007-04-13  Bruno Haible  <bruno@clisp.org>
106099         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
106100         %F directives.
106101         * tests/test-vasprintf-posix.c (test_function): Likewise.
106102         * tests/test-snprintf-posix.h (test_function): Likewise.
106103         * tests/test-sprintf-posix.h (test_function): Likewise.
106104         * tests/test-fprintf-posix.h (test_function): Likewise.
106105         * tests/test-printf-posix.h (test_function): Likewise.
106106         * tests/test-fprintf-posix.out: Likewise.
106108 2007-04-13  Bruno Haible  <bruno@clisp.org>
106110         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
106111         * modules/tls-tests (configure.ac): Likewise.
106112         Reported by Arto C. Nirkko <anirkko@insel.ch>.
106114 2007-04-13  Bruno Haible  <bruno@clisp.org>
106116         * lib/tls.c (glthread_tls_get): Fix return type.
106117         Patch by Arto C. Nirkko <anirkko@insel.ch>.
106119 2007-04-12  Eric Blake  <ebb9@byu.net>
106121         * modules/gettime (Depends-on): Remove gettime.
106122         Reported by Dmitry V. Levin.
106124 2007-04-12  Bruno Haible  <bruno@clisp.org>
106126         * modules/fflush (Include): Mention <stdio.h>.
106127         * modules/strtoimax (Include): Mention <inttypes.h>.
106128         * modules/strtoumax (Include): Likewise.
106130 2007-04-12  Eric Blake  <ebb9@byu.net>
106132         * .cvsignore: New file.
106133         * .gitignore: Likewise.
106135 2007-04-12  Bruno Haible  <bruno@clisp.org>
106137         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
106138         not before, since $(LDADD) often contains libgnu.a.
106139         * modules/striconv-tests (test_striconv_LDADD): Likewise.
106140         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
106141         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
106142         Needed on Cygwin.
106144 2007-04-12  Eric Blake  <ebb9@byu.net>
106146         Work around glibc's failure to flush stdin on fclose.
106147         * lib/closein.c (close_stdin): Flush stdin before closing.
106149         Work around glibc's failure to reset seekable stdin on exit.
106150         * modules/closein: New module.
106151         * lib/closein.c: New file.
106152         * lib/closein.h: Likewise.
106153         * m4/closein.m4: Likewise.
106154         * MODULES.html.sh (File stream based Input/Output): Document it.
106156 2007-04-12  Simon Josefsson  <simon@josefsson.org>
106158         * gnulib-tool: Rename generated 'autobuild' script to
106159         'do-autobuild' in --create-megatestdir output.
106161         * doc/gnulib.texi (Build robot for gnulib): Fix.
106163 2007-04-12  Simon Josefsson  <simon@josefsson.org>
106165         * modules/sysexits (Depends-on): Add absolute-header.
106167 2007-04-12  Eric Blake  <ebb9@byu.net>
106169         No need to preserve errno on success.
106170         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
106171         Reported by Bruno Haible.
106173 2007-04-12  Simon Josefsson  <simon@josefsson.org>
106175         * MODULES.html.sh (Support for maintaining and releasing
106176         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
106178 2007-04-12  Simon Josefsson  <simon@josefsson.org>
106180         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
106182 2007-04-12  Simon Josefsson  <simon@josefsson.org>
106184         * modules/autobuild: New module.
106186         * m4/autobuild.m4: New file.
106188 2007-04-11  Bruno Haible  <bruno@clisp.org>
106190         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
106191         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
106192         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
106193         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
106194         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
106195         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106196         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106197         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
106198         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106199         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106200         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
106201         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106202         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106203         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
106204         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106205         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106206         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
106207         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106208         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106209         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
106210         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106211         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106212         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
106213         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106214         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106215         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
106216         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
106217         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
106218         Reported by Eric Blake.
106220 2007-04-11  Bruno Haible  <bruno@clisp.org>
106222         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
106224 2007-04-10  Bruno Haible  <bruno@clisp.org>
106226         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
106227         for NaN and Infinity. Needed on FreeBSD 6.1.
106228         * tests/test-vasnprintf-posix.c (test_function): Undo last change
106229         regarding results for "%010a" of Infinity and NaN.
106230         * tests/test-vasprintf-posix.c (test_function): Likewise.
106231         * tests/test-snprintf-posix.h (test_function): Likewise.
106232         * tests/test-sprintf-posix.h (test_function): Likewise.
106233         * tests/test-fprintf-posix.h (test_function): Likewise.
106234         * tests/test-printf-posix.h (test_function): Likewise.
106235         * tests/test-fprintf-posix.out: Likewise.
106237 2007-04-10  Bruno Haible  <bruno@clisp.org>
106239         * modules/locale-tests: New file.
106240         * tests/test-locale.c: New file.
106242         * modules/locale: New file.
106243         * lib/locale_.h: New file.
106244         * m4/locale_h.m4: New file.
106246 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
106247             Bruno Haible  <bruno@clisp.org>
106249         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
106250         be determined, test for availability of the copysignf, copysign,
106251         copysignl functions.
106252         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
106253         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
106254         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
106256 2007-04-09  Eric Blake  <ebb9@byu.net>
106258         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
106259         * modules/stdio (Makefile.am): Support fflush.
106260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
106261         * modules/fflush: New file.
106262         * lib/fflush.c: Likewise.
106263         * m4/fflush.m4: Likewise.
106264         * modules/fflush-tests: New test.
106265         * tests/test-fflush.c: Likewise.
106266         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
106268 2007-04-06  Bruno Haible  <bruno@clisp.org>
106270         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
106271         (VASNPRINTF): Use signbit for faster determination whether to print a
106272         minus sign.
106273         * modules/vasnprintf (Files): Remove lib/float+.h.
106274         * modules/fprintf-posix (Depends-on): Add signbit.
106275         * modules/snprintf-posix (Depends-on): Likewise.
106276         * modules/sprintf-posix (Depends-on): Likewise.
106277         * modules/vasnprintf-posix (Depends-on): Likewise.
106278         * modules/vasprintf-posix (Depends-on): Likewise.
106279         * modules/vfprintf-posix (Depends-on): Likewise.
106280         * modules/vsnprintf-posix (Depends-on): Likewise.
106281         * modules/vsprintf-posix (Depends-on): Likewise.
106283 2007-04-06  Bruno Haible  <bruno@clisp.org>
106285         * tests/test-frexp.c (main): Test also the sign bit of zero results.
106286         * tests/test-frexpl.c (main): Likewise.
106287         * tests/test-ldexpl.c (main): Likewise.
106288         * modules/frexp-tests (Depends-on): Add signbit.
106289         * modules/frexpl-tests (Depdends-on): Likewise.
106290         * modules/ldexpl-tests (Depdends-on): Likewise.
106292 2007-04-06  Bruno Haible  <bruno@clisp.org>
106294         * modules/signbit-tests: New file.
106295         * tests/test-signbit.c: New file.
106297         * modules/signbit: New file.
106298         * lib/signbitf.c: New file.
106299         * lib/signbitd.c: New file.
106300         * lib/signbitl.c: New file.
106301         * m4/signbit.m4: New file.
106302         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
106303         (signbit): New macro.
106304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
106305         REPLACE_SIGNBIT.
106306         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
106307         REPLACE_FREXPL into math.h.
106309 2007-04-06  Bruno Haible  <bruno@clisp.org>
106311         * modules/isnanf-nolibm-tests: New file.
106312         * tests/test-isnanf.c: New file.
106314         * modules/isnanf-nolibm: New file.
106315         * lib/isnanf.h: New file.
106316         * lib/isnanf.c: New file.
106317         * lib/isnan.c: Consider the USE_FLOAT macro.
106318         * m4/isnanf.m4: New file.
106320 2007-04-06  Bruno Haible  <bruno@clisp.org>
106322         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
106323         (Link): New section.
106325         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
106327 2007-04-06  Bruno Haible  <bruno@clisp.org>
106329         Assume the 'long double' type.
106330         * m4/longdouble.m4: Remove file.
106331         * config/srclist.txt: Don't mention longdouble.m4.
106332         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
106333         * lib/float+.h: Likewise.
106334         * lib/frexp.c: Likewise.
106335         * lib/printf-args.h: Likewise.
106336         * lib/printf-args.c: Likewise.
106337         * lib/printf-frexp.c: Likewise.
106338         * lib/printf-parse.c: Likewise.
106339         * lib/vasnprintf.c: Likewise.
106340         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
106341         * m4/intl.m4: Likewise.
106342         * m4/isnanl.m4: Likewise.
106343         * m4/printf.m4: Likewise.
106344         * m4/printf-frexpl.m4: Likewise.
106345         * m4/vasnprintf.m4: Likewise.
106346         * modules/allocsa (Files): Remove m4/longdouble.m4.
106347         * modules/gettext (Files): Likewise.
106348         * modules/relocatable-prog-wrapper (Files): Likewise.
106349         * modules/vasnprintf (Files): Likewise.
106350         * modules/isnanl (Files): Likewise.
106351         (Include): Simplify.
106352         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
106353         (Include): Simplify.
106354         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
106355         (Include): Simplify.
106356         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
106357         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106358         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
106359         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106360         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
106361         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106362         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
106363         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106364         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
106365         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106366         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
106367         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
106368         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
106369         * tests/test-isnanl.c: Likewise.
106370         * tests/test-snprintf-posix.h: Likewise.
106371         * tests/test-sprintf-posix.h: Likewise.
106372         * tests/test-vasnprintf-posix.c: Likewise.
106373         * tests/test-vasnprintf-posix2.c: Likewise.
106374         * tests/test-vasprintf-posix.c: Likewise.
106376 2007-04-06  Bruno Haible  <bruno@clisp.org>
106378         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
106379         * lib/math_.h [__DECC]: Include the overridden include file through
106380         #include_next, outside the double-inclusion guard.
106381         * lib/stdio_.h [__DECC]: Likewise.
106382         * lib/stdlib_.h [__DECC]: Likewise.
106383         * lib/string_.h [__DECC]: Likewise.
106384         * lib/time_.h [__DECC]: Likewise.
106385         * lib/wchar_.h [__DECC]: Likewise.
106386         * lib/wctype_.h [__DECC]: Likewise.
106387         * lib/inttypes_.h [__DECC]: Likewise.
106388         Reported by Albert Chin <china@thewrittenword.com> in
106389         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
106391 2007-04-04  Eric Blake  <ebb9@byu.net>
106393         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
106394         1.5.x.
106396 2007-04-04  Bruno Haible  <bruno@clisp.org>
106398         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
106399         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
106401 2007-04-04  Bruno Haible  <bruno@clisp.org>
106403         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
106404         results for "%010a" of Infinity and NaN.
106405         * tests/test-vasprintf-posix.c (test_function): Likewise.
106406         * tests/test-snprintf-posix.h (test_function): Likewise.
106407         * tests/test-sprintf-posix.h (test_function): Likewise.
106408         * tests/test-fprintf-posix.h (test_function): Remove these tests.
106409         * tests/test-printf-posix.h (test_function): Likewise.
106410         * tests/test-fprintf-posix.out: Update.
106411         Needed for FreeBSD 6.1.
106413 2007-04-04  Bruno Haible  <bruno@clisp.org>
106415         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
106416         directly used by the gnulib modules nor by gnulib-tool.
106418 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106420         * DEPENDENCIES: Give overall description of version dependency
106421         desirability.  Use more-typical names for apps.
106422         Add shell, coreutils, diffutils, grep, tar, gzip.
106424 2007-04-04  Simon Josefsson  <simon@josefsson.org>
106426         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
106428 2007-04-04  Karl Berry  <karl@gnu.org>
106430         * MODULES.html.sh (func_module): missing '.
106432 2007-04-03  Bruno Haible  <bruno@clisp.org>
106434         * modules/argmatch-tests (Makefile.am): New variable
106435         test_argmatch_LDADD.
106436         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
106437         * modules/array-list-tests (Makefile.am): New variable
106438         test_array_list_LDADD.
106439         * modules/array-oset-tests (Makefile.am): New variable
106440         test_array_oset_LDADD.
106441         * modules/avltree-list-tests (Makefile.am): New variable
106442         test_avltree_list_LDADD.
106443         * modules/avltree-oset-tests (Makefile.am): New variable
106444         test_avltree_oset_LDADD.
106445         * modules/avltreehash-list-tests (Makefile.am): New variable
106446         test_avltreehash_list_LDADD.
106447         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
106448         test_canonicalize_lgpl_LDADD.
106449         * modules/carray-list-tests (Makefile.am): New variable
106450         test_carray_list_LDADD.
106451         * modules/dirname-tests (Makefile.am): New variable
106452         test_dirname_LDADD.
106453         * modules/linked-list-tests (Makefile.am): New variable
106454         test_linked_list_LDADD.
106455         * modules/linkedhash-list-tests (Makefile.am): New variable
106456         test_linkedhash_list_LDADD.
106457         * modules/rbtree-list-tests (Makefile.am): New variable
106458         test_rbtree_list_LDADD.
106459         * modules/rbtree-oset-tests (Makefile.am): New variable
106460         test_rbtree_oset_LDADD.
106461         * modules/rbtreehash-list-tests (Makefile.am): New variable
106462         test_rbtreehash_list_LDADD.
106463         * modules/xvasprintf-tests (Makefile.am): New variable
106464         test_xvasprintf_LDADD.
106465         Reported by Eric Blake.
106467 2007-04-03  Eric Blake  <ebb9@byu.net>
106469         * DEPENDENCIES: Weaken m4 requirements.
106471 2007-04-03  Bruno Haible  <bruno@clisp.org>
106473         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
106474         * modules/isnanl-tests (configure.ac): Likewise.
106476 2007-04-03  Ben Pfaff  <blp@gnu.org>
106478         * modules/iconv_open: Add $(srcdir)/ to source directory
106479         references in Makefile fragments that call gperf, to fix VPATH
106480         builds.
106482 2007-04-03  Bruno Haible  <bruno@clisp.org>
106484         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
106485         * lib/ldexpl.c: Undo last change.
106487 2007-04-03  Bruno Haible  <bruno@clisp.org>
106489         * modules/printf-frexpl (Depends-on): Undo last change.
106490         (Files): Add m4/ldexpl.m4.
106492 2007-04-03  Bruno Haible  <bruno@clisp.org>
106494         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
106495         * modules/isnanl (Link): New section.
106497         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
106498         * modules/frexp (Link): New section.
106500         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
106501         * modules/frexpl (Link): New section.
106503         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
106504         * modules/ldexpl (Link): New section.
106506 2007-04-03  Bruno Haible  <bruno@clisp.org>
106508         * modules/TEMPLATE-EXTENDED: New file.
106509         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
106511 2007-04-03  Bruno Haible  <bruno@clisp.org>
106513         * DEPENDENCIES: New file.
106514         Suggested by Simon Josefsson.
106516 2007-04-03  Bruno Haible  <bruno@clisp.org>
106518         * doc/gnulib.texi: Escape @.
106520 2007-04-03  James Youngman  <jay@gnu.org>
106521         and Paul Eggert  <eggert@cs.ucla.edu>
106523         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
106524         birthtime on all systems that have birthtime, not just those which
106525         use st_birthtimensec rather than st_birthtim.  Putting zero in
106526         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
106527         that the birth time is not available for files on an NFS mount.
106529 2007-04-03  Simon Josefsson  <simon@josefsson.org>
106531         * modules/memxor: Move back from crypto/, suggested by Bruno.
106532         * modules/crypto/hmac-sha1: Fix memxor dependency.
106534         * modules/crypto/gc: Moved from ../.
106536 2007-04-02  Eric Blake  <ebb9@byu.net>
106538         * lib/ldexpl.c (includes): Avoid libm.
106540         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
106542 2007-04-02  Bruno Haible  <bruno@clisp.org>
106544         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
106545         on IRIX.
106547 2007-04-02  Bruno Haible  <bruno@clisp.org>
106549         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
106550         x86 or x86_64 platforms running MacOS X.
106551         Reported by Ryan Schmidt <@ryandesign.com>.
106553 2007-04-02  Bruno Haible  <bruno@clisp.org>
106555         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
106556         i386.
106558 2007-04-01  Simon Josefsson  <simon@josefsson.org>
106560         * modules/crypto/arcfour: Moved from ../.
106561         * modules/crypto/arcfour-tests: Moved from ../.
106562         * modules/crypto/arctwo: Moved from ../.
106563         * modules/crypto/arctwo-tests: Moved from ../.
106564         * modules/crypto/des: Moved from ../.
106565         * modules/crypto/des-tests: Moved from ../.
106566         * modules/crypto/gc-arcfour: Moved from ../.
106567         * modules/crypto/gc-arcfour-tests: Moved from ../.
106568         * modules/crypto/gc-arctwo: Moved from ../.
106569         * modules/crypto/gc-arctwo-tests: Moved from ../.
106570         * modules/crypto/gc-des: Moved from ../.
106571         * modules/crypto/gc-des-tests: Moved from ../.
106572         * modules/crypto/gc-hmac-md5: Moved from ../.
106573         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
106574         * modules/crypto/gc-hmac-sha1: Moved from ../.
106575         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
106576         * modules/crypto/gc-md2: Moved from ../.
106577         * modules/crypto/gc-md2-tests: Moved from ../.
106578         * modules/crypto/gc-md4: Moved from ../.
106579         * modules/crypto/gc-md4-tests: Moved from ../.
106580         * modules/crypto/gc-md5: Moved from ../.
106581         * modules/crypto/gc-md5-tests: Moved from ../.
106582         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
106583         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
106584         * modules/crypto/gc-random: Moved from ../.
106585         * modules/crypto/gc-rijndael: Moved from ../.
106586         * modules/crypto/gc-rijndael-tests: Moved from ../.
106587         * modules/crypto/gc-sha1: Moved from ../.
106588         * modules/crypto/gc-sha1-tests: Moved from ../.
106589         * modules/crypto/gc-tests: Moved from ../.
106590         * modules/crypto/hmac-md5: Moved from ../.
106591         * modules/crypto/hmac-md5-tests: Moved from ../.
106592         * modules/crypto/hmac-sha1: Moved from ../.
106593         * modules/crypto/hmac-sha1-tests: Moved from ../.
106594         * modules/crypto/md2: Moved from ../.
106595         * modules/crypto/md2-tests: Moved from ../.
106596         * modules/crypto/md4: Moved from ../.
106597         * modules/crypto/md4-tests: Moved from ../.
106598         * modules/crypto/md5: Moved from ../.
106599         * modules/crypto/md5-tests: Moved from ../.
106600         * modules/crypto/memxor: Moved from ../.
106601         * modules/crypto/rijndael: Moved from ../.
106602         * modules/crypto/rijndael-tests: Moved from ../.
106603         * modules/crypto/sha1: Moved from ../.
106605 2007-03-30  James Youngman  <jay@gnu.org>
106607         * tests/test-stat-time.c (prepare_test): use chmod() rather than
106608         rename() to change the ctime of a file (because ctime is unaffected
106609         by rename on jfs2 on AIX 5.1).
106610         (main): Start by doing cleanup, in case a previous run failed leaving
106611         test files behind.
106613 2007-03-31  Bruno Haible  <bruno@clisp.org>
106615         Support old proprietary implementations of iconv.
106616         * modules/iconv_open: New file.
106617         * lib/iconv_.h: New file.
106618         * m4/iconv_h.m4: New file.
106619         * lib/iconv_open.c: New file.
106620         * lib/iconv_open-aix.gperf: New file.
106621         * lib/iconv_open-hpux.gperf: New file.
106622         * lib/iconv_open-irix.gperf: New file.
106623         * lib/iconv_open-osf.gperf: New file.
106624         * m4/iconv_open.m4: New file.
106625         * modules/linebreak (Depends-on): Add iconv_open.
106626         * modules/striconv (Depends-on): Likewise.
106627         * modules/striconveh (Depends-on): Likewise.
106628         * modules/unicodeio (Depends-on): Likewise.
106629         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
106630         (iconv_t)(-1).
106631         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
106632         conversion if cd is (iconv_t)(-1).
106633         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
106634         is not possible.
106636 2007-03-31  Bruno Haible  <bruno@clisp.org>
106638         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
106639         work on Solaris either. Protect also second use of "autodetect_jp".
106641 2007-03-31  Bruno Haible  <bruno@clisp.org>
106643         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
106644         the function is not present.
106646 2007-03-31  Bruno Haible  <bruno@clisp.org>
106648         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
106649         the function is not present.
106651 2007-03-31  Bruno Haible  <bruno@clisp.org>
106653         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
106654         a bug in HP-UX iconv_open().
106656 2007-03-31  Bruno Haible  <bruno@clisp.org>
106658         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
106659         (Mathematics <math.h>): New section, add fpieee.
106660         (Input/output <stdio.h>): Add fseterr.
106661         (Mathematics <math.h>): New section, add printf-frexp.
106662         (Container data structures): Add sublist.
106663         (Core language properties): Add fpucw, inline.
106664         (Functions for greatest-width integer types <inttypes.h>): Add
106665         imaxabs, imaxdiv, inttypes.
106666         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
106667         isnanl-nolibm, ldexp.
106668         (Mathematics <math.h>): New section, add printf-frexpl.
106669         (Support for systems lacking POSIX:2001): Add fprintf-posix,
106670         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
106671         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
106672         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
106673         (Unicode string functions): Add unistr/u*-mbtoucr.
106674         (Java): Add javacomp-script, javaexec-script.
106675         (C#): Add csharpcomp-script, csharpexec-script.
106676         (Support for building libraries and executables): Add havelib,
106677         relocatable-*.
106678         (Support for maintaining and releasing projects): Renamed from
106679         'Support for maintaining and release projects'. Add announce-gen.
106681 2007-03-31  Bruno Haible  <bruno@clisp.org>
106683         * README: Talk primarily about git.
106684         (git and CVS): Renamed from CVS.
106685         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
106686         gnulib is available through git.
106687         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
106689 2007-03-30  Bruno Haible  <bruno@clisp.org>
106691         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
106692         * lib/poll_.h: Likewise.
106693         * lib/stat_.h: Likewise.
106694         * lib/sys_time_.h: Likewise.
106695         * lib/sysexit_.h: Likewise.
106696         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
106697         * lib/stdbool_.h: Likewise.
106698         * lib/byteswap_.h: Add double-inclusion guard.
106700 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
106702         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
106704 2007-03-30  Karl Berry  <karl@gnu.org>
106706         * config/srclist-update: double space after USA in the license
106707         substitution, since that's how it's usually (?) written.
106709 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
106711         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
106712         reported by Bruno Haible.
106714 2007-03-29  Bruno Haible  <bruno@clisp.org>
106716         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
106717         a bug in AIX iconv().
106719 2007-03-29  Bruno Haible  <bruno@clisp.org>
106721         * modules/ldexpl-tests: New file.
106722         * tests/test-ldexpl.c: New file.
106724 2007-03-29  Bruno Haible  <bruno@clisp.org>
106726         * lib/ldexpl.c: Include fpucw.h.
106727         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
106728         multiplication.
106729         * modules/ldexpl (Depends-on): Add fpucw.
106731 2007-03-29  Bruno Haible  <bruno@clisp.org>
106733         * modules/ldexpl: New file.
106734         * m4/ldexpl.m4: New file.
106735         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
106736         set.
106737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
106738         REPLACE_LDEXPL.
106739         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
106740         REPLACE_LDEXPL.
106741         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
106742         gl_FUNC_LDEXPL_WORKS.
106743         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
106744         * modules/mathl (Files): Remove lib/ldexpl.c.
106745         (Depends-on): Add ldexpl.
106747 2007-03-29  Bruno Haible  <bruno@clisp.org>
106749         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
106751 2007-03-29  Bruno Haible  <bruno@clisp.org>
106753         * tests/test-striconveh.c (main): Don't assume that a direct conversion
106754         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
106755         and possibly also HP-UX.
106756         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
106757         work on AIX, IRIX, HP-UX, OSF/1.
106758         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
106759         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
106760         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
106761         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
106762         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
106763         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
106765 2007-03-29  Bruno Haible  <bruno@clisp.org>
106767         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
106769 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106771         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
106772         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
106774 2007-03-29  Eric Blake  <ebb9@byu.net>
106776         * lib/acl-internal.h: Remove redundant include.
106777         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
106778         Cygwin when a file is locked.
106780 2007-03-29  Bruno Haible  <bruno@clisp.org>
106782         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
106783         file.
106784         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
106786 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106788         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
106789         try to remove a parent directory if the child couldn't be removed
106790         (except for the first rmdir, which could fail because the child
106791         doesn't exist).  Problem reported by Jeff Blaine in
106792         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
106794 2007-03-28  Bruno Haible  <bruno@clisp.org>
106796         * lib/striconveh.c (utf8conv_carefully): New function.
106797         (mem_cd_iconveh_internal): Invoke it.
106799 2007-03-28  Bruno Haible  <bruno@clisp.org>
106801         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
106802         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
106803         input.
106804         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
106805         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
106806         unistr/u8-uctomb.
106808 2007-03-28  Bruno Haible  <bruno@clisp.org>
106810         * modules/unistr/u8-mbtoucr: New file.
106811         * lib/unistr/u8-mbtoucr.c: New file.
106812         * modules/unistr/u16-mbtoucr: New file.
106813         * lib/unistr/u16-mbtoucr.c: New file.
106814         * modules/unistr/u16-mbtoucr: New file.
106815         * lib/unistr/u16-mbtoucr.c: New file.
106816         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
106818 2007-03-27  Simon Josefsson  <simon@josefsson.org>
106819             Bruno Haible  <bruno@clisp.org>
106821         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
106822         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
106823         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
106825         * m4/stdio_h.m4: Add stubs for vasprintf too.
106827         * modules/stdio: Support vasprintf in sed command.
106829         * modules/vasprintf: Depend on stdio for prototypes.  Remove
106830         vasprintf.h.  Add stdio module indicator.
106832         * lib/stdio_.h: Declare asprintf and vasprintf, based on
106833         vasprintf.h.
106835         * lib/vasprintf.h: File removed.
106837         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
106838         * lib/vasprintf.c: Ditto.
106839         * lib/xvasprintf.c: Ditto.
106840         * tests/test-vasprintf-posix.c: Ditto.
106841         * tests/test-vasprintf.c: Ditto.
106843 2007-03-27  Bruno Haible  <bruno@clisp.org>
106845         Make vasnprintf multithread-safe.
106846         * lib/vasnprintf.c (decimal_point_char): New function.
106847         (VASNPRINTF): Use it.
106848         Suggested by Simon Josefsson.
106850 2007-03-27  Eric Blake  <ebb9@byu.net>
106852         Support sub-second birthtime on cygwin.
106853         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
106854         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
106855         (get_stat_birthtime): Also work with st_birthtim.
106857 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
106859         * lib/stat-time.h (USE_BIRTHTIME): Remove.
106860         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
106861         (get_stat_birthtime_ns): Do not try to use "spare" fields.
106862         (get_stat_birthtime_ns): Simplify compile-time tests.
106863         (get_stat_birthtime): Change the API to look like
106864         get_stat_mtime etc., except return a negative tv_nsec on error.
106865         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
106866         Don't check for "spare" fields.
106867         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
106868         or for struct stat.st_birthtime, as these tests aren't used.
106869         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
106871 2007-03-27  Bruno Haible  <bruno@clisp.org>
106873         * lib/stat-time.h: Include <sys/stat.h>.
106875 2007-03-27  James Youngman  <jay@gnu.org>
106877         * lib/stat-time.h (get_stat_birthtime): New function for
106878           retrieving st_birthtime as provided by UFS2 (hence *BSD).
106879         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
106880           and its variants.
106881         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
106882         * modules/stat-time-test: New file.
106883         * tests/test-stat-time.c: New test, devised by Bruno Haible.
106885 2007-03-26  Bruno Haible  <bruno@clisp.org>
106887         Better support of signalling NaNs.
106888         * lib/atanl.c: Include isnanl.h.
106889         (atanl): Perform test for NaN at the beginning of the function and
106890         through a call to isnanl.
106891         * lib/cosl.c: Include isnanl.h.
106892         (cosl): Perform test for NaN at the beginning of the function and
106893         through a call to isnanl.
106894         * lib/ldexpl.c: Include isnanl.h.
106895         (ldexpl): Perform test for NaN through a call to isnanl.
106896         * lib/logl.c: Include isnanl.h.
106897         (logl): Perform test for NaN at the beginning of the function and
106898         through a call to isnanl.
106899         * lib/sinl.c: Include isnanl.h.
106900         (sinl): Perform test for NaN at the beginning of the function and
106901         through a call to isnanl.
106902         * lib/sqrtl.c: Include isnanl.h.
106903         (sqrtl): Perform test for NaN at the beginning of the function and
106904         through a call to isnanl.
106905         * lib/tanl.c: Include isnanl.h.
106906         (tanl): Perform test for NaN at the beginning of the function and
106907         through a call to isnanl.
106908         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
106909         * modules/mathl (Depends-on): Add isnanl.
106911 2007-03-26  Eric Blake  <ebb9@byu.net>
106913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
106914         regression in logic sense of previous patch.
106916 2007-03-26  Bruno Haible  <bruno@clisp.org>
106918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
106919         unportable shell command "if ! ...".
106920         Reported by Ralf Wildenhues.
106922 2007-03-25  Bruno Haible  <bruno@clisp.org>
106924         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
106925         <sysexits.h> file, and only add EX_CONFIG.
106926         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
106927         absolute file name and whether it is sufficient. Substitute also
106928         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
106929         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
106930         ABSOLUTE_SYSEXITS_H into sysexits.h.
106932 2007-03-25  Bruno Haible  <bruno@clisp.org>
106934         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
106935         hints is NULL.
106937 2007-03-25  Bruno Haible  <bruno@clisp.org>
106939         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
106940         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
106942 2007-03-25  Bruno Haible  <bruno@clisp.org>
106944         * lib/vasnprintf.c: Include langinfo.h.
106945         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
106946         multithread-safe.
106947         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
106948         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
106949         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
106950         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106951         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106952         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106953         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
106954         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
106955         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106956         Reported by Simon Josefsson.
106958 2007-03-25  Bruno Haible  <bruno@clisp.org>
106960         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
106961         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
106962         * modules/vasnprintf (Depends-on): Add stdint.
106964 2007-03-25  Bruno Haible  <bruno@clisp.org>
106966         * modules/fpieee: New file.
106967         * m4/fpieee.m4: New file.
106968         * modules/isnan-nolibm (Depends-on): Add fpieee.
106969         * modules/isnanl-nolibm (Depends-on): Add fpieee.
106970         * modules/isnanl (Depends-on): Add fpieee.
106972 2007-03-25  Bruno Haible  <bruno@clisp.org>
106974         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
106976 2007-03-25  Bruno Haible  <bruno@clisp.org>
106978         Avoid test failures on IRIX 6.5.
106979         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
106980         (main): Use it.
106981         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
106982         macros.
106983         (main): Use them.
106985 2007-03-25  Bruno Haible  <bruno@clisp.org>
106987         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
106988         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
106989         exists but doesn't work.
106990         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
106991         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
106992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
106993         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
106994         math.h.
106996 2007-03-25  Bruno Haible  <bruno@clisp.org>
106998         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
106999         returns inf. Needed on IRIX 6.5.
107001 2007-03-25  Bruno Haible  <bruno@clisp.org>
107003         * tests/test-frexpl.c: Include isnanl-nolibm.h.
107004         (main): Use isnanl instead of x != x idiom.
107005         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
107007         * tests/test-frexp.c: Include isnan.h.
107008         (main): Use isnan instead of x != x idiom.
107009         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
107011 2007-03-25  Bruno Haible  <bruno@clisp.org>
107013         * tests/test-frexp.c (NaN): New function/macro.
107014         (main): Use it instead of 0.0 / 0.0.
107015         * tests/test-isnan.c (NaN): New function/macro.
107016         (main): Use it instead of 0.0 / 0.0.
107017         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
107018         (test_function): Use it instead of 0.0 / 0.0.
107019         * tests/test-vasprintf-posix.c (NaN): New function/macro.
107020         (test_function): Use it instead of 0.0 / 0.0.
107021         * tests/test-snprintf-posix.h (NaN): New function/macro.
107022         (test_function): Use it instead of 0.0 / 0.0.
107023         * tests/test-sprintf-posix.h (NaN): New function/macro.
107024         (test_function): Use it instead of 0.0 / 0.0.
107025         * tests/test-fprintf-posix.h (NaN): New function/macro.
107026         (test_function): Use it instead of 0.0 / 0.0.
107027         * tests/test-printf-posix.h (NaN): New function/macro.
107028         (test_function): Use it instead of 0.0 / 0.0.
107030         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
107032 2007-03-25  Bruno Haible  <bruno@clisp.org>
107034         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
107036 2007-03-25  Bruno Haible  <bruno@clisp.org>
107038         * lib/regexec.c (merge_state_with_log): Make static.
107040 2007-03-25  Bruno Haible  <bruno@clisp.org>
107042         * lib/trigl.c (kernel_rem_pio2): Make static.
107044 2007-03-25  Bruno Haible  <bruno@clisp.org>
107046         * lib/sincosl.c (sincosl_table): Make static.
107048 2007-03-25  Bruno Haible  <bruno@clisp.org>
107050         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
107051         if the compiler does not support C99.
107053 2007-03-25  Bruno Haible  <bruno@clisp.org>
107055         * modules/time (Makefile.am): Ensure all rule action lines start with a
107056         tab.
107058 2007-03-24  Bruno Haible  <bruno@clisp.org>
107060         * modules/tsearch-tests: New file.
107061         * tests/test-tsearch.sh: New file.
107062         * tests/test-tsearch.c: New file, mostly copied from glibc.
107064         * modules/search-tests: New file.
107065         * tests/test-search.c: New file.
107067         * modules/search: New file.
107068         * lib/search_.h: New file, incorporating lib/tsearch.h.
107069         * m4/search_h.m4: New file.
107070         * lib/tsearch.h: Remove file.
107071         * lib/tsearch.c: Include search.h instead of tsearch.h.
107072         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
107073         HAVE_TSEARCH.
107074         * modules/tsearch (Files): Remove lib/tsearch.h.
107075         (Depends-on): Add search.
107076         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
107077         (Include): Change tsearch.h into search.h.
107079 2007-03-24  Bruno Haible  <bruno@clisp.org>
107081         * modules/fpucw: New file.
107082         * lib/fpucw.h: New file.
107083         * lib/frexp.c: Include fpucw.h.
107084         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
107085         (FUNC): Use them.
107086         * lib/printf-frexp.c: Include fpucw.h.
107087         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
107088         (FUNC): Use them.
107089         * lib/vasnprintf.c: Include fpucw.h.
107090         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
107091         'long double' calculations.
107092         * tests/test-frexpl.c: Include fpucw.h.
107093         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
107094         * tests/test-printf-frexpl.c: Include fpucw.h.
107095         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
107096         * modules/frexpl (Depends-on): Add fpucw.
107097         * modules/printf-frexpl (Depends-on): Likewise.
107098         * modules/fprintf-posix (Depends-on): Likewise.
107099         * modules/snprintf-posix (Depends-on): Likewise.
107100         * modules/sprintf-posix (Depends-on): Likewise.
107101         * modules/vasnprintf-posix (Depends-on): Likewise.
107102         * modules/vasprintf-posix (Depends-on): Likewise.
107103         * modules/vfprintf-posix (Depends-on): Likewise.
107104         * modules/vsnprintf-posix (Depends-on): Likewise.
107105         * modules/vsprintf-posix (Depends-on): Likewise.
107106         * modules/frexpl-tests (Depends-on): Likewise.
107107         * modules/printf-frexpl-tests (Depends-on): Likewise.
107109 2007-03-24  Bruno Haible  <bruno@clisp.org>
107111         * lib/float+.h: New file.
107112         * lib/isnan.c: Include float+.h.
107113         (SIZE): New macro.
107114         (FUNC): Compare only SIZE bytes of the value.
107115         * lib/vasnprintf.c: Include float+.h.
107116         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
107117         SIZEOF_LDBL or SIZEOF_DBL bytes.
107118         * modules/isnan-nolibm (Files): Add lib/float+.h.
107119         * modules/isnanl-nolibm (Files): Add lib/float+.h.
107120         * modules/isnanl (Files): Add lib/float+.h.
107121         * modules/vasnprintf (Files): Add lib/float+.h.
107123 2007-03-24  Bruno Haible  <bruno@clisp.org>
107125         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
107126         include isnanl-nolibm.h.
107128 2007-03-24  Bruno Haible  <bruno@clisp.org>
107130         * tests/test-read-file.c (main): Don't produce spurious output for
107131         expected situations. Make the test fail if it encountered unexpected
107132         results.
107134 2007-03-24  Bruno Haible  <bruno@clisp.org>
107136         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
107137         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
107139 2007-03-24  Bruno Haible  <bruno@clisp.org>
107141         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
107143 2007-03-24  Bruno Haible  <bruno@clisp.org>
107145         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
107146         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
107148         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
107149         * modules/utf8-ucs4: Turn into a symbolic link to module
107150         unistr/u8-mbtouc.
107152         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
107153         utf8-ucs4-unsafe.
107154         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
107155         unistr/u8-mbtouc-unsafe.
107157         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
107158         * modules/utf16-ucs4: Turn into a symbolic link to module
107159         unistr/u16-mbtouc.
107161         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
107162         utf16-ucs4-unsafe.
107163         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
107164         unistr/u16-mbtouc-unsafe.
107166         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
107167         * modules/ucs4-utf8: Turn into a symbolic link to module
107168         unistr/u8-ubtomb.
107170         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
107171         * modules/ucs4-utf16: Turn into a symbolic link to module
107172         unistr/u16-ubtomb.
107174 2007-03-24  Bruno Haible  <bruno@clisp.org>
107176         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
107177         Enable the function only if HAVE_INLINE.
107178         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
107179         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
107180         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
107181         Enable the function only if HAVE_INLINE.
107182         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
107183         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
107184         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
107185         Enable the function only if HAVE_INLINE.
107186         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
107187         Enable the function only if HAVE_INLINE.
107188         * modules/utf8-ucs4: Update.
107189         * modules/utf8-ucs4-unsafe: Update.
107190         * modules/utf16-ucs4: Update.
107191         * modules/utf16-ucs4-unsafe: Update.
107192         * modules/ucs4-utf8: Update.
107193         * modules/ucs4-utf16: Update.
107195 2007-03-24  Bruno Haible  <bruno@clisp.org>
107197         * lib/utf8-ucs4.h: Remove file.
107198         * lib/utf8-ucs4-unsafe.h: Remove file.
107199         * lib/utf16-ucs4.h: Remove file.
107200         * lib/utf16-ucs4-unsafe.h: Remove file.
107201         * lib/ucs4-utf8.h: Remove file.
107202         * lib/ucs4-utf16.h: Remove file.
107203         * lib/unistr.h: Include their previous contents.
107204         * m4/utf-ucs4.m4: Remove file.
107205         * m4/ucs4-utf.m4: Remove file.
107206         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
107207         (Depends-on): Add unistr/base.
107208         (configure.ac): Remove gl_UTF_UCS4.
107209         (Makefile.am): Update.
107210         (Include): Change to unistr.h.
107211         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
107212         (Depends-on): Add unistr/base.
107213         (configure.ac): Remove gl_UTF_UCS4.
107214         (Makefile.am): Update.
107215         (Include): Change to unistr.h.
107216         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
107217         (Depends-on): Add unistr/base.
107218         (configure.ac): Remove gl_UTF_UCS4.
107219         (Makefile.am): Update.
107220         (Include): Change to unistr.h.
107221         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
107222         (Depends-on): Add unistr/base.
107223         (configure.ac): Remove gl_UTF_UCS4.
107224         (Makefile.am): Update.
107225         (Include): Change to unistr.h.
107226         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
107227         (Depends-on): Add unistr/base.
107228         (configure.ac): Remove gl_UCS4_UTF.
107229         (Makefile.am): Update.
107230         (Include): Change to unistr.h.
107231         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
107232         (Depends-on): Add unistr/base.
107233         (configure.ac): Remove gl_UCS4_UTF.
107234         (Makefile.am): Update.
107235         (Include): Change to unistr.h.
107236         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
107237         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
107238         utf8-ucs4-unsafe.h.
107239         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
107240         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
107241         utf16-ucs4-unsafe.h.
107242         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
107243         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
107244         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
107245         * lib/unistr/u8-strchr.c: Likewise.
107246         * lib/unistr/u8-strrchr.c: Likewise.
107247         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
107248         * lib/unistr/u16-strchr.c: Likewise.
107249         * lib/unistr/u16-strrchr.c: Likewise.
107250         * lib/striconveh.c: Update.
107251         * lib/linebreak.c: Update.
107253 2007-03-24  Bruno Haible  <bruno@clisp.org>
107255         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
107256         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
107258 2007-03-22  Bruno Haible  <bruno@clisp.org>
107260         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
107262 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
107264         * MODULES.html.sh (File system functions): New module write-any-file.
107265         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
107266         * m4/write-any-file.m4: New files.
107268 2007-03-23  Eric Blake  <ebb9@byu.net>
107270         * gnulib-tool: Rearrange space-tab sequences, since some editors
107271         like to eat them.
107273 2007-03-23  Eric Blake  <ebb9@byu.net>
107275         * lib/version-etc.c (version_etc_va): Update license wording to
107276         be more concise.  Recommended by Richard Stallman.
107278 2007-03-22  Bruno Haible  <bruno@clisp.org>
107280         * lib/poll.c (MSG_PEEK): New fallback definition.
107282 2007-03-22  Bruno Haible  <bruno@clisp.org>
107284         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
107285         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
107286         (main): Update.
107287         Fixes a compilation error on BeOS.
107289 2007-03-22  Bruno Haible  <bruno@clisp.org>
107291         * modules/frexpl-tests: New file.
107292         * tests/test-frexpl.c: New file.
107294         * modules/frexpl: New file.
107295         * m4/frexpl.m4: New file.
107296         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
107297         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
107298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
107299         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
107300         (Depends-on): Add frexpl. Remove isnanl-nolibm.
107301         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
107303 2007-03-22  Bruno Haible  <bruno@clisp.org>
107305         * lib/frexpl.c: Share code with lib/frexp.c.
107306         * modules/mathl (Files): Add lib/frexp.c.
107307         (Depends-on): Add isnanl-nolibm.
107309 2007-03-22  Bruno Haible  <bruno@clisp.org>
107311         * modules/printf-frexp (Files): Add m4/frexp.m4.
107312         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
107313         only if the found frexp function actually works.
107315 2007-03-22  Bruno Haible  <bruno@clisp.org>
107317         * lib/frexp.c: Remove older implementation that uses divisions.
107319 2007-03-21  Bruno Haible  <bruno@clisp.org>
107321         * modules/frexp-tests: New file.
107322         * tests/test-frexp.c: New file.
107324         * modules/frexp: New file.
107325         * lib/frexp.c: New file.
107326         * m4/frexp.m4: New file.
107327         * lib/math_.h (frexp): New declaration.
107328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
107329         REPLACE_FREXP.
107330         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
107332 2007-03-21  Bruno Haible  <bruno@clisp.org>
107334         * modules/isnanl-tests: New file.
107335         * tests/test-isnanl.c: New file.
107337         * modules/isnanl: New file.
107338         * lib/isnanl.h: New file.
107339         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
107340         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
107341         gl_FUNC_ISNANL_WORKS.
107342         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
107343         New macros.
107345 2007-03-21  Bruno Haible  <bruno@clisp.org>
107347         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
107348         lib/isnanl.h.
107349         (Include): Update.
107350         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
107351         * lib/vasnprintf.c: Update.
107352         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
107353         tests/test-isnanl.h, remove tests/test-isnanl.c.
107354         (Makefile.am): Update.
107355         * tests/test-isnanl-nolibm.c: New file.
107356         * tests/test-isnanl.h: New file.
107357         * tests/test-isnanl.c: Remove file.
107359 2007-03-21  Jim Meyering  <jim@meyering.net>
107361         When trying to open ".", treat ESTALE like EACCES.
107362         * lib/savewd.c (savewd_save): Resort to forking not just upon
107363         failure with EACCES, but also when errno is ESTALE.
107365 2007-03-20  Bruno Haible  <bruno@clisp.org>
107367         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
107368         Needed on AIX 5.1. Reported by Matthew Woehlke.
107370 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
107372         Suggestions by Bruno Haible:
107373         * lib/acl-internal.h: Include "gettext.h" rather than rolling
107374         our own.
107375         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
107376         * modules/acl (Depends-on): Add gettext.
107378 2007-03-19  Bruno Haible  <bruno@clisp.org>
107380         * modules/iconvme: Remove file.
107381         * lib/iconvme.h: Remove file.
107382         * lib/iconvme.c: Remove file.
107383         * m4/iconvme.m4: Remove file.
107385 2007-03-19  Bruno Haible  <bruno@clisp.org>
107387         * doc/relocatable-maint.texi: Break long shell script line.
107388         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
107390 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
107392         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
107393         handle file_has_acl.
107394         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
107395         * lib/acl.c: Move header inclusions and related macro defns into
107396         lib/acl-internal.h.
107397         (S_ISLNK): Remove defn, since that's now done for us.
107398         (file_has_acl): Move to lib/file-has-acl.c.
107399         Call acl_trivial if available.  This is the crucial part of the fix.
107400         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
107401         shared within the library.  Rewrite a bit, partly to make it compatible
107402         with the GNU coding style.
107403         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
107404         Remove unnecessary double-quotes.
107405         Don't test for acl_to_text; the build will catch that.
107406         Replace acl_entries if it doesn't exist and it is needed.
107407         Check for -lsec and acl_trivial (as used on Solaris 10).
107408         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
107409         lib/file-has-acl.c.
107410         (Depends-on): Add sys_stat, for S_ISLNK.
107412 2007-03-19  Ben Pfaff  <blp@gnu.org>
107414         * doc/gnulib.texi: Fix typos.
107415         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
107417 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
107419         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
107420         If size is zero here, buf must be zero.
107422 2007-03-19  Simon Josefsson  <simon@josefsson.org>
107424         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
107425         <bruno@clisp.org>.
107427 2007-03-18  Bruno Haible  <bruno@clisp.org>
107429         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
107430         Suggested by Eric Blake.
107432 2007-03-18  Ben Pfaff  <blp@gnu.org>
107434         * doc/relocatable.texi: Recommend using as prefix a directory
107435         that does not exist and will never be created.  Based on
107436         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
107437         and others.
107439 2007-03-17  Bruno Haible  <bruno@clisp.org>
107441         * lib/fchownat.c: Include lchown.h.
107443 2007-03-17  Bruno Haible  <bruno@clisp.org>
107445         Fix endless loop when the given allocated size was > INT_MAX.
107446         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
107447         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
107448         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
107449         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
107450         * lib/sprintf.c (sprintf): Likewise.
107452 2007-03-17  Bruno Haible  <bruno@clisp.org>
107454         * tests/test-argp-2.sh (func_compare): Output a context diff.
107456 2007-03-17  Bruno Haible  <bruno@clisp.org>
107458         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
107459         locale's decimal-point character.
107461 2007-03-17  Bruno Haible  <bruno@clisp.org>
107463         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
107464         before comparing it. Needed because on some platforms (e.g. x86) a
107465         'long double' occupies less bytes than sizeof (long double).
107467 2007-03-17  Bruno Haible  <bruno@clisp.org>
107469         * tests/test-crc.c (main): Make printf statements 64-bit clean.
107470         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
107471         * tests/test-getaddrinfo.c (simple): Likewise.
107472         * tests/test-read-file.c (main): Likewise.
107474 2007-03-17  Bruno Haible  <bruno@clisp.org>
107476         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
107478 2007-03-17  Bruno Haible  <bruno@clisp.org>
107480         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
107481         unused variable.
107483 2007-03-17  Bruno Haible  <bruno@clisp.org>
107485         * tests/test-c-strcasecmp.c: Include c-strcase.h.
107486         * tests/test-c-strncasecmp.c: Likewise.
107488 2007-03-17  Bruno Haible  <bruno@clisp.org>
107490         * modules/stdlib (Depends-on): Add unistd.
107491         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
107492         Needed for MacOS X 10.3.
107494 2007-03-17  Bruno Haible  <bruno@clisp.org>
107496         * lib/unistr/u-strdup.h: Include <stdlib.h>.
107498 2007-03-17  Bruno Haible  <bruno@clisp.org>
107500         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
107502 2007-03-17  Bruno Haible  <bruno@clisp.org>
107504         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
107505         to reflect files copied from gnulib (with or without modifications).
107506         Suggested by Jim Meyering.
107508 2007-03-17  Eric Blake  <ebb9@byu.net>
107510         * NEWS: Document stdlib change from 2007-02-18.
107512 2007-03-17  Jim Meyering  <jim@meyering.net>
107514         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
107515         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
107516         someone uses a name containing shell meta-characters.
107517         Reported by Alfred M. Szmidt.
107519         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
107521 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
107523         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
107524         and copy gettext configuration files only if configure.ac contains
107525         a use of AM_GNU_GETTEXT_VERSION.
107527 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
107529         * build-aux/bootstrap (gnulib_name): New variable.
107530         (gnulib_tool_options): Use it.
107532 2007-03-13  Simon Josefsson  <simon@josefsson.org>
107534         * tests/test-des.c: Use new namespace.
107536 2007-03-15  Bruno Haible  <bruno@clisp.org>
107538         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
107539         Reported by James Youngman <jay@gnu.org>.
107541 2007-03-15  Bruno Haible  <bruno@clisp.org>
107543         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
107544         declared prototype. Needed with cc on OSF/1 5.1.
107546 2007-03-15  Bruno Haible  <bruno@clisp.org>
107548         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
107549         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
107550         (struct gl_list_implementation): Add dispose_fn argument to the
107551         'create_empty', 'create' methods.
107552         (struct gl_list_impl_base): Add field 'dispose_fn'.
107553         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
107554         argument.
107555         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
107556         dispose_fn argument.
107557         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
107558         dispose_fn on the dropped values.
107559         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
107560         dispose_fn argument.
107561         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
107562         dropped values.
107563         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
107564         (gl_tree_remove_node): Call dispose_fn on the dropped value.
107565         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
107566         (gl_tree_remove_node): Call dispose_fn on the dropped value.
107567         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
107568         argument.
107569         (gl_tree_list_free): Call dispose_fn on the dropped values.
107570         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
107571         the dropped values.
107572         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
107573         Add dispose_fn argument.
107574         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
107575         Call dispose_fn on the dropped values.
107576         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
107577         Add dispose_fn argument.
107578         (gl_sublist_create): Initialize the 'dispose_fn' field.
107579         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
107580         * tests/test-array_list.c (main): Update.
107581         * tests/test-carray_list.c (main): Update.
107582         * tests/test-avltree_list.c (main): Update.
107583         * tests/test-rbtree_list.c (main): Update.
107584         * tests/test-avltreehash_list.c (main): Update.
107585         * tests/test-rbtreehash_list.c (main): Update.
107586         * tests/test-linked_list.c (main): Update.
107587         * tests/test-linkedhash_list.c (main): Update.
107588         * tests/test-array_oset.c (main): Update.
107590 2007-03-15  Bruno Haible  <bruno@clisp.org>
107592         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
107593         (gl_oset_create_empty): Add dispose_fn argument.
107594         (struct gl_oset_implementation): Add dispose_fn argument to
107595         'create_empty' method.
107596         (struct gl_oset_impl_base): Add dispose_fn field.
107597         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
107598         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
107599         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
107600         values.
107601         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
107602         (gl_tree_oset_free): Call dispose_fn on the dropped values.
107603         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
107604         dropped value.
107605         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
107606         dropped value.
107607         * tests/test-array_oset.c (main): Update.
107608         * tests/test-avltree_oset.c (main): Update.
107609         * tests/test-rbtree_oset.c (main): Update.
107610         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
107612 2007-03-13  Bruno Haible  <bruno@clisp.org>
107614         * tests/test-stdbool.c (i): Update after last patch.
107616 2007-03-12  Bruno Haible  <bruno@clisp.org>
107618         * lib/quotearg.c: Include <wctype.h> early, before the definition of
107619         the iswprint macro. Needed on Solaris 2.5.1.
107621 2007-03-12  Bruno Haible  <bruno@clisp.org>
107623         * tests/test-printf-frexp.c (main): Declare x as volatile.
107625 2007-03-12  Simon Josefsson  <simon@josefsson.org>
107627         * doc/gnulib.texi (Build robot for gnulib): New section.
107629 2007-03-12  Jim Meyering  <jim@meyering.net>
107631         * build-aux/bootstrap: New file.
107632         * build-aux/bootstrap.conf: New file, from coreutils.
107634 2007-03-11  Bruno Haible  <bruno@clisp.org>
107636         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
107638 2007-03-12  Simon Josefsson  <simon@josefsson.org>
107640         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
107641         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
107642         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
107644 2007-03-11  Bruno Haible  <bruno@clisp.org>
107646         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
107647         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
107649 2007-03-11  Bruno Haible  <bruno@clisp.org>
107651         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
107652         formula. Needed for SunPRO C 5.0.
107654 2007-03-11  Bruno Haible  <bruno@clisp.org>
107656         * modules/long-options (Depends-on): Add getopt.
107658 2007-03-11  Bruno Haible  <bruno@clisp.org>
107660         * modules/modechange (Depends-on): Add stdbool.
107662 2007-03-11  Bruno Haible  <bruno@clisp.org>
107664         * modules/i-ring (Depends-on): Add stdbool.
107666 2007-03-11  Bruno Haible  <bruno@clisp.org>
107668         * modules/gc-des (Depends-on): Add stdbool.
107670 2007-03-11  Bruno Haible  <bruno@clisp.org>
107672         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
107674 2007-03-11  Bruno Haible  <bruno@clisp.org>
107676         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
107678 2007-03-11  Bruno Haible  <bruno@clisp.org>
107680         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
107682 2007-03-11  Bruno Haible  <bruno@clisp.org>
107684         * lib/vasnprintf.c (sprintf): Undefine.
107686 2007-03-11  Bruno Haible  <bruno@clisp.org>
107688         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
107689         initializers in SunPRO C and Compaq C compilers.
107691 2007-03-11  Bruno Haible  <bruno@clisp.org>
107693         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
107694         decrementing code ANSI C compliant.
107696 2007-03-11  Bruno Haible  <bruno@clisp.org>
107698         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
107699         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
107701 2007-03-11  Bruno Haible  <bruno@clisp.org>
107703         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
107704         <stdbool.h> substitute doesn't pass.
107706 2007-03-11  Bruno Haible  <bruno@clisp.org>
107708         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
107710 2007-03-11  Bruno Haible  <bruno@clisp.org>
107712         * gnulib-tool (func_create_megatestdir): Create also an autobuild
107713         script, for submission to autobuild.josefsson.org.
107715 2007-03-10  Bruno Haible  <bruno@clisp.org>
107717         * modules/canonicalize-lgpl-tests: New file.
107718         * tests/test-canonicalize-lgpl.sh: New file.
107719         * tests/test-canonicalize-lgpl.c: New file.
107721         * modules/c-strcase-tests: New file.
107722         * tests/test-c-strcase.sh: New file.
107723         * tests/test-c-strcasecmp.c: New file.
107724         * tests/test-c-strncasecmp.c: New file.
107726         * modules/atexit-tests: New file.
107727         * tests/test-atexit.sh: New file.
107728         * tests/test-atexit.c: New file.
107730 2007-03-10  Bruno Haible  <bruno@clisp.org>
107732         * tests/test-binary-io.sh: Use temporary filenames that are not so
107733         likely to clash with those of other tests (in a parallel make).
107734         * tests/test-binary-io.c: Likewise.
107736 2007-03-10  Bruno Haible  <bruno@clisp.org>
107738         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
107739         fallback; use #error instead.
107740         Suggested by Simon Josefsson.
107742 2007-03-10  Bruno Haible  <bruno@clisp.org>
107744         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
107745         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
107746         first and the last.
107748 2007-03-10  Bruno Haible  <bruno@clisp.org>
107750         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
107752 2007-03-10  Bruno Haible  <bruno@clisp.org>
107754         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
107755         "make distcheck".
107756         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
107757         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
107758         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
107760 2007-03-10  Bruno Haible  <bruno@clisp.org>
107762         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
107763         variable.
107764         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
107765         variable.
107767 2007-03-09  Eric Blake  <ebb9@byu.net>
107768         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
107770         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
107771         types are not being provided by gnulib.
107772         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
107773         types are supported.
107775 2007-03-10  Bruno Haible  <bruno@clisp.org>
107777         * lib/stdio_.h (__attribute__): New macro.
107778         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
107779         vsprintf): Specify __attribute__ __format__ for GCC.
107780         Suggested by Eric Blake.
107782 2007-03-09  Bruno Haible  <bruno@clisp.org>
107784         * modules/printf-posix-tests: New file.
107785         * tests/test-printf-posix.sh: New file.
107786         * tests/test-printf-posix.c: New file.
107788         * modules/printf-posix: New file.
107789         * lib/printf.c: New file.
107790         * m4/printf-posix-rpl.m4: New file.
107791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
107792         REPLACE_PRINTF.
107793         * lib/stdio_.h (printf): New declaration.
107794         (format, __format__, ____printf____, ____scanf____, ____strftime____,
107795         ____strfmon____): New macros.
107796         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
107797         REPLACE_PRINTF.
107799 2007-03-09  Bruno Haible  <bruno@clisp.org>
107801         * tests/test-vasnprintf-posix2.sh: New file.
107802         * tests/test-vasnprintf-posix2.c: New file.
107803         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
107804         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
107805         (Makefile.am): Activate test-vasnprintf-posix2.sh.
107807         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
107808         a locale dependent decimal point, rather than always '.'.
107810 2007-03-09  Eric Blake  <ebb9@byu.net>
107812         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
107813         spite of platforms like Tandem/NSK that define it to -1.
107815 2007-03-08  Bruno Haible  <bruno@clisp.org>
107817         * modules/vprintf-posix-tests: New file.
107818         * tests/test-vprintf-posix.sh: New file.
107819         * tests/test-vprintf-posix.c: New file.
107820         * tests/test-printf-posix.h: New file.
107822         * modules/vprintf-posix: New file.
107823         * lib/vprintf.c: New file.
107824         * m4/vprintf-posix.m4: New file.
107825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
107826         REPLACE_VPRINTF.
107827         * lib/stdio_.h (vprintf): New declaration.
107828         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
107829         REPLACE_VPRINTF.
107831 2007-03-08  Bruno Haible  <bruno@clisp.org>
107833         * modules/fprintf-posix-tests: New file.
107834         * tests/test-fprintf-posix.sh: New file.
107835         * tests/test-fprintf-posix.c: New file.
107837         * modules/fprintf-posix: New file.
107838         * lib/fprintf.c: New file.
107839         * m4/fprintf-posix.m4: New file.
107840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
107841         REPLACE_FPRINTF.
107842         * lib/stdio_.h (fprintf): New declaration.
107843         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
107844         REPLACE_FPRINTF.
107846 2007-03-08  Bruno Haible  <bruno@clisp.org>
107848         * modules/vfprintf-posix-tests: New file.
107849         * tests/test-vfprintf-posix.sh: New file.
107850         * tests/test-vfprintf-posix.c: New file.
107851         * tests/test-fprintf-posix.h: New file.
107852         * tests/test-fprintf-posix.out: New file.
107854         * modules/vfprintf-posix: New file.
107855         * lib/vfprintf.c: New file.
107856         * m4/vfprintf-posix.m4: New file.
107857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
107858         REPLACE_VFPRINTF.
107859         * lib/stdio_.h (vfprintf): New declaration.
107860         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
107861         REPLACE_VFPRINTF.
107863 2007-03-08  Bruno Haible  <bruno@clisp.org>
107865         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
107867 2007-03-08  Bruno Haible  <bruno@clisp.org>
107869         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
107870         instead of 'expr' invocations.
107871         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
107872         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
107873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
107874         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
107875         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
107876         Suggested by Paul Eggert.
107878 2007-03-08  Bruno Haible  <bruno@clisp.org>
107880         * modules/fseterr-tests: New file.
107881         * tests/test-fseterr.c: New file.
107883         * modules/fseterr: New file.
107884         * lib/fseterr.h: New file.
107885         * lib/fseterr.c: New file.
107887 2007-03-08  Bruno Haible  <bruno@clisp.org>
107889         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
107890         * lib/getopt_.h: Likewise.
107891         * lib/mbswidth.h: Likewise.
107892         * lib/setenv.h: Likewise.
107893         * lib/vasnprintf.h: Likewise.
107894         * lib/vasprintf.h: Likewise.
107895         * lib/verror.h: Likewise.
107896         * lib/xsetenv.h: Likewise.
107897         * lib/xvasprintf.h: Likewise.
107899 2007-03-08  Jim Meyering  <jim@meyering.net>
107901         * users.txt: Add parted.
107903         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
107905 2007-03-07  Bruno Haible  <bruno@clisp.org>
107907         * m4/printf.m4: Make the shell script snippets copy&pastable.
107909 2007-03-02  Bruno Haible  <bruno@clisp.org>
107911         * lib/netinet_in_.h: New file.
107912         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
107913         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
107914         * modules/netinet_in (Files): Add lib/netinet_in_.h.
107915         (Depends-on): Add absolute-header.
107916         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
107917         into netinet/in.h.
107919 2007-03-03  Bruno Haible  <bruno@clisp.org>
107921         * lib/sys_select_.h: New file.
107922         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
107923         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
107924         * modules/sys_select (Files): Add lib/sys_select_.h.
107925         (Depends-on): Add absolute-header.
107926         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
107927         into sys/select.h.
107929 2007-03-02  Bruno Haible  <bruno@clisp.org>
107931         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
107932         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
107933         values.
107934         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
107935         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
107936         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
107937         * modules/sys_socket (Depends-on): Add absolute-header.
107938         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
107939         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
107940         (Include): Remove requirement of inclusion of <sys/types.h>.
107942 2007-03-02  Bruno Haible  <bruno@clisp.org>
107944         * lib/byteswap_.h (bswap_32): Fix formula.
107946 2007-03-06  Bruno Haible  <bruno@clisp.org>
107948         * modules/sprintf-posix-tests: New file.
107949         * tests/test-sprintf-posix.c: New file.
107951         * modules/sprintf-posix: New file.
107952         * lib/sprintf.c: New file.
107953         * m4/sprintf-posix.m4: New file.
107954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
107955         REPLACE_SPRINTF.
107956         * lib/stdio_.h (sprintf): New declaration.
107957         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
107958         REPLACE_SPRINTF.
107960 2007-03-06  Bruno Haible  <bruno@clisp.org>
107962         * modules/vsprintf-posix-tests: New file.
107963         * tests/test-vsprintf-posix.c: New file.
107964         * tests/test-sprintf-posix.h: New file.
107966         * modules/vsprintf-posix: New file.
107967         * lib/vsprintf.c: New file.
107968         * m4/vsprintf-posix.m4: New file.
107969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
107970         REPLACE_VSPRINTF.
107971         * lib/stdio_.h (vsprintf): New declaration.
107972         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
107973         REPLACE_VSPRINTF.
107975 2007-03-06  Bruno Haible  <bruno@clisp.org>
107977         * modules/vsnprintf (Depend-on): Remove minmax.
107979 2007-03-06  Bruno Haible  <bruno@clisp.org>
107981         * modules/snprintf-posix-tests: New file.
107982         * tests/test-snprintf-posix.c: New file.
107984         * modules/snprintf-posix: New file.
107985         * m4/snprintf-posix.m4: New file.
107986         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
107987         gl_FUNC_SNPRINTF.
107988         (gl_FUNC_SNPRINTF): Invoke it.
107989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
107990         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
107991         is set.
107992         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
107994 2007-03-06  Bruno Haible  <bruno@clisp.org>
107996         * modules/vsnprintf-posix-tests: New file.
107997         * tests/test-vsnprintf-posix.c: New file.
107998         * tests/test-snprintf-posix.h: New file.
108000         * modules/vsnprintf-posix: New file.
108001         * m4/vsnprintf-posix.m4: New file.
108002         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
108003         gl_FUNC_VSNPRINTF.
108004         (gl_FUNC_VSNPRINTF): Invoke it.
108005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
108006         * lib/stdio_.h (vsnprintf): Define as a replacement if
108007         REPLACE_VSNPRINTF is set.
108008         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
108010 2007-03-06  Bruno Haible  <bruno@clisp.org>
108012         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
108013         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
108015 2007-03-06  Bruno Haible  <bruno@clisp.org>
108017         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
108018         (asinl): Declare also if HAVE_DECL_ASINL is set.
108019         (atanl): Declare also if HAVE_DECL_ATANL is set.
108020         (ceill): Declare also if HAVE_DECL_CEILL is set.
108021         (cosl): Declare also if HAVE_DECL_COSL is set.
108022         (expl): Declare also if HAVE_DECL_EXPL is set.
108023         (floorl): Declare also if HAVE_DECL_FLOORL is set.
108024         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
108025         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
108026         (logl): Declare also if HAVE_DECL_LOGL is set.
108027         (sinl): Declare also if HAVE_DECL_SINL is set.
108028         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
108029         (tanl): Declare also if HAVE_DECL_TANL is set.
108030         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
108031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
108032         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
108033         declaration of frexpl, ldexpl.
108034         * modules/printf-frexpl (Depends-on): Add math.
108035         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
108037 2007-03-05  Bruno Haible  <bruno@clisp.org>
108039         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
108040         frexpl and ldexpl are declared.
108041         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
108043 2007-03-05  Bruno Haible  <bruno@clisp.org>
108045         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
108046         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
108048 2007-03-05  Bruno Haible  <bruno@clisp.org>
108050         * lib/stdio_.h: Include <stddef.h>.
108052 2007-03-05  Bruno Haible  <bruno@clisp.org>
108054         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
108056 2007-03-05  Bruno Haible  <bruno@clisp.org>
108058         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
108059         NetBSD 4, from Ralf Wildenhues.
108061 2007-03-04  Bruno Haible  <bruno@clisp.org>
108063         * lib/vasprintf.h: Update #if logic for the case when the functions
108064         exist but are overridden.
108066 2007-03-04  Bruno Haible  <bruno@clisp.org>
108068         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
108069         implementations: glibc-2.4 and MacOS X 10.3.
108070         * tests/test-vasnprintf-posix.c (test_function): Test also the case
108071         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
108072         * tests/test-vasprintf-posix.c (test_function): Likewise.
108074 2007-03-04  Bruno Haible  <bruno@clisp.org>
108076         * modules/vasprintf-posix-tests: New file.
108077         * tests/test-vasprintf-posix.c: New file.
108079         * modules/vasprintf-posix: New file.
108080         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
108081         defined.
108082         * m4/vasprintf-posix.m4: New file.
108083         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
108084         gl_FUNC_VASPRINTF.
108085         (gl_FUNC_VASPRINTF): Invoke it.
108086         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
108087         here.
108088         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
108090 2007-03-04  Bruno Haible  <bruno@clisp.org>
108092         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
108093         REPLACE_GETTIMEOFDAY.
108094         * modules/sys_time (Makefile.am): Likewise.
108095         * m4/sys_time_h.m4: Likewise.
108096         * m4/gettimeofday.m4: Likewise.
108098 2007-03-04  Bruno Haible  <bruno@clisp.org>
108100         * modules/vasnprintf-posix-tests: New file.
108101         * tests/test-vasnprintf-posix.c: New file.
108103         * modules/vasnprintf-posix: New file.
108104         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
108105         printf-frexpl.h.
108106         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
108107         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
108108         REPLACE_VASNPRINTF is defined.
108109         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
108110         gl_FUNC_VASNPRINTF.
108111         (gl_FUNC_VASNPRINTF): Invoke it.
108112         * m4/vasnprintf-posix.m4: New file.
108113         * m4/printf.m4: New file.
108115 2007-03-04  Bruno Haible  <bruno@clisp.org>
108117         Compile progreloc.c only if --enable-relocatable is specified.
108118         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
108119         if --enable-relocatable was specified.
108120         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
108121         lib_SOURCES.
108123 2007-03-04  Jim Meyering  <jim@meyering.net>
108125         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
108126         Use it consistently, rather than enumerating errno constants.
108128 2007-03-04  Bruno Haible  <bruno@clisp.org>
108130         * modules/xvasprintf-tests: New file.
108131         * tests/test-xvasprintf.c: New file.
108133         * modules/vasprintf-tests: New file.
108134         * tests/test-vasprintf.c: New file.
108136         * modules/vasnprintf-tests: New file.
108137         * tests/test-vasnprintf.c: New file.
108139         * modules/vsnprintf-tests: New file.
108140         * tests/test-vsnprintf.c: New file.
108142         * modules/snprintf-tests: New file.
108143         * tests/test-snprintf.c: New file.
108145 2007-03-04  Bruno Haible  <bruno@clisp.org>
108147         Compile relocatable.c only if --enable-relocatable is specified.
108148         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
108149         gl_RELOCATABLE_LIBRARY.
108150         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
108151         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
108152         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
108153         gl_RELOCATABLE_LIBRARY.
108154         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
108155         (Makefile.am): Remove lib_SOURCES.
108156         * modules/relocatable-lib-lgpl (configure.ac): Invoke
108157         gl_RELOCATABLE_LIBRARY.
108158         (Makefile.am): Remove lib_SOURCES.
108159         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
108160         always.
108161         * modules/relocatable-prog-wrapper (configure.ac): Invoke
108162         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
108164 2007-03-04  Bruno Haible  <bruno@clisp.org>
108166         * modules/argmatch-tests: New file.
108167         * tests/test-argmatch.c: New file.
108169         * tests/test-allocsa.c (main): Halve the number of loop runs.
108171         * modules/alloca-opt-tests: New file.
108172         * tests/test-alloca-opt.c: New file.
108174 2007-03-04  Jim Meyering  <jim@meyering.net>
108176         Work around difference between Linux ACLs and Solaris 10 ZFS.
108177         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
108178         for EINVAL.
108180 2007-03-03  Bruno Haible  <bruno@clisp.org>
108182         * modules/relocatable-prog (Depends-on): Add back progreloc's
108183         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
108185 2007-03-03  Bruno Haible  <bruno@clisp.org>
108187         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
108188         * modules/relocatable-lib: New file.
108190 2007-03-03  Bruno Haible  <bruno@clisp.org>
108192         * modules/relocatable-prog: Renamed from modules/relocatable.
108193         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
108195 2007-03-03  Bruno Haible  <bruno@clisp.org>
108197         * modules/relocatable-script (Files): Add doc/relocatable.texi,
108198         m4/relocatable-lib.m4.
108199         (Depends-on): Remove 'relocatable'.
108200         (configure.ac): Add gl_RELOCATABLE_NOP.
108202 2007-03-03  Bruno Haible  <bruno@clisp.org>
108204         * modules/relocatable-prog-wrapper: New file.
108205         * modules/relocatable (Depends-on): Add it. Remove all other
108206         dependencies except progname.
108207         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
108209         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
108210         (gl_FUNC_STRERROR): Nop.
108211         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
108213         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
108214         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
108216         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
108217         (gl_FUNC_READLINK): Update.
108219         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
108221 2007-03-03  Bruno Haible  <bruno@clisp.org>
108223         * lib/xreadlink.c: Include <unistd.h> unconditionally.
108224         * modules/xreadlink (Depends-on): Add unistd.
108225         * modules/xreadlink-with-size (Depends-on): Likewise.
108227 2007-03-03  Bruno Haible  <bruno@clisp.org>
108229         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
108230         extracted from gt_FUNC_SETENV.
108231         (gt_FUNC_SETENV): Remove macro.
108232         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
108233         remove gt_FUNC_SETENV.
108235 2007-03-03  Bruno Haible  <bruno@clisp.org>
108237         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
108238         ENABLE_RELOCATABLE here.
108239         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
108241 2007-03-03  Bruno Haible  <bruno@clisp.org>
108243         * modules/rbtreehash-list-tests (Depends-on): Add progname.
108244         * tests/test-rbtreehash_list.c: Include progname.h.
108245         (main): Call set_program_name.
108247         * modules/rbtree-oset-tests (Depends-on): Add progname.
108248         * tests/test-rbtree_oset.c: Include progname.h.
108249         (main): Call set_program_name.
108251         * modules/rbtree-list-tests (Depends-on): Add progname.
108252         * tests/test-rbtree_list.c: Include progname.h.
108253         (main): Call set_program_name.
108255         * modules/linked-list-tests (Depends-on): Add progname.
108256         * tests/test-linked_list.c: Include progname.h.
108257         (main): Call set_program_name.
108259 2007-03-03  Bruno Haible  <bruno@clisp.org>
108261         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
108262         All uses of __restrict changed to _Restrict_.
108263         * lib/glob_.h (__restrict): Remove macro.
108265 2007-03-02  Bruno Haible  <bruno@clisp.org>
108267         * modules/gettext (configure.ac): Require gettext infrastructure
108268         from version 0.16.1.
108270 2007-03-02  Bruno Haible  <bruno@clisp.org>
108272         * modules/linkedhash-list-tests (Depends-on): Add progname.
108273         * tests/test-linkedhash_list.c: Include progname.h.
108274         (main): Call set_program_name.
108276         * modules/carray-list-tests (Depends-on): Add progname.
108277         * tests/test-carray_list.c: Include progname.h.
108278         (main): Call set_program_name.
108280         * modules/avltreehash-list-tests (Depends-on): Add progname.
108281         * tests/test-avltreehash_list.c: Include progname.h.
108282         (main): Call set_program_name.
108284         * modules/avltree-oset-tests (Depends-on): Add progname.
108285         * tests/test-avltree_oset.c: Include progname.h.
108286         (main): Call set_program_name.
108288         * modules/avltree-list-tests (Depends-on): Add progname.
108289         * tests/test-avltree_list.c: Include progname.h.
108290         (main): Call set_program_name.
108292         * modules/array-oset-tests (Depends-on): Add progname.
108293         * tests/test-array_oset.c: Include progname.h.
108294         (main): Call set_program_name.
108296         * modules/array-list-tests (Depends-on): Add progname.
108297         * tests/test-array_list.c: Include progname.h.
108298         (main): Call set_program_name.
108300         * modules/argp-tests (Depends-on): Add progname.
108301         * tests/test-argp.c: Include argp.h first. Include progname.h.
108302         (main): Call set_program_name.
108304 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
108306         * doc/gnulib-tool.texi (Initial import): Reword description of
108307         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
108308         limited effect even if defined after the first system include.
108310 2007-03-01  Bruno Haible  <bruno@clisp.org>
108312         * build-aux/config.libpath: Update to libtool-1.5.22.
108313         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
108315 2007-03-01  Bruno Haible  <bruno@clisp.org>
108317         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
108318         foo_CFLAGS.
108319         Reported by Ralf Wildenhues.
108321 2007-03-01  Bruno Haible  <bruno@clisp.org>
108323         * build-aux/install-reloc: Remove object files left over by some
108324         compilers.
108325         Reported by Ralf Wildenhues.
108327 2007-03-01  Bruno Haible  <bruno@clisp.org>
108329         * build-aux/install-reloc: Break long lines.
108331 2007-03-01  Bruno Haible  <bruno@clisp.org>
108333         * doc/relocatable.texi: Document that it may not work on OpenBSD.
108334         Reported by Ralf Wildenhues.
108336 2007-03-01  Bruno Haible  <bruno@clisp.org>
108338         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
108339         include ordering constraints.
108341 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
108343         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
108344         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
108345         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
108346         as another example.
108347         * lib/time_.h: Fix misspelling.
108348         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108349         Require gl_HEADER_TIME_H_DEFAULTS.
108350         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
108351         * m4/time_r.m4 (gl_TIME_R): Likewise.
108352         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
108354 2007-03-01  Bruno Haible  <bruno@clisp.org>
108356         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
108357         * m4/utimens.m4 (gl_UTIMENS): Likewise.
108359 2007-03-01  Jim Meyering  <jim@meyering.net>
108361         * modules/xreadlink (Maintainer): Add my name.
108362         * modules/xreadlink-with-size (Depends-on): Alphabetize.
108364 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
108365             Bruno Haible  <bruno@clisp.org>
108367         * build-aux/install-reloc: Compile also c-ctype.c.
108368         * build-aux/relocatable.sh.in: New file.
108369         * doc/relocatable.texi: New file.
108370         * doc/relocatable-maint.texi: New file.
108371         * doc/gnulib.texi: Include relocatable-maint.texi.
108372         * lib/progreloc.c: Include unistd.h unconditionally.
108373         * lib/relocwrapper.c: Include unistd.h unconditionally.
108374         Include c-ctype.h.
108375         (add_dotbin): Use c_tolower.
108376         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
108377         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
108378         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
108379         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
108380         to m4/relocatable-lib.m4.
108381         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
108382         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
108383         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
108384         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
108385         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
108386         * modules/relocatable: New file.
108387         * modules/relocatable-lib: New file.
108388         * modules/relocatable-script: New file.
108390 2007-02-28  Bruno Haible  <bruno@clisp.org>
108392         Import --enable-relocatable infrastructure.
108393         * build-aux/config.libpath: New file, from GNU gettext.
108394         * build-aux/install-reloc: New file, from GNU gettext.
108395         * build-aux/reloc-ldflags: New file, from GNU gettext.
108396         * lib/relocatable.h: New file, from GNU gettext.
108397         * lib/relocatable.c: New file, from GNU gettext.
108398         * lib/relocwrapper.c: New file, from GNU gettext.
108399         * m4/relocatable.m4: New file, from GNU gettext.
108401 2007-02-28  Bruno Haible  <bruno@clisp.org>
108403         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
108405         * modules/xreadlink: New file, from GNU gettext with modifications.
108406         * lib/xreadlink.c: New file, from GNU gettext.
108407         * lib/xreadlink.h: Add comments.
108408         (xreadlink): New declaration.
108410         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
108411         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
108412         lib/xreadlink-with-size.c.
108413         (configure.ac): Remove gl_XREADLINK invocation.
108414         (Makefile.am): Augment lib_SOURCES.
108415         * m4/xreadlink.m4: Remove file.
108416         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
108417         (xreadlink_with_size): Renamed from xreadink.
108418         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
108419         * modules/canonicalize (Depends-on): Replace xreadlink with
108420         xreadlink-with-size.
108421         * lib/canonicalize.c (canonicalize_filename_mode): Update.
108423 2007-02-25  Jim Meyering  <jim@meyering.net>
108425         * build-aux/announce-gen: When complaining about excess arguments,
108426         list them.
108428 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
108430         * README: Document signed integer overflow situation more
108431         accurately.
108433 2007-02-25  Bruno Haible  <bruno@clisp.org>
108435         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
108436         'a' or 'A' conversion.
108438 2007-02-25  Bruno Haible  <bruno@clisp.org>
108440         * modules/filename: Renamed from modules/pathname.
108441         (Files): Replace lib/pathname.h with lib/filename.h. Replace
108442         lib/concatpath.c with lib/concat-filename.c.
108443         (Makefile.am): Update.
108444         (Include): Replace pathname.h with filename.h.
108445         * lib/filename.h: Renamed from lib/pathname.h.
108446         (concatenated_filename): Renamed from concatenated_pathname.
108447         * lib/concat-filename.c: Renamed from lib/concatpath.c.
108448         (concatenated_filename): Renamed from concatenated_pathname.
108449         * lib/findprog.c: Include filename.h instead of pathname.h.
108450         (find_in_path): Update.
108451         * lib/javacomp.c: Include filename.h instead of pathname.h.
108452         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
108453         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
108454         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
108455         is_oldgcj_14_13_usable, is_javac_usable): Update.
108456         * lib/javaexec.c: Include filename.h instead of pathname.h.
108457         (execute_java_class): Update.
108458         * modules/findprog: Update.
108459         * modules/javacomp: Update.
108460         * modules/javaexec: Update.
108461         * MODULES.html.sh (File system functions): Add 'filename', remove
108462         'pathname'.
108464 2007-02-25  Bruno Haible  <bruno@clisp.org>
108466         * modules/printf-frexpl-tests: New file.
108467         * tests/test-printf-frexpl.c: New file.
108469         * modules/printf-frexpl: New file.
108470         * lib/printf-frexpl.h: New file.
108471         * lib/printf-frexpl.c: New file.
108472         * m4/printf-frexpl.m4: New file.
108474 2007-02-25  Bruno Haible  <bruno@clisp.org>
108476         * modules/printf-frexp-tests: New file.
108477         * tests/test-printf-frexp.c: New file.
108479         * modules/printf-frexp: New file.
108480         * lib/printf-frexp.h: New file.
108481         * lib/printf-frexp.c: New file.
108482         * m4/printf-frexp.m4: New file.
108484 2007-02-25  Bruno Haible  <bruno@clisp.org>
108486         Assume automake >= 1.10 for the tests.
108487         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
108488         * modules/arctwo-tests: Likewise.
108489         * modules/argp-tests: Likewise.
108490         * modules/avltree-list-tests: Likewise.
108491         * modules/avltree-oset-tests: Likewise.
108492         * modules/avltreehash-list-tests: Likewise.
108493         * modules/carray-list-tests: Likewise.
108494         * modules/crc-tests: Likewise.
108495         * modules/des-tests: Likewise.
108496         * modules/gc-arcfour-tests: Likewise.
108497         * modules/gc-arctwo-tests: Likewise.
108498         * modules/gc-des-tests: Likewise.
108499         * modules/gc-hmac-md5-tests: Likewise.
108500         * modules/gc-hmac-sha1-tests: Likewise.
108501         * modules/gc-md2-tests: Likewise.
108502         * modules/gc-md4-tests: Likewise.
108503         * modules/gc-md5-tests: Likewise.
108504         * modules/gc-pbkdf2-sha1-tests: Likewise.
108505         * modules/gc-rijndael-tests: Likewise.
108506         * modules/gc-sha1-tests: Likewise.
108507         * modules/gc-tests: Likewise.
108508         * modules/getaddrinfo-tests: Likewise.
108509         * modules/hmac-md5-tests: Likewise.
108510         * modules/hmac-sha1-tests: Likewise.
108511         * modules/linked-list-tests: Likewise.
108512         * modules/linkedhash-list-tests: Likewise.
108513         * modules/lock-tests: Likewise.
108514         * modules/md2-tests: Likewise.
108515         * modules/md4-tests: Likewise.
108516         * modules/md5-tests: Likewise.
108517         * modules/rbtree-list-tests: Likewise.
108518         * modules/rbtree-oset-tests: Likewise.
108519         * modules/rbtreehash-list-tests: Likewise.
108520         * modules/read-file-tests: Likewise.
108521         * modules/rijndael-tests: Likewise.
108522         * modules/stdint-tests: Likewise.
108523         * modules/tls-tests: Likewise.
108525 2007-02-24  Bruno Haible  <bruno@clisp.org>
108527         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
108528         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
108529         function; instead check whether isnan with a double argument links.
108530         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
108531         function; instead check whether isnan with a 'long double' argument
108532         links.
108533         Reported by Eric Blake <ebb9@byu.net>.
108535 2007-02-24  Bruno Haible  <bruno@clisp.org>
108537         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
108538         defined.
108539         * lib/isnanl.c: Remove all code. Just include isnan.c.
108540         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
108542 2007-02-25  Jim Meyering  <jim@meyering.net>
108544         Avoid conflicting types for 'unsetenv' on FreeBSD.
108545         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
108546         conflicting with FreeBSD's (5.0 and 6.1) function declaration
108547         in stdlib.h.
108549 2007-02-24  Bruno Haible  <bruno@clisp.org>
108551         * modules/isnanl-nolibm-tests: New file.
108552         * tests/test-isnanl.c: New file.
108554         * modules/isnanl-nolibm: New file.
108555         * lib/isnanl.h: New file.
108556         * lib/isnanl.c: New file.
108557         * m4/isnanl.m4: New file.
108559 2007-02-24  Bruno Haible  <bruno@clisp.org>
108561         * modules/isnan-nolibm-tests: New file.
108562         * tests/test-isnan.c: New file.
108564         * modules/isnan-nolibm: New file.
108565         * lib/isnan.h: New file.
108566         * lib/isnan.c: New file.
108567         * m4/isnan.m4: New file.
108569 2007-02-24  Bruno Haible  <bruno@clisp.org>
108571         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
108572         assume that an exponent fits in 20 bits.
108574 2007-02-24  Jim Meyering  <jim@meyering.net>
108576         * m4/regex.m4: Update the description of the configure-time option,
108577         --without-included-regex, to state accurately what the defaults are,
108578         and perhaps to give people an idea why using this option is risky.
108580 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
108582         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
108583         loops on small arguments.  This attempts to avoid the problem
108584         Bruno Haible reported for AIX 4.3.2 in
108585         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
108587 2007-02-23  Bruno Haible  <bruno@clisp.org>
108589         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
108590         Needed for help2man.
108592 2007-02-23  Karl Berry  <karl@gnu.org>
108594         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
108595         exists, foo.h should be cvs-ignored, not committed.
108597 2007-02-23  Eric Blake  <ebb9@byu.net>
108599         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
108600         * lib/stat-time.h (includes): Likewise.
108601         * lib/utimecmp.c (includes): Likewise.
108602         * lib/utimens.h (includes): Likewise.
108603         * lib/getdate.y (includes): Also include "timespec.h" for use
108604         internal to the module.
108605         * modules/utimens (Depends-on): Revert yesterday's patch.
108606         * modules/nanosleep (Depends-on): Add missing dependency.
108608 2007-02-22  Bruno Haible  <bruno@clisp.org>
108610         * lib/glob.c: Don't include getlogin_r.h.
108612 2007-02-22  Jim Meyering  <jim@meyering.net>
108614         * modules/utimens (Depends-on): Add timespec, required for
108615         utimens.h's inclusion of timespec.h.
108617 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
108619         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
108620         long unreadable paths in GNU/Linux.  Problem reported by Andreas
108621         Schwab in
108622         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
108623         I'll try to think of a better way to fix the Solaris problem.
108625         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
108626         like glibc; on Solaris 10, it fails with errno == EINVAL.
108627         POSIX says the behavior is unspecified if the first argument is NULL,
108628         so play it safe and never pass NULL to the system getcwd.
108630 2007-02-21  Jim Meyering  <jim@meyering.net>
108632         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
108633         of gettimeofday.  It would conflict with the one now always
108634         provided via sys_time_.h.  Reported by Matthew Woehlke, as
108635         an IRIX 6.5 build failure.
108637 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
108639         Minor fixups to port to Solaris 10 with Sun C 5.8.
108640         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
108641         * modules/getcwd (Depends-on): Add dirfd.
108642         * lib/putenv.c (putenv): #undef it.
108643         (rpl_putenv): New decl.
108644         (malloc, free): Include <stdlib.h> rather than prototyping separately.
108646 2007-02-20  Bruno Haible  <bruno@clisp.org>
108648         * modules/stdio-tests: New file.
108649         * tests/test-stdio.c: New file.
108651         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
108652         (Depends-on): Add stdio.
108653         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
108654         (Include): Use <stdio.h> instead of vsnprintf.h.
108655         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
108656         HAVE_DECL_VSNPRINTF.
108657         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
108659         * modules/snprintf (Files): Remove lib/snprintf.h.
108660         (Depends-on): Add stdio.
108661         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
108662         (Include): Use <stdio.h> instead of snprintf.h.
108663         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
108664         HAVE_DECL_SNPRINTF.
108665         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
108666         * lib/getaddrinfo.c: Likewise.
108668         * modules/stdio: New file.
108669         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
108670         * lib/snprintf.h: Remove file.
108671         * lib/vsnprintf.h: Remove file.
108672         * lib/.cppi-disable: Remove snprintf.h.
108673         * m4/stdio_h.m4: New file.
108674         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
108676 2007-02-20  Jim Meyering  <jim@meyering.net>
108678         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
108679         used by e.g., mingw.  From Bruno Haible.
108681 2007-02-19  Bruno Haible  <bruno@clisp.org>
108683         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
108684         warnings.
108685         Reported by Ben Pfaff <blp@cs.stanford.edu>.
108687 2007-02-19  Bruno Haible  <bruno@clisp.org>
108689         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
108690         from mingw users.
108692 2007-02-19  Bruno Haible  <bruno@clisp.org>
108694         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
108695         warnings.
108696         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
108698 2007-02-19  Jim Meyering  <jim@meyering.net>
108700         Don't use FD after a successful "fdopendir (fd)".
108701         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
108702         Reset it by calling dirfd on the just-obtained DIR*.
108704         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
108705         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
108707 2007-02-18  Bruno Haible  <bruno@clisp.org>
108709         * lib/readlink.c: Include <unistd.h>.
108710         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
108711         HAVE_READLINK.
108712         * modules/readlink (Depends-on): Add unistd.
108713         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108714         (Include): Add <unistd.h>.
108716         * lib/getlogin_r.h: Remove file.
108717         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
108718         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
108719         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
108720         HAVE_DECL_GETLOGIN_R.
108721         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
108722         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108723         (Include): Use <unistd.h> instead of getlogin_r.h.
108725         * lib/getcwd.h: Remove file.
108726         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
108727         * lib/xgetcwd.c: Likewise.
108728         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
108729         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
108730         * modules/getcwd (Files): Remove lib/getcwd.h.
108731         (Depends-on): Add unistd.
108732         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108733         (Include): Use <unistd.h> instad of getcwd.h.
108735         * lib/ftruncate.c: Include <unistd.h> first.
108736         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
108737         Set HAVE_FTRUNCATE.
108738         * modules/ftruncate (Depends-on): Add unistd.
108739         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108741         * lib/fchdir.c: Include <unistd.h> first.
108742         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
108743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
108744         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
108745         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108746         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
108748         * lib/dup2.c: Include <unistd.h> first.
108749         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
108750         HAVE_DUP2.
108751         * modules/dup2 (Depends-on): Add unistd.
108752         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108754         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
108755         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
108756         REPLACE_CHOWN. Don't define chown as a macro here.
108757         * modules/chown (Depends-on): Add unistd.
108758         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108760         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
108761         Add definition for GL_LINK_WARNING.
108762         (chown, dup2): New declarations.
108763         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
108764         link warning.
108765         (ftruncate): New declaration.
108766         (getcwd): New declaration, taken from old getcwd.h.
108767         (getlogin_r): New declaration, taken from old getlogin_r.h.
108768         (readlink): New declaration.
108769         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
108770         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
108771         (gl_PREREQ_UNISTD): Remove macro.
108772         (gl_UNISTD_MODULE_INDICATOR): New macro.
108773         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
108774         many new variables. Don't set UNISTD_H.
108775         * modules/unistd (Description): Change.
108776         (Depends-on): Add link-warning.
108777         (configure.ac): Update.
108778         (Makefile.am): Create unistd.h always. Substitute many new variables
108779         into it.
108781 2007-02-18  Bruno Haible  <bruno@clisp.org>
108783         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
108784         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
108785         HAVE_GETSUBOPT.
108786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
108787         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
108788         * lib/getsubopt.h: Remove file.
108789         * modules/getsubopt (Files): Remove lib/getsubopt.h.
108790         (Depends-on): Add stdlib.
108791         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108792         (Includes): Use <stdlib.h> instead of getsubopt.h.
108793         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
108794         Set HAVE_GETSUBOPT.
108795         * lib/getsubopt.c: Don't include getsubopt.h.
108797 2007-02-18  Bruno Haible  <bruno@clisp.org>
108799         * modules/fchdir (Depends-on): Add dup2.
108801 2007-02-18  Bruno Haible  <bruno@clisp.org>
108803         * lib/stdlib_.h: Handle glibc's special invocation convention
108804         specially.
108806 2007-02-18  Bruno Haible  <bruno@clisp.org>
108808         * modules/stdlib-tests: New file.
108809         * tests/test-stdlib.c: New file.
108811         * modules/mkstemp (Files): Remove lib/mkstemp.h.
108812         (Depends-on): Add stdlib.
108813         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108814         (Includes): Use <stdlib.h> instead of mkstemp.h.
108815         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108816         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
108817         * lib/mkstemp.c: Don't include mkstemp.h.
108818         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
108819         * lib/stdlib--.h: Don't include mkstemp.h.
108821         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
108822         (Depends-on): Add stdlib.
108823         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108824         (Includes): Use <stdlib.h> instead of mkdtemp.h.
108825         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108826         HAVE_MKDTEMP.
108827         * lib/mkdtemp.c: Don't include mkdtemp.h.
108828         * lib/clean-temp.c: Don't include mkdtemp.h.
108830         * modules/exit (Files): Remove lib/exit.h.
108831         (Depends-on): Add stdlib.
108832         (Makefile.am): Remove lib_SOURCES.
108833         (Include): Use <stdlib.h> instead of exit.h.
108834         * lib/argmatch.c: Don't include exit.h.
108835         * lib/execute.c: Likewise.
108836         * lib/pagealign_alloc.c: Likewise.
108837         * lib/pipe.c: Likewise.
108838         * lib/wait-process.c: Likewise.
108839         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
108840         * lib/exitfail.c: Likewise.
108841         * lib/savewd.c: Likewise.
108842         * lib/xsetenv.c: Likewise.
108844         * modules/stdlib: New file.
108845         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
108846         and extra comments about mkstemp().
108847         * lib/exit.h: Remove file.
108848         * lib/mkdtemp.h: Remove file.
108849         * lib/mkstemp.h: Remove file.
108850         * m4/stdlib_h.m4: New file.
108851         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
108853 2007-02-18  Bruno Haible  <bruno@clisp.org>
108855         * modules/math-tests: New file.
108856         * tests/test-math.c: New file.
108858         * modules/math: New file.
108859         * modules/mathl (Files): Remove lib/mathl.h.
108860         (Depends-on): Add math.
108861         (Makefile.am): Don't mention mathl.h.
108862         (Include): Use <math.h> instead of mathl.h.
108863         * lib/math_.h: New file.
108864         * lib/mathl.h: Remove file.
108865         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
108866         mathl.h.
108867         * lib/asinl.c: Likewise.
108868         * lib/atanl.c: Likewise.
108869         * lib/ceill.c: Likewise.
108870         * lib/cosl.c: Likewise.
108871         * lib/expl.c: Likewise.
108872         * lib/floorl.c: Likewise.
108873         * lib/frexpl.c: Likewise.
108874         * lib/ldexpl.c: Likewise.
108875         * lib/logl.c: Likewise.
108876         * lib/sincosl.c: Likewise.
108877         * lib/sinl.c: Likewise.
108878         * lib/sqrtl.c: Likewise.
108879         * lib/tanl.c: Likewise.
108880         * lib/trigl.c: Likewise.
108881         * m4/math_h.m4: New file.
108882         * MODULES.html.sh (Mathematics): Add math.
108884 2007-02-17  Bruno Haible  <bruno@clisp.org>
108886         * modules/wctype-tests: New file.
108887         * tests/test-wctype.c: New file.
108889         * modules/wchar-tests: New file.
108890         * tests/test-wchar.c: New file.
108892         * modules/unistd-tests: New file.
108893         * tests/test-unistd.c: New file.
108895         * modules/time-tests: New file.
108896         * tests/test-time.c: New file.
108898         * modules/sysexits-tests: New file.
108899         * tests/test-sysexits.c: New file.
108901         * modules/sys_time-tests: New file.
108902         * tests/test-sys_time.c: New file.
108904         * modules/sys_stat-tests: New file.
108905         * tests/test-sys_stat.c: New file.
108907         * modules/sys_socket-tests: New file.
108908         * tests/test-sys_socket.c: New file.
108910         * modules/sys_select-tests: New file.
108911         * tests/test-sys_select.c: New file.
108913         * modules/string-tests: New file.
108914         * tests/test-string.c: New file.
108916         * modules/stdbool-tests: New file.
108917         * tests/test-stdbool.c: New file.
108919         * modules/netinet_in-tests: New file.
108920         * tests/test-netinet_in.c: New file.
108922         * modules/inttypes-tests: New file.
108923         * tests/test-inttypes.c: New file.
108925         * modules/fcntl-tests: New file.
108926         * tests/test-fcntl.c: New file.
108928         * modules/byteswap-tests: New file.
108929         * tests/test-byteswap.c: New file.
108931         * modules/arpa_inet-tests: New file.
108932         * tests/test-arpa_inet.c: New file.
108934 2007-02-17  Bruno Haible  <bruno@clisp.org>
108936         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
108937         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
108938         if the corresponding module is not enabled. Emit link warnings if
108939         the function is used nevertheless.
108940         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
108941         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
108942         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
108943         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
108944         * modules/inttypes (Depends-on): Add link-warning.
108945         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108946         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
108947         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
108948         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
108949         * modules/imaxdiv (configure.ac): Likewise.
108950         * modules/strtoimax (configure.ac): Likewise.
108951         * modules/strtoumax (configure.ac): Likewise.
108953 2007-02-17  Bruno Haible  <bruno@clisp.org>
108955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
108956         gl_STRING_MODULE_INDICATOR_DEFAULTS.
108957         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
108958         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
108960 2007-02-17  Bruno Haible  <bruno@clisp.org>
108962         * modules/link-warning: New file.
108963         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
108964         * lib/string_.h (GL_LINK_WARNING): Remove definition.
108965         * modules/string (Depends-on): Add link-warning.
108966         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108967         string.h.
108968         * MODULES.html.sh (Support for building libraries and executables): Add
108969         link-warning.
108971 2007-02-17  Bruno Haible  <bruno@clisp.org>
108973         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
108974         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
108975         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
108976         long lines.
108978 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
108979             Bruno Haible  <bruno@clisp.org>
108981         * modules/tmpfile: New file.
108982         * lib/tmpfile.c: New file.
108983         * m4/tmpfile.m4: New file.
108984         * MODULES.html.sh (func_all_modules): New section "Input/output".
108986 2007-02-15  Bruno Haible  <bruno@clisp.org>
108988         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
108989         (supports_delete_on_close): New function.
108990         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
108992 2007-02-14  Bruno Haible  <bruno@clisp.org>
108994         * modules/mbspcasecmp-tests: New file.
108995         * tests/test-mbspcasecmp.sh: New file.
108996         * tests/test-mbspcasecmp.c: New file.
108998         New module mbspcasecmp.
108999         * modules/mbspcasecmp: New file.
109000         * lib/mbspcasecmp.c: New file.
109001         * lib/string_.h (strncasecmp): Change warning message.
109002         (mbspcasecmp): New declaration.
109003         * m4/mbspcasecmp.m4: New file.
109004         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109005         GNULIB_MBSPCASECMP.
109006         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
109007         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
109009 2007-02-14  Bruno Haible  <bruno@clisp.org>
109011         * modules/mbsncasecmp-tests: New file.
109012         * tests/test-mbsncasecmp.sh: New file.
109013         * tests/test-mbsncasecmp.c: New file.
109015         New module mbsncasecmp.
109016         * modules/mbsncasecmp: New file.
109017         * lib/mbsncasecmp.c: New file.
109018         * lib/string_.h (mbsncasecmp): New declaration.
109019         * m4/mbsncasecmp.m4: New file.
109020         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109021         GNULIB_MBSNCASECMP.
109022         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
109023         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
109025 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
109027         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
109028         Verify that it doesn't overlap with our flags.
109029         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
109030         do not have the desired effect in multibyte locales; instead, use
109031         mbscasecmp.
109032         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
109033         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
109034         we don't require GNU fnmatch ourselves (if our users require it, they
109035         should do so explicitly).
109037         Fix regex code so it doesn't rely on strcasecmp.
109038         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
109039         Otherwise, include gnulib's langinfo.h.
109040         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
109041         undesirable behavior in non-C locales.  Instead, rely on localecharset.
109042         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
109043         * modules/regex (FILES): Remove m4/codeset.m4.
109044         (Depends-on): Add localcharset.  Remove strcase.
109046 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109048         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
109049         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
109051 2007-02-13  Bruno Haible  <bruno@clisp.org>
109053         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
109054         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109056 2007-02-12  Bruno Haible  <bruno@clisp.org>
109058         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
109059         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
109060         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
109061         time warning rather than a link error.
109063 2007-02-12  Bruno Haible  <bruno@clisp.org>
109065         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
109066         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
109067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109069 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
109071         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
109072         args, not 2.
109074 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
109076         New module 'time', so that apps can include <time.h> as per
109077         POSIX and GNU instead of separate include files like time_r.h
109078         and timegm.h.  This implementation tries out a simpler approach
109079         for replacing decls in standard include files (as compared to
109080         the string module), somewhat as an experiment.
109082         * config/srclist.txt: Comment out mktime.c for now.
109083         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
109084         since it doesn't apply any more.  Use generic wording instead.
109085         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
109086         'time'.
109087         * lib/time_.h, m4/time_h.m4, modules/time: New files.
109088         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
109089         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
109090         Don't include <sys/types.h>; no longer needed since we assume C89.
109091         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
109092         * lib/strftime.c: Likewise.
109093         * lib/time_r.c: Likewise.
109094         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
109095         * lib/nanosleep.c: Include <time.h> first, to check interface.
109096         * lib/strptime.c: Likewise.
109097         * lib/time_r.c: Likewise.
109098         * lib/timegm.c: Likewise.
109099         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
109100         needed.
109101         * lib/timegm.c: Don't include timegm.h; no longer needed.
109102         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
109103         time.h now handles any problems in that area.
109104         (struct timespec, nanosleep): Remove; time.h now arranges for these.
109105         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
109106         that time.h defines struct timespec.
109107         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
109108         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
109109         handles that.
109110         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
109111         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
109112         needed.  Set REPLACE_LOCALTIME.
109113         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
109114         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
109115         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
109116         nanosleep; time_h.m4 now does that.  Don't require
109117         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
109118         module handles this now.
109119         * modules/getdate (Depends-on): Remove timespec.  Add time.
109120         * modules/nanosleep (Depends-on): Likewise.
109121         * modules/stat-time (Depends-on): Likewise.
109122         * modules/nanosleep (Include): Include time.h, not timespec.h.
109123         * modules/strptime (Files): Remove lib/strptime.h.
109124         (Depends-on): Add extensions, time.
109125         (Include): Include time.h, not strptime.h.
109126         * modules/time_r (Files): Remove lib/time_r.h.
109127         (Depends-on): Add time.
109128         (Include): Include time.h, not time_r.h.
109129         * modules/timegm: Likewise.
109130         * modules/timespec (Description): Now does timespec-related decls
109131         of our own, instead of struct timespec itself.
109132         (Depends-on): Add time; remove extensions.
109133         (Maintainer): Add self.
109134         * modules/utimecmp (Depends-on): Add time; remove timespec.
109135         * modules/utimens (Depends-on): Likewise.
109136         * modules/xnanosleep (Depends-on): Likewise.
109138 2007-02-11  Bruno Haible  <bruno@clisp.org>
109140         * lib/c-strstr.c: Include allocsa.h.
109141         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
109142         * lib/c-strcasestr.c: Include allocsa.h.
109143         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
109144         * lib/strcasestr.c: Include allocsa.h.
109145         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
109146         * lib/mbsstr.c: Include allocsa.h.
109147         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
109148         allocsa/freesa instead of malloc/free.
109149         * lib/mbscasestr.c: Include allocsa.h.
109150         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
109151         allocsa/freesa instead of malloc/free.
109152         * modules/c-strstr (Depends-on): Add allocsa.
109153         * modules/c-strcasestr (Depends-on): Likewise.
109154         * modules/strcasestr (Depends-on): Likewise.
109155         * modules/mbsstr (Depends-on): Likewise.
109156         * modules/mbscasestr (Depends-on): Likewise.
109158 2007-02-11  Bruno Haible  <bruno@clisp.org>
109160         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
109162         * modules/mbsspn-tests: New file.
109163         * tests/test-mbsspn.sh: New file.
109164         * tests/test-mbsspn.c: New file.
109166 2007-02-11  Bruno Haible  <bruno@clisp.org>
109168         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
109170         * modules/mbspbrk-tests: New file.
109171         * tests/test-mbspbrk.sh: New file.
109172         * tests/test-mbspbrk.c: New file.
109174 2007-02-11  Bruno Haible  <bruno@clisp.org>
109176         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
109177         unneeded cast.
109179         * modules/mbscspn-tests: New file.
109180         * tests/test-mbscspn.sh: New file.
109181         * tests/test-mbscspn.c: New file.
109183 2007-02-11  Bruno Haible  <bruno@clisp.org>
109185         * modules/mbscasecmp-tests: New file.
109186         * tests/test-mbscasecmp.sh: New file.
109187         * tests/test-mbscasecmp.c: New file.
109189 2007-02-11  Bruno Haible  <bruno@clisp.org>
109191         Ensure O(n) worst-case complexity of mbscasestr.
109192         * lib/mbscasestr.c: Include stdbool.h.
109193         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
109194         functions.
109195         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
109196         the bookkeeping indicates that it's worth it.
109197         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
109199         * modules/mbscasestr-tests: New file.
109200         * tests/test-mbscasestr1.c: New file.
109201         * tests/test-mbscasestr2.sh: New file.
109202         * tests/test-mbscasestr2.c: New file.
109203         * tests/test-mbscasestr3.sh: New file.
109204         * tests/test-mbscasestr3.c: New file.
109205         * tests/test-mbscasestr4.sh: New file.
109206         * tests/test-mbscasestr4.c: New file.
109207         * m4/locale-tr.m4: New file.
109209 2007-02-11  Bruno Haible  <bruno@clisp.org>
109211         Ensure O(n) worst-case complexity of mbsstr.
109212         * lib/mbsstr.c: Include stdbool.h.
109213         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
109214         functions.
109215         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
109216         bookkeeping indicates that it's worth it.
109217         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
109219         * modules/mbsstr-tests: New file.
109220         * tests/test-mbsstr1.c: New file.
109221         * tests/test-mbsstr2.sh: New file.
109222         * tests/test-mbsstr2.c: New file.
109223         * tests/test-mbsstr3.sh: New file.
109224         * tests/test-mbsstr3.c: New file.
109225         * m4/locale-fr.m4: New file.
109227 2007-02-11  Bruno Haible  <bruno@clisp.org>
109229         * lib/mbsrchr.c (mbsrchr): Fix bug.
109231         * modules/mbsrchr-tests: New file.
109232         * tests/test-mbsrchr.sh: New file.
109233         * tests/test-mbsrchr.c: New file.
109235 2007-02-11  Bruno Haible  <bruno@clisp.org>
109237         * lib/mbschr.c (mbschr): Fix bug.
109239         * modules/mbschr-tests: New file.
109240         * tests/test-mbschr.sh: New file.
109241         * tests/test-mbschr.c: New file.
109242         * m4/locale-zh.m4: New file.
109244 2007-02-11  Bruno Haible  <bruno@clisp.org>
109246         Support for copying multibyte string iterators.
109247         * lib/mbiter.h: Include <string.h>.
109248         (mbiter_multi_copy): New function.
109249         (mbi_copy): New macro.
109250         * lib/mbuiter.h: Include <string.h>.
109251         (mbuiter_multi_copy): New function.
109252         (mbui_copy): New macro.
109254 2007-02-11  Bruno Haible  <bruno@clisp.org>
109256         New module mbslen.
109257         * modules/mbslen: New file.
109258         * lib/mbslen.c: New file.
109259         * lib/string_.h (mbslen): New declaration.
109260         * m4/mbslen.m4: New file.
109261         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109262         GNULIB_MBSLEN.
109263         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
109264         * MODULES.html.sh (Internationalization functions): Add mbslen.
109266 2007-02-11  Bruno Haible  <bruno@clisp.org>
109268         Ensure O(n) worst-case complexity of strcasestr substitute.
109269         * lib/strcasestr.c: Include stdbool.h.
109270         (knuth_morris_pratt): New function.
109271         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
109272         bookkeeping indicates that it's worth it.
109273         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
109275         * modules/strcasestr-tests: New file.
109276         * tests/test-strcasestr.c: New file.
109278 2007-02-11  Bruno Haible  <bruno@clisp.org>
109280         Ensure O(n) worst-case complexity of c_strcasestr.
109281         * lib/c-strcasestr.c: Include stdbool.h, string.h.
109282         (knuth_morris_pratt): New function.
109283         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
109284         the bookkeeping indicates that it's worth it.
109285         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
109287         * modules/c-strcasestr-tests: New file.
109288         * tests/test-c-strcasestr.c: New file.
109290 2007-02-11  Bruno Haible  <bruno@clisp.org>
109292         Ensure O(n) worst-case complexity of c_strstr.
109293         * lib/c-strstr.c: Include stdbool.h, string.h.
109294         (knuth_morris_pratt): New function.
109295         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
109296         bookkeeping indicates that it's worth it.
109297         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
109299         * lib/c-strstr.c: Complete rewrite for maintainability.
109301         * modules/c-strstr-tests: New file.
109302         * tests/test-c-strstr.c: New file.
109304 2007-02-11  Bruno Haible  <bruno@clisp.org>
109306         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
109307         5.2.1 and earlier, whereby \055 was treated just like the range
109308         delimiter '-'.
109309         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
109311 2007-02-08  Bruno Haible  <bruno@clisp.org>
109313         * modules/regex (Depends-on): Add stdbool.
109314         Reported by Dalibor Topic <robilad@kaffe.org>.
109316 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
109318         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
109319         Prefer returning from main to exiting from it.
109320         Remove unnecessary parens after sizeof.
109322 2007-02-05  Bruno Haible  <bruno@clisp.org>
109324         New module mbssep.
109325         * modules/mbssep: New file.
109326         * lib/mbssep.c: New file.
109327         * lib/string_.h (strsep): Add a conditional link warning.
109328         (mbssep): New declaration.
109329         * m4/mbssep.m4: New file.
109330         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109331         GNULIB_MBSSEP.
109332         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
109333         * MODULES.html.sh (Internationalization functions): Add mbssep.
109335 2007-02-05  Bruno Haible  <bruno@clisp.org>
109337         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
109338         Optimize search in case of 1 delimiter.
109340 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
109342         * lib/acl.h: Include sys/types.h before sys/acl.h.
109344 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
109346         Merge upstream fix for glibc bugzilla #3957:
109348         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
109350         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
109351         bit for RE_HAT_LISTS_NOT_NEWLINE.
109352         (build_charclass_op): Remove bogus comment.
109354 2007-02-05  Simon Josefsson  <simon@josefsson.org>
109356         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
109358 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
109360         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
109361         * lib/memmem.c [!defined _LIBC]: Include config.h.
109363 2007-02-04  Bruno Haible  <bruno@clisp.org>
109365         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
109366         warning message.
109368 2007-02-04  Bruno Haible  <bruno@clisp.org>
109370         New module mbstok_r.
109371         * modules/mbstok_r: New file.
109372         * lib/mbstok_r.c: New file.
109373         * lib/string_.h (strtok_r): Change argument names to match the
109374         comments. Add a conditional link warning.
109375         (mbstok_r): New declaration.
109376         * m4/mbstok_r.m4: New file.
109377         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109378         GNULIB_MBSTOK_R.
109379         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
109380         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
109382 2007-02-04  Bruno Haible  <bruno@clisp.org>
109384         New module mbsspn.
109385         * modules/mbsspn: New file.
109386         * lib/mbsspn.c: New file.
109387         * lib/string_.h (strspn): Add a conditional link warning.
109388         (mbsspn): New declaration.
109389         * m4/mbsspn.m4: New file.
109390         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109391         GNULIB_MBSSPN.
109392         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
109393         * MODULES.html.sh (Internationalization functions): Add mbsspn.
109395 2007-02-04  Bruno Haible  <bruno@clisp.org>
109397         New module mbspbrk.
109398         * modules/mbspbrk: New file.
109399         * lib/mbspbrk.c: New file.
109400         * lib/string_.h (strpbrk): Add a conditional link warning.
109401         (mbspbrk): New declaration.
109402         * m4/mbspbrk.m4: New file.
109403         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109404         GNULIB_MBSPBRK.
109405         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
109406         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
109408 2007-02-04  Bruno Haible  <bruno@clisp.org>
109410         New module mbscspn.
109411         * modules/mbscspn: New file.
109412         * lib/mbscspn.c: New file.
109413         * lib/string_.h (strcspn): Add a conditional link warning.
109414         (mbscspn): New declaration.
109415         * m4/mbscspn.m4: New file.
109416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109417         GNULIB_MBSCSPN.
109418         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
109419         * MODULES.html.sh (Internationalization functions): Add mbscspn.
109421 2007-02-04  Bruno Haible  <bruno@clisp.org>
109423         New module mbscasestr, reduced goal of strcasestr.
109424         * modules/mbscasestr: New file.
109425         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
109426         (mbscasestr): Renamed from strcasestr.
109427         * lib/strcasestr.c: Don't include mbuiter.h.
109428         (strcasestr): Remove support for multibyte locales.
109429         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
109430         Change the conditional link warning.
109431         (mbscasestr): New declaration.
109432         * m4/mbscasestr.m4: New file.
109433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
109434         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
109435         REPLACE_STRCASESTR.
109436         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
109437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
109438         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
109439         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
109440         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
109441         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
109442         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
109443         (Depends-on): Remove mbuiter.
109444         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
109446 2007-02-04  Bruno Haible  <bruno@clisp.org>
109448         Simplify handling of strncasecmp.
109449         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
109450         the conditional link warning.
109451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
109452         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
109453         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
109454         * modules/strcase (configure.ac): Don't invoke
109455         gl_STRING_MODULE_INDICATOR.
109456         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
109458 2007-02-04  Bruno Haible  <bruno@clisp.org>
109460         New module mbscasecmp, reduced goal of strcasecmp.
109461         * modules/mbscasecmp: New file.
109462         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
109463         (mbscasecmp): Renamed from strcasecmp.
109464         * lib/strcasecmp.c: Don't include mbuiter.h.
109465         (strcasecmp): Remove support for multibyte locales.
109466         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
109467         Change the conditional link warning.
109468         (mbscasecmp): New declaration.
109469         * m4/mbscasecmp.m4: New file.
109470         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
109471         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
109472         REPLACE_STRCASECMP.
109473         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
109474         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109475         GNULIB_MBSCASECMP.
109476         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
109477         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
109478         * modules/strcase (Files): Remove m4/mbrtowc.m4.
109479         (Depends-on): Remove mbuiter.
109480         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
109482 2007-02-04  Bruno Haible  <bruno@clisp.org>
109484         New module mbsstr. Remove module strstr.
109485         * modules/mbsstr: New file.
109486         * modules/strstr: Remove file.
109487         * lib/mbsstr.c: Renamed from lib/strstr.c.
109488         (mbsstr): Renamed from strstr.
109489         * lib/string_.h (strstr): Remove declaration. Change the conditional
109490         link warning.
109491         (mbsstr): New declaration.
109492         * m4/mbsstr.m4: New file.
109493         * m4/strstr.m4: Remove file.
109494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
109495         REPLACE_STRSTR.
109496         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
109497         Don't initialize GNULIB_STRSTR.
109498         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
109499         substitute GNULIB_STRSTR and REPLACE_STRSTR.
109500         * MODULES.html.sh (Internationalization functions): Add mbsstr.
109501         (Support for systems lacking ANSI C 89): Remove strstr.
109503 2007-02-04  Bruno Haible  <bruno@clisp.org>
109505         New module mbsrchr.
109506         * modules/mbsrchr: New file.
109507         * lib/mbsrchr.c: New file.
109508         * lib/string_.h (strrchr): Add a conditional link warning.
109509         (mbsrchr): New declaration.
109510         * m4/mbsrchr.m4: New file.
109511         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109512         GNULIB_MBSRCHR.
109513         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
109514         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
109516 2007-02-04  Bruno Haible  <bruno@clisp.org>
109518         New module mbschr.
109519         * modules/mbschr: New file.
109520         * lib/mbschr.c: New file.
109521         * lib/string_.h (strchr): Add a conditional link warning.
109522         (mbschr): New declaration.
109523         * m4/mbschr.m4: New file.
109524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
109525         GNULIB_MBSCHR.
109526         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
109527         * MODULES.html.sh (Internationalization functions): Add mbschr.
109529 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
109531         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
109533         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
109535 2007-02-04  Bruno Haible  <bruno@clisp.org>
109537         New module description section 'configure.ac-early'.
109538         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
109539         (func_get_autoconf_early_snippet): New function.
109540         (func_import, func_create_testdir): Use it. Remove special cases for
109541         modules 'extensions' and 'lock'.
109542         * modules/extensions (configure.ac-early): Require
109543         gl_USE_SYSTEM_EXTENSIONS.
109544         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
109546 2007-02-04  Bruno Haible  <bruno@clisp.org>
109548         Make use of gcj-4.3's -fsource and -ftarget option.
109549         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
109550         and if so try the options -fsource and -ftarget.
109551         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
109552         source_version, ftarget_option, target_version arguments.
109553         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
109554         (is_envjavac_oldgcj_14_14_usable): Renamed from
109555         is_envjavac_gcj_14_14_usable.
109556         (is_envjavac_oldgcj_14_13_usable): Renamed from
109557         is_envjavac_gcj_14_13_usable.
109558         (is_gcj_present): Update.
109559         (is_gcj_43, is_gcj43_usable): New functions.
109560         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
109561         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
109562         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
109563         try the options -fsource and -ftarget.
109565 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
109567         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
109568         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
109569         larger value.
109571 2007-02-03  Jim Meyering  <jim@meyering.net>
109573         Give tools a better chance to allocate space for very large buffers.
109574         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
109576         Make pwd and readlink work also when run with an unreadable parent dir
109577         on systems with openat support.
109578         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
109579         provided getcwd function, even when we have openat support.
109580         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
109582 2007-02-02  Bruno Haible  <bruno@clisp.org>
109584         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
109585         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
109586         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
109587         portability problems if one of these functions is only used on specific
109588         platforms.
109589         Reported by Paul Eggert.
109591 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
109593         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
109594         is causing more trouble than it's curing.
109595         * lib/regex_internal.h (__mempcpy): Remove.
109596         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
109597         (and make the code a tad smaller to boot).
109598         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
109600 2007-02-02  Jim Meyering  <jim@meyering.net>
109602         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
109603         section, not in the Makefile.am: one.
109605 2007-02-02  Eric Blake  <ebb9@byu.net>
109607         * lib/strchrnul.c: Always include config.h first.
109609         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
109610         gnulib strstr is not necessary here.
109612 2007-02-02  Simon Josefsson  <simon@josefsson.org>
109614         * m4/socklen.m4: Fix typo.
109616 2007-02-02  Eric Blake  <ebb9@byu.net>
109618         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
109619         * modules/netinet_in (Makefile.am): Likewise.
109621 2007-02-01  Bruno Haible  <bruno@clisp.org>
109623         * lib/string_.h (GL_LINK_WARNING): New macro.
109624         (strcasecmp, strstr, strcasestr): If provided by the system,
109625         conditionally define as a macro that leads to a warning instead of to
109626         an error.
109627         (strncasecmp): Conditionally define as a macro that leads to a warning.
109629 2007-02-01  Karl Berry  <karl@gnu.org>
109631         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
109633 2007-02-01  Bruno Haible  <bruno@clisp.org>
109635         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
109636         renamings.
109638 2007-02-01  Eric Blake  <ebb9@byu.net>
109640         * modules/regex (Depends-on): Revert dependence on mempcpy.
109641         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
109642         module's definition of mempcpy.
109643         Reported by Paul Eggert.
109645 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
109647         * lib/string_.h: If the gnulib module XYZ is not present, undefine
109648         the symbol XYZ before redefining it.  This fixes a problem with
109649         programs that don't use XYZ, when compiled on systems that define
109650         XYZ to something else.
109652 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
109654         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
109655         occurs when "mkdir -m foo" creates a setgid directory that is (1)
109656         writeable to group or other and (2) is intended to have a special
109657         mode bit that is set or cleared.  In such a case, the directory
109658         should be neither group- nor other-writeable until the special
109659         mode bits are right.
109661 2007-01-31  Eric Blake  <ebb9@byu.net>
109663         * modules/mountlist (Depends-on): Add strstr.
109665         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
109666         bug.
109667         * modules/string (Makefile.am): Remove redundant replacement.
109668         * modules/regex (Depends-on): Add mempcpy.
109670 2007-01-31  Bruno Haible  <bruno@clisp.org>
109672         New module description field 'Link'.
109673         * gnulib-tool (func_usage): Document --extract-link-directive.
109674         (sed_extract_prog): Recognize 'Link' directive.
109675         (func_get_link_directive): New function.
109676         (func_import): Show summary of link directives.
109677         Handle --extract-link-directive option.
109678         * modules/acl (Link): New section.
109679         * modules/clock-time (Link): New section.
109680         * modules/euidaccess (Link): New section.
109681         * modules/gettext (Link): New section.
109682         * modules/iconv (Link): New section.
109683         * modules/lock (Link): New section.
109684         * modules/nanosleep (Link): New section.
109685         * modules/readline (Link): New section.
109687 2007-01-27  Bruno Haible  <bruno@clisp.org>
109689         Enforce the use of gnulib modules for unportable <string.h> functions.
109690         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
109691         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
109692         (gl_HEADER_STRING_H_BODY): Require it.
109693         * lib/string_.h: If the gnulib module XYZ is not present, redefine
109694         the symbol XYZ to one that gives a link error.
109695         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
109696         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
109697         * modules/mempcpy (configure.ac): Likewise.
109698         * modules/memrchr (configure.ac): Likewise.
109699         * modules/stpcpy (configure.ac): Likewise.
109700         * modules/stpncpy (configure.ac): Likewise.
109701         * modules/strcase (configure.ac): Likewise.
109702         * modules/strcasestr (configure.ac): Likewise.
109703         * modules/strchrnul (configure.ac): Likewise.
109704         * modules/strdup (configure.ac): Likewise.
109705         * modules/strndup (configure.ac): Likewise.
109706         * modules/strnlen (configure.ac): Likewise.
109707         * modules/strpbrk (configure.ac): Likewise.
109708         * modules/strsep (configure.ac): Likewise.
109709         * modules/strstr (configure.ac): Likewise.
109710         * modules/strtok_r (configure.ac): Likewise.
109712 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
109714         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
109716 2007-01-30  Jim Meyering  <jim@meyering.net>
109718         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
109720 2007-01-29  Bruno Haible  <bruno@clisp.org>
109722         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
109723         * lib/execute.c: Likewise.
109724         * lib/pipe.c: Likewise.
109725         * lib/printf-args.h: Likewise.
109726         * lib/printf-args.c: Likewise.
109727         * lib/printf-parse.c: Likewise.
109728         * lib/vasnprintf.c: Likewise.
109730 2007-01-29  Eric Blake  <ebb9@byu.net>
109732         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
109733         declaration.
109735 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
109737         * lib/strptime.h (strptime): Use 'restrict' for args where
109738         POSIX requires this.
109739         * lib/strptime.c (strptime): Likewise.
109740         Change license notice from LGPL to GPL, since gnulib-tool will
109741         change this as needed.
109742         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
109743         defined.
109744         Include "strptime.h" first, to check interface.
109745         Do not #undef _LIBC and _NL_CURRENT.
109746         Do not include <stdlib.h>; no longer needed.
109747         Include "time_r.h" and declare ptime_locale_status
109748         only if _LIBC is not defined.
109749         (__P): Remove unused macro.
109750         (match_string): Bring back glibc version, but use it only if _LIBC
109751         is defined.
109752         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
109753         Remove unnecessary assertion and abort() call.
109754         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
109755         * m4/strptime.m4: Fix serial number comment.
109756         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
109757         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
109758         (Depends-on): Add time_r.
109760 2007-01-29  Bruno Haible  <bruno@clisp.org>
109762         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
109763         strptime.
109764         * modules/strptime (Depends-on): Add stdbool.
109765         * lib/strptime.h: Include <time.h> always. Add comments.
109767 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
109769         * modules/strptime: New file.
109770         * lib/strptime.h: New file.
109771         * lib/strptime.c: New file.
109772         * m4/strptime.m4: New file.
109774 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
109776         * MODULES.html.sh: New module mpsort.
109777         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
109779         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
109780         a circularity problem with HP-UX ia64 reported by Bob Proulx in
109781         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
109782         All uses changed.
109783         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
109784         All uses changed.
109785         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
109786         to _Restrict_.
109787         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
109788         the parameter matches the prototype.
109790 2007-01-28  Jim Meyering  <jim@meyering.net>
109792         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
109793         sys/time.h here, reverting that part of the previous patch:
109794         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
109796 2007-01-28  Bruno Haible  <bruno@clisp.org>
109798         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
109799         value of $(SYS_TIME_H).
109800         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
109801         remove it conditionally, too. [added by Jim Meyering]
109802         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
109803         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109804         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
109805         GETTIMEOFDAY_REPLACEMENT to 1.
109807 2007-01-28  Bruno Haible  <bruno@clisp.org>
109809         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
109810         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
109811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
109812         Set UNISTD_H instead of UNISTD_H2.
109813         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
109815 2007-01-28  Bruno Haible  <bruno@clisp.org>
109817         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
109818         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
109820 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109822         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
109823         (func_create_testdir): Ensure C locale for `grep' and `tr'
109824         character ranges.
109825         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
109826         ACLOCAL_AMFLAGS parsing state machine.
109828 2007-01-27  Bruno Haible  <bruno@clisp.org>
109830         * modules/unistr/base: Update.
109832 2007-01-27  Bruno Haible  <bruno@clisp.org>
109834         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
109835         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
109836         * modules/unistr/u32-mbtouc-unsafe: Renamed from
109837         modules/unistr/u32-mbtouc.
109838         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
109839         * lib/unistr.h: Update.
109840         * lib/linebreak.c: Update.
109841         * modules/unistr/u32-mbtouc: Renamed from
109842         modules/unistr/u32-mbtouc-safe.
109843         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
109844         * lib/unistr.h: Update.
109845         * lib/unistr/u32-to-u8.c: Update.
109846         * lib/unistr/u32-to-u16.c: Update.
109848 2007-01-27  Bruno Haible  <bruno@clisp.org>
109850         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
109851         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
109852         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
109853         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
109854         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
109855         * modules/unistr/u16-mbtouc-unsafe: Renamed from
109856         modules/unistr/u16-mbtouc.
109857         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
109858         * lib/unistr.h: Update.
109859         * lib/linebreak.c: Update.
109860         * modules/linebreak: Update.
109861         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
109862         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
109863         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
109864         * modules/unistr/u16-mbtouc: Renamed from
109865         modules/unistr/u16-mbtouc-safe.
109866         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
109867         * lib/unistr.h: Update.
109868         * lib/unistr/u16-to-u8.c: Update.
109869         * modules/unistr/u16-to-u8: Update.
109870         * lib/unistr/u16-to-u32.c: Update.
109871         * modules/unistr/u16-to-u32: Update.
109873 2007-01-27  Bruno Haible  <bruno@clisp.org>
109875         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
109876         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
109877         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
109878         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
109879         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
109880         * modules/unistr/u8-mbtouc-unsafe: Renamed from
109881         modules/unistr/u8-mbtouc.
109882         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
109883         * lib/unistr.h: Update.
109884         * lib/striconveh.c: Update.
109885         * modules/striconveh: Update.
109886         * lib/linebreak.c: Update.
109887         * modules/linebreak: Update.
109888         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
109889         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
109890         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
109891         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
109892         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
109893         * lib/unistr.h: Update.
109894         * lib/striconveh.c: Update.
109895         * modules/striconveh: Update.
109896         * lib/unistr/u8-to-u16.c: Update.
109897         * modules/unistr/u8-to-u16: Update.
109898         * lib/unistr/u8-to-u32.c: Update.
109899         * modules/unistr/u8-to-u32: Update.
109901 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109903         Sync from Libtool.
109904         * lib/argz.c: Do not include strings.h nor memory.h, include
109905         string.h unconditionally.  Patch by Simon Josefsson.
109907 2007-01-27  Bruno Haible  <bruno@clisp.org>
109909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
109910         from gl_HEADER_STRING_H_BODY.
109911         (gl_HEADER_STRING_H_BODY): Require it.
109912         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
109913         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
109914         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
109915         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
109916         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
109917         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
109918         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
109919         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
109920         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
109921         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
109922         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
109923         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
109924         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
109925         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
109926         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
109928 2007-01-27  Bruno Haible  <bruno@clisp.org>
109930         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
109931         check_PROGRAMS into noinst_PROGRAMS.
109932         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
109933         check_PROGRAMS in this case.
109934         (func_import): Set for_test to false.
109935         (func_create_testdir): Set for_test to true.
109937 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109938             Bruno Haible  <bruno@clisp.org>
109940         * modules/strcasestr (Files): Remove lib/strcasestr.h.
109941         (Depends-on): Add string.
109942         (Includes): Use <string.h> instead of strcasestr.h.
109943         * modules/string (Makefile.am): Also substitute the value of
109944         REPLACE_STRCASESTR.
109945         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
109946         assume strcasestr is declared in <string.h> not <strings.h>. Also
109947         set REPLACE_STRCASESTR.
109948         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
109949         REPLACE_STRCASESTR.
109950         * lib/strcasestr.h: Remove file.
109951         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
109952         * lib/string_.h (strcasestr): New declaration.
109954 2007-01-27  Bruno Haible  <bruno@clisp.org>
109956         * lib/string_.h: Use 'extern'.
109958 2007-01-27  Jim Meyering  <jim@meyering.net>
109960         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
109961         of set-but-not-used local, "q".
109963         * lib/mempcpy.c: Include <config.h> before <string.h>.
109964         This fixes a compilation error on HP-UX, due to the system's
109965         "restrict"-using mempcpy prototype.
109967 2007-01-26  Bruno Haible  <bruno@clisp.org>
109969         Small optimization.
109970         * lib/javacomp.c: Include c-strstr.h.
109971          (is_envjavac_gcj): Use c_strstr instead of strstr.
109972         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
109974 2007-01-26  Bruno Haible  <bruno@clisp.org>
109976         * MODULES.html.sh (Unicode string functions): Add the new modules.
109978         * modules/uniconv/u32-strconv-to-locale: New file.
109979         * lib/uniconv/u32-strconv-to-locale.c: New file.
109981         * modules/uniconv/u16-strconv-to-locale: New file.
109982         * lib/uniconv/u16-strconv-to-locale.c: New file.
109984         * modules/uniconv/u8-strconv-to-locale: New file.
109985         * lib/uniconv/u8-strconv-to-locale.c: New file.
109987         * modules/uniconv/u32-strconv-from-locale: New file.
109988         * lib/uniconv/u32-strconv-from-locale.c: New file.
109990         * modules/uniconv/u16-strconv-from-locale: New file.
109991         * lib/uniconv/u16-strconv-from-locale.c: New file.
109993         * modules/uniconv/u8-strconv-from-locale: New file.
109994         * lib/uniconv/u8-strconv-from-locale.c: New file.
109996         * modules/uniconv/u32-strconv-to-enc: New file.
109997         * lib/uniconv/u32-strconv-to-enc.c: New file.
109998         * modules/uniconv/u32-strconv-to-enc-tests: New file.
109999         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
110001         * modules/uniconv/u16-strconv-to-enc: New file.
110002         * lib/uniconv/u16-strconv-to-enc.c: New file.
110003         * lib/uniconv/u-strconv-to-enc.h: New file.
110004         * modules/uniconv/u16-strconv-to-enc-tests: New file.
110005         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
110007         * modules/uniconv/u8-strconv-to-enc: New file.
110008         * lib/uniconv/u8-strconv-to-enc.c: New file.
110009         * modules/uniconv/u8-strconv-to-enc-tests: New file.
110010         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
110012         * modules/uniconv/u32-strconv-from-enc: New file.
110013         * lib/uniconv/u32-strconv-from-enc.c: New file.
110014         * modules/uniconv/u32-strconv-from-enc-tests: New file.
110015         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
110017         * modules/uniconv/u16-strconv-from-enc: New file.
110018         * lib/uniconv/u16-strconv-from-enc.c: New file.
110019         * modules/uniconv/u16-strconv-from-enc-tests: New file.
110020         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
110022         * modules/uniconv/u8-strconv-from-enc: New file.
110023         * lib/uniconv/u8-strconv-from-enc.c: New file.
110024         * lib/uniconv/u-strconv-from-enc.h: New file.
110025         * modules/uniconv/u8-strconv-from-enc-tests: New file.
110026         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
110028         * modules/uniconv/u32-conv-from-enc: New file.
110029         * lib/uniconv/u32-conv-from-enc.c: New file.
110030         * modules/uniconv/u32-conv-from-enc-tests: New file.
110031         * tests/uniconv/test-u32-conv-from-enc.c: New file.
110033         * modules/uniconv/u16-conv-from-enc: New file.
110034         * lib/uniconv/u16-conv-from-enc.c: New file.
110035         * lib/uniconv/u-conv-from-enc.h: New file.
110036         * modules/uniconv/u16-conv-from-enc-tests: New file.
110037         * tests/uniconv/test-u16-conv-from-enc.c: New file.
110039         * modules/uniconv/u8-conv-from-enc: New file.
110040         * lib/uniconv/u8-conv-from-enc.c: New file.
110041         * modules/uniconv/u8-conv-from-enc-tests: New file.
110042         * tests/uniconv/test-u8-conv-from-enc.c: New file.
110044         * modules/uniconv/base: New file.
110045         * lib/uniconv.h: New file.
110047 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
110049         * doc/gnulib-tool.texi (Initial import): Update to match current
110050         behavior with strdup module.
110051         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
110052         * lib/memmem.h: Remove; all uses removed.  This is now done
110053         by <string.h>.
110054         * lib/mempcpy.h: Likewise.
110055         * lib/memrchr.h: Likewise.
110056         * lib/stpcpy.h: Likewise.
110057         * lib/stpncpy.h: Likewise.
110058         * lib/strcase.h: Likewise.
110059         * lib/strchrnul.h: Likewise.
110060         * lib/strdup.h: Likewise.
110061         * lib/strndup.h: Likewise.
110062         * lib/strnlen.h: Likewise.
110063         * lib/strpbrk.h: Likewise.
110064         * lib/strsep.h: Likewise.
110065         * lib/strstr.h: Likewise.
110066         * lib/strtok_r.h: Likewise.
110067         * lib/string_.h: New file.
110068         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
110069         Rely on <string.h> instead.
110070         * lib/canon-host.c: Likewise.
110071         * lib/chdir-long.c: Likewise.
110072         * lib/concatpath.c: Likewise.
110073         * lib/exclude.c: Likewise.
110074         * lib/fchdir.c: Likewise.
110075         * lib/getaddrinfo.c: Likewise.
110076         * lib/getcwd.c: Likewise.
110077         * lib/getsubopt.c: Likewise.
110078         * lib/glob.c: Likewise.
110079         * lib/hard-locale.c: Likewise.
110080         * lib/iconvme.c: Likewise.
110081         * lib/javacomp.c: Likewise.
110082         * lib/mempcpy.c: Likewise.
110083         * lib/memrchr.c: Likewise.
110084         * lib/regex_internal.h: Likewise.
110085         * lib/stpncpy.c: Likewise.
110086         * lib/strcasecmp.c: Likewise.
110087         * lib/strchrnul.c: Likewise.
110088         * lib/strdup.c: Likewise.
110089         * lib/striconv.c: Likewise.
110090         * lib/striconveh.c: Likewise.
110091         * lib/striconveha.c: Likewise.
110092         * lib/strncasecmp.c: Likewise.
110093         * lib/strndup.c: Likewise.
110094         * lib/strnlen.c: Likewise.
110095         * lib/strsep.c: Likewise.
110096         * lib/strstr.c: Likewise.
110097         * lib/strtok_r.c: Likewise.
110098         * lib/userspec.c: Likewise.
110099         * lib/w32spawn.h: Likewise.
110100         * lib/xstrndup.c: Likewise.
110101         * lib/mountlist.c (strstr): Remove decl.
110102         * m4/string_h.m4: New file.
110103         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
110104         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
110105         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
110106         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
110107         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
110108         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
110109         Set REPLACE_STRCASECMP if necessary.
110110         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
110111         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
110112         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
110113         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
110114         HAVE_DECL_STRDUP if necessary.
110115         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
110116         since gl_FUNC_STRNDUP does that now.
110117         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
110118         Check for decl here...
110119         (gl_PREREQ_STRNLEN): ... not here.
110120         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
110121         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
110122         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
110123         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
110124         necessary.
110125         * modules/string: New file.
110126         * modules/memmem (Files): Remove special-purpose include file.
110127         (Depends-on): Add string.
110128         (Include): Include <string.h>, not the removed file.
110129         * modules/mempcpy: Likewise.
110130         * modules/memrchr: Likewise.
110131         * modules/stpcpy: Likewise.
110132         * modules/stpncpy: Likewise.
110133         * modules/strcase: Likewise.
110134         * modules/strchrnul: Likewise.
110135         * modules/strdup: Likewise.
110136         * modules/strndup: Likewise.
110137         * modules/strnlen: Likewise.
110138         * modules/strpbrk: Likewise.
110139         * modules/strsep: Likewise.
110140         * modules/strstr: Likewise.
110141         * modules/strtok_r: Likewise.
110142         * tests/test-dirname.c: Don't include "strdup.h", since
110143         <string.h> now suffices.
110144         * tests/test-memmem.c: Don't include "memmem.h", since
110145         <string.h> now suffices.
110147 2007-01-25  Bruno Haible  <bruno@clisp.org>
110149         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
110150         *resultp is 0.
110152         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
110153         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
110154         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
110155         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
110157         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
110158         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
110159         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
110160         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
110161         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
110162         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
110164 2007-01-24  Bruno Haible  <bruno@clisp.org>
110166         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
110167         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
110168         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
110169         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
110170         gl_FUNC_FTS_CORE.
110171         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
110172         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
110173         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
110174         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
110175         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
110176         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
110177         gl_FUNC_FCHOWNAT.
110178         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
110179         gl_FUNC_STRFTIME.
110180         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
110181         Reported by Ralf Wildenhues.
110183 2007-01-24  Bruno Haible  <bruno@clisp.org>
110185         Drop AC_REQUIRE calls that are redundant with the module dependencies.
110186         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
110187         gl_GETADDRINFO.
110188         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
110189         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
110190         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
110192 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
110194         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
110195         Don't use 'exit'; just return from 'main'.
110196         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
110198         * lib/fnmatch_.h: Readjust white space and comments to match
110199         glibc, to avoid spurious diffs.
110201 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
110203         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
110204         2004-12-01 change by Jakub Jelinek, since this code won't compile
110205         if !LIBC.  Problem reported by Bob Proulx.
110207 2007-01-23  Bruno Haible  <bruno@clisp.org>
110209         * lib/striconveh.c: Include c-strcaseeq.h.
110210         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
110211         * modules/striconveh (Depends-on): Add c-strcaseeq.
110213 2007-01-23  Bruno Haible  <bruno@clisp.org>
110215         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
110217         * modules/c-strcaseeq: New file.
110218         * lib/c-strcaseeq.h: New file.
110220         * modules/streq: New file.
110221         * lib/streq.h: New file.
110223 2007-01-23  Bruno Haible  <bruno@clisp.org>
110225         * modules/striconveha-tests: New file.
110226         * tests/test-striconveha.c: New file.
110228         * lib/striconveha.h: Include <stdbool.h>.
110229         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
110230         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
110231         (mem_iconveha_notranslit): Renamed from mem_iconveha.
110232         (mem_iconveha): New function.
110233         (str_iconveha_notranslit): Renamed from str_iconveha.
110234         (str_iconveha): New function.
110235         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
110236         c-strcase.
110238 2007-01-23  Bruno Haible  <bruno@clisp.org>
110240         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
110241         encodings without forgiving before trying any encoding with handler.
110242         (str_iconveha): Try all encodings without forgiving before trying any
110243         encoding with handler.
110245 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
110247         Import the following changes from libc.
110249         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
110251         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
110253         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
110255         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
110256         normal_bracket label.
110258         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
110260         [BZ #361]
110261         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
110262         to normal_bracket after fetching the next character.
110264 2007-01-22  Bruno Haible  <bruno@clisp.org>
110266         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
110267         argument.
110268         * lib/striconveh.c (iconv_carefully_1): New function.
110269         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
110270         argument.
110271         (str_cd_iconveh): Update.
110272         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
110273         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
110274         * tests/test-striconveh.c (MAGIC): New macro.
110275         (new_offsets): New function.
110276         (main): Test call with and without offsets.
110278 2007-01-22  Bruno Haible  <bruno@clisp.org>
110280         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
110281         * modules/sys_select (Makefile.am): Likewise.
110282         * modules/sys_socket (Makefile.am): Likewise.
110283         * modules/sys_time (Makefile.am): Likewise.
110285 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
110287         * modules/gettimeofday (License): Change from GPL to LGPL, since
110288         gettimeofday is a library function.
110290 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110292         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
110294 2007-01-21  Bruno Haible  <bruno@clisp.org>
110296         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
110298 2007-01-21  Bruno Haible  <bruno@clisp.org>
110300         * modules/striconveha: New file.
110301         * lib/striconveha.h: New file.
110302         * lib/striconveha.c: New file.
110303         * MODULES.html.sh (Internationalization functions): Add striconveha.
110304         * lib/striconv.c (str_iconv): Optimize the case of an empty input
110305         string.
110306         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
110308 2007-01-21  Bruno Haible  <bruno@clisp.org>
110310         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
110311         * lib/striconveh.c (str_iconveh): Likewise.
110313 2007-01-21  Bruno Haible  <bruno@clisp.org>
110315         * lib/striconveh.h (mem_iconveh): New declaration.
110316         * lib/striconveh.c (mem_iconveh): New function.
110317         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
110319 2007-01-21  Bruno Haible  <bruno@clisp.org>
110321         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
110323         * lib/striconveh.h (mem_cd_iconveh): Change specification.
110324         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
110325         original result buffer.
110326         (str_cd_iconveh): Update.
110327         * tests/test-striconveh.c (main): Update.
110329         * lib/striconv.h (mem_cd_iconv): Change specification.
110330         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
110331         result buffer.
110332         (str_cd_iconv): Update.
110333         * tests/test-striconv.c (main): Update.
110335 2007-01-21  Bruno Haible  <bruno@clisp.org>
110337         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
110339 2007-01-20  Jim Meyering  <jim@meyering.net>
110341         * lib/userspec.c (parse_with_separator): If a user or group string
110342         starts with "+", skip the corresponding name-to-ID look-up, since
110343         such a look-up must fail: user and group names may not include "+".
110345 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
110347         * lib/poll.c: Include sys/time.h and time.h unconditionally,
110348         since we now assume the sys_time module.
110349         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
110350         check for sys/time.h; no longer needed.
110351         * modules/poll (Depends-on): Depend on sys_time.
110353 2007-01-18  Bruno Haible  <bruno@clisp.org>
110355         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
110356         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
110358         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
110359         gettimeofday.
110361         * tests/test-gettimeofday.c: Include <time.h>.
110362         (dummy): Remove variable.
110364         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
110365         gl_HEADER_SYS_TIME_H.
110366         (gl_HEADER_SYS_TIME_H): New macro.
110368         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
110369         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110370         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
110371         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
110372         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110373         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
110374         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
110375         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110376         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
110377         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
110378         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110380         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
110381         last change; it caused a compilation error when cross-compiling to
110382         Cygwin.
110384 2007-01-18  Jim Meyering  <jim@meyering.net>
110386         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
110387         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
110388         than the race-prone "test -d sys || mkdir sys".
110389         (configure.ac): Use AC_PROG_MKDIR_P.
110390         * modules/sys_select: Likewise.
110391         * modules/sys_socket: Likewise.
110392         * modules/sys_time: Likewise.
110394 2007-01-18  Eric Blake  <ebb9@byu.net>
110396         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
110397         replace gettimeofday.
110398         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
110399         name, to avoid infinite recursion.
110401 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
110403         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
110404         module sys_time.
110405         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
110406         assume timespec.h defines struct timeval.
110407         * lib/settime.c: Likewise.
110408         * lib/utimens.c: Likewise.
110409         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
110410         since we now assume the gettimeofday module.
110411         * lib/tempname.c (__gen_tempname): Likewise.
110412         * lib/gettimeofday.h: Remove.
110413         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
110414         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
110415         Include <time.h>, for 'time()'.
110416         (localtime_buffer_addr): Also use this workaround if
110417         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
110418         to simplify the uses.  All uses changed.
110419         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
110420         that #undef is inside {}, and 'const' follows type name consistently.
110421         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
110422         (gettimeofday): Do not use the maximum possible value for
110423         tv->tv_usec, since that might break usages other than ls.c.
110424         Instead, we'll leave ls.c alone.  This undoes today's patch
110425         by Bruno.  Add a compile-time warning for 1s-clock resolution;
110426         we've never observed the problem but might as well keep the
110427         canary.
110428         * lib/nanosleep.c: Include timespec.h first, for interface check.
110429         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
110430         now assume the sys_time module.
110431         * lib/tempname.c: Likewise.
110432         * lib/timespec.h: Likewise.
110433         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
110434         needed.
110435         * lib/strftime.c: Likewise.
110436         * lib/timespec.h: Likewise.
110437         * lib/posixtm.c: Include posixtm.h first, for interface check.
110438         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
110439         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
110440         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
110441         * lib/sys_time_.h: New file.
110442         * lib/timespec.h (struct timespec): Use long int, not long.
110443         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
110444         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
110445         Remove obsolescent call to AC_HEADER_TIME.
110446         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
110447         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
110448         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
110449         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
110450         Likewise.
110451         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
110452         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
110453         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
110454         into the sys_time module.  Check for gettimeofday just once.
110455         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
110456         for gettimeofday signature to just check the signature.  Merely
110457         compile it, since linking doesn't test signature.  Improve test for
110458         whether gettimeofday.o is actually needed.
110459         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
110460         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
110461         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
110462         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110463         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
110464         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
110465         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
110466         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
110467         than worrying about sys/time.h.
110468         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
110469         Don't bother worrying about TIME_WITH_SYS_TIME.
110470         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
110471         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
110472         * m4/sys_time_h.m4: New file.
110473         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
110474         Don't include sys/time.h.  Return from main rather than exiting.
110475         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
110476         all uses changed.
110477         * modules/gethrxtime (Depends-on): Add sys_time.
110478         * modules/gettime (Depends-on): Likewise.
110479         * modules/gettimeofday (Depends-on): Likewise.
110480         * modules/nanosleep (Depends-on): Likewise.
110481         * modules/settime (Depends-on): Likewise.
110482         * modules/tempname (Depends-on): Likewise.
110483         * modules/utimens (Depends-on): Likewise.
110484         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
110485         (Include): Change back to <sys/time.h>.
110486         (Maintainer): Add self.
110487         * modules/sys_time: New file.
110488         * modules/tempname (Depends-on): Add gettimeofday.
110489         * tests/test-gettimeofday.c: Include <sys/time.h>
110490         rather than gettimeofday.h.
110492 2007-01-17  Bruno Haible  <bruno@clisp.org>
110494         * gnulib-tool (func_get_license): Revert last patch. Instead, let
110495         the license default to GPL.
110496         (func_create_testdir): Don't complain if a module is LGPL and its
110497         tests module depends on GPLed modules.
110499 2007-01-17  Bruno Haible  <bruno@clisp.org>
110501         * lib/gettimeofday.c (gettimeofday): Add code for the case
110502         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
110503         maximum possible value for tv->tv_usec, rather than the minimum one.
110505 2005-10-08  Martin Lambers  <marlam@marlam.de>
110506 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
110507 2007-01-16  Bruno Haible  <bruno@clisp.org>
110509         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
110510         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
110511         gl_FUNC_GETTIMEOFDAY.
110512         (Include): Add gettimeofday.h.
110513         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
110514         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
110515         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
110516         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
110517         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
110518         * lib/gettimeofday.h: New file.
110519         * lib/gettimeofday.c: Include <sys/timeb.h>.
110520         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
110521         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
110522         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
110523         fall back on time().
110525         * tests/test-gettimeofday.c: New file.
110526         * modules/gettimeofday-tests: New file.
110528 2007-01-16  Eric Blake  <ebb9@byu.net>
110530         * modules/fnmatch (Depends-on): Depend on wchar.
110531         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
110532         * m4/fnmatch.m4: Likewise.
110533         * modules/mbchar (Makefile.am): Assume <wchar.h>.
110534         * m4/mbchar.m4: Likewise.
110535         * modules/mbswidth (Depends-on): Depend on wchar.
110536         * lib/mbswidth.c: Assume <wchar.h>.
110537         * m4/mbswidth.m4: Likewise.
110538         * modules/quotearg (Depends-on): Depend on wchar.
110539         * lib/quotearg.c: Assume <wchar.h>.
110540         * m4/quotearg.m4: Likewise.
110541         * modules/regex (Depends-on): Depend on wchar.
110542         * lib/regex_internal.h: Assume <wchar.h>.
110543         * m4/regex.m4: Likewise.
110544         * modules/stdint (Depends-on): Depend on wchar.
110545         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
110546         * m4/stdint.m4: Likewise.
110547         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
110548         * modules/strftime (Depends-on): Depend on wchar.
110549         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
110550         * modules/strtol (Depends-on): Depend on wchar.
110551         * lib/strtol.c: Assume <wchar.h>.
110552         * modules/wcwidth (Depends-on): Depend on wchar.
110553         * lib/wcwidth.h: Assume <wchar.h>.
110554         * m4/wcwidth.m4: Likewise.
110556 2007-01-16  Bruno Haible  <bruno@clisp.org>
110558         * modules/csharpexec-script: New, created from...
110559         * modules/csharpexec: ... this.
110561 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
110563         * modules/javaexec-script: New, created from...
110564         * modules/javaexec: ... this.
110566 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110568         * modules/poll (Dependencies): Add sys_select.
110570 2007-01-15  Jim Meyering  <jim@meyering.net>
110572         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
110573         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
110574         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
110575         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
110577 2007-01-15  Bruno Haible  <bruno@clisp.org>
110579         * modules/striconveh: New file.
110580         * lib/striconveh.h: New file.
110581         * lib/striconveh.c: New file.
110582         * MODULES.html.sh (Internationalization functions): Add striconveh.
110584         * modules/striconveh-tests: New file.
110585         * tests/test-striconveh.c: New file.
110587 2007-01-15  Bruno Haible  <bruno@clisp.org>
110589         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
110590         not from GNU libiconv or GNU libc.
110592 2007-01-15  Bruno Haible  <bruno@clisp.org>
110594         * doc/gnulib-intro.texi (Copyright): Explain the different license
110595         terms for module descriptions, autoconf macros, tests, documentation.
110597 2007-01-14  Bruno Haible  <bruno@clisp.org>
110599         * modules/striconv-tests: New file.
110600         * tests/test-striconv.c: New file.
110602 2007-01-14  Bruno Haible  <bruno@clisp.org>
110604         * modules/iconv-tests: New file.
110605         * tests/test-iconv.c: New file.
110607 2007-01-14  Bruno Haible  <bruno@clisp.org>
110609         * gnulib-tool (func_get_license): For test modules, use the license of
110610         the main module.
110612 2007-01-14  Bruno Haible  <bruno@clisp.org>
110614         * modules/iconv (Include): Clarify that <iconv.h> can only be included
110615         if iconv is found to exist.
110617 2007-01-14  Bruno Haible  <bruno@clisp.org>
110619         * modules/c-ctype-tests: New file.
110620         * tests/test-c-ctype.c: New file.
110622 2007-01-14  Bruno Haible  <bruno@clisp.org>
110624         * modules/binary-io-tests: New file.
110625         * tests/test-binary-io.sh: New file.
110626         * tests/test-binary-io.c: New file.
110628 2007-01-14  Bruno Haible  <bruno@clisp.org>
110630         * modules/array-oset-tests: New file.
110631         * tests/test-array_oset.c: New file.
110633 2007-01-14  Bruno Haible  <bruno@clisp.org>
110635         * modules/array-list-tests: New file.
110636         * tests/test-array_list.c: New file.
110638 2007-01-14  Bruno Haible  <bruno@clisp.org>
110640         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
110641         and make.
110642         Reported by Simon Josefsson in
110643         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
110645 2007-01-14  Bruno Haible  <bruno@clisp.org>
110647         * modules/allocsa-tests: New file.
110648         * tests/test-allocsa.c: New file.
110650 2007-01-14  Bruno Haible  <bruno@clisp.org>
110652         * modules/fchdir (Depends-on): Add absolute-header.
110653         * modules/unistd (Depends-on): Likewise.
110655 2006-12-30  Bruno Haible  <bruno@clisp.org>
110657         * modules/fchdir: New file.
110658         * modules/unistd (Files): Add lib/unistd_.h.
110659         (Makefile.am): Generate unistd.h from unistd_.h.
110660         * lib/fchdir.c: New file.
110661         * lib/dirent_.h: New file.
110662         * lib/unistd_.h: New file.
110663         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
110664         * m4/fchdir.m4: New file.
110665         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
110666         (gl_HEADER_UNISTD): Invoke it.
110667         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
110668         function.
110669         * lib/backupfile.c (opendir, closedir): Undefine.
110670         * lib/chown.c (open, close): Undefine.
110671         * lib/clean-temp.c (open, close): Undefine.
110672         * lib/copy-file.c (open, close): Undefine.
110673         * lib/execute.c (open, close): Undefine.
110674         * lib/fsusage.c (open, close): Undefine.
110675         * lib/gc-gnulib.c (open, close): Undefine.
110676         * lib/getcwd.c (opendir, closedir): Undefine.
110677         * lib/glob.c (opendir, closedir): Undefine.
110678         * lib/javacomp.c (open, close): Undefine.
110679         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
110680         * lib/openat-proc.c (open, close): Undefine.
110681         * lib/pagealign_alloc.c (open, close): Undefine.
110682         * lib/pipe.c (open, close): Undefine.
110683         * lib/progreloc.c (open, close): Undefine.
110684         * lib/savedir.c (opendir, closedir): Undefine.
110685         * lib/utime.c (open, close): Undefine.
110686         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
110688 2007-01-10  Bruno Haible  <bruno@clisp.org>
110690         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
110692 2007-01-12  Eric Blake  <ebb9@byu.net>
110694         Provide a robust <wchar.h>.  Further simplifications are now
110695         possible in other modules, but not included here.
110696         * modules/wchar: New module.
110697         * m4/wchar.m4: New file.
110698         * lib/wchar_.h: Likewise.
110699         * modules/mbchar (Depends-on): Depend on wchar, as the first use
110700         of the new module.
110701         * MODULES.html.sh (Extended multibyte and wide character utilities):
110702         New section.
110704 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
110706         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
110707         to a reasonable default for memory allocation.
110708         (xreadlink): Don't allocate a huge buffer, to work around a buggy
110709         file system that reports garbage st_size values for symlinks.
110710         Problem reported by Liyang Hu.
110712 2007-01-11  Simon Josefsson  <simon@josefsson.org>
110714         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
110715         Emacs .#* auto-save files).
110717 2007-01-11  Bruno Haible  <bruno@clisp.org>
110719         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
110720         directory.
110722 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
110724         Use @...@ consistently in lib/wctype_.h.
110725         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
110726         on it being set to 1 or 0.
110727         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
110728         go back to AC_SUBSTing it.
110729         * modules/wctype (Makefile.am): Undo previous change.
110731 2007-01-10  Eric Blake  <ebb9@byu.net>
110733         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
110734         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
110735         * modules/wctype (Makefile.am): Likewise.
110736         Reported by Chris McGuire.
110738 2007-01-10  Jim Meyering  <jim@meyering.net>
110740         fts.c: a small readability/maintainability improvement
110741         * lib/fts.c (fts_read): Make this code slightly more readable and
110742         maintainable by hoisting the "sp->fts_cur = p" assignments to
110743         immediately follow the statements that set P.  Derived from
110744         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
110746 2007-01-10  Eric Blake  <ebb9@byu.net>
110748         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
110749         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
110750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110751         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
110752         Reported by Chris McGuire.
110754 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110756         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
110757         in sed script.
110759 2007-01-09  Bruno Haible  <bruno@clisp.org>
110761         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
110762         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
110763         variables.
110764         (func_module): Use them.
110766 2007-01-09  Bruno Haible  <bruno@clisp.org>
110768         * modules/unistr/base: New file.
110769         * lib/unistr.h: New file.
110771         * modules/unistr/u8-to-u16: New file.
110772         * lib/unistr/u8-to-u16.c: New file.
110774         * modules/unistr/u8-to-u32: New file.
110775         * lib/unistr/u8-to-u32.c: New file.
110777         * modules/unistr/u16-to-u8: New file.
110778         * lib/unistr/u16-to-u8.c: New file.
110780         * modules/unistr/u16-to-u32: New file.
110781         * lib/unistr/u16-to-u32.c: New file.
110783         * modules/unistr/u32-to-u8: New file.
110784         * lib/unistr/u32-to-u8.c: New file.
110786         * modules/unistr/u32-to-u16: New file.
110787         * lib/unistr/u32-to-u16.c: New file.
110789         * modules/unistr/u8-check: New file.
110790         * modules/unistr/u16-check: New file.
110791         * modules/unistr/u32-check: New file.
110792         * lib/unistr/u8-check.c: New file.
110793         * lib/unistr/u16-check.c: New file.
110794         * lib/unistr/u32-check.c: New file.
110796         * modules/unistr/u8-chr: New file.
110797         * modules/unistr/u16-chr: New file.
110798         * modules/unistr/u32-chr: New file.
110799         * lib/unistr/u8-chr.c: New file.
110800         * lib/unistr/u16-chr.c: New file.
110801         * lib/unistr/u32-chr.c: New file.
110803         * modules/unistr/u8-cmp: New file.
110804         * modules/unistr/u16-cmp: New file.
110805         * modules/unistr/u32-cmp: New file.
110806         * lib/unistr/u8-cmp.c: New file.
110807         * lib/unistr/u16-cmp.c: New file.
110808         * lib/unistr/u32-cmp.c: New file.
110810         * modules/unistr/u8-cpy: New file.
110811         * modules/unistr/u16-cpy: New file.
110812         * modules/unistr/u32-cpy: New file.
110813         * lib/unistr/u8-cpy.c: New file.
110814         * lib/unistr/u16-cpy.c: New file.
110815         * lib/unistr/u32-cpy.c: New file.
110816         * lib/unistr/u-cpy.h: New file.
110818         * modules/unistr/u8-cpy-alloc: New file.
110819         * modules/unistr/u16-cpy-alloc: New file.
110820         * modules/unistr/u32-cpy-alloc: New file.
110821         * lib/unistr/u8-cpy-alloc.c: New file.
110822         * lib/unistr/u16-cpy-alloc.c: New file.
110823         * lib/unistr/u32-cpy-alloc.c: New file.
110824         * lib/unistr/u-cpy-alloc.h: New file.
110826         * modules/unistr/u8-endswith: New file.
110827         * modules/unistr/u16-endswith: New file.
110828         * modules/unistr/u32-endswith: New file.
110829         * lib/unistr/u8-endswith.c: New file.
110830         * lib/unistr/u16-endswith.c: New file.
110831         * lib/unistr/u32-endswith.c: New file.
110832         * lib/unistr/u-endswith.h: New file.
110834         * modules/unistr/u8-mblen: New file.
110835         * modules/unistr/u16-mblen: New file.
110836         * modules/unistr/u32-mblen: New file.
110837         * lib/unistr/u8-mblen.c: New file.
110838         * lib/unistr/u16-mblen.c: New file.
110839         * lib/unistr/u32-mblen.c: New file.
110841         * modules/unistr/u8-mbtouc: New file.
110842         * modules/unistr/u16-mbtouc: New file.
110843         * modules/unistr/u32-mbtouc: New file.
110844         * lib/unistr/u8-mbtouc.c: New file.
110845         * lib/unistr/u16-mbtouc.c: New file.
110846         * lib/unistr/u32-mbtouc.c: New file.
110848         * modules/unistr/u8-mbtouc-safe: New file.
110849         * modules/unistr/u16-mbtouc-safe: New file.
110850         * modules/unistr/u32-mbtouc-safe: New file.
110851         * lib/unistr/u8-mbtouc-safe.c: New file.
110852         * lib/unistr/u16-mbtouc-safe.c: New file.
110853         * lib/unistr/u32-mbtouc-safe.c: New file.
110855         * modules/unistr/u8-move: New file.
110856         * modules/unistr/u16-move: New file.
110857         * modules/unistr/u32-move: New file.
110858         * lib/unistr/u8-move.c: New file.
110859         * lib/unistr/u16-move.c: New file.
110860         * lib/unistr/u32-move.c: New file.
110861         * lib/unistr/u-move.h: New file.
110863         * modules/unistr/u8-next: New file.
110864         * modules/unistr/u16-next: New file.
110865         * modules/unistr/u32-next: New file.
110866         * lib/unistr/u8-next.c: New file.
110867         * lib/unistr/u16-next.c: New file.
110868         * lib/unistr/u32-next.c: New file.
110870         * modules/unistr/u8-prev: New file.
110871         * modules/unistr/u16-prev: New file.
110872         * modules/unistr/u32-prev: New file.
110873         * lib/unistr/u8-prev.c: New file.
110874         * lib/unistr/u16-prev.c: New file.
110875         * lib/unistr/u32-prev.c: New file.
110877         * modules/unistr/u8-set: New file.
110878         * modules/unistr/u16-set: New file.
110879         * modules/unistr/u32-set: New file.
110880         * lib/unistr/u8-set.c: New file.
110881         * lib/unistr/u16-set.c: New file.
110882         * lib/unistr/u32-set.c: New file.
110883         * lib/unistr/u-set.h: New file.
110885         * modules/unistr/u8-startswith: New file.
110886         * modules/unistr/u16-startswith: New file.
110887         * modules/unistr/u32-startswith: New file.
110888         * lib/unistr/u8-startswith.c: New file.
110889         * lib/unistr/u16-startswith.c: New file.
110890         * lib/unistr/u32-startswith.c: New file.
110891         * lib/unistr/u-startswith.h: New file.
110893         * modules/unistr/u8-stpcpy: New file.
110894         * modules/unistr/u16-stpcpy: New file.
110895         * modules/unistr/u32-stpcpy: New file.
110896         * lib/unistr/u8-stpcpy.c: New file.
110897         * lib/unistr/u16-stpcpy.c: New file.
110898         * lib/unistr/u32-stpcpy.c: New file.
110899         * lib/unistr/u-stpcpy.h: New file.
110901         * modules/unistr/u8-stpncpy: New file.
110902         * modules/unistr/u16-stpncpy: New file.
110903         * modules/unistr/u32-stpncpy: New file.
110904         * lib/unistr/u8-stpncpy.c: New file.
110905         * lib/unistr/u16-stpncpy.c: New file.
110906         * lib/unistr/u32-stpncpy.c: New file.
110907         * lib/unistr/u-stpncpy.h: New file.
110909         * modules/unistr/u8-strcat: New file.
110910         * modules/unistr/u16-strcat: New file.
110911         * modules/unistr/u32-strcat: New file.
110912         * lib/unistr/u8-strcat.c: New file.
110913         * lib/unistr/u16-strcat.c: New file.
110914         * lib/unistr/u32-strcat.c: New file.
110915         * lib/unistr/u-strcat.h: New file.
110917         * modules/unistr/u8-strchr: New file.
110918         * modules/unistr/u16-strchr: New file.
110919         * modules/unistr/u32-strchr: New file.
110920         * lib/unistr/u8-strchr.c: New file.
110921         * lib/unistr/u16-strchr.c: New file.
110922         * lib/unistr/u32-strchr.c: New file.
110924         * modules/unistr/u8-strcmp: New file.
110925         * modules/unistr/u16-strcmp: New file.
110926         * modules/unistr/u32-strcmp: New file.
110927         * lib/unistr/u8-strcmp.c: New file.
110928         * lib/unistr/u16-strcmp.c: New file.
110929         * lib/unistr/u32-strcmp.c: New file.
110931         * modules/unistr/u8-strcpy: New file.
110932         * modules/unistr/u16-strcpy: New file.
110933         * modules/unistr/u32-strcpy: New file.
110934         * lib/unistr/u8-strcpy.c: New file.
110935         * lib/unistr/u16-strcpy.c: New file.
110936         * lib/unistr/u32-strcpy.c: New file.
110937         * lib/unistr/u-strcpy.h: New file.
110939         * modules/unistr/u8-strcspn: New file.
110940         * modules/unistr/u16-strcspn: New file.
110941         * modules/unistr/u32-strcspn: New file.
110942         * lib/unistr/u8-strcspn.c: New file.
110943         * lib/unistr/u16-strcspn.c: New file.
110944         * lib/unistr/u32-strcspn.c: New file.
110945         * lib/unistr/u-strcspn.h: New file.
110947         * modules/unistr/u8-strdup: New file.
110948         * modules/unistr/u16-strdup: New file.
110949         * modules/unistr/u32-strdup: New file.
110950         * lib/unistr/u8-strdup.c: New file.
110951         * lib/unistr/u16-strdup.c: New file.
110952         * lib/unistr/u32-strdup.c: New file.
110953         * lib/unistr/u-strdup.h: New file.
110955         * modules/unistr/u8-strlen: New file.
110956         * modules/unistr/u16-strlen: New file.
110957         * modules/unistr/u32-strlen: New file.
110958         * lib/unistr/u8-strlen.c: New file.
110959         * lib/unistr/u16-strlen.c: New file.
110960         * lib/unistr/u32-strlen.c: New file.
110961         * lib/unistr/u-strlen.h: New file.
110963         * modules/unistr/u8-strmblen: New file.
110964         * modules/unistr/u16-strmblen: New file.
110965         * modules/unistr/u32-strmblen: New file.
110966         * lib/unistr/u8-strmblen.c: New file.
110967         * lib/unistr/u16-strmblen.c: New file.
110968         * lib/unistr/u32-strmblen.c: New file.
110970         * modules/unistr/u8-strmbtouc: New file.
110971         * modules/unistr/u16-strmbtouc: New file.
110972         * modules/unistr/u32-strmbtouc: New file.
110973         * lib/unistr/u8-strmbtouc.c: New file.
110974         * lib/unistr/u16-strmbtouc.c: New file.
110975         * lib/unistr/u32-strmbtouc.c: New file.
110977         * modules/unistr/u8-strncat: New file.
110978         * modules/unistr/u16-strncat: New file.
110979         * modules/unistr/u32-strncat: New file.
110980         * lib/unistr/u8-strncat.c: New file.
110981         * lib/unistr/u16-strncat.c: New file.
110982         * lib/unistr/u32-strncat.c: New file.
110983         * lib/unistr/u-strncat.h: New file.
110985         * modules/unistr/u8-strncmp: New file.
110986         * modules/unistr/u16-strncmp: New file.
110987         * modules/unistr/u32-strncmp: New file.
110988         * lib/unistr/u8-strncmp.c: New file.
110989         * lib/unistr/u16-strncmp.c: New file.
110990         * lib/unistr/u32-strncmp.c: New file.
110992         * modules/unistr/u8-strncpy: New file.
110993         * modules/unistr/u16-strncpy: New file.
110994         * modules/unistr/u32-strncpy: New file.
110995         * lib/unistr/u8-strncpy.c: New file.
110996         * lib/unistr/u16-strncpy.c: New file.
110997         * lib/unistr/u32-strncpy.c: New file.
110998         * lib/unistr/u-strncpy.h: New file.
111000         * modules/unistr/u8-strnlen: New file.
111001         * modules/unistr/u16-strnlen: New file.
111002         * modules/unistr/u32-strnlen: New file.
111003         * lib/unistr/u8-strnlen.c: New file.
111004         * lib/unistr/u16-strnlen.c: New file.
111005         * lib/unistr/u32-strnlen.c: New file.
111006         * lib/unistr/u-strnlen.h: New file.
111008         * modules/unistr/u8-strpbrk: New file.
111009         * modules/unistr/u16-strpbrk: New file.
111010         * modules/unistr/u32-strpbrk: New file.
111011         * lib/unistr/u8-strpbrk.c: New file.
111012         * lib/unistr/u16-strpbrk.c: New file.
111013         * lib/unistr/u32-strpbrk.c: New file.
111014         * lib/unistr/u-strpbrk.h: New file.
111016         * modules/unistr/u8-strrchr: New file.
111017         * modules/unistr/u16-strrchr: New file.
111018         * modules/unistr/u32-strrchr: New file.
111019         * lib/unistr/u8-strrchr.c: New file.
111020         * lib/unistr/u16-strrchr.c: New file.
111021         * lib/unistr/u32-strrchr.c: New file.
111023         * modules/unistr/u8-strspn: New file.
111024         * modules/unistr/u16-strspn: New file.
111025         * modules/unistr/u32-strspn: New file.
111026         * lib/unistr/u8-strspn.c: New file.
111027         * lib/unistr/u16-strspn.c: New file.
111028         * lib/unistr/u32-strspn.c: New file.
111029         * lib/unistr/u-strspn.h: New file.
111031         * modules/unistr/u8-strstr: New file.
111032         * modules/unistr/u16-strstr: New file.
111033         * modules/unistr/u32-strstr: New file.
111034         * lib/unistr/u8-strstr.c: New file.
111035         * lib/unistr/u16-strstr.c: New file.
111036         * lib/unistr/u32-strstr.c: New file.
111037         * lib/unistr/u-strstr.h: New file.
111039         * modules/unistr/u8-strtok: New file.
111040         * modules/unistr/u16-strtok: New file.
111041         * modules/unistr/u32-strtok: New file.
111042         * lib/unistr/u8-strtok.c: New file.
111043         * lib/unistr/u16-strtok.c: New file.
111044         * lib/unistr/u32-strtok.c: New file.
111045         * lib/unistr/u-strtok.h: New file.
111047         * modules/unistr/u8-uctomb: New file.
111048         * modules/unistr/u16-uctomb: New file.
111049         * modules/unistr/u32-uctomb: New file.
111050         * lib/unistr/u8-uctomb.c: New file.
111051         * lib/unistr/u16-uctomb.c: New file.
111052         * lib/unistr/u32-uctomb.c: New file.
111054         * MODULES.html.sh (Unicode string functions): Add the new modules.
111056 2007-01-08  Bruno Haible  <bruno@clisp.org>
111058         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
111059         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
111060         subdirectories.
111062 2007-01-08  Karl Berry  <karl@gnu.org>
111064         * doc/error.texi: mention that main() fns must set program_name
111065         when progname is used.
111067 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
111069         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
111070         WCTYPE_H is empty, for the benefit of builds from non-distclean
111071         directories.  Problem reported by Eric Blake in
111072         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
111074 2007-01-08  Bruno Haible  <bruno@clisp.org>
111076         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
111077         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
111078         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
111079         PROVIDE_CANONICALIZE_FILENAME_MODE.
111080         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
111082 2007-01-08  Bruno Haible  <bruno@clisp.org>
111084         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
111085         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
111086         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
111087         * lib/fts.c: Likewise.
111088         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
111090 2006-12-25  Bruno Haible  <bruno@clisp.org>
111092         * modules/utf8-ucs4-safe: New file.
111093         * lib/utf8-ucs4-safe.h: New file.
111094         * lib/unistr/utf8-ucs4-safe.c: New file.
111096         * modules/utf16-ucs4-safe: New file.
111097         * lib/utf16-ucs4-safe.h: New file.
111098         * lib/unistr/utf16-ucs4-safe.c: New file.
111100         * MODULES.html.sh (Unicode string functions): Add the new modules.
111102 2007-01-08  Bruno Haible  <bruno@clisp.org>
111104         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
111105         (Depends-on): Add unitypes.
111106         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
111107         (u8_mbtouc_aux): Move out to separate file.
111108         (u8_mbtouc): Use ucs4_t, uint8_t types.
111109         * lib/unistr/utf8-ucs4.c: New file.
111111         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
111112         (Depends-on): Add unitypes.
111113         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
111114         (u16_mbtouc_aux): Move out to separate file.
111115         (u16_mbtouc): Use ucs4_t, uint16_t types.
111116         * lib/unistr/utf16-ucs4.c: New file.
111118         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
111119         (Depends-on): Add unitypes.
111120         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
111121         (u8_uctomb_aux): Move out to separate file.
111122         (u8_uctomb): Use ucs4_t, uint8_t types.
111123         * lib/unistr/ucs4-utf8.c: New file.
111125         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
111126         (Depends-on): Add unitypes.
111127         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
111128         (u16_uctomb_aux): Move out to separate file.
111129         (u16_uctomb): Use ucs4_t, uint16_t types.
111130         * lib/unistr/ucs4-utf16.c: New file.
111132 2006-12-25  Bruno Haible  <bruno@clisp.org>
111134         * modules/unitypes: New file.
111135         * lib/unitypes.h: New file.
111136         * MODULES.html.sh (func_all_modules): New section "Unicode string
111137         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
111138         this section. Add unitypes.
111140 2007-01-08  Bruno Haible  <bruno@clisp.org>
111142         Avoid variable names that conflict with those from libtool.
111143         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
111144         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
111145         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
111146         library_names_spec to acl_library_names_spec, hardcode_* to
111147         acl_hardcode_*.
111148         Reported by Ralf Wildenhues.
111150 2007-01-08  Bruno Haible  <bruno@clisp.org>
111152         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
111153         definition.
111154         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
111155         definition.
111156         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
111157         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
111158         definition.
111159         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
111160         definition.
111161         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
111162         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
111163         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
111164         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
111165         definition.
111166         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
111167         definition.
111168         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
111169         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
111170         GC_USE_<algorithm>.
111171         * lib/gc-libgcrypt.c: Likewise.
111172         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
111173         * modules/gc-arctwo (configure.ac): Likewise.
111174         * modules/gc-des (configure.ac): Likewise.
111175         * modules/gc-hmac-md5 (configure.ac): Likewise.
111176         * modules/gc-hmac-sha1 (configure.ac): Likewise.
111177         * modules/gc-md2 (configure.ac): Likewise.
111178         * modules/gc-md4 (configure.ac): Likewise.
111179         * modules/gc-md5 (configure.ac): Likewise.
111180         * modules/gc-random (configure.ac): Likewise.
111181         * modules/gc-rijndael (configure.ac): Likewise.
111182         * modules/gc-sha1 (configure.ac): Likewise.
111184 2007-01-08  Bruno Haible  <bruno@clisp.org>
111186         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
111187         macro definition.
111188         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
111189         definition.
111190         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
111191         definition.
111192         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
111193         * modules/fcntl-safer (configure.ac): Likewise.
111194         * modules/fopen-safer (configure.ac): Likewise.
111195         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
111196         GNULIB_FWRITEERROR macro definition.
111198 2007-01-08  Bruno Haible  <bruno@clisp.org>
111200         * m4/gnulib-common.m4: New file.
111201         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
111202         (func_get_filelist): Add m4/gnulib-common.m4.
111204 2007-01-08  Bruno Haible  <bruno@clisp.org>
111206         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
111207         command.
111209 2007-01-08  Jim Meyering  <jim@meyering.net>
111211         Use a more robust test for a "can't happen" condition.
111212         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
111213         narrowed the st_size value.  Presuming the "can't happen" condition
111214         is true, that narrowing could conceivably convert an invalid st_size
111215         value into a valid one.  Instead, use a change based on Matthew
111216         Woehlke's original patch.
111218         Slight readability improvement: use an assert-like macro
111219         in place of literal "abort ()" uses.
111220         * lib/fts.c (fts_assert): Define.
111221         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
111222         Use this macro instead of a bare 'abort'.
111224 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
111226         Don't worry about using IRIX 5.3's wctype.h broken definitions;
111227         simply work around them.
111228         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
111229         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
111230         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
111231         declaring.
111232         Don't bother to define as macros, since the standard doesn't require it.
111233         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
111234         longer worry about IRIX 5.3.
111235         (HAVE_WCTYPE_CTMP_BUG): Remove.
111237 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
111239         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
111240         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
111241         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
111242         Problems reported by Georg Schwarz for IRIX 5.3.
111244         * gnulib-tool (autoconf_minversion): Take the maximum version number
111245         found, not the minimum.  Problem reported by James Youngman.
111247 2007-01-03  Karl Berry  <karl@gnu.org>
111249         * doc/error.texi: new file, explaining interaction with progname.
111250         * doc/gnulib.texi: include it.  Update copyright.
111252 2007-01-03  Simon Josefsson  <simon@josefsson.org>
111254         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
111255         AC_CANONICAL_HOST, to improve autobuild outputs.
111257 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
111258             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
111260         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
111261         sockets, server sockets, and other file descriptors.  Count errors
111262         to compute the return value.  Reorder the code a bit to be easier
111263         to follow.  Don't set event bits that were not requested (except
111264         POLLERR and POLLHUP).
111266 2007-01-01  Bruno Haible  <bruno@clisp.org>
111268         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
111270 2007-01-03  Jim Meyering  <jim@meyering.net>
111272         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
111274 2007-01-02  Bruno Haible  <bruno@clisp.org>
111276         * modules/settime (Include): Require timespec.h.
111277         * modules/nanosleep (Include): Likewise.
111279 2007-01-01  Bruno Haible  <bruno@clisp.org>
111281         * gnulib-tool (func_emit_copyright_notice): Bump year.
111282         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
111284 2007-01-01  Bruno Haible  <bruno@clisp.org>
111286         Improve support for OpenBSD.
111287         * build-aux/config.rpath (libname_spec): Export.
111288         (library_names_spec): New variable. Export.
111289         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
111290         library_names_spec from the config.rpath output. Locate shared library
111291         through the name pattern in library_names_spec.
111293 2007-01-01  Eric Blake  <ebb9@byu.net>
111295         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
111297 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
111299         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
111300         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
111301         assume the C locale, and avoid an "eval" that could cause trouble.
111302         Problem with SORT reported by Bob Proulx.
111304         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
111305         Define.  Trivial patch from Henning Nielsen Lund, originally
111306         sent to bug-grep@gnu.org today.
111308 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
111310         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
111311         struct stat.  Problem reported by Henning Nielsen Lund.
111312         * lib/acl.c: Include acl.h first, to check interface.  Don't
111313         bother to include sys/types.h and sys/stat.h again.
111315 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
111317         Import the following change from libc; problem reported by
111318         Sven Verdoolaege.
111320         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
111322         [BZ #1373]
111323         * lib/argp.h: Remove __NTH for __argp_usage inline function.
111325 2006-12-28  Jim Meyering  <jim@meyering.net>
111327         * build-aux/announce-gen: Do not assume that the package
111328         builds any of tar.gz, tar.bz2, and .xdelta files.
111329         Suggestion from Simon Josefsson.
111331 2006-12-28  Simon Josefsson  <simon@josefsson.org>
111333         * modules/announce-gen: New file.
111335 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
111337         * lib/mbchar.h: Just include <wctype.h>; the wctype module
111338         handles its gotchas now.
111339         * lib/mbswidth.c: Likewise.
111340         * lib/wcwidth.h: Likewise.
111341         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
111342         and iswcntrl; the wctype module does this stuff now.
111343         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
111344         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
111345         * modules/mbchar (Depends-on): Add wctype.
111346         * modules/mbswidth (Depends-on): Likewise.
111347         * modules/wcwidth (Depends-on): Likewise.
111349 2006-12-27  Eric Blake  <ebb9@byu.net>
111351         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
111352         module uses more than what <wctype.h> is required to provide.
111354 2006-12-26  Eric Blake  <ebb9@byu.net>
111356         * gnulib-tool (sed_extract_prog): Avoid space-tab.
111358 2006-12-26  Eric Blake  <ebb9@byu.net>
111360         * modules/absolute-header: New module.
111361         * modules/fcntl (Depends-on): Depend on it.
111362         * modules/inttypes (Depends-on): Likewise.
111363         * modules/stdint (Depends-on): Likewise.
111364         * modules/sys_stat (Depends-on): Likewise.
111365         * modules/wctype (Depends-on): Likewise.
111366         * MODULES.html.sh (Support for building libraries and
111367         executables): Document it.
111369 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
111371         * gnulib-tool (SED): Remove, undoing previous change.
111372         The problem was that it broke coreutils on Solaris, because
111373         "sed --posix" leaked into a makefile.
111374         (sed): New alias, if 'alias' and GNU sed.
111376 2006-12-24  Jim Meyering  <jim@meyering.net>
111378         Work around an fchownat bug in glibc-2.4:
111379         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
111380         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
111381         in spite of the -P option.
111382         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
111383         New macros.
111384         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
111385         * modules/openat (Files): Add lib/fchownat.c.
111386         * lib/openat.c (fchownat): Don't define here.  Move to...
111387         * lib/fchownat.c: ...this new file.
111389 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
111391         Fix bug reported by Bruno Haible in
111392         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
111393         where quotearg.c didn't compile on Mac OS X 10.2 because it
111394         lacks <wchar.h> and wint_t.
111395         * lib/wctype_.h (__wctype_wint_t): New type.
111396         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
111397         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
111398         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
111399         Arg is now of type __wctype_wint_t, not wint_t.
111400         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
111401         substitute HAVE_WINT_T.
111402         * modules/wctype (Files): Add m4/wint_t.m4.
111403         (wctype.h): Substitute HAVE_WINT_T.
111405 2006-12-23  Bruno Haible  <bruno@clisp.org>
111407         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
111409 2006-12-23  Bruno Haible  <bruno@clisp.org>
111411         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
111412         S_ISLNK.
111413         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
111414         mingw.
111416 2006-12-22  Bruno Haible  <bruno@clisp.org>
111418         * lib/copy-file.c: Include acl.h.
111419         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
111420         Close the file descriptors only after being done with copy_acl.
111421         * modules/copy-file (Depends-on): Add acl.
111423 2006-12-22  Bruno Haible  <bruno@clisp.org>
111425         * gnulib-tool (SED): New variable.
111426         Use $SED instead of sed everywhere.
111428 2006-12-22  Bruno Haible  <bruno@clisp.org>
111430         * modules/no-c++: New file.
111431         * m4/no-c++.m4: New file.
111432         * MODULES.html.sh (Support for building libraries and executables):
111433         Add no-c++.
111435 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
111437         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
111438         Include <limits.h>, and use its INT_MAX to rewrite the
111439         j loop so that it does not overflow 'int'.  Problem reported by
111440         Ralf Wildenhues in
111441         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
111442         Play it safe by shifting left by 1 rather than multiplying by 2,
111443         as GCC is less likely to optimize this away when the value
111444         is signed (when it assumes overflow leads to undefined behavior).
111445         Also, don't assume time_t uses two's complement.
111447 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
111449         * MODULES.html.sh: New module wctype.
111450         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
111451         * lib/fnmatch.c: Don't bother to include <wchar.h> before
111452         <wctype.h>, since the new wctype module should fix this.
111453         * lib/quotearg.c: Include <wctype.h> unconditionally, since
111454         the wctype module should arrange for it.
111455         * lib/regex_internal.h: Likewise.
111456         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
111457         since the wctype module should handle this now.
111458         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
111459         * modules/fnmatch (Depends-on): Add wctype.
111460         * modules/quotearg (Depends-on): Likewise.
111461         * modules/regex (Depends-on): Likewise.
111463 2006-12-19  Bruno Haible  <bruno@clisp.org>
111465         * lib/strdup.h [C++]: Wrap definitions in extern "C".
111466         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
111468 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111470         * modules/savewd (Depends-on): Fix dependency on fcntl.
111472 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
111474         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
111475         conforms to C99, rather than relying on the user's environment
111476         setting of STDINT_H.
111478 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
111479         and Eric Blake  <ebb9@byu.net>
111481         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
111482         This is more consistent with the other defines here.
111483         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
111484         Port to z/OS.  Problem reported by Paul Gilmartin.
111485         Change local vars to use gl_ prefix rather than ac_.
111486         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
111487         with other defines.
111488         * modules/double-slash-root: New module.
111489         * modules/dirname (Files): Remove m4/double-slash-root.m4.
111490         (Depends-on): Add double-slash-root.
111491         * MODULES.html.sh (File system functions): Mention new module.
111493 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
111495         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
111496         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
111497         This is for the benefit of gzip, which doesn't do i18n.
111499 2006-12-12  Jim Meyering  <jim@meyering.net>
111501         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
111502         Reported by Andreas Schwab <schwab@suse.de>.
111504 2006-12-12  Bruno Haible  <bruno@clisp.org>
111506         Merge these changes.
111507         2006-09-05  Bruno Haible  <bruno@clisp.org>
111508         * lib/iconvme.c (iconv_string): No need to save and restore errno when
111509         iconv_alloc succeeded.
111510         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
111511         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
111512         test for " && dest " at the end - dest is always != NULL there. Call
111513         iconv with 4xNULL arguments initially, to reset the state. Call iconv
111514         with 2xNULL arguments, also to flush the state storage. Handle the
111515         IRIX iconv behaviour. Realloc the final result, to throw away unused
111516         memory.
111518 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
111520         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
111521         and fchmodat unconditionally, since glibc 2.4 has them.
111522         Problem reported by Arkadiusz Miskiewicz.
111524 2006-12-10  Bruno Haible  <bruno@clisp.org>
111526         * gnulib-tool (func_import): Show the include files only for those
111527         modules that are copied and specified.
111528         Reported by Karl Berry.
111530 2006-12-08  Jim Meyering  <jim@meyering.net>
111532         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
111533         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
111535         * build-aux/announce-gen: Add two new options, both optional:
111536         --bootstrap-tools=TOOL_LIST
111537               a comma-separated list of tools, e.g.,
111538               autoconf,automake,bison,gnulib
111539         --gnulib-snapshot-date=DATE
111540               if gnulib is in the bootstrap tool list,
111541               then report this as the snapshot date.
111542               If not specified, use the current date/time.
111543               If you specify a date here, be sure it's UTC.
111545 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111547         * tests/test-argp-2.sh: Fix test to match actual output.
111548         (func_compare): Fix sed script to be portable.
111550 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
111552         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
111553         workaround for this case.  It is not autoconfigured now; offhand
111554         it's hard to see how to autoconfigure it.
111556 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
111558         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
111559         a directory that is about to be chowned.  Such a directory's
111560         initial file permissions should permit the owner only and this
111561         should not be changed until after the chown, since the group and
111562         other bits would be incorrect if they granted permission before
111563         the chown.
111565         Fix porting problem for iswctype reported by Georg Schwarz in:
111566         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
111567         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
111568         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
111569         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
111570         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
111572 2006-12-03  Jim Meyering  <jim@meyering.net>
111574         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
111575         p->fts_statp may not yet be defined.
111576         (fts_read): Instead, set it in the caller, once p->fts_statp is
111577         sure to be defined, and corresponds to a top-level directory.
111578         This bug made du -x fail.  Here's the coreutils test case:
111579         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
111580         Reported by Mike Frysinger.
111582 2006-12-01  Jim Meyering  <jim@meyering.net>
111584         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
111585         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
111586         Reported by Simon Josefsson.
111588 2006-11-30  Jim Meyering  <jim@meyering.net>
111590         * m4/warning.m4: Use the all-permissive copyright notice
111591         recommended by RMS (rather than LGPL).
111592         * m4/vararrays.m4: Likewise.
111593         * m4/flexmember.m4: Likewise.
111595 2006-11-29  Bruno Haible  <bruno@clisp.org>
111597         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
111598         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
111599         using +=.
111600         Reported by Simon Josefsson <simon@josefsson.org>.
111602 2006-11-28  James Youngman  <jay@gnu.org>
111604         * README: Advise users that they might find the bug-gnulib@gnu.org
111605         and autotools-announce@gnu.org mailing lists useful.
111607 2006-11-28  Bruno Haible  <bruno@clisp.org>
111609         * m4/ptrdiff_max.m4: Remove file.
111611 2006-11-21  Bruno Haible  <bruno@clisp.org>
111613         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
111614         _AC_COMPUTE_INT.
111615         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111616         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
111617         _AC_COMPUTE_INT.
111618         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111619         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
111620         _AC_COMPUTE_INT.
111621         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111623 2006-11-28  Jim Meyering  <jim@meyering.net>
111625         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
111626         warning from "gcc -Wshadow" about shadowing the builtin.
111628 2006-11-27  Bruno Haible  <bruno@clisp.org>
111630         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
111631         _AC_COMPUTE_INT.
111632         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
111634 2006-11-27  Bruno Haible  <bruno@clisp.org>
111635             Paul Eggert  <eggert@cs.ucla.edu>
111637         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
111639 2006-11-26  Bruno Haible  <bruno@clisp.org>
111641         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
111642         noinst_LTLIBRARIES.
111644 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
111645             Bruno Haible  <bruno@clisp.org>
111647         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
111648         if compiling with "gcc -ansi".
111650 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
111652         Fix some incompatibilities with gcc -ansi -pedantic.
111653         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
111654         if compiling pedantically with GCC, unless it's C99 or later.
111655         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
111656         it mishandles gcc -ansi -pedantic as well.
111657         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
111658         if gcc -pedantic.
111659         * lib/regexec.c (check_node_accept_bytes): Don't use auto
111660         initializers for struct if -pedantic, unless it's C99 or later.
111662 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
111664         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
111665         Don't close an fd more than once. Identical atimes indicate
111666         success, not failure.
111668 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
111670         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
111672 2006-11-23  Jim Meyering  <jim@meyering.net>
111674         * build-aux/announce-gen: New file.  From coreutils.
111676 2006-11-22  Jim Meyering  <jim@meyering.net>
111678         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
111679         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
111680         (fts_read): Use a temporary to narrow the overused st_size member
111681         before using it in a switch statement.  Reported by Matthew Woehlke.
111683         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
111684         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
111686 2006-11-20  Bruno Haible  <bruno@clisp.org>
111688         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
111689         changequote instead of pairs of brackets.
111690         Reported by Andreas Schwab <schwab@suse.de>.
111692 2006-11-21  Jim Meyering  <jim@meyering.net>
111694         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
111695         so as to remain compatible with older compilers.
111696         Patch from Michael Deutschmann.
111698 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
111700         * MODULES.html.sh (File system functions): Add openat.
111702         * lib/openat.h (rpl_fstatat): New macro, if
111703         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
111704         (fstatat): Define to rpl_fstatat under the same conditions,
111705         unless COMPILING_FSTATAT.
111706         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
111707         seems to have the bug.
111708         * lib/fstatat.c: New file.
111709         * modules/openat (Files): Add it.
111711 2006-11-20  Bruno Haible  <bruno@clisp.org>
111713         * Makefile: New file.
111715 2006-11-20  Jim Meyering  <jim@meyering.net>
111717         The beginnings of syntax-related checks for gnulib.
111718         * lib/Makefile: New file.
111719         * lib/t-idcache: New script.  Ensure that the two halves of
111720         idcache.c stay in sync.
111722         * lib/idcache.c: Adjust comments in user- and group- portions to
111723         be more accurate, and to be consistent with one another.
111725 2006-11-20  Jim Meyering  <jim@meyering.net>
111727         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
111728         continue using the flexible array member (thus, this module performs
111729         half as many malloc calls), with the addition that...
111730         (getgroup, getuser): Consistently record a non-match via an empty
111731         "name" string, and map an empty string match to a NULL return value.
111732         * modules/idcache (Depends-on): Re-add flexmember.
111734         * lib/idcache.c (getuser): Remove all uses of the register keyword.
111735         (getuidbyname, getgroup, getgidbyname): Likewise.
111737         Use cleaner syntax: NULL rather than 0.
111738         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
111740 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
111742         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
111743         It mishandled the case where the group was missing.
111744         Problem reported by Greg Schafer.
111745         * modules/idcache: Likewise.
111747 2006-11-18  Jim Meyering  <jim@meyering.net>
111749         * check-module (%exempt_header): Add exception for some
111750         conditionally-included headers.
111752         * modules/i-ring (Depends-on): Add verify.
111753         (License): Change to LGPL.
111755 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
111757         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
111758         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
111759         and inttostr.h.  Use snprintf rather than uinttostr, so that
111760         LGPLed code doesn't depend on GPLed.
111762 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
111764         * modules/inline (License): Change from GPL to LGPL.
111766 2006-11-17  Jim Meyering  <jim@meyering.net>
111768         * modules/d-type (License): Switch to LGPL.
111770 2006-11-15  Bruno Haible  <bruno@clisp.org>
111772         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
111774 2006-11-15  Eric Blake  <ebb9@byu.net>
111776         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
111777         the module dependency.
111779 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111780             Bruno Haible  <bruno@clisp.org>
111782         * gnulib-tool (func_create_testdir): Add license consistency check.
111784 2006-11-15  Eric Blake  <ebb9@byu.net>
111786         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
111787         random "(cached)" in configure output.
111789 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111791         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
111792         test for conforming inttypes.h is both announced and cached.
111794         * MODULES.html.sh (seen_modules, seen_files): New variables.
111795         (func_module): Rewrite to use a few less gnulib-tool and sed
111796         invocations.  Avoid a couple of quadratic algorithms for ...
111797         (missed_modules, missed_files): ... these, with ...
111798         (func_append, func_tmpdir): ... these new functions, from
111799         gnulib-tool.  Analogously, install traps for cleanup.
111801         * tests/test-gc.c (main): Remove unused variables.
111802         * tests/test-read-file.c: Include stdlib.h, for 'free'.
111804 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
111806         * modules/inttostr (License): Change to LGPL.
111808 2006-11-14  Eric Blake  <ebb9@byu.net>
111810         * modules/tempname (License): Change to LGPL.
111812 2006-11-14  Eric Blake  <ebb9@byu.net>
111814         * doc/functions.texi (Function Portability): *printf functions on
111815         Cygwin now understand all POSIX size specifiers.
111817 2006-11-14  Bruno Haible  <bruno@clisp.org>
111819         * modules/c-ctype (License): Change to LGPL.
111821 2006-11-12  Bruno Haible  <bruno@clisp.org>
111823         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
111824         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
111825         for GNOME libraries, for which the include files are installed in
111826         subdirectories of $prefix/include.
111828 2006-11-12  Bruno Haible  <bruno@clisp.org>
111830         * m4/lib-link.m4: Require at least autoconf-2.54.
111831         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
111832         name to underscores for the --with option.
111834 2006-11-13  Bruno Haible  <bruno@clisp.org>
111836         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
111837         the tests directory.
111838         Reported by Ralf Wildenhues.
111840 2006-11-13  Bruno Haible  <bruno@clisp.org>
111842         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
111843         (func_emit_initmacro_end): Undo the override here.
111844         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
111845         Works around the famous automake error in coreutils.
111847 2006-11-13  Eric Blake  <ebb9@byu.net>
111849         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
111850         element, not its node.
111852 2006-11-12  Bruno Haible  <bruno@clisp.org>
111854         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
111855         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
111857 2006-11-12  Bruno Haible  <bruno@clisp.org>
111859         * gnulib-tool: New option --local-symlink.
111860         (func_usage): Document it.
111861         (lsymbolic): New variable.
111862         (func_import, func_create_testdir): If --symlink was not specified,
111863         test whether --local-symlink was specified and the file comes from
111864         the local_gnulib_dir.
111866 2006-11-12  Bruno Haible  <bruno@clisp.org>
111868         * gnulib-tool (func_ln): New function.
111869         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
111871 2006-11-12  Bruno Haible  <bruno@clisp.org>
111873         Finish support for source files in subdirectories.
111874         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
111875         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
111876         AUTOMAKE_OPTIONS.
111877         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
111879 2006-11-12  Bruno Haible  <bruno@clisp.org>
111881         * gnulib-tool (func_get_automake_snippet): Synthesize also an
111882         EXTRA_lib_SOURCES augmentation.
111883         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
111885 2006-11-12  Jim Meyering  <jim@meyering.net>
111887         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
111888         file descriptors.  This also averts a failure on systems with
111889         native openat support when a traversed directory lacks "x" access.
111890         * lib/fts_.h: Include "i-ring.h"
111891         (struct FTS) [fts_fd_ring]: New member.
111892         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
111893         (FCHDIR): Add parentheses.
111894         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
111895         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
111896         When descending, rather than simply closing the previous
111897         fts_cwd_fd value, push that file descriptor onto the ring.
111898         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
111899         (fts_open): Initialize the new fd_ring member.
111900         (fts_close): Clear the ring.
111901         (fts_safe_changedir): When possible, use our new fd_ring to skip
111902         the diropen and fstat and dev/ino comparison that would normally
111903         accompany a virtual `chdir ("..")'.
111905         * modules/fts (Depends-on): Add i-ring.
111906         * modules/i-ring: New module.
111907         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
111908         * m4/i-ring.m4: New file.
111910 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111912         * gnulib-tool (func_create_testdir): Fix replacement of
111913         `build-aux' in configure.ac.  Run autotools in gltests
111914         subdirectory.
111915         (func_create_testdir, func_create_megatestdir, test): There is
111916         no need for '--force' in most autotool invocations in a new
111917         tree.  Actually fail the whole test if any of the tools, or the
111918         configure or make stages fail.
111920         Sync from Automake.
111921         * build-aux/gnupload: Revert last change.  Add pointer to upload
111922         instructions of the GNU Maintenance Instructions.
111923         Suggestion by Karl Berry.
111925 2006-11-10  Jim Meyering  <jim@meyering.net>
111927         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
111929 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111931         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
111932         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
111933         (bind_textdomain_codeset) [! ENABLE_NLS]:
111934         Evaluate all the arguments.  That way, callers get compatible behavior
111935         if the arguments have side effects.  Also, it avoids some GCC
111936         diagnostics in some cases; Joel E. Denny reported problems when Bison
111937         was configured with --enable-gcc-warnigs.
111939 2006-11-10  Jim Meyering  <jim@meyering.net>
111941         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
111942         relevant options in CFLAGS (like -O, -fno-inline) are taken into
111943         account.
111945 2006-11-10  Jim Meyering  <jim@meyering.net>
111947         * modules/inline: New file/module.
111948         * modules/xalloc (Files): Remove m4/inline.m4.
111949         (Depends-on): Add inline, instead.
111950         * modules/oset: Likewise.
111951         * modules/list: Likewise.
111953 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111955         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
111956         Problem reported by Matthew Woehlke.
111958 2006-11-09  Bruno Haible  <bruno@clisp.org>
111960         * lib/tempname.c (gen_tempname): Remove variant that invokes
111961         __gen_tempname.
111962         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
111963         __gen_tempname.
111965 2006-11-08  Bruno Haible  <bruno@clisp.org>
111967         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
111968         to 'yes' instead of 'cross-compiling'.
111970 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
111972         * lib/quotearg.h (quotearg_free): New decl.
111973         * lib/quotearg.c (quotearg_free): New function.
111974         (slot0, nslots, slotvec0, slotvec):
111975         Now file-scope so that quotearg_free can get at them.
111977 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111979         Sync from Automake.
111980         * build-aux/gnupload: Add missing 'gnu' to example URL.
111981         Report by Karl Berry.
111983 2006-11-08  Bruno Haible  <bruno@clisp.org>
111985         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
111986         Suggested by Paul Eggert.
111988 2006-11-08  Jim Meyering  <jim@meyering.net>
111990         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
111991         It's already included if !_LIBC.
111992         (fts_safe_changedir): Add a comment.
111994 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111996         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
111997         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
111998         Matthew Woehlke.
112000         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
112001         definitions up, to avoid colliding with change below.
112002         (static_inline) [HAVE_INLINE]: New macro.
112003         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
112004         Provide extern decls when !HAVE_INLINE.  Do not define unless
112005         static_inline is defined, either by us or by xmalloc.c.  Use
112006         static_inline rather than static inline.
112007         (XCALLOC): Optimize sizeof(T) = 1 case.
112008         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
112010 2006-11-07  Bruno Haible  <bruno@clisp.org>
112012         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
112013         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
112014         AC_C_INLINE.
112015         * modules/xalloc (Files): Add m4/inline.m4.
112017 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112019         * README: Fix typo.
112020         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
112021         (Miscellanous Notes): ...from this.
112023 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
112025         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
112026         Mention that offsetof should be used instead of sizeof.
112027         From Bruno Haible.
112029 2006-11-07  Bruno Haible  <bruno@clisp.org>
112031         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
112033 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
112035         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
112036         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
112037         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
112038         (gl_tree_add_before, gl_tree_add_after):
112039         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
112040         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
112041         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
112042         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
112043         (gl_linked_add_after, gl_linked_add_at): Likewise.
112044         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
112045         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
112046         (gl_tree_add_before, gl_tree_add_after): Likewise.
112047         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
112048         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
112049         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
112051 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112053         * lib/gl_oset.h: Use C comment style, not C++ comment style.
112055 2006-11-06  Bruno Haible  <bruno@clisp.org>
112057         * m4/inline.m4: New file.
112058         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
112059         * modules/list (Files): Add m4/inline.m4.
112060         * modules/oset (Files): Likewise.
112062 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
112064         * lib/idcache.c: Include <stddef.h>, for offsetof.
112065         (struct userid.name): Change from char * to a flexible array member.
112066         All uses changed.
112067         * modules/idcache (Depends-on): Add flexmember.
112069         * MODULES.html.sh (Core language properties): New module flexmember.
112070         * modules/flexmember, m4/flexmember.m4: New files.
112072         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
112073         inline functions that are identical with the old xnmalloc_inline,
112074         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
112075         that we can avoid some unnecessary integer multiplications and
112076         divisions in the common case where the element size is known at
112077         compile time.
112078         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
112079         needed.
112080         (xnboundedmalloc): Remove.
112081         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
112082         arguments, for consistency with rest of this header.
112083         (xcharalloc): Rewrite using XNMALLOC.
112084         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
112085         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
112086         versions have been moved to lib/xalloc.h and renamed to be the
112087         non-*_inline versions.
112088         (xmalloc, xrealloc): Implement without reference to the xnmalloc
112089         and xnrealloc functions, since those functions are now inline and
112090         now call us.
112091         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
112092         renaming described above.
112093         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
112094         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
112095         captures the dependency in AC_C_INLINE.
112097         New module canonicalize-lgpl, proposed by Charles Wilson in
112098         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
112099         with a few small changes afterwards.
112100         * MODULES.html.sh (File system functions): New module
112101         canonicalize-lgpl.
112102         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
112103         and canonicalize_file_name.
112104         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
112105         * modules/canonicalize-lgpl: New files.
112107 2006-11-05  Bruno Haible  <bruno@clisp.org>
112109         * gnulib-tool (func_import, func_create_testdir): Create directories
112110         also for files in subdirectories of lib/.
112112 2006-11-05  Bruno Haible  <bruno@clisp.org>
112114         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
112115         ANSI C compliant.
112117 2006-11-03  Bruno Haible  <bruno@clisp.org>
112119         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
112120         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
112121         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
112122         (xnboundedmalloc): New inline function.
112123         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
112124         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
112125         xmalloc.
112126         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
112127         xmalloc.
112128         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
112129         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
112130         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
112131         xmalloc.
112132         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
112133         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
112134         xmalloc.
112135         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
112136         gl_tree_add_after): Use XMALLOC instead of xmalloc.
112137         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
112138         xmalloc.
112139         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
112140         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
112141         gl_tree_add_after): Use XMALLOC instead of xmalloc.
112142         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
112143         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
112144         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
112145         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
112147 2006-11-03  Bruno Haible  <bruno@clisp.org>
112149         * lib/c-ctype.h [C++]: Define functions without name mangling.
112150         * lib/fwriteerror.h [C++]: Likewise.
112151         * lib/gcd.h [C++]: Likewise.
112152         * lib/linebreak.h [C++]: Likewise.
112154 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
112156         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
112157         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
112158         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
112159         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
112160         Check for functions and headers just once.
112161         Check for declaration of canonicalize_file_name.
112162         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
112164 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
112166         * gnulib-tool (func_import): Fix typo in actioncmd.
112168 2006-11-02  Bruno Haible  <bruno@clisp.org>
112170         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
112171         newline sequence in the Makefile.am snippet as a space, like "make"
112172         does.
112173         Reported by Roger Persson <perrog@gmail.com>.
112175 2006-11-01  Bruno Haible  <bruno@clisp.org>
112177         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
112178         already declared in <string.h>.
112179         * lib/strcase.h (strncasecmp): Don't declare it if yes.
112181 2006-11-01  Bruno Haible  <bruno@clisp.org>
112183         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
112184         * lib/strcase.h: Include <string.h>.
112185         (strcasecmp): Define to rpl_strcasecmp here.
112187 2006-11-01  Bruno Haible  <bruno@clisp.org>
112189         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
112191 2006-11-01  Eric Blake  <ebb9@byu.net>
112193         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
112195         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
112197 2006-10-29  Bruno Haible  <bruno@clisp.org>
112199         Make it compile in C++ mode.
112200         * lib/full-write.c (full_rw): Add a cast.
112202 2006-11-01  Bruno Haible  <bruno@clisp.org>
112204         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
112205         be POSIX compliant.
112206         Reported by Roger Persson <perrog@gmail.com>.
112208 2006-11-01  Eric Blake  <ebb9@byu.net>
112210         * lib/getopt_.h: Fix comments.
112212 2006-10-31  Eric Blake  <ebb9@byu.net>
112214         * modules/tmpdir (Depends-on): Add sys_stat.
112215         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
112216         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
112217         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
112218         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
112219         tempname.
112221 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
112223         Avoid some C++ diagnostics reported by Bruno Haible.
112224         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
112225         xmalloc.
112226         (quotearg_alloc): Use xcharalloc rather than xmalloc.
112227         (struct slotvec): Move to top level.
112228         (quotearg_n_options): Rewrite to avoid xmalloc.
112229         * lib/xalloc.h (xcharalloc): New function.
112230         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
112231         [defined __cplusplus]: Add function template that provides result
112232         type propagation.  This part of the change is from Bruno Haible.
112234 2006-10-29  Bruno Haible  <bruno@clisp.org>
112236         Make it compile in C++ mode.
112237         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
112238         * lib/strnlen1.c (strnlen1): Cast memchr result.
112239         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
112240         * lib/clean-temp.c (string_equals, string_hash): Add casts.
112241         (create_temp_dir): Rename local variable 'template'.
112242         (compile_csharp_using_sscli): Add cast.
112243         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
112244         * lib/findprog.c (find_in_path): Likewise.
112245         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
112246         * lib/wait-process.c (register_slave_subprocess): Likewise.
112248 2006-10-22  Bruno Haible  <bruno@clisp.org>
112250         * modules/tsearch: New file.
112251         * lib/tsearch.h: New file.
112252         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
112253         * m4/tsearch.m4: New file.
112254         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
112256 2006-10-29  Eric Blake  <ebb9@byu.net>
112258         * lib/arcfour.c: Assume config.h.
112259         * lib/arctwo.c: Likewise.
112260         * lib/base64.c: Likewise.
112261         * lib/check-version.c: Likewise.
112262         * lib/crc.c: Likewise.
112263         * lib/des.c: Likewise.
112264         * lib/gc-gnulib.c: Likewise.
112265         * lib/gc-libgcrypt.c: Likewise.
112266         * lib/gc-pbkdf2-sha1.c: Likewise.
112267         * lib/getaddrinfo.c: Likewise.
112268         * lib/getdelim.c: Likewise.
112269         * lib/getline.c: Likewise.
112270         * lib/hmac-md5.c: Likewise.
112271         * lib/hmac-sha1.c: Likewise.
112272         * lib/iconvme.c: Likewise.
112273         * lib/md2.c: Likewise.
112274         * lib/md4.c: Likewise.
112275         * lib/memxor.c: Likewise.
112276         * lib/read-file.c: Likewise.
112277         * lib/readline.c: Likewise.
112278         * lib/rijndael-alg-fst.c: Likewise.
112279         * lib/rijndael-api-fst.c: Likewise.
112280         * lib/xgetdomainname.c: Likewise.
112282 2006-10-28  Eric Blake  <ebb9@byu.net>
112284         * lib/xstrndup.c: Assume config.h.
112286 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
112288         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
112289         stat-macros.h is now for our own macros, whereas stat_h is for
112290         macros in the <sys/stat.h> name space.
112291         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
112292         (STAT_MACROS_H): Remove.
112293         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
112294         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
112295         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
112296         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
112297         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
112298         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
112299         Move these macros to ...
112300         * lib/stat_.h: here.  Don't include stat-macros.h.
112301         * lib/canonicalize.c: Don't include stat-macros.h.
112302         * lib/chown.c: Likewise.
112303         * lib/euidaccess.c: Likewise.
112304         * lib/file-type.c: Likewise.
112305         * lib/filemode.c: Likewise.
112306         * lib/glob.c: Likewise.
112307         * lib/isapipe.c: Likewise.
112308         * lib/lchown.c: Likewise.
112309         * lib/lstat.c: Likewise.
112310         * lib/mkdir-p.c: Likewise.
112311         * lib/rmdir.c: Likewise.
112312         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
112313         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
112314         unless mkdir isn't declared, to speed up 'configure'.
112315         Always create sys/stat.h, since it's unlikely any real sys/stat.h
112316         would define all the S_* symbols.
112317         * modules/canonicalize (Depends-on):
112318         Depend on sys_stat, not stat-macros.
112319         * modules/chown: Likewise.
112320         * modules/euidaccess: Likewise.
112321         * modules/filemode: Likewise.
112322         * modules/file-type: Likewise.
112323         * modules/glob: Likewise.
112324         * modules/isapipe: Likewise.
112325         * modules/lchown: Likewise.
112326         * modules/lstat: Likewise.
112327         * modules/mkancesdirs: Likewise.
112328         * modules/rmdir: Likewise.
112329         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
112330         * modules/modechange: Likewise.
112331         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
112332         (configure.ac): Remove gl_STAT_MACROS.
112333         * modules/sys_stat (Depends-on): Remove stat-macros.
112335 2006-10-27  Bruno Haible  <bruno@clisp.org>
112337         * m4/signed.m4: Remove file.
112338         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
112339         invocation.
112340         * modules/vasnprintf (Files): Remove m4/signed.m4.
112342 2006-10-27  Bruno Haible  <bruno@clisp.org>
112344         Update to GNU gettext 0.16.
112345         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
112346         m4/inttypes-h.m4, m4/signed.m4.
112347         * m4/gettext.m4: Update to GNU gettext 0.16.
112348         * m4/intl.m4: New file, from GNU gettext.
112349         * m4/intldir.m4: New file, from GNU gettext.
112350         * config/srclist.txt: Update
112352 2006-10-27  Eric Blake  <ebb9@byu.net>
112354         * MODULES.html.sh: Document tempname.
112355         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
112356         dependencies.
112357         (Files): Move lib/tempname.c...
112358         * modules/tempname: ...to this new module.
112359         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
112360         (gl_PREREQ_TEMPNAME): Move...
112361         * m4/tempname.m4: ...to this new file.
112362         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
112363         * modules/sys_stat (Depends-on): Add stat-macros.
112364         * lib/stat_.h (includes): Pick up stat macros.
112365         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
112366         if stat macros are broken.
112367         * lib/tempname.c (includes): No need to include "stat-macros.h".
112368         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
112369         (direxists, __path_search) [!_LIBC]: Don't compile these in
112370         gnulib; the tmpdir module covers that.
112371         * lib/tempname.h: New file.
112373 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
112375         * COPYING: Explain how gnulib-tool converts licence headers.
112376         Almost all wording by Eric Blake.
112378 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
112380         * lib/mbchar.h (is_basic_table): Make read-only.
112381         * lib/mbchar.c (is_basic_table): Likewise.
112382         Reported by John Darrington.
112384 2006-10-25  Bruno Haible  <bruno@clisp.org>
112386         * lib/progname.h (set_program_name): Undefine before defining.
112388 2006-10-25  Bruno Haible  <bruno@clisp.org>
112390         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
112391         false for non-gcc C++ compilers.
112392         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
112394 2006-10-24  Bruno Haible  <bruno@clisp.org>
112396         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
112397         iconv implementations like Irix iconv.
112399 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
112401         * modules/vararrays: New file.
112402         * m4/vararrays.m4: New file, taken from diffutils.
112403         * MODULES.html.sh: New module vararrays.
112405 2006-10-24  Karl Berry  <karl@gnu.org>
112407         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
112408         Don't call GNU Unix.
112410 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112412         * users.txt: Add Libtool.
112414         Sync from Libtool:
112416         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
112418         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
112419         to gnulib's policy of including config.h unconditionally.
112421 2006-10-24  Bruno Haible  <bruno@clisp.org>
112423         * modules/wcwidth (Files): Add m4/wint_t.m4.
112424         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
112425         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
112427 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
112429         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
112430         to pacify GCC with some -W flags enabled.  Problem reported by
112431         Bruno Haible.
112433 2006-10-24  Jim Meyering  <jim@meyering.net>
112435         * MODULES.html.sh: Remove uinttostr.  It's not a module.
112436         Reported by Karl Berry.
112438 2006-10-23  Bruno Haible  <bruno@clisp.org>
112440         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
112442 2006-10-24  Bruno Haible  <bruno@clisp.org>
112444         * lib/gl_list.h: Use C comment style, not C++ comment style.
112446 2006-10-23  Eric Blake  <ebb9@byu.net>
112448         * lib/getaddrinfo.c (includes): Add missing include.
112450 2006-10-23  Bruno Haible  <bruno@clisp.org>
112451             Paul Eggert  <eggert@cs.ucla.edu>
112453         Ability to rename obstack_free.
112454         * lib/obstack.h (__obstack_free): New macro. Declare instead of
112455         obstack_free.
112456         (obstack_free): Invoke the __obstack_free macro.
112457         * lib/obstack.c (obstack_free): Use __obstack_free macro.
112459 2006-10-23  Bruno Haible  <bruno@clisp.org>
112460             Paul Eggert  <eggert@cs.ucla.edu>
112462         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
112463         __argc, __argv from the declaration. (They are defined as macros on
112464         mingw.)
112466 2006-10-22  Bruno Haible  <bruno@clisp.org>
112468         * doc/gnulib-intro.texi: New file.
112469         * doc/gnulib.texi: Include it.
112471 2006-10-21  Bruno Haible  <bruno@clisp.org>
112473         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
112474         "Introduction", "Miscellanous Notes", "Particular Modules".
112476 2006-10-21  Bruno Haible  <bruno@clisp.org>
112478         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112479         Change mostlyclean-local rule to avoid sh syntax error from bash
112480         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
112482 2006-10-23  Jim Meyering  <jim@meyering.net>
112484         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
112485         in place of snprintf.
112487         * modules/inttostr (Files): Add lib/uinttostr.c.
112488         * lib/uinttostr.c (inttostr): New file/function.
112489         * lib/inttostr.h (uinttostr): Declare.
112490         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
112491         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
112492         Add uinttostr.
112493         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
112495 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
112497         * lib/canonicalize.c (ELOOP): Define if not already defined.
112498         Problem reported by Bruno Haible in
112499         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
112501 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
112503         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
112504         Problem reported by Perry Smith and Ville Laurikari.
112506         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
112507         uses.
112509 2006-10-19  Bruno Haible  <bruno@clisp.org>
112511         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
112512         for mingw.
112514 2006-10-19  Bruno Haible  <bruno@clisp.org>
112516         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
112517         Needed for mingw.
112519 2006-10-19  Bruno Haible  <bruno@clisp.org>
112521         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
112523 2006-10-19  Bruno Haible  <bruno@clisp.org>
112525         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
112526         it.
112528 2006-10-19  Bruno Haible  <bruno@clisp.org>
112530         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
112531         invocation.
112533 2006-10-19  Bruno Haible  <bruno@clisp.org>
112535         * gnulib-tool (func_create_testdir): Don't include ftruncate and
112536         mountlist by default.
112538 2006-10-16  Bruno Haible  <bruno@clisp.org>
112540         * lib/c-strstr.c: Include c-strstr.h.
112542 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
112544         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
112545         in a slash.
112547 2006-10-18  Bruno Haible  <bruno@clisp.org>
112549         * lib/lock.h [C++]: Wrap definitions in extern "C".
112551 2006-10-18  Bruno Haible  <bruno@clisp.org>
112553         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
112554         gl_LIBOBJS list.
112556 2006-10-18  Bruno Haible  <bruno@clisp.org>
112558         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
112560 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
112562         * lib/xstrtol.h: Include gettext.h.
112563         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
112564         Problem reported by Eric Blake.
112565         * modules/xstrtol (Depends-on): Add gettext-h.
112567 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
112569         * lib/strftime.c (advance): New macro.
112570         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
112571         incomplete type, so you can't add 0 to it.  Problem and patch
112572         reported by Eelco Dolstra for dietlibc.
112574 2006-10-18  Jim Meyering  <jim@meyering.net>
112576         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
112577         type for a local, and rename it: s/up/user_proc/.
112579 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
112581         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
112582         READ_UTMP_USER_PROCESS.
112583         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
112585 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
112587         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
112588         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
112590 2006-10-17  Eric Blake  <ebb9@byu.net>
112592         * lib/sigprocmask.c (sigprocmask): Fix typo.
112594         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
112596         * modules/clean-temp (Makefile.am): Don't add to make output...
112597         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
112598         config.h.
112600 2006-10-17  Bruno Haible  <bruno@clisp.org>
112602         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
112603         differently if DEFAULT_TEXT_DOMAIN is set.
112605 2006-10-16  Bruno Haible  <bruno@clisp.org>
112607         * lib/clean-temp.c: Include fwriteerror.h.
112609 2006-10-16  Bruno Haible  <bruno@clisp.org>
112611         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
112613 2006-10-16  Bruno Haible  <bruno@clisp.org>
112615         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
112616         * lib/sigprocmask.h: Include <sys/types.h>.
112617         (sigset_t): Use the system's definition if present.
112619 2006-10-17  Eric Blake  <ebb9@byu.net>
112621         * lib/xvasprintf.c (includes): Assume config.h.
112622         * lib/xasprintf.c (includes): Likewise.
112624 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
112626         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
112627         at least as wide as intmax_t.
112629 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
112631         (Imported from Automake.)
112632         * build-aux/gnupload: Update to version 1.1 of directive file.
112634 2006-10-16  Eric Blake  <ebb9@byu.net>
112636         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
112637         match Automake 1.10a.
112639 2006-10-14  Bruno Haible  <bruno@clisp.org>
112641         * modules/sigprocmask: New file.
112642         * lib/sigprocmask.h: New file.
112643         * lib/sigprocmask.c: New file.
112644         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
112645         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
112646         request sigprocmask.o.
112647         (gl_PREREQ_SIGPROCMASK): New macro.
112648         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
112649         (Depends-on): Add sigprocmask.
112650         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
112651         gt_SIGNALBLOCKING. Test for 'raise' only once.
112652         * lib/fatal-signal.c: Include sigprocmask.h.
112653         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
112654         unblock_fatal_signals): Define always.
112655         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
112656         sigprocmask.
112658 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
112660         Sync from Automake.
112661         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
112662         which incorrectly sets the mode of an existing destination
112663         directory.  In some cases the unpatched install-sh could do the
112664         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
112665         system.  We hope this is rare in practice, but it's clearly worth
112666         fixing.  Problem reported by Alex Unleashed in
112667         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
112668         Also, don't bother to check for -m bugs unless we're using -m;
112669         suggested by Stepan Kasal.
112671 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112673         Sync from Automake.
112674         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
112675         `-c' flag, so they appear at the same position as in %FASTDEP%
112676         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
112677         which ignores unknown options only after the first non-option.
112678         Bug report against M4 by Nelson H. F. Beebe.
112680 2006-10-13  Jim Meyering  <jim@meyering.net>
112682         Fix a bug in yesterday's change.
112683         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
112684         p->fts_statp->st_dev would be used uninitialized.
112685         Ensures that we always call fts_stat on the very first entry.
112686         Miklos Szeredi reported that find -xdev stopped working.
112688 2006-10-12  Bruno Haible  <bruno@clisp.org>
112690         * gnulib-tool (func_get_automake_snippet): Append an automatically
112691         computed EXTRA_DIST augmentation.
112692         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
112693         * modules/alloca-opt (Makefile.am): Likewise.
112694         * modules/allocsa (Makefile.am): Likewise.
112695         * modules/arcfour (Makefile.am): Likewise.
112696         * modules/arctwo (Makefile.am): Likewise.
112697         * modules/argmatch (Makefile.am): Likewise.
112698         * modules/argz (Makefile.am): Likewise.
112699         * modules/atexit (Makefile.am): Likewise.
112700         * modules/backupfile (Makefile.am): Likewise.
112701         * modules/byteswap (Makefile.am): Likewise.
112702         * modules/c-strtod (Makefile.am): Likewise.
112703         * modules/c-strtold (Makefile.am): Likewise.
112704         * modules/calloc (Makefile.am): Likewise.
112705         * modules/canon-host (Makefile.am): Likewise.
112706         * modules/canonicalize (Makefile.am): Likewise.
112707         * modules/chdir-long (Makefile.am): Likewise.
112708         * modules/chdir-safer (Makefile.am): Likewise.
112709         * modules/check-version (Makefile.am): Likewise.
112710         * modules/chown (Makefile.am): Likewise.
112711         * modules/cloexec (Makefile.am): Likewise.
112712         * modules/close-stream (Makefile.am): Likewise.
112713         * modules/closeout (Makefile.am): Likewise.
112714         * modules/crc (Makefile.am): Likewise.
112715         * modules/csharpexec (Makefile.am): Likewise.
112716         * modules/cycle-check (Makefile.am): Likewise.
112717         * modules/des (Makefile.am): Likewise.
112718         * modules/dev-ino (Makefile.am): Likewise.
112719         * modules/dirfd (Makefile.am): Likewise.
112720         * modules/dirname (Makefile.am): Likewise.
112721         * modules/dup2 (Makefile.am): Likewise.
112722         * modules/eealloc (Makefile.am): Likewise.
112723         * modules/error (Makefile.am): Likewise.
112724         * modules/euidaccess (Makefile.am): Likewise.
112725         * modules/exclude (Makefile.am): Likewise.
112726         * modules/exitfail (Makefile.am): Likewise.
112727         * modules/fcntl-safer (Makefile.am): Likewise.
112728         * modules/fcntl (Makefile.am): Likewise.
112729         * modules/file-type (Makefile.am): Likewise.
112730         * modules/fileblocks (Makefile.am): Likewise.
112731         * modules/filemode (Makefile.am): Likewise.
112732         * modules/filenamecat (Makefile.am): Likewise.
112733         * modules/fnmatch (Makefile.am): Likewise.
112734         * modules/fopen-safer (Makefile.am): Likewise.
112735         * modules/fpending (Makefile.am): Likewise.
112736         * modules/fprintftime (Makefile.am): Likewise.
112737         * modules/free (Makefile.am): Likewise.
112738         * modules/fsusage (Makefile.am): Likewise.
112739         * modules/ftruncate (Makefile.am): Likewise.
112740         * modules/fts (Makefile.am): Likewise.
112741         * modules/gc-arcfour (Makefile.am): Likewise.
112742         * modules/gc-des (Makefile.am): Likewise.
112743         * modules/gc-hmac-md5 (Makefile.am): Likewise.
112744         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
112745         * modules/gc-md4 (Makefile.am): Likewise.
112746         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112747         * modules/gc-sha1 (Makefile.am): Likewise.
112748         * modules/gc (Makefile.am): Likewise.
112749         * modules/getaddrinfo (Makefile.am): Likewise.
112750         * modules/getcwd (Makefile.am): Likewise.
112751         * modules/getdelim (Makefile.am): Likewise.
112752         * modules/getdomainname (Makefile.am): Likewise.
112753         * modules/getgroups (Makefile.am): Likewise.
112754         * modules/gethostname (Makefile.am): Likewise.
112755         * modules/gethrxtime (Makefile.am): Likewise.
112756         * modules/getline (Makefile.am): Likewise.
112757         * modules/getloadavg (Makefile.am): Likewise.
112758         * modules/getlogin_r (Makefile.am): Likewise.
112759         * modules/getndelim2 (Makefile.am): Likewise.
112760         * modules/getopt (Makefile.am): Likewise.
112761         * modules/getpagesize (Makefile.am): Likewise.
112762         * modules/getpass-gnu (Makefile.am): Likewise.
112763         * modules/getpass (Makefile.am): Likewise.
112764         * modules/getsubopt (Makefile.am): Likewise.
112765         * modules/gettime (Makefile.am): Likewise.
112766         * modules/gettimeofday (Makefile.am): Likewise.
112767         * modules/getugroups (Makefile.am): Likewise.
112768         * modules/getusershell (Makefile.am): Likewise.
112769         * modules/glob (Makefile.am): Likewise.
112770         * modules/group-member (Makefile.am): Likewise.
112771         * modules/hard-locale (Makefile.am): Likewise.
112772         * modules/hash (Makefile.am): Likewise.
112773         * modules/hmac-md5 (Makefile.am): Likewise.
112774         * modules/hmac-sha1 (Makefile.am): Likewise.
112775         * modules/human (Makefile.am): Likewise.
112776         * modules/idcache (Makefile.am): Likewise.
112777         * modules/imaxabs (Makefile.am): Likewise.
112778         * modules/imaxdiv (Makefile.am): Likewise.
112779         * modules/inet_ntop (Makefile.am): Likewise.
112780         * modules/inet_pton (Makefile.am): Likewise.
112781         * modules/intprops (Makefile.am): Likewise.
112782         * modules/inttostr (Makefile.am): Likewise.
112783         * modules/inttypes (Makefile.am): Likewise.
112784         * modules/isapipe (Makefile.am): Likewise.
112785         * modules/javaversion (Makefile.am): Likewise.
112786         * modules/lchmod (Makefile.am): Likewise.
112787         * modules/lchown (Makefile.am): Likewise.
112788         * modules/localcharset (Makefile.am): Likewise.
112789         * modules/long-options (Makefile.am): Likewise.
112790         * modules/lstat (Makefile.am): Likewise.
112791         * modules/malloc (Makefile.am): Likewise.
112792         * modules/mathl (Makefile.am): Likewise.
112793         * modules/mbchar (Makefile.am): Likewise.
112794         * modules/md2 (Makefile.am): Likewise.
112795         * modules/md4 (Makefile.am): Likewise.
112796         * modules/md5 (Makefile.am): Likewise.
112797         * modules/memcasecmp (Makefile.am): Likewise.
112798         * modules/memchr (Makefile.am): Likewise.
112799         * modules/memcmp (Makefile.am): Likewise.
112800         * modules/memcoll (Makefile.am): Likewise.
112801         * modules/memcpy (Makefile.am): Likewise.
112802         * modules/memmem (Makefile.am): Likewise.
112803         * modules/memmove (Makefile.am): Likewise.
112804         * modules/mempcpy (Makefile.am): Likewise.
112805         * modules/memrchr (Makefile.am): Likewise.
112806         * modules/memset (Makefile.am): Likewise.
112807         * modules/memxor (Makefile.am): Likewise.
112808         * modules/mkancesdirs (Makefile.am): Likewise.
112809         * modules/mkdir-p (Makefile.am): Likewise.
112810         * modules/mkdir (Makefile.am): Likewise.
112811         * modules/mkdtemp (Makefile.am): Likewise.
112812         * modules/mkstemp (Makefile.am): Likewise.
112813         * modules/mktime (Makefile.am): Likewise.
112814         * modules/modechange (Makefile.am): Likewise.
112815         * modules/mountlist (Makefile.am): Likewise.
112816         * modules/nanosleep (Makefile.am): Likewise.
112817         * modules/obstack (Makefile.am): Likewise.
112818         * modules/openat (Makefile.am): Likewise.
112819         * modules/pagealign_alloc (Makefile.am): Likewise.
112820         * modules/pathmax (Makefile.am): Likewise.
112821         * modules/physmem (Makefile.am): Likewise.
112822         * modules/poll (Makefile.am): Likewise.
112823         * modules/posixtm (Makefile.am): Likewise.
112824         * modules/posixver (Makefile.am): Likewise.
112825         * modules/putenv (Makefile.am): Likewise.
112826         * modules/quote (Makefile.am): Likewise.
112827         * modules/quotearg (Makefile.am): Likewise.
112828         * modules/raise (Makefile.am): Likewise.
112829         * modules/read-file (Makefile.am): Likewise.
112830         * modules/readline (Makefile.am): Likewise.
112831         * modules/readlink (Makefile.am): Likewise.
112832         * modules/readtokens (Makefile.am): Likewise.
112833         * modules/readutmp (Makefile.am): Likewise.
112834         * modules/realloc (Makefile.am): Likewise.
112835         * modules/regex (Makefile.am): Likewise.
112836         * modules/rename-dest-slash (Makefile.am): Likewise.
112837         * modules/rename (Makefile.am): Likewise.
112838         * modules/rijndael (Makefile.am): Likewise.
112839         * modules/rmdir (Makefile.am): Likewise.
112840         * modules/rpmatch (Makefile.am): Likewise.
112841         * modules/safe-read (Makefile.am): Likewise.
112842         * modules/safe-write (Makefile.am): Likewise.
112843         * modules/same-inode (Makefile.am): Likewise.
112844         * modules/same (Makefile.am): Likewise.
112845         * modules/save-cwd (Makefile.am): Likewise.
112846         * modules/savedir (Makefile.am): Likewise.
112847         * modules/setenv (Makefile.am): Likewise.
112848         * modules/settime (Makefile.am): Likewise.
112849         * modules/sha1 (Makefile.am): Likewise.
112850         * modules/sig2str (Makefile.am): Likewise.
112851         * modules/snprintf (Makefile.am): Likewise.
112852         * modules/stat-macros (Makefile.am): Likewise.
112853         * modules/stat-time (Makefile.am): Likewise.
112854         * modules/stdbool (Makefile.am): Likewise.
112855         * modules/stdint (Makefile.am): Likewise.
112856         * modules/stdlib-safer (Makefile.am): Likewise.
112857         * modules/stpcpy (Makefile.am): Likewise.
112858         * modules/stpncpy (Makefile.am): Likewise.
112859         * modules/strcase (Makefile.am): Likewise.
112860         * modules/strcasestr (Makefile.am): Likewise.
112861         * modules/strchrnul (Makefile.am): Likewise.
112862         * modules/strcspn (Makefile.am): Likewise.
112863         * modules/strdup (Makefile.am): Likewise.
112864         * modules/strerror (Makefile.am): Likewise.
112865         * modules/strftime (Makefile.am): Likewise.
112866         * modules/strndup (Makefile.am): Likewise.
112867         * modules/strnlen (Makefile.am): Likewise.
112868         * modules/strpbrk (Makefile.am): Likewise.
112869         * modules/strsep (Makefile.am): Likewise.
112870         * modules/strstr (Makefile.am): Likewise.
112871         * modules/strtod (Makefile.am): Likewise.
112872         * modules/strtoimax (Makefile.am): Likewise.
112873         * modules/strtok_r (Makefile.am): Likewise.
112874         * modules/strtol (Makefile.am): Likewise.
112875         * modules/strtoll (Makefile.am): Likewise.
112876         * modules/strtoul (Makefile.am): Likewise.
112877         * modules/strtoull (Makefile.am): Likewise.
112878         * modules/strtoumax (Makefile.am): Likewise.
112879         * modules/strverscmp (Makefile.am): Likewise.
112880         * modules/sys_socket (Makefile.am): Likewise.
112881         * modules/sys_stat (Makefile.am): Likewise.
112882         * modules/sysexits (Makefile.am): Likewise.
112883         * modules/time_r (Makefile.am): Likewise.
112884         * modules/timegm (Makefile.am): Likewise.
112885         * modules/timespec (Makefile.am): Likewise.
112886         * modules/tmpfile-safer (Makefile.am): Likewise.
112887         * modules/trim (Makefile.am): Likewise.
112888         * modules/unistd-safer (Makefile.am): Likewise.
112889         * modules/unlinkdir (Makefile.am): Likewise.
112890         * modules/unlocked-io (Makefile.am): Likewise.
112891         * modules/userspec (Makefile.am): Likewise.
112892         * modules/utime (Makefile.am): Likewise.
112893         * modules/utimecmp (Makefile.am): Likewise.
112894         * modules/utimens (Makefile.am): Likewise.
112895         * modules/vasnprintf (Makefile.am): Likewise.
112896         * modules/vasprintf (Makefile.am): Likewise.
112897         * modules/vsnprintf (Makefile.am): Likewise.
112898         * modules/xalloc (Makefile.am): Likewise.
112899         * modules/xgetcwd (Makefile.am): Likewise.
112900         * modules/xnanosleep (Makefile.am): Likewise.
112901         * modules/xreadlink (Makefile.am): Likewise.
112902         * modules/xstrtod (Makefile.am): Likewise.
112903         * modules/xstrtol (Makefile.am): Likewise.
112904         * modules/xstrtold (Makefile.am): Likewise.
112905         * modules/yesno (Makefile.am): Likewise.
112906         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
112908 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112910         * modules/error (Makefile.am): Distribute files through
112911         EXTRA_DIST, not lib_SOURCES.
112913 2006-10-12  Eric Blake  <ebb9@byu.net>
112915         * modules/error (Makefile.am): Distribute files in /lib.
112916         * modules/obstack (Makefile.am): Likewise.
112918 2006-10-12  Bruno Haible  <bruno@clisp.org>
112920         * modules/acl (Makefile.am): Distribute all files in lib/ through
112921         EXTRA_DIST.
112922         * modules/arcfour (Makefile.am): Likewise.
112923         * modules/arctwo (Makefile.am): Likewise.
112924         * modules/argmatch (Makefile.am): Likewise.
112925         * modules/argz (Makefile.am): Likewise.
112926         * modules/atexit (Makefile.am): Likewise.
112927         * modules/backupfile (Makefile.am): Likewise.
112928         * modules/c-strtod (Makefile.am): Likewise.
112929         * modules/c-strtold (Makefile.am): Likewise.
112930         * modules/calloc (Makefile.am): Likewise.
112931         * modules/canon-host (Makefile.am): Likewise.
112932         * modules/canonicalize (Makefile.am): Likewise.
112933         * modules/chdir-long (Makefile.am): Likewise.
112934         * modules/chdir-safer (Makefile.am): Likewise.
112935         * modules/check-version (Makefile.am): Likewise.
112936         * modules/chown (Makefile.am): Likewise.
112937         * modules/cloexec (Makefile.am): Likewise.
112938         * modules/close-stream (Makefile.am): Likewise.
112939         * modules/closeout (Makefile.am): Likewise.
112940         * modules/crc (Makefile.am): Likewise.
112941         * modules/cycle-check (Makefile.am): Likewise.
112942         * modules/des (Makefile.am): Likewise.
112943         * modules/dirfd (Makefile.am): Likewise.
112944         * modules/dirname (Makefile.am): Likewise.
112945         * modules/dup2 (Makefile.am): Likewise.
112946         * modules/euidaccess (Makefile.am): Likewise.
112947         * modules/exclude (Makefile.am): Likewise.
112948         * modules/exitfail (Makefile.am): Likewise.
112949         * modules/fcntl-safer (Makefile.am): Likewise.
112950         * modules/file-type (Makefile.am): Likewise.
112951         * modules/fileblocks (Makefile.am): Likewise.
112952         * modules/filemode (Makefile.am): Likewise.
112953         * modules/filenamecat (Makefile.am): Likewise.
112954         * modules/fnmatch (Makefile.am): Likewise.
112955         * modules/fopen-safer (Makefile.am): Likewise.
112956         * modules/fpending (Makefile.am): Likewise.
112957         * modules/fprintftime (Makefile.am): Likewise.
112958         * modules/free (Makefile.am): Likewise.
112959         * modules/fsusage (Makefile.am): Likewise.
112960         * modules/ftruncate (Makefile.am): Likewise.
112961         * modules/fts (Makefile.am): Likewise.
112962         * modules/gc (Makefile.am): Likewise.
112963         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112964         * modules/getaddrinfo (Makefile.am): Likewise.
112965         * modules/getcwd (Makefile.am): Likewise.
112966         * modules/getdelim (Makefile.am): Likewise.
112967         * modules/getdomainname (Makefile.am): Likewise.
112968         * modules/getgroups (Makefile.am): Likewise.
112969         * modules/gethostname (Makefile.am): Likewise.
112970         * modules/gethrxtime (Makefile.am): Likewise.
112971         * modules/getline (Makefile.am): Likewise.
112972         * modules/getloadavg (Makefile.am): Likewise.
112973         * modules/getlogin_r (Makefile.am): Likewise.
112974         * modules/getopt (Makefile.am): Likewise.
112975         * modules/getpass (Makefile.am): Likewise.
112976         * modules/getpass-gnu (Makefile.am): Likewise.
112977         * modules/getsubopt (Makefile.am): Likewise.
112978         * modules/gettime (Makefile.am): Likewise.
112979         * modules/gettimeofday (Makefile.am): Likewise.
112980         * modules/getugroups (Makefile.am): Likewise.
112981         * modules/getusershell (Makefile.am): Likewise.
112982         * modules/glob (Makefile.am): Likewise.
112983         * modules/group-member (Makefile.am): Likewise.
112984         * modules/hard-locale (Makefile.am): Likewise.
112985         * modules/hash (Makefile.am): Likewise.
112986         * modules/hmac-md5 (Makefile.am): Likewise.
112987         * modules/hmac-sha1 (Makefile.am): Likewise.
112988         * modules/human (Makefile.am): Likewise.
112989         * modules/idcache (Makefile.am): Likewise.
112990         * modules/imaxabs (Makefile.am): Likewise.
112991         * modules/imaxdiv (Makefile.am): Likewise.
112992         * modules/inet_ntop (Makefile.am): Likewise.
112993         * modules/inet_pton (Makefile.am): Likewise.
112994         * modules/inttostr (Makefile.am): Likewise.
112995         * modules/isapipe (Makefile.am): Likewise.
112996         * modules/lchown (Makefile.am): Likewise.
112997         * modules/long-options (Makefile.am): Likewise.
112998         * modules/lstat (Makefile.am): Likewise.
112999         * modules/malloc (Makefile.am): Likewise.
113000         * modules/mathl (Makefile.am): Likewise.
113001         * modules/mbchar (Makefile.am): Likewise.
113002         * modules/md2 (Makefile.am): Likewise.
113003         * modules/md4 (Makefile.am): Likewise.
113004         * modules/md5 (Makefile.am): Likewise.
113005         * modules/memcasecmp (Makefile.am): Likewise.
113006         * modules/memchr (Makefile.am): Likewise.
113007         * modules/memcmp (Makefile.am): Likewise.
113008         * modules/memcoll (Makefile.am): Likewise.
113009         * modules/memcpy (Makefile.am): Likewise.
113010         * modules/memmem (Makefile.am): Likewise.
113011         * modules/memmove (Makefile.am): Likewise.
113012         * modules/mempcpy (Makefile.am): Likewise.
113013         * modules/memrchr (Makefile.am): Likewise.
113014         * modules/memset (Makefile.am): Likewise.
113015         * modules/memxor (Makefile.am): Likewise.
113016         * modules/mkancesdirs (Makefile.am): Likewise.
113017         * modules/mkdir (Makefile.am): Likewise.
113018         * modules/mkdir-p (Makefile.am): Likewise.
113019         * modules/mkdtemp (Makefile.am): Likewise.
113020         * modules/mkstemp (Makefile.am): Likewise.
113021         * modules/mktime (Makefile.am): Likewise.
113022         * modules/modechange (Makefile.am): Likewise.
113023         * modules/mountlist (Makefile.am): Likewise.
113024         * modules/nanosleep (Makefile.am): Likewise.
113025         * modules/openat (Makefile.am): Likewise.
113026         * modules/pagealign_alloc (Makefile.am): Likewise.
113027         * modules/physmem (Makefile.am): Likewise.
113028         * modules/poll (Makefile.am): Likewise.
113029         * modules/posixtm (Makefile.am): Likewise.
113030         * modules/posixver (Makefile.am): Likewise.
113031         * modules/putenv (Makefile.am): Likewise.
113032         * modules/quote (Makefile.am): Likewise.
113033         * modules/quotearg (Makefile.am): Likewise.
113034         * modules/raise (Makefile.am): Likewise.
113035         * modules/read-file (Makefile.am): Likewise.
113036         * modules/readline (Makefile.am): Likewise.
113037         * modules/readlink (Makefile.am): Likewise.
113038         * modules/readtokens (Makefile.am): Likewise.
113039         * modules/readutmp (Makefile.am): Likewise.
113040         * modules/realloc (Makefile.am): Likewise.
113041         * modules/regex (Makefile.am): Likewise.
113042         * modules/rename (Makefile.am): Likewise.
113043         * modules/rename-dest-slash (Makefile.am): Likewise.
113044         * modules/rijndael (Makefile.am): Likewise.
113045         * modules/rmdir (Makefile.am): Likewise.
113046         * modules/rpmatch (Makefile.am): Likewise.
113047         * modules/safe-read (Makefile.am): Likewise.
113048         * modules/safe-write (Makefile.am): Likewise.
113049         * modules/same (Makefile.am): Likewise.
113050         * modules/save-cwd (Makefile.am): Likewise.
113051         * modules/savedir (Makefile.am): Likewise.
113052         * modules/setenv (Makefile.am): Likewise.
113053         * modules/settime (Makefile.am): Likewise.
113054         * modules/sha1 (Makefile.am): Likewise.
113055         * modules/sig2str (Makefile.am): Likewise.
113056         * modules/snprintf (Makefile.am): Likewise.
113057         * modules/stdlib-safer (Makefile.am): Likewise.
113058         * modules/stpcpy (Makefile.am): Likewise.
113059         * modules/stpncpy (Makefile.am): Likewise.
113060         * modules/strcase (Makefile.am): Likewise.
113061         * modules/strcasestr (Makefile.am): Likewise.
113062         * modules/strchrnul (Makefile.am): Likewise.
113063         * modules/strcspn (Makefile.am): Likewise.
113064         * modules/strdup (Makefile.am): Likewise.
113065         * modules/strerror (Makefile.am): Likewise.
113066         * modules/strftime (Makefile.am): Likewise.
113067         * modules/strndup (Makefile.am): Likewise.
113068         * modules/strnlen (Makefile.am): Likewise.
113069         * modules/strpbrk (Makefile.am): Likewise.
113070         * modules/strsep (Makefile.am): Likewise.
113071         * modules/strstr (Makefile.am): Likewise.
113072         * modules/strtod (Makefile.am): Likewise.
113073         * modules/strtoimax (Makefile.am): Likewise.
113074         * modules/strtok_r (Makefile.am): Likewise.
113075         * modules/strtol (Makefile.am): Likewise.
113076         * modules/strtoll (Makefile.am): Likewise.
113077         * modules/strtoul (Makefile.am): Likewise.
113078         * modules/strtoull (Makefile.am): Likewise.
113079         * modules/strtoumax (Makefile.am): Likewise.
113080         * modules/strverscmp (Makefile.am): Likewise.
113081         * modules/time_r (Makefile.am): Likewise.
113082         * modules/timegm (Makefile.am): Likewise.
113083         * modules/tmpfile-safer (Makefile.am): Likewise.
113084         * modules/unistd-safer (Makefile.am): Likewise.
113085         * modules/unlinkdir (Makefile.am): Likewise.
113086         * modules/userspec (Makefile.am): Likewise.
113087         * modules/utime (Makefile.am): Likewise.
113088         * modules/utimecmp (Makefile.am): Likewise.
113089         * modules/utimens (Makefile.am): Likewise.
113090         * modules/vasnprintf (Makefile.am): Likewise.
113091         * modules/vasprintf (Makefile.am): Likewise.
113092         * modules/vsnprintf (Makefile.am): Likewise.
113093         * modules/xalloc (Makefile.am): Likewise.
113094         * modules/xgetcwd (Makefile.am): Likewise.
113095         * modules/xnanosleep (Makefile.am): Likewise.
113096         * modules/xreadlink (Makefile.am): Likewise.
113097         * modules/xstrtod (Makefile.am): Likewise.
113098         * modules/xstrtol (Makefile.am): Likewise.
113099         * modules/xstrtold (Makefile.am): Likewise.
113100         * modules/yesno (Makefile.am): Likewise.
113102 2006-10-12  Jim Meyering  <jim@meyering.net>
113104         * m4/getloadavg.m4: Revert the change below.
113106         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
113107         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
113108         fail with a symlink, which is what coreutils' ./bootstrap now
113109         creates by default.
113111 2006-10-12  Bruno Haible  <bruno@clisp.org>
113113         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
113114         mingw.
113115         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
113116         MSVC and mingw explicitly.
113118 2006-10-11  Simon Josefsson  <jas@extundo.com>
113119             Bruno Haible  <bruno@clisp.org>
113121         Add support for multiple gnulib-tool invocations in the scope of a
113122         single configure.ac file.
113123         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
113124         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
113125         with the same contents as the _LIBADD variable.
113126         (func_emit_initmacro_start, func_emit_initmacro_end,
113127         func_emit_initmacro_done): New functions.
113128         (func_import, func_create_testdir): Invoke them. Allow the identifiers
113129         gl_LIBOBJS and gl_LTLIBOBJS.
113131 2006-10-11  Bruno Haible  <bruno@clisp.org>
113133         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
113134         (func_create_testdir): Don't create po/Makefile.am, don't invoke
113135         autoreconf. Instead, invoke autopoint explicitly but move back the
113136         *.m4 files from gnulib.
113138 2006-10-11  Bruno Haible  <bruno@clisp.org>
113140         * gnulib-tool (func_usage): Make module names after --create-testdir
113141         optional.
113142         (func_create_testdir): If no module was specified, use nearly all
113143         modules.
113145 2006-10-12  Jim Meyering  <jim@meyering.net>
113147         Big performance improvement for fts-based tools that use FTS_NOSTAT.
113148         Avoid spurious inode-mismatch problems on non-POSIX file systems.
113149         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
113150         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
113151         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
113152         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
113153         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
113154         (fts_set_stat_required): New function.
113155         (fts_open): Defer the calls to fts_stat, if possible or requested.
113156         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
113157         into fts_stat itself.
113158         (fts_read): Perform any required (deferred) fts_stat call.
113159         (fts_build): Likewise, for the directory we're about to open and read.
113160         In the readdir loop, carefully decide whether each entry will require
113161         an eventual call to fts_stat, using dirent.d_type info if available.
113162         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
113163         a command line argument into this function.  Update all callers.
113164         Map a return value of FTS_DOT to FTS_D for a command line argument.
113165         * modules/fts (Depends-on): Add d-type.  Alphabetize.
113166         Thanks to Miklos Szeredi for his tenacity and for the initial
113167         bug report about "find" failing on a FUSE-based file system.
113169         * lib/fts.c (fts_open): Use consistent indentation.
113171 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
113173         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
113174         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
113175         reported by Jim Meyering.  All uses of cache variables renamed
113176         to match Autoconf's.
113177         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
113178         the other one.
113180         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
113181         Fix misspelling in diagnostic.
113183 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
113185         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
113186         defined.  Problem reported by Matthew Woehlke.
113188         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
113189         Add support for Tandem NonStop R series.
113190         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
113191         Use new macro.
113193         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
113194         (has_trailing_slash): Omit size arg; all callers changed.
113195         Omit 'inline', since it doesn't help performance and we'd
113196         need to configure it.
113197         Don't count //, ///, etc. as having a trailing slash.
113198         As a side effect, this removes a C99ism reported by Matthew Woehlke.
113199         (rpl_rename_dest_slash): On failure, use rename's errno rather
113200         than (in some cases) an incorrect or junk errno.
113201         Simplify code by removing need to compute length; this does
113202         cause it to make two passes instead of one over the file name,
113203         but it's worth it.
113205         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
113206         change, since Autoconf's version may no longer be appropriate now
113207         that we are using CVS Autoconf's version.  Add support for Tandem.
113209 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
113210             Bruno Haible  <bruno@clisp.org>
113212         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
113213         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
113214         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
113215         gl_AC_TYPE_LONG_LONG.
113217         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
113218         instead of HAVE_LONG_LONG.
113219         * lib/printf-args.c (printf_fetchargs): Likewise.
113220         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
113221         * lib/vasnprintf.c (VASNPRINTF): Likewise.
113222         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
113223         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
113224         gl_AC_TYPE_LONG_LONG.
113226 2006-10-11  Bruno Haible  <bruno@clisp.org>
113228         * m4/longlong.m4: Add comments.
113229         * m4/ulonglong.m4: Likewise.
113231 2006-10-10  Bruno Haible  <bruno@clisp.org>
113233         Make it possible to #define stpcpy, strdup to aliases.
113234         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
113235         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
113237 2006-10-10  Bruno Haible  <bruno@clisp.org>
113239         Make it possible to #define gcd to an alias.
113240         * lib/gcd.c: Include config.h.
113242 2006-10-10  Bruno Haible  <bruno@clisp.org>
113244         Make it possible to #define c_isascii to an alias.
113245         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
113246         defined. Undefine the macros before defining them, to avoid gcc
113247         warnings.
113248         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
113249         define NO_C_CTYPE_MACROS early.
113251 2006-10-10  Bruno Haible  <bruno@clisp.org>
113253         Make it possible to #define set_program_name to an alias.
113254         * lib/progname.c: Don't undefine set_program_name; instead, undefine
113255         ENABLE_RELOCATABLE early.
113257 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
113259         Port to Tandem NSK OSS, which has 64-bit signed int but at most
113260         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
113261         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
113262         More generally, don't assume that 64-bit signed int is available
113263         if unsigned int is, and vice versa.
113264         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
113265         unsigned symbols, not on their signed counterparts.
113266         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
113267         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
113268         (UINT64_C, UINTMAX_C):
113269         Likewise.
113270         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
113271         unsigned counterparts.
113272         (Have_long_long, Unsigned): New macros.
113273         (Int): Renamed from INT.
113274         (strtoimax): Use the new macros.
113275         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
113276         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
113277         * modules/inttypes (inttypes.h): Substitute
113278         HAVE_UNSIGNED_LONG_LONG_INT.
113279         * modules/stdint (stdint.h): Likewise.
113280         (Files): Add m4/ulonglong.m4.
113282 2006-10-10  Bruno Haible  <bruno@clisp.org>
113284         Fix a gcc -Wshadow warning.
113285         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
113286         to 'bucket'.
113287         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
113288         gl_linked_indexof_from_to): Likewise.
113289         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
113290         Likewise.
113291         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
113292         Likewise.
113293         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
113294         Reported by Eric Blake.
113296 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
113298         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
113299         for NetBSD.  Problem reported by Bruno Haible.
113301 2006-10-09  Jim Meyering  <jim@meyering.net>
113303         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
113304         Patch from Bruno Haible.
113306 2006-10-09  Jim Meyering  <jim@meyering.net>
113308         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
113309         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
113310         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
113312 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
113314         Don't include <config.h> twice; this doesn't work in some cases,
113315         e.g., when config.h has "#define intmax_t long long int" and
113316         we include <config.h>, <inttypes.h>, <config.h> in that order.
113317         Problem reported by Matthew Woehlke in:
113318         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
113319         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
113320         * lib/fts-cycle.c: Don't include config.h.
113321         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
113322         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
113323         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
113324         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
113325         inttypes.h.
113326         * lib/xstrtoumax.c: Likewise.
113327         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
113328         __strtol and the like, so that this module is more like its siblings.
113329         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
113330         Remove; no longer needed now that we assume gnulib inttypes.h.
113332 2006-10-08  Bruno Haible  <bruno@clisp.org>
113334         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
113335         option.
113337 2006-10-07  Jim Meyering  <jim@meyering.net>
113339         * modules/inttypes (inttypes.h): Revert what seems to have been
113340         an inadvertent part of today's change: use "|", not "/" in the
113341         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
113343 2006-10-07  Bruno Haible  <bruno@clisp.org>
113345         * modules/sublist: New file.
113347 2006-10-07  Bruno Haible  <bruno@clisp.org>
113349         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
113350         * modules/argz (argz.h): Likewise.
113351         * modules/arpa_inet (arpa/inet.h): Likewise.
113352         * modules/byteswap (byteswap.h): Likewise.
113353         * modules/configmake (configmake.h): Likewise.
113354         * modules/fcntl (fcntl.h): Likewise.
113355         * modules/fnmatch (fnmatch.h): Likewise.
113356         * modules/getopt (getopt.h): Likewise.
113357         * modules/glob (glob.h): Likewise.
113358         * modules/inttypes (inttypes.h): Likewise.
113359         * modules/netinet_in (netinet/in.h): Likewise.
113360         * modules/poll (poll.h): Likewise.
113361         * modules/stdbool (stdbool.h): Likewise.
113362         * modules/stdint (stdint.h): Likewise.
113363         * modules/sys_select (sys/select.h): Likewise.
113364         * modules/sys_socket (sys/socket.h): Likewise.
113365         * modules/sys_stat (sys/stat.h): Likewise.
113366         * modules/sysexits (sysexits.h): Likewise.
113367         * modules/unistd (unistd.h): Likewise.
113368         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113369         Add a "DO NOT EDIT" comment to the generated file.
113370         (func_import): Likewise for gnulib-comp.m4.
113372 2006-10-07  Bruno Haible  <bruno@clisp.org>
113374         * lib/gl_sublist.h: New file.
113375         * lib/gl_sublist.c: New file.
113377 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
113379         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
113380         name (relative to the original working directory) and the file
113381         name component (relative to the temporary working directory).  All
113382         callers changed.
113383         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
113384         * lib/mkdir-p.c (make_dir_parents): Likewise.
113385         * lib/mkdir-p.h (make_dir_parents): Likewise.
113387 2006-10-06  Eric Blake  <ebb9@byu.net>
113389         Define several macros for use by the clean-temp module.
113390         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
113391         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
113392         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
113394         * lib/clean-temp.h (close_stream_temp): New declaration.
113395         * lib/clean-temp.c (includes): Pull in headers according to what
113396         other modules are in use.
113397         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
113399 2006-10-06  Bruno Haible  <bruno@clisp.org>
113401         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
113402         instead of fopen, fwriteerror.
113404 2006-10-06  Bruno Haible  <bruno@clisp.org>
113406         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
113407         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
113408         int.
113409         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
113410         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
113411         Return an error indicator.
113412         Suggested by Eric Blake.
113414 2006-10-06  Bruno Haible  <bruno@clisp.org>
113416         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
113417         Reported by Eric Blake.
113419 2006-10-06  Bruno Haible  <bruno@clisp.org>
113421         * modules/closeout (Description): Mention stderr too.
113423 2006-10-06  Bruno Haible  <bruno@clisp.org>
113424         and Paul Eggert  <eggert@cs.ucla.edu>
113426         * lib/closeout.c (close_stdout): Also close stderr.
113427         * lib/closeout.h: Update comment.
113429 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
113431         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
113432         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
113433         * lib/dirchownmod.c: Include lchown.h.
113434         * lib/lchown.c: Don't include files that lchown.h now includes.
113435         Don't declare chown, since lchown.h now does that.
113436         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
113437         (lchown): Define to rpl_chown if lchown is declared but
113438         does not exist.  Declare using a prototype if lchown is not
113439         declared.  Add a copyright notice.
113440         * lib/mkstemp.h: Include <unistd.h>.
113441         * lib/openat.c: Include lchown.h.
113443         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
113444         we now test for that separately.
113445         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
113446         rather than O_NOFOLLOW, when testing whether it's possible to
113447         avoid a race condition reliably.
113448         * lib/savewd.c (savewd_chdir): Likewise.
113450         Remove macros that are no longer needed now that stdint.h is
113451         reliable.
113452         * lib/fsusage.c (UINTMAX_MAX): Remove.
113453         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
113454         * lib/utimecmp.c (SIZE_MAX): Remove.
113456         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
113458         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
113459         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
113460         O_NOATIME works.
113462 2006-10-05  Bruno Haible  <bruno@clisp.org>
113464         * lib/gl_list.h (gl_sortedlist_search_from_to,
113465         gl_sortedlist_indexof_from_to): New declarations.
113466         (gl_list_implementation): New fields sortedlist_search_from_to,
113467         sortedlist_indexof_from_to.
113468         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
113469         inline functions.
113470         * lib/gl_list.c (gl_sortedlist_search_from_to,
113471         gl_sortedlist_indexof_from_to): New functions.
113472         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
113473         function.
113474         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
113475         (gl_array_sortedlist_search_from_to): New function.
113476         (gl_array_list_implementation): Update.
113477         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
113478         function.
113479         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
113480         (gl_carray_sortedlist_search_from_to): New function.
113481         (gl_carray_list_implementation): Update.
113482         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
113483         gl_linked_sortedlist_indexof_from_to): New functions.
113484         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
113485         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
113486         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
113487         gl_tree_sortedlist_indexof_from_to): New functions.
113488         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
113489         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
113490         Update.
113491         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
113492         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
113493         Update.
113495 2006-10-05  Bruno Haible  <bruno@clisp.org>
113497         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
113498         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
113499         (struct gl_list_implementation): Add fields search_from_to,
113500         indexof_from_to. Remove fields search, indexof.
113501         (gl_list_search): Use the search_from_to method.
113502         (gl_list_search_from, gl_list_search_from_to): New functions.
113503         (gl_list_indexof): Use the indexof_from_to method.
113504         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
113505         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
113506         (gl_list_search_from, gl_list_search_from_to): New functions.
113507         (gl_list_indexof): Use the indexof_from_to method.
113508         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
113509         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
113510         gl_array_indexof. Add start_index, end_index arguments.
113511         (gl_array_search_from_to): Renamed from gl_array_search. Add
113512         start_index, end_index arguments.
113513         (gl_array_remove, gl_array_list_implementation): Update.
113514         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
113515         gl_carray_indexof. Add start_index, end_index arguments.
113516         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
113517         start_index, end_index arguments.
113518         (gl_carray_remove, gl_carray_list_implementation): Update.
113519         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
113520         gl_linked_search. Add start_index, end_index arguments.
113521         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
113522         start_index, end_index arguments.
113523         (gl_linked_remove): Update.
113524         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
113525         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
113526         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
113527         field to 'size_t'.
113528         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
113529         gl_tree_search. Add start_index, end_index arguments.
113530         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
113531         start_index, end_index arguments.
113532         (gl_tree_remove): Update.
113533         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
113534         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
113535         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
113536         function.
113537         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
113538         gl_tree_search. Add start_index, end_index arguments.
113539         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
113540         start_index, end_index arguments.
113541         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
113542         Update.
113543         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
113545 2006-10-05  Bruno Haible  <bruno@clisp.org>
113547         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
113549         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
113550         fwriteerror_temp): New declarations.
113551         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
113552         (descriptors): New variable.
113553         (cleanup): First, close the descriptors.
113554         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
113555         fclose_temp, fwriteerror_temp): New functions.
113557 2006-10-04  Jim Meyering  <jim@meyering.net>
113559         * lib/fts.c (fts_open): Tiny comment change.
113561 2006-10-04  Bruno Haible  <bruno@clisp.org>
113563         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
113564         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
113565         gl_LOCK_BODY.
113566         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
113567         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
113568         gl_LOCK_EARLY_BODY.
113569         (gl_LOCK): Require gl_LOCK_BODY.
113571 2006-10-04  Bruno Haible  <bruno@clisp.org>
113573         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
113574         (gl_oset_search_atleast): New declaration.
113575         (struct gl_oset_implementation): Add field 'search_atleast'.
113576         (gl_oset_search_atleast): New inline function.
113577         * lib/gl_oset.c (gl_oset_search_atleast): New function.
113578         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
113579         (gl_array_oset_implementation): Update.
113580         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
113581         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
113582         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
113584 2006-10-04  Bruno Haible  <bruno@clisp.org>
113586         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
113588 2006-10-03  Bruno Haible  <bruno@clisp.org>
113590         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
113591         from gl_avltreehash_list_implementation.
113593 2006-10-03  Bruno Haible  <bruno@clisp.org>
113595         * lib/gl_oset.c (gl_oset_add): Fix return type.
113597 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
113599         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
113601 2006-10-02  Eric Blake  <ebb9@byu.net>
113603         * modules/strnlen (Depends-on): Add extensions.
113605 2006-10-02  Eric Blake  <ebb9@byu.net>
113607         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
113608         definition in 2.60+.
113610 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
113612         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
113613         checks.
113615 2006-10-02  Bruno Haible  <bruno@clisp.org>
113617         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
113618         to the AUTOMAKE_OPTIONS.
113619         Reported by Jim Meyering.
113621 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
113623         Work around bug in Solaris 10 /proc file system:
113624         /proc/self/fd/NNN/.. isn't the parent directory of
113625         the directory whose file descriptor is NNN.  This needs to
113626         be worked around at run time, not compile time, since a
113627         program might be built on Solaris 8, where things work, and
113628         run on Solaris 10.
113629         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
113630         to use the following interface instead:
113631         (OPENAT_BUFFER_SIZE): New macro.
113632         (openat_proc_name): New function.
113633         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
113634         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
113635         Likewise.
113636         * lib/openat-proc.c: New file.
113637         * modules/openat (Files): Add lib/openat-proc.c.
113638         (Depends-on): Add same-inode, stdbool.
113639         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
113641 2006-09-29  Bruno Haible  <bruno@clisp.org>
113643         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
113644         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
113645         argument. Set stdout_closed before testing for ferror, not after.
113646         (fwriteerror, fwriteerror_no_ebadf): New functions.
113648 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113650         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
113652 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
113654         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
113655         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
113657 2006-09-28  Jim Meyering  <jim@meyering.net>
113659         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
113660         Include <unistd.h>.
113662 2006-09-28  Bruno Haible  <bruno@clisp.org>
113664         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
113665         * modules/linkedhash-list (Depends-on): Likewise.
113666         * modules/rbtreehash-list (Depends-on): Likewise.
113668 2006-09-28  Bruno Haible  <bruno@clisp.org>
113670         * lib/strndup.h: Simplify the redefinition of strndup.
113671         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
113672         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
113674 2006-09-28  Bruno Haible  <bruno@clisp.org>
113676         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
113677         * lib/gl_linkedhash_list.c: Likewise.
113678         * lib/gl_rbtreehash_list.c: Likewise.
113680 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
113682         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
113683         getaddrinfo.
113685         * lib/__fpending.h: Don't include <stdio_ext.h> unless
113686         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
113687         it causes <stdio_ext.h> to cause a compile-time error.
113688         Problem reported by Nelson H. F. Beebe.
113689         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
113690         of HAVE_DECL___PENDING.
113692         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
113693         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
113694         declaration.
113696 2006-09-27  Jim Meyering  <jim@meyering.net>
113698         This file could end up with a definition for a function
113699         named __strndup, rather than rpl_strndup on a system with
113700         incomplete weak_alias support.
113701         * lib/strndup.c (strndup): Rename from __strndup.
113702         Remove #defines that used to map __strndup to strndup.
113703         Don't use K&R prototypes.
113704         Remove LIBC-related code, since this file is not sync'd with glibc.
113705         * lib/strndup.h: Revamp, accordingly.
113706         * m4/strndup.m4: Modernize.
113708 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
113710         * modules/savewd (Depends-on): Add 'raise'.
113711         * lib/savewd.c: Include <signal.h>, for 'raise'.
113713 2006-09-26  Jim Meyering  <jim@meyering.net>
113715         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
113716         when we detect Darwin 8.7.0's acl_get_file bug.
113717         Rearrange to perform the new (below) run-test while $LIBS
113718         contains any acl-related library.  Set USE_ACL at the end.
113719         (gl_ACL_GET_FILE): New function.
113721 2006-09-26  Eric Blake  <ebb9@byu.net>
113723         * lib/verror.c: Include <config.h> unconditionally.
113725 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
113727         * modules/clock-time (Maintainer): Add self.
113728         * modules/getlogin_r (Depends-on): Add extensions.
113730 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113732         * modules/clock-time: New module.
113733         * modules/nanosleep (Depends-on): Add clock-time.
113734         * modules/gethrxtime (Depends-on): Likewise.
113735         * modules/gettime (Depends-on): Likewise.
113736         * modules/settime (Depends-on): Likewise.
113738         * modules/fts-lgpl: Depend on openat.
113739         * modules/mkancesdirs: Depend on savewd.
113740         * modules/mkdir-p: Likewise.
113742 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113744         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
113746         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
113747         `gl_have_arbitrary_file_name_length_limit' to
113748         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
113749         actually works between configure runs.
113751 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113752             Bruno Haible  <bruno@clisp.org>
113754         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
113756 2006-09-25  Jim Meyering  <jim@meyering.net>
113758         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
113759         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
113761 2006-09-25  Eric Blake  <ebb9@byu.net>
113763         * gnulib-tool (func_import, func_create_testdir): Fix typos in
113764         exec's in 2006-09-18 patch when shuffling fds.
113766 2006-09-25  Bruno Haible  <bruno@clisp.org>
113768         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
113769         Reported by Jim Meyering.
113771 2006-09-24  Jim Meyering  <jim@meyering.net>
113773         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
113774         compare a pointer against a literal "0".  That caused failures with
113775         at least HP-UX's hpcc.
113777 2006-09-22  Simon Josefsson  <jas@extundo.com>
113779         * modules/gc-sha1:
113780         * modules/gc-md4:
113781         * modules/gc-hmac-sha1:
113782         * modules/gc-hmac-md5:
113783         * modules/gc-des:
113784         * modules/gc-arcfour: Distribute more files.
113786 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113788         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
113789         (gl_linked_iterator_from_to): Initialize struct completely.
113790         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
113791         (gl_tree_iterator_from_to): Likewise
113792         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
113793         * lib/gl_array_list.c [lint] (gl_array_iterator)
113794         (gl_array_iterator_from_to): Likewise.
113795         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
113796         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
113797         (gl_carray_iterator_from_to): Likewise.
113799         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
113800         * lib/md4.c (md4_process_block): Remove unused variable.
113801         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
113802         parentheses for clarity.
113804 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113806         * modules/bison-i18n (Depends-on): Add gettext.
113808 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113810         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
113811         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
113812         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
113813         also add missing comma that caused broken test.
113814         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
113815         stdlib.h, for `abort'.
113816         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
113817         variables.
113818         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
113819         include unistd.h if present, for `rmdir'.
113820         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
113821         variables.
113822         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
113823         in the process include standard headers for prototypes.
113824         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
113825         gets declared on GNU/Linux.
113826         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
113827         unistd.h, for `rmdir'.
113828         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
113830         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
113831         always true.
113832         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
113834         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
113836 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113838         * gnulib-tool (func_version): Create output all at once.  This
113839         may help avoid triggering unnecessary SIGPIPEs, and at any
113840         rate it doesn't hurt.
113842 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113843             Bruno Haible  <bruno@clisp.org>
113845         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
113846         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
113847         * m4/signed.m4 (bh_C_SIGNED): Likewise.
113849         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
113850         (gl_FUNC_VASPRINTF): Invoke it.
113852 2006-09-22  Bruno Haible  <bruno@clisp.org>
113854         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
113855         getloadavg.c as first argument.
113857 2006-09-22  Bruno Haible  <bruno@clisp.org>
113859         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
113860         at the beginning of the gl_INIT macro.
113861         * modules/getloadavg (configure.ac): Pass $gl_source_base to
113862         gl_GETLOADAVG.
113864 2006-09-22  Bruno Haible  <bruno@clisp.org>
113866         * gnulib-tool (func_create_megatestdir): Don't include the config-h
113867         module.
113868         Suggested by Ralf Wildenhues.
113870 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
113872         Import this patch from libc:
113874         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
113876         * lib/regex_internal.c (re_string_reconstruct): Handle
113877         offset < pstr->valid_raw_len && pstr->offsets_needed case.
113878         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
113879         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
113880         re_string_context_at.
113882         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
113883         now requires it.
113884         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
113885         gl_REGEX now does it for us.
113886         (gl_REGEX): Add test taken from
113887         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
113889         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
113890         Check that large offsets work.  Modernize Autoconf usages.
113891         Prefer "yes" to mean a good thing rather than a bad.
113892         Don't put "#define mkstemp" in config.h, as this might interfere
113893         with standard system headers that "#define mkstemp mkstemp64".
113895         * modules/mkstemp (Depends-on): Add extensions, so that
113896         mkstemp is visible on some platforms.
113897         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
113898         (Include): Change to "mkstemp.h" from <stdlib.h>.
113899         (Files): Add mkstemp.h.
113901         * lib/mkstemp.h: New file, since some standard headers
113902         #define mkstemp.
113903         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
113904         Include "mkstemp.h".
113905         Make the _LIBC code resemble glibc original more,
113906         e.g., use K&R style.
113907         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
113908         (mkstemp): Remove, since mkstemp.h does this for us.
113909         * lib/stdlib--.h: Include mkstemp.h.
113911         Import this patch from libc:
113913         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113915         * lib/tempname.c (__gen_tempname): Change attempts_min
113916         into a macro.  Use preprocessor to decide how to initialize
113917         attempts [Coverity CID 67].
113919 2006-09-20  Bruno Haible  <bruno@clisp.org>
113921         * lib/mkdtemp.c: Import from libc.
113922         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113923                 * sysdeps/posix/tempname.c (__gen_tempname): Change
113924                 attempts_min into a macro.  Use preprocessor to decide how to
113925                 initialize attempts [Coverity CID 67].
113926         2001-11-27  Paul Eggert  <eggert@twinsun.com>
113927                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
113928                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
113930 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113932         * gnulib-tool (func_exit): New function, to allow to pass the
113933         exit status portably through the trap.  Use everywhere.
113934         (--help, --version): Signal a write error.
113935         (trap): catch SIGPIPE, for write errors.
113936         Exit at the end of the trap, with the correct exit status.
113938 2006-09-19  Karl Berry  <karl@gnu.org>
113940         * doc/gnulib.texi: note about the license texinfo files.
113942 2006-09-19  Eric Blake  <ebb9@byu.net>
113944         * gnulib-tool: Avoid space-tab.
113946 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113948         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
113949         that prevented coreutils 6.1 from building.  Problem reported
113950         by Petter Reinholdtsen.
113952 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113954         * gnulib-tool (avoidlist): Fix typo that broke options like
113955         --avoid=lock that are used by coreutils bootstrap.
113957 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
113959         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
113960         more systematically.
113962 2006-09-18  Jim Meyering  <jim@meyering.net>
113964         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
113966 2006-09-18  Bruno Haible  <bruno@clisp.org>
113968         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
113970 2006-09-18  Bruno Haible  <bruno@clisp.org>
113972         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
113973         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
113974         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
113975         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
113976         * m4/gettext.m4: Require autoconf >= 2.52.
113977         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
113978         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
113979         of gl_cv_header_inttypes_h.
113981 2006-09-18  Bruno Haible  <bruno@clisp.org>
113983         * lib/javaversion.c: Include configmake.h.
113985 2006-09-18  Bruno Haible  <bruno@clisp.org>
113987         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
113988         avoid that the while loops be executed in a subshell.
113990 2006-09-18  Bruno Haible  <bruno@clisp.org>
113992         * MODULES.html.sh (func_module): Break long lines.
113993         Suggested by Bruce Korb <bkorb@gnu.org>.
113995 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113997         Speed up by a factor of 1.12.
113998         * gnulib-tool (nl): New variable.
113999         (func_import): Rewrite include directive extraction to only read each
114000         directive once.
114002 2006-09-17  Bruno Haible  <bruno@clisp.org>
114004         * modules/javaversion (Makefile.am): Remove DEFS setting.
114005         (Depends-on): Add configmake, for PKGDATADIR definition.
114007 2006-09-17  Bruno Haible  <bruno@clisp.org>
114009         * gnulib-tool (func_create_testdir): Rewrite all files at once.
114011 2006-09-17  Bruno Haible  <bruno@clisp.org>
114013         * gnulib-tool (func_append): New function, stolen from libtool.m4.
114014         (func_modules_transitive_closure, func_modules_add_dummy,
114015         func_modules_to_filelist, func_import, func_create_testdir,
114016         func_create_megatestdir, ...): Use it wherever possible.
114017         Suggested by Ralf Wildenhues.
114019 2006-09-16  Karl Berry  <karl@gnu.org>
114021         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
114022         to avoid sectioning errors.
114023         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
114024         [ifinfo]: blank line after @center-ed titles.
114025         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
114026         Spell FSF address consistently with others.
114027         (These changes approved by rms.)
114029 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114031         Speed up by a factor of 1.61.
114032         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
114033         already checked module names again.
114035 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114037         Speed up by a factor of 1.13.
114038         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
114039         for new_files, and the input to func_add_or_update.
114041 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114043         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
114044         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
114046 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
114048         * modules/mkancesdirs (Depends-on): Add fcntl.
114049         * modules/savewd: New file.
114050         * MODULES.html.sh (File system functions): Add savewd.
114052         * modules/configmake (Makefile.am): Add support for the
114053         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
114055 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
114057         * m4/savewd.m4: New file.
114059 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
114061         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
114062         (dirchownmod): New arg FD.  All callers changed.
114063         Use FD rather than opening the directory ourself, as opening is
114064         now the caller's responsibility.
114065         * lib/dirchownmod.h: Likewise.
114066         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
114067         hosts that require <sys/types.h> before <sys/stat.h>.  Include
114068         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
114069         (test_dir): Remove.
114070         (mkancesdirs): Return length of prefix of FILE that has already
114071         been made, or -2 if there is a child doing the work.  Redo
114072         algorithm so that it is O(N) rather than O(N**2).  Optimize away
114073         ".", and treat ".." specially since it might stray back into
114074         already-created areas.  Use a subprocess if necessary.  New arg
114075         WD; all users changed.  MAKE_DIR function should now return 1
114076         if it creates a directory that is not readable.  Return -2 if
114077         a child process is spun off.
114078         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
114079         Adjust signature to match code.
114080         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
114081         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
114082         all users changed.
114083         * lib/savewd.c, lib/savewd.h: New files.
114085 2006-09-15  Jim Meyering  <jim@meyering.net>
114087         * modules/rename-dest-slash: New module.
114088         * MODULES.html.sh (posix_compat): Add it here.
114090         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
114092 2006-09-15  Jim Meyering  <jim@meyering.net>
114094         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
114095         file.
114097         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
114099 2006-09-15  Jim Meyering  <jim@meyering.net>
114101         * lib/rename-dest-slash.c (has_trailing_slash): Use
114102         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
114103         (rpl_rename_dest_slash): Perform the cheaper trailing slash
114104         test before testing whether SRC is a directory.
114105         Suggestions from Bruno Haible.
114107         Avoid a warning about an unused variable.
114108         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
114109         into the #ifdef block where it's used.
114111         * lib/rename-dest-slash.c: New file.
114113 2006-09-14  Bruno Haible  <bruno@clisp.org>
114115         * lib/allocsa.c: Include <config.h> unconditionally.
114116         * lib/asnprintf.c: Likewise.
114117         * lib/asprintf.c: Likewise.
114118         * lib/c-strcasecmp.c: Likewise.
114119         * lib/c-strcasestr.c: Likewise.
114120         * lib/c-strncasecmp.c: Likewise.
114121         * lib/c-strstr.c: Likewise.
114122         * lib/classpath.c: Likewise.
114123         * lib/clean-temp.c: Likewise.
114124         * lib/concatpath.c: Likewise.
114125         * lib/copy-file.c: Likewise.
114126         * lib/csharpcomp.c: Likewise.
114127         * lib/csharpexec.c: Likewise.
114128         * lib/execute.c: Likewise.
114129         * lib/fatal-signal.c: Likewise.
114130         * lib/findprog.c: Likewise.
114131         * lib/fwriteerror.c: Likewise.
114132         * lib/gl_array_list.c: Likewise.
114133         * lib/gl_array_oset.c: Likewise.
114134         * lib/gl_avltree_list.c: Likewise.
114135         * lib/gl_avltree_oset.c: Likewise.
114136         * lib/gl_avltreehash_list.c: Likewise.
114137         * lib/gl_carray_list.c: Likewise.
114138         * lib/gl_linked_list.c: Likewise.
114139         * lib/gl_linkedhash_list.c: Likewise.
114140         * lib/gl_list.c: Likewise.
114141         * lib/gl_oset.c: Likewise.
114142         * lib/gl_rbtree_list.c: Likewise.
114143         * lib/gl_rbtree_oset.c: Likewise.
114144         * lib/gl_rbtreehash_list.c: Likewise.
114145         * lib/imaxabs.c: Likewise.
114146         * lib/imaxdiv.c: Likewise.
114147         * lib/javacomp.c: Likewise.
114148         * lib/javaexec.c: Likewise.
114149         * lib/javaversion.c: Likewise.
114150         * lib/linebreak.c: Likewise.
114151         * lib/localcharset.c: Likewise.
114152         * lib/lock.c: Likewise.
114153         * lib/mbchar.c: Likewise.
114154         * lib/mbswidth.c: Likewise.
114155         * lib/mkdtemp.c: Likewise.
114156         * lib/pipe.c: Likewise.
114157         * lib/printf-args.c: Likewise.
114158         * lib/printf-parse.c: Likewise.
114159         * lib/progname.c: Likewise.
114160         * lib/progreloc.c: Likewise.
114161         * lib/readlink.c: Likewise.
114162         * lib/sh-quote.c: Likewise.
114163         * lib/stpcpy.c: Likewise.
114164         * lib/stpncpy.c: Likewise.
114165         * lib/strcasecmp.c: Likewise.
114166         * lib/strcasestr.c: Likewise.
114167         * lib/strcspn.c: Likewise.
114168         * lib/striconv.c: Likewise.
114169         * lib/strncasecmp.c: Likewise.
114170         * lib/strnlen1.c: Likewise.
114171         * lib/strstr.c: Likewise.
114172         * lib/strtok_r.c: Likewise.
114173         * lib/tls.c: Likewise.
114174         * lib/tmpdir.c: Likewise.
114175         * lib/unicodeio.c: Likewise.
114176         * lib/unsetenv.c: Likewise.
114177         * lib/vasnprintf.c: Likewise.
114178         * lib/vasprintf.c: Likewise.
114179         * lib/wait-process.c: Likewise.
114180         * lib/xallocsa.c: Likewise.
114181         * lib/xsetenv.c: Likewise.
114182         * lib/xstriconv.c: Likewise.
114184 2006-09-13  Simon Josefsson  <jas@extundo.com>
114186         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
114187         that internally, suggested by Ralf Wildenhues
114188         <Ralf.Wildenhues@gmx.de>.
114190 2006-09-13  Simon Josefsson  <jas@extundo.com>
114192         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
114193         @LIBOBJS@.
114194         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114196 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
114198         * lib/_fpending.c: Include <config.h> unconditionally, since we no
114199         longer worry about uses that don't define HAVE_CONFIG_H.
114200         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
114201         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
114202         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
114203         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
114204         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
114205         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
114206         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
114207         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
114208         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
114209         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
114210         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
114211         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
114212         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
114213         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
114214         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
114215         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
114216         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
114217         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
114218         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
114219         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
114220         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
114221         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
114222         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
114223         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
114224         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
114225         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
114226         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
114227         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
114228         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
114229         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
114230         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
114231         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
114232         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
114233         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
114234         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
114235         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
114236         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
114237         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
114238         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
114239         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
114240         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
114241         Likewise.
114243 2006-09-13  Eric Blake  <ebb9@byu.net>
114245         * lib/getopt.c: Fix typo in last commit.
114247 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
114249         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
114250         dgettext.
114252 2006-09-12  Jim Meyering  <jim@meyering.net>
114254         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
114255         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
114256         Reported by Nelson H. F. Beebe.
114258 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114260         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
114261         program_invocation_name and program_invocation_short_name are
114262         initialized.
114263         * lib/argp-namefrob.h: Move declarations of program_invocation_name
114264         and program_invocation_short_name to argp.h, so they are visible
114265         to user programs.
114266         * lib/argp.h: Likewise
114268 2006-09-10  Bruno Haible  <bruno@clisp.org>
114270         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
114271         m4/inttypes_h.m4, m4/uintmax_t.m4.
114273 2006-09-10  Bruno Haible  <bruno@clisp.org>
114275         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
114276         gl_AC_TYPE_UINTMAX_T.
114278 2006-09-10  Bruno Haible  <bruno@clisp.org>
114280         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
114282 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114284         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
114285         convention.  Text proposed by Bruno Haible.
114286         (struct argp_option): Document the use of N_() wrappers.
114288         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
114289         '\v', and translate the two parts separately, instead of feeding
114290         the whole string to gettext.  This allows to exclude
114291         '\v' from the strings visible to the translator by writing doc
114292         strings as N_("..") "\v" N_("..").
114294 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
114296         * config/srclist.txt: Undo latest change; the bug was fixed.
114298 2006-09-09  Bruno Haible  <bruno@clisp.org>
114300         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
114301         assignments if building a library without libtool.
114302         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
114303         in func_emit_lib_Makefile_am.
114304         (func_import): When building a static library libfoo.a, arrange to
114305         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
114306         (func_create_testdir): Likewise.
114307         * modules/gc (configure.ac, Makefile.am): If building statically,
114308         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
114309         * modules/iconvme (configure.ac, Makefile.am): Likewise.
114310         * modules/striconv (configure.ac, Makefile.am): Likewise.
114311         Based on a suggestion by Ralf Wildenhues.
114313 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114315         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
114316         Check for unistd.h too, since Autoconf doesn't assume POSIX.
114317         Also:
114319         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114320         Add year_2050_test to catch glibc bug 2821
114321         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
114323         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114324         Prefer #ifdef to #if.
114326         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
114327         Return from 'main' instead of calling 'exit'.
114329 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114331         * lib/mktime.c (guess_time_tm): Fix bug where mktime
114332         returned the maximum time_t value rather than (time_t) -1.
114333         Problem originally reported by William Bardwell
114334         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
114336         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
114337         Moved to here ...
114338         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
114339         ... from here.
114341 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
114343         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
114344         2821 is fixed.
114346 2006-09-08  Jim Meyering  <jim@meyering.net>
114348         Don't make generated files read-only.  That would bother too many
114349         people.  However, do retain the ability to work when targets are
114350         read-only: remove the destination and temporary files before writing
114351         them (when generated via sed or echo), or by using the -f option for
114352         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
114353         * modules/alloca-opt, modules/argz, modules/arpa_inet:
114354         * modules/byteswap, modules/configmake, modules/fcntl:
114355         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
114356         * modules/localcharset, modules/netinet_in, modules/poll:
114357         * modules/stdbool, modules/stdint, modules/sys_select:
114358         * modules/sys_socket, modules/sys_stat, modules/sysexits:
114360 2006-09-08  Jim Meyering  <jim@meyering.net>
114362         Avoid new build failure on FreeBSD 6.0.
114363         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
114364         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
114365         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
114367 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114369         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
114371 2006-09-07  Jim Meyering  <jim@meyering.net>
114373         Fix global typo in last change: use chmod u-w, not chmod u-x.
114374         Spotted by Paul Eggert and Bruce Korb.
114375         * modules/alloca-opt, modules/argz, modules/arpa_inet:
114376         * modules/byteswap, modules/configmake, modules/fcntl:
114377         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
114378         * modules/localcharset, modules/netinet_in, modules/poll:
114379         * modules/stdbool, modules/stdint, modules/sys_select:
114380         * modules/sys_socket, modules/sys_stat, modules/sysexits:
114382 2006-09-06  Jim Meyering  <jim@meyering.net>
114384         Make generated files be read-only.
114385         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
114386         Ensure that each generated file is now read-only.
114387         * modules/argz: Likewise.
114388         * modules/arpa_inet: Likewise.
114389         * modules/byteswap: Likewise.
114390         * modules/configmake: Likewise.
114391         * modules/fcntl: Likewise.
114392         * modules/fnmatch: Likewise.
114393         * modules/getopt: Likewise.
114394         * modules/glob: Likewise.
114395         * modules/inttypes: Likewise.
114396         * modules/netinet_in: Likewise.
114397         * modules/poll: Likewise.
114398         * modules/stdbool: Likewise.
114399         * modules/stdint: Likewise.
114400         * modules/sys_select: Likewise.
114401         * modules/sys_socket: Likewise.
114402         * modules/sys_stat: Likewise.
114403         * modules/sysexits: Likewise.
114404         * modules/localcharset: Same as above, but continue using temporary
114405         file named "t-$@" (why different?) rather than the "$@-t" used
114406         everywhere else.
114408         * modules/sysexits (Makefile.am): Replace literal occurrences
114409         of "sysexit.h" more readable, and more consistent, "$@".
114411 2006-09-06  Bruno Haible  <bruno@clisp.org>
114413         * modules/striconv: New file.
114414         * modules/xstriconv: New file.
114415         * MODULES.html.sh (Internationalization functions): Add striconv,
114416         xstriconv.
114418 2006-09-06  Bruno Haible  <bruno@clisp.org>
114420         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
114421         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
114422         not using libtool correctly.
114424 2006-09-06  Bruno Haible  <bruno@clisp.org>
114426         * lib/striconv.h: New file.
114427         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
114428         iconvstring.c.
114429         * lib/xstriconv.h: New file.
114430         * lib/xstriconv.c: New file.
114432 2006-09-06  Bruno Haible  <bruno@clisp.org>
114434         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
114435         lib_..._LDFLAGS.
114437 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114439         * lib/argz_.h: Sync from Libtool.
114441         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
114442                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
114444         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
114446 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
114448         * modules/trim: New file.
114450 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
114452         * lib/trim.h: New file.
114453         * lib/trim.c: New file.
114455 2006-09-05  Bruno Haible  <bruno@clisp.org>
114457         * MODULES.html.sh (String handling): Add trim.
114459 2006-09-04  Karl Berry  <karl@gnu.org>
114461         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
114462         until next release.
114464 2006-09-03  Bruno Haible  <bruno@clisp.org>
114466         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
114467         correctly.
114469 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114471         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
114472         not gl_GETLOADAVG.  Omit unneeded semicolons.
114473         Problems reported by Ralf Wildenhues in
114474         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
114475         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
114476         at the end, which is the usual gnulib style.
114478         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
114479         of doing all the work ourselves.
114480         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
114481         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
114483 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114485         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
114486         Problem reported by Ralf Wildenhues in
114487         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
114489         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
114490         HAVE_STRUCT_STATFS_F_FSTYPENAME.
114492 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
114494         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
114495         yesterday's patch by changing test -n to test -z.
114497 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114499         * modules/getloadavg (Files): Add m4/getloadavg.m4.
114500         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
114501         the former is now obsolescent.
114503         * modules/chdir-long (Depends-on): Add fcntl.
114505 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114507         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
114508         obsolescent, and programs should use gnulib instead.
114509         * m4/getloadavg.m4: New file, with contents taken from Autoconf
114510         but with prefixes changed.
114512 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
114514         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
114515         or stdbool.h, because they might not exist while configuring.
114517         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
114518         Don't include unistd.h or limits.h; not needed, since chdir-long.h
114519         does that for us.
114520         (O_DIRECTORY): Remove.
114522 2006-08-31  Eric Blake  <ebb9@byu.net>
114524         * gnulib-tool: Don't let emacs change spaces to TAB.
114526 2006-08-31  Bruno Haible  <bruno@clisp.org>
114528         * gnulib-tool: When calling func_import more than once, do it in a
114529         subshell.
114530         Reported by Eric Blake <ebb9@byu.net>.
114532 2006-08-31  Bruno Haible  <bruno@clisp.org>
114534         * gnulib-tool (nl): Remove variable.
114535         (sed_transform_lib_file): Use more robust test for config-h module.
114536         (func_import): Fix typo in 2006-08-25 patch.
114538 2006-08-31  Bruno Haible  <bruno@clisp.org>
114540         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
114541         specified, augment Makefile.am variables instead of assigning them.
114543 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114545         Work around a bug in both the Linux and SunOS 64-bit kernels:
114546         nanosleep mishandles sleeps for longer than 2**31 seconds.
114547         Problem reported by Frank v Waveren in
114548         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
114549         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
114550         Check for nanosleep bug.
114551         (LIB_NANOSLEEP): Append clock_gettime library if needed.
114553 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114555         Work around a bug in both the Linux and SunOS 64-bit kernels:
114556         nanosleep mishandles sleeps for longer than 2**31 seconds.
114557         Problem reported by Frank v Waveren in
114558         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
114559         * lib/nanosleep.c (BILLION): New constant.
114560         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
114561         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
114562         implementation.
114564 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114566         * modules/nanosleep (Depends-on): Add gettime.
114568 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
114569         and Simon Josefsson  <jas@extundo.com>
114570         and Oskar Liljeblad  <oskar@osk.mine.nu>
114572         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
114573         * gnulib-tool (func_import): New license type 'unmodifiable license
114574         text'.
114575         * modules/fdl: Use it.  Longer description.
114576         * module/gpl, module/lgpl: New files.
114578 2006-08-30  Jim Meyering  <jim@meyering.net>
114580         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
114581         shadowing the parameter.
114583 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114585         Sync from Libtool:
114587         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114589         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
114590         sharing with gnulib.  Report by Eric Blake.
114592 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114594         * modules/isapipe: New file.
114595         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
114597 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114599         * modules/configmake (Makefile.am): Add a comment, and omit
114600         the CONFIGMAKE_ prefix from generated macro names.  Suggested
114601         by Bruno Haible.
114603 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114605         * m4/isapipe.m4: New file.
114607 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
114609         * lib/isapipe.c, lib/isapipe.h: New files.
114611 2006-08-29  Jim Meyering  <jim@meyering.net>
114613         * modules/configmake (Makefile.am): Make configmake.h depend on
114614         Makefile.  Otherwise, a stale configmake.h could hang around.
114616 2006-08-29  Eric Blake  <ebb9@byu.net>
114618         * lib/error.c (error_at_line, print_errno_message): Match libc, after
114619         resolution of upstream bug 3044.
114621 2006-08-29  Bruno Haible  <bruno@clisp.org>
114623         * modules/localcharset (Depends-on): Add configmake.
114624         (Makefile.am): Remove setting of LIBDIR through DEFS.
114626 2006-08-29  Bruno Haible  <bruno@clisp.org>
114628         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
114629         defined.
114631 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114633         * modules/fcntl: New file.
114634         * modules/chdir-safer (Depends-on): Add fcntl.
114635         * modules/fts: Likewise.
114636         * modules/mkdir-p: Likewise.
114638         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
114639         This undoes the most recent change, since we're now addressing the
114640         problem in a different way.
114642         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
114643         into output, since the output might be called Makefile.am even
114644         if $makefile_name is something different.
114645         (func_import): Use $makefile_am rather than
114646         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
114647         empty.
114649         * modules/inttypes (Files): Add m4/inttypes-h.m4.
114651 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114653         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
114654         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
114655         recent change to stdint.m4, since we're now addressing the problem in a
114656         different way.
114658 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114660         * m4/fcntl_h.m4: New file.
114662 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114664         * lib/fcntl_.h: New file.
114665         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
114666         the fcntl module.
114667         * lib/dirchownmod.c: Likewise.
114668         * lib/fts.c: Likewise.
114670         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
114671         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
114672         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
114673         just before including <inttypes.h>, to avoid circular inclusion.
114675 2006-08-28  Jim Meyering  <jim@meyering.net>
114677         * doc/visibility.texi: Actually read and correct the grammar of the
114678         sentence affected by yesterday's change.
114680 2006-08-28  Eric Blake  <ebb9@byu.net>
114682         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
114683         needs wrapper.
114685 2006-08-28  Eric Blake  <ebb9@byu.net>
114687         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
114689 2006-08-28  Eric Blake  <ebb9@byu.net>
114691         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
114693 2006-08-28  Bruno Haible  <bruno@clisp.org>
114695         * modules/c-strstr: New file, from GNU gettext.
114696         * MODULES.html.sh (String handling): Add c-strstr.
114698 2006-08-28  Bruno Haible  <bruno@clisp.org>
114700         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
114701         macros.
114702         Reported by Eric Blake.
114704 2006-08-28  Bruno Haible  <bruno@clisp.org>
114706         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
114707         (VASNPRINTF): Return a string of length > INT_MAX without failing.
114708         * lib/vasprintf.c: Include errno.h, limits.h.
114709         (EOVERFLOW): New fallback definition.
114710         (vasprintf): Test here whether the string length is > INT_MAX.
114711         * lib/vsnprintf.c: Include errno.h, limits.h.
114712         (EOVERFLOW): New fallback definition.
114713         (vsnprintf): Fix bug when generated string was too long for the buffer.
114714         Test here whether the string length is > INT_MAX.
114716 2006-08-28  Bruno Haible  <bruno@clisp.org>
114718         * lib/inttypes_.h (SCNX*): Remove definitions.
114719         Reported by Eric Blake.
114721 2006-08-28  Bruno Haible  <bruno@clisp.org>
114723         * lib/c-strstr.h: New file, from GNU gettext.
114724         * lib/c-strstr.c: New file, from GNU gettext.
114726 2006-08-28  Bruno Haible  <bruno@clisp.org>
114728         * gnulib-tool: Reorder some statements.
114730 2006-08-28  Bruno Haible  <bruno@clisp.org>
114732         * gnulib-tool: New option --makefile-name.
114733         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
114734         $makefile_name.
114735         (func_import): Write $makefile_name to the cache file, and read it from
114736         there unless explicitly specified. Use $makefile_name as file name
114737         instead of Makefile.am. Adjust the recommendations accordingly.
114739 2006-08-28  Bruno Haible  <bruno@clisp.org>
114741         * gnulib-tool (func_verify_module): Check against misapplying patch.
114743 2006-08-28  Bruno Haible  <bruno@clisp.org>
114745         * gnulib-tool (func_relativize, func_relconcat): New functions.
114746         Give an error if --local-dir is given with --update.
114747         Remove trailing slashes from $local_gnulib_dir.
114748         (func_import): Store the relativized $local_gnulib_dir in
114749         gnulib-cache.m4, and read it from there if not specified explicitly.
114751 2006-08-28  Bruno Haible  <bruno@clisp.org>
114753         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
114754         is the current directory. Respect also $local_gnulib_dir.
114756 2006-08-28  Bruno Haible  <bruno@clisp.org>
114757             Simon Josefsson  <jas@extundo.com>
114759         BeOS portability.
114760         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
114762 2006-08-27  Jim Meyering  <jim@meyering.net>
114764         * doc/visibility.texi: Remove duplicate word: "pointer".
114766 2006-08-26  Bruno Haible  <bruno@clisp.org>
114768         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
114769         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
114770         (Makefile.am): Create inttypes.h from inttypes_.h.
114771         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
114773         * modules/imaxabs: New file.
114775         * modules/imaxdiv: New file.
114777 2006-08-26  Bruno Haible  <bruno@clisp.org>
114779         * m4/inttypes.m4: New file.
114780         * m4/_inttypes_h.m4: Remove file.
114781         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
114782         PRI_MACROS_BROKEN.
114783         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
114785         * m4/imaxabs.m4: New file.
114787         * m4/imaxdiv.m4: New file.
114789 2006-08-26  Bruno Haible  <bruno@clisp.org>
114791         * lib/inttypes_.h: New file.
114792         * lib/inttypes.h: Remove file.
114793         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
114795         * lib/imaxabs.c: New file.
114797         * lib/imaxdiv.c: New file.
114799 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114801         New config-h module, so that "make" output needn't be cluttered
114802         by -DHAVE_CONFIG_H.
114803         * MODULES.html.sh (Support for building libraries and executables):
114804         Add config-h.
114805         * modules/config-h: New file.
114806         * gnulib-tool (nl, sed_transform_lib_file): New vars.
114807         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
114808         the config-h module is used.
114810         New configmake module, so that "make" output needn't be cluttered
114811         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
114812         * MODULES.html.sh (Support for building libraries and executables):
114813         Add configmake.
114814         * modules/configmake: New file.
114816 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114818         * m4/config-h.m4: New file.
114820 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114822         * config/srclist.txt: Add elisp-comp.
114824 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114826         * MODULES.html.sh (Support for building libraries and executables):
114827         Add elisp-comp.
114828         * build-aux/elisp-comp: New file.
114829         * modules/elisp-comp: New file.
114831 2006-08-24  Bruno Haible  <bruno@clisp.org>
114833         * gnulib-tool (func_create_testdir): Use non-default values of
114834         sourcebase and m4base.
114836 2006-08-24  Bruno Haible  <bruno@clisp.org>
114838         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
114839         HTML structure.
114841 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
114843         * modules/openat (Depends-on): Add lchown.
114845 2006-08-23  Bruno Haible  <bruno@clisp.org>
114847         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
114848         of gl_LOCK_EARLY instead of gl_LOCK.
114850 2006-08-23  Bruno Haible  <bruno@clisp.org>
114852         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
114853         on OSF/1 to no.
114854         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
114856 2006-08-23  Bruno Haible  <bruno@clisp.org>
114858         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
114859         as unusable.
114861         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
114862         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
114863         (gl_LOCK): New macro.
114865 2006-08-22  Simon Josefsson  <jas@extundo.com>
114867         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
114868         to md5 module.
114870 2006-08-22  Simon Josefsson  <jas@extundo.com>
114872         * MODULES.html.sh: Add "Support for maintaining and release
114873         projects".
114875         * build-aux/gnupload: New file, from coreutils.
114877 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114879         Avoid the need for AC_LIBSOURCES in m4 macros.
114880         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
114881         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
114882         * modules/check-version (EXTRA_DIST): Add check-version.h.
114883         * modules/crc (EXTRA_DIST): Add crc.h.
114884         * modules/des (EXTRA_DIST): Add des.h.
114885         * modules/gc (EXTRA_DIST): Add gc.h.
114886         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
114887         * modules/getline (EXTRA_DIST): Add getline.h.
114888         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
114889         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
114890         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
114891         * modules/md2 (EXTRA_DIST): Add md2.h.
114892         * modules/md4 (EXTRA_DIST): Add md4.h.
114893         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
114894         * modules/read-file (EXTRA_DIST): Add read-file.h.
114895         * modules/readline (EXTRA_DIST): Add readline.h.
114896         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
114897         rijndael-api-fst.h.
114899 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114901         * m4/rijndael.m4 (gl_ARCFOUR):
114902         * m4/arctwo.m4 (gl_ARCTWO):
114903         * m4/check-version.m4 (gl_CHECK_VERSION):
114904         * m4/crc.m4 (gl_CRC):
114905         * m4/des.m4 (gl_DES):
114906         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
114907         * m4/gc.m4 (gl_GC):
114908         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
114909         * m4/getline.m4 (gl_FUNC_GETLINE):
114910         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
114911         * m4/hmac-md5.m4 (gl_HMAC_MD5):
114912         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
114913         * m4/md2.m4 (gl_MD2):
114914         * m4/md4.m4 (gl_MD4):
114915         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
114916         * m4/read-file.m4 (gl_FUNC_READ_FILE):
114917         * m4/readline.m4 (gl_FUNC_READLINE):
114918         * m4/rijndael.m4 (gl_RIJNDAEL):
114919         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114920         to get the necessary .h files and whatnot.
114922 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114924         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
114925         gnulib rather than the other way around.
114926         * config/srclistvars.sh (COREUTILS): Remove.
114928 2006-08-22  Jim Meyering  <jim@meyering.net>
114930         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
114932         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
114934 2006-08-22  Eric Blake  <ebb9@byu.net>
114936         * modules/regexprops-generic: New file.
114937         * MODULES.html.sh (Support for building documentation): List it.
114939 2006-08-22  Eric Blake  <ebb9@byu.net>
114941         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
114942         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
114943         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
114944         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
114946 2006-08-22  Bruno Haible  <bruno@clisp.org>
114948         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
114949         and lib_LTLIBRARIES like the other lib_* variables.
114951 2006-08-22  Bruno Haible  <bruno@clisp.org>
114953         * build-aux/x-to-1.in: New file, from GNU gettext.
114955 2006-08-22  Bruno Haible  <bruno@clisp.org>
114957         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
114958         <utmpx.h> exists.
114960 2006-08-22  Bruno Haible  <bruno@clisp.org>
114962         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
114963         <utmpx.h> exists.
114965 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114967         BeOS portability.
114968         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
114969         exist.
114970         Problem reported by Bruno Haible.
114972 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114974         Avoid the need for AC_LIBSOURCES in m4 macros.
114975         * modules/acl (EXTRA_DIST): Add acl.h.
114976         * modules/argmatch (Files): Add m4/argmatch.m4.
114977         (configure.ac): Add gl_ARGMATCH.
114978         (EXTRA_DIST): Renamed from lib_SOURCES, for
114979         consistency with the other modules.  Remove argmatch.c.
114980         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
114981         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
114982         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
114983         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
114984         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
114985         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
114986         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
114987         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
114988         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
114989         * modules/closeout (EXTRA_DIST): Add closeout.h.
114990         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
114991         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
114992         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
114993         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
114994         dirname.h; remove basename.c and stripslash.c.
114995         * modules/exclude (EXTRA_DIST): Add exclude.h.
114996         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
114997         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
114998         * modules/file-type (EXTRA_DIST): Add file-type.h.
114999         * modules/filemode (EXTRA_DIST): Add filemode.h.
115000         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
115001         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
115002         * modules/fpending (EXTRA_DIST): Add __fpending.h.
115003         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
115004         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
115005         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
115006         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
115007         * modules/getdate (EXTRA_DIST): Add getdate.c.
115008         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
115009         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
115010         * modules/getpass (EXTRA_DIST): Add getpass.h.
115011         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
115012         * modules/group-member (EXTRA_DIST): Add group-member.h.
115013         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
115014         * modules/hash (EXTRA_DIST): Add hash.h.
115015         * modules/human (EXTRA_DIST): Add human.h.
115016         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
115017         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
115018         * modules/lchown (EXTRA_DIST): Add lchown.h.
115019         * modules/long-options (EXTRA_DIST): Add long-options.h.
115020         * modules/lstat (EXTRA_DIST): Add lstat.h.
115021         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
115022         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
115023         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
115024         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
115025         * modules/memxor (EXTRA_DIST): Add memxor.h.
115026         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
115027         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
115028         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
115029         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
115030         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
115031         * modules/physmem (EXTRA_DIST): Add physmem.h.
115032         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
115033         * modules/posixver (EXTRA_DIST): Add posixver.h.
115034         * modules/quote (EXTRA_DIST): Add quote.h.
115035         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
115036         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
115037         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
115038         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
115039         regex_internal.h regexec.c.
115040         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
115041         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
115042         * modules/same (EXTRA_DIST): Add same.h.
115043         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
115044         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
115045         * modules/savedir (EXTRA_DIST): Add savedir.h.
115046         * modules/sha1 (EXTRA_DIST): Add sha1.h.
115047         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
115048         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
115049         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
115050         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
115051         * modules/strdup (EXTRA_DIST): Add strdup.h.
115052         * modules/strftime (EXTRA_DIST): Add strftime.h.
115053         * modules/strndup (EXTRA_DIST): Add strndup.h.
115054         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
115055         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
115056         * modules/time_r (EXTRA_DIST): Add time_r.h.
115057         * modules/timespec (EXTRA_DIST): Add timespec.h.
115058         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
115059         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
115060         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
115061         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
115062         * modules/userspec (EXTRA_DIST): Add userspec.h.
115063         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
115064         * modules/utimens (EXTRA_DIST): Add utimens.h.
115065         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
115066         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
115067         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
115068         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
115069         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
115070         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
115071         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
115072         * modules/yesno (EXTRA_DIST): Add yesno.h.
115074 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
115076         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
115078         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
115079         * m4/dev-ino.m4, same-inode.m4: Remove.
115081         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
115082         * m4/acl.m4 (AC_FUNC_ACL):
115083         * m4/backupfile.m4 (gl_BACKUPFILE):
115084         * m4/c-strtod.m4 (gl_C99_STRTOLD):
115085         * m4/canon-host.m4 (gl_CANON_HOST):
115086         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
115087         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
115088         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
115089         * m4/cloexec.m4 (gl_CLOEXEC):
115090         * m4/close-stream.m4 (gl_CLOSE_STREAM):
115091         * m4/closeout.m4 (gl_CLOSEOUT):
115092         * m4/dirfd.m4 (gl_FUNC_DIRFD):
115093         * m4/dirname.m4 (gl_DIRNAME):
115094         * m4/exclude.m4 (gl_EXCLUDE):
115095         * m4/exitfail.m4 (gl_EXITFAIL):
115096         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
115097         * m4/file-type.m4 (gl_FILE_TYPE):
115098         * m4/filemode.m4 (gl_FILEMODE):
115099         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
115100         * m4/fpending.m4 (gl_FUNC_FPENDING):
115101         * m4/fprintftime.m4 (gl_FPRINTFTIME):
115102         * m4/fts.m4 (gl_FUNC_FTS):
115103         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
115104         * m4/getdate.m4 (gl_GETDATE):
115105         * m4/gethrxtime.m4 (gl_GETHRXTIME):
115106         * m4/getpagesize.m4 (gl_GETPAGESIZE):
115107         * m4/getpass.m4 (gl_FUNC_GETPASS):
115108         * m4/gettime.m4 (gl_GETTIME):
115109         * m4/getugroups.m4 (gl_GETUGROUPS):
115110         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
115111         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
115112         * m4/hard-locale.m4 (gl_HARD_LOCALE):
115113         * m4/hash.m4 (gl_HASH):
115114         * m4/idcache.m4 (gl_IDCACHE):
115115         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
115116         * m4/lchown.m4 (gl_FUNC_LCHOWN):
115117         * m4/long-options.m4 (gl_LONG_OPTIONS):
115118         * m4/lstat.m4 (gl_FUNC_LSTAT):
115119         * m4/md5.m4 (gl_MD5):
115120         * m4/memcasecmp.m4 (gl_MEMCASECMP):
115121         * m4/memcoll.m4 (gl_MEMCOLL):
115122         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
115123         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
115124         * m4/memxor.m4 (gl_MEMXOR):
115125         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
115126         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
115127         * m4/modechange.m4 (gl_MODECHANGE):
115128         * m4/mountlist.m4 (gl_MOUNTLIST):
115129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
115130         * m4/openat.m4 (gl_FUNC_OPENAT):
115131         * m4/pathmax.m4 (gl_PATHMAX):
115132         * m4/physmem.m4 (gl_PHYSMEM):
115133         * m4/posixtm.m4 (gl_POSIXTM):
115134         * m4/posixver.m4 (gl_POSIXVER):
115135         * m4/quote.m4 (gl_QUOTE):
115136         * m4/quotearg.m4 (gl_QUOTEARG):
115137         * m4/readtokens.m4 (gl_READTOKENS):
115138         * m4/readutmp.m4 (gl_READUTMP):
115139         * m4/regex.m4 (gl_REGEX):
115140         * m4/safe-read.m4 (gl_SAFE_READ):
115141         * m4/safe-write.m4 (gl_SAFE_WRITE):
115142         * m4/same.m4 (gl_SAME):
115143         * m4/save-cwd.m4 (gl_SAVE_CWD):
115144         * m4/savedir.m4 (gl_SAVEDIR):
115145         * m4/settime.m4 (gl_SETTIME):
115146         * m4/sha1.m4 (gl_SHA1):
115147         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
115148         * m4/stat-macros.m4 (gl_STAT_MACROS):
115149         * m4/stat-time.m4 (gl_STAT_TIME):
115150         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
115151         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
115152         * m4/strdup.m4 (gl_FUNC_STRDUP):
115153         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
115154         * m4/strndup.m4 (gl_FUNC_STRNDUP):
115155         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
115156         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
115157         * m4/time_r.m4 (gl_TIME_R):
115158         * m4/timespec.m4 (gl_TIMESPEC):
115159         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
115160         * m4/unlinkdir.m4 (gl_UNLINKDIR):
115161         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
115162         * m4/userspec.m4 (gl_USERSPEC):
115163         * m4/utimecmp.m4 (gl_UTIMECMP):
115164         * m4/utimens.m4 (gl_UTIMENS):
115165         * m4/xalloc.m4 (gl_XALLOC):
115166         * m4/xgetcwd.m4 (gl_XGETCWD):
115167         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
115168         * m4/xreadlink.m4 (gl_XREADLINK):
115169         * m4/xstrtod.m4 (gl_XSTRTOD):
115170         * m4/yesno.m4 (gl_YESNO):
115171         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
115172         to get the necessary .h files and whatnot.
115174 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
115175             Bruno Haible  <bruno@clisp.org>
115177         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
115178         /bin/sh understanding of '!' conditional negation.
115180 2006-08-21  Jim Meyering  <jim@meyering.net>
115182         * modules/openat (Depends-on): Really alphabetize.
115184         * modules/acl (Depends-on): Add error and quote.
115186         * check-module (find_included_lib_files): Add at-func.c to the
115187         ok-to-include-more-than-once white list.
115189         * modules/openat (Depends-on): Add lstat.  Alphabetize.
115191 2006-08-21  Bruno Haible  <bruno@clisp.org>
115193         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115194         Emit a pkgdata_DATA variable only if some snippets add contents to it.
115195         Reported by Martin Lambers <marlam@marlam.de>.
115197 2006-08-21  Bruno Haible  <bruno@clisp.org>
115199         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
115200         specify an installation location, don't emit a noinst_LIBRARIES or
115201         noinst_LTLIBRARIES assignment.
115203 2006-08-21  Bruno Haible  <bruno@clisp.org>
115205         BeOS portability.
115206         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
115207         BeOS has mbrtowc() but no <wctype.h>.
115209 2006-08-21  Bruno Haible  <bruno@clisp.org>
115211         BeOS portability.
115212         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
115213         exist.
115215 2006-08-21  Bruno Haible  <bruno@clisp.org>
115217         BeOS portability.
115218         * lib/mbchar.h: Include <wctype.h> only if it exists.
115220 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
115222         Remove files that are no longer needed by their respective modules.
115223         * m4/obstack.m4: Remove.
115224         * m4/strerror_r.m4: Remove.
115225         * m4/uint32_t.m4: Remove.
115226         * m4/uintptr_t.m4: Remove.
115227         * m4/ullong_max.m4: Remove.
115228         * m4/xstrtoimax.m4: Remove.
115229         * m4/xstrtoumax.m4: Remove.
115231         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
115232         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
115233         dependencies now capture this.
115235         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
115236         Do not use AC_LIBSOURCES, since gnulib modules now do this.
115237         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
115238         * m4/human.m4 (gl_HUMAN): Likewise.
115239         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
115240         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
115242         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
115244         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
115245         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
115246         stdint.
115247         * m4/human.m4 (gl_HUMAN): Likewise.
115248         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
115249         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
115250         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
115251         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
115252         * m4/xstrtol (gl_XSTRTOL): Likewise.
115254         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
115255         AC_TYPE_LONG_LONG_INT.
115256         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
115257         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
115258         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
115259         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
115261         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
115262         on stdbool.
115264         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
115265         (gl_PREREQ_XSTRTOUL): Remove.
115267         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
115269         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
115270         mode.
115272 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
115274         Add and change modules to make it easier for coreutils to use
115275         gnulib-tool.
115276         * modules/backupfile (Files): Remove m4/d-ino.m4.
115277         (Depends-on): Add d-ino.
115278         * modules/cycle-check (Depends-on): Add stdint.
115279         (lib_SOURCES): Add cycle-check.h.
115280         * modules/d-ino: New module.
115281         * modules/d-type: New module.
115282         * modules/error (Files): Remove m4/strerror_r.m4.
115283         * modules/filemode (Files): Add m4/st_dm_mode.m4.
115284         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
115285         m4/inttypes_h.m4, m4/uintmax_t.m4.
115286         (Depends-on): Add stdint.
115287         (lib_SOURCES): Add fsusage.h.
115288         * modules/getcwd (Files): Remove d-ino.m4.
115289         (Depends-on): Add d-ino.
115290         * modules/getndelim2 (Depends-on): Add stdint.
115291         * modules/glob (Files): Remove m4/d-type.m4.
115292         (Depends-on): Add d-type.
115293         * modules/host-os: New module.
115294         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
115295         m4/inttypes_h.m4, m4/uintmax_t.m4.
115296         * Depends-on: Add stdint.
115297         (lib_SOURCES): Add human.h.
115298         * modules/inttostr (Files): Remove m4/intmax_t.m4,
115299         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
115300         m4/uintmax_t.m4, m4/ulonglong.m4.
115301         (Depends-on): Add stdint.
115302         (EXTRA_DIST): Add inttostr.h.
115303         * modules/lchmod: New module.
115304         * modules/link-follow: New module.
115305         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
115306         (Depends-on): Add lchmod.
115307         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
115308         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
115309         (Depends-on): Add stdint.
115310         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
115311         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
115312         (Depends-on): Add stdint.
115313         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
115314         * modules/perl: New module.
115315         * modules/regex (Depends-on): Add stdint.
115316         * modules/rmdir-errno: New module.
115317         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
115318         m4/intmax_t.m4.
115319         (Depends-on): Add stdint.
115320         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
115321         m4/uintmax_t.m4.
115322         (Depends-on): Add stdint.
115323         * modules/unlink-busy: New module.
115324         * modules/utimecmp (Depends-on): Add stdint.
115325         * modules/uptime: New module.
115326         * modules/winsz-ioctl: New module.
115327         * modules/winsz-termios: New module.
115328         * modules/xnanosleep (Depends-on): Add nanosleep.
115329         * modules/ullong_max: Remove.
115330         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
115331         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
115332         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
115333         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
115334         (Depends-on): Add inttypes.
115335         (lib_SOURCES): Add xstrtol.h.
115336         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
115337         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
115338         * MODULES.html.sh: Move 'assert' into the assert section.
115339         Move 'dummy' into the linking section.
115340         Remove ullong_max.
115341         Add section for compatibility checks for POSIX:2001 functions,
115342         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
115343         winsz-ioctl, and winsz-termios into it.
115344         Add lchmod.
115345         Add top-level Misc section and put host-os, perl, and uptime
115346         into it.
115348 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
115350         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
115351         now assume the stdint module.  Do not include inttypes.h.
115352         * lib/fsusage.h: Likewise.
115353         * lib/getndelim2.c: Likewise.
115354         * lib/human.h: Likewise.
115355         * lib/inttostr.h: Likewise.
115356         * lib/obstack.c: Likewise.
115357         * lib/regex_internal.h: Likewise.
115358         * lib/tempname.c: Likewise.
115359         * lib/utimecmp.c: Likewise.
115360         * lib/xstrtol.h: Likewise.
115362         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
115364         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
115365         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
115366         * lib/xtime.h: Likewise.
115368 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115370         * modules/openat (Files): Add lib/fchmodat.c.
115371         Fixes problem reported by Jay Youngman.
115373 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
115375         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
115376         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
115378 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
115379             Bruno Haible  <bruno@clisp.org>
115381         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
115382         and is a script that invokes bison. Tighten the code. Add comments.
115384 2006-08-18  Jim Meyering  <jim@meyering.net>
115386         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
115387         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
115388         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
115389         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
115391 2006-08-18  Bruno Haible  <bruno@clisp.org>
115393         * modules/bison-i18n: New file.
115394         * MODULES.html.sh (Internationalization functions): Add it.
115396 2006-08-18  Bruno Haible  <bruno@clisp.org>
115398         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
115399         sys/statvfs.h. When getmntinfo was found, check its declaration and
115400         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
115402 2006-08-18  Bruno Haible  <bruno@clisp.org>
115404         * m4/bison-i18n.m4: New file, from bison.
115406 2006-08-18  Bruno Haible  <bruno@clisp.org>
115408         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
115409         (ME_DUMMY): Treat "kernfs" as a dummy.
115410         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
115412 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
115414         Update from coreutils.
115416         2006-08-15  Jim Meyering  <jim@meyering.net>
115418         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
115420         2006-01-17  Jim Meyering  <jim@meyering.net>
115422         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
115424         2006-01-11  Jim Meyering  <jim@meyering.net>
115426         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
115427         Check for the lchmod function.
115429 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
115431         Update from coreutils.
115433         * lib/__fpending.h: Add copyright notice.
115434         * lib/fprintftime.h: Likewise.
115435         * lib/savedir.c: Use (C) in copyright notice.
115436         * lib/savedir.h: Likewise.
115438         2006-08-15  Jim Meyering  <jim@meyering.net>
115440         * lib/at-func.c: New file, with the logic of all emulated at-functions.
115441         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
115442         in support of the EXPECTED_ERRNO macro.
115443         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
115444         definitions.  Instead, define the appropriate symbols and include
115445         "at-func.c".
115446         * lib/mkdirat.c (mkdirat): Likewise.
115447         * lib/fchmodat.c (fchmodat): Likewise.
115448         (ENOSYS): Remove definition.
115449         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
115450         it.  Don't include "unistd--.h" -- it wasn't ever used.
115452         2006-01-17  Jim Meyering  <jim@meyering.net>
115454         Rewrite fts.c not to change the current working directory,
115455         by using openat, fstatat, fdopendir, etc..
115457         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
115458         (HAVE_OPENAT_SUPPORT): Define.
115459         [_LIBC] (fchdir): Don't undef or define; no longer used.
115460         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
115461         Now, this `function' always succeeds, and consumes its file descriptor
115462         parameter -- so callers must not close such FDs.  Update callers.
115463         (diropen_fd, opendirat, cwd_advance_fd): New functions.
115464         (diropen): Add parameter, SP.  Adjust all callers.
115465         Implement using diropen_fd, rather than open.
115466         (fts_open): Initialize new member, fts_cwd_fd.
115467         Remove fts_rft-setting code.
115468         (fts_close): Close fts_cwd_fd, if necessary.
115469         (__opendir2): Define in terms of opendir or opendirat,
115470         depending on whether the FST_NOCHDIR flag is set.
115471         (fts_build): Since fts_safe_changedir consumes its FD, and since
115472         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
115473         and close the dup'd file descriptor upon failure.
115474         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
115475         (fts_safe_changedir): Tweak semantics to reflect that this function
115476         now calls cwd_advance_fd and hence consumes its FD argument.
115477         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
115478         [struct FTS] (fts_rft): Remove now-unused member.
115479         [struct FTS] (fts_cycle.state): Improve comment.
115481         * lib/openat.c (openat_needs_fchdir): New function.
115482         * lib/openat.h (openat_needs_fchdir): Declare it.
115484 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
115486         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
115487         Problem and fix reported by Pádraig Brady in
115488         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
115490 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115492         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
115494 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115496         * lib/memcoll.c (memcoll): Optimize for the common case where the
115497         arguments are bytewise equal.
115499 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
115501         * doc/regexprops-generic.texi: Add a copyright notice.
115503 2006-08-15  Bruno Haible  <bruno@clisp.org>
115505         * modules/tmpdir (License): Change to LGPL.
115507 2006-08-15  Bruno Haible  <bruno@clisp.org>
115509         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
115510         module.
115512 2006-08-14  Simon Josefsson  <jas@extundo.com>
115514         * config/srclist.txt: Add gnupload.
115516 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115518         Change copyright notice from LGPL 2 to GPL 2, since that's the
115519         standard form used in the gnulib repository.
115520         * tests/test-lock.c: Likewise.
115521         * tests/test-stdint.c: Likewise.
115522         * tests/test-tls.c: Likewise.
115524         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
115525         prelude-manager.  User shorter URLs for GNU projects, without '?'.
115526         Add copyright notice.
115528         * check-module: Add copyright notice.  Output a copyright
115529         notice if "--version" is specified.
115530         * modules/COPYING: New file.
115531         * tests/test-getaddrinfo.c: Add copyright notice.
115532         * tests/test-verify.c: Likewise.
115534 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115536         Change copyright notice from LGPL 2 to GPL 2, since that's the
115537         standard form used in the gnulib repository.
115538         * lib/lock.c: LGPL -> GPL.
115539         * lib/lock.h: Likewise.
115540         * lib/strnlen1.c: Likewise.
115541         * lib/strnlen1.h: Likewise.
115542         * lib/tls.c: Likewise.
115543         * lib/tls.h: Likewise.
115544         * lib/tmpdir.c: Likewise.
115546         * lib/TODO: Remove; this belongs only in coreutils.
115548 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115550         Add copyright notices to long-enough files that lack them, since
115551         otherwise the files aren't clearly free.  Use the same notice that
115552         getdate.texi already uses.
115553         * doc/alloca-opt.texi: Add copyright notice.
115554         * doc/alloca.texi: Likewise.
115555         * doc/ctime.texi: Likewise.
115556         * doc/functions.texi: Likewise.
115557         * doc/gcd.texi: Likewise.
115558         * doc/gnulib-tool.texi: Likewise.
115559         * doc/inet_ntoa.texi: Likewise.
115560         * doc/visibility.texi: Likewise.
115562         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
115563         * doc/quote.texi: Add copyright notice.
115565         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
115566         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
115567         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
115568         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
115569         is now obsolete, and give a pointer to the Sun list.
115570         Add copyright notice.
115572 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
115574         * config/srclistvars.sh: Add copyright notice.
115576 2006-08-14  Eric Blake  <ebb9@byu.net>
115578         Import the following change from libc:
115580         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
115582         Upstream bug 2997.
115583         * lib/misc/error.c: Add space between program name and message if file
115584         name is missing.
115586 2006-08-12  Karl Berry  <karl@gnu.org>
115588         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
115589         remove, these originate in gnulib now.
115591 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115593         * doc/Makefile (standards.info standards.html standards.dvi):
115594         Also depend on make-stds.texi.
115596 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
115598         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
115599         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
115601         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
115602         in wchar_t.  Problem reported by Eric Blake.
115604         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
115605         LEN is smaller than SIZE.  Suggested by Bruno Haible.
115606         Also, help the compiler to keep LEN in a register.
115608 2006-08-11  Eric Blake  <ebb9@byu.net>
115610         * users.txt: Sort.  Add tar.
115612 2006-08-11  Bruno Haible  <bruno@clisp.org>
115614         * users.txt: New file.
115616 2006-08-11  Bruno Haible  <bruno@clisp.org>
115618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
115619         before <wchar.h>. Needed for OSF/1 and BSD/OS.
115621 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
115623         * modules/snprintf (Depends-on): Remove minmax.
115624         (Maintainer): Add self and Bruno.
115626 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
115628         * lib/.cppi-disable: Add snprintf.h, socket_.h.
115629         * lib/snprintf.c: Include <errno.h> and <limits.h>.
115630         (EOVERFLOW): Define if the system does not.
115631         Do not include "minmax.h"; it wasn't used.
115632         (snprintf): Don't assume size_t promotes to an unsigned type.
115633         Fix bug when generated string was too long for the buffer: the
115634         buffer's contents are supposed to be the initial prefix of the
115635         output.  Don't assume vasnprintf returns EOVERFLOW if the size
115636         exceeds INT_MAX; do the check ourselves.
115638         Import the following changes from libc:
115640         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
115642         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
115643         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
115644         set wc to the byte which couldn't be converted.
115645         (re_string_reconstruct): Don't clear valid_raw_len before calling
115646         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
115647         tip_context using re_string_context_at.
115649         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
115651         * lib/posix/regex.h: g++ still cannot handled [restrict].
115653         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
115655         * lib/posix/regex.h: Remove special handling for VMS.
115657 2006-08-10  Jim Meyering  <jim@meyering.net>
115659         * modules/same-inode: New module.
115660         * modules/dev-ino: New module.
115661         * modules/cycle-check: Depend on these modules, rather than simply
115662         including their .h files.
115663         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
115664         required via m4/cycle-check.m4.
115665         * modules/same: Depend on new same-inode module, rather than
115666         including same-inode.h.
115667         * modules/chdir-safer: New file.
115669         * modules/chown (Depends-on): Add stat-macros.
115671 2006-08-10  Jim Meyering  <jim@meyering.net>
115673         * m4/cycle-check.m4: New file.
115674         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
115675         * m4/dev-ino.m4, m4/same-inode.m4: New files.
115677 2006-08-10  Eric Blake  <ebb9@byu.net>
115679         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
115680         in from original proposal.
115682 2006-08-10  Eric Blake  <ebb9@byu.net>
115683         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
115685         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
115686         namespace.
115688 2006-08-10  Bruno Haible  <bruno@clisp.org>
115690         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
115691         as well.
115693 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115695         Sync from coreutils.
115697         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
115699         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
115700         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
115702 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115704         * modules/restrict: Remove; no longer needed now that we assume
115705         Autoconf 2.59 or later.
115706         * MODULES.html.sh: Remove 'restrict'.
115707         * modules/argp (Depends-on): Remove 'restrict'.
115708         * modules/base64 (Depends-on): Likewise.
115709         * modules/gc (Depends-on): Likewise.
115710         * modules/getaddrinfo (Depends-on): Likewise.
115711         * modules/glob (Depends-on): Likewise.
115712         * modules/inet_ntop (Depends-on): Likewise.
115713         * modules/inet_pton (Depends-on): Likewise.
115714         * modules/memxor (Depends-on): Likewise.
115715         * modules/regex (Depends-on): Likewise.
115716         * modules/strtok_r (Depends-on): Likewise.
115717         * modules/time_r (Depends-on): Likewise.
115719 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115721         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
115722         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
115723         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115724         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
115725         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
115726         * m4/memxor.m4 (gl_MEMXOR): Likewise.
115727         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
115728         gl_C_RESTRICT replaced by AC_C_RESTRICT.
115730         Merge from coreutils.
115731         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
115732         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
115733         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
115734         * m4/time_r.m4 (gl_TIME_R): Likewise.
115736 2006-08-09  Karl Berry  <karl@gnu.org>
115738         * config/srclist.txt: no more gettext-tools, per Bruno.
115740 2006-08-08  Eric Blake  <ebb9@byu.net>
115742         * modules/verror: New module.
115743         * MODULES.html.sh: Document it.
115745 2006-08-08  Eric Blake  <ebb9@byu.net>
115747         * lib/verror.h, lib/verror.c: New files.
115749 2006-08-08  Eric Blake  <ebb9@byu.net>
115751         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
115752         verror_at_line output complies with GNU Coding Standards even when
115753         file is NULL.
115755 2006-08-07  Bruno Haible  <bruno@clisp.org>
115757         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
115758         versions of AIX.
115759         Reported by Ralf Wildenhues.
115761 2006-08-07  Bruno Haible  <bruno@clisp.org>
115763         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
115764         in an AC_DEFUN. Needed so that the autoconf snippets can use
115765         AC_REQUIRE.
115767 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115769         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115770         Initialize pkgdata_DATA.
115771         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
115772         overriding it.
115774 2006-08-06  Eric Blake  <ebb9@byu.net>
115776         * lib/error.h: Fold in some upstream changes from glibc.
115777         * lib/error.c: Likewise.
115779 2006-08-04  Bruno Haible  <bruno@clisp.org>
115781         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115782         Make the mostlyclean-local rule depend on mostlyclean-generic.
115783         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
115785 2006-07-31  Bruno Haible  <bruno@clisp.org>
115787         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
115788         <stdlib.h>, <string.h>.
115790 2006-07-30  Bruno Haible  <bruno@clisp.org>
115792         * modules/readlink (License): Change to LGPL.
115794 2006-07-30  Bruno Haible  <bruno@clisp.org>
115796         * modules/javaversion (Makefile.am): Distribute javaversion.java and
115797         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
115798         set PKGDATADIR to point to it.
115800 2006-07-30  Bruno Haible  <bruno@clisp.org>
115802         * modules/csharpexec (configure.ac): Comment out macro invocation.
115803         * modules/javaexec (configure.ac): Likewise.
115804         * modules/javacomp-script (configure.ac): Likewise.
115806         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
115808 2006-07-30  Bruno Haible  <bruno@clisp.org>
115810         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
115811         linked-list.
115813 2006-07-30  Bruno Haible  <bruno@clisp.org>
115815         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
115817 2006-07-30  Bruno Haible  <bruno@clisp.org>
115819         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115820         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
115821         get removed.
115823 2006-07-29  Bruno Haible  <bruno@clisp.org>
115825         Make it possible for gnulib-tool to work with locally modified or
115826         augmented gnulib repositories.
115827         * gnulib-tool (func_usage): Document --local-dir option.
115828         (local_gnulib_dir): New variable.
115829         Handle --local-dir option.
115830         (func_lookup_file): New function.
115831         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
115832         (func_get_description, func_get_filelist, func_get_description,
115833         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
115834         func_get_automake_snippet, func_get_include_directive,
115835         func_get_license, func_get_maintainer): Use func_lookup_file.
115836         (func_import, func_create_testdir): Use func_lookup_file.
115838 2006-07-29  Bruno Haible  <bruno@clisp.org>
115840         * modules/setenv (Depends-on): Add unistd.
115842 2006-07-29  Bruno Haible  <bruno@clisp.org>
115844         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
115846 2006-07-29  Bruno Haible  <bruno@clisp.org>
115848         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
115850 2006-07-29  Bruno Haible  <bruno@clisp.org>
115852         * gnulib-tool (import, update): If there is no Makefile.am, look at
115853         aclocal.m4, instead of bailing out.
115855 2006-07-29  Bruno Haible  <bruno@clisp.org>
115857         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
115858         Categorize the options by when they are useful.
115860 2006-07-29  Bruno Haible  <bruno@clisp.org>
115862         * gnulib-tool (func_usage): Document option --no-libtool.
115863         Handle option --no-libtool.
115864         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
115865         for changed semantics of $libtool variable.
115866         (func_import): Likewise. If libtool is not used, show this through
115867         an option --no-libtool.
115868         (func_create_testdir): Update.
115870 2006-07-29  Bruno Haible  <bruno@clisp.org>
115872         * gnulib-tool (func_import): Extend error message about missing
115873         --doc-base.
115875 2006-07-29  Bruno Haible  <bruno@clisp.org>
115877         * gnulib-tool (func_import): Don't create the $docbase directory if
115878         there is no file to store there.
115880 2006-07-29  Bruno Haible  <bruno@clisp.org>
115882         * gnulib-tool (autoconf_minversion): If a --dir option is given and
115883         relevant, look for configure.ac there, not in the current directory.
115884         Also use a simple search for AC_PREREQ, not "autoconf --trace".
115886 2006-07-29  Bruno Haible  <bruno@clisp.org>
115888         * gnulib-tool (SORT): New variable.
115889         (func_usage): Undocument --assume-autoconf option.
115890         Remove --assume-autoconf option handling.
115891         (autoconf_minversion): Determine from the contents of configure.ac.
115892         (func_import): Remove autoconf_minversion handling.
115893         Suggested by Eric Blake.
115895 2006-07-29  Bruno Haible  <bruno@clisp.org>
115897         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
115899 2006-07-29  Bruno Haible  <bruno@clisp.org>
115901         * config/srclist.txt (*setenv.[ch]): Remove rules.
115903 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115905         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
115907 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115909         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
115910         arpa/inet.h.
115912 2006-07-28  Simon Josefsson  <jas@extundo.com>
115914         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
115915         * modules/inet_pton (Depends-on): Likewise.
115917 2006-07-28  Simon Josefsson  <jas@extundo.com>
115919         * m4/netinet_in_h.m4: New file.
115921 2006-07-28  Simon Josefsson  <jas@extundo.com>
115923         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
115924         #include's.
115926 2006-07-28  Simon Josefsson  <jas@extundo.com>
115928         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
115929         #include's.
115931 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
115933         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
115934         setgid on directories only if they set these bits.
115935         * lib/modechange.h: Remove obsolete comment about masks.
115937 2006-07-28  Eric Blake  <ebb9@byu.net>
115939         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
115940         macro expansion.
115942 2006-07-28  Bruno Haible  <bruno@clisp.org>
115944         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
115946 2006-07-28  Bruno Haible  <bruno@clisp.org>
115948         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
115950 2006-07-28  Bruno Haible  <bruno@clisp.org>
115952         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
115953         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
115954         Define fallbacks.
115955         Avoids link error on FreeBSD 4.x.
115956         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
115958         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
115959         encoding.
115960         * lib/mbswidth.c (iswcntrl): Likewise.
115962 2006-07-27  Bruno Haible  <bruno@clisp.org>
115964         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
115965         test.
115967 2006-07-27  Bruno Haible  <bruno@clisp.org>
115969         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
115970         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
115971         defined.
115973 2006-07-26  Eric Blake  <ebb9@byu.net>
115975         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
115977 2006-07-26  Eric Blake  <ebb9@byu.net>
115979         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
115980         like mingw that lack mkstemp.
115981         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
115982         avoid compilation warning on mingw.
115984 2006-07-26  Bruno Haible  <bruno@clisp.org>
115986         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
115987         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
115988         INT_FAST*_MIN, INTPTR_MIN.
115990 2006-07-25  Bruno Haible  <bruno@clisp.org>
115992         * modules/version-etc (Depends-on): Add stdarg.
115994 2006-07-25  Bruno Haible  <bruno@clisp.org>
115996         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
115997         complex commands.
115999 2006-07-25  Bruno Haible  <bruno@clisp.org>
116001         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
116002         defined in <stdarg.h> or config.h.
116004 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
116006         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
116007         (gl_STDIO_SAFER): Remove.
116009 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
116011         * MODULES.html.sh (File stream based Input/Output):
116012         Add fopen-safer, tmpfile-safer; remove stdio-safer.
116013         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
116014         * modules/fopen-safer, modules/tmpfile-safer: New files.
116015         * modules/stdio-safer: Remove.
116017 2006-07-24  Bruno Haible  <bruno@clisp.org>
116019         * modules/tmpdir: New file.
116020         * MODULES.html.sh (File system functions): Add it.
116022 2006-07-24  Bruno Haible  <bruno@clisp.org>
116024         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
116025         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
116027 2006-07-24  Bruno Haible  <bruno@clisp.org>
116029         * modules/clean-temp: New file.
116031 2006-07-24  Bruno Haible  <bruno@clisp.org>
116033         * m4/tmpdir.m4: New file, from GNU gettext.
116035 2006-07-24  Bruno Haible  <bruno@clisp.org>
116037         * lib/tmpdir.h: New file, from GNU gettext.
116038         * lib/tmpdir.c: New file, from GNU gettext.
116040 2006-07-24  Bruno Haible  <bruno@clisp.org>
116042         * lib/clean-temp.h: New file, from GNU gettext.
116043         * lib/clean-temp.c: New file, from GNU gettext.
116045 2006-07-23  Eric Blake  <ebb9@byu.net>
116047         * modules/stdio-safer (Files): Add tmpfile-safer.c.
116048         (Depends-on): Add binary-io.
116050 2006-07-23  Eric Blake  <ebb9@byu.net>
116052         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
116054 2006-07-23  Eric Blake  <ebb9@byu.net>
116056         * lib/tmpfile-safer.c: New file.
116057         * lib/stdio-safer.h (fopen_safer): Add prototype.
116058         * lib/stdio--.h (tmpfile): Make safer.
116060 2006-07-23  Bruno Haible  <bruno@clisp.org>
116062         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
116063         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
116064         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
116065         gl_linked_remove_at): Use it.
116067 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116068         and Simon Josefsson <jas@extundo.com>
116070         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
116072         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
116074 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
116076         * modules/close-stream: New file.
116077         * modules/closeout (Description): Make it clear that it exits
116078         with a diagnostic on error.
116079         (Depends-on): Add close-stream.  Remove fpending, stdbool.
116080         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
116082 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
116084         * m4/close-stream.m4: New file.
116086 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
116088         * lib/close-stream.c, lib/close-stream.h: New files.
116090 2006-07-22  Bruno Haible  <bruno@clisp.org>
116092         Merge from GNU gettext 0.15.
116094         2006-05-01  Bruno Haible  <bruno@clisp.org>
116096                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
116098         2006-07-22  Bruno Haible  <bruno@clisp.org>
116100                 * modules/javaversion: New file.
116101                 * MODULES.html.sh (Java): Add javaversion.
116103         2006-03-12  Bruno Haible  <bruno@clisp.org>
116105                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
116107         2005-12-04  Bruno Haible  <bruno@clisp.org>
116109                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
116110                 (untested).
116112         2006-06-21  Bruno Haible  <bruno@clisp.org>
116114                 Avoid warnings from recent versions of mcs.
116115                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
116116                 -o, -L, -r any more. Use options documented since mcs-1.0
116117                 instead. Similarly for -g.
116119         2005-12-04  Bruno Haible  <bruno@clisp.org>
116121                 * build-aux/csharpcomp.sh.in: Suffix for resources is
116122                 .resources, not .resource.
116124         2005-07-09  Bruno Haible  <bruno@clisp.org>
116126                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
116127                 add a .dll suffix.
116128                 Reported by Mark Junker <mjscod@gmx.de>.
116130         2006-07-22  Bruno Haible  <bruno@clisp.org>
116132                 * modules/gettext: Upgrade to gettext-0.15.
116133                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
116134                 m4/visibility.m4.
116135                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
116137 2006-07-22  Bruno Haible  <bruno@clisp.org>
116139         Merge from GNU gettext 0.15.
116141         2006-03-25  Bruno Haible  <bruno@clisp.org>
116143                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
116145         2006-07-21  Bruno Haible  <bruno@clisp.org>
116147                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
116148                 "1.1".
116150         2006-05-09  Bruno Haible  <bruno@clisp.org>
116152                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
116153                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
116154                 for the conftestver execution.
116156         2006-05-01  Bruno Haible  <bruno@clisp.org>
116158                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
116159                 optional target-version argument. Verify that the compiler
116160                 groks source of the specified source-version, or add -source
116161                 option as necessary. Verify that the compiler produces
116162                 bytecode in the specified target-version, or add -target and
116163                 -source options as necessary. Make the result of the test
116164                 available as variable CONF_JAVAC. Also log error output in
116165                 config.log.
116167         2006-03-11  Bruno Haible  <bruno@clisp.org>
116169                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
116171         2006-05-09  Bruno Haible  <bruno@clisp.org>
116173                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
116174                 CLASSPATH_SEPARATOR to a semicolon.
116176         2006-03-12  Bruno Haible  <bruno@clisp.org>
116178                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
116179                 available as variable CONF_JAVA, for subsequent autoconf
116180                 tests. Also log error output in config.log.
116182         2006-07-19  Bruno Haible  <bruno@clisp.org>
116184                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
116185                 that getline works on glibc2 systems. Needed to avoid trouble
116186                 in relocatable.c.
116187                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
116189         2005-12-04  Bruno Haible  <bruno@clisp.org>
116191                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
116192                 launcher (untested).
116194         2005-12-04  Bruno Haible  <bruno@clisp.org>
116196                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
116198         2006-07-22  Bruno Haible  <bruno@clisp.org>
116200                 * gettext.m4: Update from GNU gettext-0.15.
116201                 * nls.m4: Likewise.
116202                 * po.m4: Likewise.
116203                 * inttypes-pri.m4: Likewise.
116204                 * inttypes-h.m4: Renamed from inttypes.m4.
116205                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
116207 2006-07-22  Bruno Haible  <bruno@clisp.org>
116209         Merge from GNU gettext 0.15.
116211         2005-07-05  Bruno Haible  <bruno@clisp.org>
116213                 * printf-args.c (printf_fetchargs): Work around broken
116214                 definition of wint_t on mingw.
116216         2005-02-12  Bruno Haible  <bruno@clisp.org>
116218                 * xallocsa.h: Add extern "C" for C++.
116220         2006-05-17  Bruno Haible  <bruno@clisp.org>
116222                 Cygwin portability.
116223                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
116225         2006-04-30  Bruno Haible  <bruno@clisp.org>
116227                 * progreloc.c: Include <mach-o/dyld.h> if available.
116228                 (find_executable): Use _NSGetExecutablePath when possible.
116230         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
116232                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
116233                 function.
116235         2005-12-29  Bruno Haible  <bruno@clisp.org>
116237                 * progreloc.c (set_program_name_and_installdir): Fix
116238                 compilation error.
116240         2005-12-04  Bruno Haible  <bruno@clisp.org>
116242                 Cygwin portability.
116243                 * progreloc.c: Include <windows.h> also on Cygwin.
116244                 (find_executable): Add support for Cygwin.
116245                 (set_program_name_and_installdir): Handle also platforms with
116246                 nonempty EXEEXT.
116248         2006-07-11  Bruno Haible  <bruno@clisp.org>
116250                 * javacomp.c: Fix a comment.
116251                 Reported by Jim Meyering.
116253         2006-04-30  Bruno Haible  <bruno@clisp.org>
116255                 * javacomp.h (compile_java_class): Add source_version,
116256                 target_version arguments.
116257                 * javacomp.c: Rewritten to choose only a compiler that
116258                 respects the specified source_version and target_version.
116260         2006-06-27  Bruno Haible  <bruno@clisp.org>
116262                 Assume correct S_ISDIR macro.
116263                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
116265         2006-07-22  Bruno Haible  <bruno@clisp.org>
116267                 * javaversion.h: New file, from GNU gettext.
116268                 * javaversion.c: New file, from GNU gettext.
116269                 * javaversion.java: New file, from GNU gettext.
116270                 * javaversion.class: New file, from GNU gettext.
116272         2006-05-17  Bruno Haible  <bruno@clisp.org>
116274                 Cygwin portability.
116275                 * javaexec.c (execute_java_class): Test for jview program
116276                 also on Cygwin.
116278         2006-04-09  Bruno Haible  <bruno@clisp.org>
116280                 * fatal-signal.c: Don't include string.h.
116281                 (at_fatal_signal): Use a copying loop instead of memcpy.
116283         2005-12-04  Bruno Haible  <bruno@clisp.org>
116285                 * csharpexec.c: Add support for 'clix' launcher (untested).
116286                 (execute_csharp_using_sscli): New function.
116287                 (execute_csharp_program): Call it.
116289         2006-06-21  Bruno Haible  <bruno@clisp.org>
116291                 Avoid warnings from recent versions of mcs.
116292                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
116293                 -o, -L, -r any more. Use options documented since mcs-1.0
116294                 instead. Similarly for -g.
116296         2005-07-09  Bruno Haible  <bruno@clisp.org>
116298                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
116299                 add a .dll suffix.
116300                 Reported by Mark Junker <mjscod@gmx.de>.
116302         2006-06-17  Bruno Haible  <bruno@clisp.org>
116304                 * config.charset: Update for NetBSD 3.0.
116306         2006-05-17  Bruno Haible  <bruno@clisp.org>
116308                 Cygwin portability.
116309                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
116311         2006-05-16  Bruno Haible  <bruno@clisp.org>
116313                 * localcharset.c [CYGWIN]: Include <windows.h>.
116314                 (get_charset_aliases): For Cygwin, return the same CPxxx
116315                 aliases list as under WIN32.
116316                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
116317                 the environment variables. Fall back to GetACP().
116319         2006-04-05  Bruno Haible  <bruno@clisp.org>
116321                 * config.charset: Update Juan Manuel Guerrero's address.
116323         2005-02-12  Bruno Haible  <bruno@clisp.org>
116325                 * allocsa.h: Add extern "C" for C++.
116327         2005-02-10  Bruno Haible  <bruno@clisp.org>
116329                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
116330                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
116332         2006-07-22  Bruno Haible  <bruno@clisp.org>
116334                 * gettext.h: Update to GNU gettext-0.15.
116336 2006-07-22  Bruno Haible  <bruno@clisp.org>
116338         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
116339         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
116340         lib-prefix.m4, longdouble.m4, ssize_t.m4.
116342 2006-07-21  Eric Blake  <ebb9@byu.net>
116344         * modules/stdlib-safer: New file.
116345         * MODULES.html.sh (File stream based Input/Output): Add
116346         stdlib-safer.
116348 2006-07-21  Eric Blake  <ebb9@byu.net>
116350         * lib/stdlib-safer.h: New file from coreutils, required by
116351         stdlib--.h.
116353 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
116355         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
116357 2006-07-20  Bruno Haible  <bruno@clisp.org>
116359         * gnulib-tool: Recognize new option --assume-autoconf.
116360         (autoconf_minversion): New variable.
116361         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
116363 2006-07-20  Bruno Haible  <bruno@clisp.org>
116365         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
116367 2006-07-19  Derek R. Price  <derek@ximbiot.com>
116369         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
116370         Reindent and repaginate.
116372 2006-07-19  Derek Price  <derek@ximbiot.com>
116374         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
116375         Correct grammar.
116377 2006-07-17  Bruno Haible  <bruno@clisp.org>
116379         * modules/list: New file.
116380         * modules/array-list: New file.
116381         * modules/carray-list, modules/carray-list-tests: New files.
116382         * modules/linked-list, modules/linked-list-tests: New files.
116383         * modules/avltree-list, modules/avltree-list-tests: New files.
116384         * modules/rbtree-list, modules/rbtree-list-tests: New files.
116385         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
116386         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
116387         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
116388         * modules/oset: New file.
116389         * modules/array-oset: New file.
116390         * modules/avltree-oset, modules/avltree-oset-tests: New files.
116391         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
116392         * tests/test-carray_list.c: New file.
116393         * tests/test-linked_list.c: New file.
116394         * tests/test-avltree_list.c: New file.
116395         * tests/test-rbtree_list.c: New file.
116396         * tests/test-linkedhash_list.c: New file.
116397         * tests/test-avltreehash_list.c: New file.
116398         * tests/test-rbtreehash_list.c: New file.
116399         * tests/test-avltree_oset.c: New file.
116400         * tests/test-rbtree_oset.c: New file.
116401         * MODULES.html.sh (Container data structures): New section.
116403 2006-07-17  Bruno Haible  <bruno@clisp.org>
116405         * m4/gl_list.m4: New file.
116407 2006-07-17  Bruno Haible  <bruno@clisp.org>
116409         * lib/gl_list.h: New file.
116410         * lib/gl_list.c: New file.
116411         * lib/gl_array_list.h: New file.
116412         * lib/gl_array_list.c: New file.
116413         * lib/gl_carray_list.h: New file.
116414         * lib/gl_carray_list.c: New file.
116415         * lib/gl_linked_list.h: New file.
116416         * lib/gl_linked_list.c: New file.
116417         * lib/gl_anylinked_list1.h: New file.
116418         * lib/gl_anylinked_list2.h: New file.
116419         * lib/gl_avltree_list.h: New file.
116420         * lib/gl_avltree_list.c: New file.
116421         * lib/gl_anyavltree_list1.h: New file.
116422         * lib/gl_anyavltree_list2.h: New file.
116423         * lib/gl_rbtree_list.h: New file.
116424         * lib/gl_rbtree_list.c: New file.
116425         * lib/gl_anyrbtree_list1.h: New file.
116426         * lib/gl_anyrbtree_list2.h: New file.
116427         * lib/gl_anytree_list1.h: New file.
116428         * lib/gl_anytree_list2.h: New file.
116429         * lib/gl_linkedhash_list.h: New file.
116430         * lib/gl_linkedhash_list.c: New file.
116431         * lib/gl_anyhash_list1.h: New file.
116432         * lib/gl_anyhash_list2.h: New file.
116433         * lib/gl_avltreehash_list.h: New file.
116434         * lib/gl_avltreehash_list.c: New file.
116435         * lib/gl_rbtreehash_list.h: New file.
116436         * lib/gl_rbtreehash_list.c: New file.
116437         * lib/gl_anytreehash_list1.h: New file.
116438         * lib/gl_anytreehash_list2.h: New file.
116440         * lib/gl_oset.h: New file.
116441         * lib/gl_oset.c: New file.
116442         * lib/gl_array_oset.h: New file.
116443         * lib/gl_array_oset.c: New file.
116444         * lib/gl_avltree_oset.h: New file.
116445         * lib/gl_avltree_oset.c: New file.
116446         * lib/gl_rbtree_oset.h: New file.
116447         * lib/gl_rbtree_oset.c: New file.
116448         * lib/gl_anytree_oset.h: New file.
116450 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
116452         * m4/mkancesdirs.m4: New file.
116453         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
116454         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
116455         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
116456         it.
116458 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
116460         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
116461         * lib/mkancesdirs.h: New files.
116462         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
116463         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
116464         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
116465         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
116466         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
116467         callers changed.  Revamp internals significantly, by not
116468         attempting to create directories that are temporarily more
116469         permissive than the final results.  Do not attempt to use
116470         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
116471         This removes some race conditions, fixes some bugs, and simplifies
116472         things.  Use new dirchownmod function to do owner and mode changes.
116473         * lib/mkdir-p.h: Likewise.
116474         * lib/modechange.c (octal_to_mode): New function.
116475         (struct mode_change): New member mentioned.
116476         (make_node_op_equals): New arg mentioned.  All callers changed.
116477         (mode_compile): Keep track of which mode bits the user has explicitly
116478         mentioned.
116479         (mode_adjust): New arg DIR, so that we implement the X op correctly.
116480         New arg PMODE_BITS, to keep track of which mode bits the user
116481         mentioned; it treats S_ISUID and S_ISGID speciall.
116482         All callers changed.
116483         * lib/modechange.h: Likewise.
116485 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
116487         * MODULES.html.sh: Add mkancestors.
116488         * modules/mkancesdirs: New module.
116489         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
116490         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
116491         The chdir-safer and afs files are now orphans; I'll remove them
116492         unless someone speaks up.
116493         Add lib/dirchownmod.c, lib/dirchownmod.h.
116494         (Depends-on): Remove alloca, chown, save-cwd, dirname.
116495         Add lchown, mkancesdirs.
116496         (Maintainer): Add self.
116498 2006-07-15  Karl Berry  <karl@gnu.org>
116500         * gnulib-tool: help message wording/arrangement.
116502 2006-07-14  Simon Josefsson  <jas@extundo.com>
116504         * doc/gnulib.texi (Libtool and Windows): New section.
116506 2006-07-12  Simon Josefsson  <jas@extundo.com>
116508         * modules/gendocs (License): Fix license, approved by Karl.
116510 2006-07-12  Eric Blake  <ebb9@byu.net>
116512         * MODULES.html.sh: Add gendocs.
116514 2006-07-11  Eric Blake  <ebb9@byu.net>
116516         * modules/fdl: New module, to install doc/fdl.texi.
116517         * MODULES.html.sh: Add new section for documentation modules.
116518         * gnulib-tool: Avoid space-tab.
116519         (--doc-base): New option, to manage files from doc.
116521 2006-07-11  Eric Blake  <ebb9@byu.net>
116523         * m4/absolute-header.m4: Fix comments to match recent change.
116525 2006-07-11  Eric Blake  <ebb9@byu.net>
116527         * gnulib-tool: List --doc-base before --tests-base.
116529 2006-07-11  Derek R. Price  <derek@ximbiot.com>
116531         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
116533 2006-07-11  Bruno Haible  <bruno@clisp.org>
116535         * README: Mention where to put documentation.
116537 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116539         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
116541 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
116543         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
116544         to stdint.m4.
116546 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
116548         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
116549         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
116550         "no/such/file/stdint.h" when there is no such file, so that
116551         the resulting C code can be parsed by dodgy compilers.
116552         Problems reported by Bob Proulx.
116554 2006-07-10  Derek R. Price  <derek@ximbiot.com>
116556         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
116557         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
116558         macros into the GNU _D_EXACT_NAMLEN.
116559         * lib/savedir.c:  Likewise.
116560         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
116562 2006-07-10  Derek R. Price  <derek@ximbiot.com>
116563         and Paul Eggert  <eggert@cs.ucla.edu>
116565         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
116566         * m4/savedir.m4:
116567         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
116568         macros into the GNU _D_EXACT_NAMLEN.
116570 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116572         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
116573         around the absolute name, to work around a problem with the HP-UX
116574         11.23 native C compiler, reported by Bob Proulx.
116576 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116578         * doc/maintain.texi, make-stds.texi: Sync from
116579         <http://savannah.gnu.org/projects/gnustandards>.
116581 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
116583         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
116585 2006-07-09  Jim Meyering  <jim@meyering.net>
116587         * m4/glob.m4: Remove a doubled word in a comment.
116589 2006-07-09  Jim Meyering  <jim@meyering.net>
116591         * lib/argp-pv.c: Remove a doubled word in a comment.
116592         * lib/check-version.c (check_version): Likewise.
116593         * lib/javacomp.c (compile_java_class): Likewise.
116595 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
116597         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
116598         for the benefit of people using Autoconf 2.60.  If you want to
116599         support older Autoconf versions you can copy m4/onceonly_2_57.m4
116600         (or m4/onceonly.m4, if pre-2.57) manually.
116602 2006-07-08  Jim Meyering  <jim@meyering.net>
116604         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
116605         comment.
116606         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
116607         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
116608         comment.
116610 2006-07-08  Jim Meyering  <jim@meyering.net>
116612         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
116614 2006-07-07  Simon Josefsson  <jas@extundo.com>
116616         * tests/test-crc.c: Change expected crc value, the test vector
116617         were probably computed using the old broken crc.c?
116619 2006-07-06  Simon Josefsson  <jas@extundo.com>
116621         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
116622         now the canonical place for the M4 file).
116624         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
116625         from the sys_socket dependency now.
116627         * modules/inet_pton (Files): Ditto.
116629         * modules/inet_ntop (Files): Ditto.
116631 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116633         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
116634         not gl_PREREQ_GETUSERSHELL.
116636 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116638         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
116639         with only one argument, for Autoconf 2.60.
116640         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
116641         expand to nothing, so add a shell command to avoid syntax error.
116642         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
116644 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116646         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
116648 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116650         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
116651         no longer needed.  Check for isblank decl.
116652         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
116653         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
116654         of existence.
116656 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116658         * lib/getloadavg.c: Use __VMS, not VMS.
116659         * lib/getopt.c: Likewise.
116660         * lib/getpagesize.h: Likewise.
116661         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
116662         and probably does not work.
116664 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116666         * lib/.cppi-disable: Add wcwidth.
116667         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
116668         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
116669         (ISGRAPH): Remove.  All uses changed to isgraph.
116670         (FOLD) [!defined _LIBC]: Remove special case.
116671         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
116672         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
116673         HAVE_ISBLANK.
116674         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
116675         case.
116677 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
116679         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
116680         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
116681         brackets.  Other minor changes to suppress some compiler
116682         warnings.
116684 2006-07-06  Derek R. Price  <derek@ximbiot.com>
116685         and Paul Eggert  <eggert@cs.ucla.edu>
116687         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
116688         of invoking obsolescent AC_HEADER_DIRENT macro.
116689         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
116690         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
116691         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
116692         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
116693         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
116694         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
116695         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
116696         * m4/readdir.m4: Remove; no longer needed.
116698 2006-07-06  Derek R. Price  <derek@ximbiot.com>
116699         and Paul Eggert  <eggert@cs.ucla.edu>
116701         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
116702         Don't worry about this obsolete case any more.
116703         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
116704         directories.
116705         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
116706         worry about this obsolete case any more.
116707         * lib/fts.c: Likewise.
116708         * lib/getcwd.c: Likewise.
116709         * lib/glob.h: Likewise.
116710         * lib/savedir.c: Likewise.
116712 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116714         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
116715         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
116716         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
116717         needed.
116718         All uses removed.
116719         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116720         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116721         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
116722         needed.
116723         * m4/getdate.m4 (gl_GETDATE): Likewise.
116724         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
116725         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
116726         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
116727         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116728         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116729         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116730         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
116731         needed.
116733 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116735         * lib/memcasecmp.c: Include <limits.h>.
116736         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
116737         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
116738         Don't assume isdigit succeeds only on '0' through '9'.
116740 2006-07-05  Eric Blake  <ebb9@byu.net>
116742         * modules/getaddrinfo (Depends-on): Add snprintf.
116744 2006-07-05  Eric Blake  <ebb9@byu.net>
116746         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
116747         to avoid 'header present but could not be compiled' on cygwin.
116749 2006-07-05  Eric Blake  <ebb9@byu.net>
116751         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
116752         missing from netdb.h.
116753         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
116755 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116757         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
116758         no longer needed.
116759         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
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/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116767 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116769         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
116770         All uses of is_space replaced by isspace.
116771         * lib/exit.h: Don't talk about STDC_HEADERS.
116772         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
116773         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
116774         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
116775         replaced by isprint etc.
116776         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
116777         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116778         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
116779         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
116780         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
116781         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116783 2006-07-05  Bruno Haible  <bruno@clisp.org>
116785         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
116786         the function exists, before testing against AIX.
116787         Reported by Martin Lambers <marlam@marlam.de>.
116789 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116791         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
116792         From Mark D. Baushke.
116794 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116796         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
116797         to the absolute name, not just one, to bypass Sun C 5.8's
116798         "warning: #include of /usr/include/... may be non-portable".
116800 2006-07-04  Eric Blake  <ebb9@byu.net>
116802         * modules/dirname-tests: New test module.
116803         * tests/test-dirname.c: New file, replacing dirname.c
116804         TEST_DIRNAME section that was recently deleted.
116806 2006-07-04  Bruno Haible  <bruno@clisp.org>
116808         Assume ANSI C header files and <ctype.h> functions.
116809         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
116810         (mbsnwidth): Use isprint, iscntrl instead.
116812 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116814         Merge from coreutils.
116815         * MODULES.html.sh: Add xstrtold.
116816         * modules/xstrtold: New file.
116817         * modules/cycle-check (Files): Add lib/same-inode.h.
116818         * modules/dirname (Files): Add m4/double-slash-root.m4.
116819         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
116820         * modules/mkdir-p (Files): Add lib/same-inode.h.
116821         * modules/same (Files): Add lib/same-inode.h.
116823 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116825         * m4/absolute-header.m4: Renamed from full-header-path.m4.
116826         This is to keep the terminology clean; POSIX talks about
116827         "absolute pathnames", not "full pathnames", but the GNU
116828         Coding Standards say to use "path" for something else;
116829         so use "absolute" to keep both sides happy.
116830         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
116831         Set gl_absolute_header, not gl_full_header_path.
116832         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
116833         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
116834         All uses changed.
116836         Merge from coreutils.
116838         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116840         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
116841         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
116842         want to require the building of c-strtod.o.
116843         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
116844         needs -lm directly.
116845         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
116847         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116849         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
116850         --as-needed option if available.  Problem reported by Albert Chin in
116851         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
116852         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
116853         cc merely issues a bunch of annoying warnings for --as-needed
116854         (this problem was reported by Bob Proulx).  Also, try linking with
116855         -lm to detect a bug in binutils 2.16 (this problem was reported
116856         by Ralf Wildenhues).
116858         2006-06-18  Jim Meyering  <jim@meyering.net>
116860         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
116861         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
116862         macro.
116863         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
116864         also check for glibc-2.4's abort-inducing bug.
116866         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
116867         Low-probability clean-up should be to use rmdir to get rid of
116868         the just-created directory, not unlink.
116870         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
116871         configure fail, and request a bug report to inform us about it.
116872         Add a comment that, barring reports to the contrary, in 2007 we'll
116873         assume ftruncate is universally available.
116875         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116877         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
116879         2006-03-12  Jim Meyering  <jim@meyering.net>
116881         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
116882         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
116883         * m4/same.m4 (gl_SAME): Likewise.
116884         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
116886         2006-03-11  Eric Blake  <ebb9@byu.net>
116888         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
116889         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
116890         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
116891         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
116893 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116895         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
116896         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
116897         reported by Mark D. Baushke, one in
116898         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
116900         Merge from coreutils.
116902         * lib/.cppi-disable: Add stdint_.h.
116903         * lib/.cvsignore: Add stdint.h.
116905         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116907         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
116908         both double and long double versions.
116909         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
116910         * lib/xstrtold.c: New file.
116911         * lib/xstrtod.h (xstrtold): New decl.
116913         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
116915         * lib/filemode.c (setst): Remove.
116916         (strmode): Rewrite to avoid setst.  This makes the code shorter,
116917         (arguably) clearer, and the generated code is a bit smaller on my
116918         Debian GNU/Linux stable x86 host.
116920         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116922         * lib/filemode.c: Include "filemode.h" first, to test the interface.
116923         Assume that filemode.h includes sys/types.h and sys/stat.h.
116924         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
116925         (ftypelet): Reorder to put common cases first, for efficiency.
116926         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
116927         to do 'M'.
116928         (strmode): Renamed from mode_string, and now stores 12 bytes instead
116929         of 10, for compatibility with FreeBSD.  All callers changed.
116930         (filemodestring): Now stores 12 bytes instead of 10, and sets file
116931         types that can't be deduced solely from st_mode.  First arg is now a
116932         const pointer.
116933         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
116934         (strmode): Renamed from mode_string.
116935         (filemodestring): New decl.
116936         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
116937         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
116938         needed.
116939         (S_ISPORT, S_ISWHT): New macros, if not already defined.
116941         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
116943         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
116944         fsusage.h now does that.  Include fsusage.h first, to test interface.
116945         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
116946         at most one method (the old code could have generated decls that
116947         didn't conform to C89, not that this was ever exercised).
116948         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
116950         2006-03-19  Jim Meyering  <jim@meyering.net>
116952         Work even in a chroot where d_ino values for entries in "/"
116953         don't match the stat.st_ino values for the same names.
116954         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
116955         number, iterate through all entries again, using lstat instead.
116956         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
116957         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
116959         * lib/getcwd.c (__getcwd): Clarify a comment.
116960         Use memcpy in place of a call to strcpy.
116962         2006-03-12  Jim Meyering  <jim@meyering.net>
116964         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
116965         matches that of the current directory (which we're about to chdir ".."
116966         out of), then save the dev-ino of the parent, instead.
116968         * lib/same-inode.h (SAME_INODE): New file/macro.
116969         * lib/chdir-safer.c (SAME_INODE): Remove definition.
116970         Include "same-inode.h", instead.
116971         * lib/same.c: Likewise.
116972         * lib/cycle-check.h: Include "same-inode.h".
116973         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
116974         * lib/cycle-check.c (SAME_INODE): Remove definition.
116975         * lib/root-dev-ino.h: Include "same-inode.h".
116977         2006-03-11  Eric Blake  <ebb9@byu.net>
116979         * lib/same.c (same_name): s/base_name/last_component/
116980         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
116981         * lib/filenamecat.c (file_name_concat): Likewise.
116983         2006-03-11  Eric Blake  <ebb9@byu.net>,
116984                     Paul Eggert  <eggert@cs.ucla.edu>
116986         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
116987         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
116988         drive prefix.
116989         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
116990         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
116991         (last_component): New method.
116992         * lib/dirname.c (dir_len): Determine when drive letters need a
116993         subsequent slash.  Preserve // when it is special.
116994         (dir_name): Don't append dot when drive letter is absolute.
116995         [TEST_DIRNAME]: Move into a full-blown gnulib test.
116996         * lib/basename.c (base_name): New semantics - malloc the result.
116997         Preserve // when it is special.  Preserve relative files that look
116998         like drive letters.
116999         (base_len): Preserve // when it is special.
117000         (last_component): New method, similar to old base_name semantics.
117001         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
117002         base_name.  Strip redundant slashes from ///.
117004 2006-07-03  Jim Meyering  <jim@meyering.net>
117006         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
117007         macro is used before the first cycle_check call.
117009 2006-07-03  Eric Blake  <ebb9@byu.net>
117011         * modules/dirname (Depends-on): Add xstrndup.
117013 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
117015         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
117016         test cases, so that config.log is a bit easier to follow.
117018 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
117020         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
117021         both are 64 bits, since this seems to be the tradition, and this
117022         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
117023         we ever run into a host that prefers long long to long in this
117024         case, we'll need another configure-time test.  Problem reported by
117025         Jim Meyering.
117027 2006-07-02  Eric Blake  <ebb9@byu.net>
117029         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
117031 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
117033         * modules/inttypes (Depends-on): No longer depends on stdint.
117034         * modules/stdint (Description): Say more about assumptions.
117035         Say that the fast types might differ.  Say macros are used.
117036         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
117037         (Makefile.am): Revise list of substituted symbols to match
117038         new stdint.m4.
117039         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
117040         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
117041         * tests/test-stdint.c (verify_same_types)
117042         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
117043         the code conforms to C99/C89.
117044         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
117045         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
117047 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
117049         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
117050         but fix a bug, by requiring at least 64 bits.
117051         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
117052         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
117053         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
117054         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
117056         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
117057         changes.  Make 2.59 a prerequisite.  Check and substitute for
117058         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
117059         inttypes.h.  Do not use special include files; just use the
117060         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
117061         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
117062         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
117063         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
117064         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
117065         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
117066         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
117067         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
117068         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
117069         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
117070         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
117071         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
117072         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
117073         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
117074         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
117075         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
117076         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
117077         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
117078         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
117079         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
117080         WINT_MAX.  Check for C99 conformance more strictly, by detecting
117081         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
117082         not check for things that C99 does not require, e.g., int8_t.  If
117083         a test isn't needed unless <stdint.h> isn't working, and is
117084         unlikely to be needed for any other reason, then don't do it
117085         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
117086         size_t, since we assume C89 freestanding at least.  Do not check
117087         for sig_atomic_t, wchar_t, or wint_t, since the code now does
117088         the right thing even if the types are not defined.  Instead use:
117089         (gl_STDINT_TYPE_PROPERTIES): New macro.
117090         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
117091         testing whether <sys/types.h> clashes, as Autoconf does this for
117092         us now.  All uses removed.
117093         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
117094         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
117095         (gl_CHECK_TYPE_SAME):
117096         Remove; no longer needed.
117097         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
117098         exists, since we'll return 0 anyway in that case.
117099         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
117101 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
117103         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
117104         possible collision with system files.
117105         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
117106         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
117107         WCHAR_MIN and WCHAR_MAX in this case.
117108         (<stddef.h>): Do not include; no longer needed.
117109         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
117110         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
117111         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
117112         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
117113         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
117114         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
117115         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
117116         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
117117         !defined(__c99))]: Include in this case too, since it's harmless
117118         now.
117119         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
117120         dangerous to do so.
117121         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
117122         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
117123         (_STDINT_MIN, _STDINT_MAX): New macros.
117124         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
117125         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
117126         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
117127         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
117128         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
117129         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
117130         macros, not typedefs; this simplifies things quite a bit.
117131         Use long int for all types narrower than int64_t.
117132         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
117133         Define in terms of long long int or int64_t or long int,
117134         not int64_t or int32_t.  This saves some compile-time testing.
117135         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
117136         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
117137         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
117138         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
117139         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
117140         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
117141         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
117142         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
117143         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
117144         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
117145         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
117146         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
117147         undef any previous version and define our own version, for
117148         simplicity and consistency with the new macros for types.
117149         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
117150         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
117151         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
117152         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
117153         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
117154         @WINT_T_SUFFIX@ to keep things simple here.
117155         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
117156         Simplify by assuming typical 8/16/32/64 host, since we're
117157         already doing that elsewhere anyway.
117158         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
117159         and assume long long int is 64 bits if available.  This
117160         speeds up 'configure'.
117162 2006-07-01  Eric Blake  <ebb9@byu.net>
117164         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
117165         Reported by Andreas Buening.
117167 2006-07-01  Eric Blake  <ebb9@byu.net>
117169         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
117171 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
117173         * lib/getaddrinfo.c: fixed typo
117175 2006-06-29  Jim Meyering  <jim@meyering.net>
117177         * modules/strftime (Maintainer): Add my name, since with the
117178         FPRINTFTIME changes strftime.c has forked from glibc.
117180 2006-06-29  Eric Blake  <ebb9@byu.net>
117182         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
117184 2006-06-29  Eric Blake  <ebb9@byu.net>
117186         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
117188 2006-06-29  Eric Blake  <ebb9@byu.net>
117190         * lib/stat_.h: New file.
117192 2006-06-29  Eric Blake  <ebb9@byu.net>
117194         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
117195         unused static function.
117197 2006-06-29  Eric Blake  <ebb9@byu.net>
117199         * doc/functions.texi (Function Portability): Document missing lstat
117200         on mingw.
117202 2006-06-29  Eric Blake  <ebb9@byu.net>
117204         * MODULES.html.sh: Add sys_stat.
117205         * modules/sys_stat: New module.
117206         * modules/mkstemp (Depends-on): Add sys_stat.
117208 2006-06-29  Derek R. Price  <derek@ximbiot.com>
117210         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
117212 2006-06-29  Derek R. Price  <derek@ximbiot.com>
117214         * m4/c-bs-a.m4: Removed.
117216 2006-06-29  Derek R. Price  <derek@ximbiot.com>
117218         * lib/strftime.c: Assume strftime() exists.
117220 2006-06-29  Derek Price  <derek@ximbiot.com>
117222         * modules/c-bs-a: Removed - \a is C89.
117223         * MODULES.html.sh: Remove c-bs-a.
117225 2006-06-29  Bruno Haible  <bruno@clisp.org>
117227         * modules/wcwidth (License): Change to LGPL.
117229 2006-06-28  Simon Josefsson  <jas@extundo.com>
117231         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
117232         on _WIN32.
117234         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
117235         getnameinfo.
117237 2006-06-28  Simon Josefsson  <jas@extundo.com>
117239         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
117241 2006-06-28  Simon Josefsson  <jas@extundo.com>
117243         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
117244         functions there.  It will succeed on Windows XP, but on Windows
117245         2000 and (presumably) earlier, it will fail, and use the internal
117246         re-implementation.
117247         (use_win32_p): New function.
117248         (getaddrinfo): Use strtoul on servname, to support numeric ports.
117249         Support AI_NUMERICSERV to disable getservbyname.
117250         (getnameinfo): New function, only supports
117251         NI_NUMERICHOST|NI_NUMERICSERV for now.
117253         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
117254         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
117255         getnameinfo.
117257 2006-06-28  Eric Blake  <ebb9@byu.net>
117259         * modules/wcwidth: New file.
117260         * modules/mbchar (Depends-on): Add wcwidth.
117261         * modules/mbswidth (Depends-on): Add wcwidth.
117262         * MODULES.html.sh: Add wcwidth.
117264 2006-06-28  Eric Blake  <ebb9@byu.net>
117266         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
117267         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
117269 2006-06-28  Eric Blake  <ebb9@byu.net>
117271         * lib/xvasprintf.h: Fix comments.
117273 2006-06-28  Eric Blake  <ebb9@byu.net>
117275         * lib/mbchar.h (wcwidth): Include wcwidth.h.
117276         * lib/mbswidth.c (wcwidth): Move from here...
117277         * lib/wcwidth.h: ...to this new file.
117279 2006-06-28  Derek R. Price  <derek@ximbiot.com>
117281         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
117283         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
117284         it's obsolete.
117285         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
117287 2006-06-28  Derek R. Price  <derek@ximbiot.com>
117289         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
117290         Autoconf 2.60 says this stuff was obsolete.
117292 2006-06-28  Bruno Haible  <bruno@clisp.org>
117294         * modules/wcwidth (Files): Add m4/wchar_t.m4.
117296 2006-06-28  Bruno Haible  <bruno@clisp.org>
117298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
117299         gt_TYPE_WCHAR_T.
117301 2006-06-28  Bruno Haible  <bruno@clisp.org>
117303         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
117304         declaration for wcwidth.
117305         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
117307 2006-06-28  Bruno Haible  <bruno@clisp.org>
117309         * lib/mkdtemp.c [MINGW]: Include <io.h>.
117310         (mkdir): Define using _mkdir.
117312 2006-06-28  Bruno Haible  <bruno@clisp.org>
117314         * lib/getaddrinfo.h: Fix POSIX URL.
117315         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
117316         _WIN32.
117317         (use_win32_p): Make static.
117318         (getaddrinfo): Reject service name if it is empty or does not consist
117319         solely of decimal digits, or if its value is > 65535.
117320         (getnameinfo): Remove useless casts.
117322 2006-06-27  Simon Josefsson  <jas@extundo.com>
117324         * modules/sys_select: New file, suggested by Bruno Haible, Paul
117325         Eggert and Martin Lambers.
117327 2006-06-27  Simon Josefsson  <jas@extundo.com>
117329         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
117330         Eggert and Martin Lambers.
117332 2006-06-27  Bruno Haible  <bruno@clisp.org>
117334         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
117335         result to 0, not to empty.
117336         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
117338 2006-06-27  Bruno Haible  <bruno@clisp.org>
117340         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
117342 2006-06-26  Simon Josefsson  <jas@extundo.com>
117344         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
117345         present.
117347 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
117349         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
117350         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
117351         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
117353 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
117355         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
117357 2006-06-26  Bruno Haible  <bruno@clisp.org>
117359         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
117361 2006-06-26  Bruno Haible  <bruno@clisp.org>
117363         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
117365 2006-06-26  Bruno Haible  <bruno@clisp.org>
117367         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
117368         SGI C compiler in pre-C99 mode.
117369         Suggested by Mark D. Baushke and Larry Jones.
117371 2006-06-26  Bruno Haible  <bruno@clisp.org>
117373         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
117374         WCHAR_MAX.
117375         Reported by Mark D. Baushke and Larry Jones.
117377 2006-06-26  Bruno Haible  <bruno@clisp.org>
117379         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
117380         in pre-C99 mode.
117381         Suggested by Mark D. Baushke and Larry Jones.
117383 2006-06-23  Simon Josefsson  <jas@extundo.com>
117384             Bruno Haible  <bruno@clisp.org>
117386         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
117387         Emit mostlyclean-local rule.
117388         (func_emit_tests_Makefile_am): Likewise.
117389         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
117391 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
117393         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
117395 2006-06-23  Bruno Haible  <bruno@clisp.org>
117397         * tests/test-stdint.c: Update to match ISO C 99 Technical
117398         Corrigendum 1.
117400 2006-06-23  Bruno Haible  <bruno@clisp.org>
117402         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
117404 2006-06-23  Bruno Haible  <bruno@clisp.org>
117406         * lib/stdint_.h: Treat IRIX like OpenBSD.
117408 2006-06-23  Bruno Haible  <bruno@clisp.org>
117410         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
117411         ISO C 99 Technical Corrigendum 1.
117413 2006-06-22  Simon Josefsson  <jas@extundo.com>
117415         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
117416         MinGW.
117418 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
117420         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
117421         needed.  Some compiler complained about some of them.  Problem reported
117422         by Larry Jones in
117423         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
117425 2006-06-21  Simon Josefsson  <jas@extundo.com>
117427         * tests/test-getaddrinfo.c: New file.
117429         * modules/getaddrinfo-tests: New file.
117431         * MODULES.html.sh: Add inet_pton.
117433         * modules/inet_pton: New file.
117435 2006-06-21  Simon Josefsson  <jas@extundo.com>
117437         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
117438         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
117439         of using the (limited) gnulib implementation on Windows XP.
117441         * m4/inet_pton.m4: New file.
117443 2006-06-21  Simon Josefsson  <jas@extundo.com>
117445         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
117446         variable.
117448         * lib/socket_.h: Don't define WINVER.
117450         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
117451         slightly modified to work in gnulib.
117453 2006-06-21  Simon Josefsson  <jas@extundo.com>
117455         * doc/gnulib.texi (Windows sockets): Add.
117457 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
117459         * lib/read-file.c (fread_file): Start with buffer allocation of
117460         0 bytes rather than 1 byte; this simplifies the code.
117461         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
117462         code to free buffer and save/restore errno.
117463         (internal_read_file): Remove unused local.
117465 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
117467         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
117468         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
117469         Problem reported by Denis Excoffier in
117470         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
117472 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
117474         * modules/sys_socket, modules/socklen: Include sys/types since
117475         FreeBSD 4.x's sys/socket.h needs it.
117477 2006-06-19  Simon Josefsson  <jas@extundo.com>
117479         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
117481 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
117483         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
117485 2006-06-19  Bruno Haible  <bruno@clisp.org>
117487         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
117488         and FULL_PATH_INTTYPES_H in angle brackets.
117489         Reported by Mark D. Baushke <mdb@gnu.org>.
117491 2006-06-17  Eric Blake  <ebb9@byu.net>
117493         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
117494         errno.
117496 2006-06-17  Bruno Haible  <bruno@clisp.org>
117498         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
117499         <sys/inttypes.h>.
117501 2006-06-17  Bruno Haible  <bruno@clisp.org>
117503         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
117504         whether errno is declared. Assume <errno.h> declares errno.
117506 2006-06-17  Bruno Haible  <bruno@clisp.org>
117508         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
117510 2006-06-17  Bruno Haible  <bruno@clisp.org>
117512         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
117513         problem on Solaris 2.5.1.
117515 2006-06-16  Eric Blake  <ebb9@byu.net>
117517         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
117518         * lib/unicodeio.c [!defined errno]: Likewise.
117519         * lib/strtol.c [!defined errno]: Likewise.
117520         * lib/strtod.c [!defined errno]: Likewise.
117522 2006-06-15  Eric Blake  <ebb9@byu.net>
117524         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
117526 2006-06-15  Eric Blake  <ebb9@byu.net>
117528         * config/srclist.txt (ssize_t.m4): Lose sync.
117530 2006-06-15  Bruno Haible  <bruno@clisp.org>
117532         * modules/stdint (Files): Include m4/full-header-path.m4,
117533         m4/size_max.m4, m4/wchar_t.m4.
117534         (Makefile.am): Many more substitutions.
117535         * modules/stdint-tests: New file.
117536         * tests/test-stdint.c: New file.
117538 2006-06-15  Bruno Haible  <bruno@clisp.org>
117540         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
117541         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
117542         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
117543         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
117544         gl_CHECK_TYPE_SAME): New macros.
117546 2006-06-15  Bruno Haible  <bruno@clisp.org>
117548         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
117550 2006-06-15  Bruno Haible  <bruno@clisp.org>
117552         * lib/stdint_.h: Rewritten to be fully auto-configured.
117553         Fixes bug on HP-UX/IA64.
117555 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
117557         * lib/getdate.y (__attribute__): Don't define if already defined.
117558         Problem reported by Larry Jones.
117559         * lib/utimens.c (__attribute__): Likewise.
117561 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
117563         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
117564         reported by Andreas Schwab.
117566 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117567             Bruno Haible  <bruno@clisp.org>
117569         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
117570         check for the declaration of strnlen and a run test that exposes the
117571         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
117572         rpl_strndup.
117574 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117575             Bruno Haible  <bruno@clisp.org>
117577         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
117579 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117581         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
117582         compile test, for Tru64 4.0D.
117584 2006-05-28  Karl Berry  <karl@gnu.org>
117586         * config/srclist.txt (printf-args.c): lose sync.
117588 2006-05-26  Martin Lambers  <marlam@marlam.de>
117590         * lib/getpass.c: Updates the test for the native W32 API, and adds
117591         missing includes, thus fixing compilation warnings.
117593 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
117595         * lib/exclude.c (exclude_fnmatch): New function.
117596         (excluded_file_name): Call exclude_fnmatch.
117597         * lib/exclude.h (excluded_file_name): New prototype
117599 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
117601         * lib/tempname.c (small_open, large_open): New macros.
117602         (__open, __open64) [!_LIBC]: Remove.
117603         (__gen_tempname): Use small_open and large_open instead of __open
117604         and __open64.  This fixes a portability bug on HP-UX 11.11i
117605         reported by Simon Wing-Tang in
117606         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
117608 2006-05-24  Bruno Haible  <bruno@clisp.org>
117610         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
117611         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
117612         Reported by Thorsten Maerz <torte@netztorte.de> via
117613         Aaron Stone <aaron@serendipity.cx>.
117615 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
117617         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
117618         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
117619         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
117620         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
117621         not really conditional on the cache.
117622         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
117624 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
117626         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
117627         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
117628         (my_usleep): Don't mishandle maximum value.
117630 2006-05-19  Jim Meyering  <jim@meyering.net>
117632         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
117634 2006-05-17  Bruno Haible  <bruno@clisp.org>
117636         Cygwin portability.
117637         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
117639 2006-05-17  Bruno Haible  <bruno@clisp.org>
117641         * lib/stdint_.h: Fix recognition of Cygwin.
117643 2006-05-15  Bruno Haible  <bruno@clisp.org>
117645         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
117646         on libtool patch by Ralf Wildenhues.
117648 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117650         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
117651         test for C99 conformance; (bool) 0.5 is an integer constant
117652         expression, but (bool) -0.5 is not.  Problem reported by Fedor
117653         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
117655 2006-05-11  Simon Josefsson  <jas@extundo.com>
117657         * m4/xvasprintf.m4: Fix obvious typo.
117659 2006-05-11  Jim Meyering  <jim@meyering.net>
117661         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
117662         James Lemley.
117664 2006-05-10  Simon Josefsson  <jas@extundo.com>
117666         * lib/md4.c: Typo fix, update copyright years.
117667         (K1, K2): Don't use L because it turn computations into 64-bit on
117668         64-bit platforms.
117670 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
117672         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
117673         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
117674         unwanted sign propagation, e.g., on hosts with 64-bit int.
117675         There still are some problems with reeelly weird theoretical hosts
117676         (e.g., 33-bit int) but it's not worth worrying about now.
117677         * lib/sha1.c (rol): Likewise.
117678         (K1, K2, K3, K4): Remove unnecessary L suffix.
117680 2006-05-10  Bruno Haible  <bruno@clisp.org>
117682         * lib/des.c: Cast to avoid warnings.
117684 2006-05-09  Bruno Haible  <bruno@clisp.org>
117686         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
117687         (Depends-on): Depend also on xsize, stdarg.
117688         (configure.ac): Add gl_XVASPRINTF.
117690 2006-05-09  Bruno Haible  <bruno@clisp.org>
117692         * m4/xvasprintf.m4: New file.
117694 2006-05-09  Bruno Haible  <bruno@clisp.org>
117696         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
117697         (EOVERFLOW): Define fallback value.
117698         (xstrcat): New function.
117699         (xvasprintf): Recognize the special case of a string concatenation.
117701 2006-05-08  Eric Blake  <ebb9@byu.net>
117703         * gnulib-tool (func_version): Base copyright year on CVS date.
117704         (func_emit_copyright_notice): New function.
117705         (func_emit_lib_Makefile_am): Use it.
117706         (func_emit_tests_Makefile_am): Likewise.
117707         (func_import): Likewise.
117709 2006-05-08  Bruno Haible  <bruno@clisp.org>
117711         * modules/stdarg: New file.
117712         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
117714 2006-05-08  Bruno Haible  <bruno@clisp.org>
117716         * m4/stdarg.m4: New file, from GNU gettext.
117718 2006-05-08  Bruno Haible  <bruno@clisp.org>
117720         * config/srclist.txt (build-aux/config.rpath): different from latest
117721         release.
117723 2006-05-08  Bruno Haible  <bruno@clisp.org>
117725         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
117727 2006-05-05  Jim Meyering  <jim@meyering.net>
117729         * m4/warning.m4: New file, derived from bison's file by the same name.
117731 2006-05-03  Bruno Haible  <bruno@clisp.org>
117733         * lib/stdint_.h: Shorter URL.
117734         * lib/inttypes.h: Likewise.
117736 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117738         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
117740 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117742         * lib/verify.h: Document the internals better.  Most of this change
117743         was written by Bruno Haible.
117745 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117747         * doc/verify.texi: New file, partly based on a proposal by
117748         Bruno Haible.
117750 2006-05-02  Bruno Haible  <bruno@clisp.org>
117752         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
117753         test from here...
117754         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
117756 2006-04-29  Bruno Haible  <bruno@clisp.org>
117758         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
117759         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
117761 2006-04-29  Bruno Haible  <bruno@clisp.org>
117763         * gnulib-tool: Make --update option actually work.
117765 2006-04-29  Bruno Haible  <bruno@clisp.org>
117767         * doc/gcd.texi: New file.
117768         * doc/gnulib.texi: Include it.
117770 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
117772         * lib/getdate.y (get_date): When adding relative date, start with the
117773         initial time, not with the result of the first mktime call.
117775 2006-04-25  Bruno Haible  <bruno@clisp.org>
117777         * gnulib-tool (func_import): Output the include directives in three
117778         blocks, sorted separately.
117779         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117781 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117783         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
117784         to define main with arguments, for C++.  Reported by Eric Blake.
117785         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
117786         Prefer 'int main ()' to 'int main (void)', for C++.
117787         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
117788         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
117789         for 'main', for C99 and C++.
117791 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117793         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
117794         Don't assume that exit status -1 is valid.
117795         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117796         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
117797         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
117798         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
117799         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
117800         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
117801         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
117802         functions can be used without declaring them, or that you can
117803         exit with status -1.
117804         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
117806 2006-04-24  Karl Berry  <karl@gnu.org>
117808         * config/srclist.txt (longdouble.m4): sync lost.
117810 2006-04-24  Eric Blake  <ebb9@byu.net>
117812         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
117814 2006-04-24  Bruno Haible  <bruno@clisp.org>
117816         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
117817         poll() implementation in AIX.
117818         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117820 2006-04-24  Bruno Haible  <bruno@clisp.org>
117822         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
117823         assigned exactly once.
117825 2006-04-23  Claudio Fontana  <claudio@gnu.org>
117826             Bruno Haible  <bruno@clisp.org>
117828         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
117829         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
117830         for AM_CPPFLAGS.
117832 2006-04-23  Bruno Haible  <bruno@clisp.org>
117834         * modules/copy-file: Depend on unistd.
117835         * modules/execute: Likewise.
117836         * modules/fatal-signal: Likewise.
117837         * modules/findprog: Likewise.
117838         * modules/mkdtemp : Likewise.
117839         * modules/pipe: Likewise.
117840         * modules/wait-process: Likewise.
117842 2006-04-23  Bruno Haible  <bruno@clisp.org>
117844         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
117845         condition was already detected.
117846         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117848 2006-04-23  Bruno Haible  <bruno@clisp.org>
117850         * lib/copy-file.c: Include <unistd.h> unconditionally.
117851         * lib/execute.c: Likewise.
117852         * lib/fatal-signal.c: Likewise.
117853         * lib/findprog.c: Likewise.
117854         * lib/mkdtemp.c: Likewise.
117855         * lib/pipe.h: Likewise.
117856         * lib/pipe.c: Likewise.
117857         * lib/wait-process.h: Likewise.
117859 2006-04-23  Bruno Haible  <bruno@clisp.org>
117861         * gnulib-tool (func_usage): Fix --import description. Document
117862         --update.
117863         (func_import): Create temporary file in a temporary directory, if
117864         --dry-run is specified. Silence errors from 'grep' when there are no
117865         m4 files in $m4dir.
117866         (func_create_testdir): Silence errors from 'grep' when there are no
117867         m4 files in $m4dir.
117868         Reported by Karl Berry <karl@freefriends.org>.
117870 2006-04-20  Bruno Haible  <bruno@clisp.org>
117872         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
117873         one argument, so that the code will be portable to Autoconf 2.60.
117874         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
117875         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
117876         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
117878 2006-04-19  Derek Price  <derek@ximbiot.com>
117879             Eric Blake  <ebb9@byu.net>
117881         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
117882         rather than "/full/path.h".  Update comment to match.  Shorten &
117883         generalize m4_translit call via AS_TR_CPP.
117885 2006-04-19  Derek Price  <derek@ximbiot.com>
117886             Eric Blake  <ebb9@byu.net>
117888         * lib/inttypes.h: Correct grammar in comment.
117890 2006-04-18  Derek Price  <derek@ximbiot.com>
117891             Paul Eggert  <eggert@cs.ucla.edu>
117893         * modules/inttypes: New file.
117894         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
117896 2006-04-18  Derek Price  <derek@ximbiot.com>
117897             Paul Eggert  <eggert@cs.ucla.edu>
117899         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
117900         New files.
117902 2006-04-18  Derek Price  <derek@ximbiot.com>
117903             Paul Eggert  <eggert@cs.ucla.edu>
117905         * lib/inttypes.h: New file.
117906         * lib/strtoimax.c: Assume <inttypes.h>.
117908 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
117910         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
117911         isn't mounted.  Problem reported by Kir Kolyshkin.
117913 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
117915         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
117916         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
117917         Derek R. Price.
117918         * lib/regex.h (RE_DUP_MAX): Update comment to match current
117919         implementation.
117921 2006-04-12  Eric Blake  <ebb9@byu.net>
117923         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
117924         is now done automatically by the corresponding Autoconf macro.
117926 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
117928         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
117929         time_r.h.
117931 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117933         Merge regex changes from libc, removing some of our
117934         POSIX-conformance changes that were rejected and redoing them in a
117935         less-intrusive way.
117937         * lib/regcomp.c (re_compile_internal, init_dfa):
117938         Length arg is now size_t, not Idx.  All uses changed.
117939         (peek_token): Forward decl now says internal_function.
117940         (__re_error_msgid, __re_error_msgid_idx):
117941         Now static rather than extern with attribute_hidden.
117942         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
117943         For some reason libc prefers K&R style defns for external functions.
117944         (regerror) [!defined _LIBC]: Likewise.
117945         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
117946         (seek_collating_symbol_entry, lookup_collation_sequence_value):
117947         (build_range_exp, build_collating_symbol):
117948         Use K&R-style defn.
117949         (re_compile_fastmap): Use '\0' to memset, not 0.
117950         (utf8_sb_map): Make the calculations more obvious.
117951         (init_dfa, parse_bracket_exp, build_charclass_op):
117952         Call calloc and cast result, as glibc does.
117953         (init_word_char, fetch_token, peek_token, peek_token_bracket):
117954         (build_range_exp, build_collating_symbol):
117955         Now internal functions.
117957         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
117959         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
117960         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
117961         Don't depend on VMS; depend on __VMS instead, for POSIX
117962         namespace cleanness.
117963         (regoff_t): Define to ssize_t, not long int.
117965         Remove the REG_ macros named below.  Instead, make the old names
117966         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
117967         __USE_GNU_REGEX.
117968         (REG_BACKSLASH_ESCAPE_IN_LISTS):
117969         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
117970         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
117971         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
117972         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
117973         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
117974         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
117975         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
117976         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
117977         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
117978         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
117979         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
117980         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
117981         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
117982         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
117983         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
117984         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
117985         (REG_NREGS):
117986         Remove.  All uses replaced by the old RE_* names.
117987         (RE_BACKSLASH_ESCAPE_IN_LISTS):
117988         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
117989         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
117990         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
117991         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
117992         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
117993         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
117994         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
117995         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
117996         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
117997         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
117998         Don't bother having these macros be independent of each others'
117999         values, since they no longer exist in the POSIX name space.
118001         Rename the following member names back to their old names,
118002         unless !__USE_GNU_REGEX.  All uses changed back.
118003         (buffer): Renamed from re_buffer.
118004         (allocated): Renamed from re_allocated.
118005         (used): Renamed from re_used.
118006         (syntax): Renamed from re_syntax.
118007         (fastmap): Renamed from re_fastmap.
118008         (translate): Renamed from re_translate.
118009         (can_be_null): Renamed from re_can_be_null.
118010         (regs_allocated): Renamed from re_regs_allocated.
118011         (fastmap_accurate): Renamed from re_fastmap_accurate.
118012         (no_sub): Renamed from re_no_sub.
118013         (not_bol): Renamed from re_not_bol.
118014         (not_eol): Renamed from re_not_eol.
118015         (newline_anchor): Renamed from re_newline_anchor.
118016         (num_regs): Renamed from rm_num_regs.
118017         (start): Renamed from rm_start.
118018         (end): Renamed from rm_end.
118020         (free_state): Move up a bit.
118022         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
118023         #define to be empty.
118024         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
118025         when that is what is intended.
118026         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
118027         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
118028         (MAX): New macro.
118029         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
118030         All uses changed back to re_malloc, etc.  It's now the caller's
118031         responsibility to check for overflow; all callers changed.
118032         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
118033         (re_x2nrealloc): Remove.
118034         (free_state): Remove decl.
118036         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
118037         (re_set_registers, re_exec):
118038         Use K&R-style defn.
118040         2006-01-31  Roland McGrath  <roland@redhat.com>
118042         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
118043         Reported by Mike Frysinger <vapier@gentoo.org>.
118045         2006-01-15  Andreas Jaeger  <aj@suse.de>
118047         [BZ #1950]
118048         * lib/regex_internal.c (re_string_reconstruct): Adjust for
118049         build_wcs_upper_buffer change.
118050         (build_wcs_upper_buffer): Change return type.
118052         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
118054         * lib/regex_internal.h: Include <stdint.h> if available.
118056         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
118058         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
118060         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
118062         * lib/regcomp.c: Adjust for changed secondary hash function.
118064         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
118066         * lib/regex.h: Pretty printing.
118067         Clean up namespace a bit.
118069         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
118071         * lib/regexec.c (update_cur_sifted_state, check_arrival,
118072         check_arrival_add_next_nodes): Avoid using uninitialized variable.
118074         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
118075                     Ulrich Drepper  <drepper@redhat.com>
118077         [BZ #1302]
118078         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
118079         changed.
118080         (bitset_word_t): Renamed from bitset_word.  All uses changed.
118082         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
118084         [BZ #281]
118085         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
118086         * lib/regcomp.c: Remove unnecessary uses of
118087         unsigned RE_TRANSLATE_TYPE.
118088         * lib/regex_internal.h: Likewise.
118089         * lib/regex_internal.c: Likewise.
118090         * lib/regexec.c: Likewise.
118091         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
118093         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
118095         * lib/regexec.c (find_recover_state): Remove unnecessary
118096         initialization.
118097         (transit_state_bkref): Make DFA a const pointer.
118098         (get_subexp): Likewise.
118099         (check_arrival): Likewise.
118100         (update_cur_sifted_state): Likewise.
118101         (re_search_internal): Likewise.
118102         (prune_impossible_nodes): Likewise.
118103         (acquire_init_state_context): Likewise.
118104         (proceed_next_node): Likewise.
118105         (set_regs): Likewise.
118106         (free_fail_stack_return): Likewise.
118107         (check_arrival_expand_ecl): Mark DFA parameter as const.
118108         (check_arrival_expand_ecl_sub): Likewise.
118109         (check_subexp_limits): Likewise.
118110         (sub_epsilon_src_nodes):  Likewise.
118111         (add_epsilon_src_nodes):  Likewise.
118112         (merge_state_array): Likewise.
118113         (update_regs): Likewise.
118114         (build_trtable): Likewise.
118115         (sift_states_backward): Mark MCTX parameter as const.
118116         (build_sifted_states): Likewise.
118117         (update_cur_sifted_state): Likewise.
118118         (sift_states_mkref): Likewise.
118119         (check_arrival_expand_ecl): Mark eclosure as const.
118120         (check_dst_limits_calc_pos_1): Likewise.
118121         * lib/regex_internal.h (re_match_context_t): Make dfa a const
118122         pointer.
118124         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
118126         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
118127         (transit_state_sb): Likewise.
118128         (transit_state_mb): Likewise.
118129         (sift_states_iter_mb): Likewise.
118130         (check_arrival_add_next_nodes): Likewise.
118131         (check_node_accept_bytes): Change first parameter to pointer-to-const.
118132         [_LIBC] (re_search_2_stub): Use mempcpy.
118134         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
118135         mbrtowc for very simple UTF-8 case.
118137         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
118138         a pointer-to-const.
118139         (re_acquire_state_context): Likewise.
118140         * lib/regex_internal.h: Adjust prototypes.
118142         * lib/regex.c: Prevent using C++ compilers.
118144         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
118145         (re_acquire_state_context): Likewise.
118147 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
118149         * modules/regex (Depends-on): Add ssize_t.
118151 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
118153         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
118154         translation table.
118156 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
118158         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
118160 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
118161             Bruno Haible  <bruno@clisp.org>
118163         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
118164         <sys/types.h> and <inttypes.h>.
118166 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118168         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
118169         `__error_t_defined', so argp.h will not typedef the former.
118171 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
118173         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
118174         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
118175         glibc names.  Even if glibc is changed to conform to POSIX, the
118176         traditional names will be available anyway, since regex depends on
118177         the extensions module.  Also, fix a longstanding typo in the
118178         implementation of Spencer ERE test #75 from grep 2.3.  Problems
118179         reported by Emanuele Giaquinta.  Also, change sense of cached
118180         variable, so that the message makes sense.
118182 2006-03-24  Simon Josefsson  <jas@extundo.com>
118184         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
118185         including some doc fixes.
118186         (base64_encode_alloc): Fix +1 bug on allocation failures.
118188 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118190         * lib/base64.c (base64_encode): Do not read past end of array with
118191         unsanitized input on systems with CHAR_BIT > 8.
118193 2006-03-24  Eric Blake  <ebb9@byu.net>
118195         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
118197 2006-03-22  Karl Berry  <karl@gnu.org>
118199         * config/srclist.txt (*setenv.[ch]): get from coreutils.
118200         * config/srclistvars.sh (COREUTILS): new var.
118202 2006-03-17  Jim Meyering  <jim@meyering.net>
118204         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
118205         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
118207 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
118209         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
118210         no longer needs it.  Instead, check that regoff_t is as least
118211         as wide as ptrdiff_t.
118213         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
118214         so that our regex.h stays compatible with the installed regex.
118215         This is helpful for installers who configure --without-included-regex.
118216         Problem reported by Emanuele Giaquinta.
118218 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
118220         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
118221         Typedef to long int, not to off_, as POSIX will likely change
118222         in that direction.
118224 2006-03-15  Eric Blake  <ebb9@byu.net>
118226         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
118228 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
118230         * lib/argp-help.c (validate_uparams): Fix typo
118231         * lib/argp-parse.c (argp_default_options): Consistently begin help
118232         messages with a lowercase letter.
118234 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
118236         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
118237         overrun buffers and shouldn't be used (much as gets shouldn't be
118238         used).
118239         * lib/time_r.c (asctime_r, ctime_r): Likewise.
118241 2006-03-08  Simon Josefsson  <jas@extundo.com>
118243         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
118244         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118246 2006-03-08  Simon Josefsson  <jas@extundo.com>
118248         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
118249         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118251 2006-03-08  Simon Josefsson  <jas@extundo.com>
118253         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
118254         signal that configure disabled the device.
118256 2006-03-08  Simon Josefsson  <jas@extundo.com>
118258         * build-aux/maint.mk: Fix refresh-po, to handle no translated
118259         languages.
118261 2006-03-07  Simon Josefsson  <jas@extundo.com>
118263         * modules/getopt (Depends-on): Add unistd.
118265         * modules/unistd: New file.
118267 2006-03-07  Simon Josefsson  <jas@extundo.com>
118269         * modules/gc-random: New file.
118271 2006-03-07  Simon Josefsson  <jas@extundo.com>
118273         * m4/unistd_h.m4: New file.
118275 2006-03-07  Simon Josefsson  <jas@extundo.com>
118277         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
118278         test to be side-effect free by storing the result in the cache
118279         variable gl_cv_lib_readline, and moving the assignment of
118280         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
118281         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118283 2006-03-07  Simon Josefsson  <jas@extundo.com>
118285         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
118286         error on missing devices (the functions will return an error).
118288         * m4/gc.m4: Move random stuff to gc-random.m4
118290 2006-03-07  Simon Josefsson  <jas@extundo.com>
118292         * lib/unistd_.h: New file.
118294 2006-03-07  Simon Josefsson  <jas@extundo.com>
118296         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
118298 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
118300         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
118301         Problem reported by Juan Manuel Guerrero.
118303 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
118305         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
118306         the unistd module.
118307         * lib/getlogin_r.c: Likewise.
118308         * lib/getlogin_r.h: Likewise.
118309         * lib/glob.c: Likewise.
118310         * lib/pagealign_alloc.c: Likewise.
118311         * lib/unistd_.h: Remove; no longer needed.
118313 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
118315         * MODULES.html.sh (Support for systems lacking POSIX:2001):
118316         Add unistd.
118317         * modules/c-stack (Depends-on): Add unistd.
118318         * modules/getlogin_r: Likewise.
118319         * modules/glob: Likewise.
118320         * modules/pagealign_alloc: Likewise.
118321         * modules/unistd (Files): Remove lib/unistd_.h.
118322         (EXTRA_DIST): Remove.
118323         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
118324         need unistd_.h.
118325         (MOSTLYCLEANFILES): Remove unistd.h-t.
118327 2006-03-03  Simon Josefsson  <jas@extundo.com>
118329         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
118331 2006-03-03  Simon Josefsson  <jas@extundo.com>
118333         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
118334         libidn and bison.
118336 2006-03-03  Simon Josefsson  <jas@extundo.com>
118338         * build-aux/maint.mk: Add indent target.
118340 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
118342         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
118343         our replacement poll.h in any case, to avoid a differing
118344         declaration from a system header.  Seen on AIX.
118346 2006-03-01  Simon Josefsson  <jas@extundo.com>
118348         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
118349         <kasal@ucw.cz>.
118351 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118353         * modules/gettime (Depends-on): Add extensions module.
118354         * modules/nanosleep (Depends-on): Likewise.
118355         * modules/settime (Depends-on): Likewise.
118357 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118359         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
118360         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
118361         pedantically.
118362         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
118363         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
118365         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
118366         not "==".  Reported by Ralf Wildenhues.
118368 2006-03-01  Karl Berry  <karl@gnu.org>
118370         * doc/Copyright/request-*: new files, synced from gnuorg.
118372 2006-03-01  Karl Berry  <karl@gnu.org>
118374         * config/srclist.txt (Copyright/*): new entries.
118376 2006-02-28  Simon Josefsson  <jas@extundo.com>
118378         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
118380 2006-02-27  Simon Josefsson  <jas@extundo.com>
118382         * lib/base64.h: Indent #define's.  From Jim Meyering
118383         <jim@meyering.net>.
118385 2006-02-27  Jim Meyering  <jim@meyering.net>
118387         Revert the change of 2006-02-24, so these files can continue
118388         to be sync'd from gettext.
118389         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
118390         of `config.h'.
118392 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
118394         * modules/intprops: New file.
118395         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
118396         Add intprops.
118397         * modules/getloadavg (Files): Remove lib/intprops.h.
118398         (Depends-on): Add intprops.
118399         * modules/human: Likewise.
118400         * modules/inttostr: Likewise.
118401         * modules/openat: Likewise.
118402         * modules/sig2str: Likewise.
118403         * modules/userspec: Likewise.
118404         * modules/utimecmp: Likewise.
118405         * modules/xnanosleep: Likewise.
118406         * modules/xstrtol: Likewise.
118408 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
118410         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
118411         * modules/lock-tests (TESTS): Use $(EXEEXT).
118412         * modules/tls-tests: Likewise.
118413         * modules/argp-tests: Likewise.
118414         (check_PROGRAMS): New var, replacing...
118415         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
118417 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118419         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
118420         `config.h'.
118422 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
118424         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
118426 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118428         Sync from coreutils.
118429         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
118430         gl_CHDIR_SAFER.
118432 2006-02-22  Jim Meyering  <jim@meyering.net>
118434         Sync from coreutils.
118435         * m4/chdir-safer.m4: New file.
118437 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
118439         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
118440         AT_FDCWD exceeds INT_MAX.
118441         * lib/openat.h (AT_FDCWD): Likewise.
118443 2006-02-17  Eric Blake  <address@hidden>
118445         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
118447 2006-02-16  Simon Josefsson  <jas@extundo.com>
118449         * modules/getaddrinfo (Depends-on): Add sys_socket.
118451 2006-02-15  Simon Josefsson  <jas@extundo.com>
118453         * build-aux/maint.mk: Add dsyntax-check rule.
118455 2006-02-15  Eric Blake  <ebb9@byu.net>
118457         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
118458         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
118459         'present but cannot compile' warnings on cygwin.
118460         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
118461         use ws2tcpip.h if sys/socket.h works.
118462         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
118463         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
118465 2006-02-14  Simon Josefsson  <jas@extundo.com>
118467         * modules/maintainer-makefile (Files): Rename.
118469         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
118470         and (the local) Makefile.cfg to maint-cfg.mk.
118472         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
118473         to the latter.
118475         * modules/maintainer-makefile: New module.
118477         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
118478         severaly stripped to make it possible to build it up from scratch
118479         with reliable tests.
118481         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
118482         fixes to permit overriding the default actions when configure and
118483         makefile are not available.
118485 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
118487         Sync from coreutils.
118488         * modules/lstat (Depends-on): Don't depend on xalloc.
118489         (License): Change from GPL to LGPL, since this is now simply a
118490         replacement for a libc function.
118492 2006-02-14  Jim Meyering  <jim@meyering.net>
118494         Sync from coreutils.
118496         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
118497         failure on deficient systems, and simplify gnulib lgpl dependencies.
118498         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
118499         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
118501         * lib/xalloc-die.c: Remove unused definition of N_.
118503 2006-02-14  Jim Meyering  <jim@meyering.net>
118505         Sync from coreutils.
118506         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
118507         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
118508         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
118509         double-quote uses of that variable, to accommodate the rare case in
118510         which getmntent is available in none of the libraries checked.  This
118511         happens at least on FreeBSD 5.0.
118513 2006-02-13  Simon Josefsson  <jas@extundo.com>
118515         * gnulib-tool (Usage): Fix --import, from
118516         karl@freefriends.org (Karl Berry).
118518 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
118520         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
118522 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
118524         * lib/argp-namefrob.h: Restore changes accidentally lost during the
118525         "autoupdate" on 2005-12-12.
118527 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
118529         * modules/closeout (Depends-on): Remove atexit.
118531 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
118533         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
118534         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
118536 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
118538         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
118539         __EXTENSIONS__ if this causes compilation to fail.  Problem
118540         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
118541         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
118543 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
118545         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
118546         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
118547         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
118548         All uses changed.
118550 2006-01-26  Simon Josefsson  <jas@extundo.com>
118552         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
118553         prototype is visible on mingw32.
118555         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
118556         for mingw32.
118558         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
118559         mingw32).
118561 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
118563         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
118564         attempt to open for write; this always fails, at least on POSIX
118565         hosts.  This reinstates the 2006-01-09 change, which was
118566         inadvertently removed.
118568 2006-01-26  Bruno Haible  <bruno@clisp.org>
118570         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
118571         Reported by Paul Eggert.
118573 2006-01-26  Bruno Haible  <bruno@clisp.org>
118574             Paul Eggert  <eggert@cs.ucla.edu>
118576         * lib/stdbool_.h (_Bool)
118577         [(! (defined __cplusplus || defined __BEOS__)
118578           && !defined __GNUC__
118579           && !(defined __HP_cc || defined __xlc__
118580                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
118581                || defined __sgi))]:
118582         #define to signed char in these cases too; this simplifies
118583         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
118584         etc., separately) and makes it more conservative.
118586 2006-01-25  Simon Josefsson  <jas@extundo.com>
118588         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
118589         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
118590         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
118592 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
118594         * lib/argp-namefrob.h: Bugfix. Remove stray #
118596 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
118598         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
118599         so that we test the test.
118600         Check for yet another HP-UX cc bug involving *bool |= bool.
118602 2006-01-25  Karl Berry  <karl@gnu.org>
118604         * config/srclist.txt (vasnprintf.c): sync lost.
118606 2006-01-25  Jim Meyering  <jim@meyering.net>
118608         Sync from the stable (b5) branch of coreutils:
118610         * lib/fts.c (fts_children): Don't let close() clobber errno from
118611         failed fchdir().
118613         * lib/fts.c (fts_stat): When following a symlink-to-directory,
118614         don't necessarily interpret stat-fails+lstat-succeeds as indicating
118615         a dangling symlink.  That can also happen at least for ELOOP.
118616         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
118617         FYI, this bug predates the inclusion of fts.c in coreutils.
118619         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
118620         in their own block, so pre-c99 compilers don't object.
118622         Avoid the double-free (first in fts_read, second in fts_close) that
118623         would occur when an `active' directory is made inaccessible (e.g.,
118624         via chmod a-x) during a traversal.
118625         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118626         before returning.  Reproduce this failure by
118627         mkdir -p a/b; cd a; chmod a-x . b
118628         Reported by Stavros Passas.
118630 2006-01-25  Jim Meyering  <jim@meyering.net>
118632         * lib/fileblocks.c: Remove more useless parentheses.
118633         * lib/readutmp.h: Likewise.
118635 2006-01-25  Bruno Haible  <bruno@clisp.org>
118637         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
118638         warnings.
118639         Reported by Paul Eggert.
118641 2006-01-25  Bruno Haible  <bruno@clisp.org>
118643         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
118644         rid of a trap command. For Solaris sh.
118645         Reported by Mark D. Baushke <mdb@gnu.org>.
118647 2006-01-24  Simon Josefsson  <jas@extundo.com>
118649         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
118650         Bruno.
118652 2006-01-24  Karl Berry  <karl@gnu.org>
118654         * config/srclist.txt (argp-namefrob.h): sync lost.
118656 2006-01-24  Jim Meyering  <jim@meyering.net>
118658         * modules/openat (Files): Add lib/intprops.h.
118659         From Mark D. Baushke.
118661 2006-01-24  Jim Meyering  <jim@meyering.net>
118663         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
118664         Reported by Mark D. Baushke.
118666 2006-01-24  Jim Meyering  <jim@meyering.net>
118668         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
118670 2006-01-24  Bruno Haible  <bruno@clisp.org>
118672         * modules/strnlen (Maintainer): Change from glibc to all.
118674 2006-01-24  Bruno Haible  <bruno@clisp.org>
118676         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
118677         Patch by Paul Eggert.
118679 2006-01-24  Bruno Haible  <bruno@clisp.org>
118681         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
118682         already has it.
118683         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
118684         2005-11-26.
118686         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
118687         'signed char' to avoid problems with the built-in _Bool type.
118688         Reported by Paul Eggert on 2005-11-26.
118690 2006-01-24  Bruno Haible  <bruno@clisp.org>
118692         * gnulib-tool (func_import): Avoid constructing complicated sed
118693         expressions inside backquote.
118694         Report and solution by Mark D. Baushke <mdb@gnu.org>.
118696 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
118698         These changes imported from libc.
118699         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
118700         test and two separate function calls.
118701         * lib/strndup.c (__strndup): Add libc_hidden_def.
118703 2006-01-23  Simon Josefsson  <jas@extundo.com>
118705         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
118706         Remove the test_*_SOURCES variable: automake infers it by default.
118707         * modules/tls-tests: Likewise.
118709 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118711         Work around porting bugs reported by Dieter in
118712         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
118713         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
118714         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
118715         Include "getopt.h" first, to check interface.
118716         (getenv): Declare only if defined HAVE_DECL_GETENV &&
118717         !HAVE_DECL_GETENV.
118718         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
118719         (__strndup): Revert to K&R-style function dfns, the glibc style.
118720         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
118721         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
118722         Include strnlen.h first, to get prototype properly.
118723         (strnlen): Renamed from __strnlen.
118724         Remove weak alias.
118726 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118728         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
118730 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118732         * config/srclist.txt: Adjust to reflect glibc reorganization.
118733         This affects only comments.
118735 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118737          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
118738          Reported by Bruce Korb <bkorb@gnu.org>.
118740 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
118742         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
118743         to pacify gcc -Wswitch-default.
118745 2006-01-22  Bruno Haible  <bruno@clisp.org>
118747         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
118748         temporary buffer for sprintf, take into account the precision also
118749         for 'd', 'i', 'u', 'o', 'x', 'X'.
118751 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118753         * modules/argp-tests: New module
118754         * tests/test-argp.c: New file
118755         * tests/test-argp-2.sh: New file
118757 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118759         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
118760         (__argp_base_name): Removed
118761         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
118762         typo.
118763         (__argp_base_name): Provide macro definition or extern declaration
118764         depending on the configuration
118766 2006-01-20  Simon Josefsson  <jas@extundo.com>
118768         * modules/inet_ntop (Depends-on): Depend on sys_socket.
118770 2006-01-20  Simon Josefsson  <jas@extundo.com>
118772         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
118774 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118776         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
118777         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
118778         Suggested by Bruno Haible.
118780 2006-01-20  Karl Berry  <karl@gnu.org>
118782         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
118783         until changes propagate, I guess.
118785 2006-01-19  Simon Josefsson  <jas@extundo.com>
118787         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
118789 2006-01-19  Simon Josefsson  <jas@extundo.com>
118791         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
118793 2006-01-19  Simon Josefsson  <jas@extundo.com>
118795         * gnulib-tool: Set check_PROGRAMS.
118797         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118798         modules/des-tests, modules/gc-arcfour-tests,
118799         modules/gc-arctwo-tests, modules/gc-des-tests,
118800         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118801         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118802         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118803         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118804         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118805         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
118806         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
118807         test_*_SOURCES.
118809 2006-01-18  Simon Josefsson  <jas@extundo.com>
118811         * modules/socklen (Depends-on): Depend on sys_socket.
118813 2006-01-18  Simon Josefsson  <jas@extundo.com>
118815         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118816         modules/des-tests, modules/gc-arcfour-tests,
118817         modules/gc-arctwo-tests, modules/gc-des-tests,
118818         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118819         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118820         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118821         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118822         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118823         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
118824         $(EXEEXT) to automake TESTS variable, for mingw32.
118826 2006-01-17  Simon Josefsson  <jas@extundo.com>
118828         * modules/socklen (Include): Need sys/socket.h.
118830 2006-01-17  Bruno Haible  <bruno@clisp.org>
118832         * modules/ssize_t (Include): Add <sys/types.h>.
118834 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
118836         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
118837         it's not portable and it doesn't work with cross-compiles.
118838         Problem reported by Bruno Haible.  Fix missing-$ typo in
118839         'test "gl_cv_ignore_unused_libraries" ...' that prevented
118840         -zignore from being used with Sun's C compiler.
118842 2006-01-12  Simon Josefsson  <jas@extundo.com>
118844         * lib/base64.c: Fix warning, reported by Bruno Haible
118845         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
118847 2006-01-12  Bruno Haible  <bruno@clisp.org>
118849         * modules/ldd: New file.
118850         * build-aux/ldd.sh.in: New file.
118851         * MODULES.html.sh (Support for building libraries and executables): Add
118852         ldd.
118854 2006-01-12  Bruno Haible  <bruno@clisp.org>
118856         * m4/ldd.m4: New file.
118858 2006-01-12  Bruno Haible  <bruno@clisp.org>
118860         * gnulib-tool (func_import, func_create_testdir): Don't go into an
118861         endless loop while replacing $auxdir with build-aux.
118863 2006-01-11  Simon Josefsson  <jas@extundo.com>
118865         * lib/stdint_.h (SIZE_MAX): Add missing (.
118867 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
118869         Sync from coreutils.
118870         * lib/md5.c: Fix commentary typos.
118871         (alignof, UNALIGNED_P): No need for a GCC-specific version.
118872         * lib/md5.h (__attribute__): Remove; unused.
118873         * lib/sha1.c: Fix commentary to match md5 better.
118874         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
118875         so that we don't need to worry about alignment.  All uses changed.
118876         This merges the 2005-10-28 md5 change into sha1.
118878 2006-01-11  Jim Meyering  <jim@meyering.net>
118880         Sync from coreutils.
118881         * lib/md5.c (OP): Fix spacing.
118883 2006-01-11  Bruno Haible  <bruno@clisp.org>
118885         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118886         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
118887         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
118889 2006-01-11  Bruno Haible  <bruno@clisp.org>
118891         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118892         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
118893         the "early" section as well.
118895 2006-01-11  Bruno Haible  <bruno@clisp.org>
118897         Avoid "ar: no archive members specified" error on MacOS X.
118898         * gnulib-tool (func_modules_add_dummy): New function.
118899         (func_import, func_create_testdir): Invoke it.
118901 2006-01-11  Bruno Haible  <bruno@clisp.org>
118903         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
118904         with $auxdir in AC_CONFIG_FILES statements.
118906 2006-01-11  Bruno Haible  <bruno@clisp.org>
118908         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
118909         Initialize also noinst_HEADERS to empty.
118911 2006-01-11  Bruno Haible  <bruno@clisp.org>
118913         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
118914         variables.
118915         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
118916         autoreconf.
118918 2006-01-11  Bruno Haible  <bruno@clisp.org>
118920         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
118921         overridable by the user.
118922         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118924 2006-01-10  Simon Josefsson  <jas@extundo.com>
118926         * modules/sys_socket: New file.
118928 2006-01-10  Simon Josefsson  <jas@extundo.com>
118930         * m4/sys_socket_h.m4: New file.
118932 2006-01-10  Simon Josefsson  <jas@extundo.com>
118934         * lib/socket_.h: New file.
118936 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118938         * modules/readutmp (Maintainer): Add myself.
118940 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118942         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
118943         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
118944         People who are still concerned with buggy memcmp implementations
118945         can invoke gl_FUNC_MEMCMP themselves.
118947 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118949         * lib/regex_internal.h (BITSET_WORD_BITS):
118950         Work around a bug in 64-bit PGC (before version 6.1-2), where the
118951         preprocessor mishandles large unsigned values as if they were signed.
118952         Problem reported by Claudio Fontana in
118953         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
118955 2006-01-10  Jim Meyering  <jim@meyering.net>
118957         Avoid the double-free (first in fts_read, second in fts_close) that
118958         would occur when an `active' directory is made inaccessible (e.g.,
118959         via chmod a-x) during a traversal.
118960         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118961         before returning.  Reproduce this failure by
118962         mkdir -p a/b; cd a; chmod a-x . b
118963         Reported by Stavros Passas.
118965         Sync from coreutils.
118966         * lib/sha1.c: Tweak grammar in a comment.
118968 2006-01-10  Jim Meyering  <jim@meyering.net>
118970         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
118971         Patch by Joerg Sonnenberger.
118973 2006-01-10  Bruno Haible  <bruno@clisp.org>
118975         * modules/readutmp: Depend on module free.
118976         * modules/strtok_r: Depend on module restrict.
118978 2006-01-10  Bruno Haible  <bruno@clisp.org>
118980         * modules/gettext (configure.ac): Add an invocation of
118981         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
118983 2006-01-10  Bruno Haible  <bruno@clisp.org>
118985         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
118986         Reported by Werner Lemberg <wl@gnu.org>.
118988 2006-01-10  Bruno Haible  <bruno@clisp.org>
118990         * lib/localcharset.c: Update from GNU gettext.
118992 2006-01-10  Bruno Haible  <bruno@clisp.org>
118994         * lib/argp.h (__const): Remove macro. Use const instead.
118995         * lib/argp-fmtstream.h (__const): Likewise.
118996         * lib/glob_.h (__const): Remove macro.
118997         * lib/glob-libc.h: Use const instead of __const.
118999 2006-01-10  Bruno Haible  <bruno@clisp.org>
119001         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
119002         variable.
119003         Needed to avoid an automake error regarding the 'gettext' module.
119005 2006-01-09  Simon Josefsson  <jas@extundo.com>
119007         * modules/inet_ntop (Depends-on): Add restrict.
119009 2006-01-09  Simon Josefsson  <jas@extundo.com>
119011         * modules/gc-rijndael-tests (License): Put under LGPL.
119013         * modules/gc-des-tests (License): Likewise.
119015         * modules/gc-arcfour-tests (License): Likewise.
119017         * modules/gc-arctwo-tests (License): Likewise.
119019         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
119021         * modules/gc-hmac-sha1-tests (Files): Likewise.
119023         * modules/gc-hmac-md5-tests (License): Likewise.
119025         * modules/gc-sha1-tests (License): Likewise.
119027         * modules/gc-md5-tests (License): Likewise.
119029         * modules/gc-md4-tests (License): Likewise.
119031         * modules/gc-md2-tests (License): Likewise.
119033         * modules/gc-tests (License): Likewise.
119035         * modules/des-tests (License): Likewise.
119037         * modules/md4-tests (License): Likewise.
119039         * modules/md2-tests (License): Likewise.
119041 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
119043         Sync from coreutils:
119045         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
119046         * modules/lib-ignore: New file.
119047         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
119048         chdir-safer.m4, lchmod.m4.
119049         * modules/openat: Add mkdirat.c, openat-priv.h.
119051 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
119053         Sync from coreutils.
119054         * m4/lib-ignore.m4: New file.
119055         * m4/lchmod.m4: New file.
119057 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
119059         Sync from coreutils.
119060         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
119061         for write access: POSIX says that must fail.
119062         * lib/fts.c (diropen): Likewise.
119063         * lib/save-cwd.c (save_cwd): Likewise.
119064         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
119065         well, for minor improvements on hosts that lack O_DIRECTORY.
119066         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
119067         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
119068         Fall back on chown if open failed with EACCES.
119070         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
119071         Report an error at compile-time if only a 1-second nominal clock
119072         resolution is found.
119074         * lib/lchmod.h: New file.
119075         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
119076         (make_dir_parents): Use lchown rather than chown, and
119077         lchmod rather than chmod.
119079         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
119080         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
119081         "proc" reported by n0dalus.
119083         * lib/mountlist.c: Include <limits.h>.
119084         (dev_from_mount_options)
119085         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
119086         New function.  It no longer assumes "dev=" has the System V meaning
119087         on Linux (since it doesn't).  It also parses "dev=" more carefully.
119088         (read_file_system_list)
119089         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
119090         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
119091         dev= in that case.
119093         * lib/posixtm.h (PDS_PRE_2000): New macro.
119094         * lib/posixtm.c (year): Arg is now syntax_bits rather than
119095         allow_century.  All usages changed.  Reject dates outside the range
119096         1969-1999 if PDS_PRE_2000 is used.
119098 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
119100         Sync from coreutils.
119101         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
119102         (Time of day items): Mention the possibility of leap seconds.
119103         Problem reported by Dr. David Alan Gilbert.
119105 2006-01-09  Jim Meyering  <jim@meyering.net>
119107         Sync from coreutils.
119109         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
119111         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
119113         * lib/modechange.c (mode_compile): Reject an invalid mode string
119114         that starts with an octal digit.  From Andreas Gruenbacher.
119116         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
119117         and dup to open_safer and dup_safer, respectively.
119118         (openat_permissive): Fix typo in comment.
119120         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
119121         "gettext.h"; either no longer needed or are guaranteed by openat.h.
119122         (_): Remove; no longer needed.
119123         (openat): Renamed from rpl_openat; no need for rpl_openat
119124         since openat.h renames openat for us.
119125         Replace most of the body with a call to openat_permissive,
119126         to avoid duplicate code.
119127         Port to (probably hypothetical) environments were mode_t is
119128         wider than int.
119129         (openat_permissive): Require mode arg, so that we can check
119130         types better.  Put it just after flags.  Change cwd failure
119131         indicator from pointer-to-bool to pointer-to-errno-value.
119132         All callers changed.
119133         Invoke openat_save_fail and/or openat_restore_fail if
119134         cwd_errno is null, so that openat can call us.
119135         (openat_permissive, fdopendir, fstatat, unlinkat):
119136         Simplify errno handling to avoid some duplicate code,
119137         as it's OK to set errno on success.
119138         * lib/openat.h: Revamp code so that function macros depend on
119139         __OPENAT_PREFIX only, not also on AT_FDCWD.
119140         (openat_ro): Remove.  Caller changed to use openat_permissive.
119141         (openat_permissive): Now a macro, if not a function.
119142         (openat_restore_fail, openat_save_fail): Now always functions,
119143         since mkdirat needs them even if __OPENAT_PREFIX is defined.
119145         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
119146         and openat.c.
119147         * lib/mkdirat.c: Include openat-priv.h.
119148         Remove definitions of macros defined therein.
119149         * lib/openat.c: Likewise.
119151         * lib/mkdirat.c (mkdirat): New file and function.
119152         * lib/openat.h (mkdirat): Declare.
119154         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
119156         * lib/openat.h (openat_permissive): Declare.
119157         (openat_ro): Define.
119159         * lib/openat.c (EXPECTED_ERRNO): New macro.
119160         (openat_permissive): New function -- used in remove.c rewrite.
119161         (all functions): Set errno just before returning, only if there
119162         was an actual failure.
119163         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
119165         Emulate openat-family functions using Linux's procfs, if possible.
119166         Idea and some code based on Ulrich Drepper's glibc changes.
119168         * lib/openat.c: (BUILD_PROC_NAME): New macro.
119169         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
119170         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
119171         before falling back on save_cwd and restore_cwd.
119172         (fdopendir, fstatat, unlinkat): Likewise.
119174         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
119175         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
119177         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
119178         as second argument to va_arg.  Otherwise, some versions of gcc
119179         warn that `if this code is reached, the program will abort'.
119181 2006-01-09  Jim Meyering  <jim@meyering.net>
119183         Sync from coreutils.
119184         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
119185         Require openat-priv.h.
119187 2006-01-09  Bruno Haible  <bruno@clisp.org>
119189         * modules/strnlen (Include): Use strnlen.h.
119191 2006-01-09  Bruno Haible  <bruno@clisp.org>
119193         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
119195 2006-01-09  Bruno Haible  <bruno@clisp.org>
119197         * lib/sysexit_.h (EX_OK): New macro.
119198         Suggested by Martin Lambers <marlam@marlam.de>.
119200 2006-01-09  Bruno Haible  <bruno@clisp.org>
119202         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
119203         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
119205 2006-01-09  Bruno Haible  <bruno@clisp.org>
119207         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
119208         numbers.
119210 2006-01-09  Bruno Haible  <bruno@clisp.org>
119212         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
119213         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
119214         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
119215         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
119217 2006-01-09  Bruno Haible  <bruno@clisp.org>
119219         * build-aux/javacomp.sh.in: New file, moved from lib/.
119220         * modules/javacomp-script (Files): Update.
119221         (configure.ac): Add AC_CONFIG_FILES invocation.
119222         (EXTRA_DIST): Remove variable.
119224         * build-aux/javaexec.sh.in: New file, moved from lib/.
119225         * modules/javaexec (Files): Update.
119226         (configure.ac): Add AC_CONFIG_FILES invocation.
119227         (EXTRA_DIST): Remove javaexec.sh.in.
119229         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
119230         * modules/csharpcomp-script (Files): Update.
119231         (configure.ac): Add AC_CONFIG_FILES invocation.
119232         (EXTRA_DIST): Remove variable.
119234         * build-aux/csharpexec.sh.in: New file, moved from lib/.
119235         * modules/csharpexec (Files): Update.
119236         (configure.ac): Add AC_CONFIG_FILES invocation.
119237         (EXTRA_DIST): Remove csharpexec.sh.in.
119239 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
119241         Sync from coreutils.
119243         Add POSIX ACL support
119244         * lib/acl.h (copy_acl, set_acl): Add declarations.
119245         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
119246         systems other than Linux.
119247         (chmod_or_fchmod): New function: use fchmod when possible,
119248         and chmod otherwise.
119249         (file_has_acl): Add a POSIX ACL implementation, with a
119250         Linux-specific subcase.
119251         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
119252         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
119253         acls are unsupported.
119254         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
119255         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
119256         are unsupported.
119258 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
119260         Sync from coreutils.
119261         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
119263 2006-01-07  Bruno Haible  <bruno@clisp.org>
119265         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
119266         gl_EARLY.
119268 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119270         * lib/strftime.c (tzname): Don't declare if it is already #defined.
119271         Problem reported for Mingw by Mark Junker.
119273 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119275         * README: Gnulib normally doesn't generate a tarball.
119277 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
119279         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
119280         long int, not int, for nanosecond counts, so that people who are
119281         used to POSIX struct timespec won't be surprised.  Reported by Jim
119282         Meyering.
119284 2005-12-28  Bruno Haible  <bruno@clisp.org>
119286         * build-aux/config.rpath: Update from GNU gettext.
119288 2005-12-16  Jim Meyering  <jim@meyering.net>
119290         * modules/fprintftime: New module.
119291         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
119293 2005-12-16  Jim Meyering  <jim@meyering.net>
119295         * m4/fprintftime.m4: New file.
119297 2005-12-16  Jim Meyering  <jim@meyering.net>
119299         * lib/fprintftime.c, lib/fprintftime.h: New files.
119301 2005-12-15  Simon Josefsson  <jas@extundo.com>
119303         * modules/socklen (configure.ac): Fix M4 macro name, to align with
119304         new m4/socklen.m4.
119306 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
119308         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
119309         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
119311 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
119313         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
119314         * lib/argp-help.c (fill_in_uparams): Check if the constructed
119315         struct uparams is valid. Fall back to the default values if it is
119316         not.
119318 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119320         * modules/argp (Files): Add argp-pin.c
119321         (Depends-on): dirname
119322         (lib_SOURCES): Add argp-pin.c
119324 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119326         * m4/argp.m4:  Check if program_invocation_name and
119327         program_invocation_short_name are declared and define appropriate
119328         macros if they are not.
119330 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
119332         * lib/argp-help.c (__argp_base_name): New function
119333         (__argp_short_program_name): Rewrite using __argp_base_name
119334         * lib/argp-namefrob.h: Define program_invocation_name and
119335         program_invocation_short_name if requested
119336         (__argp_base_name): Add prototype
119337         * lib/argp-parse.c (argp_def): Use gettext wrappers
119338         (argp_default_parser): Use __argp_base_name
119339         * lib/argp-pin.c: New file. Defines program_invocation_name and
119340         program_invocation_short_name on systems that lack them.
119342 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119344         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
119345         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
119346         porting problem reported by Georg Schwarz in
119347         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
119349 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119351         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
119352         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
119353         porting problem reported by Georg Schwarz in
119354         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
119356 2005-12-05  Bruno Haible  <bruno@clisp.org>
119358         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
119359         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
119360         Reported by Mark Junker <mjscod@gmx.de>.
119362 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
119364         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
119365         Use implementation from Albert Chin, with some
119366         comments/corrections by Stepan Kasal and myself.
119368 2005-12-02  Bruno Haible  <bruno@clisp.org>
119370         * gnulib-tool (func_import): Accept GPLed build tool modules when
119371         --lgpl is given.
119372         * modules/csharpcomp-script: New file.
119373         * modules/csharpcomp: Depend on it.
119374         * modules/javacomp-script: New file.
119375         * modules/javacomp: Depend on it.
119376         Suggested by Simon Josefsson.
119378 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
119380         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
119381         statement, to work around an HP-UX 10.20 compiler bug reported by
119382         Peter O'Gorman.
119384 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
119386         * modules/savedir (Depends-on): Add openat.
119388 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
119390         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
119391         (uintmax_t) [defined uintmax_t]: Do not declare.
119392         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
119393         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
119394         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
119395         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
119396         sake of portability to weird hosts that C allows (though we don't
119397         know of any practical examples).
119399         * lib/savedir.h (fdsavedir): New decl.
119400         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
119401         contains most of the former guts of savedir.
119402         (savedir): Use savedirstream.
119403         Include "openat.h".
119405 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119407         * modules/obstack (Files): Add m4/ulonglong.m4.
119408         Problem reported by Davide Angelocola.
119410 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
119412         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
119413         coreutils no longer futzes with rounding modes.
119415 2005-11-14  Jim Meyering  <jim@meyering.net>
119417         * lib/mkstemp-safer.c: Include <config.h>, required for possible
119418         replacement of mkstemp.
119420 2005-11-10  Simon Josefsson  <jas@extundo.com>
119422         * lib/readline.c: Remove EOL.
119424 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119426         * modules/gethrxtime (Depends-on): Add gettime.
119428 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119430         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
119431         or gettimeofday; no longer needed.
119433 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119435         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
119436         time business.
119437         (gethrxtime) [! (HAVE_NANOUPTIME
119438         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
119439         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
119440         our own approximation.
119442 2005-11-08  Eric Blake  <ebb9@byu.net>
119444         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
119446 2005-11-08  Eric Blake  <ebb9@byu.net>
119448         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
119450 2005-11-04  Bruno Haible  <bruno@clisp.org>
119452         * gnulib-tool: Implement --update mode.
119454 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
119456         Fix porting problem reported by Theodoros V. Kalamatianos.
119457         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
119458         Don't assume that futimes failing means we must fail.
119460 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
119462         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
119463         variables to suggest the intended function of the PATH_MAX check.
119465 2005-10-30  Kean Johnston  <jkj@sco.com>
119467         Trivial changes to support SCO systems.
119468         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
119469         as PATH_MAX.
119470         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
119471         where __ptr is null when no I/O is pending.
119473 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
119475         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
119476         leave errno alone.  Problem reported by Dmitry V. Levin.
119478 2005-10-28  Simon Josefsson  <jas@extundo.com>
119480         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
119481         Test more.
119483         * tests/test-gc-md2.c, tests/test-md2.c: New files.
119485         * modules/md2, modules/md2-tests: New files.
119487 2005-10-28  Simon Josefsson  <jas@extundo.com>
119489         * m4/inet_ntop.m4: More tests.
119491         * m4/gc-md2.m4, md2.m4: New file.
119493 2005-10-28  Simon Josefsson  <jas@extundo.com>
119495         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
119496         "restrict" keywords, as per POSIX.  Protect the function
119497         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
119498         Don't use K&R prototypes.  Check the sprintf return values.
119499         Re-define EAFNOSUPPORT if not present.  Indent.
119501         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
119502         suggested by Bruno Haible <bruno@clisp.org>.
119504         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
119506         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
119508         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
119509         libgcrypt).
119511         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
119513         * lib/md2.h, lib/md2.c: New files.
119515 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
119517         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
119518         errno alone.  Problem reported by Frederic Jolliton.
119520 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
119522         * modules/verify (License): Change from GPL to LGPL.  This is a
119523         tiny module and there are apparently near-equivalents that are
119524         under the BSD license.
119526 2005-10-24  Simon Josefsson  <jas@extundo.com>
119528         * modules/sha1: Relicense to LGPL.
119530 2005-10-24  Simon Josefsson  <jas@extundo.com>
119532         * lib/md4.h: Shrink buffer size, now that we changed the type.
119534 2005-10-23  Simon Josefsson  <jas@extundo.com>
119536         * gnulib-tool (func_import): Fix --tests-base.
119538 2005-10-22  Simon Josefsson  <jas@extundo.com>
119540         * modules/arcfour (Depends-on): Need stdint.
119542 2005-10-22  Simon Josefsson  <jas@extundo.com>
119544         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
119545         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
119547 2005-10-22  Simon Josefsson  <jas@extundo.com>
119549         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
119550         suggested by Bruno Haible <bruno@clisp.org>.
119552 2005-10-22  Simon Josefsson  <jas@extundo.com>
119554         * lib/crc.h: Include stddef.h, for size_t.
119556 2005-10-22  Simon Josefsson  <jas@extundo.com>
119558         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
119559         arcfour_context struct (simplify test vector testing in GNU
119560         Shishi).
119562 2005-10-21  Simon Josefsson  <jas@extundo.com>
119564         * modules/des, modules/des-tests: New files.
119566         * modules/gc-des, modules/gc-des-tests: New files.
119568         * tests/test-des.c, tests/test-gc-des.c: New file.
119570 2005-10-21  Simon Josefsson  <jas@extundo.com>
119572         * modules/arctwo, modules/arctwo-tests: New files.
119574         * tests/test-arctwo.c: New file.
119576         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
119578         * tests/test-gc-arctwo.c: New file.
119580 2005-10-21  Simon Josefsson  <jas@extundo.com>
119582         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
119583         Bruno Haible <bruno@clisp.org>.
119585         * m4/gc-des.m4: New file.
119587 2005-10-21  Simon Josefsson  <jas@extundo.com>
119589         * m4/arctwo.m4: New file.
119591         * m4/gc-arctwo.m4: New file.
119593 2005-10-21  Simon Josefsson  <jas@extundo.com>
119595         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
119596         block.
119598 2005-10-21  Simon Josefsson  <jas@extundo.com>
119600         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
119601         <bruno@clisp.org>.
119603         * lib/hmac-sha1.c (hmac_sha1): Likewise.
119605         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
119606         Bruno Haible <bruno@clisp.org>.
119608         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
119609         <bruno@clisp.org>.
119611 2005-10-21  Simon Josefsson  <jas@extundo.com>
119613         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
119615 2005-10-21  Simon Josefsson  <jas@extundo.com>
119617         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
119619 2005-10-21  Simon Josefsson  <jas@extundo.com>
119621         * lib/des.h, lib/des.c: New files.
119623         * lib/gc-gnulib.c: Support DES.c
119625 2005-10-21  Simon Josefsson  <jas@extundo.com>
119627         * lib/arctwo.h, lib/arctwo.c: New files.
119629         * lib/gc-gnulib.c: Support ARCTWO.
119631 2005-10-21  Simon Josefsson  <jas@extundo.com>
119633         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
119634         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
119636 2005-10-21  Simon Josefsson  <jas@extundo.com>
119638         * gnulib-tool (func_import, func_create_testdir): Define automake
119639         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
119640         Makefile.am snippet),
119641         suggested by Bruno Haible <bruno@clisp.org>.
119643         * modules/gc (Makefile.am): Use it.
119645 2005-10-21  Bruno Haible  <bruno@clisp.org>
119647         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
119648         patch.
119650 2005-10-19  Simon Josefsson  <jas@extundo.com>
119652         * tests/test-gc-rijndael.c: New file.
119654         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
119656 2005-10-19  Simon Josefsson  <jas@extundo.com>
119658         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
119659         interface too.
119661 2005-10-19  Simon Josefsson  <jas@extundo.com>
119663         * tests/test-gc-arcfour.c: New file.
119665         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
119667 2005-10-19  Simon Josefsson  <jas@extundo.com>
119669         * modules/gc-md4, modules/gc-md4-tests: New file.
119671         * tests/test-gc-md4.c: New file.
119673 2005-10-19  Simon Josefsson  <jas@extundo.com>
119675         * m4/gc-md4.m4: New file.
119677 2005-10-19  Simon Josefsson  <jas@extundo.com>
119679         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
119680         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
119681         <kasal@ucw.cz>.
119683 2005-10-19  Simon Josefsson  <jas@extundo.com>
119685         * m4/gc-arcfour.m4: New file.
119687         * m4/gc-rijndael.m4: New file.
119689 2005-10-19  Simon Josefsson  <jas@extundo.com>
119691         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
119693 2005-10-19  Simon Josefsson  <jas@extundo.com>
119695         * lib/gc-gnulib.c: Support ARCFOUR.
119697 2005-10-19  Simon Josefsson  <jas@extundo.com>
119699         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
119700         support.
119702         * lib/gc.h: Add ECB enum type.
119704         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
119706 2005-10-18  Simon Josefsson  <jas@extundo.com>
119708         * tests/test-md5.c: New file.
119710         * modules/md5-tests: New file.
119712 2005-10-18  Simon Josefsson  <jas@extundo.com>
119714         * tests/test-md4.c: New file.
119716         * modules/md4, modules/md4-tests: New files.
119718 2005-10-18  Simon Josefsson  <jas@extundo.com>
119720         * m4/md4.m4: New file.
119722 2005-10-18  Simon Josefsson  <jas@extundo.com>
119724         * lib/md4.h, lib/md4.c: New files, based on md5.?.
119726 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
119728         * gnulib-tool (func_create_testdir): Omit the second check whether
119729         BUILT_SOURCES in nonempty.
119731 2005-10-17  Simon Josefsson  <jas@extundo.com>
119733         * tests/test-rijndael.c: New file.
119735 2005-10-17  Simon Josefsson  <jas@extundo.com>
119737         * modules/sha1: Depend on stdint instead of md5.
119739         * modules/md5: Depend on stdint, remove uint32_t.
119741 2005-10-17  Simon Josefsson  <jas@extundo.com>
119743         * modules/gc-sha1-tests: New file.
119745         * tests/test-gc-sha1.c: New file.
119747 2005-10-17  Simon Josefsson  <jas@extundo.com>
119749         * m4/md5.m4: Remove call to uint32_t.m4.
119751 2005-10-17  Simon Josefsson  <jas@extundo.com>
119753         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
119755         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
119756         md5.h.
119758         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
119760         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
119762 2005-10-17  Simon Josefsson  <jas@extundo.com>
119764         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
119766 2005-10-17  Simon Josefsson  <jas@extundo.com>
119768         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
119770 2005-10-17  Simon Josefsson  <jas@extundo.com>
119772         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
119774         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
119776 2005-10-17  Bruno Haible  <bruno@clisp.org>
119778         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
119779         that it can also be used in a test.
119781 2005-10-16  Bruno Haible  <bruno@clisp.org>
119783         * gnulib-tool (func_emit_tests_Makefile_am): Also define
119784         TESTS_ENVIRONMENT, so that individual tests can augment it.
119786         * gnulib-tool (func_create_testdir): Use an intermediate target for
119787         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
119788         macros, like $(ALLOCA_H), which cannot be passed through the command
119789         line.
119791 2005-10-15  Simon Josefsson  <jas@extundo.com>
119793         * modules/rijndael-tests: New file.
119795         * modules/rijndael: New file.
119797 2005-10-15  Simon Josefsson  <jas@extundo.com>
119799         * m4/rijndael.m4: New file.
119801 2005-10-15  Simon Josefsson  <jas@extundo.com>
119803         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
119805         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
119807 2005-10-14  Simon Josefsson  <jas@extundo.com>
119809         * tests/test-arcfour.c: New file.
119811         * modules/arcfour, modules/arcfour-tests: New files.
119813 2005-10-14  Simon Josefsson  <jas@extundo.com>
119815         * m4/arcfour.m4: New file.
119817 2005-10-14  Simon Josefsson  <jas@extundo.com>
119819         * lib/arcfour.h, lib/arcfour.c: New files.
119821 2005-10-14  Roland McGrath  <roland@redhat.com>
119823         Import from libc.  [BZ #1331]
119824         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
119825         macro argument.
119826         Reported by Matej Vela <vela@debian.org>.
119828 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119830         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
119831         include <wchar.h>; no longer needed.
119833 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119835         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
119837 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
119838         and  Ulrich Drepper  <drepper@redhat.com>
119840         Import from libc.
119841         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
119842         instead of inline stream orientation test and two separate
119843         function calls.  Pay no attention to USE_IN_LIBIO.
119845 2005-10-13  Simon Josefsson  <jas@extundo.com>
119847         * modules/gc-hmac-md5-tests: New file.
119849         * tests/test-gc-hmac-sha1.c: New file.
119851         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
119853         * modules/gc-hmac-md5-tests: New file.
119855         * tests/test-gc-md5.c: New file.
119857         * modules/gc-md5-tests: New file.
119859 2005-10-13  Simon Josefsson  <jas@extundo.com>
119861         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
119862         Move memory allocation outside of loop.
119864 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
119866         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
119867         intermediate directory is in a read-only file system.  Problem
119868         reported by Eric Blake.
119870 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
119872         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
119874 2005-10-12  Simon Josefsson  <jas@extundo.com>
119876         * tests/test-hmac-sha1.c: New file.
119878         * modules/hmac-sha1-tests: New file.
119880         * modules/hmac-sha1: New file.
119882 2005-10-12  Simon Josefsson  <jas@extundo.com>
119884         * modules/gc-sha1: New file.
119886 2005-10-12  Simon Josefsson  <jas@extundo.com>
119888         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
119890         * tests/test-gc-pbkdf2-sha1.c: New file.
119892 2005-10-12  Simon Josefsson  <jas@extundo.com>
119894         * modules/gc-md5, modules/gc-hmac-md5: New files.
119896         * modules/gc (Files): Remove md5, memxor and hmac files.
119898 2005-10-12  Simon Josefsson  <jas@extundo.com>
119900         * m4/gc-pbkdf2-sha1.m4: New file.
119902         * m4/gc-hmac-sha1.m4: New file.
119904         * m4/gc-sha1: New file.
119906         * m4/hmac-sha1.m4: New file.
119908 2005-10-12  Simon Josefsson  <jas@extundo.com>
119910         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
119912         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
119914 2005-10-12  Simon Josefsson  <jas@extundo.com>
119916         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
119917         suggested by Bruno Haible <bruno@clisp.org>.
119919 2005-10-12  Simon Josefsson  <jas@extundo.com>
119921         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
119923 2005-10-12  Simon Josefsson  <jas@extundo.com>
119925         * lib/gc-pbkdf2-sha1.c: New file.
119927         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
119929 2005-10-12  Simon Josefsson  <jas@extundo.com>
119931         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
119933         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
119935 2005-10-12  Simon Josefsson  <jas@extundo.com>
119937         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
119938         GC_USE_HMAC_MD5, respectively.
119940         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
119941         (gc_md5): Fix typo.
119943         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
119945         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
119947         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
119949 2005-10-12  Bruno Haible  <bruno@clisp.org>
119951         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
119952         Reported by Stepan Kasal <kasal@ucw.cz>.
119954 2005-10-11  Simon Josefsson  <jas@extundo.com>
119956         * tests/test-crc.c: New file.
119958         * modules/crc, modules/crc-tests: New files.
119960 2005-10-11  Simon Josefsson  <jas@extundo.com>
119962         * m4/crc.m4: New file.
119964 2005-10-11  Simon Josefsson  <jas@extundo.com>
119966         * lib/gc.h: Add gc_hash and gc_hash_buffer.
119968         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
119970         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
119972 2005-10-11  Simon Josefsson  <jas@extundo.com>
119974         * lib/crc.h, lib/crc.c: New files.
119976         * lib/gc.h (gc_hash_buffer): Add doc.
119978 2005-10-11  Bruno Haible  <bruno@clisp.org>
119980         * modules/c-strcasestr: New file.
119981         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
119983 2005-10-11  Bruno Haible  <bruno@clisp.org>
119985         * modules/c-strcase: New file.
119986         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
119988 2005-10-11  Bruno Haible  <bruno@clisp.org>
119990         * lib/strcasecmp.c: Include limits.h.
119991         (strcasecmp): Avoid integer overflow on exotic platforms.
119992         * lib/strncasecmp.c: Include limits.h.
119993         (strncasecmp): Avoid integer overflow on exotic platforms.
119994         Reported by Paul Eggert.
119996 2005-10-11  Bruno Haible  <bruno@clisp.org>
119998         * lib/c-strcasestr.h: New file, from GNU gettext.
119999         * lib/c-strcasestr.c: New file, from GNU gettext.
120001 2005-10-11  Bruno Haible  <bruno@clisp.org>
120003         * lib/c-strcase.h: New file, from GNU gettext.
120004         * lib/c-strcasecmp.c: New file, from GNU gettext.
120005         * lib/c-strncasecmp.c: New file, from GNU gettext.
120007 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
120009         * modules/mempcpy (License): GPL -> LGPL.
120010         * modules/strchrnul (License): Likewise.
120011         * modules/sysexits (License): Likewise.
120013 2005-10-08  Simon Josefsson  <jas@extundo.com>
120015         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
120017 2005-10-07  Simon Josefsson  <jas@extundo.com>
120019         * m4/memxor.m4: Remove gl_C_RESTRICT call.
120021 2005-10-06  Simon Josefsson  <jas@extundo.com>
120023         * tests/test-hmac-md5.c: New file.
120025         * modules/hmac-md5-tests: New file.
120027         * modules/hmac-md5: New file.
120029 2005-10-06  Simon Josefsson  <jas@extundo.com>
120031         * m4/hmac-md5.m4: New file.
120033         * m4/memxor.m4: Require gl_C_RESTRICT.
120035 2005-10-06  Simon Josefsson  <jas@extundo.com>
120037         * lib/memxor.c (memxor): Avoid casts and warnings.
120039 2005-10-06  Simon Josefsson  <jas@extundo.com>
120041         * lib/hmac-md5.c: New file.
120043         * lib/hmac.h: New file.
120045 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
120047         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
120048         promotes to int, not unsigned int, to catch the AIX 5.3
120049         compiler bug.
120051 2005-10-05  Simon Josefsson  <jas@extundo.com>
120053         * modules/memxor: New file.
120055         * modules/iconv (Files): Move config.rpath to havelib, it is used
120056         there.
120058         * modules/havelib (Files): Add config.rpath.
120060 2005-10-05  Simon Josefsson  <jas@extundo.com>
120062         * m4/memxor.m4: New file.
120064 2005-10-05  Simon Josefsson  <jas@extundo.com>
120066         * lib/memxor.c (memxor): Fix compiler error.
120068         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
120069         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
120071         * lib/memxor.h, lib/memxor.c: New files.
120073         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
120074         we assume all systems have it, suggested by Jim Meyering
120075         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
120076         any systems lack sys/socket.h; mingw32 is known to lack it, but we
120077         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
120078         same reasons.
120080 2005-10-05  Simon Josefsson  <jas@extundo.com>
120082         * config/srclist.txt: Add glibc bug 1423 for md5.h.
120084 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
120086         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
120087         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
120088         needed, since the source code now assumes these .h files.
120090 2005-10-05  Derek Price  <derek@ximbiot.com>
120092         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
120094 2005-10-05  Bruno Haible  <bruno@clisp.org>
120096         * modules/stdint (License): Change to LGPL.
120098 2005-10-04  Simon Josefsson  <jas@extundo.com>
120100         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
120101         D. Baushke" <mdb@gnu.org>.
120103 2005-10-04  Bruno Haible  <bruno@clisp.org>
120105         * lib/verify.h (verify_true): Provide alternative definition for C++.
120107 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
120109         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
120110         (SSIZE_MAX): New macro, if not already defined.
120111         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
120112         than 2 GiB.
120114 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
120116         Sync from coreutils.
120117         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
120118         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
120119         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
120120         ULLONG_MAX doesn't work with 2.7.2.1.
120122 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
120124         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
120125         From Ben Pfaff.
120127         * modules/exclude (Depends-on): Depend on verify.
120128         * modules/strtoimax (Depends-on): Likewise.
120129         * modules/utimecmp (Depends-on): Likewise.
120131 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
120133         * lib/exclude.c: Include verify.h.
120134         (verify): Remove.  All callers changed to use verify.h's version.
120135         * lib/strtoimax.c: Likewise.
120136         * lib/utimecmp.c: Likewis.e
120138         Sync from coreutils.
120139         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
120140         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
120141         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
120142         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
120143         bother returning ENOSYS if settimeofday or stime fails; just let
120144         them return whatever errno they want to return.
120145         * lib/utimens.c: Include unistd.h, for dup2.
120146         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
120147         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
120149 2005-10-02  Jim Meyering  <jim@meyering.net>
120151         Sync from coreutils.
120152         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
120153         from glibc-2.2.5 that fails for read-only files.
120155 2005-10-02  Jim Meyering  <jim@meyering.net>
120157         Sync from coreutils.
120158         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
120159         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
120160         `#if HAVE_CONFIG_H'.
120161         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
120162         Remove AT_FDCWD test.
120163         Do not consume the fd unless successful.
120164         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
120165         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
120166         block, so that we don't even try to compile it if settimeofday is
120167         available.  This works around a compilation failure on OSF1 V5.1,
120168         due to stime requiring a `long int*' while tv_sec is `int'.
120170 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
120172         Sync from coreutils.
120173         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
120174         against `yes', rather than just testing for nonempty.
120176 2005-10-01  Simon Josefsson  <jas@extundo.com>
120178         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
120179         and Darwin.
120181         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
120182         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
120183         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
120184         freeaddrinfo and gai_strerror are declared by the POSIX headers.
120185         Check if struct addrinfo is declared.
120187 2005-10-01  Simon Josefsson  <jas@extundo.com>
120189         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
120190         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
120191         AI_* and EAI_* definitions.  Protect function declarations.
120193 2005-10-01  Jim Meyering  <jim@meyering.net>
120195         Sync from coreutils.
120197         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
120198         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
120199         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
120200         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
120201         in the inet and nsl libraries.  Required on Solaris 5.7.
120203 2005-10-01  Jim Meyering  <jim@meyering.net>
120205         Sync from coreutils.
120206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
120207         in the inet and nsl libraries.  Required on Solaris 5.7.
120209 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
120211         * lib/getdelim.c (getdelim): Remove unused variables.
120213 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
120215         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
120216         so that the code works even with ancient cpp.  Portability problem
120217         with GCC 2.7.2.1 reported by Thomas M.Ott.
120219 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
120221         * modules/regex (Depends-on): Add strcase.
120223         * modules/gethostname (Licence): Change from GPL to LGPL, since
120224         gethostname.c is a trivial implementation of a standard library
120225         function.
120226         * modules/poll (License): Change from GPL to LGPL, since it's
120227         derived from LGPL code.
120229 2005-09-27  Jim Meyering  <jim@meyering.net>
120231         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
120232         HAVE_CONFIG_H.
120234         * lib/intprops.h (signed_type_or_expr__): Define.
120235         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
120236         for unsigned types.
120238 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
120240         * lib/verify.h (verify_expr): Remove, replacing with:
120241         (verify_true): New macro that returns true instead of void.
120242         (verify_type__): Remove.
120243         (verify): Use verify_true rather than verify_type__.
120245 2005-09-26  Bruno Haible  <bruno@clisp.org>
120247         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
120248         is necessary.
120249         (lib_SOURCES): Remove mbchar.c.
120250         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
120251         (Files): Add m4/mbrtowc.m4.
120252         * modules/mbiter: Likewise.
120253         * modules/mbuiter: Likewise.
120255 2005-09-26  Bruno Haible  <bruno@clisp.org>
120257         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
120258         compile mbchar.c if they are not both present.
120259         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
120260         * m4/mbiter.m4 (gl_MBITER): Likewise.
120261         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
120262         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
120263         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
120265 2005-09-25  Jim Meyering  <jim@meyering.net>
120267         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
120268         also uses socklen_t.
120270 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
120272         * lib/utimens.c (ENOSYS): Define if not already defined.
120273         (futimens): Support having a null PATH if the file descriptor
120274         is nonnegative.
120276         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
120277         Remove.
120278         (__attribute): Define to empty unless GCC 3.1 or later.
120279         This works around a core dump on OpenBSD 3.4, which has GCC
120280         2.95.3, which dumps core when given __attribute__(()).  It also
120281         simplifies other tests, since we really don't want to bother with
120282         worrying about which ancient version of GCC supported what.
120283         Original problem reported by Yoann Vandoorselaere, with part of
120284         the fix suggested by Derek Price.
120286 2005-09-24  Jim Meyering  <jim@meyering.net>
120288         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
120289         so we can once again use a positive bitfield width of 1 -- now we
120290         don't have to explain why we were using a bitfield width of 2.
120292 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
120294         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
120295         and similarly for the other external symbols.  Problem reported
120296         by James Gallager.
120298         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
120299         bug reported by Jim Meyering.
120301         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
120302         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
120303         not needed, since socklen is a prerequisite module.
120305 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
120307         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
120308         Problem reported by Eric Blake.
120309         (getaddrinfo): Initialize se so that it's not garbage.
120310         Redo internal storage allocation so that it doesn't make unportable
120311         assumptions about alignment.
120312         Fix a memory leak.
120314         * lib/utimens.c (futimens): Use futimesat if available.
120315         Prefer it to futimes since it doesn't have the futimes bug.
120317         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
120318         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
120319         Instead, declare a function that returns a pointer to an array,
120320         and use verify_type__ to declare the size of the array.
120321         Problem and germ of a solution reported by Bruno Haible.
120322         (verify_type__): Use 2, not 1, for bitfield size, to avoid
120323         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
120325 2005-09-23  Jim Meyering  <jim@meyering.net>
120327         Sync from coreutils.
120328         Correct build failure (socklen_t not defined) on at least
120329         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
120330         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
120332 2005-09-23  Jim Meyering  <jim@meyering.net>
120334         * modules/getaddrinfo (Depends-on): Add socklen.
120336 2005-09-23  Bruno Haible  <bruno@clisp.org>
120338         * tests/test-verify.c: New file.
120340 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120342         Sync from coreutils.
120344         * modules/argmatch (Depends-on): Add verify.
120345         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
120346         unistd-safer.
120347         * modules/save-cwd (Depends-on): Likewise.
120349         * modules/openat (Files): Add lib/openat-die.c.
120350         (Depends-on): Remove error, exitfail.
120351         Add dirname.
120353         * modules/verify: New file.
120354         * MODULES.html.sh (Diagnostics <assert.h>): New section,
120355         with "verify" module.
120357 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120359         Sync from coreutils.
120361         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
120362         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
120363         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
120364         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
120365         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
120366         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
120367         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
120368         Don't bother checking for string.h, stdlib.h, unistd.h.
120369         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
120370         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
120371         module's job.
120372         * m4/jm-macros.m4 (gl_MACROS): Likewise.
120373         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
120375         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
120376         (gl_GETDATE): Use it.
120378         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
120380 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120382         Sync from coreutils.
120384         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
120385         stat-time.h.
120386         * lib/argmatch.h: Include verify.h
120387         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
120388         (ARGMATCH_ASSERT): Remove; unused.
120389         * lib/canonicalize.c: Assume STDC_HEADERS.
120390         * lib/exclude.c: Include "strcase.h".
120391         * lib/regex_internal.h [!defined _LIBC]: Likewise.
120392         * lib/getusershell.c: Include stdio--.h rather than stdio.h
120393         and stdio-safer.h.
120394         (getusershell): Call fopen, not fopen_safer.
120395         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
120396         Do not include unistd-safer.h.
120397         (save_cwd): Don't call fd_safer; no longer needed
120398         now that we include fcntl--.h.
120400         * lib/getdate.y (relative_time): New type.
120401         (RELATIVE_TIME_0): New constant.
120402         (parser_control): Use relative_time instead of doing it ourselves.
120403         (%union): Add new relative_time rel member.
120404         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
120405         Now typeless.
120406         (relunit, relunit_snumber): Now of type rel.
120407         (zone, rel, relunit, get_date): Adjust to above changes.
120409         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
120410         Do not include unistd-safer.h.
120411         (getloadavg): Don't call fd_safer; no longer needed
120412         now that we include fcntl--.h.
120414         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
120415         (make_dir_parents): Treat ENOSYS like EEXIST.
120417         Improve quality of diagnostics on restore_cwd failure.
120418         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
120419         (make_dir_parents): Last arg is now int * (for errno), not bool *.
120420         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
120421         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
120422         each time through the loop.  Do not diagnose restore_cwd failure;
120423         that is the caller's job (and perhaps the caller does not care).
120425         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
120426         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
120427         If the file already exists but is not a directory, don't bother
120428         to try to make its parents.
120429         Close potential file descriptor leak if we can't chdir("/") (!).
120430         Don't always return true if chdir($PWD) fails; return true only
120431         if the requested action was done successfully (except for the
120432         chdir($PWD)).
120433         Don't log final directory unless we actually made it.
120434         Refactor to avoid duplicate code to fix up permissions.
120435         Don't attempt to fix up parent permissions if chdir($PWD) fails.
120437         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
120438         to make it a bit faster and (I hope) clearer.
120439         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
120440         Fix bug in formats like %2N.
120442         * lib/verify.h: New file.
120444 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
120446         Sync from coreutils.
120447         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
120449 2005-09-22  Jim Meyering  <jim@meyering.net>
120451         Sync from coreutils.
120453         * m4/lstat.m4 (gl_FUNC_LSTAT):
120454         Use AC_LIBSOURCES to require lstat.c and lstat.h.
120455         Remove obsolete comment.
120456         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
120457         * m4/xstrtod.m4: Likewise.
120459         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
120461 2005-09-22  Jim Meyering  <jim@meyering.net>
120463         Sync from coreutils.
120465         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
120467         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
120468         the .tm_year member, since otherwise gcc-4.0 would now warn about
120469         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
120471         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
120472         order to avoid an unsuppressible warning from gcc on 64-bit systems.
120474         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
120475         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
120476         when run in a time zone for which daylight savings time is in effect
120477         for the starting date.
120479         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
120480         stop us from restricting permissions of just-created absolute-named
120481         directories.
120482         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
120483         to restore initial working directory.
120484         * lib/mkdir-p.c (make_dir_parents): New parameter:
120485         different_working_dir, to tell caller if/when we change the working
120486         directory and are unable to return to the initial one.
120487         * lib/mkdir-p.h (make_dir_parents): Update prototype.
120488         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
120489         `return false'.  This fixes a bug introduced on 2004-07-30.
120491         * lib/openat.c (fdopendir): Be sure to close the supplied
120492         file descriptor before returning.  This makes our replacement
120493         implementation a little closer to Solaris's, where fdopendir
120494         ties the file descriptor to the returned DIR* pointer.
120495         * lib/openat.c (unlinkat): New function.
120496         * lib/openat.h (unlinkat): Add prototype.
120497         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
120498         (openat_restore_fail): Rename from openat_restore_die.
120499         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
120501         Provide an alternative to exiting immediately upon save_cwd or
120502         restore_cwd failure.  Now, an application can arrange e.g.,
120503         to perform a longjump in that case.
120504         * lib/openat.c: Include dirname.h.
120505         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
120506         (rpl_openat, fdopendir, fstatat): Call openat_save_die
120507         and openat_restore_die rather than calling error directly.
120508         Don't include "error.h" or "exitfail.h"; they're no longer needed.
120510         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
120511         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
120512         define.
120514         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
120515         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
120516                             int utc, int nanoseconds);
120517         Background:
120518         date should not have to allocate a megabyte of virtual memory to
120519         handle a format argument like +%1048575T.  When implemented with
120520         strftime, it must allocate such a buffer, use strftime to fill it
120521         in, print it, then free it.
120522         With fprintftime, it simply prints everything and exits.
120523         With no need for memory allocation, that's one fewer way to fail.
120524         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
120525         optional field width, not before, so we accept %9:z, not %:9z.
120526         (my_strftime): Be sure to use L_('x') for literals.
120528         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
120529         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
120530         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
120531         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
120532         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
120533         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
120534         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
120535         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
120536         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
120537         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
120538         * lib/xgethostname.c, lib/xreadlink.c:
120539         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
120541         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
120542         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
120543         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
120544         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
120545         and don't include <sys/file.h>).
120547 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
120549         Sync from coreutils.
120551         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
120552         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
120553         [!LDAV_DONE]: Avoid unused variable warning.
120555 2005-09-21  Bruno Haible  <bruno@clisp.org>
120557         * lib/unicodeio.h (unicode_to_mb): New declaration.
120559 2005-09-20  Derek Price  <derek@ximbiot.com>
120561         * lib/getaddrinfo.c: Don't include <netdb.h> included from
120562         getaddrinfo.h.
120564 2005-09-20  Bruno Haible  <bruno@clisp.org>
120566         * gnulib-tool: Remove trailing slashes from the values specified for
120567         --source-base, --m4-base, --tests-base, --aux-dir.
120568         Suggested by Simon Josefsson <jas@extundo.com>.
120570 2005-09-20  Bruno Haible  <bruno@clisp.org>
120572         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
120573         func_modules_to_filelist, func_import, func_create_testdir): Make all
120574         sorting results locale-independent, so that gnulib-cache.m4 doesn't
120575         change when gnulib-tool is invoked in a different locale.
120577 2005-09-19  Simon Josefsson  <jas@extundo.com>
120579         * m4/socklen.m4: Fix typo.
120581 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
120583         Use a consistent style for including <config.h>.
120584         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
120585         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
120586         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
120587         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
120588         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
120589         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
120590         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
120591         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
120592         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
120593         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
120594         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
120595         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
120596         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
120597         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
120598         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
120599         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
120600         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
120601         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
120602         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
120603         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
120604         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
120605         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
120606         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
120607         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
120608         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
120609         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
120610         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
120611         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
120612         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
120613         lib/xstrtoumax.c, lib/yesno.c:
120614         Standardize inclusion of config.h.
120615         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
120616         lib/inttostr.h:  Removed inclusion of config.h from header files.
120617         * lib/inttostr.c:  Adjusted in-tree users.
120618         * lib/timespec.h: Remove superfluous warning to include config.h.
120619         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
120620         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
120621         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
120622         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
120623         config.h with HAVE_CONFIG_H.
120625 2005-09-19  Jim Meyering  <jim@meyering.net>
120627         * modules/pathmax (License): Change to LGPL.
120629 2005-09-19  Derek Price  <derek@ximbiot.com>
120631         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
120633 2005-09-19  Bruno Haible  <bruno@clisp.org>
120635         * gnulib-tool (import): Provide default for --tests-base.
120637 2005-09-19  Bruno Haible  <bruno@clisp.org>
120639         * doc/quote.texi: New file, extracted from gnulib.texi.
120640         * doc/ctime.texi: New file, extracted from gnulib.texi.
120641         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
120642         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
120643         * doc/gnulib.texi: Include them.
120645 2005-09-18  Bruno Haible  <bruno@clisp.org>
120647         Portability fix.
120648         * gnulib-tool (func_readlink): New function.
120649         (func_ln_if_changed): Use it.
120651 2005-09-18  Bruno Haible  <bruno@clisp.org>
120653         * gnulib-tool: Support --with-tests also with --import.
120654         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
120655         (func_import): Use variables $testsbase and $inctests. Emit a
120656         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
120657         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
120658         SUBDIRS += $testsdir.
120659         (func_create_testdir): Update.
120661 2005-09-18  Bruno Haible  <bruno@clisp.org>
120663         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
120664         instead of $dry_run.
120665         (func_cp_if_changed, func_mv_if_changed): Remove functions.
120666         (func_ln_if_changed): Don't handle dry-run here.
120667         (func_import): In dry-run mode, detect more precisely which actions
120668         would be performed, and don't use "...ing" verbs.
120670 2005-09-18  Bruno Haible  <bruno@clisp.org>
120672         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
120673         (func_import): Use join on two temporary files instead of three nested
120674         loops, in order to determine which files are new or old.
120676 2005-09-18  Bruno Haible  <bruno@clisp.org>
120678         * gnulib-tool (func_import): Comment out code that spits out the
120679         new files with --dry-run.
120681 2005-09-18  Bruno Haible  <bruno@clisp.org>
120683         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
120685 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120687         * lib/stat-time.h: New file.
120688         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
120689         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
120690         in a different way.
120691         (timespec_cmp): New function.
120692         * lib/utimecmp.c: Include stat-time.h.
120693         (SYSCALL_RESOLUTION): Depend on whether various struct stat
120694         members exist, not on the obsolescent ST_MTIM_NSEC.
120695         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
120697 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120699         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
120701 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120703         * MODULES.html.sh (File system functions): Add stat-time.
120704         * modules/stat-time: New file.
120705         * modules/timespec (Files): Remove m4/st_mtim.m4; this
120706         is now done in a different way, by the stat-time module.
120707         * modules/utimecmp (Depends-on): Add stat-time.
120709 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
120711         * m4/st_mtim.m4: Remove.  Superseded by...
120712         * m4/stat-time.m4: New file.
120713         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
120714         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
120716 2005-09-15  Derek Price  <derek@ximbiot.com>
120718         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
120720 2005-09-15  Derek Price  <derek@ximbiot.com>
120722         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
120723         * lib/regex_internal.c: Ditto, using this...
120724         (__GNUC_PREREQ): ...new macro.
120725         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
120726         using...
120727         (__GNUC_PREREQ): ...this new macro.
120729         * lib/strstr.h: Include string.h. Define strstr as a macro here.
120731 2005-09-15  Derek Price  <derek@ximbiot.com>
120732             Paul Eggert  <eggert@cs.ucla.edu>
120734         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
120735         changes, consolidating in...
120736         * lib/regex_internal.h: ...this file.
120738 2005-09-13  Jim Meyering  <jim@meyering.net>
120740         * lib/canon-host.c: Filter through gnu indent and reword comments
120741         slightly.
120742         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
120744 2005-09-13  Derek Price  <derek@ximbiot.com>
120746         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
120747         failure.
120748         Reported by Jim Meyering  <jim@meyering.net>.
120750 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120752         * lib/base64.c: Typo.
120753         (base64_encode): Put b64str in initialized data section.
120755 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
120757         Merge glibc and coreutils changes into gnulib, plus a few
120758         extra fixes.
120759         * lib/md5.c: Use #error rather than a string.
120760         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
120761         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
120762         (__attribute__): Define to empty for non recent-GCC.
120763         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
120764         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
120765         Renamed from their non-__ counterparts, with new macros replacing
120766         them if not _LIBC.  Add __THROW attribute.
120767         (rol): Remove.
120768         (struct md5_ctx): Align buffer if using GCC.
120769         * lib/sha1.h (struct sha1_ctx): Likewise.
120770         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
120771         The old name was backwards.
120772         (NOTSWAP): Remove; not used.
120773         (rol): New macro, moved here from md5.h.
120774         (sha1_process_block): Remove a FIXME that doesn't make sense.
120776 2005-09-12  Derek Price  <derek@ximbiot.com>
120778         Return usable errors from canon-host.
120779         * lib/canon-host.h: New file.
120780         * lib/canon-host.c (canon_host): Wrap...
120781         (canon_host_r): ...this new function, which now relies exclusively on
120782         getaddrinfo.
120783         (ch_strerror): New function.
120784         (last_cherror): New global.
120785         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
120786         interface.
120787         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
120788         void *.
120789         (freeaddrinfo): Free ai->ai_canonname when set.
120791 2005-09-12  Derek Price  <derek@ximbiot.com>
120793         Make canon-host require getaddrinfo.
120794         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
120795         AC_LIBSOURCE canon-host.h.  Call...
120796         (gl_PREREQ_CANON_HOST): ...this new function, which requires
120797         gl_GETADDRINFO.
120798         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
120800 2005-09-12  Derek Price  <derek@ximbiot.com>
120802         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
120803         LGPL.
120804         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
120806 2005-09-12  Derek Price  <derek@ximbiot.com>
120808         * lib/gai_strerror.c: Include config.h when available.  Include
120809         getaddrinfo.h before other headers to test interface.
120810         Reported by Larry Jones <lawrence.jones@ugs.com>.
120812 2005-09-12  Derek Price  <derek@ximbiot.com>
120813             Paul Eggert  <eggert@cs.ucla.edu>
120815         * modules/glob (Files): Add glob-libc.h.
120817 2005-09-12  Derek Price  <derek@ximbiot.com>
120818             Paul Eggert  <eggert@cs.ucla.edu>
120820         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
120821         glob_.h, glob-libc.h.
120822         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
120824 2005-09-12  Derek Price  <derek@ximbiot.com>
120825             Paul Eggert  <eggert@cs.ucla.edu>
120827         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
120828         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
120829         protecting things that should be done only in gnulib contexts.
120830         * lib/glob_.h: New file, containing only the glob things needed for
120831         gnulib.
120832         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
120833         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
120834         (glob, globfree, glob_pattern_p): Now defined simply in terms of
120835         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
120836         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
120837         and to respect the namespace rules better.
120839 2005-09-08  Simon Josefsson  <jas@extundo.com>
120841         * modules/socklen: New file.
120843 2005-09-08  Simon Josefsson  <jas@extundo.com>
120845         * m4/socklen.m4: New file.
120847 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120849         * modules/utimens (Files): Add m4/utimbuf.m4, since
120850         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
120851         Reported by Sergey Poznyakoff.
120853 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120855         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
120856         definitions, since that's the preferred style in glibc.
120857         Fix a minor spacing issue, and update copyright notice to match
120858         glibc's.
120860 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120862         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
120864 2005-09-06  Simon Josefsson  <jas@extundo.com>
120866         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
120867         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
120869 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120871         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
120872         warning.
120874 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120876         * config/srclist.txt: Add glibc bug 1302.
120878 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
120880         Change bitset word type from unsigned int to unsigned long int,
120881         as this has better performance on typical 64-bit hosts.
120882         Port bitset code to hosts with unusual word sizes.
120883         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
120884         (build_collating_symbol):
120885         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
120886         argument is a bitset.  This is merely a style issue, but it makes
120887         it clearer that an entire array is expected.
120888         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
120889         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
120890         Port to the case where bitset_word is not the same as unsigned int.
120891         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120892         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
120893         Likewise.
120894         * lib/regexec.c (check_dst_limits_calc_pos_1,
120895         check_subexp_matching_top):
120896         (build_trtable, group_nodes_into_DFAstates):
120897         Likewise.
120898         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
120899         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
120900         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
120901         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
120902         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
120903         * lib/regcomp.c (optimize_subexps, lower_subexp):
120904         Work even if bitset_word has holes in its bitwise representation.
120905         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
120906         * lib/regexec.c (check_dst_limits_calc_pos_1,
120907         check_subexp_matching_top):
120908         Likewise.
120909         * lib/regex_internal.c (re_string_reconstruct):
120910         Don't assume UCHAR_MAX == 255.
120911         * lib/regex_internal.h (bitset_set_all): Likewise.
120912         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
120913         All uses changed.
120914         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
120915         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
120916         All uses changed.
120917         (BITSET_WORD_MAX): New macro.
120918         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
120919         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
120920         (bitset_empty, bitset_copy):
120921         Prefer sizeof (bitset) to multiplying it out ourselves.
120922         (bitset_not_merge): Remove; unused.
120923         (bitset_contain): Return bool, not unsigned int with one bit on.
120924         All callers changed.
120925         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
120926         alignment than re_node_set; do this by defining a new internal
120927         type struct dests_alloc and using it to allocate memory.
120929 2005-09-05  Bruno Haible  <bruno@clisp.org>
120931         * gnulib-tool (func_import): Fix comparison in handling of symbolic
120932         links.
120934 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
120936         * modules/size_max (Makefile.am): Add size_max.h
120938 2005-09-04  Derek Price  <derek@ximbiot.com>
120940         * gnulib-tool (func_import): Fix reversed $symbolic logic.
120942 2005-09-03  Simon Josefsson  <jas@extundo.com>
120944         * gnulib-tool: Fix typo.
120946 2005-09-03  Simon Josefsson  <jas@extundo.com>
120948         * config/srclist.txt: Add glibc bug 1293.
120950 2005-09-03  Derek Price  <derek@ximbiot.com>
120952         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
120953         From Larry Jones <lawrence.jones@ugs.com>.
120955 2005-09-02  Simon Josefsson  <jas@extundo.com>
120957         * modules/socklen: New file.
120959 2005-09-02  Simon Josefsson  <jas@extundo.com>
120961         * modules/havelib: New module.
120963         * modules/gettext, modules/iconv, modules/lock, modules/readline:
120964         Use havelib.
120966 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120968         Check for arithmetic overflow when calculating sizes, to prevent
120969         some buffer-overflow issues.  These patches are conservative, in the
120970         sense that when I couldn't determine whether an overflow was possible,
120971         I inserted a run-time check.
120972         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
120973         macros.
120974         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
120975         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
120976         (re_xnrealloc, re_x2nrealloc): New inline functions.
120977         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
120978         parse_bracket_exp):
120979         (build_equiv_class, build_charclass): Check for arithmetic overflow
120980         in size expression calculations.
120981         * lib/regex_internal.c (re_string_realloc_buffers):
120982         (build_wcs_upper_buffer, re_node_set_add_intersect):
120983         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
120984         (re_dfa_add_node, register_state): Likewise.
120985         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
120986         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
120987         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
120988         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
120990 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120992         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120993         m4/ulonglong.m4.  Problem reported by Martin Lambers.
120995 2005-09-02  Bruno Haible  <bruno@clisp.org>
120997         Support for lib vs. lib64 distinction on biarch platforms.
120998         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
120999         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
121000         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
121002 2005-09-02  Bruno Haible  <bruno@clisp.org>
121004         * gnulib-tool (import): In the other first-use case, provide defaults
121005         as well.
121007 2005-09-02  Bruno Haible  <bruno@clisp.org>
121009         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
121010         patches not yet found in the latest gettext release.
121012 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
121014         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
121015         to avoid a collision with bits/local_lim.h in glibc.
121016         All uses changed.  Problem reported by Dmitry V. Levin in
121017         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
121019         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
121020         bugs in int versus size_t comparisons.
121021         (re_string_context_at): Fix bug where the code assumed that
121022         Idx is signed.
121024         Use bool where appropriate.
121025         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
121026         All callers changed.
121027         (calc_eclosure_iter): Likewise, for ROOT arg.
121028         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
121029         (build_charclass_op): Likewise, for NON_MATCH arg.
121030         * lib/regex_internal.c (re_string_allocate, re_string_construct):
121031         (re_string_construct_common): Likewise, for ICASE arg.
121032         * lib/regexec.c (re_search_2_stub, re_search_stub):
121033         Likewise, for RET_LEN arg.
121034         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
121035         (set_regs): Likewise, for FL_BACKTRACK arg.
121036         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
121037         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
121038         (calc_eclosure_iter, parse_bracket_exp):
121039         Use bool for internal variables that are booleans.
121040         * lib/regexec.c (re_search_internal, check_matching,
121041         proceed_next_node):
121042         (set_regs, build_sifted_states, sift_states_bkref):
121043         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
121044         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
121045         (find_collation_sequence_value):
121046         Likewise.
121047         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
121048         (re_node_set_compare):
121049         Return bool, not int. All callers changed.
121050         * lib/regexec.c (check_halt_node_context, check_dst_limits):
121051         (build_trtable, check_node_accept): Likewise.
121052         * lib/regex_internal.h: Include stdbool.h.
121054         Fix bugs uncovered when converting to bool.
121055         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
121056         failure instead of charging ahead blindly.
121057         * lib/regex_internal.c (register_state): Likewise.
121058         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
121059         for freeing internal storage.
121060         (group_nodes_into_DFA_states): Use unsigned int, not int, for
121061         bitset pieces used as boolean, to avoid undefined behavior
121062         on hosts that do int overflow checking.
121064 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
121066         * config/srclist.txt: Add glibc bugs 1285-1287.
121068 2005-09-01  Jim Meyering  <jim@meyering.net>
121070         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
121071         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
121072         Require gl_STAT_MACROS, too.
121074 2005-09-01  Bruno Haible  <bruno@clisp.org>
121076         * gnulib-tool (import): In the first-use case, provide defaults.
121078 2005-09-01  Bruno Haible  <bruno@clisp.org>
121080         * gnulib-tool (func_import): Remove the .tmp files.
121082 2005-09-01  Bruno Haible  <bruno@clisp.org>
121084         * gnulib-tool (func_import): Fix handling of symbolic links.
121086 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
121088         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
121089         old glibc regex code mishandles strings longer than 2**31 bytes.
121090         This patch fixes this when the regex code is used in gnulib
121091         (i.e., outside glibc).
121093         This patch should not affect the use of the regex code inside
121094         glibc.  No doubt this problem also needs to be handled for glibc
121095         as well, but the result will be an incompatible change to the
121096         glibc ABI, and the old ABI will have to be supported too.  That
121097         can be the subject for another patch.
121099         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
121100         governing whether the rest of this patch is active.  By default,
121101         the macro is disabled and the patch has no effect.
121102         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
121103         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
121104         (struct re_pattern_buffer, re_search, re_search_2, re_match):
121105         (re_match_2, re_set_registers): Use the new types.
121106         * lib/regex_internal.h (Idx, re_hashval_t): New types.
121107         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
121108         New macros.
121109         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
121110         (re_string_context_at, bin_tree_t, re_dfastate_t):
121111         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
121112         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
121113         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
121114         (re_string_char_size_at, re_string_wchar_at):
121115         (re_string_elem_size_at):
121116         Use the new types and macros to port to 64-bit hosts.
121117         Use unsigned types for internal values, so that the code
121118         mostly works even for arrays larger than SSIZE_MAX.
121119         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
121120         (search_duplicated_node, calc_eclosure_iter, fetch_number):
121121         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
121122         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
121123         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
121124         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
121125         (calc_inveclosure, parse_dup_op, build_range_exp):
121126         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
121127         (fetch_number, create_token_tree, mark_opt_subexp):
121128         Likewise.
121129         * lib/regex_internal.c (re_string_construct_common,
121130         create_ci_newstate):
121131         (create_cd_newstate, re_string_allocate, re_string_construct):
121132         (re_string_realloc_buffers, build_wcs_upper_buffer):
121133         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
121134         (re_string_reconstruct, re_string_peek_byte_case):
121135         (re_string_fetch_byte_case, re_string_context_at):
121136         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
121137         (re_node_set_init_copy, re_node_set_add_intersect):
121138         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121139         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121140         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
121141         (re_acquire_state, re_acquire_state_context, register_state):
121142         Likewise.
121143         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
121144         search_cur_bkref_entry):
121145         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
121146         (re_search_internal, re_search_2_stub, re_search_stub)
121147         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
121148         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
121149         (update_cur_sifted_state, check_dst_limits):
121150         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
121151         (check_subexp_limits, sift_states_bkref, merge_state_array):
121152         (check_subexp_matching_top, get_subexp, get_subexp_sub):
121153         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
121154         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
121155         (expand_bkref_cache, check_node_accept_bytes):
121156         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
121157         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
121158         (acquire_init_state_context, check_halt_node_context):
121159         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
121160         (sift_states_backward, clean_state_log_if_needed):
121161         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
121162         (find_recover_state, transit_state_sb, transit_state_mb):
121163         (transit_state_bkref, build_trtable, match_ctx_clean):
121164         Likewise.
121165         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
121166         to work around an assumption that REG_MISSING is negative.
121168         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
121169         (seek_collating_symbol_entry) [defined _LIBC]:
121170         (lookup_collation_sequence_value) [defined _LIBC]:
121171         (build_range_exp, build_collating_symbol) [defined _LIBC]:
121172         Use prototypes rather than old-style function definitions.
121173         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
121174         (transit_state_sb) [0]:
121175         (find_collation_sequence_value) [defined _LIBC]: Likewise.
121177         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
121178         rm_eo.
121180         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
121181         (optimize_subexps, lower_subexp):
121182         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
121183         since the signed shift might overflow.  Use 1u<<31 instead.
121184         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
121185         Likewise.
121186         * lib/regexec.c (check_dst_limits_calc_pos_1,
121187         check_subexp_matching_top): Likewise.
121189         * lib/regcomp.c (optimize_subexps, lower_subexp):
121190         Use CHAR_BIT rather than 8, for clarity.
121191         * lib/regexec.c (check_dst_limits_calc_pos_1):
121192         (check_subexp_matching_top): Likewise.
121193         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
121194         have to worry about portability issues when shifting it left.
121195         Remove no-longer-needed test for table_size > 0.
121196         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
121197         in a word, as the resulting behavior is undefined.
121198         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
121199         in one case, a <= should have been an <, and in another case the
121200         whole test was missing.
121201         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
121202         the standard name CHAR_BIT.
121203         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
121204         this is not true on one's complement and signed-magnitude hosts.
121206         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
121207         next_last_offset.
121208         (struct re_dfa_t): Remove unused member states_alloc.
121209         * lib/regcomp.c (init_dfa): Don't initialize unused members.
121211 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
121213         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
121214         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
121215         and large-file glibc and in 32-bit large-file Solaris.
121217 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
121219         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
121220         lengths fit in regoff_t; this isn't true if regoff_t is the same
121221         width as size_t.
121222         * lib/regex.c (re_search_internal): 5th arg is LAST_START
121223         (= START + RANGE) instead of RANGE.  This avoids overflow
121224         problems when regoff_t is the same width as size_t.
121225         All callers changed.
121226         (re_search_2_stub): Check for overflow when adding the
121227         sizes of the two strings.
121228         (re_search_stub): Check for overflow when adding START
121229         to RANGE; if it occurs, substitute the extreme value.
121231 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
121233         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
121235 2005-08-31  Jim Meyering  <jim@meyering.net>
121237         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
121238         a pointer-to-const.
121239         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
121240         (register_state): Likewise.
121241         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
121242         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
121243         (group_nodes_into_DFAstates): Likewise.
121245 2005-08-31  Jim Meyering  <jim@meyering.net>
121247         * check-module: Add a FIXME comment.
121249 2005-08-31  Eric Blake  <ebb9@byu.net>
121251         * modules/unistd-safer (Files): Add unistd--.h.
121252         * modules/stdio-safer (Files): Add stdio--.h.
121254 2005-08-31  Derek Price  <derek@ximbiot.com>
121256         * lib/getdelim.c (getdelim): Return EOF on EOF.
121257         Reported by Larry Jones <lawrence.jones@ugs.com>.
121259 2005-08-31  Bruno Haible  <bruno@clisp.org>
121261         Avoid unnecessary diffs in the generated lib/Makefile.am.
121262         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
121263         the generated files.
121264         (func_import): Don't set cmd.
121266 2005-08-31  Bruno Haible  <bruno@clisp.org>
121268         * lib/strstr.c: Include <stddef.h>, for NULL.
121269         * lib/strcasestr.c: Likewise.
121270         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
121272 2005-08-31  Bruno Haible  <bruno@clisp.org>
121274         * gnulib-tool: New option --macro-prefix.
121275         (func_import): Use macro_prefix.
121276         (import): Handle option --macro-prefix.
121278 2005-08-31  Bruno Haible  <bruno@clisp.org>
121280         * gnulib-tool (import): Rename most ac_* variables to cached_*.
121281         Also use new variables cached_lgpl, cached_libtool.
121283 2005-08-31  Bruno Haible  <bruno@clisp.org>
121285         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
121286         always instantiating them.
121288 2005-08-31  Bruno Haible  <bruno@clisp.org>
121290         * gnulib-tool (func_import): Read the previous cached settings
121291         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
121292         earlier added by gnulib but are now dropped. Warn when a gnulib file
121293         overwrites a non-gnulib file.
121295 2005-08-31  Bruno Haible  <bruno@clisp.org>
121297         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
121298         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
121299         projects that don't keep autogenerated files in CVS. Put into
121300         actioncmd only the specified modules, not the transitive closure.
121302 2005-08-31  Bruno Haible  <bruno@clisp.org>
121304         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
121305         Create directories that shall be filled.
121306         (import): Don't look for gl_* macros in configure.ac. Recurse across
121307         all directories containing a gnulib-cache.m4 files, if meaningful.
121309 2005-08-31  Bruno Haible  <bruno@clisp.org>
121311         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
121312         (import): Set seen_libtool when we see gl_LIBTOOL.
121314 2005-08-31  Bruno Haible  <bruno@clisp.org>
121316         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
121317         declaration macro definitions from generated gnulib.m4.
121319 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
121321         * lib/iconvme.h: Add prototype for iconv_alloc.
121323 2005-08-29  Simon Josefsson  <jas@extundo.com>
121325         * lib/iconvme.c: Fix errno.
121327 2005-08-29  Bruno Haible  <bruno@clisp.org>
121329         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
121330         that it works when the directory contains spaces.
121332 2005-08-29  Bruno Haible  <bruno@clisp.org>
121334         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
121336 2005-08-29  Bruno Haible  <bruno@clisp.org>
121338         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
121339         Emit more advice.
121341 2005-08-29  Bruno Haible  <bruno@clisp.org>
121342         and Stepan Kasal  <kasal@ucw.cz>
121344         * check-module: If more parameters are given, check each of them
121345         separately; add more exceptions, as noted by Jim Meyering.
121346         (check_module): New procedure.
121347         (%exempt_header): Now contains all exceptions.
121349 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
121351         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
121353 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
121355         * lib/iconvme.c: Split iconv_string into iconv_alloc.
121357 2005-08-28  Bruno Haible  <bruno@clisp.org>
121359         * m4/gnulib-tool.m4: New file.
121361 2005-08-27  Jim Meyering  <jim@meyering.net>
121363         * modules/unistd-safer (Files): Add pipe-safer.c.
121364         * modules/fcntl-safer (Files): Add creat-safer.c.
121366 2005-08-27  Jim Meyering  <jim@meyering.net>
121368         * m4/stdlib-safer.m4: New file.  From coreutils.
121369         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
121370         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
121371         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
121372         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
121373         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
121375 2005-08-27  Jim Meyering  <jim@meyering.net>
121377         * lib/fopen-safer.c: Merge minor changes from coreutils.
121378         * lib/dup-safer.c: Likewise.
121379         * lib/fd-safer.c: Likewise.
121381         Merge from coreutils.
121382         * lib/stdio--.h: New file.
121383         * lib/stdlib--.h: New file.
121384         * lib/mkstemp-safer.c: New file.
121386         GNU tar needs these.
121387         * lib/pipe-safer.c: New file.
121388         * lib/creat-safer.c: New file.
121389         * lib/fcntl--.h (creat): Define to creat_safer.
121390         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
121391         * lib/unistd--.h (pipe): Define to pipe_safer.
121392         * lib/unistd-safer.h: Declare pipe_safer.
121394 2005-08-26  Simon Josefsson  <jas@extundo.com>
121396         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
121397         Haible <bruno@clisp.org>.
121399 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
121401         * lib/regex_internal.h: Remove all references to
121402         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
121403         or better.
121404         (bitset_not, bitset_merge, bitset_not_merge):
121405         (bitset_mask, re_string_allocate, re_string_construct):
121406         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
121407         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
121408         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
121409         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
121410         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121411         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121412         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
121413         (re_acquire_state_context):
121414         Remove unnecessary forward decls.
121415         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
121416         Put __attribute at function definition,
121417         now that the function decl has been removed.
121418         * lib/regex_internal.c (re_string_peek_byte_case):
121419         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
121420         Likewise.
121422 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
121424         * m4/regex.m4: Add AC_PREREQ(2.50).
121425         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
121427 2005-08-25  Simon Josefsson  <jas@extundo.com>
121429         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
121430         __fsetlocking.
121432 2005-08-25  Simon Josefsson  <jas@extundo.com>
121434         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
121435         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
121436         GLIBC specific code.
121438 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121440         Make regex safe for g++.  This fixes one real bug (an "err"
121441         that should have been "*err").  g++ problem reported by
121442         Sam Steingold.
121443         * lib/regex_internal.h (re_calloc): New macro, consistent with
121444         re_malloc etc.  All callers of calloc changed to use re_calloc.
121445         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
121446         not int.  All callers changed.
121447         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
121448         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
121449         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
121450         (find_recover_state): Change "err" to "*err"; this fixes what
121451         appears to be a real bug.
121452         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
121453         versus int.
121455 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121457         * modules/regex (Depends-on): Add malloc, since the code
121458         assumes that !malloc(0) means failure.
121460 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121462         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
121464         alloca modernization/simplification for regex.
121465         * lib/regex.c: Remove portability cruft for alloca.  This no longer
121466         needs to be at the start of the file, and can be moved into
121467         regex_internal.h and simplified.
121468         * lib/regex_internal.h: Include <alloca.h>.
121469         (__libc_use_alloca) [!defined _LIBC]: New macro.
121470         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
121471         now works outside glibc.
121473 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
121475         * config/srclist.txt: Add glibc bugs 1241, 1245.
121477 2005-08-25  Jim Meyering  <jim@meyering.net>
121479         * lib/open-safer.c: Include <config.h>.
121480         Otherwise, we'd lose LARGEFILE support in any file using
121481         e.g. "fcntl--.h"
121483 2005-08-25  Bruno Haible  <bruno@clisp.org>
121485         * m4/minmax.m4: Require autoconf 2.52.
121486         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
121487         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
121488         alternatives of translit over the alphabet.
121489         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
121491 2005-08-24  Simon Josefsson  <jas@extundo.com>
121493         * tests/test-getpass.c: New file.
121495 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121497         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
121498         for GNU regex features.
121500 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121502         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
121503         * lib/regex.h (regerror): Likewise.
121505         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
121506         requires this.  (The code never needed it.)
121508         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
121509         All uses of recently-renamed identifiers changed to use the new,
121510         POSIX-compliant names.  The code will build and run just fine
121511         without these changes, but it's better to eat our own dog food
121512         and use the standard-conforming names.
121514         * lib/regex.h: Fix a multitude of POSIX name space violations.
121515         These changes have an effect only for programs that define
121516         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
121517         do not change anything for programs compiled in the normal way.
121518         Also, there is no effect on the ABI.
121520         (_REGEX_SOURCE): New macro.
121521         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
121522         defined and _GNU_SOURCE is not; this fixes a name space violation.
121524         Rename the following macros to obey POSIX requirements.
121525         The old names are still visible as macros if _REGEX_SOURCE is defined.
121526         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
121527         RE_BACKSLASH_ESCAPE_IN_LISTS.
121528         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
121529         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
121530         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
121531         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
121532         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
121533         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
121534         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
121535         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
121536         (REG_INTERVALS): renamed from RE_INTERVALS.
121537         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
121538         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
121539         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
121540         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
121541         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
121542         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
121543         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
121544         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
121545         RE_UNMATCHED_RIGHT_PAREN_ORD.
121546         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
121547         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
121548         (REG_DEBUG): renamed from RE_DEBUG.
121549         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
121550         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
121551         unusual, since we can't clash with the POSIX REG_ICASE.
121552         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
121553         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
121554         (REG_NO_SUB): renamed from RE_NO_SUB.
121555         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
121556         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
121557         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
121558         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
121559         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
121560         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
121561         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
121562         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
121563         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
121564         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
121565         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
121566         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
121567         RE_SYNTAX_POSIX_MINIMAL_BASIC.
121568         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
121569         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
121570         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
121571         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
121572         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
121573         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
121574         (REG_FIXED): Renamed from REGS_FIXED.
121575         (REG_NREGS): Renamed from RE_NREGS.
121577         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
121578         of other REG_* macros, since POSIX says the user is allowed to
121579         #undef these macros selectively.
121581         (reg_errcode_t): Update comment stating what other tables need
121582         to be consistent.
121584         Rename the following enum values to obey POSIX requirements.
121585         The old names are still visible as macros.
121586         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
121587         is not defined, since GNU is supposed to be a superset of POSIX as
121588         much as possible, and since we want reg_errcode_t to be a signed
121589         type for implementation consistency.
121590         (_REG_NOERROR): Renamed from REG_NOERROR.
121591         (_REG_NOMATCH): Renamed from REG_NOMATCH.
121592         (_REG_BADPAT): Renamed from REG_BADPAT.
121593         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
121594         (_REG_ECTYPE): Renamed from REG_ECTYPE.
121595         (_REG_EESCAPE): Renamed from REG_EESCAPE.
121596         (_REG_ESUBREG): Renamed from REG_ESUBREG.
121597         (_REG_EBRACK): Renamed from REG_EBRACK.
121598         (_REG_EPAREN): Renamed from REG_EPAREN.
121599         (_REG_EBRACE): Renamed from REG_EBRACE.
121600         (_REG_BADBR): Renamed from REG_BADBR.
121601         (_REG_ERANGE): Renamed from REG_ERANGE.
121602         (_REG_ESPACE): Renamed from REG_ESPACE.
121603         (_REG_BADRPT): Renamed from REG_BADRPT.
121604         (_REG_EEND): Renamed from REG_EEND.
121605         (_REG_ESIZE): Renamed from REG_ESIZE.
121606         (_REG_ERPAREN): Renamed from REG_ERPAREN.
121607         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
121608         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
121609         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
121610         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
121612         (_REG_RE_NAME, _REG_RM_NAME): New macros.
121613         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
121614         changed.  But support the old name if the new one is not defined
121615         and if _REGEX_SOURCE.
121617         Change the following member names in struct re_pattern_buffer.
121618         The old names are still supported if !_REGEX_SOURCE.
121619         The new names are always supported, regardless of _REGEX_SOURCE.
121620         (re_buffer): Renamed from buffer.
121621         (re_allocated): Renamed from allocated.
121622         (re_used): Renamed from used.
121623         (re_syntax): Renamed from syntax.
121624         (re_fastmap): Renamed from fastmap.
121625         (re_translate): Renamed from translate.
121626         (re_can_be_null): Renamed from can_be_null.
121627         (re_regs_allocated): Renamed from regs_allocated.
121628         (re_fastmap_accurate): Renamed from fastmap_accurate.
121629         (re_no_sub): Renamed from no_sub.
121630         (re_not_bol): Renamed from not_bol.
121631         (re_not_eol): Renamed from not_eol.
121632         (re_newline_anchor): Renamed from newline_anchor.
121634         Change the following member names in struct re_registers.
121635         The old names are still supported if !_REGEX_SOURCE.
121636         The new names are always supported, regardless of _REGEX_SOURCE.
121637         (rm_num_regs): Renamed from num_regs.
121638         (rm_start): Renamed from start.
121639         (rm_end): Renamed from end.
121641         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
121642         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
121643         Prepend __ to parameter names.
121645         Undo yesterday's changes.
121647 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121649         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
121650         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
121651         lib/regex.c.
121653 2005-08-24  Jim Meyering  <jim@meyering.net>
121655         Sync from coreutils.
121656         * m4/fcntl-safer.m4: New file.
121658         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
121659         and object files for this module.
121661 2005-08-24  Jim Meyering  <jim@meyering.net>
121663         Sync from coreutils.
121664         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
121666 2005-08-24  Jim Meyering  <jim@meyering.net>
121668         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
121669         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
121671 2005-08-24  Jim Meyering  <jim@meyering.net>
121673         * modules/fcntl-safer: New module.
121674         * modules/fts (Depends-on): Add fcntl-safer.
121675         * MODULES.html.sh (File descriptor based Input/Output):
121676         Add fcntl-safer.
121678 2005-08-24  Bruno Haible  <bruno@clisp.org>
121680         Support for unit test modules.
121681         * modules/README: Mention tests modules.
121682         * modules/TEMPLATE-TESTS: New file.
121683         * gnulib-tool: New options --extract-tests-module, --with-tests and
121684         --tests-base (unused for the moment).
121685         (testsbase, inctests): New variables.
121686         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
121687         (func_verify_module): Exclude TEMPLATE-TESTS.
121688         (func_verify_nontests_module, func_verify_tests_module): New functions.
121689         (func_get_dependencies): Add implicit dependency for tests modules.
121690         (func_get_tests_module): New function.
121691         (func_modules_transitive_closure): When --with-tests was specified,
121692         include the unit tests as well, unless explicitly avoided.
121693         (func_emit_lib_Makefile_am): Ignore the tests modules here.
121694         (func_emit_tests_Makefile_am): New function.
121695         (func_create_testdir): When --with-tests was specified, emit a
121696         tests/ directory.
121697         * MODULES.html.sh (Future developments): Update.
121699 2005-08-24  Bruno Haible  <bruno@clisp.org>
121701         * modules/tls-tests: New file.
121702         * tests/test-tls.c: New file, from GNU gettext.
121704 2005-08-24  Bruno Haible  <bruno@clisp.org>
121706         * modules/lock-tests: New file.
121707         * tests/test-lock.c: New file, from GNU gettext.
121709 2005-08-24  Bruno Haible  <bruno@clisp.org>
121711         * lib/lock.h: Add multiple inclusion guard.
121712         * lib/tls.h: Add multiple inclusion guard.
121714 2005-08-24  Bruno Haible  <bruno@clisp.org>
121716         * gnulib-tool: Add support for the --aux-dir option to
121717         --create-testdir, --create-megatestdir, --test, --megatest.
121718         (func_create_testdir, func_create_megatestdir): Optionally emit a
121719         AC_CONFIG_AUX_DIR directive.
121720         (create-testdir, create-megatestdir, test, megatest): Provide a
121721         default value for $auxdir.
121723 2005-08-24  Bruno Haible  <bruno@clisp.org>
121725         * gnulib-tool (import): Use compound statement instead of subshell
121726         where possible.
121728 2005-08-24  Bruno Haible  <bruno@clisp.org>
121730         * gnulib-tool (import): Change --aux-dir default to "build-aux".
121732 2005-08-24  Bruno Haible  <bruno@clisp.org>
121734         * gnulib-tool (func_version): Update.
121736 2005-08-24  Bruno Haible  <bruno@clisp.org>
121738         * gnulib-tool (func_import, func_create_testdir,
121739         func_create_megatestdir): Quote all autoconf macro arguments.
121741 2005-08-24  Bruno Haible  <bruno@clisp.org>
121743         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
121744         option --force, because --force causes the aclocal.m4 of each
121745         subdirectory to be newer than the corresponding config.h.in.
121747 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121749         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
121750         All contents moved to gl_REGEX.
121751         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
121752         assume that it does.
121754 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121756         * lib/regex.h (REG_NOSYS)
121757         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
121758         Define, since POSIX requires it as of 2001.
121759         (_REG_ENOSYS)
121760         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
121761         New private symbol, used to keep the enum signed in all cases.
121762         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
121763         Youngman in
121764         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
121766         * lib/regex_internal.c (re_string_skip_chars, register_state):
121767         (calc_state_hash):
121768         Remove forward decls; no longer needed now that we use prototypes.
121769         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
121770         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
121771         (clean_state_log_if_needed): Likewise.
121773 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121775         * config/srclist.txt: Add glibc bugs 1231-1233.
121777 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121779         Fix problems reported by Sam Steingold in
121780         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
121781         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
121782         assumed that reg_errcode_t is a signed type, which is not
121783         necessarily true if _XOPEN_SOURCE is not defined.
121784         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
121785         since some compilers warn about it otherwise.
121787 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121789         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
121790         (init_word_char, create_initial_state, duplicate_node_closure):
121791         (fetch_token, peek_token_bracket, build_range_exp):
121792         (build_collating_symbol): Remove forward decls; no longer needed
121793         now that we use prototypes.
121795         * lib/regcomp.c:
121796         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
121797         (re_compile_fastmap_iter, regcomp, regerror, regfree):
121798         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
121799         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
121800         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
121801         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
121802         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
121803         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
121804         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
121805         (build_range_exp, build_collating_symbol, parse_bracket_exp):
121806         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
121807         (build_charclass, build_charclass_op, fetch_number, create_tree):
121808         (create_token_tree, mark_opt_subexp, duplicate_tree):
121809         Use prototypes rather than old-style definitions.
121811         * lib/regex_internal.c:
121812         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
121813         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
121814         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
121815         (re_string_reconstruct, re_string_peek_byte_case):
121816         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
121817         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
121818         (re_node_set_init_copy, re_node_set_add_intersect):
121819         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121820         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121821         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
121822         (re_acquire_state, re_acquire_state_context, register_state):
121823         (create_ci_newstate, create_cd_newstate, free_state):
121824         Likewise.
121825         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
121826         re_search_2):
121827         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
121828         (re_search_internal, prune_impossible_nodes):
121829         (acquire_init_state_context, check_matching, static):
121830         (check_halt_node_context, check_halt_state_context, proceed_next_node):
121831         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
121832         (update_regs, sift_states_backward, build_sifted_states):
121833         (clean_state_log_if_needed, merge_state_array):
121834         (update_cur_sifted_state, add_epsilon_src_nodes):
121835         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
121836         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
121837         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
121838         (find_recover_state, check_subexp_matching_top, transit_state_mb):
121839         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
121840         (check_arrival, check_arrival_add_next_nodes):
121841         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
121842         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
121843         (check_node_accept_bytes, check_node_accept, extend_buffers):
121844         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
121845         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
121846         (sift_ctx_init):
121847         Likewise.
121849         * lib/regex_internal.h:
121850         (re_string_allocate, re_string_construct, re_string_reconstruct):
121851         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
121852         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
121853         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
121854         (re_string_context_at, re_string_peek_byte_case):
121855         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
121856         is defined, since we now use prototypes always.
121858         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
121859         C89 or better.  All uses removed.
121861 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121863         * config/srclist.txt: Add glibc bugs 1220-1227.
121865 2005-08-20  Jim Meyering  <jim@meyering.net>
121867         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
121868         of unused local, dfa.
121870 2005-08-20  Bruno Haible  <bruno@clisp.org>
121872         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
121874 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121876         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
121877         (re_node_set_insert_last, re_dfa_add_node):
121878         Rename local variables to avoid GCC shadowing warnings.
121880 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121882         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
121883         [defined lint]: Suppress bogus uninitialized-variable warnings.
121885         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
121886         and let the caller return REG_ESPACE if out of space.  This
121887         removes an uninitialied-variable warning with GCC 4.0.1, and also
121888         avoids taking the address of a local variable.  All callers
121889         changed.
121891 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121893         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
121894         $LIBCSRC/posix/regexec.c.
121895         Add glibc bug 1217 for regcomp.c.
121897 2005-08-19  Jim Meyering  <jim@meyering.net>
121899         * lib/regexec.c (proceed_next_node): Redo local variables to
121900         avoid GCC shadowing warnings.
121902 2005-08-18  Bruno Haible  <bruno@clisp.org>
121904         * lib/strstr.c (strstr): Fix return value in multibyte case.
121905         * lib/strcasestr.c (strcasestr): Likewise.
121907 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121909         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
121911 2005-08-17  Jim Meyering  <jim@meyering.net>
121913         Make the %s format (seconds since the epoch) work for a negative
121914         number and when used with a zero-padded field width, e.g. %015s.
121916         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
121917         label so that it precedes the code to set `digits'.  Otherwise,
121918         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
121919         print `00-22'.  Now, it prints `-0022', as it should.
121921 2005-08-17  Bruno Haible  <bruno@clisp.org>
121923         * modules/strstr (Files): Add m4/mbrtowc.m4.
121924         (Depends-on): Add mbuiter.
121926 2005-08-17  Bruno Haible  <bruno@clisp.org>
121928         * modules/strcasestr: New file.
121929         * MODULES.html.sh (String handling, based on ANSI C 89): Add
121930         strcasestr.
121932 2005-08-17  Bruno Haible  <bruno@clisp.org>
121934         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
121936 2005-08-17  Bruno Haible  <bruno@clisp.org>
121938         * modules/mbuiter: New file.
121939         * MODULES.html.sh (Extended multibyte and wide character utilities):
121940         Add mbuiter.
121942 2005-08-17  Bruno Haible  <bruno@clisp.org>
121944         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
121945         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
121947 2005-08-17  Bruno Haible  <bruno@clisp.org>
121949         * m4/strcasestr.m4: New file.
121951 2005-08-17  Bruno Haible  <bruno@clisp.org>
121953         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
121954         * lib/strstr.c: Completely rewritten, with multibyte locale support.
121956 2005-08-17  Bruno Haible  <bruno@clisp.org>
121958         * lib/strcasestr.h: New file.
121959         * lib/strcasestr.c: New file.
121961 2005-08-17  Bruno Haible  <bruno@clisp.org>
121963         * lib/strcasecmp.c: Use mbuiter.h.
121965 2005-08-17  Bruno Haible  <bruno@clisp.org>
121967         * lib/mbuiter.h: New file.
121969 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
121971         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
121972         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
121973         and gl_GETOPT are both invoked via different paths (as happens
121974         with GNU tar CVS because it uses both argp and getopt), the former
121975         wins.
121977 2005-08-16  Bruno Haible  <bruno@clisp.org>
121979         * modules/tls: New file.
121980         * MODULES.html.sh (Multithreading): Add tls.
121982 2005-08-16  Bruno Haible  <bruno@clisp.org>
121984         * modules/strnlen1: New file.
121985         * MODULES.html.sh (String handling): Add strnlen1.
121987 2005-08-16  Bruno Haible  <bruno@clisp.org>
121989         * modules/strcase (Files): Add m4/mbrtowc.m4.
121990         (Depends-on): Add strnlen1, mbchar.
121992 2005-08-16  Bruno Haible  <bruno@clisp.org>
121994         * modules/mbiter: New file.
121995         * MODULES.html.sh (Extended multibyte and wide character utilities):
121996         Add mbiter.
121998 2005-08-16  Bruno Haible  <bruno@clisp.org>
122000         * modules/mbfile: New file.
122001         * MODULES.html.sh (Extended multibyte and wide character utilities):
122002         Add mbfile.
122004 2005-08-16  Bruno Haible  <bruno@clisp.org>
122006         * modules/mbchar: New file.
122007         * MODULES.html.sh (Extended multibyte and wide character utilities):
122008         New section.
122010 2005-08-16  Bruno Haible  <bruno@clisp.org>
122012         * m4/tls.m4: New file, from GNU gettext.
122014 2005-08-16  Bruno Haible  <bruno@clisp.org>
122016         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
122017         always.
122018         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
122020 2005-08-16  Bruno Haible  <bruno@clisp.org>
122022         * m4/mbiter.m4: New file.
122024 2005-08-16  Bruno Haible  <bruno@clisp.org>
122026         * m4/mbfile.m4: New file.
122028 2005-08-16  Bruno Haible  <bruno@clisp.org>
122030         * m4/mbchar.m4: New file.
122032 2005-08-16  Bruno Haible  <bruno@clisp.org>
122034         * lib/tls.h: New file, from GNU gettext.
122035         * lib/tls.c: New file, from GNU gettext.
122037 2005-08-16  Bruno Haible  <bruno@clisp.org>
122039         * lib/strnlen1.h: New file.
122040         * lib/strnlen1.c: New file.
122042 2005-08-16  Bruno Haible  <bruno@clisp.org>
122044         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
122045         (mbi_init): Update.
122046         (mbi_avail, mbi_advance): Let the iteration end before the terminating
122047         NUL byte, not after it.
122049 2005-08-16  Bruno Haible  <bruno@clisp.org>
122051         * lib/strcase.h (strcasecmp): Add note in comments.
122052         * lib/strncasecmp.c: Use code from strcasecmp.c.
122053         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
122054         (strcasecmp): Work correctly in multibyte locales.
122056 2005-08-16  Bruno Haible  <bruno@clisp.org>
122058         * lib/mbiter.h: New file.
122060 2005-08-16  Bruno Haible  <bruno@clisp.org>
122062         * lib/mbfile.h: New file.
122064 2005-08-16  Bruno Haible  <bruno@clisp.org>
122066         * lib/mbchar.h: New file.
122067         * lib/mbchar.c: New file.
122069 2005-08-16  Bruno Haible  <bruno@clisp.org>
122071         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
122072         the valid ones. Makes the comparison operations transitive:
122073         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
122074         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
122076 2005-08-15  Simon Josefsson  <jas@extundo.com>
122078         * modules/ssize_t (License): Change to 'unlimited'.
122080         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
122082 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
122084         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
122085         Add comments for each pending glibc patch.
122087 2005-08-15  Bruno Haible  <bruno@clisp.org>
122089         * lib/regex.h (__restrict_arr): Don't define to __restrict if
122090         __cplusplus is defined.
122092 2005-08-14  Jim Meyering  <jim@meyering.net>
122094         Sync from coreutils.
122096         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
122097         Use the hash-table-based cycle-detection code not just when
122098         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
122099         Reported by James Youngman in
122100         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
122101         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
122102         FTS_TIGHT_CYCLE_CHECK.
122103         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
122104         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
122105         once again.
122106         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
122107         * lib/fts.c (fd_safer): Remove decl.
122108         Include fcntl--.h rather than unistd-safer.h
122109         (fts_safe_changedir): Don't call fd_safer; no longer needed
122110         now that we include fcntl--.h.
122112 2005-08-12  Simon Josefsson  <jas@extundo.com>
122114         * modules/getndelim2: Use ssize_t module.
122115         * modules/getnline: Likewise.
122116         * modules/safe-read: Likewise.
122117         * modules/xreadlink: Likewise.
122119         * modules/ssize_t: New file.
122121 2005-08-12  Simon Josefsson  <jas@extundo.com>
122123         * m4/readline.m4: Look for termcap, curses or ncurses if required.
122125 2005-08-12  Simon Josefsson  <jas@extundo.com>
122127         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122128         ssize_t.
122130 2005-08-12  Simon Josefsson  <jas@extundo.com>
122132         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
122133         readline, getdelim and check_version.
122134         (Support for systems lacking ISO C 99: Sizes of integer types):
122135         Add size_max.
122137 2005-08-12  Bruno Haible  <bruno@clisp.org>
122139         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
122141 2005-08-11  Simon Josefsson  <jas@extundo.com>
122143         * modules/readline: New file.
122145         * modules/strnlen (Files): Add strnlen.h.
122147 2005-08-11  Simon Josefsson  <jas@extundo.com>
122149         * m4/readline.m4: New file.
122151 2005-08-11  Simon Josefsson  <jas@extundo.com>
122153         * lib/readline.h, readline.c: New file.
122155 2005-08-11  Simon Josefsson  <jas@extundo.com>
122157         * doc/gnulib.texi (Initial import, Finishing touches): Mention
122158         gl_AVOID.
122160 2005-08-11  Bruno Haible  <bruno@clisp.org>
122162         * lib/strnlen.h (strnlen): Change parameter name to match comment.
122164 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
122166         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
122168 2005-08-10  Simon Josefsson  <jas@extundo.com>
122170         * tests/test-iconvme.c: New file.
122172 2005-08-10  Simon Josefsson  <jas@extundo.com>
122174         * m4/strnlen.m4: New file.
122176         * m4/strndup.m4: Don't check for strnlen declaration, done in
122177         strnlen.m4.
122179 2005-08-10  Simon Josefsson  <jas@extundo.com>
122181         * lib/strndup.c: Use strnlen.h.
122183         * lib/strnlen.h: New file.
122185 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
122187         * README: Typos.
122189 2005-08-02  Simon Josefsson  <jas@extundo.com>
122191         * modules/readline: New file.
122193 2005-08-02  Simon Josefsson  <jas@extundo.com>
122195         * modules/getdelim: New file.
122197         * modules/getline: Rewrite, don't use getndelim2.
122199 2005-08-02  Simon Josefsson  <jas@extundo.com>
122201         * m4/getline.m4: Separate out getdelim stuff into separate module.
122203         * m4/getdelim.m4: New file.
122205 2005-08-02  Simon Josefsson  <jas@extundo.com>
122207         * lib/getline.h, getline.c: Rewrite.
122209         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
122211 2005-07-31  Bruno Haible  <bruno@clisp.org>
122213         * lib/lock.h (gl_lock_initializer): New macro.
122214         (gl_lock_define_initialized): Use it.
122215         (gl_rwlock_initializer): New macro.
122216         (gl_rwlock_define_initialized): Use it.
122217         (gl_recursive_lock_initializer): New macro.
122218         (gl_recursive_lock_define_initialized): Use it.
122220 2005-07-30  Karl Berry  <karl@gnu.org>
122222         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
122223         Report from Ben Pfaff, regarding getopt.
122225 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
122227         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
122228         normal way.
122229         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
122230         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
122231         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
122232         (gl_GETOPT): Use the new macros.  Most of the implementation
122233         is moved to the new macros.  This is for programs like Emacs
122234         that don't want all the functionality of gl_GETOPT.
122236 2005-07-26  Bruno Haible  <bruno@clisp.org>
122238         * m4/lock.m4: Update from GNU gettext.
122240 2005-07-26  Bruno Haible  <bruno@clisp.org>
122242         * lib/lock.h: Update from GNU gettext.
122243         * lib/lock.c: Update from GNU gettext.
122245 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
122247         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
122248         obsolescent AC_TRY_RUN.  Include the default includes files, for
122249         'exit'.
122251 2005-07-24  Bruno Haible  <bruno@clisp.org>
122253         * modules/visibility: New file.
122254         * MODULES.html.sh (Misc): Add visibility.
122256 2005-07-24  Bruno Haible  <bruno@clisp.org>
122258         * m4/visibility.m4: New file.
122260 2005-07-24  Bruno Haible  <bruno@clisp.org>
122262         * doc/visibility.texi: New file.
122264 2005-07-22  Bruno Haible  <bruno@clisp.org>
122266         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
122267         $(ALLOCA_H), redundant through BUILT_SOURCES.
122268         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
122269         redundant through BUILT_SOURCES.
122270         * modules/byteswap (Makefile.am): Remove explicit dependency on
122271         $(BYTESWAP_H), redundant through BUILT_SOURCES.
122272         * modules/fnmatch (Makefile.am): Remove explicit dependency on
122273         $(FNMATCH_H), redundant through BUILT_SOURCES.
122274         * modules/getopt (Makefile.am): Remove explicit dependency on
122275         $(GETOPT_H), redundant through BUILT_SOURCES.
122276         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
122277         redundant through BUILT_SOURCES.
122278         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
122279         redundant through BUILT_SOURCES.
122280         * modules/stdbool (Makefile.am): Remove explicit dependency on
122281         $(STDBOOL_H), redundant through BUILT_SOURCES.
122282         * modules/stdint (Makefile.am): Remove explicit dependency on
122283         $(STDINT_H), redundant through BUILT_SOURCES.
122284         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
122285         Remove explicit dependency on $(SYSEXITS_H).
122286         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
122288 2005-07-18  Simon Josefsson  <jas@extundo.com>
122290         * lib/check-version.c (check_version): Accept identical versions too.
122292 2005-07-18  Bruno Haible  <bruno@clisp.org>
122294         * modules/lock: New file.
122295         * MODULES.html.sh (Multithreading): New section.
122297 2005-07-18  Bruno Haible  <bruno@clisp.org>
122299         * m4/lock.m4: New file, from GNU gettext.
122301 2005-07-18  Bruno Haible  <bruno@clisp.org>
122303         * lib/lock.h: New file, from GNU gettext.
122304         * lib/lock.c: New file, from GNU gettext.
122306 2005-07-18  Bruno Haible  <bruno@clisp.org>
122308         * lib/lock.h (gl_once_t): New type.
122309         (gl_once_define, gl_once): New macros.
122310         * lib/lock.c (fresh_once): New variable.
122311         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
122312         functions.
122314 2005-07-16  Simon Josefsson  <jas@extundo.com>
122316         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
122317         workaround, suggested by Bruno.
122319 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
122321         * modules/xalloc (Depends-on): Add xalloc-die.
122322         * modules/xvasprintf (Depends-on): Add xalloc-die.
122324 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
122326         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
122327         with a minor change.
122329 2005-07-15  Bruno Haible  <bruno@clisp.org>
122331         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
122332         When using lib/poll.c, define poll as rpl_poll.
122334 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
122336         * modules/argp (Depends-on): Remove unlocked-io.
122338 2005-07-14  Derek Price  <derek@ximbiot.com>
122340         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
122341         for glob symlink bug.
122343 2005-07-14  Bruno Haible  <bruno@clisp.org>
122345         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
122346         Instead, test for *_unlocked function declarations directly.
122348 2005-07-11  Simon Josefsson  <jas@extundo.com>
122350         * modules/size_max: New file.
122352         * modules/xsize: Depend on size_max module for size_max.m4.
122354 2005-07-11  Simon Josefsson  <jas@extundo.com>
122356         * lib/size_max.h: New file.
122358 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
122360         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
122361         copyright symbol and the year.
122362         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
122363         (version_etc_va): Use parameterized copyright notice.
122364         Reword to conform to the current GNU coding standards.
122366 2005-07-11  Karl Berry  <karl@gnu.org>
122368         * doc/gnulib.texi (Quoting): new node.
122369         (Initial import): more info, from Patrice.
122371 2005-07-11  Bruno Haible  <bruno@clisp.org>
122373         * gnulib-tool (func_usage): Document option --avoid.
122374         (Command line options): Handle --avoid.
122375         (func_acceptable): New function.
122376         (func_modules_transitive_closure): Use it.
122378 2005-07-11  Bruno Haible  <bruno@clisp.org>
122380         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
122381         Reported by Jim Meyering.
122383 2005-07-10  Bruno Haible  <bruno@clisp.org>
122385         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
122386         Needed when size_t is smaller than 'unsigned int'.
122387         Reported by Paul Eggert.
122389 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
122391         * modules/argp (Depends-on): Add unlocked-io
122393 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
122395         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
122396         block of defines.
122398 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
122400         * config/srclist.txt: Comment out regcomp.c, since we have a porting
122401         fix now.
122403 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
122404         and Paul Eggert  <eggert@cs.ucla.edu>
122406         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
122407         in wint_t, not wchar_t.  Remove now-unnecessary cast.
122409 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122411         * modules/regex (Files): Add lib/regex_internal.c,
122412         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
122413         (Depends-on): Add extensions.
122414         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
122416 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122418         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
122419         pathconf.
122420         * m4/same.m4 (gl_SAME): Likewise.
122421         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
122423         * m4/regex.m4: Adjust to new libc regex implementation.
122424         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
122425         all the .c and .h parts of (the new) regex.
122426         Quote the m4 stuff better.
122427         Check for RE_ICASE bug of old gnulib.
122428         Check for REG_STARTEND of recent libc.
122429         Rename local variables from jm_* to gl_*.
122430         Quote operand of "test -f".
122431         Say "recent enough" version of libc, not "version 2".
122432         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
122433         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
122434         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
122435         Remove check for btowc, isascii.
122436         Require AM_LANGINFO_CODESET.
122438 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122440         * lib/regex.c, regex.h: Sync from libc.
122441         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
122442         * lib/regexec.c:
122443         New files, synced from libc, except that regex_internal.h
122444         currently has a small porting fix.
122446 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
122448         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
122449         regex_internal.c, regexec.c.
122450         Add regex_internal.h too, but as a comment, since the libc version
122451         is currently broken in gnulib mode.
122453 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
122455         Support programs like Emacs that use gnulib but not gettext.
122456         * MODULES.html.sh (Internationalization functions): Add gettext-h.
122457         * modules/gettext-h: New file.
122458         * modules/gettext (Files): Remove lib/gettext.h.
122459         (Depends-on): Add gettext-h.
122460         (Makefile.am): Remove lib_SOURCES.
122461         * modules/argmatch, modules/c-stack, modules/closeout:
122462         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
122463         * modules/execute, modules/file-type, modules/getaddrinfo:
122464         * modules/getopt, modules/human, modules/javacomp:
122465         * modules/javaexec, modules/mkdir-p, modules/obstack:
122466         * modules/openat, modules/pagealign_alloc, modules/pipe:
122467         * modules/quotearg, modules/regex, modules/rpmatch:
122468         * modules/unicodeio, modules/userspec, modules/version-etc:
122469         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
122470         * modules/xsetenv:
122471         Depend on gettext-h, not gettext.
122473 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
122475         * gnulib-tool (func_import): Add support for 'public domain' license.
122476         * modules/alloca, modules/atexit, modules/memmove:
122477         Now public domain, not GPL.
122478         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
122479         * modules/realloc, modules/strerror, modules/strtod:
122480         Now LGPL, not GPL.
122482 2005-07-05  Bruno Haible  <bruno@clisp.org>
122484         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
122485         autoconf CVS. Needed for mingw.
122487 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
122489         Remove the dependency of the strftime module on the tzset module.
122490         * modules/strftime (Depends-on): Remove dependency on tzset.
122492 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
122494         Remove the dependency of the strftime module on the tzset module.
122495         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
122496         gl_FUNC_TZSET_CLOBBER.
122498 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
122500         Remove the dependency of the strftime module on the tzset module.
122501         * lib/strftime.c (my_strftime)
122502         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
122503         Copy the input structure, to work around some of the bug with
122504         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
122505         Solaris releases, you should also use the tzset module, but we won't
122506         require it as a dependency any more since we don't want LGPLed code
122507         to depend on GPLed code.
122509 2005-07-02  Jim Meyering  <jim@meyering.net>
122511         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
122512         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
122513         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
122514         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
122516 2005-07-02  Jim Meyering  <jim@meyering.net>
122518         * lib/backupfile.c (backup_args): Change a `0' to NULL.
122520 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
122522         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
122523         declares only 'struct timespec;' (!).
122525 2005-07-01  Jim Meyering  <jim@meyering.net>
122527         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
122528         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
122529         * lib/save-cwd.c, tempname.c:
122530         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
122531         and don't include <sys/file.h>).
122533 2005-06-29  Jim Meyering  <jim@meyering.net>
122535         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
122536         type name.  Use the variable name instead.
122537         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
122538         Likewise.
122540 2005-06-28  Simon Josefsson  <jas@extundo.com>
122542         * modules/check-version (Files): Add check-version.m4.
122544 2005-06-28  Simon Josefsson  <jas@extundo.com>
122546         * m4/check-version.m4: New file, suggested by Jim Meyering
122547         <jim@meyering.net>.
122549 2005-06-28  Simon Josefsson  <jas@extundo.com>
122551         * lib/check-version.h, lib/check-version.c: New files.
122553 2005-06-28  Simon Josefsson  <jas@extundo.com>
122555         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
122556         collision with global variable.  Better indentation.  Don't
122557         increment buffer pointer beyond buffer end.  Based on comments
122558         from Paul Eggert <eggert@cs.ucla.edu>.
122560         * lib/base64.h: Indent.
122562 2005-06-28  Simon Josefsson  <jas@extundo.com>
122564         * doc/gnulib.texi (Library version handling): New section.
122566 2005-06-28  Jim Meyering  <jim@meyering.net>
122568         * check-module (find_included_lib_files): Hard-code another
122569         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
122570         but modules/fts-lgpl (correctly) does not list those files.
122572         * modules/canonicalize (Files): Add lib/pathmax.h.
122574 2005-06-25  Simon Josefsson  <jas@extundo.com>
122576         * modules/check-version: New file.
122578 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
122580         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
122581         initializer of struct addrinfo, as an indication that we don't
122582         care how many members the structure has.
122584 2005-06-24  Derek Price  <derek@ximbiot.com>
122585         and Bruno Haible  <bruno@clisp.org>
122587         Remove stat module & update lstat.
122588         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
122589         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
122590         * m4/stat.m4: Remove this file.
122592 2005-06-24  Derek Price  <derek@ximbiot.com>
122593         and Bruno Haible  <bruno@clisp.org>
122595         Remove stat module & update lstat.
122596         * lib/stat.c: Remove this file...
122597         (slash_aware_lstat): ...moving this content and its support...
122598         * lib/lstat.c (rpl_lstat): ...into here.
122599         * lib/lstat.h: New file.
122601 2005-06-24  Derek Price  <derek@ximbiot.com>
122602         and Bruno Haible  <bruno@clisp.org>
122604         Remove stat module & update lstat.
122605         * config/srclist.txt (libc sources): Remove stat.
122607 2005-06-24  Derek Price  <derek@ximbiot.com>
122608         and Bruno Haible  <bruno@clisp.org>
122610         Remove stat module & update lstat.
122611         * MODULES.html.sh (stat): Remove.
122612         * MODULES.html: Regenerated.
122613         * modules/lstat (Description): Correct function name.
122614         (Files): Add "lstat.h".
122615         (Depends-on): Remove stat, add xalloc, stat-macros.
122616         * modules/stat: Remove this file.
122617         (Include): Add "lstat.h", remove <sys/stat.h>.
122619 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
122621         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
122622         (ranged_convert): Don't save conversion in a temporary struct.
122623         This causes a warning with GCC 4.0.0, and anyway in the typical
122624         case it's not worth the extra 100 bytes or so of code.
122625         (ranged_convert, __mktime_internal): When calling a function via a
122626         pointer P, use P () rather than (*P) (), as we now assume C89 or
122627         better.
122629 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
122631         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
122632         "who -r" failed to give output.  Problem reported by Tim Waugh.
122634         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
122635         (xcalloc): Use it to avoid needless tests.
122636         Problem reported by Jim Meyering.
122638 2005-06-20  Derek Price  <derek@ximbiot.com>
122640         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
122641         unnecessary for Autoconfs > 2.59c.
122643 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122645         * lib/argp.h (__option_is_short): Check upper limit of
122646         __key. Isprint() requires its argument to have the value
122647         of an unsigned char or EOF.
122649 2005-06-16  Jim Meyering  <jim@meyering.net>
122651         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
122652         when either N or S is zero.
122654 2005-06-16  Derek Price  <derek@ximbiot.com>
122656         * m4/bison.m4: Declare YACC & YFLAGS precious.
122658 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
122660         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
122661         multibyte string or pattern, fall back on unibyte matching.
122662         Problem reported by James Youngman.
122664 2005-06-08  Bruno Haible  <bruno@clisp.org>
122666         * modules/csharpcomp: New file.
122667         * MODULES.html.sh (C#): Add csharpcomp.
122669 2005-06-08  Bruno Haible  <bruno@clisp.org>
122671         * m4/csharpcomp.m4: New file, from GNU gettext.
122673 2005-06-08  Bruno Haible  <bruno@clisp.org>
122675         * lib/csharpcomp.h: New file, from GNU gettext.
122676         * lib/csharpcomp.c: New file, from GNU gettext.
122677         * lib/csharpcomp.sh.in: New file, from GNU gettext.
122679 2005-06-08  Bruno Haible  <bruno@clisp.org>
122681         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
122682         warning on mingw.
122684 2005-06-07  Derek Price  <derek@ximbiot.com>
122686         Sync from CVS.
122687         * lib/glob_.h: Indent nested #ifdef.
122689 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122691         Sync from coreutils.
122692         Use "file name" when talking about file names, instead of "filename"
122693         or "path", as per the GNU coding standards.
122694         * lib/mkdir-p.c: Renamed from makepath.c.
122695         (make_dir_parents): Renamed from make_path.  All callers changed.
122696         * lib/mkdir-p.h: Likewise.  All includers changed.
122697         * lib/filenamecat.c: Renamed from path-concat.c.
122698         (file_name_concat): Renamed from path_concat.  All callers changed.
122699         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
122700         * lib/filenamecat.h: Likewise.  All includers changed.
122701         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
122702         in comments or local variable names.
122703         * lib/basename.c: Likewise.
122704         * lib/canonicalize.c, canonicalize.h: Likewise.
122705         * lib/dirname.c, dirname.h: Likewise.
122706         * lib/euidaccess.c: Likewise.
122707         * lib/exclude.c: Likewise
122708         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
122709         * lib/fsusage.c, fsuage.h: Likewise.
122710         * lib/fts.c, fts_.h: Likewise.
122711         * lib/getcwd.c: Likewise.
122712         * lib/getloadavg.c: Likewise.
122713         * lib/mkstemp.c: Likewise.
122714         * lib/mountlist.c, mountlist.h: Likewise.
122715         * lib/openat.c, openat.h: Likewise.
122716         * lib/readlink-stub.c: Likewise.
122717         * lib/readutmp.c, readutmp.h: Likewise.
122718         * lib/rename.c: Likewise.
122719         * lib/rmdir.c: Likewise.
122720         * lib/same.c: Likewise.
122721         * lib/savedir.c: Likewise.
122722         * lib/stripslash.c: Likewise.
122723         * lib/tempname.c: Likewise.
122724         * lib/xreadlink.c: Likewise.
122725         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
122726         All uses changed.
122727         * lib/exclude.h: Likewise.
122729         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
122730         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122731         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
122732         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122733         * lib/pathmax.h: Include <limits.h> unconditionally, since other
122734         files have been getting away with it for years (MORE/BSD 4.3
122735         is extinct now).
122736         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
122737         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122739         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
122740         Define to 256, not 255, as per modern POSIX.
122742 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122744         Sync from coreutils.
122745         Use "file name" when talking about file names, instead of "filename"
122746         or "path", as per the GNU coding standards.
122747         * MODULES.html.sh: mkdir-p renamed from makepath.
122748         filenamecat renamed from path-concat.
122749         * modules/filenamecat: Renamed from modules/path-concat.
122750         (Files): filenamecat.h and filenamecat.c renamed from
122751         path-concat.h and path-concat.c.
122752         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
122753         (Include): filenamecat.h, not path-concat.h.
122754         * modules/mkdir-p: Renamed from modules/makepath.
122755         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
122756         makepath.c.
122757         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
122758         (Include): mkdir-p.h, not makepath.h.
122760 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122762         Sync from coreutils.
122763         * m4/mkdir-p.m4: Renamed from makepath.m4.
122764         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
122765         Rename files from makepath.c to mkdir-p.c, and from
122766         makepath.h to mkdir-p.h.
122767         * m4/filenamecat.m4: Renamed from path-concat.m4.
122768         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
122769         Rename files from path-concat.c to filenamecat.c,
122770         and from path-concat.h to filenamecat.h.
122771         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
122772         "file name" in local variables or comments.
122773         * m4/rename.m4: Likewise.
122775 2005-06-01  Bruno Haible  <bruno@clisp.org>
122777         * modules/csharpexec: New file.
122778         * MODULES.html.sh (C#): New section.
122780 2005-06-01  Bruno Haible  <bruno@clisp.org>
122782         * m4/csharp.m4: New file, from GNU gettext.
122783         * m4/csharpexec.m4: New file, from GNU gettext.
122785 2005-06-01  Bruno Haible  <bruno@clisp.org>
122787         * lib/csharpexec.h: New file, from GNU gettext.
122788         * lib/csharpexec.c: New file, from GNU gettext.
122789         * lib/csharpexec.sh.in: New file, from GNU gettext.
122791 2005-05-31  Derek Price  <derek@ximbiot.com>
122792             Paul Eggert  <eggert@cs.ucla.edu>
122794         Sync from cvs.
122795         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122797 2005-05-31  Derek Price  <derek@ximbiot.com>
122798             Paul Eggert  <eggert@cs.ucla.edu>
122800         Sync from cvs.
122801         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122803 2005-05-29  Derek Price  <derek@ximbiot.com>
122805         * config/srclist.txt (glob_.h, glob.c): Add these files.
122807 2005-05-29  Derek Price  <derek@ximbiot.com>
122809         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
122810         * modules/glob: New file.
122811         * modules/getlogin_r: Add link to POSIX spec in description.
122813 2005-05-29  Derek Price  <derek@ximbiot.com>
122814             Paul Eggert  <eggert@cs.ucla.edu>
122816         * m4/glob.m4: New file.
122818 2005-05-29  Derek Price  <derek@ximbiot.com>
122819             Paul Eggert  <eggert@cs.ucla.edu>
122821         * lib/glob_.h, lib/glob.c: New files.
122823 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122825         * modules/fts (Files): Remove m4/inttypes-pri.m4.
122826         * modules/fts-lgpl (Depends-on): Remove gettext.
122828 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122830         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
122831         and don't require gt_INTTYPES_PRI.
122833 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122835         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
122837         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
122838         the configuration hassle isn't worth it.
122839         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
122840         (LONGEST_MODIFIER, PRIuMAX): Remove.
122842 2005-05-27  Bruno Haible  <bruno@clisp.org>
122844         * lib/getlogin_r.h: Remove second include of <stddef.h>.
122846 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
122848         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
122849         _POSIX_PTHREAD_SEMANTICS for Solaris.
122851 2005-05-25  Derek Price  <derek@ximbiot.com>
122853         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
122855 2005-05-25  Derek Price  <derek@ximbiot.com>
122856             Paul Eggert  <eggert@cs.ucla.edu>
122858         * modules/getlogin_r, m4/getlogin_r.m4: New files.
122859         * lib/getlogin_r.c, getlogin_r.h: New files.
122861 2005-05-25  Bruno Haible  <bruno@clisp.org>
122862             Derek Price  <derek@ximbiot.com>
122864         * lib/getlogin_r.h: Simplify API documentation.
122866 2005-05-23  Derek Price  <derek@ximbiot.com>
122868         * modules/minmax (Files): Add m4/minmax.m4.
122869         (configure.ac): Add gl_MINMAX.
122871 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
122873         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
122874         so that unistd-safer.h (GPL'ed code) need not be included.
122876 2005-05-22  Bruno Haible  <bruno@clisp.org>
122878         * m4/minmax.m4: New file.
122879         Based on a patch by Derek Price <derek@ximbiot.com>.
122881 2005-05-22  Bruno Haible  <bruno@clisp.org>
122883         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
122884         (INT64_MIN): Fix definition.
122885         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
122887         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
122888         NEED_SIGNED_INT_TYPES.
122890         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
122891         HAVE_SYSTEM_INTTYPES.
122893 2005-05-22  Bruno Haible  <bruno@clisp.org>
122895         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
122896         Also include <sys/param.h> if it defines MIN, MAX.
122897         Based on a patch by Derek Price <derek@ximbiot.com>.
122899 2005-05-21  Jim Meyering  <jim@meyering.net>
122901         * modules/fts (Files): Add m4/inttypes-pri.m4.
122902         (Depends-on): Add lstat and remove gettext.  Alphabetize.
122904 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122906         New fts module.
122907         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
122908         (setup_dir, free_dir): New functions.
122909         (enter_dir, leave_dir): Define trivial
122910         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
122911         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
122912         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
122913         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
122914         Move to fts-cycle.c.
122915         (fts_open): Use setup_dir.
122916         (fts_close): Use free_dir.
122917         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
122918         This adds a label and some gotos, but the alternatives were messier.
122919         Check for memory allocation failure when entering a dir.
122920         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
122921         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
122922         (FTS): New member fts_cycle, that is a union that contains the
122923         old active_dir_ht and cycle_state.  All uses changed to mention
122924         fts_cycle.ht and fts_cycle.state.
122925         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
122926         fts.c, with the following changes:
122927         (setup_dir, free_dir): New functions.
122928         (enter_dir): Now returns bool.  Return true if successful, false
122929         if memory exhausted.  All callers changed.
122930         Do not bother partly cleaning up on
122931         memory allocation failure; that is free_dir's job.
122932         However, free ad if hash_insert fails, to avoid memory leak.
122933         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
122934         fts->fts_options to see which union member to use.
122936 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122938         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
122939         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
122941 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122943         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
122945 2005-05-20  Jim Meyering  <jim@meyering.net>
122947         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
122948         Now a macro, to pacify GCC.
122950 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122952         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
122953         of -1.
122955 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122957         * lib/chown.c (rpl_chown): Return -1 on failure.
122959 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122961         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
122962         Don't check for stddef.h.
122963         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
122964         don't use its results.
122965         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
122966         since we include them unconditionally.  Don't require
122967         AM_STDBOOL_H, since stdbool is a prerequisite.
122968         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
122969         since we assume C89 or better.
122970         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
122971         as we don't use their results.
122972         Don't check for fchdir, memmove, memset, strrchr, as we use
122973         them unconditionally.
122974         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
122975         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
122977 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122979         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
122980         Include <stddef.h> unconditionally, since we assume C89 now.
122981         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
122982         * lib/fts.c: Include fts_.h first, to check interface.
122983         Do not include intprops.h; no longer needed.
122984         Include cycle-check.h and hash.h, since fts_.h no longer does.
122985         Remove unnecessary casts of closedir to void.
122986         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
122987         decide whether to decrement nlinks.
122988         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
122989         (FTS): Use struct hash_table * instead of Hash_table, so that
122990         we no longer need to include hash.h here.
122992 2005-05-18  Jim Meyering  <jim@meyering.net>
122994         * modules/dirfd (License): Change to LGPL.  Most of the code
122995         is already in the public domain.
122997 2005-05-18  Jim Meyering  <jim@meyering.net>
122999         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
123000         Reported by Yoann Vandoorselaere.
123002 2005-05-17  Jim Meyering  <jim@meyering.net>
123004         * m4/fts.m4: New file, from coreutils.
123006 2005-05-17  Jim Meyering  <jim@meyering.net>
123008         * lib/fts.c, lib/fts_.h: New files, from coreutils.
123010 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
123012         Sync from coreutils.
123013         * m4/unlinkdir.m4: New file.
123015 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
123017         Sync from coreutils.
123018         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
123019         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
123020         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
123021         White space changes only.
123022         * lib/makepath.c (make_path): Port to hosts where leading "//" is
123023         special.
123024         * lib/yesno.c: Include getline.h, not ctype.h.
123025         (yesno): Don't remove leading white space; POSIX doesn't allow it.
123026         Use getline to remove arbitrary restriction on response length.
123028 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
123030         * config/srclist-update: Spell out "Street" in FSF postal
123031         mail address; this is the style the FSF seems to prefer.
123033         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
123034         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
123035         this updates FSF postal mail address.
123037         Sync from coreutils.
123038         * modules/unlinkdir: New file.
123039         * modules/yesno (Depends-on): Add getline.
123040         * MODULES.html.sh (File system functions): Add unlinkdir.
123042 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
123044         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
123045         lib/strsep.h:
123046         Change the initial comment to refer to GPL, not LGPL.
123047         gnulib-tool will change it to LGPL as needed.
123049         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
123050         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
123051         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
123052         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
123053         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
123054         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
123055         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
123056         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
123057         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
123058         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
123059         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
123060         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
123061         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
123062         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
123063         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
123064         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
123065         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
123066         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
123067         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
123068         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
123069         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
123070         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
123071         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
123072         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
123073         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
123074         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
123075         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
123076         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
123077         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
123078         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
123079         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
123080         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
123081         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
123082         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
123083         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
123084         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
123085         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
123086         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
123087         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
123088         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
123089         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
123090         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
123091         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
123092         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
123093         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
123094         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
123095         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
123096         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
123097         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
123098         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
123099         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
123100         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
123101         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
123102         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
123103         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
123104         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
123105         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
123106         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
123107         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
123108         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
123109         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
123110         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
123111         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
123112         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
123113         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
123114         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
123115         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
123116         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
123117         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
123118         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
123119         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
123120         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
123121         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
123122         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
123123         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
123124         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
123125         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
123126         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
123127         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
123128         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
123129         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
123130         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
123131         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
123132         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
123133         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
123134         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
123135         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
123136         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
123137         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
123138         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
123139         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
123140         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
123141         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
123142         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
123143         lib/yesno.c, lib/yesno.h:
123144         Update FSF postal mail address.
123146 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
123148         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
123149         tests/test-memmem.c, tests/test-stpncpy.c:
123150         Update FSF postal mail address.
123152 2005-05-13  Bruno Haible  <bruno@clisp.org>
123154         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
123155         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
123156         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
123157         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
123158         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
123159         Add support for 64-bit integers in the MSVC compiler.
123161 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123163         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
123165 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
123167         * gnulib-tool (func_import): Sort and uniquify recommended includes.
123169 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
123171         * doc/getdate.texi (General date syntax): Don't say that date
123172         date --iso-8601=ns generates acceptable dates; it doesn't yet.
123173         Problem reported by Nic Ferrier.
123175 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
123177         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
123178         specified in ai_socktype. Fix invalid ai_protocol
123179         check. ai_protocol is usually set to 0 or depending on
123180         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
123181         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
123182         ai_socktype / ai_protocol in the returned addrinfo structure.
123184 2005-05-10  Simon Josefsson  <jas@extundo.com>
123186         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
123187         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
123189 2005-05-10  Karl Berry  <karl@gnu.org>
123191         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
123192         (from http://www.gnu.org/licenses).
123193         * doc/COPYING.LIB: also rename to COPYING.LESSER.
123194         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
123195         fdl.texi suffices.
123197 2005-05-10  Karl Berry  <karl@gnu.org>
123199         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
123200         (COPYING.DOC): remove.
123202         * config/srclist-update: new FSF address.
123204 2005-05-10  Derek Price  <derek@ximbiot.com>
123206         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
123207         possible.
123209 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
123210             Bruno Haible  <bruno@clisp.org>
123212         * modules/inet_ntop: New file.
123213         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123214         inet_ntop.
123216 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
123217             Bruno Haible  <bruno@clisp.org>
123219         * m4/inet_ntop.m4: New file.
123221 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
123222             Bruno Haible  <bruno@clisp.org>
123224         * lib/inet_ntop.h: New file.
123225         * lib/inet_ntop.c: New file, from glibc with modifications.
123227 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
123229         * modules/time_r (License): Change to LGPL.
123230         * modules/extensions (License): Change to LGPL.  Actually,
123231         the license is more permissive than that, but currently gnulib-tool
123232         doesn't know how to handle more-permissive licenses.
123234         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
123235         Problem reported by Dave Love.
123237 2005-05-08  Jim Meyering  <jim@meyering.net>
123239         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
123240         blank.
123242 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
123244         * modules/argmatch (Depends-on): Add stdbool.
123245         * modules/backupfile (Depends-on): Likewise.
123246         * modules/chdir-long (Depends-on): Likewise.
123247         * modules/closeout (Depends-on): Likewise.
123248         * modules/cycle-check (Depends-on): Likewise.
123249         * modules/dirname (Depends-on): Likewise.
123250         * modules/fnmatch (Depends-on): Likewise.
123251         * modules/fsusage (Depends-on): Likewise.
123252         * modules/fwriteerror (Depends-on): Likewise.
123253         * modules/getcwd (Depends-on): Likewise.
123254         * modules/getloadavg (Depends-on): Likewise.
123255         * modules/hard-locale (Depends-on): Likewise.
123256         * modules/makepath (Depends-on): Likewise.
123257         * modules/mountlist (Depends-on): Likewise.
123258         * modules/nanosleep (Depends-on): Likewise.
123259         * modules/posixtm (Depends-on): Likewise.
123260         * modules/quotearg (Depends-on): Likewise.
123261         * modules/readtokens (Depends-on): Likewise.
123262         * modules/readtokens0 (Depends-on): Likewise.
123263         * modules/readutmp (Depends-on): Likewise.
123264         * modules/save-cwd (Depends-on): Likewise.
123265         * modules/strftime (Depends-on): Likewise.
123266         * modules/userspec (Depends-on): Likewise.
123267         * modules/utimecmp (Depends-on): Likewise.
123268         * modules/xgetcwd (Depends-on): Likewise.
123269         * modules/xnanosleep (Depends-on): Likewise.
123270         * modules/xstrtod (Depends-on): Likewise.
123271         * modules/yesno (Depends-on): Likewise.
123273 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
123275         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
123276         needless checks.
123278 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123280         Merge from coreutils.  Among other things,
123281         add bulletproofing for cases where stdin, stdout, or stderr are closed.
123282         * lib/fd-safer.c: New file.
123283         * lib/fcntl-safer.h, open-safer.c: Remove.
123284         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
123285         * lib/dup-safer.c: Include unistd-safer.h first.
123286         Don't include errno.h.
123287         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
123288         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
123289         * lib/file-type.c: Rely on file-type.h change.
123290         * lib/getloadavg.c: Include unistd-safer.h.
123291         (getloadavg): Use safer open.
123292         * lib/getusershell.c: Include "stdio-safer.h".
123293         (getusershell): Use safer fopen.
123294         * lib/long-options.c (long_options): Use NULL rather than 0.
123295         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
123296         'free'.
123297         * lib/modechange.c: Likewise.
123298         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
123299         (MODE_DONE): New constant.
123300         (struct mode_change): Remove 'next' member.
123301         (make_node_op_equals): New function; like the old one of the
123302         same name, except it allocates an array.
123303         (mode_compile, mode_create_from_ref): Use it.
123304         (mode_compile): Allocate result as an array, not a linked list.
123305         Parse octal string ourself, so that we catch mistakes like "+0".
123306         (mode_adjust): Arg is an array, not a linked list.
123307         * lib/modechange.c: Include stat-macros.h, xalloc.h.
123308         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
123309         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
123310         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
123311         Remove.  This is now stat-macros.h's job.
123312         (talloc): Remove.  All callers replaced by xalloc, so that
123313         our invokers don't have to worry about reporting memory failures.
123314         (make_node_op_equals): Remove.
123315         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
123316         New constants.
123317         (struct mode_change): Moved here from modechange.h.
123318         (mode_append_entry): Remove.
123319         (mode_compile): Remove MASKED_OPS arg, since it encouraged
123320         apps to have incorrect behavior.  Use simpler algorithm for head
123321         and tail.  Don't futz with umask; that's now the job of mode_adjust.
123322         Detect more invalid usages rather than having somewhat-random behavior.
123323         Don't insert an "a=" action, as that leads to incorrect behavior.
123324         (mode_compile, mode_create_from_ref): Return NULL on error instead
123325         of an enum, since now there's only one way to have an error.  All
123326         callers changed.
123327         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
123328         at the correct time.  Simplify calculation of "+u" and its ilk.
123329         Don't mishandle "+X".
123330         (mode_free): Remove "register" and localize decls.
123331         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
123332         (struct mode_change): Move to modechange.c; callers don't
123333         need to see this stuff.
123334         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
123335         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
123336         (mode_change, mode_adjust): Reflect the new signatures noted above.
123337         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
123338         that might redefine system include files.
123339         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
123340         (my_usleep): Use NULL rather than (void *) 0.
123341         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
123342         Use siginterrupt to specify that system calls should be interrupted.
123343         (rpl_nanosleep): Move initialization of suspended closer to call of
123344         my_usleep.
123345         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
123346         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
123347         (desirable_utmp_entry): New function.
123348         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
123349         using x2nrealloc, to simplify logic.
123350         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
123351         size calculation.  Do not assume utmp file is a regular file.
123352         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
123353         (READ_UTMP_CHECK_PIDS): New constant.
123354         * lib/save-cwd.c: Include unistd-safer.h.
123355         (save_cwd): Use fd_safer.
123356         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
123357         [!_LIBC] Include "stat-macros.h" instead.
123358         * lib/unistd-safer.h (fd_safer): New decl.
123360 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123362         * modules/getloadavg (Depends-on): Add unistd-safer.
123363         * modules/getusershell (Depends-on): Add stdio-safer.
123364         * modules/lstat (Depends-on): Remove xalloc.
123365         * modules/mkstemp (Depends-on): Add stat-macros.
123366         * modules/modechange (Depends-on): Remove xstrtol.
123367         Add stat-macros, xalloc.
123368         * modules/save-cwd (Depends-on): Add unistd-safer.
123369         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
123370         * modules/unistd-safer (Files): Add lib/fd-safer.c
123371         (Makefile.am): Remove lib_SOURCES.
123373         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
123374         Remove fcntl-safer; unistd-safer supersedes it.
123376 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123378         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
123379         AC_HEADER_STAT.
123380         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
123381         (gl_PREREQ_CHOWN): Remove.
123382         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
123383         it.  Don't require AC_HEADER_STAT.
123384         (gl_PREREQ_LSTAT): Remove.
123385         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
123386         Don't require AC_HEADER_STAT.
123387         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
123388         (gl_PREREQ_RMDIR): Remove.
123389         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
123390         mention stat-macros.h or AC_HEADER_STAT, since we'll make
123391         the stat-macros module a prerequisite.
123392         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
123393         * m4/filemode.m4 (gl_FILEMODE): Likewise.
123394         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
123395         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
123396         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
123397         variable names.
123398         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
123399         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
123400         variable prefixes.
123401         * m4/fcntl-safer.m4: Remove.
123402         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
123403         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
123404         Invoke gl_PREREQ_FD_SAFER.
123405         (gl_PREREQ_FD_SAFER): New macro.
123406         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
123407         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
123408         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
123409         Remove duplicate call to AC_LIBOBJ(readutmp).
123410         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
123412         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
123413         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
123415 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
123417         * MODULES.html.sh (Misc): Add byteswap.
123419 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123421         * modules/getcwd (Depends-on): Add extensions.
123422         * modules/openat (Depends-on): Likewise.
123424 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123426         * modules/byteswap: New file.
123428 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123430         * m4/byteswap.m4: New file.
123432 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
123434         * lib/byteswap_.h: New file.
123436 2005-04-25  Karl Berry  <karl@gnu.org>
123438         * m4/gettext.m4: Update from GNU gettext 0.14.4.
123440 2005-04-25  Albert Chin  <china@thewrittenword.com>
123442         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
123443         Toolkit C bug.
123445 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
123447         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
123448         (func_ln_if_changed): Remove forcibly for no error message
123449         in case file does not exist.
123451 2005-04-19  Simon Josefsson  <jas@extundo.com>
123453         * gnulib-tool (Options): Make --symlink mean --symbolic.
123455 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
123457         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
123459 2005-04-16  Simon Josefsson  <jas@extundo.com>
123461         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
123463 2005-04-15  Simon Josefsson  <jas@extundo.com>
123465         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
123467 2005-04-15  Simon Josefsson  <jas@extundo.com>
123469         * gnulib-tool: Rename --symlink to --symbolic.
123471 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
123473         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
123474         symbolic links to files instead of copying/moving.  Add --aux-dir,
123475         specifying directory relative --dir where auxiliary build tools
123476         are placed.
123478 2005-04-14  Bruno Haible  <bruno@clisp.org>
123480         * modules/allocsa (License): Change to LGPL.
123481         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
123483 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
123485         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
123486         that "UTC +1 second" continues to work.  Problem reported
123487         by Dmitry V. Levin.
123488         (relunit_snumber): New rule.
123489         (relunit): Use it.
123491 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
123493         * lib/getdate.y (universal_time_zone_table): New constant.
123494         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
123495         universal_time_zone_table.
123496         (lookup_zone): Prefer universal_time_zone_table to
123497         local_time_zone_table, so that "GMT" time stamps are allowed in
123498         London during the summer.  Problem reported by Ian Abbott.
123500 2005-04-12  Jim Meyering  <jim@meyering.net>
123502         * lib/human.c (humblock): Set *options even when returning due to
123503         xstrtoumax conversion failure.  Thanks to a used-uninitialized
123504         warning from gcc-4.
123506 2005-04-09  Jim Meyering  <jim@meyering.net>
123508         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
123509         -Wuninitialized: initialize tm0.tm_year.
123511 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
123513         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
123514         count, since there's no maximum.  All uses changed.
123515         Add member dsts_seen.
123516         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
123517         not being INT_MAX.
123518         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
123519         Use pc_rels_seen to decide whether a date is absolute.
123521         * lib/getdate.y (number): Don't overwrite year.
123522         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
123523         check.
123525 2005-04-02  Simon Josefsson  <jas@extundo.com>
123527         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
123528         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
123530 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
123532         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
123533         where no absolute path name can be longer than PATH_MAX.
123535 2005-03-27  Jim Meyering  <jim@meyering.net>
123537         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
123539 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
123541         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
123542         "one's complement" -> "ones' complement" in comment, as per Knuth.
123543         "value of type" -> "type or expression" in comment.
123544         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
123546 2005-03-26  Jim Meyering  <jim@meyering.net>
123548         Comment nits.
123549         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
123550         Correct typos: s/or/of/.
123552 2005-03-26  Jim Meyering  <jim@meyering.net>
123554         * modules/check-include-files: Move to ../ and rename to...
123555         * check-module: ...this.
123557 2005-03-25  Jim Meyering  <jim@meyering.net>
123559         * modules/xvasprintf (Files): Add xalloc.h.
123561 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
123563         * modules/gettext (Files): config/config.rpath ->
123564         build-aux/config.rpath
123565         * modules/iconv (Files): Likewise.
123566         Problem reported by Oskar Liljeblad.
123568 2005-03-23  Jim Meyering  <jim@meyering.net>
123570         * modules/check-include-files: New script to check for
123571         missing dependencies, multiple includes, etc.
123573         * modules/c-strtold (Depends-on): Add xalloc.
123574         * modules/c-strtod (Depends-on): Add xalloc.
123575         * modules/hash (Depends-on): Add xalloc.
123576         (Files): Remove lib/xalloc.h.
123578         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
123579         * modules/userspec (Files): Add lib/inttostr.h.
123581 2005-03-23  Jim Meyering  <jim@meyering.net>
123583         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
123585 2005-03-22  Jim Meyering  <jim@meyering.net>
123587         * modules/stat-macros: New module.
123588         * modules/canonicalize, modules/euidaccess, modules/file-type,
123589         * modules/filemode, modules/lchown, modules/makepath,
123590         * modules/rmdir, modules/stat: Depend on new stat-macros module
123591         rather than listing lib/stat-macros.h manually.
123592         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
123594 2005-03-22  Jim Meyering  <jim@meyering.net>
123596         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
123598 2005-03-22  Bruno Haible  <bruno@clisp.org>
123600         * config/srclist.txt: Replace target directory 'config' with
123601         'build-aux'.
123602         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
123603         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
123604         ../build-aux/.
123606 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
123608         * modules/chdir-long (Depends-on): Add mempcpy.
123610         * modules/acl, modules/backupfile, modules/c-strtod,
123611         modules/c-strtold, modules/canon-host, modules/canonicalize,
123612         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
123613         modules/exclude, modules/exitfail, modules/file-type,
123614         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
123615         modules/getdate, modules/getline, modules/getpagesize,
123616         modules/getpass, modules/getugroups, modules/group-member,
123617         modules/hard-locale, modules/hash, modules/human, modules/idcache,
123618         modules/inttostr, modules/long-options, modules/makepath,
123619         modules/md5, modules/memcasecmp, modules/memcoll,
123620         modules/modechange, modules/mountlist, modules/path-concat,
123621         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
123622         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
123623         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
123624         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
123625         modules/strftime, modules/strndup, modules/strverscmp,
123626         modules/timespec, modules/unlocked-io, modules/userspec,
123627         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
123628         modules/yesno:
123629         Remove lib_SOURCES line from Makefile.am section, as this is now
123630         done automatically by the corresponding Autoconf macro.
123632 2005-03-21  Jim Meyering  <jim@meyering.net>
123634         Changes imported from coreutils.
123636         * lib/cycle-check.c: Don't include xalloc.h.
123638         * lib/path-concat.c: Don't include assert.h.
123639         (path_concat): Remove assertion that would have triggered
123640         for ABASE starting with more than one slash.
123641         Reported by Andreas Schwab.
123643         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
123644         properly when ABASE is an absolute file name.
123645         Correct the description of this function.
123646         Include <assert.h>.
123647         Add an assertion and a test driver.
123648         This fixes a bug introduced on 2004-07-02.
123649         Andreas Schwab reported the resulting failure of cp --parents:
123650         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
123652 2005-03-21  Jim Meyering  <jim@meyering.net>
123654         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
123655         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
123657 2005-03-21  Jim Meyering  <jim@meyering.net>
123658         and  Paul Eggert  <eggert@cs.ucla.edu>
123660         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
123661         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
123662         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
123663         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
123664         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
123665         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
123666         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
123667         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
123668         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
123669         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
123670         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
123671         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
123672         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
123673         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
123674         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
123675         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
123676         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
123677         for these modules.
123679 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
123681         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
123682         (which shouldn't happen), generate nothing instead of returning 0
123683         immediately, so that nstrftime (NULL, ...) doesn't return 0.
123685 2005-03-16  Bruno Haible  <bruno@clisp.org>
123687         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
123688         HAVE_LONGLONG_64BIT.
123690 2005-03-16  Bruno Haible  <bruno@clisp.org>
123692         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
123693         HAVE_LONGLONG_64BIT.
123695 2005-03-16  Bruno Haible  <bruno@clisp.org>
123697         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
123698         HAVE_LONGLONG_64BIT.
123700 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
123702         * lib/strftime.c (my_strftime): Prepend space to format so that we can
123703         reliably distinguish strftime failure from empty output on POSIX
123704         hosts.
123706 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
123708         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
123709         (iconv_string): Don't guess a size-zero buffer, as that might cause
123710         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
123711         result would be 'too large', where 'too large' is (heuristically)
123712         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
123713         overflow concerns.  This will prevent some unwanted malloc failures
123714         when the inputs are very large.
123716 2005-03-15  Karl Berry  <karl@gnu.org>
123718         * config/srclist.txt (config.rpath): from gettext.
123719         * config/config.rpath: update.
123721 2005-03-15  Bruno Haible  <bruno@clisp.org>
123723         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
123724         to 'negate'.
123726         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
123727         variable.
123729         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
123730         results.
123732 2005-03-14  Simon Josefsson  <jas@extundo.com>
123734         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
123735         <fx@gnu.org>.
123737 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
123739         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
123740         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
123741         intprops.h.
123742         * lib/strtol.c: Likewise.
123744 2005-03-14  Jim Meyering  <jim@meyering.net>
123746         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
123747         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
123748         to be nonzero so that we (and caller) can detect the difference
123749         between a valid zero-length expansion and an error return, even
123750         when the underlying strftime fails before writing anything into
123751         that location.
123753 2005-03-14  Bruno Haible  <bruno@clisp.org>
123755         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
123756         Update from GNU gettext 0.14.3.
123758 2005-03-10  Jim Meyering  <jim@meyering.net>
123760         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
123762 2005-03-10  Jim Meyering  <jim@meyering.net>
123764         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
123765         so that this module works on systems without fchdir.
123767 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
123769         Factor int-properties macros into a single file, except for
123770         glibc-related files.
123771         * lib/intprops.h: New file.
123772         * lib/getloadavg.c: Include it instead of limits.h.
123773         (INT_STRLEN_BOUND): Remove.
123774         * lib/human.c: Include intprops.h.
123775         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
123776         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
123777         302/1000.
123778         * lib/inttostr.h: Include intprops.h instead of limits.h.
123779         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
123780         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
123781         for consistency with intprops.h.
123782         (time_t_is_integer, twos_complement_arithmetic): Use them.
123783         * lib/sig2str.h: Include <signal.h>, intprops.h.
123784         (INT_STRLEN_BOUND): Remove.
123785         * lib/strftime.c (TYPE_SIGNED): Remove.
123786         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
123787         * lib/strtol.c: Adjust comments to match intprops.h.
123788         * lib/userspec.c: Include intprops.h.
123789         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
123790         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
123791         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
123792         instead of rolling our own expressions.
123793         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
123795         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
123796         instead of int.
123797         (my_strftime): Do not mishandle years close to INT_MAX, by doing
123798         the right thing even if adding 1900 would overflow.  Similarly
123799         for tm_mon + 1 and tm_yday + 1.
123800         Make %Y always equivalent to %C%y, and similarly for %G and %g.
123801         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
123802         (DO_SIGNED_NUMBER): New macro.
123803         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
123805 2005-03-07  Bruno Haible  <bruno@clisp.org>
123807         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
123809 2005-03-07  Bruno Haible  <bruno@clisp.org>
123811         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
123813 2005-03-04  Derek R. Price  <derek@ximbiot.com>
123815         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
123816         (func_import): Only replace files via --import when they have actually
123817         changed.
123819 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123821         * m4/mmap-anon.m4: New file.
123822         * m4/pagealign_alloc.m4: New file.
123824 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123825             Bruno Haible  <bruno@clisp.org>
123827         * modules/pagealign_alloc: New file.
123828         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
123830 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123831             Bruno Haible  <bruno@clisp.org>
123833         * lib/pagealign_alloc.h: New file.
123834         * lib/pagealign_alloc.c: New file.
123836 2005-03-03  Bruno Haible  <bruno@clisp.org>
123838         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
123839         Use an all-permissive copyright notice, recommended by RMS.
123841 2005-03-02  Bruno Haible  <bruno@clisp.org>
123843         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
123844         of AIX, the replacement has to be done only after <string.h> is
123845         included, therefore not in config.h. stpncpy.h does the replacement,
123846         and stpncpy.c uses it.
123848 2005-03-02  Bruno Haible  <bruno@clisp.org>
123850         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
123851         stpncpy.c uses it.
123853 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123855         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
123856         The workaround isn't strictly needed for POSIX conformance, and
123857         it's too much of a pain to configure and maintain.  We'll ask
123858         people to fix their kernels instead.
123859         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
123860         (NANOSLEEP_BUG_WORKAROUND): Remove.
123861         (xnanosleep): Remove the workaround.
123863 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123865         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
123866         Reported by Derek Price.
123867         (Include): Add "timespec.h".
123869         * modules/xnanosleep (Depends-on): Remove gethrxtime.
123871 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123873         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
123874         to detect nanosleep bug.
123876 2005-03-01  Bruno Haible  <bruno@clisp.org>
123878         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
123880 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
123882         * modules/gethrxtime: New file.
123883         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
123884         (Depends-on): Add gethrxtime.
123885         (configure.ac): Add gl_XNANOSLEEP.
123886         (Makefile.am): Remove lib_SOURCES line.
123888 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123890         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
123891         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
123893 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123895         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
123896         * lib/timespec.h (gettime): Return void, since it always
123897         succeeds now.  All uses changed.
123898         * lib/gettime.c (gettime): Likewise.
123899         [HAVE_NANOTIME]: Prefer nanotime.
123900         Assume gettimeofday succeeds, as POSIX requires.
123901         Assime time () succeeds, since other code already does.
123902         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
123903         (timespec_subtract): Remove.
123904         (NANOSLEEP_BUG_WORKAROUND): New constant.
123905         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
123906         things considerably.  Use it only on GNU/Linux hosts, since the
123907         workaround shouldn't be needed elsewhere.
123909 2005-02-24  Bruno Haible  <bruno@clisp.org>
123911         * modules/gettext (Files): Add m4/glibc2.m4.
123913 2005-02-24  Bruno Haible  <bruno@clisp.org>
123915         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
123916         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
123917         * m4/progtest.m4:
123918         Update from GNU gettext 0.14.2.
123919         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
123921 2005-02-24  Bruno Haible  <bruno@clisp.org>
123923         * lib/localcharset.c: Update from GNU gettext 0.14.2.
123924         * lib/config.charset: Update from GNU gettext 0.14.2.
123926 2005-02-24  Bruno Haible  <bruno@clisp.org>
123928         * lib/gettext.h: Update from GNU gettext 0.14.2.
123930 2005-02-23  Simon Josefsson  <jas@extundo.com>
123932         * m4/iconvme.m4: New file.
123934 2005-02-23  Jim Meyering  <jim@meyering.net>
123936         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
123937         change.
123938         Thanks to Bruno Haible for catching it.
123940 2005-02-22  Simon Josefsson  <jas@extundo.com>
123942         * modules/iconvme: New file.
123944         * MODULES.html.sh: Add iconvme.
123946 2005-02-22  Simon Josefsson  <jas@extundo.com>
123948         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
123950 2005-02-22  Simon Josefsson  <jas@extundo.com>
123952         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
123954 2005-02-22  Jim Meyering  <jim@meyering.net>
123956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
123957         s/ifndef/ifdef/.
123959 2005-02-20  Neil Conway  <neilc@samurai.com>
123961         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
123962         returned by OSX/Darwin if the specified buffer is not large
123963         enough for the hostname.
123965 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123967         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
123968         pass it to _help, otherwise the latter coredumps trying to
123969         dereference state.root_argp.
123971 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123973         * modules/chdir-long (Depends-on): Add memrchr.
123974         * modules/memrchr (Files): Add lib/memrchr.h.
123975         (Include): "memrchr.h".
123977 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123979         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
123981 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123983         * lib/memrchr.h: New file.
123984         * lib/chdir-long.c: Include it.
123985         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
123986         Don't bother including stddef.h.
123988 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
123990         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
123991         inclusion.
123992         Include <sys/types.h>, for dev_t.
123993         (ME_DUMMY, ME_REMOTE): Move from here....
123994         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
123995         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
123996         Dmitry V. Levin.
123997         Include mountlist.h first, to test the interface.
123999 2005-01-29  Bruno Haible  <bruno@clisp.org>
124001         * lib/progname.c (program_name): Initialize.
124002         Needed when linking statically on MacOS X.
124004 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
124006         Sync from coreutils.
124007         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
124008         (Depends-on): Add c-strtod.
124009         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
124011 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
124013         Sync from coreutils.
124014         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
124016         Remove files that are specific to coreutils.
124017         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
124019 2005-01-28  Bruno Haible  <bruno@clisp.org>
124021         * modules/javacomp: New file.
124022         * MODULES.html.sh (Java): Add javacomp.
124024 2005-01-28  Bruno Haible  <bruno@clisp.org>
124026         * m4/javacomp.m4: New file, from GNU gettext.
124028 2005-01-28  Bruno Haible  <bruno@clisp.org>
124030         * lib/javacomp.sh.in: New file, from GNU gettext.
124031         * lib/javacomp.h: New file, from GNU gettext.
124032         * lib/javacomp.c: New file, from GNU gettext.
124034 2005-01-26  Simon Josefsson  <jas@extundo.com>
124036         * lib/gai_strerror.c: Use GPL in header.
124038 2005-01-26  Bruno Haible  <bruno@clisp.org>
124040         * modules/javaexec: New file.
124041         * MODULES.html.sh (Java): Add javaexec.
124043 2005-01-26  Bruno Haible  <bruno@clisp.org>
124045         * m4/javaexec.m4: New file, from GNU gettext.
124047 2005-01-26  Bruno Haible  <bruno@clisp.org>
124049         * lib/javaexec.sh.in: New file, from GNU gettext.
124050         * lib/javaexec.h: New file, from GNU gettext.
124051         * lib/javaexec.c: New file, from GNU gettext.
124053 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124055         * modules/lchown (Depends-on): Remove lchown.h
124057 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124059         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
124060         must be defined if the header file was not found, in order
124061         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
124063 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124065         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
124066         initializers for struct pentry_state.
124067         (__argp_error): Check return value of __asprintf
124068         (__argp_failure): Translate error message
124070         * lib/argp-parse.c: Removed braces around the expansion of N_()
124072 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
124074         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
124075         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
124076         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
124077         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
124078         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
124079         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
124080         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
124081         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
124082         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
124083         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
124084         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
124085         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
124086         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
124087         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
124088         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
124089         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
124090         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
124091         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
124092         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
124093         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
124094         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
124095         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
124096         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
124097         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
124098         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
124099         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
124100         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
124101         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
124102         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
124103         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
124104         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
124105         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
124106         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
124107         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
124108         xstrtol.m4, xstrtoumax.m4, yesno.m4:
124109         Use an all-permissive copyright notice, recommended by RMS.
124111 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
124113         * modules/chdir-long (Depends-on): Remove mempcpy.
124115 2005-01-21  Jim Meyering  <jim@meyering.net>
124117         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
124118         same value as for Solaris 9.
124120         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
124121         component length.  This included changing the parameter to be
124122         of type `char *' rather than `char const *'.
124123         * lib/chdir-long.h (chdir_long): Update prototype.
124125         * lib/openat.c (fdopendir, fstatat): New functions.
124126         * lib/openat.h: Include headers required for use of DIR and struct
124127         stat.
124128         [AT_SYMLINK_NOFOLLOW]: Define.
124129         (fdopendir, fstatat): Add prototypes.
124131 2005-01-21  Bruno Haible  <bruno@clisp.org>
124133         * modules/classpath: New file.
124134         * MODULES.html.sh (Java): Add classpath.
124136 2005-01-21  Bruno Haible  <bruno@clisp.org>
124138         * lib/classpath.h: New file, from GNU gettext.
124139         * lib/classpath.c: New file, from GNU gettext.
124141 2005-01-20  Simon Josefsson  <jas@extundo.com>
124143         * modules/version-etc-fsf: New file.
124145 2005-01-20  Simon Josefsson  <jas@extundo.com>
124147         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
124148         * lib/version-etc.c: Remove version_etc_copyright.
124149         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
124150         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
124152 2005-01-20  Simon Josefsson  <jas@extundo.com>
124154         * lib/base64.h (isbase64): Add.
124156         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
124157         using a unsigned prototype, don't inline.
124158         (base64_decode): Use it.
124160 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
124162         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
124163         it.
124165 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
124167         * lib/save-cwd.c (save_cwd): Remove code to support the case
124168         where fchdir is missing or flaky.
124170 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
124172         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
124174 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
124176         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
124177         AC_LIBSOURCES now does this.
124178         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
124179         with new ullong_max module.
124181 2005-01-19  Bruno Haible  <bruno@clisp.org>
124183         * modules/sh-quote: New file.
124184         * MODULES.html.sh (Executing programs): Add sh-quote.
124186 2005-01-19  Bruno Haible  <bruno@clisp.org>
124188         * lib/sh-quote.h: New file, from GNU gettext.
124189         * lib/sh-quote.c: New file, from GNU gettext.
124191 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
124193         Merge from coreutils.
124194         * m4/ullong_max.m4: New file.
124195         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
124196         (gl_MACROS): Assume localeconv exists.
124198 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
124200         Merge changes from coreutils, as described below in several
124201         changelogs dated today.
124203         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
124204         (O_DIRECTORY): Remove; not needed here, since "." must be
124205         a directory.  All uses removed.
124206         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
124207         universal on Suns, and we also need to test for IRIX.
124208         Revamp code to use 'if' rather than '#if'.
124209         Avoid unnecessary comparison of cwd->desc to 0.
124211         * lib/utimens.c (futimens): Robustify the previous patch, by checking
124212         for known valid error numbers rather than observed invalid ones.
124214 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
124216         * modules/ullong_max: New file.
124218         * modules/chdir-long, modules/openat: New files.
124219         * modules/save-cwd (Depends-on): Depend on chdir-long.
124220         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
124222 2005-01-18  Jim Meyering  <jim@meyering.net>
124224         Merge from coreutils.
124225         * m4/chdir-long.m4, m4/openat.m4: New files.
124226         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
124227         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
124228         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
124229         is sane and DOES follow symlinks.  Besides, testing 20 different
124230         systems found no broken chown implementations.
124231         Prompted by a change in rsync's copy of this macro.
124232         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
124234         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
124236         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
124237         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
124238         NULL-means-set-to-current-time semantics.
124239         Remove temporary file immediately, rather than waiting
124240         for configure's at-exit trap code to do it.
124242 2005-01-18  Jim Meyering  <jim@meyering.net>
124244         * lib/version-etc.c (version_etc_copyright): Update copyright date.
124246         * lib/utimens.c (futimens): Account for the fact that futimes
124247         can also fail with errno == ENOSYS or errno == ENOENT.
124248         Patch from Dmitry V. Levin.
124250         Change the name of the robust chdir function from chdir to chdir_long.
124251         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
124252         (restore_cwd): Use chdir_long, not chdir.
124253         * lib/chdir-long.c: Renamed from chdir.c.
124254         * lib/chdir-long.h: Renamed from chdir.h.
124255         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
124256         Hurd.
124258 2005-01-18  Bruno Haible  <bruno@clisp.org>
124260         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
124261         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
124262         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
124263         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
124264         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
124265         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
124266         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
124267         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
124268         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
124269         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
124270         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
124271         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
124272         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
124273         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
124274         Use an all-permissive copyright notice, recommended by RMS.
124276 2005-01-18  Bob Proulx  <bob@proulx.com>
124278         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
124279         simplify offsetof() macro construct to avoid compile failure with
124280         native HP-UX 11.0 ANSI C compiler.
124282 2005-01-17  Bruno Haible  <bruno@clisp.org>
124284         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
124285         redundant because stpncpy.m4 takes care of it.
124287 2005-01-17  Bruno Haible  <bruno@clisp.org>
124289         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
124291 2005-01-17  Bruno Haible  <bruno@clisp.org>
124293         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
124294         used.
124296 2005-01-17  Bruno Haible  <bruno@clisp.org>
124298         * lib/fwriteerror.h (fwriteerror): Change specification to include
124299         fclose.
124300         * lib/fwriteerror.c: Include <stdbool.h>.
124301         (fwriteerror): At the end, close the file stream. Record whether
124302         stdout was already closed.
124304 2005-01-17  Bruno Haible  <bruno@clisp.org>
124306         * lib/execute.c (environ): Declare if needed.
124307         * lib/pipe.c (environ): Likewise.
124308         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
124310 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124312         * modules/argp: Depend on vsnprintf
124314 2005-01-10  Jim Meyering  <jim@meyering.net>
124316         * modules/closeout (Depends-on): Add atexit.
124318 2005-01-06  Bruno Haible  <bruno@clisp.org>
124320         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
124322 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
124324         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
124325         definitions to be after all include files, to avoid collisions.
124326         Problem reported by Bob Proulx.
124328 2005-01-04  Jim Meyering  <jim@meyering.net>
124330         Changes imported from coreutils.
124331         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
124332         as the mkstemp template, use a temporary directory and an
124333         8.3-friendly template to avoid trouble on systems like DJGPP.
124334         Reported by Juan M. Guerrero via Stepan Kasal.
124335         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
124336         close. Remove the temporary directory right away, rather than waiting
124337         for configure's at-exit trap code to do it.
124338         Suggestion from Stepan Kasal.
124340 2005-01-01  Simon Josefsson  <jas@extundo.com>
124342         * gnulib-tool: Print #include directives when --import'ing.
124344 2004-12-28  Simon Josefsson  <jas@extundo.com>
124346         * tests/test-base64.c: Include required header files.  Remove
124347         unused variables.
124349 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
124351         * modules/error (Depends-on): Remove gettext.
124353 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
124355         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
124356         not needed.  This removes a dependency on the gettext module.
124357         [defined _LIBC]: Do not include <libintl.h>; not needed.
124359 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
124361         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
124362         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
124364 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
124366         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
124367         HAVE_DECL_STRTOLD.
124369 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
124371         * modules/getdate (Depends-on): Remove alloca-opt.
124373 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
124375         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
124377 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
124379         * lib/argp-parse.c: Include <stddef.h>.
124380         (alignof, alignto): New macros.
124381         (parser_init): Don't assume that void * is aligned sufficiently
124382         for struct option.
124384         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
124385         need to extend the stack.
124386         (YYINITDEPTH): New macro, so that the initial stack isn't overly
124387         large.
124389 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124391         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
124393 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
124395         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
124396         (2004-10-24) change.  Apparently this was a false alarm.
124398         * modules/getdate: Depend on alloca-opt, not alloca.
124400 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
124402         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
124403         Remove now-obsolete comment about AIX.
124404         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
124405         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
124406         (YYMAXDEPTH): New macro.
124408 2004-12-18  Simon Josefsson  <jas@extundo.com>
124410         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
124412 2004-12-18  Bruno Haible  <bruno@clisp.org>
124414         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
124416 2004-12-18  Bruno Haible  <bruno@clisp.org>
124418         * lib/fatal-signal.c (fatal_signals): Make non-const.
124419         (init_fatal_signals): New function.
124420         (uninstall_handlers, install_handlers): Ignore signals that were set to
124421         SIG_IGN.
124422         (at_fatal_signal): Call init_fatal_signals.
124423         (init_fatal_signal_set): Likewise. Ignore signals that were set to
124424         SIG_IGN.
124425         Reported by Paul Eggert.
124427 2004-12-18  Bruno Haible  <bruno@clisp.org>
124429         * doc/alloca.texi: New file.
124430         * doc/alloca-opt.texi: New file.
124432 2004-12-17  Jim Meyering  <jim@meyering.net>
124434         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
124435         Otherwise, install-sh could exit with improper exit status when
124436         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
124438 2004-12-16  Simon Josefsson  <jas@extundo.com>
124440         * tests/test-base64.c: Add license.
124442 2004-12-15  Stepan Kasal  <address@hidden>
124444         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
124446 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
124448         * modules/getcwd (Files): Add m4/d-ino.m4.
124449         Suggested by Mark D. Baushke.
124451 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
124453         * lib/getdate.y (textint): New member "negative".
124454         (time_zone_hhmm): New function.
124455         Expect 14 shift-reduce conflicts, not 13.
124456         (o_colon_minutes): New rule.
124457         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
124458         (yylex): Set the "negative" member of signed numbers.
124460 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
124462         * doc/getdate.texi (Time of day items, Time zone items):
124463         Describe new formats +00:00, UTC+00:00.
124465 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
124467         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
124468         spurious "-l"s.  Problem reported by Stepan Kasal.
124470 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
124472         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
124473         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
124475 2004-12-04  Simon Josefsson  <jas@extundo.com>
124477         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
124478         Vandoorselaere <yoann@prelude-ids.org>.
124480 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
124482         Changes imported from coreutils.
124483         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
124484         exist.
124485         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
124487 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
124489         Changes imported from coreutils.
124490         * lib/hard-locale.c: Assume <locale.h> exists.
124491         Include "strdup.h".
124492         (GLIBC_VERSION): New macro.
124493         (hard_locale): Assume setlocale exists.
124494         Rewrite to avoid #ifdef.
124495         Use strdup rather than malloc + strcpy.
124496         * lib/human.c: Assume <locale.h> exists.
124497         (human_readable): Assume localeconv exists.
124499 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
124501         * modules/hard-locale (Depends-on): Add strdup.
124503 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
124505         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
124506         convert T2, not T.  (Imported from libc.)
124508 2004-11-30  Simon Josefsson  <jas@extundo.com>
124510         * modules/restrict (License): Change to LGPL.
124512 2004-11-30  Simon Josefsson  <jas@extundo.com>
124514         * m4/restrict.m4: Add copyright and copying conditions.
124516 2004-11-30  Simon Josefsson  <jas@extundo.com>
124518         * m4/base64.m4: New file.
124520 2004-11-30  Simon Josefsson  <jas@extundo.com>
124522         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
124523         base64.
124525         * tests/test-base64.c: New file.
124527         * modules/base64: New file.
124529 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
124531         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
124532         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
124534         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
124536 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
124538         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
124539         (__getcwd.c): Don't restore errno; glibc doesn't.
124540         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
124541         first, falling back to our code only if its results look suspicious.
124542         Ensure that the resulting buffer is only as large as necessary.
124544         * lib/readutmp.c: Include readutmp.h first.
124545         Include <errno.h>, since readutmp.h no longer does that.
124546         * lib/readutmp.h: Don't include <errno.h>,
124547         <sys/param.h>, <time.h>; not needed to establish interface.
124548         (errno): Remove decl.
124549         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
124550         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
124551         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
124553 2004-11-28  Simon Josefsson  <jas@extundo.com>
124555         * lib/base64.h, base64.c: New file.
124557 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
124559         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
124561 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
124563         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
124564         (Depends-on): Remove pathmax, same.  Add mempcpy.
124565         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
124566         (Makefile.am): Append getcwd.h to lib_SOURCES.
124567         (Include): Add getcwd.h.
124568         (Maintainer): Change from Jim Meyering to "all, glibc",
124569         since getdate now uses intended-for-glibc code.
124570         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
124571         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
124573 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
124575         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
124576         HP's ANSI C compiler.
124577         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
124578         Declaring int functions causes warnings on some modern systems and
124579         shouldn't be needed to compile on ancient ones.
124580         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
124581         defined.
124583         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
124584         with the following changes.
124585         (__set_errno): Parenthesize properly.
124586         Include <stdbool.h>.
124587         (MIN, MAX, MATCHING_INO): New macros.
124588         (__getcwd): Define with prototype, not K&R form.
124589         Use heuristics to allocate default buffer on stack if possible.
124590         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
124591         behavior, and to avoid the PATH_MAX limit when computing
124592         ../../../../...
124593         Use MATCHING_INO to compare inode number to file.
124594         Check for arithmetic overflow in size calculations.
124595         Fix bug in reallocation of dot array that caused getcwd to fail
124596         on directories nested deeper than 75.
124597         Be more careful about saving errno on error.
124598         Do not use realloc; use only free+malloc, as this is a bit
124599         more flexible and avoids a needless copy operation.
124600         Do not inspect st_dev and st_ino for symbolic links; POSIX
124601         doesn't specify the latter.
124602         Check for closedir errors.
124603         Avoid needless casts.
124604         Use "#ifdef weak_alias" around weak_alias, to be like other
124605         glibc code.
124606         The following changes to getcwd.c have effect only when used in
124607         gnulib; they have no effect inside glibc proper.
124608         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
124609         as alloca isn't used.
124610         (alloca, __alloca): Likewise.
124611         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
124612         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
124613         unconditionally, as gnulib assumes C89 or better.
124614         Do not include <sys/param.h>.
124615         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
124616         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
124617         better.
124618         (NULL) [!defined NULL]: Remove; we assume C89 or better.
124619         Include <dirent.h> in a way that is compatible with modern Autoconf.
124620         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
124621         New macros, if not already defined.
124622         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
124623         Use "_LIBC", not "defined _LIBC", for consistency.
124624         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
124625         a mempcpy module.
124626         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
124627         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
124628         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
124629         credit only to Jim Meyering and adjust the copyright dates.
124630         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
124631         <stdlib.h>, <unistd.h>, "pathmax.h".
124632         Instead, include "xgetcwd.h" (first) and "getcwd.h".
124633         (INITIAL_BUFFER_SIZE): Remove.
124634         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
124636 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
124638         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
124639         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
124640         Use the _ONCE methods, for efficiency.
124641         Check for fcntl.h.  In test program, include <errno.h>
124642         and <fcntl.h> if available.  Remove old K&R cruft from
124643         test program.  Check for common errors in GNU/Linux,
124644         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
124645         don't do AC_LIBOBJ, as that's getcwd.m4's job.
124646         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
124647         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
124648         name accordingly.
124649         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
124650         accommodate new getcwd.c.
124651         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
124652         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
124653         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
124654         that's all we need now.
124656 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124658         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
124659         argp-parse.c depends on getopt internals, that means we should
124660         always use our getopt, to be on the safe side.
124661         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
124662         order not to spoil the result of an eventual previous invocation
124663         of gl_GETOPT_SUBSTITUTE.
124665 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124667         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
124668         redefinition warnings. To avoid them, include the defines
124669         in `#if !defined __need_getopt ... #endif'. The only place
124670         where __getopt_argv_const is used is in definitions
124671         of getopt_long and getopt_long_only below, which are as well
124672         protected by `#ifndef __need_getopt'.
124673         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
124674         __need_getopt after including <stdio.h> and <unistd.h> These
124675         headers might have defined it.
124677 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
124679         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
124681 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
124683         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
124684         (futimens): New function, which uses futimes if available.
124685         (futimens, utimens): Support timespec==NULL, with same semantics
124686         as utime and utimens.
124687         * lib/utimens.h (futimens): New decl.
124689 2004-11-23  Jim Meyering  <jim@meyering.net>
124691         * lib/getopt_.h: Remove trailing blanks.
124693 2004-11-23  Jim Meyering  <jim@meyering.net>
124695         * lib/__fpending.c: Add comment.
124697 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
124699         * modules/canonicalize (Depends-on): Add xreadlink.
124700         Problem reported by James Youngman.
124702 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
124704         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
124705         New macros.
124706         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
124707         optopt): Use them instead of invoking ## directly; otherwise, the
124708         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
124710 2004-11-19  Bruno Haible  <bruno@clisp.org>
124712         * lib/strtok_r.c: Move comments from here...
124713         * lib/strtok_r.h: ... to here.
124715 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124717         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
124718         implementations that mishandle size_t overflow.
124720 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124722         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
124723         might fail.  Problem reported by Yoann Vandoorselaere.
124724         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
124725         implementations that mishandle size_t overflow.
124727 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124729         * modules/canon-host (Depends-on): Add strdup.
124731 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124733         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
124735 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124737         * lib/canon-host.c: Include "strdup.h".
124738         (canon_host): Use getaddrinfo if available, so that IPv6 works.
124739         Use strdup instead of malloc/strcpy to duplicate strings.
124741         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
124742         (human_space_before_unit): New constant.
124743         * lib/human.c (human_readable): Support it.
124745         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
124746         (xgetcwd): Set errno correctly when failing.
124747         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
124748         the failure is actually due to a PATH_MAX problem.
124750         Further getopt changes to make it more likely that glibc will
124751         buy the changes back.
124752         * lib/getopt.c (POSIXLY_CORRECT): New constant.
124753         (getopt): Use it, so to preserve glibc semantic
124754         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
124755         when compiling for libc.
124756         * lib/getopt_.h (__getopt_argv_const): Bring it back.
124757         (getopt_long, getopt_long_only): Use it.
124759         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124760         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
124761         (getopt): Argv is now char * const *, as per standard.
124762         (_getopt_internal_r, _getopt_internal): Argv is now char **,
124763         not char *__getopt_argv_const *.
124764         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124765         _getopt_long_only_r): Likewise.
124766         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
124767         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124768         _getopt_long_r, _getopt_long_only_r): Likewise.
124769         * lib/getopt_.h (__getopt_argv_const): Remove.
124770         (getopt): Argv is now char * const *, as per standard.
124772         * lib/getdate.y (tORDINAL): New token.
124773         (day, relunit): Allow it for relative times.
124774         (relative_time_table): Use tORDINAL for ordinals.
124776 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124778         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
124779         Document that "second" isn't allowed as an ordinal number.
124781 2004-11-16  Jim Meyering  <jim@meyering.net>
124783         * modules/closeout (Depends-on): Add fpending.
124785 2004-11-15  Jim Meyering  <jim@meyering.net>
124787         * lib/closeout.c: Include "__fpending.h" once again.
124788         Include <stdbool.h>.
124789         (close_stdout): Don't fail just because stdout was closed initially,
124790         since some programs don't write to stdout in the normal course of
124791         operation (other than --version and --help), and we don't want this
124792         function to make e.g. `touch file >&-' fail.
124793         But do fail if it was closed and someone has tried to write to it.
124794         E.g., `printf foo >&-' must fail.
124796 2004-11-13  Jim Meyering  <jim@meyering.net>
124798         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
124800 2004-11-12  Simon Josefsson  <jas@extundo.com>
124802         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
124803         small doc fix is still pending.
124805 2004-11-11  Simon Josefsson  <jas@extundo.com>
124807         * modules/strtok_r: New file.
124809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124810         strtok_r.
124812 2004-11-11  Simon Josefsson  <jas@extundo.com>
124814         * m4/strtok_r.m4: New file.
124816         * m4/getopt.m4: Replace opterr.
124818 2004-11-11  Simon Josefsson  <jas@extundo.com>
124820         * lib/strtok_r.h, strtok_r.c: New file.
124822 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124824         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
124825         of replacing opterr, getopt, etc.  This should handle the
124826         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
124828 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124830         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
124831         we can stop lying to compilers about the constness of argv when we
124832         are compiled outside glibc.
124833         (getopt, getopt_long, getopt_long_only): Use it.
124834         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124835         _getopt_internal, getopt): Likewise.
124836         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124837         _getopt_long_only_r): Likewise.
124838         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124839         _getopt_long_r, _getopt_long_only_r): Likewise.
124841         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
124842         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
124843         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
124844         the other external symbols.
124845         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
124846         declaration, since the above renaming now works around collisions.
124848 2004-11-11  Jim Meyering  <jim@meyering.net>
124850         * lib/linebreak.c: Remove trailing blanks.
124851         * lib/alloca_.h: Likewise.
124852         * lib/acosl.c: Likewise.
124853         * lib/euidaccess.c: Likewise.
124854         * lib/allocsa.h: Likewise.
124856 2004-11-10  Simon Josefsson  <jas@extundo.com>
124858         * m4/getaddrinfo.m4: New file.
124860 2004-11-10  Simon Josefsson  <jas@extundo.com>
124862         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
124864 2004-11-10  Simon Josefsson  <jas@extundo.com>
124866         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124867         getaddrinfo.
124869         * modules/getaddrinfo: New file.
124871 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124873         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
124875 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124877         * lib/mktime.c (SHR): New macro, which is a portable
124878         substitute for >> that should work even on Crays.
124879         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
124880         Problem reported by Mark D. Baushke in
124881         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
124882         * lib/getdate.y (SHR): Likewise.
124883         (tm_diff): Use it.
124884         * lib/strftime.c (SHR): Likewise.
124885         (tm_diff): Use it.
124886         * lib/quotearg.c (struct quoting_options): Use unsigned int for
124887         quote_these_too, so that right shifts are well defined.  All uses
124888         changed.
124890 2004-11-10  Jim Meyering  <jim@meyering.net>
124892         Ensure that no close failure goes unreported.
124893         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
124894         return early when it seems there's nothing to flush.
124895         Don't include __fpending.h.
124897 2004-11-10  Jim Meyering  <jim@meyering.net>
124899         * modules/closeout (Depends-on): Remove fpending.
124901 2004-11-10  Jim Meyering  <jim@meyering.net>
124903         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
124905 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124907         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
124908         gl_FUNC_STRFTIME.
124909         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
124910         and AC_REQUIRE when possible, to avoid duplicate checks.
124911         Check for <wchar.h>.
124913 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124915         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
124917 2004-11-09  Bruno Haible  <bruno@clisp.org>
124919         * m4/sockpfaf.m4: New file.
124921 2004-11-05  Bruno Haible  <bruno@clisp.org>
124923         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
124924         Reported by Mark D. Baushke <mdb@cvshome.org>.
124926 2004-11-04  Bruno Haible  <bruno@clisp.org>
124928         2004-09-11  Bruno Haible  <bruno@clisp.org>
124929                 * allocsa.valgrind: New file.
124930         2004-02-06  Bruno Haible  <bruno@clisp.org>
124931                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
124932                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
124933                 Reported by Christopher Seip <chris.seip@hp.com>.
124935 2004-11-04  Bruno Haible  <bruno@clisp.org>
124937         * modules/allocsa (Files): Add lib/allocsa.valgrind.
124938         (Makefile.am): Distribute it.
124940 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
124942         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
124943         with errno == ERANGE if the buffer is too small.
124944         Problem reported by Mark D. Baushke.
124946 2004-11-03  Albert Chin  <china@thewrittenword.com>
124947             Paul Eggert  <eggert@cs.ucla.edu>
124949         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
124950         equivalent, substitute $ac_type for equivalent type rather than
124951         blindly using uint32_t *always* which won't work if uint32_t is not
124952         available.  Define _UINT32_T to work around typedef of uint32_t if
124953         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
124954         2.5.1.
124956 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124958         * m4/jm-macros.m4: Sync from coreutils.
124959         (gl_MACROS): Check for mbrlen, for pathchk.
124960         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
124962 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124964         * lib/xreadlink.c (MAXSIZE): New macro.
124965         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
124966         size does not exceed MAXSIZE.  Avoid cast.
124967         As suggested by Mark D. Baushke in
124968         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
124969         if readlink fails with buffer size just under MAXSIZE, try again
124970         with MAXSIZE.
124972 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124974         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
124976 2004-11-02  Derek R. Price  <derek@ximbiot.com>
124977         and  Paul Eggert  <eggert@cs.ucla.edu>
124979         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
124980         (get_date): Overparenthesize to avoid GCC warning.
124982 2004-11-02  Bruno Haible  <bruno@clisp.org>
124984         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
124985         returns void.
124987 2004-11-02  Bruno Haible  <bruno@clisp.org>
124989         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
124990         function returns void.
124992 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124994         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
124995         fflush_unlocked, flockfile, funlockfile, funlockfile,
124996         fputs_unlocked, putc_unlocked.
124998 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
125000         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
125001         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
125002         already declared.
125004 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
125006         * modules/getdate (Files): Add doc/getdate.texi.
125007         (Depends-on): Add setenv, xalloc.
125009 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
125011         * lib/getdate.y: Add support for TZ="foo" within a date string.
125012         Fix some bugs near time_t boundaries.  Reject dates with
125013         out-of-range components, e.g., "Sept 31".
125014         Include <stdlib.h>, "setenv.h", "xalloc.h".
125015         (ISDIGIT_LOCALE): Remove; unused.
125016         Note that the TZ and time functions used here are not reentrant.
125017         (mktime_ok, get_tz): New functions.
125018         (TZBUFSIZE): New constant.
125019         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
125020         This requires that we sometimes generate our own TZ="XXX..." setting.
125022 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
125024         * doc/getdate.texi: New file, from coreutils with modifications for
125025         the new TZ parsing.
125027 2004-10-27  Derek R. Price  <derek@ximbiot.com>
125029         * lib/mktime.c (not_equal_tm): Remove redundant check.
125031 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
125033         * modules/regex (lib_SOURCES): Add regex.c.
125034         Reported by James Youngman in
125035         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
125037 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
125039         * lib/getdate.y: Use Bison 1.875 features, and some minor
125040         code cleanups.  This change does not affect semantics.
125041         Don't include <stdlib.h>; no longer needed.
125042         Don't include unlocked-io.h; only the "#if TEST" code uses
125043         stdio, and performance isn't crucial there.
125044         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
125045         Bison 1.875 features as described below.
125046         All uses of "PC." replaced by "pc->".
125047         (YYSTYPE): Add a forward declaration.
125048         (yylex, yyerror): Use full prototypes in forward decls.
125049         Use "%pure-parser" rather than obsolescent "%pure_parser".
125050         Use %parse-param and %lex-param instead of obsolescent
125051         YYPARSE_PARAM and YYLEX_PARAM.
125052         (meridian_table, month_and_day_table, time_units_table,
125053         relative_time_table, time_zone_table, military_table,
125054         lookup_zone, lookup_word, get_date):
125055         Use NULL instead of 0 where appropriate.
125056         (to_hour): Avoid abort (), to avoid a dependency on
125057         stdlib.h.
125058         (yyerror, yylex): Now accepts parser_control * arg.
125059         (main) [TEST]: Use '\0' rather than 0 for char.
125061 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
125063         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
125065 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
125067         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
125068         It's now the caller's responsibility to handle the case where
125069         !HAVE_GETPAGESIZE && !defined getpagesize.
125071         * lib/mktime.c (leapyear): Arg is long int, not int.
125073 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
125075         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
125077 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
125079         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
125080         missing.  Problem reported by James Youngman.
125082 2004-10-16  Simon Josefsson  <jas@extundo.com>
125084         * gnulib-tool: Fix comments.  Fix parse problem.
125085         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
125087 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
125089         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
125090         implementation of getopt_long.  Problem reported by Alexander Taler in:
125091         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
125093 2004-10-15  Bruno Haible  <bruno@clisp.org>
125095         * gnulib-tool: Untabify. Initialize supplied_libname.
125096         (func_usage): More homogenous output.
125097         (func_modules_transitive_closure, func_modules_to_filelist,
125098         func_emit_lib_Makefile_am): New functions.
125099         (func_import): New function, extracted from big case statement. Use
125100         func_get_license, func_modules_transitive_closure,
125101         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
125102         opt_lgpl. Don't use test -a, as it's not portable.
125103         (func_create_testdir): Use func_modules_transitive_closure,
125104         func_modules_to_filelist, func_emit_lib_Makefile_am.
125106 2004-10-15  Bruno Haible  <bruno@clisp.org>
125108         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
125110 2004-10-15  Bruno Haible  <bruno@clisp.org>
125112         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
125113         the portions belonging to each module.
125114         Suggested by Derek Robert Price <derek@ximbiot.com>.
125116 2004-10-12  Simon Josefsson  <jas@extundo.com>
125118         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
125119         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
125120         to real functions.
125122 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125124         * modules/vsnprintf: New file.
125126 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125128         * m4/vsnprintf.m4: New file.
125130 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125132         * lib/vsnprintf.h: New file.
125133         * lib/vsnprintf.c: New file.
125135 2004-10-11  Bruno Haible  <bruno@clisp.org>
125137         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
125138         vsnprintf.
125140 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
125142         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
125144 2004-10-07  Bruno Haible  <bruno@clisp.org>
125146         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
125147         fits into the provided buffer.
125149 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
125151         * lib/diacrit.c, diacrit.h: Add GPL notice.
125153         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
125154         notice.
125155         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
125156         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
125157         This avoids a potential constant-folding bug.
125159 2004-10-05  Bruno Haible  <bruno@clisp.org>
125161         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
125162         for the declaration of strsep.
125164 2004-10-05  Bruno Haible  <bruno@clisp.org>
125166         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
125168 2004-10-04  Simon Josefsson  <jas@extundo.com>
125170         * modules/memmem: New file.
125171         * tests/test-memmem.c: New file.
125172         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
125174 2004-10-04  Simon Josefsson  <jas@extundo.com>
125176         * m4/memmem.m4: New file.
125178 2004-10-04  Simon Josefsson  <jas@extundo.com>
125180         * lib/memmem.h: New file.
125181         * lib/memmem.c: New file, taken from glibc.
125183 2004-10-04  Simon Josefsson  <jas@extundo.com>
125185         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
125186         '#ifdef USE_UNLOCKED_IO'.
125188 2004-10-04  Simon Josefsson  <jas@extundo.com>
125190         * config/srclist.txt: Add memmem from glibc.
125192 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
125194         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
125196         * modules/argmatch, modules/argp, modules/closeout, modules/error,
125197         modules/exclude, modules/getdate, modules/getline,
125198         modules/getndelim2, modules/getpass, modules/getpass-gnu,
125199         modules/getusershell, modules/linebuffer, modules/md5,
125200         modules/mountlist, modules/posixtm, modules/readtokens,
125201         modules/readutmp, modules/regex, modules/sha1,
125202         modules/version-etc, modules/yesno:
125203         Remove dependency on unlocked-io.
125205 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
125207         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
125209         * m4/unlocked-io.m4: Add copyright notice.
125210         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
125212 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
125214         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
125215         * lib/xmalloc.c (xmemdup): Likewise.
125216         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
125217         XFREE): Remove these long-obsolescent macros.
125218         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
125219         * lib/xstrdup.c: Remove.
125221         * lib/regex.c (re_comp): Cast gettext return value to char *,
125222         Problem reported by Martin Neitzel via Mark D. Baushke.
125224 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
125226         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
125227         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
125228         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
125229         regex.c, sha1.c, version-etc.c, yesno.c:
125230         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
125231         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
125232         the includer's responsibility.
125234         Sync from coreutils.
125236         * lib/modechange.c (mode_compile): Don't decrement a pointer that
125237         points to the start of a string, as the C Standard says the
125238         resulting behavior is undefined.
125240         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
125241         simple -> simple_backups, numbered_existing ->
125242         numbered_existing_backups, numbered -> numbered_backups
125243         to avoid shadowing problems.  All uses changed.
125244         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
125245         * lib/backupfile.c (check_extension, numbered_backup):
125246         Rename locals to avoid shadowing 'basename'.
125247         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
125248         once.
125250         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
125251         * lib/.cvsignore: Add getopt.h.
125253 2004-10-04  Bruno Haible  <bruno@clisp.org>
125255         * modules/README: New file.
125256         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
125257         not a module.
125259 2004-10-02  Jim Meyering  <jim@meyering.net>
125261         * lib/dirfd.h, getpagesize.h: Add copyright notice.
125263 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125265         * modules/strsep: New file.
125267 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125269         * m4/strsep.m4: New file.
125271 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
125273         * lib/strsep.h: New file.
125274         * lib/strsep.c: New file.
125276 2004-10-01  Simon Josefsson  <jas@extundo.com>
125278         * lib/snprintf.c (snprintf): Handle size==0.
125280 2004-10-01  Simon Josefsson  <jas@extundo.com>
125281             Bruno Haible  <bruno@clisp.org>
125283         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
125284         (snprintf): Declare 'args'.
125286 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
125288         * lib/snprintf.c: Remove comments as to why each header is needed.
125290 2004-10-01  Bruno Haible  <bruno@clisp.org>
125292         * MODULES.html.sh: Add strsep.
125294 2004-09-30  Simon Josefsson  <jas@extundo.com>
125296         * modules/snprintf: New file.
125298 2004-09-30  Simon Josefsson  <jas@extundo.com>
125300         * m4/snprintf.m4: New file.
125302 2004-09-30  Simon Josefsson  <jas@extundo.com>
125304         * lib/snprintf.h, lib/snprintf.c: New files.
125306 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
125308         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
125309         (hol_entry_help): Never translate an empty string.
125310         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
125311         * lib/argp.h (OPTION_NO_TRANS): New option.
125313 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
125315         * modules/argp (Maintainer): Replace Simon Josefsson
125316         by Sergey Poznyakoff.
125318 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
125320         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
125321         changes merged back into glibc.
125323 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
125325         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
125327 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
125329         * lib/xvasprintf.c: Include xalloc.h.
125330         (xvasprintf): Use xalloc_die, not xmalloc_die.
125332 2004-09-29  Bruno Haible  <bruno@clisp.org>
125334         * modules/alloca-opt: New file, derived from modules/alloca.
125335         * modules/allocsa: Depend on alloca-opt instead of alloca.
125336         * modules/setenv: Likewise.
125337         * modules/vasnprintf: Likewise.
125338         * MODULES.html.sh: Add alloca-opt.
125340 2004-09-28  Simon Josefsson  <jas@extundo.com>
125342         * gnulib-tool: New parameter --lgpl, to asseert that modules are
125343         LGPL, and to replace license template from GPL to LGPL.
125345 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
125347         * modules/dummy: Change license to LGPL.
125349 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
125351         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
125353 2004-09-24  Simon Josefsson  <jas@extundo.com>
125355         * modules/minmax (License): Change from GPL to LGPL.
125357 2004-09-23  Simon Josefsson  <jas@extundo.com>
125359         * gnulib-tool (--import): Typo.
125361 2004-09-23  Simon Josefsson  <jas@extundo.com>
125363         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
125365 2004-09-22  Bruno Haible  <bruno@clisp.org>
125367         * modules/*: Add 'License' field.
125368         * gnulib-tool: Accept --extract-license option.
125369         (func_get_license): New function.
125371 2004-09-21  Bruno Haible  <bruno@clisp.org>
125373         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
125374         Reported by Simon Josefsson.
125376 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
125378         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
125379         gl_AC_TYPE_LONG_LONG.
125381 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
125383         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
125385 2004-09-18  Simon Josefsson  <jas@extundo.com>
125386         and  Paul Eggert  <eggert@cs.ucla.edu>
125388         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
125389         calls with autoreconf.  Define GL_LIB.
125391 2004-09-14  Karl Berry  <karl@gnu.org>
125393         * config/srclist.txt: unsync setenv.c, sigh.
125395 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
125397         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
125398         Problem reported by Bruno Haible in:
125399         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
125401 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
125403         * config/srclist.txt: Comment out argp-pvh.c.
125405 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
125407         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
125408         in case some system header has #define'd it.  Problem reported by
125409         Soeren D. Schulze in
125410         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
125412 2004-09-09  Karl Berry  <karl@gnu.org>
125414         * regex.[ch]: delete from the root.  These were supposed to be
125415                 synced with emacs cvs, but this has not happened for about
125416                 a year, and anyway nothing else uses emacs regex.[ch].
125417                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
125418                 lib/regex[.ch] is untouched.
125420 2004-09-09  Bruno Haible  <bruno@clisp.org>
125422         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
125424 2004-09-09  Bruno Haible  <bruno@clisp.org>
125426         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
125427         modifications.
125428         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
125430 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
125432         * modules/xvasprintf: New file.
125433         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
125435 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
125437         * lib/xvasprintf.h: New file.
125438         * lib/xvasprintf.c: New file.
125439         * lib/xasprintf.c: New file.
125441 2004-09-08  Bruno Haible  <bruno@clisp.org>
125443         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
125445 2004-09-08  Bruno Haible  <bruno@clisp.org>
125447         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
125448         length is > INT_MAX.
125449         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
125450         more.
125452 2004-09-08  Bruno Haible  <bruno@clisp.org>
125454         * lib/stdint_.h: New file, taken from GNU clisp.
125456 2004-09-08  Bruno Haible  <bruno@clisp.org>
125457             Oskar Liljeblad  <oskar@osk.mine.nu>
125459         * modules/stdint: New file.
125460         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
125462 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
125464         Import from coreutils.
125465         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
125466         strings on unbounded length.  alloca's performance benefits aren't
125467         that important here.
125468         (V_STRDUP): Remove.
125469         (parse_with_separator): New function, with most of the internals
125470         of the old parse_user_spec.  Allow user to omit both user and group,
125471         for compatibility with FreeBSD.
125472         Clone only the user name, not the entire spec.
125473         Do not set *uid, *gid unless entirely successful.
125474         Avoid memory leak in some failing cases.
125475         Fix regression for USER.GROUP reported by Dmitry V. Levin in
125476         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
125477         (parse_user_spec): Rewrite to use parse_with_separator.
125479 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
125481         * modules/userspec: Don't depend on alloca.
125483 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
125485         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
125487 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
125489         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
125490         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
125491         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
125493 2004-08-16  Simon Josefsson  <jas@extundo.com>
125495         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
125496         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
125497         Add --dry-run for --import.
125498         Let user provided command line parameters override configure.ac
125499         settings.
125501 2004-08-12  Simon Josefsson  <jas@extundo.com>
125503         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
125504         as discussed with Paul Eggert in threads rooted at
125505         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
125506         and
125507         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
125508         Before, the test was empty, and relied on ELIDE_CODE in source
125509         code.)
125510         (gl_PREREQ_GETOPT): New macro.
125511         (gl_GETOPT): Use them.
125513 2004-08-12  Simon Josefsson  <jas@extundo.com>
125515         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
125516         * lib/getopt_.h: Renamed from getopt.h.
125518 2004-08-12  Simon Josefsson  <jas@extundo.com>
125520         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
125521         Change default library name from libfoo to libgnu.
125522         Now, if you have a configure.ac that says:
125523                 gl_SOURCE_BASE(gl)
125524                 gl_M4_BASE(gl/m4)
125525                 gl_MODULES(error getopt etcetera)
125526                 gl_INIT
125527         you can import all you need by running:
125528                 ../gnulib/gnulib-tool --import
125530         * modules/getopt (Files): Rename getopt.h to getopt_.h.
125531         (Makefile.am): Rewrite, use logic from argz.
125532         (Include): Use <getopt.h> instead of "getopt.h".
125534 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125536         * modules/argp (Files): Add m4/unlocked-io.m4.
125537         (Depends-on): Add extensions.
125539 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125541         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
125542         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
125543         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
125544         Check for program_invocation_name, program_invocation_short_name,
125545         flockfile, funlockfile, features.h, _getopt_long_only_r.
125547 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125549         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
125550         its complicated substitute.
125551         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
125552         and program_invocation_name.
125553         (__argp_basename) [!_LIBC]: Remove; the only use was
125554         replaced by its body.
125555         (__argp_short_program_name): Change condition from
125556         !defined __argp_short_program_name to
125557         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
125558         to match argp-namefrob.h.
125559         (__argp_failure): Don't assume strerror_r returns char *.
125560         * lib/argp-parse.c (N_): Define unconditionally.
125561         (argp_default_options): Fill out initializers with 0 to avoid
125562         gcc warnings.
125564 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
125566         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
125567         getopt1.c.
125569 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125571         Merge from coreutils.
125573         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
125575         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
125576         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
125578 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125580         Merge from coreutils.
125582         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
125583         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
125584         for Reliant Unix 5.43.
125586         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
125587         (union fooround): Use uintmax_t, not long int.
125588         The rest is a merge from libc:
125589         [defined _LIBC]: Include <shlib-compat.h>.
125590         (_obstack) [defined _LIBC]: Remove after 2.3.4.
125592         * lib/settime.c (settime): Recode to avoid warning with
125593         Sun Forte C 6U2.
125595         * lib/strverscmp.c: Convert to UTF-8.
125597 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
125599         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
125600         m4/uintmax_t.m4.
125602 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125604         * modules/xalloc-die: New file.
125605         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
125607         * modules/md5 (Files): Add m4/uint32_t.m4.
125608         * modules/sha1: Renamed from modules/sha.
125609         (Files):
125610         Rename lib/sha.h to lib/sha1.h.
125611         Rename lib/sha.c to lib/sha1.c.
125612         Rename m4/sha.m4 to m4/sha1.m4.
125613         (lib_SOURCES): Likewise.
125614         (configure.ac): Rename gl_SHA to gl_SHA1.
125615         (Include): sha.h -> sha1.h.
125617 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125619         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
125620         * m4/sha1.m4: Renamed from sha.m4.
125621         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
125623 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
125625         * lib/obstack.h (obstack_empty_p):
125626         Don't assume that chunk->contents is suitably aligned.
125627         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
125628         Likewise. Problem reported by Benno in
125629         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
125631         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
125632         readable.  This could be improved further but it'd take some work.
125634 2004-08-08  Simon Josefsson  <jas@extundo.com>
125636         * modules/xgethostname (Depends-on): Remove exit and error (not
125637         used).
125639         * modules/getpass-gnu: Add getpass.h.
125640         (Depends-on): Add stdbool.
125641         * modules/getpass: Add getpass.h.
125643 2004-08-08  Simon Josefsson  <jas@extundo.com>
125645         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
125646         Check getpass declaration.
125648 2004-08-08  Simon Josefsson  <jas@extundo.com>
125650         * lib/xgethostname.c: Don't include error.h (not used).
125652         * lib/getpass.h: Add.
125653         * lib/getpass.c: Include getpass.h first.
125655 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
125657         * lib/xalloc-die.c: New file.
125658         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
125659         All uses removed.
125660         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
125661         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
125662         xalloc-die.c.
125663         (_, N_, xalloc_die): Move to xalloc-die.c.
125664         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
125665         so that we needn't mess with xalloc_msg_memory_exhausted.
125667         * lib/sha1.h: Renamed from sha.h.
125668         (SHA1_H): Renamed from _SHA_H.
125669         (sha1_ctx): Renamed from sha_ctx.
125670         (sha1_init_ctx): Renamed from sha_init_ctx.
125671         (sha1_process_block): Renamed from sha_process_block.
125672         (sha1_process_bytes): Renamed from sha_process_bytes.
125673         (sha1_finish_ctx): Renamed from sha_finish_ctx.
125674         (sha1_read_ctx): Renamed from sha_read_ctx.
125675         (sha1_stream): Renamed from sha_stream.
125676         (sha1_buffer): Renamed from sha_buffer.
125677         * lib/sha1.c: Likewise; renamed from sha.c.
125678         Do not include <sys/types.h>.
125679         Include <stddef.h> rather than <stdlib.h>.
125681 2004-08-08  Bruno Haible  <bruno@clisp.org>
125683         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
125684         FILESYSTEM_PREFIX_LEN.
125685         * lib/progreloc.c: Likewise.
125686         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
125688 2004-08-06  Simon Josefsson  <jas@extundo.com>
125690         * modules/progname (Depends-on): Don't depend on stdbool.
125692 2004-08-06  Simon Josefsson  <jas@extundo.com>
125694         * modules/getsubopt: New file.
125695         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
125696         getsubopt.
125698 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125700         More merge from coreutils.
125702         * m4/utimens.m4, m4/utimecmp.m4: New files.
125703         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
125704         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
125705         prereq.m4, sha.m4: Import changes from coreutils.
125707 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125709         More merge from coreutils.
125710         * modules/raise, modules/readtokens0, modules/utimens:
125711         * modules/utimecmp, module/xnanosleep: New files.
125712         * modules/strftime: Add lib/strftime.h.
125713         Change include from <time.h> to "strftime.h".
125714         * modules/yesno: Add lib/yesno.h.
125715         * modules/backupfile: Remove lib/addext.c.
125716         * modules/euidaccess: Add stat-macros.h.
125717         * modules/canonicalize, modules/euidaccess,
125718         modules/filemode, modules/lchown, modules/makepath,
125719         modules/rmdir, modules/stat: Likewise.
125721 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125723         Merge from tar.
125724         * lib/argp-help.c (make_hol, hol_append): Don't assume that
125725         SIZE_MAX is a valid preprocessor constant.
125726         (__argp_basename): Change from "#ifndef _LIBC"
125727         to "#ifndef __argp_short_program_name", so that
125728         we don't compile these functions for tar.
125730         More merges from coreutils.
125731         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
125732         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
125733         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
125734         * lib/addext.c: Remove; no longer needed.
125735         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
125736         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
125737         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
125738         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
125739         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
125740         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
125741         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
125742         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
125743         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
125744         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
125745         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
125746         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
125747         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
125748         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
125749         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
125750         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
125751         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
125752         Import changes from coreutils.
125754 2004-08-05  Simon Josefsson  <jas@extundo.com>
125756         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
125758 2004-08-05  Simon Josefsson  <jas@extundo.com>
125760         * m4/getsubopt.m4: New file.
125762 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125764         Merge from coreutils.
125766         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
125767         * m4/getcwd-path-max.m4: New files.
125769         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
125770         FILESYSTEM_PREFIX_LEN ->
125771         FILE_SYSTEM_PREFIX_LEN.
125772         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
125773         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
125774         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
125775         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
125777         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
125778         prerequisite modules now handle the DOS stuff.
125779         Don't check for unistd.h.
125781 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125783         Merge from coreutils.
125785         * lib/.gdb-history: Remove; this doesn't belong here.
125787         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
125788         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
125789         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
125790         * lib/getcwd.c: New files.
125792         * lib/dirname.h: Include <stdbool.h>.
125793         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
125794         for consistency with POSIX terminology.  All uses changed.
125795         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
125796         (strip_trailing_slashes): Use bool for booleans.
125797         * lib/stripslash.c (strip_trailing_slashes): Likewise.
125799         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
125800         sometimes returns a positive errno value even when it succeeds.
125801         (print_errno_message) [!LIBC]: Fall back on strerror if
125802         __strerror_r fails.
125804         * lib/path-concat.c (mempcpy): Don't define if a system header defines
125805         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
125806         (longest_relative_suffix): New function.
125807         (path_concat): Use it.  Assume first argument is not NULL.
125808         Port to DOS.  Omit redundant separators.
125809         Report an error instead of returning NULL.
125810         Use mempcpy instead of memcpy.
125811         (xpath_concat): Remove: not declared or used.
125813         * lib/same.h: Include <stdbool.h>
125814         (same_name): Return bool, not int.
125815         * lib/same.c (same_name): Likewise.
125816         (errno): Don't declare; we assume C89 or better now.
125818         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
125819         if not already defined.
125821         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
125822         * lib/dup-safer.c (errno): Likewise.
125824 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125826         Merge from coreutils.
125827         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
125828         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
125829         * modules/path-concat: Don't depend on strdup.
125831 2004-08-03  Simon Josefsson  <jas@extundo.com>
125833         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
125834         * lib/progname.h: Don't include stdbool.h.
125836 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125838         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
125839         * MODULES.html.sh (func_all_modules): Remove fatal.
125841 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125843         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
125845 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125847         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
125848         working.
125850 2004-08-02  Simon Josefsson  <jas@extundo.com>
125852         * lib/getsubopt.h: New file, with comments from Bruno Haible.
125853         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
125854         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
125856 2004-08-01  Simon Josefsson  <jas@extundo.com>
125858         * lib/xgetdomainname.c: Include stdlib.h, for free().
125860 2004-07-19  Bruno Haible  <bruno@clisp.org>
125862         * MODULES.html.sh (func_all_modules): Add dummy.
125864 2004-07-16  Simon Josefsson  <jas@extundo.com>
125866         * modules/dummy: New file.
125868 2004-07-16  Simon Josefsson  <jas@extundo.com>
125870         * lib/dummy.c: New file.
125872 2004-07-16  Bruno Haible  <bruno@clisp.org>
125874         * lib/backupfile.h: Add extern "C" for C++.
125875         * lib/closeout.h: Likewise.
125876         * lib/copy-file.h: Likewise.
125877         * lib/findprog.h: Likewise.
125878         * lib/full-write.h: Likewise.
125879         * lib/pathname.h: Likewise.
125880         * lib/progname.h: Likewise.
125881         * lib/stpcpy.h: Likewise.
125882         * lib/stpncpy.h: Likewise.
125883         * lib/strcase.h: Likewise.
125884         * lib/strstr.h: Likewise.
125885         * lib/xalloc.h: Likewise.
125887         * lib/mbswidth.h: Add extern "C" for C++.
125888         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
125890 2004-07-13  Robert Millan  <robertmh@gnu.org>
125892         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
125894 2004-07-09  Simon Josefsson  <jas@extundo.com>
125896         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
125897         failed without this.)
125899 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125901         * modules/chown (Files): Add lib/fchown-stub.c, since
125902         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
125904 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125906         * lib/fchown-stub.c: New file.
125908 2004-06-24  Jim Meyering  <jim@meyering.net>
125910         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
125912 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125914         * modules/argz: Omit "#include".
125916         * MODULES.html.sh (func_all_modules): Add calloc, to match
125917         2004-06-01 addition of calloc module.
125919 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125921         * m4/argz.m4: New file, which is autoupdated from libtool.
125923 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125925         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
125926         libtool.
125928 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125930         * config/srclist-update: Don't insist on "USA." before the
125931         close-comment, as libtool omits the period and puts the */ on a
125932         separate line.
125933         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
125934         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
125936 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
125938         * modules/argz: New file.
125939         * MODULES.html.sh (func_all_modules): Add argz.
125941 2004-06-12  Jim Meyering  <jim@meyering.net>
125942         and  Paul Eggert  <eggert@cs.ucla.edu>
125944         * modules/hash (Files): Add lib/xalloc.h.
125945         * modules/pipe (Depends-on): Add wait-process.
125946         * modules/stat (Depends-on): Add xalloc.
125947         * modules/userspec (Files): Add lib/userspec.h.
125948         * modules/xstrto
125950         Upgrade from gettext-0.13.
125951         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
125952         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
125953         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
125955 2004-06-10  Jim Meyering  <jim@meyering.net>
125957         * lib/calloc.c: New file.
125959 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
125961         * lib/getdate.y (yylex): Allow space between sign and number.
125962         Problem reported by Dan Jacobson.
125964 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125966         Merge from coreutils CVS.
125968         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
125969         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
125970         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
125971         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
125972         xstrtol.m4: Fix copyright date and/or serial number.
125974         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
125975         See if we need an fchown replacement.
125976         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
125977         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
125978         and use the replacement function if we detect either defect.
125980         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
125981         gl_UTIMECMP.
125983 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125984         and  Jim Meyering  <jim@meyering.net>
125986         Merge from coreutils CVS.
125988         * lib/stat-macros.h: New file, with contents from file-type.h
125989         and coreutils' system.h.
125990         * lib/file-type.c: Include "stat-macros.h".
125991         * lib/file-type.h (file_type): Move all macro definitions to new file,
125992         stat-macros.h.
125994         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
125995         Wrap old code with this conditional.
125996         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
125997         function that does not dereference symlinks.
125998         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
126000         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
126001         dependency problems.
126002         (xreadlink): Accept new arg SIZE, for efficiency.
126003         All decls and uses changed.
126004         * lib/xreadlink.h: Include <stddef.h>, for size_t.
126006         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
126007         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
126009         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
126010         sysexits.h.
126012 2004-06-01  Jim Meyering  <jim@meyering.net>
126014         * m4/calloc.m4: New file.
126016 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
126018         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
126019         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
126020         Also, fix a typo in a diagnostic.
126022 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
126024         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
126025         or AC_FUNC_REALLOC.
126027 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
126029         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
126030         macros to be defined.
126031         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
126032         the allocator returns NULL because the requested size is zero.
126034 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
126036         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
126037         var.  Add comment explaining why libc still defines it.  This
126038         merges the following patch from glibc:
126039         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
126041 2004-05-20  Andreas Schwab  <schwab@suse.de>
126043         * m4/free.m4: Replace free if it not known to work, not the other
126044         way round.
126046 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
126048         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
126049         present in glibc since revision 1.1 of this file.
126050         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
126051         obstack_alignment_mask, obstack_alloc, obstack_base,
126052         obstack_blank, obstack_blank_fast, obstack_chunk_size,
126053         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
126054         obstack_grow0, obstack_init, obstack_int_grow,
126055         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
126056         obstack_next_free, obstack_object_size, obstack_ptr_grow,
126057         obstack_ptr_grow_fast, obstack_room): Remove declarations of
126058         nonexistent functions.
126060 2004-05-18  Karl Berry  <karl@gnu.org>
126062         * config/srclist.txt: break link for vasnprintf.c.
126064 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
126066         Port obstack to the AS/400, where pointers are 16 bytes wide and
126067         you cannot cast an integer to a valid pointer.  This patch is
126068         currently waiting to be integrated into glibc; see
126069         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
126071         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
126072         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
126073         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
126074         (struct obstack): temp member is now a union of a pointer and
126075         an integer, instead of an integer.  All integer uses changed.
126076         This does not affect the physical layout of struct obstack,
126077         except on hosts (like the AS/400) where the size or alignment of
126078         void * is greater than that of ptrdiff_t.
126079         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
126080         __STDC__)]: Store temporary in pointer member of union, not
126081         integer member.
126082         * lib/obstack.c: Include <stddef.h>, for offsetof.
126083         (struct fooalign): Remove; it doesn't need a name.
126084         (union fooround): Change double to long double, and add void *.
126085         (DEFAULT_ALIGNMENT): Use offsetof to compute.
126086         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
126087         not a macro.  Hence the values are always int; so remove all
126088         casts-to-int in uses.
126090 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
126092         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
126093         we can get this patch merged into glibc.
126095 2004-05-17  Derek R. Price  <derek@ximbiot.com>
126096             Paul Eggert  <eggert@cs.ucla.edu>
126098         * m4/argp: Depend on alloca.
126100 2004-05-17  Derek R. Price  <derek@ximbiot.com>
126101             Paul Eggert  <eggert@cs.ucla.edu>
126103         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
126104         freecoding.
126106 2004-05-17  Bruno Haible  <bruno@clisp.org>
126108         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
126109         precision that consists of a '.' followed by an empty digit string.
126110         Patch by Tor Lillqvist <tml@iki.fi>.
126112 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
126114         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
126115         for backward compatibility with older code.  We need our own
126116         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
126117         it under some other name, and our alloca.h will define it.
126119 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
126120             Derek Price  <derek@ximbiot.com>
126122         * lib/alloca.c: Include <alloca.h>, to get our interface.
126123         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
126124         include <alloca.h> first.  Use C89 prototype for alloca; this
126125         requires including <stddef.h> for size_t.  Use extern "C" if C++.
126126         Use #elif for simplicity, since we can assume C89 now.
126127         Don't try to source the system alloca.h since it will not be found
126128         and to prevent recursively including its replacement.
126129         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
126130         * lib/regex.c: Likewise.
126132 2004-05-16  Derek Price  <derek@ximbiot.com>
126133             Paul Eggert  <eggert@cs.ucla.edu>
126135         getline cleanup.  This changes the getndelim2 API: both order of
126136         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
126137         no delimiter).
126139         * lib/getline.c: Don't include stddef.h or stdio.h, since our
126140         interface does that.
126141         (getline): Always use getdelim, so that we don't have two
126142         copies of this code.
126143         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
126144         if available.
126145         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
126146         (GETNDELIM2_MAXIMUM): New macro.
126147         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
126148         instead of the old practice of delim2==0.  All callers changed.
126149         Return -1 on overflow, instead of returning junk.
126150         Do not set *linesize unless allocation succeeds.
126151         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
126152         that we include sys/types.h.
126153         * lib/getnline.h: Likewise.
126154         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
126155         (getndelim2): Reorder arguments.
126156         * lib/getnline.c (getnline, getndelim):
126157         Don't discard the NMAX argument.
126158         (getnline): Invoke getndelim, to avoid code duplication.
126159         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
126160         of (size_t) -1 by callers of the getnline family.
126162 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
126164         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
126165         Check for gettimeofday.
126166         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
126167         Check for settimeofday, stime.
126169 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
126171         * lib/nanosleep.c (suspended): Change its type from int to
126172         sig_atomic_t volatile.
126173         (first_call): Make it private to rpl_nanosleep, and have it
126174         be zero initially as that's a bit faster.
126175         (my_usleep): Round up fractional times instead of truncating them,
126176         as this is the usual meaning for 'sleep'.
126178         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
126179         doesn't work.
126180         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
126181         (ENOSYS): Define if not defined.
126182         (settime): Fall back on stime if it exists and settimeofday fails.
126183         But don't bother with fallbacks if a method fails with errno == EPERM.
126185 2004-05-11  Jim Meyering  <jim@meyering.net>
126187         Prior to this change, the save_cwd caller required read access to the
126188         current directory on most systems (ones with the fchdir function).
126190         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
126191         fails, try write-only, and finally, resort to using xgetcwd.
126193 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
126195         * lib/obstack.c, obstack.h: Import changes from libc.
126197 2004-04-28  Bruno Haible  <bruno@clisp.org>
126199         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
126200         also implicitly appends .exe to executables.
126201         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
126202         accepts Windows pathnames.
126203         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
126204         Treat Cygwin like Windows, since it now accepts Windows pathnames.
126205         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
126206         Treat Cygwin like Windows, since it now accepts Windows pathnames.
126207         Reported by Derek Robert Price <derek@ximbiot.com>.
126209 2004-04-21  Karl Berry  <karl@gnu.org>
126211         * config/srclist.txt (localcharset.c): break sync.
126213 2004-04-20  Paul Eggert  <eggert@twinsun.com>
126215         * m4/host-os.m4: Add a copyright notice.
126217 2004-04-20  Jim Meyering  <jim@meyering.net>
126219         Change UTILS_ to gl_ in AC_DEFINE'd names.
126220         Change utils_- and jm_-prefixed variables, too.
126221         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
126222         UTILS_FUNC_MKDIR_TRAILING_SLASH.
126223         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
126225         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
126226         Don't emit trailing blanks.
126227         Also rename jm_-prefixed variables to have gl_ prefix.
126229         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
126230         Also rename jm_-prefixed variables to have gl_ prefix.
126232         * m4/jm-macros.m4: Reflect the renamings.
126233         * m4/prereq.m4: Likewise.
126235 2004-04-20  Jim Meyering  <jim@meyering.net>
126237         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
126238         memory.
126240 2004-04-20  Jim Meyering  <jim@meyering.net>
126241             Bruno Haible  <bruno@clisp.org>
126243         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
126244         memory when realloc fails.
126246 2004-04-19  Jim Meyering  <jim@meyering.net>
126248         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
126249         now that readutmp.c may call `free (0)'.
126251 2004-04-19  Bruno Haible  <bruno@clisp.org>
126253         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
126254         * m4/inttypes_h.m4: Likewise.
126255         * m4/stdint_h.m4: Likewise.
126256         * m4/intmax_t.m4: Likewise.
126257         * m4/uintmax_t.m4: Likewise.
126259 2004-04-18  Jim Meyering  <jim@meyering.net>
126261         * m4/prereq.m4: Don't forbid jm_ prefix.
126263         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
126264         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
126265         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
126266         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
126267         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
126268         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
126269         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
126270         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
126271         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
126272         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
126273         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
126274         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
126275         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
126276         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
126277         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
126278         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
126279         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
126280         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
126281         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
126283 2004-04-18  Jim Meyering  <jim@meyering.net>
126285         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
126286         failure, don't leak memory and do call END_UTMP_ENT.
126288 2004-04-16  Jim Meyering  <jim@meyering.net>
126290         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
126291         coreutils' stat program.
126292         (gl_PREREQ): Don't require jm_PREREQ_STAT.
126294 2004-04-11  Paul Eggert  <eggert@twinsun.com>
126296         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
126297         C89.
126298         (CHAR_BIT): Remove, since we assume C89.
126299         Include <stdint.h> if available, as per current Autoconf CVS advice.
126301 2004-03-31  Jim Meyering  <jim@meyering.net>
126303         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
126304         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
126305         * m4/xalloc.m4: Likewise.
126307 2004-03-30  Paul Eggert  <eggert@twinsun.com>
126309         Merge from coreutils.
126311         * m4/inttostr.m4: New file.
126312         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
126313         Require AM_STDBOOL_H and gl_TIMESPEC instead.
126314         Require gl_CLOCK_TIME.
126315         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
126317 2004-03-30  Paul Eggert  <eggert@twinsun.com>
126319         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
126320         not bool, to be more consistent with Unix conventions.
126321         Suggested by Bruno Haible.
126323         Merge from coreutils.
126325         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
126326         * lib/umaxtostr.c: New files.
126328         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
126329         the usual <time.h> dance.
126330         (get_date): Change signature to support fractional time stamps.
126331         All callers changed.
126332         * lib/getdate.y: Include "getdate.h" first, as we can now
126333         assume C89 and don't need to worry about 'const'.
126334         Similarly, include "unlocked-io.h" near start, not in middle.
126335         Include <limits.h>.
126336         (textint.value): Use long int rather than int.
126337         (textint.digits): Use size_t rather than int.
126338         (BILLION, LOG10_BILLION): New constants.
126339         (parser_control): New member rel_ns.  Members day_ordinal,
126340         time_zone, month, day, hour, minutes, rel_year, rel_month,
126341         rel_day, rel_hour, rel_minutes, rel_seconds
126342         are now long int, not int.  Member seconds is now struct timespec,
126343         not int.  New member timespec_seen.  Members dates_seen, days_seen,
126344         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
126345         not int.
126346         (%union.intval): Now long int, not int.
126347         New member timespec.
126348         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
126349         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
126350         (spec): Now is a timespec or an item list.
126351         (timespec, items): New nonterminals.
126352         (time, rel, relunit, number, get_date):
126353         Add support for fractional seconds.
126354         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
126355         (gmtime, localtime, mktime): Remove decls; not needed with C89.
126356         (to_hour): First arg is now long int, not int.
126357         (to_year): Returns long int, not int.
126358         Don't treat year -70 like 70.
126359         (tm_diff): Returns long int, not int.
126360         (lookup_word): Use bool instead of int when appropriate.
126361         (yylex): Use size_t for count, not int.
126362         Detect overflow when parsing large integer constants.
126363         Add support for fractions.
126364         (get_date): Make pointers 'const' if possible.
126365         Use more-portable code to detect integer overflow.
126366         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
126367         Don't use ctime; it's not reliable if the year has >4 digits.
126369         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
126370         This is for compatibility with BSD.
126372         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
126373         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
126374         From coreutils' system.h.
126376         * lib/userspec.c: Don't include "posixver.h".
126377         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
126378         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
126379         compatible extension.  Simplify code by removing a boolean int
126380         that was always nonzero if a string was nonnull.
126382 2004-03-30  Jim Meyering  <jim@meyering.net>
126384         Merge from coreutils.
126386         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
126387         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
126388         on some systems one must include <grp.h> before it.
126389         Reported by Christian Krackowizer.
126391 2004-03-30  Jim Meyering  <jim@meyering.net>
126393         Merge from coreutils.
126395         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
126397         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
126398         an empty input stream.
126400         * lib/readtokens.c: Include <stdbool.h>.
126401         (readtoken): Use `size_t' rather than int/long.
126402         All callers adjusted.
126403         Use `bool' rather than `int' where appropriate.
126404         Use memset rather than an explicit loop.
126405         Use x2nrealloc rather than xrealloc.
126406         Allow the use of `\0' as a delimiter.
126407         (readtokens): Likewise.
126408         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
126410 2004-03-30  Jim Meyering  <jim@meyering.net>
126412         * m4/realloc.m4: Remove file, since now it does no more than
126413         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
126414         the `configure.ac' section of module/realloc.
126415         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
126417 2004-03-30  Bruno Haible  <bruno@clisp.org>
126419         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
126420         nonnull.
126422 2004-03-29  Paul Eggert  <eggert@twinsun.com>
126424         Merge changes to getloadavg.c from coreutils and Emacs.
126426         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
126427         Define to an expression, not to the empty string.
126428         Include cloexec.h and xalloc.h.
126429         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
126430         Use set_cloexec_flag rather than rolling our own.
126431         * lib/cloexec.c, lib/cloexec.h: New files.
126433 2004-03-29  Paul Eggert  <eggert@twinsun.com>
126435         * m4/cloexec.m4: New file.
126437 2004-03-18  Paul Eggert  <eggert@twinsun.com>
126439         * lib/getopt.h: Sync with libc CVS.
126441 2004-03-18  Paul Eggert  <eggert@twinsun.com>
126442             Bruno Haible  <bruno@clisp.org>
126444         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
126445         mbswidth.
126447 2004-03-18  Paul Eggert  <eggert@twinsun.com>
126448             Bruno Haible  <bruno@clisp.org>
126450         * lib/mbswidth.h: Include <wchar.h> only if
126451         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
126452         <wchar.h>.
126453         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
126455 2004-03-09  Paul Eggert  <eggert@twinsun.com>
126457         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
126458         Sync with libc CVS.
126459         * lib/getopt_int.h: New file, also synced from libc.
126461 2004-03-09  Paul Eggert  <eggert@twinsun.com>
126463         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
126464         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
126465         Bring back getopt.c, getopt.h, getopt1.c.
126467 2004-03-07  Paul Eggert  <eggert@twinsun.com>
126469         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
126470         All uses changed.  Check for sa_sigaction member; this fixes
126471         a bug first reported by Jason Andrade in
126472         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
126474 2004-03-07  Paul Eggert  <eggert@twinsun.com>
126476         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
126477         '#if' expressions.  Unlike the code it replaces, it does not
126478         depend on (defined _SC_PAGESIZE).  However, it does depend on
126479         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
126480         first reported by Jason Andrade in
126481         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
126483 2004-02-25  Simon Josefsson  <jas@extundo.com>
126485         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
126487 2004-02-25  Simon Josefsson  <jas@extundo.com>
126489         * lib/strdup.h: New file.
126490         * lib/strdup.c: Include it.
126491         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
126492         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
126494 2004-02-23  Karl Berry  <karl@gnu.org>
126496         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
126497         (from fencepost.gnu.org:/gd/gnuorg).
126499 2004-02-23  Karl Berry  <karl@gnu.org>
126501         * config/srclistvars.sh (GNUORG) [karl]: redefine.
126502         * config/srclist.txt: add maintain/standards documents.
126504 2004-02-18  Bruno Haible  <bruno@clisp.org>
126506         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
126507         Reported by Derek Robert Price <derek@ximbiot.com>.
126509 2004-02-16  Karl Berry  <karl@gnu.org>
126511         * config/mkinstalldirs, install-sh: update from automake.
126513 2004-02-06  Karl Berry  <karl@gnu.org>
126515         * m4/po.m4: update from gettext 0.14.1.
126517 2004-02-06  Karl Berry  <karl@gnu.org>
126519         * lib/config.charset: update from gettext 0.14.1.
126521 2004-02-05  Paul Eggert  <eggert@twinsun.com>
126523         Add comments and code, prompted by suggestions from Bruno Haible
126524         for sh-quote.
126525         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
126526         describing the enum quoting_style values.
126527         * lib/quotearg.c (quotearg_alloc): New function.
126528         (quotearg_buffer_restyled): Treat lone { and } as special.
126529         Treat = as special.  Work around bug with older shells
126530         that "see" a '\' that is really the 2nd byte of a multibyte char.
126531         Quote empty string with shell_quoting_style.
126533 2004-02-03  Bruno Haible  <bruno@clisp.org>
126535         * m4/pipe.m4: New file, from GNU gettext.
126537 2004-02-03  Bruno Haible  <bruno@clisp.org>
126539         * lib/pipe.h: New file, from GNU gettext.
126540         * lib/pipe.c: New file, from GNU gettext.
126542 2004-01-27  Bruno Haible  <bruno@clisp.org>
126544         * m4/execute.m4: New file, from GNU gettext.
126546 2004-01-27  Bruno Haible  <bruno@clisp.org>
126548         * lib/execute.h: New file, from GNU gettext.
126549         * lib/execute.c: New file, from GNU gettext.
126550         * lib/w32spawn.h: New file, from GNU gettext.
126552 2004-01-24  Paul Eggert  <eggert@twinsun.com>
126554         Merge from diffutils.
126556         * lib/file-type.c (file_type): Add typed memory objects.
126557         * lib/file-type.h (S_TYPEISTMO): New macro.
126559         * lib/c-stack.h (c_stack_action): Remove argv argument.
126560         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
126561         (die): Don't calculate message unless segv_action returns.
126562         (get_stack_location, min_address_from_argv, max_address_from_argv,
126563         volatile stack_base, volatile_stack_size): Remove.
126564         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
126565         that every segmentation violation is a stack overflow.  (Ouch!)
126566         See Debian bug 136249 (still outstanding) for more info about why
126567         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
126569 2004-01-24  Paul Eggert  <eggert@twinsun.com>
126571         Exit-status fix from coreutils.
126573         Use exit_failure consistently in place of EXIT_FAILURE,
126574         so that program exit statuses are consistent on failure.
126576         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
126577         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
126578         * lib/argmatch.h: Comment fix to match the above.
126579         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
126580         Now a macro referring to exit_failure, instead of a separate
126581         variable.  Include "exitfail.h" to get it.
126582         * lib/xstrtol.h: Include "exitfail.h".
126583         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
126585         * lib/long-options.c (parse_long_options): Use prototype
126586         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
126587         for clarity.
126589 2004-01-21  Jim Meyering  <jim@meyering.net>
126591         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
126592         so as not to conflict with a different-sized __mktime_internal
126593         function in GNU libc.
126594         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
126595         Problem building statically-linked `ls' reported by Michael Brunnbauer.
126597 2004-01-20  Karl Berry  <karl@gnu.org>
126599         * config/config.guess: update from config.
126601         * config/srclistvars.sh: GNUWWWLICENSES for karl.
126603 2004-01-20  Bruno Haible  <bruno@clisp.org>
126605         Safer stack allocation.
126606         * lib/setenv.c: Include allocsa.h.
126607         (alloca): Remove fallback definition.
126608         (freea): Remove macro.
126609         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
126610         instead of freea.
126612 2004-01-20  Bruno Haible  <bruno@clisp.org>
126614         * m4/eealloc.m4: New file, from GNU gettext.
126616 2004-01-20  Bruno Haible  <bruno@clisp.org>
126618         * m4/allocsa.m4: New file, from GNU gettext.
126620 2004-01-20  Bruno Haible  <bruno@clisp.org>
126622         * lib/xallocsa.h: New file, from GNU gettext.
126623         * lib/xallocsa.c: New file, from GNU gettext.
126625 2004-01-20  Bruno Haible  <bruno@clisp.org>
126627         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
126629 2004-01-20  Bruno Haible  <bruno@clisp.org>
126631         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
126632         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
126633         specially.
126635 2004-01-20  Bruno Haible  <bruno@clisp.org>
126637         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
126638         patch.
126640 2004-01-20  Bruno Haible  <bruno@clisp.org>
126642         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
126644 2004-01-20  Bruno Haible  <bruno@clisp.org>
126646         * lib/eealloc.h: New file.
126648 2004-01-20  Bruno Haible  <bruno@clisp.org>
126650         * lib/binary-io.h: Avoid warnings on Cygwin.
126652 2004-01-20  Bruno Haible  <bruno@clisp.org>
126654         * lib/allocsa.h: New file, from GNU gettext.
126655         * lib/allocsa.c: New file, from GNU gettext.
126657 2004-01-18  Karl Berry  <karl@gnu.org>
126659         * doc/gpl.texi, doc/lgpl.texi: new files.
126661 2004-01-18  Karl Berry  <karl@gnu.org>
126663         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
126664         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
126666 2004-01-15  Paul Eggert  <eggert@twinsun.com>
126668         Merge from coreutils.
126670         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
126671         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
126672         (gl_DEFAULT_POSIX2_VERSION): Move
126673         the documentation from 'configure' into 'config.hin',
126674         so that 'configure --help' isn't burdened by it and
126675         we don't have to worry about its formatting there.
126676         Reword the documentation so that it's more succinct
126677         and can be run together into a single paragraph.
126678         * m4/same.m4 (gl_SAME): Check for pathconf.
126680 2004-01-15  Paul Eggert  <eggert@twinsun.com>
126682         Merge from coreutils.
126684         * lib/posixver.c: Include posixver.h.
126686         * lib/same.c: Include <stdbool.h>, <limits.h>.
126687         (_POSIX_NAME_MAX): Define if not defined.
126688         (MIN): New macro.
126689         (same_name): If file names are silently truncated, report
126690         that the file names are the same if they are the same after
126691         the silent truncation.
126693         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
126694         conversion function.
126695         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
126696         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
126697         longer needed.
126699 2004-01-15  Jim Meyering  <jim@meyering.net>
126701         Merge from coreutils.
126703         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
126704         if no library is required.
126705         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
126706         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
126707         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
126708         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
126709         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
126710         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
126711         value, $ac_cv_search_crypt, if it's "none required".
126712         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
126713         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
126714         not gl_FUNC_GETLOADAVG.
126715         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
126716         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
126718 2004-01-15  Jim Meyering  <jim@meyering.net>
126720         Merge from coreutils.
126722         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
126723         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
126724         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
126726         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
126727         optional configure-time default.
126729         * lib/version-etc.c (version_etc_copyright): Update copyright date.
126731         * lib/xreadlink.c (xreadlink): Correct outdated comment.
126733 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
126735         Merge from coreutils.
126737         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
126738         value, $ac_cv_search_nanosleep, if it's "none required".
126740 2004-01-14  Paul Eggert  <eggert@twinsun.com>
126742         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
126743         with like-named macro in fnmatch.c.
126744         (EXT): Use an internal constant instead.
126746         Merge fnmatch patches from glibc.
126747         * lib/fnmatch.c (mbsinit): Remove define.
126748         Add libc_hidden_ver (__fnmatch, fnmatch).
126749         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
126750         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
126752 2004-01-14  Karl Berry  <karl@gnu.org>
126754         * config/install-sh: update from automake.
126756 2004-01-13  Karl Berry  <karl@gnu.org>
126758         * config/install-sh: update from automake.
126760 2004-01-09  Karl Berry  <karl@gnu.org>
126762         * config/install-sh: update from automake.
126764 2004-01-05  Karl Berry  <karl@gnu.org>
126766         * config/config.{sub,guess}: update from config.
126768 2003-12-31  Karl Berry  <karl@gnu.org>
126770         * config/depcomp: update from automake.
126772 2003-12-14  Karl Berry  <karl@gnu.org>
126774         * lib/config.charset: update from gettext-runtime.
126776 2003-12-03  Paul Eggert  <eggert@twinsun.com>
126778         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
126779         Bug reported by Alfred M. Szmidt.
126781 2003-12-03  Bruno Haible  <bruno@clisp.org>
126783         * m4/gettext.m4: Upgrade from gettext-0.13.
126784         * m4/po.m4: Upgrade from gettext-0.13.
126785         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
126786         * m4/intmax.m4: New file, from gettext-0.13.
126787         * m4/printf-posix.m4: New file, from gettext-0.13.
126789 2003-11-29  Karl Berry  <karl@gnu.org>
126791         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
126793 2003-11-25  Paul Eggert  <eggert@twinsun.com>
126794             Bruno Haible  <bruno@clisp.org>
126796         * lib/printf-parse.h: Don't include sys/types.h.
126797         (ARG_NONE): New macro.
126798         (char_directive): Change type of *arg_index fields to size_t.
126799         * lib/printf-parse.c: Don't include sys/types.h.
126800         (SSIZE_MAX): Remove macro.
126801         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
126802         Remove unnecessary overflow check.
126803         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
126804         fields.
126806 2003-11-25  Bruno Haible  <bruno@clisp.org>
126808         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
126810 2003-11-25  Bruno Haible  <bruno@clisp.org>
126812         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
126813         gt_TYPE_SSIZE_T.
126815 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126817         * modules/alloca: Remove dependency on xalloc.
126819 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126821         * lib/alloca.c: Remove dependency on xalloc module.
126822         (xalloc_die): Remove.
126823         (memory_full) [!defined emacs]: New macro.
126824         [!defined emacs]: Don't include xalloc.h.
126825         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
126826         address arithmetic overflows.  Change datatypes a bit to avoid
126827         unnecessary casts.
126829 2003-11-22  Jim Meyering  <jim@meyering.net>
126831         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
126832         s/size/size_t/.
126834 2003-11-21  Karl Berry  <karl@gnu.org>
126836         * config/config.{sub,guess}: update from config.
126838 2003-11-18  Karl Berry  <karl@gnu.org>
126840         * config/config.{sub,guess}: update from config.
126842         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
126844 2003-11-17  Paul Eggert  <eggert@twinsun.com>
126846         * README: Mention that S+T cannot overflow if S is the size of
126847         an existing object and T is sufficiently small.
126849 2003-11-17  Jim Meyering  <jim@meyering.net>
126851         On systems without utime and without a utimes function capable of
126852         dealing with a NULL struct utimbuf* argument, this utime replacement
126853         could -- in unusual circumstances -- leak a file descriptor.
126854         * lib/utime.c: Include <unistd.h> and <errno.h>.
126855         (utime_null): Be sure to close `fd' and to preserve errno.
126856         Reported by Geoff Collyer via Arnold Robbins.
126858 2003-11-17  Bruno Haible  <bruno@clisp.org>
126860         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
126861         (Depends-on): Add xsize.
126863 2003-11-17  Bruno Haible  <bruno@clisp.org>
126865         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
126867 2003-11-17  Bruno Haible  <bruno@clisp.org>
126869         * lib/vasnprintf.c (alloca): Remove fallback definition.
126870         (freea): Remove definition.
126871         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
126872         Reported by Paul Eggert.
126874 2003-11-16  Paul Eggert  <eggert@twinsun.com>
126875             Bruno Haible  <bruno@clisp.org>
126877         Protect against address arithmetic overflow.
126878         * lib/printf-args.h: Include stddef.h.
126879         (arguments): Change type of field 'count' to size_t.
126880         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
126881         'unsigned int' where appropriate.
126882         * lib/printf-parse.h: Include sys/types.h.
126883         (char_directive): Change type of *arg_index fields to ssize_t.
126884         (char_directives): Change type of fields 'count', max_*_length to
126885         size_t.
126886         * lib/printf-parse.c: Include sys/types.h and xsize.h.
126887         (SSIZE_MAX): Define fallback value.
126888         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
126889         instead of 'int' where appropriate. Check a_allocated, d_allocated
126890         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
126891         * lib/vasnprintf.c: Include xsize.h.
126892         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
126893         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
126894         overflow. Avoid wraparound when converting a width or precision from
126895         decimal to binary.
126897 2003-11-16  Bruno Haible  <bruno@clisp.org>
126899         Update from GNU gettext.
126900         * lib/printf-parse.c: Generalize to it can be compiled for wide
126901         strings.
126902         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
126903         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
126904         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
126905         SNPRINTF): New macros.
126906         Don't include <alloca.h> if the file is used inside libintl.
126907         (local_wcslen): New function, for Solaris 2.5.1.
126908         (VASNPRINTF): Use it instead of wcslen.
126910 2003-11-16  Bruno Haible  <bruno@clisp.org>
126912         * lib/xsize.h (xmax): New function.
126913         (xsum, xsum3, xsum4): Declare as "pure" functions.
126915 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126917         * modules/xalloc (Files): Undo latest change, since xalloc.h
126918         no longer needs SIZE_MAX or PTRDIFF_MAX.
126920 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126922         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
126923         gl_PTRDIFF_MAX.
126925 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126927         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
126928         "return", to pacify some unknown compiler.  Problem reported
126929         by Joerg Schilling.
126931 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126933         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
126934         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
126935         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
126936         heuristic is just as accurate as far as we know, and it removes a
126937         dependency on size_max.m4 and ptrdiff_max.m4.
126939 2003-11-11  Bruno Haible  <bruno@clisp.org>
126941         * modules/xsize (Files): Add m4/size_max.m4.
126942         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
126944 2003-11-11  Bruno Haible  <bruno@clisp.org>
126946         * m4/size_max.m4: New file.
126947         * m4/ptrdiff_max.m4: New file.
126948         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
126949         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
126950         (gl_XALLOC): Invoke it.
126952 2003-11-11  Bruno Haible  <bruno@clisp.org>
126954         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
126955         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
126956         defined.
126958 2003-11-10  Paul Eggert  <eggert@twinsun.com>
126960         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
126961         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
126962         rejected some allocations of exactly SIZE_MAX - 2 bytes.
126963         From Bruno Haible.
126964         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
126965         not (size_t) -1, since it's defined here.
126967 2003-11-09  Karl Berry  <karl@gnu.org>
126969         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
126971 2003-11-06  Paul Eggert  <eggert@twinsun.com>
126973         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
126974         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
126975         Reject sizes of exactly SIZE_MAX bytes.
126976         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
126977         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
126979 2003-11-05  Bruno Haible  <bruno@clisp.org>
126981         * lib/xsize.h: Include limits.h, to avoid a possible collision with
126982         SIZE_MAX defined in <limits.h> on Solaris.
126984 2003-11-04  Jim Meyering  <jim@meyering.net>
126986         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
126987         variable names, rather than @VAR@.
126988         * modules/poll: Likewise.
126990 2003-11-04  Bruno Haible  <bruno@clisp.org>
126992         * modules/xsize: New file.
126993         * modules/linebreak: Depend on xsize.
126994         * MODULES.html.sh (func_all_modules): Add xsize.
126996 2003-11-04  Bruno Haible  <bruno@clisp.org>
126998         * m4/xsize.m4: New file.
127000 2003-11-04  Bruno Haible  <bruno@clisp.org>
127002         * lib/xsize.h: New file.
127003         * lib/linebreak.c: Include xsize.h.
127004         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
127005         argument for overflow.
127006         Suggested by Paul Eggert.
127008 2003-11-03  Karl Berry  <karl@gnu.org>
127010         * config/config.{guess,sub}: update from config.
127012 2003-11-03  Jim Meyering  <jim@meyering.net>
127014         * modules/userspec (lib_SOURCES): Add userspec.h.
127015         (Include): Add "userspec.h".
127016         Improve description.
127018 2003-11-03  Jim Meyering  <jim@meyering.net>
127020         * lib/userspec.c: Include "userspec.h".
127021         * lib/userspec.h: New file.
127023 2003-11-03  Bruno Haible  <bruno@clisp.org>
127025         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
127027 2003-11-03  Bruno Haible  <bruno@clisp.org>
127029         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
127030         available, to avoid (extremely rare) race condition.
127031         Suggested by Paul Eggert.
127033 2003-11-02  Karl Berry  <karl@gnu.org>
127035         * config/srclist.txt (vasprintf.c): sync broken, sigh.
127037 2003-10-31  Paul Eggert  <eggert@twinsun.com>
127039         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
127040         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
127041         (read_filesystem_list): Set and use me_type_malloced.
127042         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
127043         whatever the type happens to be), for brevity and consistency.
127044         Check for size calculation overflow on Alphas running OSF/1.
127046 2003-10-31  Jim Meyering  <jim@meyering.net>
127048         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
127050         * lib/linebuffer.c: Include <string.h> for declaration of memset.
127052 2003-10-30  Paul Eggert  <eggert@twinsun.com>
127053             Bruno Haible  <bruno@clisp.org>
127055         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
127056         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
127058 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
127060         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
127061         netbsd*-gnu*.  Suggested by Robert Millan.
127063 2003-10-29  Paul Eggert  <eggert@twinsun.com>
127065         * modules/group-member: Depend on stdbool.
127067 2003-10-29  Paul Eggert  <eggert@twinsun.com>
127069         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
127071 2003-10-29  Paul Eggert  <eggert@twinsun.com>
127073         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
127074         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
127075         after the 'gnu' in these cases.  This fixes some bugs in the
127076         previous change, and is based on suggestions by Robert Millan.
127078 2003-10-29  Paul Eggert  <eggert@twinsun.com>
127080         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
127081         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
127082         no longer needed.
127083         * lib/quotearg.c (quotearg_n_options): Use it.
127084         * lib/group-member.c: Include <stdbool.h>.
127085         (free_group_info): Arg is now const *; don't free arg.
127086         (get_group_info): Now returns bool and accepts struct group_info *,
127087         rather than returning a malloc'ed struct group_info *.
127088         All uses changed.  Check for overflow in internal size calculation.
127090         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
127091         rather than xmalloc/xrealloc.
127092         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
127093         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
127094         conformance bug: the old code used a pointer after freeing the
127095         storage that it addressed.
127096         * lib/hash.c (hash_initialize): Simplify the code by using
127097         xalloc_oversized rather than doing it by hand.
127098         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
127099         the buffer preserved.  Use free and xmalloc instead.
127100         * lib/quotearg.c (quotearg_n_options): Likewise.
127101         Use a simpler test for size overflow.  Don't use xalloc_oversized
127102         because unsigned int might be wider than size_t (!); this suggests
127103         that we should switch from unsigned int to size_t for slot numbers.
127105 2003-10-28  Paul Eggert  <eggert@twinsun.com>
127107         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
127108         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
127109         NetBSD kernels.  Requested by Richard Stallman.
127111 2003-10-27  Paul Eggert  <eggert@twinsun.com>
127113         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
127114         to allocate the returned structure.  Do not allocate a subarray,
127115         as x2nrealloc will do that.
127116         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
127117         instead of xnrealloc.
127118         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
127120 2003-10-27  Bruno Haible  <bruno@clisp.org>
127122         * lib/stdbool_.h: Better support for BeOS.
127124 2003-10-26  Paul Eggert  <eggert@twinsun.com>
127126         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
127127         now uses inline.
127129 2003-10-26  Paul Eggert  <eggert@twinsun.com>
127131         * lib/xalloc.h (xalloc_oversized): New static inline function, for
127132         callers that want to do their own size-overflow checking.  Include
127133         <stdbool.h>, since xalloc_oversized returns bool.
127134         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
127135         to use xalloc_oversized.
127137         Add two functions x2realloc, x2nrealloc, for programs that grow
127138         arrays dynamically by doubling their sizes.
127139         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
127140         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
127141         New functions.
127143         Port to C99 semantics for 'inline' of external functions.
127144         Bug reported by Bruno Haible.
127145         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
127146         with the old contents of xnmalloc.
127147         (xnmalloc, xmalloc): Use it.
127148         (xnrealloc_inline): New static inline function,
127149         with the old contents of xnrealloc.
127150         (xnrealloc, xrealloc): Use it.
127152         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
127153         that.
127155 2003-10-26  Karl Berry  <karl@gnu.org>
127157         * config/srclist.txt (COPYING.DOC): no longer available from
127158         /gd/gnuorg; don't know where the ultimate source is.
127160 2003-10-25  Paul Eggert  <eggert@twinsun.com>
127162         Fix several address-calculation bugs in the hash modules,
127163         plus some minor code cleanup.
127165         * lib/hash.h: Include <stdbool.h>, for bool.
127166         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
127167         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
127168         hash_get_n_entries, hash_get_max_bucket_length,
127169         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
127170         hash_rehash): Use size_t rather than unsigned.
127171         * lib/hash.c (struct hash_table, hash_get_n_buckets,
127172         hash_get_n_buckets_used, hash_get_n_entries,
127173         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
127174         hash_get_entries, hash_do_for_each, hash_string, is_prime,
127175         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
127176         Likewise.
127177         (SIZE_MAX): Define if not defined.
127178         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
127179         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
127180         hash_print):
127181         Use const * when possible.
127182         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
127183         (check_tuning): Fix bug: if tuning parameters were very close to
127184         0 or 1, rounding errors could have caused subscript violations.
127185         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
127186         (hash_initialize): Add 'fail:' label
127187         to free table and return NULL, and use it to simplify code.
127188         Use calloc rather than clearing the storage ourself.
127189         (hash_initialize, hash_rehash): Check for arithmetic overflow in
127190         buffer size calculations.
127191         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
127192         Include <stddef.h>, for size_t.
127193         * lib/hash-pjw.c (hash_pjw): Likewise.
127194         Switch to method described by Bruno Haible.
127195         Include <limits.h>, for CHAR_BIT.
127196         (SIZE_BITS): New macro.
127198 2003-10-23  Paul Eggert  <eggert@twinsun.com>
127200         * m4/getline.m4 (AM_FUNC_GETLINE):
127201         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
127202         hosts.  Problem reported by Derek Robert Price in
127203         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
127204         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
127205         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
127207 2003-10-21  Paul Eggert  <eggert@twinsun.com>
127209         * lib/getndelim2.c (getndelim2): When size calculation overflows,
127210         ceiling the allocation at NMAX bytes rather than silently
127211         discarding input bytes before NMAX is reached.  This makes
127212         a difference only if NMAX exceeds SIZE_MAX / 2.
127214         * lib/obstack.c: Merge from glibc.
127215         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
127216         Add libc_hidden_def (_obstack_newchunk).
127217         (_obstack_free) [! defined _LIBC]: Remove.
127218         [defined _LIBC]: Make a strong alias from obstack_free, rather than
127219         a clone of the function body.
127220         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
127221         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
127223         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
127224         glibc.
127225         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
127226         arg to memcpy.
127228         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
127229         (obstack_ptr_grow_fast, obstack_int_grow_fast):
127230         Don't use lvalue casts, as GCC plans to remove support for them
127231         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
127232         was also present in the non-GCC version, indicating that this
127233         code had always been buggy and had never been widely used.
127234         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
127235         Use the fast variant of each macro, rather than copying the
127236         definiens of the fast variant; that way, we'll be more likely to
127237         catch future bugs in the fast variants.
127239 2003-10-20  Bruno Haible  <bruno@clisp.org>
127241         * modules/wait-process: New file.
127242         * MODULES.html.sh (func_all_modules): Add wait-process.
127244 2003-10-20  Bruno Haible  <bruno@clisp.org>
127246         * m4/wait-process.m4: New file.
127248 2003-10-20  Bruno Haible  <bruno@clisp.org>
127250         * lib/wait-process.h: New file, from GNU gettext.
127251         * lib/wait-process.c: New file, from GNU gettext.
127253 2003-10-19  Jim Meyering  <jim@meyering.net>
127255         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
127256         HPUX 10.20.
127258 2003-10-18  Karl Berry  <karl@gnu.org>
127260         * config/config.guess: update from config.
127262 2003-10-16  Paul Eggert  <eggert@twinsun.com>
127264         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
127265         (getgroups): First arg is int, not size_t.
127266         Don't let 'free' mangle errno.
127268 2003-10-16  Paul Eggert  <eggert@twinsun.com>
127270         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
127272 2003-10-16  Karl Berry  <karl@gnu.org>
127274         * config/config.{guess,sub}: update from config.
127276 2003-10-16  Jim Meyering  <jim@meyering.net>
127278         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
127279         memcpy.
127281 2003-10-15  Paul Eggert  <eggert@twinsun.com>
127283         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
127284         (SIZE_MAX): Remove.
127285         (new_exclude, add_exclude_file): Initial size no longer needs to
127286         be a power of 2.
127287         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
127288         our own address arithmetic overflow checking.
127290         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
127291         (fnmatch): Do not alloca more than 2000 wide characters;
127292         instead, use malloc for large buffers.
127293         Check for address arithmetic overflow, and return -1
127294         with errno set to ENOMEM in that case.
127295         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
127296         (NEW_PATTERN): Do not alloca more than 8000 bytes;
127297         instead, return -1.  Check for address arithmetic overflow.
127299 2003-10-14  Paul Eggert  <eggert@twinsun.com>
127301         Handle invalid suffixes and overflow independently, so that
127302         callers can treat them independently as needed.  Fix some bugs in
127303         suffix handling, e.g., "100k@" was not diagnosed as an invalid
127304         suffix for a human-readable blocksize.  The major caller-visible
127305         change is the addition of a new
127306         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
127307         that both overflow and suffix chars were found.
127309         * lib/human.c (humblock): Don't check separately for invalid suffix
127310         char; that is xstrtoumax's job (now that its bug is fixed).
127311         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
127312         INTMAX_MAX]: New macros.
127313         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
127314         TYPE_MAXIMUM): New macros.
127315         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
127316         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
127317         if overflow occurs, as it's what __strtol does and it's more useful
127318         in practice.
127319         (__xstrtol): If __strtol reports some error other than ERANGE,
127320         reflect it to the caller as LONGINT_INVALID.  If it reports
127321         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
127322         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
127323         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
127324         value.
127325         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
127326         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
127327         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
127328         [defined UINTMAX_MAX]: New macros.
127330 2003-10-14  Bruno Haible  <bruno@clisp.org>
127332         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
127334 2003-10-14  Bruno Haible  <bruno@clisp.org>
127336         * m4/sig_atomic_t: New file, from GNU gettext.
127337         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
127339 2003-10-14  Bruno Haible  <bruno@clisp.org>
127341         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
127342         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
127343         Also use volatile where needed.
127345 2003-10-12  Paul Eggert  <eggert@twinsun.com>
127347         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
127348         Change maintainer from Bruno Haible to 'all'.
127350 2003-10-12  Paul Eggert  <eggert@twinsun.com>
127352         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
127354 2003-10-12  Paul Eggert  <eggert@twinsun.com>
127356         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
127357         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
127358         and define in terms of the other primitives.
127359         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
127360         (SIZE_MAX): Define if not already defined.
127361         (array_size_overflow): New function.
127362         (xalloc_die): Abort instead of exiting if 'error' returns.
127363         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
127364         (xmalloc, xrealloc): Use them.
127365         (xcalloc): Check for address arithmetic overflow.
127366         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
127367         a bit faster than strcpy.
127369 2003-10-10  Simon Josefsson  <jas@extundo.com>
127371         * modules/argp (Depends-on): Add restrict and strcase.
127373 2003-10-10  Simon Josefsson  <jas@extundo.com>
127375         * m4/argp.m4: Add AC_C_INLINE.
127377 2003-10-08  Paul Eggert  <eggert@twinsun.com>
127379         Merge getpass from libc, plus a few fixes.
127381         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
127382         Include <stdbool.h>.
127383         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
127384         __fsetlocking to empty.
127385         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
127386         do include <bits/libc-lock.h>.
127387         Do not include <fcntl.h>; not needed.
127388         [_LIBC]: Include <wchar.h>.
127389         (NOTCANCEL_MODE): New macro.
127390         (flockfile, funlockfile) [_LIBC]: New macros.
127391         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
127392         [!_LIBC]: New macros.
127393         (call_fclose): New function.
127394         (getpass): Use it.  Save tty stream separately; this simplifies the
127395         code and makes it more reliable if stdin happens to equal stdout.
127396         Invoke __fsetlocking on tty.
127397         Handle thread cancellation if needed.
127398         Namespace cleanup (use __tcgetattr, __getline).
127399         Use bool for Booleans.
127400         [USE_IN_LIBIO]: Handle wide streams.
127401         [!_LIBC]: Unconditionally do the fseek, since we don't know what
127402         stream might go where.
127404         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
127405         doesn't have to include <stdio.h> before us.
127406         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
127407         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
127408         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
127409         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
127410         if not declared, so that we can use getpass.c code from libc without
127411         rewriting it.
127412         (flockfile, ftrylockfile, funlockfile): New macros.
127414 2003-10-08  Paul Eggert  <eggert@twinsun.com>
127416         * modules/getpass: Depend on stdbool.
127418 2003-10-08  Paul Eggert  <eggert@twinsun.com>
127420         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
127422 2003-10-07  Karl Berry  <karl@gnu.org>
127424         * config/config.{guess,sub}: update from config.
127426 2003-10-06  Jim Meyering  <jim@meyering.net>
127427             Bruno Haible  <bruno@clisp.org>
127429         This lets translators provide better translations for the
127430         "Written by ..." part of --version output.
127431         * lib/version-etc.h: Include stdarg.h.
127432         (version_etc_copyright): Declare as readonly.
127433         (version_etc): Make this function variadic with a NULL-terminated list
127434         of author name strings.
127435         (version_etc_va): New declaration.
127436         * lib/version-etc.c: Include stdarg.h, stdlib.h.
127437         (version_etc_copyright): Declare as readonly.
127438         (version_etc_va): New function. Provide a different translatable string
127439         for each possible number of authors < 10. Abbreviate when there are 10
127440         authors or more.
127441         (version_etc): Make this function variadic. Call version_etc_va.
127442         Suggestion from Gary V. Vaughan.
127444         * lib/long-options.h (parse_long_options): Change prototype: the
127445         authors string is moved to the end and becomes variadic.
127446         * lib/long-options.c: Include stdarg.h.
127447         (parse_long_options): Make this function variadic, too.
127448         Call version_etc_va, not version_etc.
127450 2003-10-06  Bruno Haible  <bruno@clisp.org>
127452         * modules/version-etc-2: Remove file.
127453         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
127455 2003-10-06  Bruno Haible  <bruno@clisp.org>
127457         * modules/fatal-signal: New file.
127458         * MODULES.html.sh (func_all_modules): Add fatal-signal.
127460 2003-10-06  Bruno Haible  <bruno@clisp.org>
127462         * m4/fatal-signal.m4: New file.
127463         * m4/signalblocking.m4: New file, from GNU gettext.
127465 2003-10-06  Bruno Haible  <bruno@clisp.org>
127467         * lib/version-etc-2.h: Remove file.
127468         * lib/version-etc-2.c: Remove file.
127470 2003-10-06  Bruno Haible  <bruno@clisp.org>
127472         * lib/fatal-signal.h: New file, from GNU gettext.
127473         * lib/fatal-signal.c: New file, from GNU gettext.
127475 2003-10-05  Paul Eggert  <eggert@twinsun.com>
127477         * README: Rework advice for preventing empty .o files.
127478         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
127479         not <sys/types.h>.
127481 2003-10-04  Karl Berry  <karl@gnu.org>
127483         * lib/argp*: update from libc.
127485 2003-10-04  Karl Berry  <karl@gnu.org>
127487         * config/config.{guess,sub}: update from config.
127489 2003-10-02  Bruno Haible  <bruno@clisp.org>
127491         * modules/lchown (Include): Add lchown.h.
127492         * modules/time_r (Include): Use "..." syntax.
127493         * modules/xgetdomainname (Include): Add xgetdomainname.h.
127495 2003-10-01  Simon Josefsson  <jas@extundo.com>
127497         * MODULES.html.sh (func_all_modules): Move gethostname from section
127498         'based on' to section 'lacking' POSIX:2001.
127500 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
127502         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
127503         to output mode on the same stream.
127505 2003-09-29  Paul Eggert  <eggert@twinsun.com>
127507         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
127508         Fix arg typo in previous patch.
127510 2003-09-28  Jim Meyering  <jim@meyering.net>
127512         * lib/error.c: Correct cpp indentation.
127514 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127516         * modules/free: New file.
127518 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127520         * m4/free.m4: New file.
127522 2003-09-27  Paul Eggert  <eggert@twinsun.com>
127524         * lib/minmax.h (MIN, MAX)
127525         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
127526         Omit the special code that used __typeof__, since we worry that
127527         it could be more trouble than it's worth.  See:
127528         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
127529         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
127531         * lib/free.c: New file.
127533 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
127535         Trivial fixes to Makefile.am parts of module listings.
127536         * modules/strstr: Append strstr.h to lib_SOURCES.
127537         * modules/strcase: Likewise, for strcase.h.
127539 2003-09-27  Karl Berry  <karl@gnu.org>
127541         * config/mkinstalldirs: update from automake.
127543 2003-09-26  Paul Eggert  <eggert@twinsun.com>
127545         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
127546         (error_tail): Do not loop, reallocating temporary buffer, since
127547         the output cannot contain more wide characters than the input
127548         contains bytes, the size must be big enough already.  This avoids
127549         one potential size overflow calculation.  Check for size overflow
127550         when calculating temporary buffer size.  Free temporary buffer
127551         when done, if it was allocated with malloc; this plugs a memory
127552         leak.  Remove casts from void * to pointers, that are no longer
127553         needed now that we're assuming C89 or better.
127555         Merge error changes from glibc.
127557         * lib/error.c, error.h: Update copyright notice header to match glibc.
127558         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
127559         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
127560         Disable cancellation while printing error.
127561         * lib/error.h: Prepend __ to parameter names.
127563 2003-09-26  Jim Meyering  <jim@meyering.net>
127565         * lib/error.c (error_tail): Move some declarations
127566         into inner scope where the local variables are used.
127568 2003-09-26  Bruno Haible  <bruno@clisp.org>
127570         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
127571         stpncpy().
127572         Don't define stpncpy through config.h; it's now done through stpncpy.h.
127574 2003-09-26  Bruno Haible  <bruno@clisp.org>
127576         * lib/stpncpy.h (gnu_stpncpy): New declaration.
127577         (stpncpy): Define as alias for gnu_stpncpy.
127578         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
127580 2003-09-25  Simon Josefsson  <jas@extundo.com>
127582         * lib/xgetdomainname.h: New file.
127583         * lib/xgetdomainname.c: New file.
127585 2003-09-25  Simon Josefsson  <jas@extundo.com>
127586             Bruno Haible  <bruno@clisp.org>
127588         * modules/getdomainname: New file.
127589         * modules/xgetdomainname: New file.
127590         * MODULES.html.sh (func_all_modules): Add getdomainname,
127591         xgetdomainname.
127593 2003-09-25  Simon Josefsson  <jas@extundo.com>
127594             Bruno Haible  <bruno@clisp.org>
127596         * m4/getdomainname.m4: New file.
127598 2003-09-25  Simon Josefsson  <jas@extundo.com>
127599             Bruno Haible  <bruno@clisp.org>
127601         * lib/getdomainname.h: New file.
127602         * lib/getdomainname.c: New file.
127604 2003-09-25  Karl Berry  <karl@gnu.org>
127606         * lib/argp-fmtstream.c, argp-help.c: update from libc.
127608 2003-09-25  Karl Berry  <karl@gnu.org>
127610         * config/install-sh: update from automake.
127612 2003-09-25  Bruno Haible  <bruno@clisp.org>
127614         * modules/version-etc-2: New file, from modules/version-etc with
127615         modifications.
127616         * MODULES.html.sh (func_all_modules): Add version-etc-2.
127618 2003-09-25  Bruno Haible  <bruno@clisp.org>
127620         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
127621         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
127623 2003-09-24  Simon Josefsson  <jas@extundo.com>
127625         * modules/xgethostname: Add xgethostname.h.
127627 2003-09-24  Paul Eggert  <eggert@twinsun.com>
127629         * lib/linebuffer.c (freebuffer): Don't free the argument, just
127630         the buffer associated with the argument.  Bug reported by
127631         Simon Josefsson.
127633 2003-09-24  Paul Eggert  <eggert@twinsun.com>
127635         * README: Document assumptions that 'int' is at least 32 bits
127636         wide, that integer arithmetic is 2's complement without overflow,
127637         that there are no holes in integer values, that adding sizes of
127638         two nonoverlapping objects can't overflow, and that all-bits-zero
127639         yields scalar zero.  Fix spelling and capitalization typos.
127641 2003-09-19  Karl Berry  <karl@gnu.org>
127643         * lib/argp.h: update from libc.
127645 2003-09-17  Paul Eggert  <eggert@twinsun.com>
127647         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
127648         to avoid spurious warnings like "AC_RUN_IFELSE was called before
127649         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
127651 2003-09-17  Paul Eggert  <eggert@twinsun.com>
127653         * gnulib-tool: Use "test -h", not "test -L", for portability
127654         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
127655         (tags_regexp): Remove, since \| doesn't conform to POSIX.
127656         (sed_extract_prog): Issue s commands one-by-one, rather than
127657         using \| in one s command.
127659 2003-09-16  Paul Eggert  <eggert@twinsun.com>
127661         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
127662         input error, instead of returning NULL the next time we are called
127663         (and therefore losing track of errno).
127665 2003-09-16  Bruno Haible  <bruno@clisp.org>
127667         * gnulib-tool (func_create_testdir): Warn about duplicated
127668         dependencies.
127670 2003-09-15  Paul Eggert  <eggert@twinsun.com>
127672         * modules/argmatch, modules/fatal, modules/obstack,
127673         modules/xalloc, modules/xgethostname: Sort dependencies by
127674         importance, not alphabetically.
127676 2003-09-15  Paul Eggert  <eggert@twinsun.com>
127678         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
127679         fails, so that the caller gets the proper errno.
127681         * lib/readutmp.c (read_utmp): Likewise.
127682         Check for fstat error.  Close stream and free storage
127683         when failing.
127685 2003-09-14  Karl Berry  <karl@gnu.org>
127687         * config/srclist.txt (strdup.c): disable for c89 changes.
127689 2003-09-14  Jim Meyering  <jim@meyering.net>
127691         * lib/getloadavg.c: Correct cpp indentation.
127692         * lib/strdup.c: Likewise.
127693         * lib/vasnprintf.c: Likewise.
127695 2003-09-14  Bruno Haible  <bruno@clisp.org>
127697         * modules/fwriteerror: New file.
127698         * MODULES.html.sh (func_all_modules): Add fwriteerror.
127700 2003-09-14  Bruno Haible  <bruno@clisp.org>
127702         * lib/fwriteerror.h: New file.
127703         * lib/fwriteerror.c: New file.
127705 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127707         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
127708         modules/xgethostname, modules/xalloc: Depend on exit.
127710 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127712         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
127714         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
127715         and AC_MINIX, too, so that their extensions are available.
127717         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
127718         This macro has been superseded by gl_BACKUPFILE.
127720         More patches to assume C89 or better.
127722         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
127724         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
127725         unconditionally.
127726         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
127727         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
127728         Include <string.h>, <stdlib.h> unconditionally.
127729         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
127730         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
127731         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
127732         headers or for string.h.
127733         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
127734         or strtoul.
127736         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
127737         headers.
127738         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
127739         * m4/userspec.m4 (gl_USERSPEC): Likewise.
127740         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
127741         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
127742         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
127743         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
127744         memcpy, memset.
127745         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
127746         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
127747         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
127748         strtol.
127749         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
127750         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
127751         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
127752         strtoul.
127754 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127756         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
127757         * lib/obstack.c [!defined _LIBC]: Likewise.
127758         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
127759         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
127760         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
127762         More changes to assume C89 or better.
127764         * lib/error.c (error_tail): Assume vprintf.
127766         * lib/argmatch.c (getenv): Remove decl.
127767         * lib/progreloc.c (get_full_program_name): Define via prototype.
127768         * lib/setenv.c (clearenv): Likewise.
127769         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
127770         needed.
127771         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
127772         (malloc, memcpy): Remove decls.
127773         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
127774         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
127775         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127776         (memcpy): Remove macro.
127777         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
127778         (__P): Remove.  All uses removed.
127779         (PTR): Remove.  All uses changed to void *.
127780         (CHAR_BIT, NULL): Remove.
127781         (spaces, zeros, memset_space, memset_zero)
127782         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
127783         Remove.
127784         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
127785         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
127786         Define with prototype.
127787         Remove now-unnecessary prototype decl.
127788         (extra_args_spec): Assume ANSI C.  All uses changed.
127789         (extra_args_spec_iso): Remove.
127790         (my_strftime, emacs_strftimeu): Define via prototype.
127791         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
127792         unconditionally.
127793         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
127794         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
127795         (strtoul, strtol): Remove decls.
127796         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
127797         LONG_MAX): Remove.
127798         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127799         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
127800         (LOCALE_PARAM_PROTO): New macro.
127801         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
127802         (INTERNAL (strtol), strtol): Define with a prototype.
127803         (PARAMS): Remove.  All uses removed.
127804         * lib/tempname.c: Include <string.h> unconditionally.
127805         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
127806         * lib/xgethostname.c (main): Define with a prototype.
127807         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
127808         Include <stdlib.h> unconditionally.
127809         (calloc, malloc, realloc, free): Remove decls.
127810         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
127811         Include <stdlib.h> unconditionally.  Sort include file names.
127812         (strtod): Remove.
127813         (xstrtod): Define with a prototype.
127814         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
127815         (strtol, strtoul): Remove decls.
127817 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127819         More patches to assume C89 or better.
127820         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
127821         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
127822         string.h, memchr, STDC_HEADERS.
127824 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127826         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
127827         Include <stdlib.h>, <string.h> unconditionally.
127828         Remove now-unnecessary cast to char *.
127829         * lib/strnlen.c: Include <string.h> unconditionally.
127830         * lib/yesno.c (yesno): Define with a prototype.
127832 2003-09-11  Bruno Haible  <bruno@clisp.org>
127834         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
127836 2003-09-10  Jim Meyering  <jim@meyering.net>
127838         * lib/error.c: Correct indentation of cpp directives.
127840 2003-09-10  Bruno Haible  <bruno@clisp.org>
127842         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
127843         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
127844         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
127845         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
127846         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
127847         <stdlib.h> and <string.h> checks.
127848         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
127849         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
127851 2003-09-10  Bruno Haible  <bruno@clisp.org>
127853         * lib/strcspn.c: Include <string.h> unconditionally.
127854         * lib/strpbrk.c: Include <string.h> unconditionally.
127855         * lib/strstr.c: Include <string.h> unconditionally.
127856         * lib/unicodeio.c: Include <string.h> unconditionally.
127857         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
127858         * lib/unsetenv.c: Likewise.
127859         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
127860         * lib/yesno.c: Include <stdlib.h> unconditionally.
127861         (rpmatch): Add prototype.
127863 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127865         More patches to assume C89 or better.
127866         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
127867         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
127868         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
127869         or for string.h.
127870         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
127871         stdlib.h.
127872         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
127873         C headers.
127874         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
127875         string.h.
127876         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
127877         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
127878         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
127879         or for string.h.
127880         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
127881         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
127882         C headers.
127883         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
127884         memcpy.
127885         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
127886         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
127887         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
127888         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
127889         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
127890         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
127891         string.h, free.
127892         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
127893         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
127894         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
127895         C headers, or for string.h.
127896         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
127897         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
127898         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
127899         headers, memory.h, stdlib.h, string.h, strings.h.
127900         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
127901         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
127902         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
127903         strchr.
127904         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
127905         headers, memory.h, string.h.
127906         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
127907         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
127908         free.
127909         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
127910         headers.
127911         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
127912         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
127913         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
127914         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
127915         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
127917 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127919         More K&R removal.
127921         * lib/acosl.c (main): Use a prototype.
127922         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
127923         tanl.c: Likewise.
127925         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
127927         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
127928         (getopt, etopt_long, getopt_long_only, _getopt_internal)
127929         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
127930         with a prototype.
127931         * lib/getopt.c (const): Remove macro.
127932         Include <string.h> unconditionally.
127933         (my_index): Remove; all uses changed to strchr.
127934         (strlen): Remove decl.
127935         (exchange): Remove forward decl; no longer needed.
127936         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
127937         Define with prototype.
127938         * lib/getopt1.c (const): Remove macro.
127939         (getopt_long, getopt_long_only, main): Define with prototype.
127941         * lib/getugroups.c: Include <string.h> unconditionally.
127943         * lib/getusershell.c: Include <stdlib.h> unconditionally.
127944         (getusershell, setusershell, endusershell, readname, main):
127945         Define with prototypes.
127947         * lib/group-member.c: Include group-member.h first.
127948         Include <stdlib.h> unconditionally.
127950         * lib/hard-locale.c: Include hard-locale.h first.
127951         Include <stdlib.h>, <string.h> unconditionally.
127953         * lib/hash.c (free, malloc): Remove decls.
127954         Include <stdlib.h> unconditionally.
127956         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
127957         (getenv): Do not declare.
127959         * lib/idcache.c: Include <string.h> unconditionally.
127961         * lib/long-options.c: Include long-options.h first, to test interface.
127962         Include <stdlib.h> unconditionally.
127964         * lib/makepath.c: Include makepath.h first, to test interface.
127965         Include <stdlib.h> and <string.h> unconditionally.
127967         * lib/linebuffer.c: Include <stdlib.h>.
127968         (free): Remove decl.
127970         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
127971         stddef.h. rpl_malloc returns void *, not char *.
127972         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
127973         prototype.
127975         * lib/md5.h: Include <limits.h> unconditionally.
127976         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
127977         (__P): Remove; all uses removed.
127978         * lib/md5.c: Include "md5.h" first.
127979         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
127980         md5_buffer, md5_process_bytes, md5_process_block):
127981         Define with prototypes.
127982         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
127983         * lib/sha.c: Include "sha.h" first.
127984         Include <stdlib.h>, <string.h> unconditionally.
127986         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
127987         * lib/memcmp.c (__ptr_t): Likewise.
127988         * lib/memrchr.c (__ptr_t): Likewise.
127989         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
127990         Include <string.h> unconditionally.
127991         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
127992         * lib/memchr.c: Include <stdlib.h> unconditionally.
127993         * lib/memchr.c (LONG_MAX): Remove.
127994         * lib/memrchr.c (LONG_MAX): Likewise.
127995         * lib/memchr.c (__memchr): Define via a prototype.
127996         * lib/memrchr.c (__memrchr): Likewise.
127997         * lib/memcmp.c (__P): Remove, and remove all uses.
127998         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
127999         Remove forward decls; no longer needed.
128000         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
128001         Use types required by C89 in prototype.
128003         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
128004         * lib/savedir.c: Likewise.
128005         * lib/mkdir.c (free): Remove decl.
128006         * lib/rmdir.c (rmdir): Define with a prototype.
128007         * lib/savedir.c: Include savedir.h first, to test interface.
128009         * lib/mktime.c (STDC_HEADERS): Remove.
128010         Include <stdlib.h>, <string.h> unconditionally.
128012         * lib/modechange.c: Include <stdlib.h> unconditionally.
128013         (malloc): Remove decl.
128015         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
128016         (free): Remove decl.
128018         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
128019         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
128020         (This type really should be intptr_t, but that's a C99ism.)
128021         (_obstack_memcpy): Remove: all uses changed to memcpy.
128022         Include <string.h> unconditionally.
128023         (struct obstack): Assume __STDC__ for types of members
128024         chunkfun, freefun, extra_arg.
128025         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
128026         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
128027         obstack_begin, obstack_specify_allocation,
128028         obstack_specify_allocation_with_arg, obstack_chunkfun,
128029         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
128030         Remove unprototyped decls and the macros that use them.
128031         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
128032         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
128033         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
128034         (defined __STDC__ && __STDC__)]:
128035         Remove nonprototyped code.
128036         Include <stdlib.h> unconditionally.
128037         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
128038         _obstack_allocated_p, _obstack_free, obstack_free,
128039         _obstack_memory_used, print_and_abort):
128040         Define using prototypes.
128041         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
128042         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
128043         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
128044         obstack_next_free, obstack_object_size, obstack_room) [0]:
128045         Remove unused, unprototyped code.
128047         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
128049         * lib/physmem.c (physmem_total, physmem_available, main): Define
128050         with prototypes.
128052         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
128053         (main): Define with a prototype.
128055         * lib/posixver.c (getenv): Remove decl.
128057         * lib/putenv.c (malloc): Returns void *, not char *.
128058         Include <string.h> unconditionally.
128059         (strchr, memcpy, NULL): Do not define.
128061         * lib/readtokens.c: Include readtokens.h first, to test interface.
128062         Include <stdlib.h>, <string.h> unconditionally.
128063         (init_tokenbuffer): Define with a prototype.
128065         * lib/regex.c (PARAMS): Remove.  All uses removed.
128066         All uses of _RE_ARGS removed, too.
128067         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
128068         unconditionally.
128069         (bzero): Assume memset exists.
128070         (memcmp, memcpy, NULL): Remove.
128071         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
128072         char, or assignments to local vars of type signed char.
128073         (init_syntax_once, PREFIX(extract_number_and_incr),
128074         PREFIX(print_partial_compiled_pattern),
128075         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
128076         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
128077         PREFIX(regex_grow_registers), PREFIX(regex_compile),
128078         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
128079         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
128080         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
128081         wcs_compile_range, byte_compile_range, truncate_wchar,
128082         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
128083         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
128084         count_mbs_length, wcs_re_match_2_internal,
128085         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
128086         PREFIX(alt_match_null_string_p),
128087         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
128088         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
128089         regfree, PREFIX(extract_number)): Define with prototype.  Remove
128090         now-unnecessary declaration, if any.
128091         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
128092         regcomp, regexec):
128093         Remove now-unnecessary casts among pointer types.
128094         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
128096         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
128097         (free): Remove decl.
128099         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
128101         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
128102         (free): Remove decl.
128104         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
128105         * lib/xgetcwd.c: Likewise.
128107         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
128108         (free): Remove decl.
128110         * lib/strchrnul.c (strchrnul): Define with a prototype.
128111         Fix bug: c_in was not converted to char before searching.
128113         The following changes are not K&R related:
128115         * lib/group-member.h: Include <sys/types.h>, so that this file is
128116         self-contained.
128117         * lib/makepath.h: Likewise.
128119         * lib/getusershell.c (readname, default_index, line_size, readname):
128120         Use size_t, not int, for sizes.
128121         (readname): If the size overflows, report an error instead of
128122         looping forever.
128124 2003-09-09  Paul Eggert  <eggert@twinsun.com>
128126         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
128127         libc.
128129 2003-09-09  Paul Eggert  <eggert@twinsun.com>
128131         * README: New section: portability guidelines.
128133 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
128135         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
128136         C89 spec.
128138 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
128140         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
128142 2003-09-08  Paul Eggert  <eggert@twinsun.com>
128144         Assume C89 or better; remove K&R cruft.
128145         A few of these changes were first proposed by Derek Robert Price
128146         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
128148         * lib/addext.c: Include <string.h> unconditionally.
128149         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
128150         Don't declare getenv or malloc.
128152         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
128153         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
128154         (NULL): Remove.
128155         (find_stack_direction, alloca): Use prototypes.
128157         * lib/atexit.c (atexit): Define using a prototype.
128159         * lib/basename.c, dirname.c, stripslash.c:
128160         Include <string.h> unconditionally.
128162         * lib/bcopy.c: Include <stddef.h>.
128163         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
128165         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
128167         * lib/error.h (error, error_at_line, error_print_progname)
128168         [! (defined (__STDC__) && __STDC__)]: Remove decls.
128169         * lib/error.c: Include error.h first, to check interface.
128170         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
128171         (VA_START): Remove; all uses changeed to va_start.
128172         (exit, strerror): Remove decls.
128173         (error_print_progname): Prototype uncondionally.
128174         Don't include <errno.h>; no longer needed.
128175         (private_strerror): Remove.
128176         (error_tail): Always define.
128177         (error, error_at_line): Assume C89 or better; always use prototypes.
128178         * lib/fatal.c: Include "fatal.h" first, to test interface.
128179         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
128180         (VA_START): Remove; all uses changed to va_start.
128181         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
128182         this case.
128183         (exit): Remove decl.
128184         (fatal): Prototype unconditionally.  Assume va_start works.
128185         Abort at end, to pacify gcc.
128187         * lib/euidaccess.c (main): Define with a prototype.
128189         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
128191         * lib/exitfail.c: Include <stdlib.h> unconditionally.
128193         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
128194         prototypes.
128195         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
128196         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
128197         (getenv): Remove decl.
128198         (fnmatch): Define using a prototype.
128199         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
128200         (FCT): Define using a prototype.
128202         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
128204         * lib/gethostname.c: Include <stddef.h>.
128205         (gethostname): Define with prototype.  Length is size_t, not int.
128207 2003-09-08  Paul Eggert  <eggert@twinsun.com>
128209         Assume C89 or better; remove K&R cruft.
128210         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
128211         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
128212         string.h, getenv, malloc.
128213         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
128214         headers.
128215         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
128216         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
128217         do not check for strerror.
128218         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
128219         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
128220         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
128221         do not check for doprnt or vprintf.
128222         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
128223         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
128225 2003-09-08  Paul Eggert  <eggert@twinsun.com>
128227         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
128228         getversion.c should have been removed then, but was accidentally
128229         preserved.
128231         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
128232         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
128234 2003-09-08  Karl Berry  <karl@gnu.org>
128236         * config/config.sub, config.guess, srclistvars.sh: update from savannah
128237                 config, forget about prep.
128239         * config/depcomp, missing: update from automake.
128241 2003-09-07  Paul Eggert  <eggert@twinsun.com>
128243         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
128244         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
128246 2003-09-07  Paul Eggert  <eggert@twinsun.com>
128248         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
128249         copy_tm_result.  Bug reported by Simon Josefsson in
128250         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
128252 2003-09-06  Paul Eggert  <eggert@twinsun.com>
128254         * m4/time_r.m4: New file.
128255         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
128256         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
128257         is. Check for timegm declaration.
128258         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
128259         Do not check for gmtime_r.
128260         Replace mktime if __mktime_internal does not exist and if mktime
128261         hasn't been replaced already.
128263 2003-09-06  Paul Eggert  <eggert@twinsun.com>
128265         * lib/time_r.c, lib/time_r.h: New files.
128267         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
128268         __localtime_r.
128269         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
128270         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
128272         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
128273         __gmtime_r.
128274         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
128275         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
128276         Include <time_r.h>.
128278         * lib/timegm.c: Switch to glibc implementation, with the following
128279         changes:
128280         [defined HAVE_CONFIG_H]: Include <config.h>.
128281         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
128282         (__mktime_internal) [!defined _LIBC]: New decl.
128283         (__gmtime_r) [!defined _LIBC]: New macro and function.
128284         (timegm): Use a prototype, since gnulib assumes C89.
128285         Do not bother declaring tmp to be const, as it's not really usefu.
128286         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
128287         (timegm): Declare only if HAVE_DECL_TIMEGM.
128289 2003-09-06  Paul Eggert  <eggert@twinsun.com>
128291         * MODULES.html.sh (func_all_modules): Add time_r.
128292         * modules/time_r: New file.
128293         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
128294         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
128296 2003-09-03  Paul Eggert  <eggert@twinsun.com>
128298         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
128299         Bug reported by Lute Kamstra in
128300         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
128302         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
128303         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
128304         course with correspondingly smaller numbers for tomorrow and
128305         yesterday.  From Tadayoshi Funaba.  Originally installed into
128306         sh-utils on 1999-08-07, but the patch got lost (I guess during the
128307         coreutils merge?).
128309 2003-08-31  Simon Josefsson  <jas@extundo.com>
128311         * modules/timegm: New file.
128312         * MODULES.html.sh (func_all_modules): Add timegm.
128314 2003-08-31  Simon Josefsson  <jas@extundo.com>
128316         * m4/timegm.m4: New file.
128318 2003-08-31  Simon Josefsson  <jas@extundo.com>
128320         * lib/timegm.h: New file.
128321         * lib/timegm.c: New file.  Based on
128322         wget-1.8.2/src/http.c:mktime_from_utc.
128324 2003-08-31  Karl Berry  <karl@gnu.org>
128326         * lib/argp.h: update from libc.
128328 2003-08-28  Bruno Haible  <bruno@clisp.org>
128330         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
128331         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
128332         followed by '#define fnmatch fnmatch_posix' gives an error.
128334 2003-08-28  Bruno Haible  <bruno@clisp.org>
128336         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
128337         warning on QNX, which defines O_BINARY to 000000.
128339 2003-08-27  Jim Meyering  <jim@meyering.net>
128341         * m4/mkstemp.m4: Require that the system mkstemp be able to create
128342         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
128343         would fail after 32.  Reported by Danny Levinson.  Details here:
128344         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
128346 2003-08-24  Bruno Haible  <bruno@clisp.org>
128348         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
128349         MSVC7 <stdio.h> is included later.
128351 2003-08-22  Simon Josefsson  <jas@extundo.com>
128353         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
128355 2003-08-20  Karl Berry  <karl@gnu.org>
128357         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
128359 2003-08-20  Bruno Haible  <bruno@clisp.org>
128361         * modules/progname: New file.
128362         * MODULES.html.sh (func_all_modules): Add progname.
128364 2003-08-20  Bruno Haible  <bruno@clisp.org>
128366         * lib/progname.h: New file, from GNU gettext.
128367         * lib/progname.c: New file, from GNU gettext.
128368         * lib/progreloc.c: New file, from GNU gettext.
128370 2003-08-19  Jim Meyering  <jim@meyering.net>
128372         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
128373         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
128375 2003-08-19  Bruno Haible  <bruno@clisp.org>
128377         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
128378         more.
128380 2003-08-19  Bruno Haible  <bruno@clisp.org>
128382         * lib/xstrdup.c: Assume <string.h> exists.
128384 2003-08-18  Paul Eggert  <eggert@twinsun.com>
128386         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
128387         in makefile rules.
128389 2003-08-18  Jim Meyering  <jim@meyering.net>
128391         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
128392         * m4/lib-ld.m4: Likewise.
128394 2003-08-18  Jim Meyering  <jim@meyering.net>
128396         * lib/setenv.h: Indent nested cpp directive.
128397         * lib/vasnprintf.c: Remove trailing blanks.
128399 2003-08-17  Simon Josefsson  <jas@extundo.com>
128401         * modules/xstrndup: New file.
128402         * MODULES.html.sh (func_all_modules): Add xstrndup.
128404 2003-08-17  Simon Josefsson  <jas@extundo.com>
128406         * modules/argp: Fix autoconf macro name. Add more dependencies.
128408 2003-08-17  Simon Josefsson  <jas@extundo.com>
128410         * m4/xstrndup.m4: New file.
128412 2003-08-17  Simon Josefsson  <jas@extundo.com>
128414         * m4/argp.m4: New file.
128416 2003-08-17  Simon Josefsson  <jas@extundo.com>
128417             Bruno Haible  <bruno@clisp.org>
128419         * lib/xstrndup.h: New file.
128420         * lib/xstrndup.c: New file.
128422 2003-08-17  Bruno Haible  <bruno@clisp.org>
128424         * modules/strndup (Files, Include): Add lib/strndup.h.
128426 2003-08-17  Bruno Haible  <bruno@clisp.org>
128428         * modules/euidaccess (Files): Add lib/euidaccess.h.
128430 2003-08-17  Bruno Haible  <bruno@clisp.org>
128432         * lib/strndup.h: New file.
128434 2003-08-17  Bruno Haible  <bruno@clisp.org>
128436         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
128437         like AC_GNU_SOURCE.
128438         * modules/extensions (configure.ac): Comment out the invocation of
128439         gl_USE_SYSTEM_EXTENSIONS.
128441 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128443         Merges from coreutils, etc.
128444         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
128445         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
128446         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
128447         fixing a typo.
128448         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
128449         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
128451 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128453         Document merge from coreutils.
128454         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
128455         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
128456         * modules/utime: Add m4/utimes-null.m4.
128458 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128460         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
128461         space, undoing this 2003-08-12 change:
128462         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
128464 2003-08-16  Paul Eggert  <eggert@twinsun.com>
128466         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
128467         strtoul.c from libc, undoing this 2003-08-12 change:
128468         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
128470 2003-08-16  Jim Meyering  <jim@meyering.net>
128472         Merges from coreutils.
128473         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
128474         prefix.  Adjust cache variables similarly.  Create 500 rather than
128475         just 300 files, to exercise bug on Darwin6.5, too.
128476         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
128477         $missing_dir.
128478         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
128479         AM_SYS_POSIX_TERMIOS.
128480         Reported by mkc@mathdogs.com.
128481         Also change use of $am_cv_sys_posix_termios
128482         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
128483         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
128484         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
128485         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
128486         in /proc/mounts until it finds one with matching device number.  This
128487         is unnecessary when the FILE argument *is* a mount point.  No stat call
128488         is necessary in that case.  So, disable the statvfs-testing code on
128489         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
128490         as RedHat bug# 84846.
128491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
128492         to 1MB, so as not to render systems with no stack size limit (e.g.,
128493         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
128494         Include <unistd.h>.  On some systems,
128495         it is required for the definition of _SC_PAGESIZE.
128497 2003-08-16  Jim Meyering  <jim@meyering.net>
128499         Merge from coreutils.
128500         * lib/xstrtoimax.c: #else #if -> #elif.
128501         * lib/xstrtoumax.c: Likewise.
128503 2003-08-16  Jim Meyering  <jim@meyering.net>
128505         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
128506         * m4/utimes.m4: Removed.
128507         * m4/utimes-null.m4: Renamed from utimes.m4.
128509         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
128510         to 1MB, so as not to render systems with no stack size limit (e.g.,
128511         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
128512         Include <unistd.h>.  On some systems,
128513         it is required for the definition of _SC_PAGESIZE.
128515 2003-08-16  Jim Meyering  <jim@meyering.net>
128516         and Paul Eggert  <eggert@cs.ucla.edu>
128518         Merges from coreutils, etc.
128520         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
128521         using the latest version from cvs.  This avoids problems with #line
128522         directives using a vendor (Sun) compiler.
128523         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
128524         Don't set GETGROUPS_LIB here; now it's
128525         done via getgroups.m4's wrapper function.
128526         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
128527         rather than just in sh-util/configure.in, so that the
128528         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
128529         same.
128530         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
128531         AC_FUNC_GETLOADAVG where to find getloadavg.c.
128532         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
128533         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
128534         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
128535         Remove code that is now done by the newly-required macros.
128536         Append $(EXEEXT) to DF_PROG.
128537         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
128538         Do not invoke or require the following here,
128539         since prereq.m4 or some gnulib .m4 now does this for us:
128540         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
128541         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
128542         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
128543         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
128544         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
128545         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
128546         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
128547         AC_FUNC_OBSTACK.
128548         Do not replace the following functions, as this is now the job
128549         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
128550         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
128551         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
128552         atexit getpass, strdup, getpagesize.
128553         Replace 'raise'.
128554         Do not check for the following functions, as this is now the job
128555         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
128556         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
128557         setregid.
128558         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
128559         Check for sys/sysctl.h.
128560         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
128561         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
128562         of checking for ssize_t ourselves.
128564         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
128565         Require every macro that gnulib/modules/* suggests for us.
128566         (jm_PREREQ_ADDEXT): New macro.
128567         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
128568         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
128570         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
128571         (gl_PHYSMEM): Use it.
128572         Also check for `table' function.
128573         Check for new headers and functions.
128574         Add check for sys/sysmp.h.
128575         With suggestions from Kaveh Ghazi.
128576         Ignore headers that are present but cannot be compiled.  This
128577         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
128578         C 5.4.
128580 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128582         Document merge from coreutils.
128583         * modules/userspec: Depend on posixver.
128584         * modules/strftime: Depend on tzset.
128586 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128588         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
128589         rather than tab, after '#' in shell-script copyright notices.
128590         Suggested by Bruno Haible.
128592 2003-08-15  Paul Eggert  <eggert@twinsun.com>
128594         * config/srclist-update: Use three spaces, rather than tab, after '#'
128595         in shell-script copyright notices.  Suggested by Bruno Haible.
128596         Remove unnecessary parenthesization in regular expression.
128598 2003-08-15  Jim Meyering  <jim@meyering.net>
128600         Merge from coreutils.
128601         * lib/xgethostname.c: Include <stdlib.h>.
128602         (xghostname): Don't exit for anything other than memory-related
128603         failure; just return NULL.
128604         * lib/userspec.c: Include "posixver.h".
128605         (parse_user_spec): Accept `.' as a separator only
128606         in pre-POSIX-200112 mode.
128607         * lib/strtoimax.c: Use #elif rather than #else #if.
128608         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
128609         Remove function, now that we can rely on a working tzset function.
128610         [!_LIBC]: Ensure that the required autoconf test has been run.
128611         [!defined _NL_CURRENT && HAVE_STRFTIME]:
128612         Use underlying_strftime for %r.
128613         * lib/sha.c: Merge in some clean-up and optimization changes from
128614         glibc.
128615         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
128616         Ensure that it is a multiple of 64.
128617         Rearrange loop exit tests so as to avoid performing an
128618         additional fread after encountering an error or EOF.
128619         * lib/realloc.c: Update copyright date.
128621 2003-08-15  Jim Meyering  <jim@meyering.net>
128622         and Paul Eggert  <eggert@twinsun.com>
128624         Merge from coreutils.
128625         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
128626         member but strut utmpx does not.  Needed for AIX 4.3.3.
128627         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
128629 2003-08-15  Jim Meyering  <jim@meyering.net>
128630         and Paul Eggert  <eggert@cs.ucla.edu>
128632         Merges from coreutils, etc.
128633         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
128634         Require gl_FUNC_TZSET_CLOBBER.
128635         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
128636         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
128637         members.
128639 2003-08-14  Paul Eggert  <eggert@twinsun.com>
128641         Help the merge from coreutils.
128642         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
128643         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
128644         * m4/tzset.m4: Use it too.
128646 2003-08-14  Paul Eggert  <eggert@twinsun.com>
128648         * modules/tzset: New file.
128650 2003-08-14  Jim Meyering  <jim@meyering.net>
128652         Merges from coreutils.
128653         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
128654         variable names, rather than @FNMATCH_H@.
128655         * modules/alloca: Likewise for $(ALLOCA_H).
128657         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
128658         the three copies of the literal target, `fnmatch.h'.
128659         * modules/alloca (alloca.h): Likewise.
128661 2003-08-14  Jim Meyering  <jim@meyering.net>
128663         Merge from coreutils.
128664         * m4/tzset.m4: New file.
128665         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
128666         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
128667         otherwise, AIX 5.1 systems would end up using the latter.
128668         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
128669         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
128670         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
128671         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
128673 2003-08-14  Jim Meyering  <jim@meyering.net>
128675         Merge from coreutils.
128676         * lib/obstack.h: Whitespace changes.
128677         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
128678         and xcalloc return values.
128679         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
128680         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
128681         hang on OSF/1 5.1 for DIR on both local and remote file systems.
128682         Reported by (and fix confirmed by) Nelson H. F. Beebe.
128683         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
128684         error from mntctl.
128685         Use mntctl's return value to drive the entry-processing loop, since
128686         we can't rely on the value of the vmt_length member in the last
128687         entry.  On some systems doing so could result in exhausting
128688         virtual memory.  Based in part on a patch from Mike Jetzer.
128690 2003-08-14  Jim Meyering  <jim@meyering.net>
128691         and Paul Eggert  <eggert@twinsun.com>
128693         Merges from coreutils, plus other fixes.
128694         * lib/physmem.c: Merge in portability changes from gcc/libiberty
128695         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
128696         for credits and details.  Thanks to Kaveh Ghazi for helping
128697         to keep these files in sync.
128698         (ARRAY_SIZE): Define it.
128699         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
128700         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
128701         (memcasecmp): Don't assume size_t fits in unsigned int.
128702         Remove casts and duplicate code.
128703         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
128704         (memcpy): Remove definition.
128705         Merge in some clean-up and optimization changes from glibc.
128706         [BLOCKSIZE]: Move definition to top of file.
128707         Ensure that it is a multiple of 64.
128708         Rearrange loop exit tests so as to avoid performing an
128709         additional fread after encountering an error or EOF.
128710         * lib/md5.h (md5_uintptr): Define.
128711         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
128712         return to the initial working directory.  Preserve errno
128713         for caller.
128714         * lib/idcache.c: Include "xalloc.h".
128715         (xmalloc, xrealloc): Remove decls.
128716         (getuser): Remove casts no longer required in C89.
128717         * lib/human.c: Include stdio.h, for sprintf.
128718         * lib/group-member.c: Include "xalloc.h".
128719         (xmalloc, xrealloc): Remove decls.
128720         (get_group_info): Remove casts no longer required in C89.
128721         * lib/getusershell.c (readname): Remove casts no longer required in
128722         C89.
128723         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
128724         * lib/getline.c: Whitespace fix, from coreutils.
128726 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128728         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
128729         Check for isascii.
128731         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128732         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128733         Undo previous (whitespace-only) change.
128735 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128737         * lib/exclude.c: Include <ctype.h>
128738         (IN_CTYPE_DOMAIN): New macro.
128739         (is_space): New fn.
128740         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
128741         and empty lines.
128743         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128744         Undo previous (whitespace-only) change.
128746 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128748         * config/srclist-update: Change update back to the old behavior,
128749         leaving whitespace alone.  Use one 'sed' command rather than a
128750         pipeline.
128751         (fixlicense): Now a variable, not a function.
128752         (remove_trailing_blanks): Remove.
128753         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
128754         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128755         Undo previous (whitespace-only) change.
128757 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128759         Merge from coreutils.
128760         * modules/euidaccess: Add lib_SOURCES, include for new
128761         file euidaccess.h
128763 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128765         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128766         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128767         Normalize leading white space and remove trailing white space.
128769         Merge from coreutils
128770         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
128772         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
128773         0.12.1.  These files are now being upgraded automatically by
128774         ../config/srclist-update.
128776 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128778         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128779         Normalize leading white space and remove trailing white space.
128780         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
128781         notice, as per ../config/srclist-update.
128783         Merge from coreutils.
128784         * lib/euidaccess.h: New file.
128785         * lib/euidaccess.c: Include it.
128786         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
128787         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
128788         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
128790 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128792         * config/srclist-update: Add copyright notice.
128793         (remove_id_lines, remove_trailing_blanks): New constants.
128794         (fixfile): Use them to normalize spacing a bit in copied files.
128795         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128796         Normalize leading white space and remove trailing white space.
128798         * config/texinfo.tex: Sync with texinfo.
128800         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
128801         strtoul.c from libc, to merge coreutils whitespace changes.
128803         * config/srclist.txt: Get the following m4 files from gettext:
128804         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
128805         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
128806         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
128807         wint_t.m4.
128809 2003-08-12  Karl Berry  <karl@gnu.org>
128811         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
128812         been made.
128814 2003-08-11  Paul Eggert  <eggert@twinsun.com>
128816         * modules/gnu-source, m4/gnu-source.m4:
128817         Remove; we're assuming Autoconf 2.54 or later now.
128818         Suggested by Bruno Haible.
128819         * MODULES.html.sh (func_all_modules): Remove gnu-source.
128821 2003-08-11  Bruno Haible  <bruno@clisp.org>
128823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
128825 2003-08-11  Bruno Haible  <bruno@clisp.org>
128827         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
128828         (vasnprintf): Use it instead of wcslen.
128830 2003-08-11  Bruno Haible  <bruno@clisp.org>
128832         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
128833         value to ensure that _Bool promotes to int. Use #define for _Bool when
128834         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
128836 2003-08-10  Karl Berry  <karl@gnu.org>
128838         * lib/regex.h: update from libc (whitespace fix).
128840 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128842         Merge some files from coreutils.  These changes were
128843         originally made by Jim Meyering.
128844         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
128845         many older Unixes require this.
128846         * lib/alloca.c (alloca): Remove cast to argument of free;
128847         no longer needed in C89.
128848         * lib/alloca_.h, regex.h: Fix white space to match
128849         what GNU indent does.
128851 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128853         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
128854         apparently Emacs's Unicode mode got confused before my 2003-08-05
128855         checkin.
128857 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128859         * m4/extensions.m4: New file.
128860         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
128861         Require gl_USE_SYSTEM_EXTENSIONS.
128862         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
128863         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
128865 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128867         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
128868         * modules/extensions, modules/gnu-source: New files.
128869         * modules/timespec, modules/unlocked-io: Depend on extensions.
128871 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128873         * modules/restrict: New file.
128874         * MODULES.html.sh (func_all_modules): Add restrict.
128875         * modules/regex: Depend on restrict.
128877 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128879         * m4/restrict.m4: New file.
128880         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
128882 2003-08-07  Bruno Haible  <bruno@clisp.org>
128884         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
128885         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
128887 2003-08-07  Bruno Haible  <bruno@clisp.org>
128889         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
128890         makes the module 'getndelim2' compatible with the module 'getline'.
128892 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128894         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
128895         byte with "\201" to avoid glitches when editing that source file
128896         with multi-gnome-terminal.
128898 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128900         * lib/bumpalloc.h: Remove.
128902 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128904         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
128905         * modules/bumpalloc: Remove.
128907 2003-08-04  Paul Eggert  <eggert@twinsun.com>
128909         * lib/getloadavg.c: Change copyright notice and spacing to conform to
128910         GNU coding style.
128912         Merge from coreutils.
128913         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
128914         1. From glibc.
128915         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
128916         from Karl Berry, implemented by Jim Meyering.
128917         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
128918         from Dmitry V. Levin.
128919         Remove anachronistic cast of xrealloc.
128920         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
128921         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
128922         type. Otherwise, it wouldn't compile with at least /bin/cc on
128923         ymp-cray-unicos9.0.2.X.
128924         Combine two mostly-identical uses of alloca into one.
128925         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
128927 2003-08-04  Dave Love  <d.love@dl.ac.uk>
128929         [From Emacs.]
128931         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
128932         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
128933         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
128934         obsolete NLIST_NAME_UNION.
128935         [__GNU__]: Undef BSD and FSCALE.
128936         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
128938 2003-08-03  Paul Eggert  <eggert@twinsun.com>
128940         * lib/stdbool_.h (_Bool): Make it signed char, instead of
128941         an enum type, so that it's guaranteed to promote to int.  See:
128942         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
128944 2003-08-03  Karl Berry  <karl@gnu.org>
128946         * config/depcomp: update from automake.
128948 2003-07-31  Paul Eggert  <eggert@twinsun.com>
128950         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
128951         (strerror): Don't assume that a printable int fits in 14 bytes.
128953 2003-07-31  Bruno Haible  <bruno@clisp.org>
128955         * modules/getpass-gnu: New file.
128956         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
128958 2003-07-31  Bruno Haible  <bruno@clisp.org>
128960         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
128962 2003-07-24  Karl Berry  <karl@gnu.org>
128964         * config/missing: update from automake.
128966 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
128967             Bruno Haible  <bruno@clisp.org>
128969         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
128970         * lib/getline.c (getline, getdelim): Likewise.
128971         Remove _GNU_SOURCE define; now it's defined in config.h through
128972         m4/getline.m4.
128974 2003-07-23  Karl Berry  <karl@gnu.org>
128976         * config/config.sub: update from prep.
128978 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128980         * modules/xalloc (Depends-on): Add exitfail.
128981         * modules/xmemcoll: Likewise.
128983 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128985         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
128986         over-parenthesization in macros.
128988         Sync with coreutils.
128990         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
128991         required by C99.
128993         Use `exit_failure' for xalloc and xmemcoll instead of their own
128994         private exit-failure variables.
128995         * lib/xalloc.h (xalloc_exit_failure): Remove.
128996         * lib/xmalloc.c: Likewise.  Include exitfail.h.
128997         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
128998         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
128999         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
129000         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
129002 2003-07-20  Jim Meyering  <jim@meyering.net>
129004         * modules/closeout (Depends-on): Add exitfail.
129005         Suggestion from Bruno Haible.
129007 2003-07-19  Karl Berry  <karl@gnu.org>
129009         * config/config.sub: update from prep.
129011 2003-07-18  Paul Eggert  <eggert@twinsun.com>
129013         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
129014         Remove.
129015         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
129016         to test that it can stand by itself.  Include "exitfail.h".
129017         Clients should set exit_failure instead.
129018         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
129020 2003-07-18  Bruno Haible  <bruno@clisp.org>
129022         * modules/getndelim2: New file.
129023         * modules/getline: Share files with module getndelim2.
129024         * modules/getnline: Depend on getndelim2 instead of sharing files with
129025         it. Add getnline.c to lib_SOURCES.
129026         * MODULES.html.sh (func_all_modules): Add getndelim2.
129028 2003-07-18  Bruno Haible  <bruno@clisp.org>
129030         * m4/getndelim2.m4: New file.
129031         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
129032         invoke gl_PREREQ_GETNDELIM2.
129033         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
129034         gl_PREREQ_GETNDELIM2.
129035         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
129036         gl_GETNDELIM2.
129038 2003-07-18  Bruno Haible  <bruno@clisp.org>
129040         * lib/getndelim2.h: New file.
129041         * lib/getndelim2.c: Make into a module of its own. Include config.h,
129042         getndelim2.h.
129043         (getndelim2): Make non-static. Change return type to ssize_t.
129044         * lib/getline.h: Change argument names.
129045         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
129046         * lib/getnline.c: Include getndelim2.h.
129048 2003-07-18  Andreas Schwab  <schwab@suse.de>
129050         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
129052 2003-07-17  Karl Berry  <karl@gnu.org>
129054         * config/config.sub: update from prep.
129056 2003-07-17  Bruno Haible  <bruno@clisp.org>
129058         * modules/getnline: New file.
129059         * modules/getline: Add lib/getndelim2.c to source file list.
129060         * MODULES.html.sh (func_all_modules): Add getnline.
129062 2003-07-17  Bruno Haible  <bruno@clisp.org>
129064         * m4/getnline.m4: New file.
129066 2003-07-17  Bruno Haible  <bruno@clisp.org>
129068         * m4/Makefile.am.in: Remove file.
129069         * m4/Makefile.am: Remove file.
129070         * m4/Makefile.in: Remove file.
129072 2003-07-17  Bruno Haible  <bruno@clisp.org>
129074         * lib/getnline.h: New file.
129075         * lib/getnline.c: New file.
129076         * lib/getndelim2.c: New file, extracted from getline.c.
129077         (getndelim2): Renamed from getdelim2, with added nmax argument.
129078         * lib/getline.c: Include getndelim2.c.
129079         (getdelim2): Moved out to getndelim2.c.
129080         (getline, getdelim): Update.
129082 2003-07-17  Bruno Haible  <bruno@clisp.org>
129084         * lib/Makefile.am: Remove file.
129085         * lib/Makefile.in: Remove file.
129087 2003-07-17  Bruno Haible  <bruno@clisp.org>
129089         * configure.in: Remove file.
129090         * Makefile.in: Remove file.
129092 2003-07-17  Bruno Haible  <bruno@clisp.org>
129094         * MODULES.html.sh: Put the </BODY> right before </HTML>.
129096 2003-07-16  Karl Berry  <karl@gnu.org>
129098         * config/srclist-update: was running fixlicense twice, which caused
129099                 texinfo.tex to be nullified for some reason.  Simplify,
129100                 $gplsrc is no longer needed as far as I can see?
129102 2003-07-16  Jim Meyering  <jim@meyering.net>
129104         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
129106 2003-07-15  Paul Eggert  <eggert@twinsun.com>
129108         * config/srclist.txt: Get the following files from gettext-runtime/intl
129109         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
129110         ref-del.sin.  From Bruno Haible.
129111         * config/srclist-update (fixfile): Change grep pattern again, since the
129112         previous fix didn't work (there was another trailing $).  Use
129113         '[$]' to escape the $s.
129115 2003-07-15  Karl Berry  <karl@gnu.org>
129117         * lib/vasnprintf.c: update from gettext.
129119 2003-07-15  Karl Berry  <karl@gnu.org>
129121         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
129122         gets expanded when surrounded by '$'.
129124 2003-07-15  Jim Meyering  <jim@meyering.net>
129126         * modules/save-cwd: Don't depend on error.  From Derek Price.
129128 2003-07-15  Jim Meyering  <jim@meyering.net>
129130         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
129132 2003-07-14  Simon Josefsson  <jas@extundo.com>
129134         * modules/mempcpy: New file.
129135         * MODULES.html.sh (func_all_modules): Add mempcpy.
129137 2003-07-14  Simon Josefsson  <jas@extundo.com>
129139         * m4/mempcpy.m4: New file.
129141 2003-07-14  Simon Josefsson  <jas@extundo.com>
129143         * lib/mempcpy.h: New file.
129144         * lib/mempcpy.c: New file.
129146 2003-07-14  Paul Eggert  <eggert@twinsun.com>
129148         * modules/getdate, modules/posixtm: Depend on mktime.
129150 2003-07-14  Paul Eggert  <eggert@twinsun.com>
129152         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
129153         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
129154         unicodeio.c, unicodeio.h, unlocked-io.h:
129155         Switch from LGPL to GPL.
129157 2003-07-14  Paul Eggert  <eggert@twinsun.com>
129159         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
129160         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
129161         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
129162         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
129163         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
129164         updated automatically by ../config/srclist-update.  This changes
129165         their license from LPGL to GPL.
129167 2003-07-14  Paul Eggert  <eggert@twinsun.com>
129169         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
129170         assumed to refer to the root of the most recent stable gettext version.
129171         * config/srclistvars.sh: Add defaults for eggert.
129172         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
129173         Match "This program" as well as "The program".  This is needed
129174         for gettext.
129176 2003-07-14  Jim Meyering  <jim@meyering.net>
129178         Don't emit diagnostics.  Let callers do that.
129179         * lib/save-cwd.c: Don't include "error.h".
129180         (save_cwd): Don't call error.  Ensure that errno is valid
129181         when returning nonzero.
129183         * lib/save-cwd.h (restore_cwd): Update prototype.
129184         * lib/save-cwd.c (restore_cwd): Remove two parameters.
129185         Simplify.  Don't call error upon failure.  Let callers do that.
129186         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
129187         when auditing is enabled.  But don't bother updating the #if.
129189 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
129191         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
129192         it breaks C++ compilation.
129193         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
129195 2003-07-10  Simon Josefsson  <jas@extundo.com>
129197         * modules/strchrnul (Makefile.am): Add strchrnul.h.
129199 2003-07-10  Jim Meyering  <jim@meyering.net>
129201         * m4/clock_time.m4: Remove trailing blank.
129202         * m4/intmax_t.m4: Likewise.
129204 2003-07-10  Jim Meyering  <jim@meyering.net>
129206         * lib/vasnprintf.c: Remove trailing blanks.
129207         Make cpp indentation consistent.
129209 2003-07-09  Paul Eggert  <eggert@twinsun.com>
129211         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
129212         posixver.c, strftime.c, strnlen.c, strverscmp.c:
129213         Switch from LGPL to GPL.
129215 2003-07-09  Paul Eggert  <eggert@twinsun.com>
129217         * config/srclist.txt: Sort sublists.  Add
129218         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
129219         that differ from gnulib for one reason or another; we'd like this list
129220         to be smaller but for now let's document what we have.
129222 2003-07-08  Paul Eggert  <eggert@twinsun.com>
129224         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
129225         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
129226         and sweeter "eval x=$x".
129227         * config/srclist.txt: Get lib/argp* from glibc.
129229 2003-07-07  Paul Eggert  <eggert@twinsun.com>
129231         * lib/mktime.c: Fix some boundary cases and remove need for floating
129232         point.
129234         Issue a compile-time diagnostic if time_t is floating point, or if
129235         two's complement arithmetic is not in effect, or if arithmetic
129236         right shift does not propagate the sign.  These assumptions were
129237         all in the original code but they weren't checked.
129239         (TIME_T_MIDPOINT, verify): New macros.
129240         (__isleap): Remove; it has integer overflow problems.
129241         (leapyear): New function, without those problems.
129242         (ydhms_tm_diff): Remove; splitting into two parts.
129243         (ydhms_diff): New function, containing the arithmetic part of
129244         the old ydhms_tm_diff function.  Issue a compile-time
129245         diagnostic if we are not using C99 integer division.
129246         Avoid casts when possible.
129247         (guess_time_tm): New function, containing the checking part of
129248         the old ydhms_tm_diff function.  Return the new value, rather than
129249         the difference between it and the old.  Accept a new argument T
129250         so that *T specifies the old value.  Check for overflow in the result.
129252         (__mktime_internal): Use a time_t offset, not a long int offset.
129253         This undoes the 2003-06-04 change, which is no longer needed now
129254         that we have better overflow checking.
129255         (localtime_offset): Likewise.
129257         (__mktime_internal): Avoid harmful overflow on hosts where time_t
129258         and long are 64-bit but int is only 32-bit.
129259         (ydhms_diff): Use long int to store year1 and yday1.
129260         Issue a compile-time diagnostic if long int is not wide enough.
129262         (__mktime_internal): Use long int to store adjusted year and yday.
129263         Use plain C rather than preprocessor commands, if that doesn't
129264         affect efficiency.
129265         Check for overflow (and try to repair) after each probe
129266         rather than checking only at the very end.  This avoids some bugs
129267         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
129268         does not equal GMT offset at maximum time).
129269         Use integer to check for overflow rather than floating point; this
129270         is more portable to non-IEEE hosts, and is a tad faster.
129271         When we detect that we are oscillating between two values,
129272         don't check whether tm_isdst has the requested value, since
129273         we already know the answer.  When tm_isdst has the wrong value,
129274         use a different heuristic to find the right one, based on the
129275         extreme values actually observed in practice in tz2003a,
129276         rather than the (overly optimistic) "previous 3 calendar quarters".
129278         (not_equal_tm, print_tm, check_result): Use "const T" rather than
129279         "T const" to accommodate glibc style.
129280         (check_result): Use less-confusing report format.  "long" -> "long int.
129281         (main): Likewise.
129282         Don't loop if the iteration overflows time_t.
129283         Allow a negative step in the iteration.
129285 2003-07-06  Karl Berry  <karl@gnu.org>
129287         * config/depcomp: update from automake.
129288         * config/config.sub: update from prep.
129290 2003-07-03  Karl Berry  <karl@gnu.org>
129292         * config/config.guess: update from prep.
129294 2003-07-01  Paul Eggert  <eggert@twinsun.com>
129296         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
129297         xreadlink.c now includes it unconditionally.
129299 2003-07-01  Paul Eggert  <eggert@twinsun.com>
129301         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
129302         having it depend on HAVE_SYS_TYPES_H.
129304 2003-07-01  Bruno Haible  <bruno@clisp.org>
129306         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
129307         <sys/types.h> should be sufficient.
129308         Reported by Paul Eggert.
129310 2003-06-26  Karl Berry  <karl@gnu.org>
129312         * config/depcomp: update from automake.
129314 2003-06-26  Bruno Haible  <bruno@clisp.org>
129316         * modules/human: Depend on module stdbool.
129318 2003-06-25  Bruno Haible  <bruno@clisp.org>
129320         * modules/readlink: New file.
129321         * modules/xreadlink: Depend on it.
129322         * MODULES.html.sh (func_all_modules): Add readlink.
129324 2003-06-25  Bruno Haible  <bruno@clisp.org>
129326         * m4/readlink.m4: New file.
129328 2003-06-25  Bruno Haible  <bruno@clisp.org>
129330         * lib/readlink.c: New file.
129332 2003-06-22  Karl Berry  <karl@gnu.org>
129334         * config/srclist.txt: update mkinstalldirs from automake.
129335         * config/mkinstalldirs: update.
129337 2003-06-22  Bruno Haible  <bruno@clisp.org>
129339         Portability to mingw32.
129340         * m4/ssize_t.m4: New file, from GNU gettext.
129341         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
129342         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
129344 2003-06-22  Bruno Haible  <bruno@clisp.org>
129346         * modules/safe-read: Add m4/ssize_t.m4.
129347         * modules/xreadlink: Add m4/ssize_t.m4.
129349 2003-06-20  Bruno Haible  <bruno@clisp.org>
129351         Assume C89, so PARAMS isn't needed.
129352         * lib/unicodeio.h (PARAMS): Remove.
129353         * lib/unicodeio.c: Don't use PARAMS.
129355 2003-06-18  Karl Berry  <karl@gnu.org>
129357         * config/config.{guess,sub}: update from prep.
129359 2003-06-18  Jim Meyering  <jim@meyering.net>
129361         Merge changes from coreutils.
129362         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
129363         Remove explicit declarations of xmalloc and realloc.
129364         Include xalloc.h.
129365         (read_utmp): Remove anachronistic cast of xmalloc.
129367 2003-06-17  Paul Eggert  <eggert@twinsun.com>
129369         Assume C89, so PARAMS isn't needed.
129370         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
129371         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
129372         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
129373         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
129374         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
129375         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
129376         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
129377         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
129378         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
129379         lib/xstrtod.h, lib/xstrtol.h: Likewise.
129380         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
129381         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
129382         no longer needed. Anyway, config.h should always be included before any
129383         other file.
129385 2003-06-11  Simon Josefsson  <jas@extundo.com>
129387         * modules/sysexits: New file.
129388         * MODULES.html.sh (func_all_modules): Add sysexits.
129390 2003-06-11  Simon Josefsson  <jas@extundo.com>
129392         * lib/sysexit_.h: New file.
129394 2003-06-11  Derek Price  <derek@ximbiot.com>
129396         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
129397         necessary.
129399 2003-06-11  Bruno Haible  <bruno@clisp.org>
129401         * m4/sysexits.m4: New file.
129403 2003-06-10  Simon Josefsson  <jas@extundo.com>
129405         * lib/argp.h: New file, from glibc.
129406         * lib/argp-ba.c: New file, from glibc.
129407         * lib/argp-eexst.c: New file, from glibc.
129408         * lib/argp-fmtstream.c: New file, from glibc.
129409         * lib/argp-fmtstream.h: New file, from glibc.
129410         * lib/argp-fs-xinl.c: New file, from glibc.
129411         * lib/argp-help.c: New file, from glibc.
129412         * lib/argp-namefrob.h: New file, from glibc.
129413         * lib/argp-parse.c: New file, from glibc.
129414         * lib/argp-pv.c: New file, from glibc.
129415         * lib/argp-pvh.c: New file, from glibc.
129416         * lib/argp-xinl.c: New file, from glibc.
129418 2003-06-10  Simon Josefsson  <jas@extundo.com>
129420         * modules/strchrnul: New file.
129422 2003-06-10  Simon Josefsson  <jas@extundo.com>
129424         * modules/argp: New file.
129426 2003-06-10  Simon Josefsson  <jas@extundo.com>
129428         * m4/strchrnul.m4: New file.
129430 2003-06-10  Simon Josefsson  <jas@extundo.com>
129432         * lib/strchrnul.h: New file.
129433         * lib/strchrnul.c: New file.
129435 2003-06-10  Bruno Haible  <bruno@clisp.org>
129437         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
129439 2003-06-07  Karl Berry  <karl@gnu.org>
129441         * config/config.{guess,sub}: update from prep.
129443 2003-06-07  Jim Meyering  <jim@meyering.net>
129445         * modules/strtod: Use $(...) notation, not @...@ for
129446         AC_REPLACE'd variables.
129447         * modules/localcharset: Likewise.
129449 2003-06-07  Jim Meyering  <jim@meyering.net>
129451         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
129452         in place of my name in the copyright comment.
129453         Remove definition and uses of __P.
129455         From coreutils.
129456         * lib/stat.c: Don't declare xmalloc explicitly.
129457         Instead, include "xalloc.h".
129458         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
129459         xrealloc, and xcalloc return values.
129460         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
129461         Improve comment.
129462         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
129464 2003-06-07  Bruno Haible  <bruno@clisp.org>
129466         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
129467         avoid AC_CONFIG_LINKS.
129468         * modules/fnmatch (Makefile.am): Use explicit creation rule for
129469         fnmatch.h, to avoid AC_CONFIG_LINKS.
129470         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
129472 2003-06-07  Bruno Haible  <bruno@clisp.org>
129474         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
129475         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
129476         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
129477         directory.
129478         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
129479         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
129480         directory.
129482 2003-06-06  Jim Meyering  <jim@meyering.net>
129484         Merge from coreutils.
129485         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
129486         Consolidate declarations and initializations of *_base* locals.
129488         Merge from coreutils.
129489         This avoids a core dump on systems without GNU putenv,
129490         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
129491         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
129492         (unsetenv): New static function, from GNU libc.
129493         (rpl_putenv): Use it.
129495         * lib/modechange.c: Remove trailing blanks.
129497         Merge from coreutils.
129498         * lib/fsusage.c: Remove declaration of statfs.
129499         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
129501         * lib/posixtm.c: Include <stdbool.h> unconditionally.
129503 2003-06-06  Jim Meyering  <jim@meyering.net>
129505         * lib/stdbool_.h: Renamed from stdbool.h.in.
129507 2003-06-06  Jim Meyering  <jim@meyering.net>
129508             Bruno Haible  <bruno@clisp.org>
129510         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
129511         Adjust Makefile.am snippet not to redirect directly to target.
129512         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
129514 2003-06-05  Paul Eggert  <eggert@twinsun.com>
129516         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
129517         mismatch, look in future quarters as well as past.  This fixes a
129518         bug when processing fall-backwards gaps immediately after a long
129519         period of daylight-saving time.
129521         * lib/mktime.c: Assume freestanding C89 or better.
129522         (HAVE_LIMITS_H): Remove.  Assume it's 1.
129523         (__P): Remove; not used.
129524         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
129525         (mktime, not_equal_tm, print_tm, check_result,
129526         main): Use prototypes.  Use const * where appropriate.
129527         (main): Fix typo in testing code that uncovered by above changes.
129528         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
129530 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129532         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
129533         locale.h, localeconv.  This merges changes from coreutils.
129535         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
129536         It can be removed after the next Autoconf is released.
129537         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
129538         needed.
129540 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129542         * lib/mktime.c: Fix Debian bug 177940
129543         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
129544         (localtime_offset): Now long int, not time_t, because we want it
129545         to be guaranteed to be signed.  All uses changed.
129546         (__mktime_internal): If overflow would occur when adding offset,
129547         don't add it.
129549         Merge 'human' changes from coreutils.  Rewrite to support
129550         locale-specific notations like thousands separators.
129551         * lib/human.c: Simplify authorship notice.
129552         Include human.h immediately after config.h.
129553         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
129554         <limits.h>: Do not include, since human.h does.
129555         (SIZE_MAX, UINTMAX_MAX): New macros.
129556         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
129557         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
129558         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
129559         (power_letter): Renamed from suffixes.
129560         (generate_suffix_backwards): Remove.
129561         (adjust_value): Now takes int style (because of human.h changes)
129562         and long double value (for greater precision on some platforms).
129563         (group_number): New function.
129564         (human_readable): Use it.  Use integer options, not enum.
129565         Put the options before the sizes in the arg list.
129566         Support all the new options.
129567         The old human_readable function has been removed;
129568         use inttostr.h instead.
129569         (human_readable, default_block_size, humblock):
129570         Use uintmax_t, not int, for block sizes.
129571         (human_readable_inexact, block_size_types): Remove.
129572         (block_size_opts): New constant.
129573         (human_options): Renamed from human_block_size, with new signature
129574         that allows block sizes up to UINTMAX_MAX.  All callers changed.
129575         * lib/human.h: Add copyright and authorship notice.
129576         Include <limits.h> and <stdbool.h> unconditionally.
129577         (PARAMS): Remove.  All uses removed.
129578         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
129579         (enum human_inexact_style): Remove tag; now a nameless enum.
129580         (human_floor, human_ceiling, human_round_to_even): Now have
129581         values 2, 0, 1 rather than -1, 1, 0.
129582         (human_group_digits, human_suppress_point_zero, human_autoscale,
129583         human_base_1024, human_SI, human_B): New constants.
129584         (human_readable_inexact, human_block_size): Remove.
129585         (human_readable): Size args are now uintmax_t, not int.
129586         (human_options): New decl.
129588         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
129589         unnecessary now that we assume C89 or better.  This change
129590         imported from coreutils.
129592         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
129593         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
129594         in the 2003-05-30 sync from glibc.
129596         .h files should stand alone, but we shouldn't include <sys/types.h>
129597         if we can get away with just <stddef.h>.
129599         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
129600         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
129601         rather than <sys/types.h>, as we merely need size_t.
129602         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
129603         to get size_t.
129604         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
129605         Include <stdio.h>, to get FILE.
129606         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
129607         memcasecmp.h has included <stddef.h> and all we need is size_t.
129608         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
129609         our interface, instead of including <sys/types.h>
129611 2003-06-04  Paul Eggert  <eggert@twinsun.com>
129613         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
129614         now, as glibc mktime is buggy on non-glibc systems.
129616 2003-06-03  Karl Berry  <karl@gnu.org>
129618         * config/config.sub: update from prep.
129620 2003-06-02  Paul Eggert  <eggert@twinsun.com>
129622         [from coreutils]
129623         Fix some minor time-related bugs with POSIX time arguments.
129624         Some valid time stamps were being rejected (notably -1, and
129625         time stamps before 1900 on 64-bit hosts).  And some invalid
129626         time stamps were being accepted, e.g. September 31.
129628         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
129629         that we can return (time_t) -1 successfully.
129630         * lib/posixtm.c: Likewise.
129631         [HAVE_STDBOOL_H]: Include <stdbool.h>.
129632         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
129633         (t): Remove static var.
129634         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
129635         of static var.  All uses changed.
129636         (year): Do not reject years before 1900; they can occur with
129637         64-bit time_t.
129638         (posix_time_parse): Do not check for out-of-range components;
129639         that is now the caller's responsibility, since our checks were
129640         only approximations.
129641         (posixtime): Use mktime to check for out-of-range components,
129642         since it knows them exactly.
129643         If mktime returns (time_t) -1, check whether an error actually occurred
129644         by invoking localtime on -1.
129645         (main) [TEST_POSIXTIME]: Check for input data errors, and report
129646         posixtime failures better.
129647         Improve the test data (in comments only).
129649 2003-06-02  Karl Berry  <karl@gnu.org>
129651         * config/mkinstalldirs (version): new variable.
129652         (--version): new option.
129653         (usage): improve message.
129655 2003-05-30  Karl Berry  <karl@gnu.org>
129657         * lib/mktime.c: update from libc.
129659 2003-05-30  Bruno Haible  <bruno@clisp.org>
129661         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
129662         * config/config.rpath: Upgrade to gettext-0.12.1.
129664 2003-05-30  Bruno Haible  <bruno@clisp.org>
129666         * m4/gettext.m4: Upgrade to gettext-0.12.1.
129667         * m4/nls.m4: New file, from gettext-0.12.1.
129668         * m4/po.m4: New file, from gettext-0.12.1.
129669         * m4/progtest.m4: Upgrade to gettext-0.12.1.
129671 2003-05-30  Bruno Haible  <bruno@clisp.org>
129673         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
129674         * lib/localcharset.h: Likewise.
129675         * lib/localcharset.c: Likewise.
129677 2003-05-29  Karl Berry  <karl@gnu.org>
129679         * config/config.rpath: update from gettext.
129681 2003-05-28  Paul Eggert  <eggert@twinsun.com>
129683         Assume the headers required for C89 freestanding compilers.
129684         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
129685         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
129686         * m4/human.m4 (gl_HUMAN): Likewise.
129687         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
129688         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
129689         * m4/userspec.m4 (gl_USERSPEC): Likewise.
129690         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
129691         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
129692         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
129694 2003-05-28  Paul Eggert  <eggert@twinsun.com>
129696         Assume the headers required for C89 freestanding compilers.
129697         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
129698         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
129699         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
129700         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
129701         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
129702         define, since <limits.h> is guaranteed to do that.
129703         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
129704         * lib/exclude.c: Include <stdbool.h> unconditionally.
129705         * lib/tempname.c: Include <stddef.h> unconditionally.
129706         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
129707         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
129708         <stddef.h> does that.
129709         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
129710         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
129711         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
129712         needed.
129713         * lib/xstrtol.c: Likewise.
129714         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
129715         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
129717         * lib/addext.c (addext): Use assignment rather than cast, to avoid
129718         warnings on some platforms.
129720         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
129721         arbitrarily.
129723 2003-05-26  Jim Meyering  <jim@meyering.net>
129725         Merge in a change from coreutils:
129726         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
129727         that is guaranteed to be `no'.  Use `no_such_member' to indicate
129728         that condition, rather than `-1' which is slightly misleading.
129729         Change the name of the cache variable to have the gl_ prefix.
129730         Prompted by a patch from Richard Dawe for DJGPP.
129732 2003-05-24  Karl Berry  <karl@gnu.org>
129734         * config/config.guess: update from prep.
129736 2003-05-22  Karl Berry  <karl@gnu.org>
129738         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
129740 2003-05-20  Karl Berry  <karl@gnu.org>
129742         * config/config.guess: update from prep.
129744 2003-05-18  Karl Berry  <karl@gnu.org>
129746         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
129747         might actually be set by the user.
129749         * config/depcomp, install-sh, mdate-sh: update from automake.
129751 2003-05-17  Bruno Haible  <bruno@clisp.org>
129753         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
129754         invalid expansion for AC_EGREP_CPP.
129755         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
129756         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
129757         Suggested by Akim Demaille <akim@epita.fr> in
129758         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
129760 2003-05-12  Jim Meyering  <jim@meyering.net>
129762         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
129763         the space-padded-by-default conversion specifiers, %e, %k, %l.
129765 2003-05-12  Bruno Haible  <bruno@clisp.org>
129767         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
129768         the string is longer than 4 KB.
129770 2003-05-11  Karl Berry  <karl@gnu.org>
129772         * config/config.{guess,sub}: update from prep.
129774 2003-05-09  Bruno Haible  <bruno@clisp.org>
129776         * modules/error: Add m4/strerror_r.m4 to file list.
129778 2003-05-03  Bruno Haible  <bruno@clisp.org>
129780         Upgrade to Unicode-4.0.
129781         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
129782         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
129783         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
129784         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
129785         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
129786         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
129787         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
129788         Change width of U+E0100..U+E01EF from 1 to 0.
129790 2003-04-25  Jim Meyering  <jim@meyering.net>
129792         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
129793         of type size_t, not int.
129795 2003-04-25  Bruno Haible  <bruno@clisp.org>
129797         * lib/copy-file.c: Include <stddef.h>, for size_t.
129799 2003-04-21  Paul Eggert  <eggert@twinsun.com>
129801         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
129802         code which expansion is under static control.  Patch imported from
129803         Akim Demaille's patch to Bison; see
129804         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
129806 2003-04-14  Bruno Haible  <bruno@clisp.org>
129808         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
129810 2003-04-11  Jim Meyering  <jim@meyering.net>
129812         Merge changes from Coreutils.
129814         2003-03-22  Jim Meyering  <jim@meyering.net>
129816         * lib/strftime.c (widen): Cast alloca return value to proper type.
129818         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
129820         From GNU libc.
129821         * lib/strftime.c (my_strftime): Handle very large width
129822         specifications for numeric values correctly.  Improve checks for
129823         overflow.
129825         2003-01-19  Jim Meyering  <jim@meyering.net>
129827         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
129828         definitions.
129829         (nl_get_alt_digit) [! defined my_strftime]: Define.
129830         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
129831         _nl_get_alt_digit and _nl_get_walt_digit.
129833         * lib/strftime.c (my_strftime): Merge in locale-related changes from
129834         libc. These changes have no effect outside of _LIBC.
129836 2003-04-10  Bruno Haible  <bruno@clisp.org>
129838         * modules/findprog: New file.
129839         * MODULES.html.sh (func_all_modules): Add it.
129841 2003-04-10  Bruno Haible  <bruno@clisp.org>
129843         * m4/findprog.m4: New file.
129844         * m4/eaccess.m4: New file.
129846 2003-04-10  Bruno Haible  <bruno@clisp.org>
129848         * lib/findprog.h: New file, from GNU gettext.
129849         * lib/findprog.c: New file, from GNU gettext.
129851 2003-04-05  Jim Meyering  <jim@meyering.net>
129853         Merge changes from Coreutils.
129855         * lib/exclude.h (PARAMS): Remove definition and uses.
129856         * lib/exclude.c: Remove uses of `PARAMS'.
129858         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
129859         Add test-cases for DOS filenames. Declare program_name.
129860         (main): Set up program_name.  Patch by Rich Dawe.
129862         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
129863         error from mntctl.
129864         Use mntctl's return value to drive the entry-processing loop, since
129865         we can't rely on the value of the vmt_length member in the last
129866         entry.  On some systems doing so could result in exhausting
129867         virtual memory.  Based in part on a patch from Mike Jetzer.
129869 2003-04-04  Bruno Haible  <bruno@clisp.org>
129871         * modules/linebreak: New file.
129872         * MODULES.html.sh (func_all_modules): Add it.
129874 2003-04-04  Bruno Haible  <bruno@clisp.org>
129876         * m4/linebreak.m4: New file.
129878 2003-04-04  Bruno Haible  <bruno@clisp.org>
129880         * lib/linebreak.h: New file, from GNU gettext.
129881         * lib/linebreak.c: New file, from GNU gettext with slight
129882         modifications.
129883         * lib/lbrkprop.h: New file, from GNU gettext.
129885 2003-04-03  Bruno Haible  <bruno@clisp.org>
129887         * modules/utf8-ucs4: New file.
129888         * modules/utf16-ucs4: New file.
129889         * modules/ucs4-utf8: New file.
129890         * modules/ucs4-utf16: New file.
129891         * MODULES.html.sh (func_all_modules): Add them.
129893 2003-04-03  Bruno Haible  <bruno@clisp.org>
129895         * m4/utf-ucs4.m4: New file.
129896         * m4/ucs4-utf.m4: New file.
129898 2003-04-03  Bruno Haible  <bruno@clisp.org>
129900         * lib/utf8-ucs4.h: New file, from GNU gettext.
129901         * lib/utf16-ucs4.h: New file, from GNU gettext.
129902         * lib/ucs4-utf8.h: New file, from GNU gettext.
129903         * lib/ucs4-utf16.h: New file, from GNU gettext.
129905 2003-04-02  Bruno Haible  <bruno@clisp.org>
129907         * modules/binary-io: New file.
129908         * MODULES.html.sh (func_all_modules): Add it.
129910 2003-04-02  Bruno Haible  <bruno@clisp.org>
129912         * lib/binary-io.h: New file, from GNU gettext.
129914 2003-04-01  Bruno Haible  <bruno@clisp.org>
129916         * modules/pathname: New file.
129917         * MODULES.html.sh (func_all_modules): Add it.
129919 2003-04-01  Bruno Haible  <bruno@clisp.org>
129921         * lib/pathname.h: New file, from GNU gettext.
129922         * lib/concatpath.c: New file, from GNU gettext.
129924 2003-03-30  Bruno Haible  <bruno@clisp.org>
129926         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
129928 2003-03-30  Bruno Haible  <bruno@clisp.org>
129930         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
129931         function chown() doesn't exist.
129933 2003-03-28  Bruno Haible  <bruno@clisp.org>
129935         * modules/copy-file: New file.
129936         * MODULES.html.sh (func_all_modules): Add it.
129938 2003-03-28  Bruno Haible  <bruno@clisp.org>
129940         * m4/copy-file.m4: New file.
129942 2003-03-28  Bruno Haible  <bruno@clisp.org>
129944         * lib/copy-file.h: New file, from GNU gettext.
129945         * lib/copy-file.c: New file, from GNU gettext.
129947 2003-03-18  Jim Meyering  <jim@meyering.net>
129949         * lib/quote.c (quote_n): Fix typo in comment.
129951 2003-03-18  Bruno Haible  <bruno@clisp.org>
129953         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
129954         checking.
129955         * m4/onceonly_2_57.m4: Likewise.
129957 2003-03-17  Bruno Haible  <bruno@clisp.org>
129959         * m4/onceonly.m4: Require autoconf 2.54 or newer.
129960         (m4_quote): Remove macro.
129961         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
129963 2003-03-14  Jim Meyering  <jim@meyering.net>
129965         Merge changes from Coreutils.
129966         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
129967         to be const, in order to avoid warnings.
129968         (obstack_room): Likewise.
129969         (obstack_empty_p): Likewise.
129971 2003-03-14  Bruno Haible  <bruno@clisp.org>
129973         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
129974         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
129976 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129978         Merge changes from Bison.
129979         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
129980         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
129981         when compiling Bison 1.875's `bitset bset = obstack_alloc
129982         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
129983         * lib/hash.c: Include <stdbool.h> unconditionally.
129985 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129987         * m4/onceonly.m4 (m4_quote): New macro.
129988         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
129989         Quote AC_FOREACH variable-expansions properly.
129991 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129993         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
129995 2003-03-09  Paul Eggert  <eggert@twinsun.com>
129997         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
129998         Reported by Bruce Becker; see:
129999         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
130001 2003-03-03  Paul Eggert  <eggert@twinsun.com>
130002             Bruno Haible  <bruno@clisp.org>
130004         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
130005         Reported by John Hughes, see
130006         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
130008 2003-02-20  Bruno Haible  <bruno@clisp.org>
130010         * MODULES.html.sh (func_all_modules): Add poll.
130012 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
130014         * modules/poll: New file.
130016 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
130018         * lib/poll_.h: New file.
130019         * lib/poll.c: New file.
130021 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
130023         * m4/poll.m4: New file.
130025 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
130027         * modules/mathl: New file.
130029 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
130031         * lib/mathl.h: New file.
130032         * lib/acosl.c: New file.
130033         * lib/asinl.c: New file.
130034         * lib/atanl.c: New file.
130035         * lib/ceill.c: New file.
130036         * lib/cosl.c: New file.
130037         * lib/expl.c: New file.
130038         * lib/floorl.c: New file.
130039         * lib/frexpl.c: New file.
130040         * lib/ldexpl.c: New file.
130041         * lib/logl.c: New file.
130042         * lib/sincosl.c: New file.
130043         * lib/sinl.c: New file.
130044         * lib/sqrtl.c: New file.
130045         * lib/tanl.c: New file.
130046         * lib/trigl.c: New file.
130047         * lib/trigl.h: New file.
130049 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
130051         * m4/mathl.m4: New file.
130053 2003-02-18  Bruno Haible  <bruno@clisp.org>
130055         * MODULES.html.sh (func_all_modules): Add mathl.
130057 2003-02-17  Bruno Haible  <bruno@clisp.org>
130059         * modules/mkdtemp: New module.
130060         * MODULES.html.sh (func_all_modules): Add it.
130062 2003-02-17  Bruno Haible  <bruno@clisp.org>
130064         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
130066 2003-02-17  Bruno Haible  <bruno@clisp.org>
130068         * lib/mkdtemp.h: New file, from GNU gettext.
130069         * lib/mkdtemp.c: New file, from GNU gettext.
130071 2003-02-02  Jim Meyering  <jim@meyering.net>
130073         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
130074         e.g. glibc-2.2.93.
130076 2003-01-31  Bruno Haible  <bruno@clisp.org>
130078         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
130079         'rpl_rename'.
130080         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
130081         'rpl_strnlen'.
130082         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
130083         'rpl_strtod'.
130084         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
130085         'rpl_utime'.
130087 2003-01-31  Bruno Haible  <bruno@clisp.org>
130089         * lib/rename.c: #undef rename before defining rpl_rename.
130090         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
130092 2003-01-30  Bruno Haible  <bruno@clisp.org>
130094         * modules/vasnprintf, modules/vasprintf: New modules.
130095         * MODULES.html.sh (func_all_modules): Add them.
130097 2003-01-30  Bruno Haible  <bruno@clisp.org>
130099         * m4/signed.m4: New file, from GNU gettext.
130100         * m4/longdouble.m4: New file, from GNU gettext.
130101         * m4/wchar_t.m4: New file, from GNU gettext.
130102         * m4/wint_t.m4: New file, from GNU gettext.
130103         * m4/vasnprintf.m4: New file.
130104         * m4/vasprintf.m4: New file.
130106 2003-01-30  Bruno Haible  <bruno@clisp.org>
130108         * lib/printf-args.h: New file, from GNU gettext.
130109         * lib/printf-args.c: New file, from GNU gettext.
130110         * lib/printf-parse.h: New file, from GNU gettext.
130111         * lib/printf-parse.c: New file, from GNU gettext.
130112         * lib/vasnprintf.h: New file, from GNU gettext.
130113         * lib/vasnprintf.c: New file, from GNU gettext.
130114         * lib/asnprintf.c: New file, from GNU gettext.
130115         * lib/vasprintf.h: New file, from GNU gettext with modifications.
130116         * lib/vasprintf.c: New file, from GNU gettext.
130117         * lib/asprintf.c: New file, from GNU gettext.
130119 2003-01-29  Bruno Haible  <bruno@clisp.org>
130121         * modules/stpncpy: New module.
130122         * MODULES.html.sh (func_all_modules): Add it.
130124 2003-01-29  Bruno Haible  <bruno@clisp.org>
130126         * m4/stpncpy.m4: New file.
130128 2003-01-29  Bruno Haible  <bruno@clisp.org>
130130         * lib/stpncpy.h: New file, from GNU gettext with modifications.
130131         * lib/stpncpy.c: New file, from GNU gettext with modifications.
130133 2003-01-28  Bruno Haible  <bruno@clisp.org>
130135         * modules/c-ctype: New module.
130136         * MODULES.html.sh (func_all_modules): Add it.
130138 2003-01-28  Bruno Haible  <bruno@clisp.org>
130140         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
130141         Paul Eggert.
130142         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
130143         Paul Eggert.
130145 2003-01-27  Bruno Haible  <bruno@clisp.org>
130147         * modules/xsetenv: New module.
130148         * MODULES.html.sh (func_all_modules): Add it.
130150 2003-01-27  Bruno Haible  <bruno@clisp.org>
130152         * lib/xsetenv.h: New file, from GNU gettext.
130153         * lib/xsetenv.c: New file, from GNU gettext.
130155 2003-01-23  Jim Meyering  <jim@meyering.net>
130157         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
130158         from working on systems without dirfd (at least Irix and OSF1/Tru64).
130160 2003-01-23  Bruno Haible  <bruno@clisp.org>
130162         * modules/minmax: New module.
130163         * MODULES.html.sh (func_all_modules): Add it.
130165 2003-01-23  Bruno Haible  <bruno@clisp.org>
130167         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
130168         Eggert.
130170 2003-01-22  Bruno Haible  <bruno@clisp.org>
130172         * modules/exit: New module.
130173         * MODULES.html.sh (func_all_modules): Add it.
130175 2003-01-22  Bruno Haible  <bruno@clisp.org>
130177         * lib/exit.h: New file, from GNU gettext.
130179 2003-01-19  Bruno Haible  <bruno@clisp.org>
130181         * gnulib-tool: Recognize option --extract-maintainer.
130182         (func_get_maintainer): New function.
130183         * modules/*: Add Maintainer entry.
130185 2003-01-16  Jim Meyering  <jim@meyering.net>
130187         * m4/regex.m4: The `regex' struct is both input and output.
130188         Initialize it before each use.  Patch by Tim Waugh.
130190 2003-01-16  Bruno Haible  <bruno@clisp.org>
130192         * MODULES.html.sh: Add a table of contents. Add the module name as
130193         leftmost column. Add hyperlinks.
130195 2003-01-15  Bruno Haible  <bruno@clisp.org>
130197         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
130199 2003-01-15  Bruno Haible  <bruno@clisp.org>
130201         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
130202         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
130203         suffix.
130205 2003-01-15  Bruno Haible  <bruno@clisp.org>
130207         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
130209 2003-01-15  Bruno Haible  <bruno@clisp.org>
130211         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
130212         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
130214 2003-01-14  Jim Meyering  <jim@meyering.net>
130216         * lib/same.c (same_name): Tweak a comment.
130218 2003-01-14  Bruno Haible  <bruno@clisp.org>
130220         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
130221         when a string comparison is sufficient.
130223 2003-01-14  Bruno Haible  <bruno@clisp.org>
130225         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
130226         'unsigned int'.
130228 2003-01-14  Bruno Haible  <bruno@clisp.org>
130230         * lib/hash-pjw.c: Add comment about low quality of this function.
130232 2003-01-13  Bruno Haible  <bruno@clisp.org>
130234         * modules/stpcpy: Distribute lib/stpcpy.h.
130235         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
130237 2003-01-13  Bruno Haible  <bruno@clisp.org>
130239         * modules/*: Add a description.
130240         * modules/strpbrk: Fix Makefile.am snippet.
130241         * modules/strtoimax: Fix dependencies.
130242         * modules/strtoumax: Likewise.
130244 2003-01-13  Bruno Haible  <bruno@clisp.org>
130246         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
130247         * modules/alloca (Makefile.am): All object files depend on alloca.h.
130248         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
130250 2003-01-13  Bruno Haible  <bruno@clisp.org>
130252         * gnulib-tool (func_create_testdir): Store config/* files in the main
130253         directory.
130254         * config.rpath: Move to ...
130255         * config/config.rpath: ... here.
130256         * modules/gettext: Contains config/config.rpath, not config.rpath.
130257         * modules/iconv: Likewise.
130259 2003-01-12  Paul Eggert  <eggert@twinsun.com>
130261         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
130262         to avoid collisions with libcurses and libreadline.
130264         * m4/getstr.m4: Remove.
130265         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
130267 2003-01-12  Paul Eggert  <eggert@twinsun.com>
130269         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
130270         to avoid collisions with libcurses and libreadline.
130272         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
130273         * lib/getstr.h, getstr.c: Remove.
130274         * lib/getline.c: Include "getline.h", to check interface.
130275         Move body of old getstr.c here: this defines MIN_CHUNK and
130276         declares getdelim2, which is renamed from getstr.
130277         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
130279         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
130280         All uses changed.
130281         * lib/linebuffer.h: Likewise.
130282         (readline): Remove backward-compatibility macro.
130284 2003-01-12  Paul Eggert  <eggert@twinsun.com>
130286         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
130287         to avoid collisions with libcurses and libreadline.
130288         * getstr: Remove.
130289         * MODULES.html.sh: Remove getstr.
130290         * modules/getline: Depend on unlocked-io, not getstr.
130292 2003-01-12  Jim Meyering  <jim@meyering.net>
130294         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
130296 2003-01-10  Bruno Haible  <bruno@clisp.org>
130298         * modules/alloca: Change Makefile.am requirements. Simplify Include
130299         requirements. Add lib/alloca_.h to file list.
130301 2003-01-10  Bruno Haible  <bruno@clisp.org>
130303         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
130305 2003-01-10  Bruno Haible  <bruno@clisp.org>
130307         * lib/alloca_.h: New file.
130308         * lib/getdate.y: Unconditionally include alloca.h.
130309         * lib/makepath.c: Likewise.
130310         * lib/setenv.c: Likewise.
130311         * lib/userspec.c: Likewise.
130313 2003-01-09  Karl Berry  <karl@gnu.org>
130315         * MODULES.html.sh: include `dirname $0` in PATH, to find
130316         gnulib-tool.
130318 2003-01-09  Bruno Haible  <bruno@clisp.org>
130320         * modules/stdbool: Change configure.ac, Makefile.am requirements.
130321         Simplify Include requirements. Add lib/stdbool.h.in to file list.
130323 2003-01-09  Bruno Haible  <bruno@clisp.org>
130325         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
130327 2003-01-09  Bruno Haible  <bruno@clisp.org>
130329         * lib/stdbool.h.in: New file.
130331 2003-01-09  Bruno Haible  <bruno@clisp.org>
130333         * gnulib-tool (func_all_modules): Ignore files ending in ~.
130334         * MODULES.html.sh: Likewise.
130336 2003-01-08  Jim Meyering  <jim@meyering.net>
130338         * lib/full-write.c: Undefine and define-away `const' after inclusion
130339         of errno.h, not before.  Suggestion from Bruno Haible.
130341 2003-01-08  Bruno Haible  <bruno@clisp.org>
130343         * modules/full-read: Depend on full-write.
130345 2003-01-08  Bruno Haible  <bruno@clisp.org>
130347         * lib/safe-read.c: Include specification header first, to ensure its
130348         selfcontainedness.
130349         * lib/full-write.c: Likewise.
130351 2003-01-07  Jim Meyering  <jim@meyering.net>
130353         * lib/full-write.c: Rework so that it may serve to define full_read,
130354         too.
130355         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
130357 2003-01-07  Bruno Haible  <bruno@clisp.org>
130359         * lib/strtoimax.c: Include <stdint.h> as an alternative to
130360         <inttypes.h>.
130361         * lib/xstrtol.h: Likewise.
130362         * lib/xstrtoimax.c: Likewise.
130363         * lib/xstrtoumax.c: Likewise.
130364         * lib/human.h: Likewise.
130366         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
130367         on systems that have <inttypes.h> but not <stdint.h>.
130369 2003-01-07  Bruno Haible  <bruno@clisp.org>
130371         * MODULES.html.sh: Add copyright notice.
130372         (missed_files): Omit CVS directory entries.
130373         (func_module): Make it work with sed-3.02.
130374         * MODULES.txt: Remove file.
130376 2003-01-06  Jim Meyering  <jim@meyering.net>
130378         * lib/version-etc.c: Update year in translatable copyright string.
130380 2003-01-03  Karl Berry  <karl@gnu.org>
130382         * config/config.{guess,sub}: update from prep.
130384 2003-01-02  Karl Berry  <karl@gnu.org>
130386         * doc/COPYING.DOC: belatedly updated to 1.2.
130388 2003-01-01  Karl Berry  <karl@gnu.org>
130390         * gnulib-tool (func_verify_module): report module name $module in
130391         error message, not $1.
130392         * gnulib-tool (create-testdir): don't complain if destdir couldn't
130393         be created, only if it doesn't exist.
130394         * gnulib-tool (last_checkin_date): don't expand the $Date here.
130396 2002-12-31  Paul Eggert  <eggert@twinsun.com>
130398         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
130400 2002-12-31  Paul Eggert  <eggert@twinsun.com>
130402         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
130403         memcmp if strcoll doesn't work.
130405 2002-12-31  Bruno Haible  <bruno@clisp.org>
130407         * lib/utime.c (utime_null): No need to call ftruncate if the file was
130408         nonempty.
130410 2002-12-31  Bruno Haible  <bruno@clisp.org>
130412         * lib/memcoll.c (STRCOLL): New macro.
130413         (memcoll): Use it.
130415 2002-12-31  Bruno Haible  <bruno@clisp.org>
130417         * lib/localcharset.h: New file.
130418         * lib/localcharset.c: Include it.
130419         * lib/unicodeio.c: Likewise.
130421 2002-12-31  Bruno Haible  <bruno@clisp.org>
130423         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
130424         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
130426 2002-12-31  Bruno Haible  <bruno@clisp.org>
130428         * lib/getline.h: Include <stddef.h>, for size_t.
130430         * lib/unicodeio.h: Include <stddef.h>, for size_t.
130431         * lib/unicodeio.c: Don't include <stddef.h>.
130433 2002-12-31  Bruno Haible  <bruno@clisp.org>
130435         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
130436         HAVE_TM_ZONE.
130438 2002-12-24  Karl Berry  <karl@gnu.org>
130440         * config/config.guess: update from prep.
130442 2002-12-24  Bruno Haible  <bruno@clisp.org>
130444         General infrasructure.
130445         * m4/README: Rewritten.
130446         * m4/onceonly.m4: New file.
130447         * m4/onceonly_2_57.m4: New file.
130449         Module atexit.
130450         * m4/atexit.m4: New file.
130452         Module strtod.
130453         * m4/strtod.m4: New file.
130455         Module strtol.
130456         * m4/strtol.m4: New file.
130458         Module strtoul.
130459         * m4/strtoul.m4: New file.
130461         Module memchr.
130462         * m4/memchr.m4: New file.
130464         Module memcmp.
130465         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
130466         (jm_FUNC_MEMCMP): Invoke it.
130468         Module memcpy.
130469         * m4/memcpy.m4: New file.
130471         Module memmove.
130472         * m4/memmove.m4: New file.
130474         Module memset.
130475         * m4/memset.m4: New file.
130477         Module strcspn.
130478         * m4/strcspn.m4: New file.
130480         Module strpbrk.
130481         * m4/strpbrk.m4: New file.
130483         Module strstr.
130484         * m4/strstr.m4: New file.
130486         Module strerror.
130487         * m4/strerror.m4: New file.
130489         Module mktime.
130490         * m4/mktime.m4: Renamed from jm-mktime.m4.
130491         (gl_PREREQ_MKTIME): New macro.
130492         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
130494         Module malloc.
130495         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
130496         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
130497         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
130499         Module realloc.
130500         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
130501         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
130502         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
130504         Module strftime.
130505         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
130506         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
130507         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
130508         gl_TM_GMTOFF.
130509         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
130511         Module xalloc.
130512         * m4/xalloc.m4: New file.
130514         Module alloca.
130515         * m4/alloca.m4: New file.
130517         Module putenv.
130518         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
130519         (jm_FUNC_PUTENV): Invoke it.
130521         Module setenv.
130522         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
130523         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
130524         when invoked twice.
130525         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
130526         gt_FUNC_SETENV.
130528         Module memrchr.
130529         * m4/memrchr.m4: New file.
130531         Module stpcpy.
130532         * m4/stpcpy.m4: New file.
130534         Module strcase.
130535         * m4/strcase.m4: New file.
130537         Module strdup.
130538         * m4/strdup.m4: New file.
130540         Module strnlen.
130541         * m4/strnlen.m4: New file.
130543         Module strndup.
130544         * m4/strndup.m4: New file.
130546         Module xstrtod.
130547         * m4/xstrtod.m4: New file.
130549         Module xstrtol.
130550         * m4/xstrtol.m4: New file.
130552         Module getdate.
130553         * m4/getdate.m4: New file.
130555         Module unlocked-io.
130556         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
130557         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
130558         * m4/jm-glibc-io.m4n: Remove file.
130560         Module long-options.
130561         * m4/long-options.m4: New file.
130563         Module md5.
130564         * m4/md5.m4: New file.
130566         Module sha.
130567         * m4/sha.m4: New file.
130569         Module getstr.
130570         * m4/getstr.m4: New file.
130572         Module getline.
130573         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
130574         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
130575         <sys/types.h>, for size_t. Use the function name gnu_getline, not
130576         simply getline. Infoke gl_PREREQ_GETLINE.
130578         Module obstack.
130579         * m4/obstack.m4: New file.
130581         Module hash.
130582         * m4/hash.m4: New file.
130584         Module readtokens.
130585         * m4/readtokens.m4: New file.
130587         Module strverscmp.
130588         * m4/strverscmp.m4: New file.
130590         Module stdbool.
130591         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
130592         OSF/1.
130594         Module strtoll.
130595         * m4/strtoll.m4: New file.
130597         Module strtoull.
130598         * m4/strtoull.m4: New file.
130600         Module strtoimax.
130601         * m4/strtoimax.m4: New file.
130603         Module strtoumax.
130604         * m4/strtoumax.m4: New file.
130606         Module xstrtoimax.
130607         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
130608         jm_AC_PREREQ_XSTRTOIMAX.
130609         Moved the strtol prerequisites to strtol.m4.
130610         Moved the strtoll prerequisites to strtoll.m4.
130611         Moved the strtoimax prerequisites to strtoimax.m4.
130613         Module xstrtoumax.
130614         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
130615         jm_AC_PREREQ_XSTRTOUMAX.
130616         Moved the strtoul prerequisites to strtoul.m4.
130617         Moved the strtoull prerequisites to strtoull.m4.
130618         Moved the strtoumax prerequisites to strtoumax.m4.
130620         Module chown.
130621         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
130622         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
130624         Module dup2.
130625         * m4/dup2.m4: New file.
130627         Module ftruncate.
130628         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
130629         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
130631         Module getgroups.
130632         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
130633         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
130635         Module gettimeofday.
130636         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
130637         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
130638         gl_PREREQ_GETTIMEOFDAY.
130640         Module mkdir.
130641         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
130642         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
130644         Module mkstemp.
130645         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
130646         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
130647         jm_AC_TYPE_UINTMAX_T.
130648         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
130650         Module stat.
130651         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
130652         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
130654         Module lstat.
130655         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
130656         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
130658         Module timespec.
130659         * m4/timespec.m4 (gl_TIMESPEC): New macro.
130660         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
130661         * m4/st_mtim.m4: Indentation.
130663         Module nanosleep.
130664         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
130665         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
130666         gl_PREREQ_NANOSLEEP.
130668         Module regex.
130669         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
130670         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
130671         (gl_REGEX): New macro.
130673         Module rename.
130674         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
130675         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
130677         Module rmdir.
130678         * m4/rmdir.m4: New file.
130680         Module utime.
130681         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
130682         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
130683         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
130685         Module dirname.
130686         * m4/dirname.m4: New file.
130688         Module getopt.
130689         * m4/getopt.m4: New file.
130691         Module unistd-safer.
130692         * m4/unistd-safer.m4: New file.
130694         Module fnmatch.
130695         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
130696         declaration.
130697         (gl_PREREQ_FNMATCH_EXTRA): New macro.
130698         (gl_FUNC_FNMATCH_POSIX): New macro.
130699         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
130700         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
130701         simply fnmatch.
130703         Module exclude.
130704         * m4/exclude.m4: New file.
130706         Module human.
130707         * m4/human.m4: New file.
130709         Module acl.
130710         * m4/acl.m4: Nop.
130712         Module backupfile.
130713         * m4/backupfile.m4: New file.
130714         * m4/d-ino.m4: Indentation.
130716         Module fsusage.
130717         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
130718         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
130719         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
130721         Module dirfd.
130722         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
130723         requirements.
130725         Module euidaccess.
130726         * m4/euidaccess.m4: New file.
130728         Module file-type.
130729         * m4/file-type.m4: New file.
130731         Module fileblocks.
130732         * m4/fileblocks.m4: New file.
130734         Module filemode.
130735         * m4/filemode.m4: New file.
130737         Module isdir.
130738         * m4/isdir.m4: New file.
130740         Module lchown.
130741         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
130742         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
130744         Module makepath.
130745         * m4/makepath.m4: New file.
130747         Module modechange.
130748         * m4/modechange.m4: New file.
130750         Module mountlist.
130751         * m4/mountlist.m4: New file.
130752         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
130753         Indentation.
130755         Module path-concat.
130756         * m4/path-concat.m4: New file.
130758         Module pathmax.
130759         * m4/pathmax.m4: New file.
130761         Module same.
130762         * m4/same.m4: New file.
130764         Module save-cwd.
130765         * m4/save-cwd.m4: New file.
130767         Module savedir.
130768         * m4/savedir.m4: New file.
130770         Module xgetcwd.
130771         * m4/xgetcwd.m4: New file.
130772         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
130774         Module xreadlink.
130775         * m4/xreadlink.m4: New file.
130777         Module safe-read.
130778         * m4/safe-read.m4: New file.
130780         Module safe-write.
130781         * m4/safe-write.m4: New file.
130783         Module closeout.
130784         * m4/closeout.m4: New file.
130786         Module stdio-safer.
130787         * m4/stdio-safer.m4: New file.
130789         Module getpass.
130790         * m4/getpass.m4: New file.
130792         Module getugroups.
130793         * m4/getugroups.m4: New file.
130795         Module group-member.
130796         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
130797         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
130799         Module idcache.
130800         * m4/idcache.m4: New file.
130802         Module userspec.
130803         * m4/userspec.m4: New file.
130805         Module gettime.
130806         * m4/clock_time.m4: New file.
130807         * m4/gettime.m4: New file.
130809         Module settime.
130810         * m4/settime.m4: New file.
130812         Module posixtm.
130813         * m4/posixtm.m4: New file.
130815         Module gethostname.
130816         * m4/gethostname.m4: New file.
130818         Module canon-host.
130819         * m4/canon-host.m4: New file.
130821         Module gettext.
130822         * m4/codeset.m4: New file, from gettext-0.11.5.
130823         * m4/gettext.m4: New file, from gettext-0.11.5.
130824         * m4/glibc21.m4: New file, from gettext-0.11.5.
130825         * m4/iconv.m4: New file, from gettext-0.11.5.
130826         * m4/intdiv0.m4: New file, from gettext-0.11.5.
130827         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
130828         * m4/inttypes.m4: New file, from gettext-0.11.5.
130829         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
130830         * m4/isc-posix.m4: New file, from gettext-0.11.5.
130831         * m4/lcmessage.m4: New file, from gettext-0.11.5.
130832         * m4/lib-ld.m4: New file, from gettext-0.11.5.
130833         * m4/lib-link.m4: New file, from gettext-0.11.5.
130834         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
130835         * m4/progtest.m4: New file, from gettext-0.11.5.
130836         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
130837         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
130838         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
130840         Module localcharset.
130841         * m4/localcharset.m4: New file.
130843         Module hard-locale.
130844         * m4/hard-locale.m4: New file.
130846         Module mbswidth.
130847         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
130848         onceonly macros.
130849         * m4/mbrtowc.m4: Add comment.
130851         Module memcasecmp.
130852         * m4/memcasecmp.m4: New file.
130854         Module memcoll.
130855         * m4/memcoll.m4: New file.
130857         Module unicodeio.
130858         * m4/unicodeio.m4: New file.
130860         Module rpmatch.
130861         * m4/rpmatch.m4: New file.
130863         Module yesno.
130864         * m4/yesno.m4: New file.
130866         Module exitfail.
130867         * m4/exitfail.m4: New file.
130869         Module c-stack.
130870         * m4/c-stack.m4 (gl_C_STACK): New macro.
130871         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
130873         Module error.
130874         * m4/error.m4 (gl_ERROR): New macro.
130875         (jm_PREREQ_ERROR): Use onceonly macros.
130877         Module fatal.
130878         * m4/fatal.m4: New file.
130880         Module getloadavg.
130881         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
130882         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
130884         Module getpagesize.
130885         * m4/getpagesize.m4: New file.
130887         Module getusershell.
130888         * m4/getusershell.m4: New file.
130890         Module physmem.
130891         * m4/physmem.m4: New file.
130893         Module posixver.
130894         * m4/posixver.m4: New file.
130896         Module quotearg.
130897         * m4/quotearg.m4: New file.
130899         Module quote.
130900         * m4/quote.m4: New file.
130902         Module readutmp.
130903         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
130905         Module sig2str.
130906         * m4/sig2str.m4: New file.
130908         Other.
130909         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
130910         ulonglong.m4.
130911         * m4/intmax_t.m4: New file.
130912         * m4/d-type.m4: Indentation.
130913         * m4/jm-macros.m4: Update.
130914         * m4/prereq.m4 (jm_PREREQ): Update.
130915         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
130916         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
130917         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
130918         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
130919         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
130920         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
130921         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
130922         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
130923         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
130924         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
130925         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
130926         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
130927         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
130928         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
130929         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
130930         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
130931         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
130932         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
130933         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
130935 2002-12-24  Bruno Haible  <bruno@clisp.org>
130937         * MODULES.txt: Update according to m4/ changes.
130939         Module gettext.
130940         * config.rpath: New file, from gettext-0.11.5.
130942         * modules/*: New module descriptions.
130943         * gnulib-tool: New file.
130944         * MODULES.html.sh: New file.
130946 2002-12-21  Karl Berry  <karl@gnu.org>
130948         * doc/fdl.texi: update to version 1.2.
130950 2002-12-19  Karl Berry  <karl@gnu.org>
130952         * config/config.guess: update from prep.
130954 2002-12-18  Bruno Haible  <bruno@clisp.org>
130956         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
130957         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
130959 2002-12-17  Bruno Haible  <bruno@clisp.org>
130961         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
130962         stdlib.h, string.h.
130964 2002-12-17  Bruno Haible  <bruno@clisp.org>
130966         * lib/canon-host.c (strdup): Remove unused declaration.
130968         * lib/fsusage.c: Include full_read.h.
130969         (get_fs_usage): Use full_read instead of safe_read.
130971         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
130973 2002-12-12  Karl Berry  <karl@gnu.org>
130975         * config/config.guess: update from prep.
130977 2002-12-11  Bruno Haible  <bruno@clisp.org>
130979         * m4/setenv.m4: New file, from gettext-0.11.5.
130981 2002-12-11  Bruno Haible  <bruno@clisp.org>
130983         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
130984         not unsetenv().
130985         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
130986         modifications:
130988         2002-12-11  Bruno Haible  <bruno@clisp.org>
130990                 * setenv.c (alloca): Fall back to malloc.
130991                 (freea): New macro.
130992                 (setenv): Use freea() to free memory allocated with alloca().
130994         2002-11-13  Bruno Haible  <bruno@clisp.org>
130996                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
130997                 function declarations.
130998                 * unsetenv.c (unsetenv): Likewise.
131000         2002-03-04  Bruno Haible  <bruno@clisp.org>
131002                 Portability to AIX 4.3.3.
131003                 * unsetenv.c: New file, extracted from setenv.c.
131004                 * setenv.c: Move the unsetenv() function to unsetenv.c.
131006         2001-12-20  Bruno Haible  <bruno@clisp.org>
131008                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
131009                 use malloc instead. For SunOS 4.
131011         2001-12-11  Bruno Haible  <bruno@clisp.org>
131013                 * setenv.c: Declare alloca.
131014                 (compar_fn_t): New typedef.
131015                 (KNOWN_VALUE, STORE_VALUE): Use it.
131017         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
131018         setenv.h.
131020 2002-12-10  Paul Eggert  <eggert@twinsun.com>
131022         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
131023         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
131024         Choose values that are less likely to collide with system fnmatch
131025         options.
131026         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
131027         defined (e.g., a pure POSIX system).
131028         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
131029         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
131031 2002-12-06  Paul Eggert  <eggert@twinsun.com>
131033         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
131034         a pain in practice to deal with generated m4 files.  This change
131035         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
131037         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
131038         and jm-glibc-io.m4, as they are no longer a special case.
131039         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
131040         kludge and the auto-generation stuff.  Check only whether the
131041         functions are declared, not whether they exist, since older hosts
131042         that don't declare the functions can't use the optimization anyway.
131044 2002-12-06  Jim Meyering  <jim@meyering.net>
131046         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
131048         Merge in changes from libc's misc/error.c, in preparation
131049         for the merge of gnulib's changes back into libc.
131051         * lib/error.c (_): Define only if not already defined.
131052         Move definition to follow all #include directives.
131053         Include unlocked-io.h only if !_LIBC.
131054         [_LIBC]: Include <libio/libioP.h>.
131055         [USE_IN_LIBIO]: Include <libio/iolibio.h>
131056         (fflush): Tweak definition to use INTUSE.
131057         (putc): Define.
131059 2002-12-05  Paul Eggert  <eggert@twinsun.com>
131061         * lib/alloca.c [defined emacs]: Include "lisp.h".
131062         (xalloc_die) [defined emacs]: New macro.
131063         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
131064         [! defined emacs]: Include <xalloc.h>.
131065         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
131066         (pointer): Typedef to POINTER_TYPE *.
131067         (malloc): Remove decl; we now always use xmalloc.
131068         (alloca): Use old-style definition, since Emacs needs this.
131069         Check for arithmetic overflow when computing combined size.
131071 2002-12-04  Paul Eggert  <eggert@twinsun.com>
131073         Do not generate unlocked-io.h automatically, since it's easier to
131074         maintain it by hand.
131076         * lib/unlocked-io.h: New file, from GNU diffutils,
131077         but with proper copyright notice and attribution.
131078         * lib/gen-uio: Remove.
131079         * lib/Makefile.am: Add copyright notice.
131080         (libfetish_a_SOURCES): Add unlocked-io.h.
131081         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
131082         (DISTCLEANFILES, io_functions): Remove macros.
131083         (EXTRA_DIST): Remove gen_uio.
131084         (unlocked-io.h): Remove rule.
131086 2002-12-04  Jim Meyering  <jim@meyering.net>
131088         Reflect the fact that stat.c and lstat.c are no longer generated.
131089         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
131090         (DISTCLEANFILES): Likewise.
131091         (EXTRA_DIST): Likewise.
131092         (all_local): Don't depend on stat.c or lstat.c.
131093         (stat.c, lstat.c): Remove rules.
131094         (EXTRA_DIST): Remove xstat.in.
131096         * lib/xstat.in: Remove file.  Contents moved into stat.c.
131097         * lib/stat.c: New file.  Contents mostly from xstat.in.
131098         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
131099         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
131101         * lib/safe-read.c: Rework so that it may serve to define safe_write,
131102         too.
131103         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
131105 2002-12-03  Jim Meyering  <jim@meyering.net>
131107         * lib/safe-read.c, safe-write.c: Change variable names and comments,
131108         but not semantics, to minimize the differences between these two files.
131109         (safe_read): Change comment to mention SAFE_READ_ERROR.
131111         * lib/safe-read.c (IS_EINTR): Define.
131112         (safe_read): Use IS_EINTR in place of in-function cpp directives.
131114 2002-12-02  Jim Meyering  <jim@meyering.net>
131116         * lib/safe-read.c (EINTR): Define.
131117         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
131118         (INT_MAX): Provide fallback.
131119         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
131121         * lib/safe-read.h (SAFE_READ_ERROR): Define.
131123 2002-12-02  Bruno Haible  <bruno@clisp.org>
131125         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
131126         Define, taken from safe-read.c.
131127         (INT_MAX): Provide fallback.
131128         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
131129         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
131131         * lib/safe-read.c (EINTR): Remove definition.
131132         (safe_read): Don't use EINTR if it is absent.
131134 2002-12-01  Jim Meyering  <jim@meyering.net>
131136         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
131137         zero.
131138         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
131140 2002-11-27  Paul Eggert  <eggert@twinsun.com>
131142         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
131143         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
131144         with `if (! (value < limit)) abort ();', for readability.
131146 2002-11-26  Karl Berry  <karl@gnu.org>
131148         * lib/strdup.c: copy from libc again, with jim's ok.
131149         * lib/.cppi-disable: re-add strdup.c
131151 2002-11-25  Karl Berry  <karl@gnu.org>
131153         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
131154         instead of "strtol.c".
131156 2002-11-25  Karl Berry  <karl@gnu.org>
131158         * config/install-sh: update from automake for variable quoting, $0 in
131159         error msgs, etc.
131161         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
131162         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
131163         entry.
131165 2002-11-25  Jim Meyering  <jim@meyering.net>
131167         * lib/mktime.c: Sync from libc, now that it has the latest fix.
131169 2002-11-24  Karl Berry  <karl@gnu.org>
131171         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
131172         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
131174 2002-11-24  Jim Meyering  <jim@meyering.net>
131176         Update from coreutils:
131178         * lib/mktime.c: Merge in changes from libc.
131180         Avoid a link-time failure on some Linux systems.
131181         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
131182         (otherwise).
131183         (__mon_yday): Declare with the STATIC attribute.
131184         (__mktime_internal): Likewise.
131185         Based on a report from Greg Schafer.
131187 2002-11-23  Jim Meyering  <jim@meyering.net>
131189         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
131190         Use `unsigned', not `int', as type of index.
131192         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
131194         * lib/fsusage.c: Remove unneeded parentheses around operands of
131195         `defined'.
131197 2002-11-22  Paul Eggert  <eggert@twinsun.com>
131199         * lib/quotearg.h: Allow multiple inclusion by surrounding with
131200         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
131201         so that we can be included first.
131202         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
131203         * lib/quotearg.c: Include quotearg.h immediately after config.h.
131204         No need to include stddef.h or sys/types.h any more.
131205         Surround local include files with "", not "<>".
131206         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
131207         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
131208         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
131209         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
131210         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
131211         (ISPRINT): Remove; no longer needed now that we assume C89.
131213         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
131214         Preserve errno.
131216         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
131217         quotearg_char): Use SIZE_MAX rather than
131218         (size_t) -1 when we are talking about "infinity".
131220         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
131222 2002-11-22  Paul Eggert  <eggert@twinsun.com>
131224         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
131225         hint that one should use `if (! x) abort ();' rather than `assert
131226         (x);', and anyway it's one less thing to worry about configuring.
131227         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
131228         hash_rehash, hash_insert): Use abort rather than assert.
131230 2002-11-22  Bruno Haible  <bruno@clisp.org>
131232         * lib/safe-read.h: Assume C89. Add comments.
131233         (safe_read): Change return type to size_t.
131234         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
131235         byte counts > SSIZE_MAX correctly.
131236         * lib/safe-write.h: New file.
131237         * lib/safe-write.c: New file.
131238         * lib/full-read.h: New file.
131239         * lib/full-read.c: New file.
131240         * lib/full-write.h: Assume C89. Add comments.
131241         * lib/full-write.c: Include safe-write.h.
131242         (full_write): Rewritten to use safe_write.
131243         Suggested by Jim Meyering and Paul Eggert.
131245 2002-11-21  Jim Meyering  <jim@meyering.net>
131247         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
131249         Merge in changes from the coreutils.
131251         2002-09-25  Paul Eggert  <eggert@twinsun.com>
131252         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
131253         <stdint.h>.
131254         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
131255         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
131256         int.  Work more efficiently if X is the same width as uintmax_t.
131257         Do not compare X to -1, to avoid bogus compiler warning.
131258         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
131259         Don't assume that f_frsize and f_bsize are the same type.
131261         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
131262         warning on FreeBSD.
131264         * lib/makepath.c (make_path): Restore umask *before* creating the final
131265         component.
131266         (make_path): Minor reformatting.
131268         * lib/xmalloc.c: Adjust to work with new autoconf macros,
131269         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
131270         HAVE_MALLOC/HAVE_REALLOC.
131272         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
131273         dummy ones.  At least on GNU/Linux systems, `auto' means something
131274         else.
131275         From Michael Stone.
131277 2002-11-21  Bruno Haible  <bruno@clisp.org>
131279         Remove case insensitive option matching.
131280         * lib/argmatch.h (argcasematch): Remove declaration.
131281         (ARGCASEMATCH): Remove macro.
131282         (__xargmatch_internal): Remove case_sensitive argument.
131283         (XARGMATCH): Update.
131284         (XARGCASEMATCH): Remove macro.
131285         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
131286         case_sensitive argument.
131287         (argcasematch): Remove function.
131288         (__xargmatch_internal): Remove case_sensitive argument.
131289         (main): Use XARGMATCH instead of XARGCASEMATCH.
131291         * lib/xmalloc.c: Change compile-time error message. Add comment about
131292         required autoconf version.
131294 2002-11-20  Paul Eggert  <eggert@twinsun.com>
131296         Merge argmatch cleanups from Bison.  Assume C89.
131298         * lib/argmatch.c: Include config.h here, not in argmatch.h.
131299         Include stdlib.h, for EXIT_FAILURE.
131300         Always include <string.h>, since we assume C89.
131301         (EXIT_FAILURE): Remove pre-C89 bug workaround.
131302         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
131303         Include <stddef.h> instead, since it's all we need for size_t.
131304         (PARAMS): Remove.  All uses removed.
131305         (ARRAY_CARDINALITY): Do not bother to #undef.
131306         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
131307         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
131308         Remove unnecessary parentheses.
131309         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
131310         Insert necessary parentheses.
131311         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
131312         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
131314 2002-11-19  Bruno Haible  <bruno@clisp.org>
131316         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
131317         * lib/mbswidth.h: Include <stddef.h>, for size_t.
131319         * lib/mbswidth.h (PARAMS): Remove macro.
131320         (mbswidth, mbsnwidth): Use ANSI C function declarations.
131321         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
131323         * lib/gcd.h (PARAMS): Remove macro.
131324         (gcd): Use ANSI C function declarations.
131325         * lib/gcd.c (gcd): Likewise.
131327 2002-11-15  Bruno Haible  <bruno@clisp.org>
131329         * lib/strcspn.c: Include <stddef.h>.
131330         (strcspn): Use ANSI C function declaration. Change return type to
131331         size_t. Use NULL.
131332         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
131333         (strpbrk): Use NULL.
131334         * lib/strpbrk.h (PARAMS): Remove macro.
131335         (strpbrk): Use ANSI C function declaration.
131336         * lib/strstr.c: Don't include <sys/types.h>.
131337         * lib/strstr.h (PARAMS): Remove macro.
131338         (strstr): Use ANSI C function declarations.
131340 2002-11-14  Karl Berry  <karl@gnu.org>
131342         * config/mkinstalldirs: `do' on separate line, instead of
131343         `for var; do'.
131345 2002-11-06  Bruno Haible  <bruno@clisp.org>
131347         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
131348         * lib/gcd.c (gcd): Likewise.
131350 2002-11-05  Bruno Haible  <bruno@clisp.org>
131352         * lib/gcd.h: New file, from gettext-0.11.5.
131353         * lib/gcd.c: New file, from gettext-0.11.5.
131355 2002-11-05  Bruno Haible  <bruno@clisp.org>
131357         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131358         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131359         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131360         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
131362         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
131363         <libintl.h>.
131364         * lib/makepath.c: Include gettext.h instead of <locale.h> and
131365         <libintl.h>.
131367         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
131368         * lib/human.c: Include gettext.h instead of <libintl.h>.
131369         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
131370         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
131371         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
131372         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
131373         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
131374         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
131375         (textdomain): Remove definition.
131376         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
131378         * lib/long-options.c: Remove include of <libintl.h> and definition of
131379         _.
131380         * lib/same.c: Remove include of <libintl.h> and definition of _.
131382 2002-11-04  Owen Taylor  <otaylor@redhat.com>
131384         * lib/config.charset: A few additions for Solaris.
131386 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
131388         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
131389         * lib/localcharset.c (locale_charset): Declare as extern "C".
131391 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
131393         * lib/config.charset: msdos in uk_UA uses CP1125.
131395 2002-11-04  Bruno Haible  <bruno@clisp.org>
131397         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
131398         * lib/strcase.h: New file, from GNU gettext-0.11.5.
131399         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
131400         * lib/strstr.h: New file, from GNU gettext-0.11.5.
131401         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
131403 2002-11-04  Bruno Haible  <bruno@clisp.org>
131405         * lib/localcharset.c (locale_charset): Don't return an empty string.
131407 2002-11-04  Bruno Haible  <bruno@clisp.org>
131409         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
131410         aliases.
131412 2002-11-04  Bruno Haible  <bruno@clisp.org>
131414         * lib/config.charset: Update for newest glibc. Add canonical names
131415         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
131417 2002-11-04  Bruno Haible  <bruno@clisp.org>
131419         * lib/config.charset: Add support for NetBSD.
131421 2002-11-04  Bruno Haible  <bruno@clisp.org>
131423         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
131425 2002-11-01  Bruno Haible  <bruno@clisp.org>
131427         * configure.in: Add AC_CONFIG_AUX_DIR call.
131428         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
131429         test/Makefile.
131430         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
131432 2002-09-28  Karl Berry  <karl@gnu.org>
131434         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
131435         installed automake until the next release, since changes have been
131436         made.
131438 2002-09-25  Karl Berry  <karl@gnu.org>
131440         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
131441         * lib/getopt*: copy from libc/posix.
131442         * lib/gettext.h: copy from gettext.
131443         * lib/.cppi-disable: add strdup.c, gettext.h.
131445 2002-09-25  Karl Berry  <karl@gnu.org>
131447         * config/srclist.txt: enable gettext.h check.
131448         * config/config.{guess,sub}: update from prep.
131449         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
131450                 from automake 1.6.3.
131451         See srclist*.
131453 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
131455         * regex.c (PATFETCH): Remove the translating fetch.
131456         (PATFETCH_RAW): Rename to PATFETCH.
131457         (set_image_of_range): New fun.
131458         (SET_RANGE_TABLE_WORK_AREA): Use it.
131459         (regex_compile): Don't translate the pattern chars so eagerly.
131460         Only do it when inserting an `exactn' bytecode or when handling
131461         a char-range.
131462         (mutually_exclusive_p): Avoid empty statement.
131464 2002-07-06  Jim Meyering  <meyering@lucent.com>
131466         * m4/README: Don't mention Makefile.am.in.
131467         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
131469 2002-07-01  Jim Meyering  <meyering@lucent.com>
131471         * lib/c-stack.c: Include sys/time.h.
131472         From Volker Borchert.
131474 2002-06-26  Paul Eggert  <eggert@twinsun.com>
131476         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
131478 2002-06-26  Paul Eggert  <eggert@twinsun.com>
131480         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
131481         New macro.  Use it uniformly instead of
131482         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
131483         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
131484         reported by Vin Shelton.
131486 2002-06-22  Paul Eggert  <eggert@twinsun.com>
131488         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
131489         Do not assume SA_SIGINFO behavior.
131490         Bug reported by Jim Meyering on NetBSD 1.5.2.
131492 2002-06-22  Jim Meyering  <meyering@lucent.com>
131494         * m4/c-stack.m4: New file, from diffutils-2.8.2.
131495         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
131497         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
131498         now that configure.ac uses AC_GNU_SOURCE.
131499         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
131500         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
131502         Update to latest tools.  Suggestions from Paul Eggert.
131503         * m4/stdbool.m4: New file, from diffutils-2.8.2.
131504         * m4/gnu-source.m4: Update from diffutils-2.8.2.
131505         * m4/fnmatch.m4: Likewise.
131506         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
131507         to AC_HEADER_STDBOOL
131509 2002-06-22  Jim Meyering  <meyering@lucent.com>
131511         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
131512         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
131514 2002-06-22  Jim Meyering  <meyering@lucent.com>
131516         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
131518         * lib/exitfail.c, exitfail.h: Likewise.
131519         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
131521         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
131522         of fnmatch.h.
131523         (EXTRA_DIST): Add fnmatch_loop.c.
131524         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
131526         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
131527         * lib/fnmatch.c: Update from diffutils-2.8.2.
131528         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
131529         * lib/fnmatch.h: Remove file.
131531 2002-06-21  Jim Meyering  <meyering@lucent.com>
131533         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
131534         * m4/mbrtowc.m4: Likewise.
131536         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
131537         * m4/mbswidth.m4: Reflect name change:
131538         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
131539         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131541         * m4/lib-link.m4: Update from gettext-0.11.2.
131542         * m4/gettext.m4: Likewise.
131544         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
131545         From Alfred M. Szmidt.
131547 2002-06-18  Paul Eggert  <eggert@twinsun.com>
131549         * lib/file-type.h: Report an error if neither S_ISREG nor
131550         S_IFREG is defined, instead of using a test specific to glibc
131551         2.2.  This should be safe, since POSIX requires S_ISREG and
131552         Unix Version 7 had S_IFREG.  We don't need to check for
131553         <sys/types.h> since we don't use any symbols that it defines.
131555 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
131557         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
131558         $@-t, so that each temporary file name is unique and valid in the first
131559         8 characters, for operation under DOS.
131561 2002-06-15  Paul Eggert  <eggert@twinsun.com>
131563         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
131565 2002-06-15  Jim Meyering  <meyering@lucent.com>
131567         Work even with DJGPP 2.03, which lacks support for symlinks.
131568         From Richard Dawe.
131569         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
131570         is defined.
131571         * lib/lchown.c (S_ISLNK): Likewise.
131573 2002-06-15  Jim Meyering  <meyering@lucent.com>
131575         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
131576         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
131577         have been included before this file.
131579 2002-06-14  Jim Meyering  <meyering@lucent.com>
131581         * lib/file-type.h: Use the version from diffutils-2.8.2.
131582         * lib/file-type.c: Likewise.
131584 2002-06-07  Jim Meyering  <meyering@lucent.com>
131586         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
131587         They're needed at least for NetBSD 1.5.2.
131588         ($statxfs_includes): Include those same headers.
131589         ($statxfs_includes): Include sys/vfs.h if available.
131590         ($statxfs_includes): Likewise for sys/statvfs.h.
131591         Check for the following members in both structs statfs and statvfs:
131592         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
131594 2002-06-01  Jim Meyering  <meyering@lucent.com>
131596         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
131597         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
131599 2002-05-28  Jim Meyering  <meyering@lucent.com>
131601         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
131602         Reported by Volker Borchert.
131604 2002-05-27  Jim Meyering  <meyering@lucent.com>
131606         Fix a problem seen only on nonconforming systems whereby ls.c's
131607         use of localtime, and then of gettimeofday would cause trouble:
131608         the localtime call used to initialize rpl_gettimeofday's save
131609         mechanism would clobber ls's current local time information so
131610         that in any long listing the first file would always be listed
131611         with date 1970-01-01.  Analysis by Volker Borchert.
131613         * lib/gettimeofday.c (localtime): Undefine.
131614         (rpl_localtime): New function.
131616 2002-05-27  Jim Meyering  <meyering@lucent.com>
131618         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
131619         localtime.
131621         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
131622         use the replacement function; it wouldn't resolve at link time.
131623         Reported by Volker Borchert.
131625 2002-05-22  Jim Meyering  <meyering@lucent.com>
131627         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
131628         file-type.h.
131629         * lib/file-type.h: New file.
131630         * lib/file-type.c (file_type): New file/function.  Extracted from
131631         diffutils.
131633 2002-04-30  Jim Meyering  <meyering@lucent.com>
131635         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
131637 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131639         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
131641 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131643         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
131644         Do not check for alloca.h (no longer used) or stdbool.h (was never
131645         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
131647 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131649         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
131651 2002-04-29  Jim Meyering  <meyering@lucent.com>
131653         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
131654         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
131655         Use AC_FUNC_STRNLEN here instead.
131657         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
131658         With autoconf-2.53a, it's part of AC_PROG_CC.
131660 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131662         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
131663         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
131665 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131667         * lib/sig2str.h, lib/sig2str.c: New files.
131668         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
131670 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131672         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
131673         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
131674         of 127, since 64 is the largest conceivable number for ancient
131675         nonstandard hosts.
131676         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
131678 2002-04-28  Jim Meyering  <meyering@lucent.com>
131680         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
131682 2002-04-24  Jim Meyering  <meyering@lucent.com>
131684         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
131685         (jm_PREREQ): Use it.
131687         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
131688         mach/mach.h fcntl.h.
131689         Check for this function: setlocale.
131691 2002-04-24  Jim Meyering  <meyering@lucent.com>
131693         * lib/gettext.h: New file, from Gettext.
131694         * lib/Makefile.am (INCLUDES): Remove -I../intl.
131695         (libfetish_a_SOURCES): Add gettext.h.
131697 2002-04-16  Jim Meyering  <meyering@lucent.com>
131699         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
131700         ut_pid, ut_id, ut_exit.
131702 2002-04-16  Jim Meyering  <meyering@lucent.com>
131704         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
131705         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
131706         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
131708 2002-04-12  Jim Meyering  <meyering@lucent.com>
131710         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
131711         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
131712         existence of the getmntinfo function.  Needed for Darwin 5.3.
131714         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
131715         This is necessary at least on Darwin 5.3.
131717         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
131718         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
131719         strnlen.o in the library, and that makes some versions of ranlib
131720         object.
131722 2002-04-12  Jim Meyering  <meyering@lucent.com>
131724         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
131726 2002-04-09  Jim Meyering  <meyering@lucent.com>
131728         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
131729         to be more precise.  Rather than saying we're checking whether the
131730         function `works', say what we're testing.
131731         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
131732         Reported by Bruno Haible.
131734 2002-03-10  Jim Meyering  <meyering@lucent.com>
131736         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
131737         Suggestion from Santiago Vila.
131739 2002-03-08  Jim Meyering  <meyering@lucent.com>
131741         * lib/rename.c: Mention that this wrapper is needed also on
131742         mips-dec-ultrix4.4 systems.
131744 2002-03-02  Jim Meyering  <meyering@lucent.com>
131746         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
131747         not HAVE_CLOCK_SETTIME.
131749 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131751         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
131752         Check for clock_settime.
131754 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131756         * lib/nanosleep.h: Rename to....
131757         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
131759         * lib/gettime.c: New file.
131760         * lib/settime.c: New file.
131761         * lib/stime.c: Remove.
131763         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
131764         timespec.h.  Remove nanosleep.h.
131766 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131768         * m4/acl.m4: New file.
131769         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
131770         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
131772 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131774         * lib/acl.c, lib/acl.h: New files.
131775         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
131777 2002-02-24  Jim Meyering  <meyering@lucent.com>
131779         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
131780         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
131781         cause trouble.  Reported by Nelson Beebe.
131783 2002-02-23  Paul Eggert  <eggert@twinsun.com>
131785         * lib/path-concat.c (xpath_concat): Reorder code to pacify
131786         compilers that don't know that xalloc_die never returns.
131788 2002-02-20  Jim Meyering  <meyering@lucent.com>
131790         * lib/getdate.c: Regenerate using bison-1.33.
131792 2002-02-17  Jim Meyering  <meyering@lucent.com>
131794         * config/config.guess (main): Don't use `head -1'; it's no longer
131795         portable. Use `sed 1q' instead.
131797 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
131799         * m4/codeset.m4: Upgrade to gettext-0.11.
131800         * m4/gettext.m4: Upgrade to gettext-0.11.
131801         * m4/glibc21.m4: Upgrade to gettext-0.11.
131802         * m4/iconv.m4: Upgrade to gettext-0.11.
131803         * m4/isc-posix.m4: Upgrade to gettext-0.11.
131804         * m4/lcmessage.m4: Upgrade to gettext-0.11.
131805         * m4/lib-ld.m4: New file, from gettext-0.11.
131806         * m4/lib-link.m4: New file, from gettext-0.11.
131807         * m4/lib-prefix.m4: New file, from gettext-0.11.
131808         * m4/progtest.m4: Upgrade to gettext-0.11.
131810 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131812         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
131813         (jm_PREREQ): Use it.
131815 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131817         * lib/posixver.c, lib/posixver.h: New files.
131818         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131820 2002-02-02  Paul Eggert  <eggert@twinsun.com>
131821             Bruno Haible  <bruno@clisp.org>
131823         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
131824         (fwrite_success_callback): New declaration.
131825         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
131826         print_unicode_char. Call failure callback instead of error.
131827         (fwrite_success_callback): New function.
131828         (exit_failure_callback): New function.
131829         (fallback_failure_callback): New function.
131830         (print_unicode_char): Call unicode_to_mb.
131832 2002-01-26  Jim Meyering  <meyering@lucent.com>
131834         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
131835         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
131837 2002-01-26  Jim Meyering  <meyering@lucent.com>
131839         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
131841 2002-01-22  Paul Eggert  <eggert@twinsun.com>
131843         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
131845 2002-01-22  Jim Meyering  <meyering@lucent.com>
131847         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
131848         Otherwise, some versions of automake would omit the rule that makes
131849         Makefile from Makefile.in.
131851 2002-01-21  Paul Eggert  <eggert@twinsun.com>
131853         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
131854         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131855         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
131856         (memcoll): Set errno to zero if there is no error.
131858         * lib/quotearg.c (quotearg_buffer_restyled):
131859         Fix bug with quoting buffers containing NUL when backslashing escapes.
131860         This bug was exposed by the other changes in this patch.
131861         (quotearg_n_options): New arg ARGSIZE.
131862         All callers changed.
131863         (quoting_options_from_style): New function.
131864         (quotearg_n_style): Use it.
131865         (quotearg_n_style_mem): New function.
131867         * lib/quotearg.h (quotearg_n_style_mem): New function.
131869 2002-01-19  Jim Meyering  <meyering@lucent.com>
131871         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
131872         Remove useless quotes: DF_PROG="df".
131873         * m4/strnlen.m4: New file.
131875 2002-01-16  Paul Eggert  <eggert@twinsun.com>
131877         * lib/backupfile.c (ISDIGIT): Comment fix.
131878         * lib/getdate.y (ISDIGIT): Likewise.
131879         * lib/posixtm.c (ISDIGIT, year): Likewise.
131880         * lib/strverscmp.c (ISDIGIT): Likewise.
131881         * lib/userspec.c (ISDIGIT): Likewise.
131883 2002-01-16  Jim Meyering  <meyering@lucent.com>
131885         * lib/getdate.y: Add three semicolons, each just before a closing
131886         brace. Bison (as of version 1.31) no longer papers over that mistake.
131888 2002-01-05  Jim Meyering  <meyering@lucent.com>
131890         * lib/version-etc.c (version_etc_copyright): Update copyright year.
131892 2001-12-19  Paul Eggert  <eggert@twinsun.com>
131894         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
131895         not silently exit merely because the output buffer happens to
131896         have nothing pending.
131898 2001-12-18  Paul Eggert  <eggert@twinsun.com>
131900         See the big note in ../ChangeLog.
131901         * lib/human.c (suffixes): Prefer K to k for 1024.
131902         (generate_suffix_backwards): New function.
131903         (human_readable_inexact): Use it.
131904         * lib/xstrtol.c (__xstrtol): If there is no number but there
131905         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
131906         Accept 'K' as well as 'k'.
131908 2001-12-15  Jim Meyering  <meyering@lucent.com>
131910         * lib/regex.h (__restrict_arr): Update from libc.
131912         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
131913         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
131914         (STREQ): Define.
131916 2001-12-14  Jim Meyering  <meyering@lucent.com>
131918         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
131919         Suggestion from Bruno Haible.
131921 2001-12-10  Jim Meyering  <meyering@lucent.com>
131923         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
131924         xrealloc, Instead, include "xalloc.h".
131925         (initbuffer): Don't cast xmalloc return value to char*.
131926         (readline): Reword comment.
131927         Don't cast xrealloc return value to char*
131928         Return NULL, not 0.
131930 2001-12-09  Jim Meyering  <meyering@lucent.com>
131932         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
131933         about `signed and unsigned type in conditional expression'.
131934         * lib/posixtm.c (posix_time_parse): Likewise.
131936         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
131938         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
131939         to avoid a pedantic warning.
131941         * lib/getstr.c: Don't include assert.h.
131942         (getstr): Remove warning-evoking assertions.
131943         Return -1 if offset parameter is out of bounds.
131944         Change the type of a local from int to size_t.
131946         * lib/strftime.c (my_strftime_localtime_r): Include this function
131947         definition in the `#if ! HAVE_TM_GMTOFF' block.
131949         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
131950         Include xalloc.h instead.
131952 2001-12-02  Jim Meyering  <meyering@lucent.com>
131954         * lib/tempname.c: Don't declare getenv, thus reverting the change of
131955         2001-11-18.  It's no longer necessary, now that stdlib.h is always
131956         included.
131958         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
131959         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
131961 2001-11-30  Akim Demaille  <akim@epita.fr>
131963         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
131964         before being defined.
131966 2001-11-27  Paul Eggert  <eggert@twinsun.com>
131968         * lib/quotearg.h (quotearg_n, quotearg_n_style):
131969         First arg is int, not unsigned.
131970         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
131971         (SIZE_MAX, UINT_MAX): New macros.
131972         (quotearg_n_options): Abort if N is negative.
131973         Avoid overflow check on hosts where size_t is 64 bits and int
131974         is 32 bits, as overflow is impossible there.
131975         Fix off-by-one typo that caused unnecessary reallocation.
131977 2001-11-27  Jim Meyering  <meyering@lucent.com>
131979         * lib/tempname.c: Merge with version from libc.
131980         * lib/regex.c: Likewise.
131982         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
131983         systems for which STDC_HEADERS is 0, it was not included, resulting in
131984         a warning about an integer-to-pointer conversion problem with getenv.
131985         Reported by Volker Borchert.
131987 2001-11-26  Jim Meyering  <meyering@lucent.com>
131989         * lib/gtod.h: Remove file.
131990         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
131991         * lib/gettimeofday.c: Don't include gtod.h.
131992         (GTOD_init): Remove function.
131993         (rpl_gettimeofday): Do its job here instead, rather than aborting.
131994         Suggestion from Volker Borchert.
131996 2001-11-23  Jim Meyering  <meyering@lucent.com>
131998         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
131999         it.
132000         * lib/hash.c (struct hash_table): Define it here instead.
132002 2001-11-22  Jim Meyering  <meyering@lucent.com>
132004         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
132006 2001-11-20  Jim Meyering  <meyering@lucent.com>
132008         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
132009         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
132011 2001-11-19  Jim Meyering  <meyering@lucent.com>
132013         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
132014         directory.  Use "conftestXXXXXX" as the template.
132015         Suggestion from Paul Eggert.
132017         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
132018         immediately, so the test doesn't mistakenly hit the max-open-files
132019         limit.
132021 2001-11-18  Paul Eggert  <eggert@twinsun.com>
132023         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
132024         (TEMPORARIES): New macro.
132025         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
132026         removes an artificial limitation (e.g. HP-UX 10.20, where
132027         TMP_MAX is 17576).
132029 2001-11-18  Jim Meyering  <meyering@lucent.com>
132031         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
132033 2001-11-18  Jim Meyering  <meyering@lucent.com>
132035         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
132036         on SunOS 4.
132038         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
132039         files will be created before anything else.
132041 2001-11-17  Paul Eggert  <eggert@twinsun.com>
132043         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
132044         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
132046 2001-11-17  Jim Meyering  <meyering@lucent.com>
132048         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
132049         Prompted by a report from Bob Proulx.
132051         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
132052         Instead, require UTILS_FUNC_MKSTEMP.
132054 2001-11-17  Jim Meyering  <meyering@lucent.com>
132056         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
132057         Now, that's done as part of AC_FUNC_STRTOD.
132059 2001-11-17  Jim Meyering  <meyering@lucent.com>
132061         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
132062         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
132063         rather than group writable.  Patch by Juan F. Codagnone.
132065         * lib/readtokens.c: Remove explicit declarations of xmalloc and
132066         xrealloc, Instead, include "xalloc.h".
132068         * lib/mountlist.c: Include unlocked-io.h after all system headers.
132069         Remove explicit declarations of xmalloc, xrealloc,
132070         and xstrdup.  Instead, include "xalloc.h".
132072         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
132073         unlocked-io.h.
132074         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
132075         Likewise.
132076         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
132078         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
132079         Reported by Padraig Brady.
132081         * lib/mkstemp.c: #undef mkstemp.
132082         Include config.h.
132083         (rpl_mkstemp): Rename from mkstemp.
132084         Protoize.
132086 2001-11-16  Jim Meyering  <meyering@lucent.com>
132088         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
132089         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
132090         determine the amount of total physical memory, use pstat_getstatic.
132091         HPUX-11 doesn't define _SC_PHYS_PAGES.
132092         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
132093         If sysconf couldn't be used to determine the amount of available
132094         physical memory, use both pstat_getstatic and pstat_getdynamic.
132095         Based on a patch from Bob Proulx.
132097 2001-11-10  Jim Meyering  <meyering@lucent.com>
132099         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
132100         (jm_PREREQ): Use it.
132102 2001-11-09  Jim Meyering  <meyering@lucent.com>
132104         * m4/jm-macros.m4: Require autoconf-2.52f.
132105         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
132106         Use these AC_-prefixed names, not the AM_-prefixed ones.
132108         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
132110 2001-11-05  Jim Meyering  <meyering@lucent.com>
132112         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
132114 2001-11-04  Jim Meyering  <meyering@lucent.com>
132116         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
132117         $DEFS.
132119 2001-11-03  Jim Meyering  <meyering@lucent.com>
132121         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
132122         of AC_DEFUN.
132124         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
132125         know the name of the variable in the macro definition.
132127 2001-11-03  Jim Meyering  <meyering@lucent.com>
132129         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
132130         in argmatch_to_argument call.
132132         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
132133         argument.
132135         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
132136         e.g., a fault due to an attempt to free a NULL pointer.
132138 2001-11-01  Jim Meyering  <meyering@lucent.com>
132140         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
132141         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
132143 2001-11-01  Jim Meyering  <meyering@lucent.com>
132145         * lib/dirfd.c, lib/dirfd.h: New files.
132146         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
132148         * lib/hash.c (hash_print) [TESTING]: Clean up.
132150 2001-10-22  Paul Eggert  <eggert@twinsun.com>
132152         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
132153         to avoid a warning if -Wall.
132155 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
132157         * README: New file
132158         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
132159         (per RMS's instructions, this is now the canonical source)
132160         * lgpl/, gpl/: New directories.
132162 2001-10-21  Paul Eggert  <eggert@twinsun.com>
132164         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
132166 2001-10-21  Jim Meyering  <meyering@lucent.com>
132168         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
132169         this code would end up calling gettext even in packages built
132170         with --disable-nls.
132171         * lib/getopt.c (_): Likewise.
132172         * lib/regex.c (_): Likewise.
132174 2001-10-20  Paul Eggert  <eggert@twinsun.com>
132176         * m4/error.m4 (jm_PREREQ_ERROR):
132177         Do not invoke AC_CHECK_FUNCS with strerror_r, as
132178         AC_FUNC_STRERROR_R does that.
132179         Check for strerror declaration.
132181         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
132182         are supposed to have them these days.
132183         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
132184         Merge changes from latest Autoconf CVS.
132185         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
132186         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
132187         POSIX decided to standardize on the int flavor of strerror_r.
132189 2001-10-20  Paul Eggert  <eggert@twinsun.com>
132191         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
132192         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
132193         Use strerror_r that is only a macro, even if it is not a function.
132194         (strerror): Check for HAVE_DECL_STRERROR before declaring.
132195         (private_strerror): Use prototypes, not old-style function definition.
132196         (print_errno_message): New function.
132197         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
132198         char*-flavored one.
132199         (error_tail, error, error_at_line): Use it.
132201 2001-10-11  Jim Meyering  <meyering@lucent.com>
132203         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
132204         and quote_n (1, ... to avoid clobbering a buffer.
132206 2001-10-05  Jim Meyering  <meyering@lucent.com>
132208         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
132209         hash-pjw.h.
132210         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
132211         * lib/hash-pjw.h: New file.
132213 2001-09-30  Jim Meyering  <meyering@lucent.com>
132215         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
132216         `struct fsstat' has the `f_fstypename' member.
132217         Use that to define FS_TYPE, which is now used to make
132218         the getfsstat link test tighter.
132220 2001-09-30  Jim Meyering  <meyering@lucent.com>
132222         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
132223         Include <sys/ucred.h>, for Apple Darwin.
132224         Include sys/mount.h and sys/fs_types.h only if available.
132225         (FS_TYPE): Define.
132226         (read_filesystem_list): Use FS_TYPE.
132228 2001-09-29  Paul Eggert  <eggert@twinsun.com>
132230         * lib/exclude.c (excluded_filename): 0 -> false, since it's
132231         a boolean context.
132233 2001-09-29  Jim Meyering  <meyering@lucent.com>
132235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
132236         [one-argument getmntent function]): Include stdio.h before mntent.h.
132237         SunOS 4.1.x needs it for the declaration of `FILE'.
132238         Patch by Volker Borchert.
132240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
132241         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
132242         sys/fs_types.h, and make the link-test for getfsstat guard #include
132243         directives with appropriate #if HAVE_*_H tests so that we can
132244         detect getfsstat on Apple Darwin1.3.7 systems.
132245         Reported by Nelson Beebe.
132246         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
132248 2001-09-28  Paul Eggert  <eggert@twinsun.com>
132250         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
132251         #defines strtoimax.  Also treat the other strto* functions
132252         like strtoimax.
132254         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
132255         Check for strtoul and strtoumax,
132256         as those declarations are made even in the signed case.
132257         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
132258         Likewise, for strtol and strtoimax.
132260 2001-09-28  Paul Eggert  <eggert@twinsun.com>
132262         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
132263         #defines strtoimax.  Also treat the other strto* functions
132264         like strtoimax.
132266         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
132267         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
132268         (strtoimax, strtoumax): Do not declare if already defined as a macro.
132270 2001-09-26  Jim Meyering  <meyering@lucent.com>
132272         Most macros in unlocked-io.h had the wrong number of arguments.
132273         * lib/gen-uio: New script.
132274         (USE_UNLOCKED_IO): Define to 1 if not already defined.
132275         * lib/unlocked-io.hin: Remove file.
132276         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
132277         rather than trying to embed it here.
132278         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
132279         Reported by Padraig Brady.
132281 2001-09-25  Volker Borchert  <bt@teknon.de>
132283         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
132284         `result'.
132286 2001-09-24  Jim Meyering  <meyering@lucent.com>
132288         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
132290 2001-09-23  Jim Meyering  <meyering@lucent.com>
132292         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
132293         instead of the mere test for existence of mntent.h.  The latter
132294         would get a false-positive on AIX 3.4 systems.
132295         In the outer getmntent if-block, don't die if neither of the getmntent
132296         tests succeeds.  Instead, just fall through and continue with the
132297         remaining tests.
132299 2001-09-23  Jim Meyering  <meyering@lucent.com>
132301         * lib/mountlist.c: Remove useless parentheses in #if directives.
132302         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
132303         the deprecated MOUNTED symbol is no longer defined in mntent.h.
132305 2001-09-22  Jim Meyering  <meyering@lucent.com>
132307         * m4/gettext.m4: New file.  From gettext.
132308         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
132309         * m4/progtest.m4: Likewise
132310         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
132311         * m4/glibc21.m4: Likewise.
132313         * m4/libintl.m4: Remove.  No longer used.
132315 2001-09-22  Jim Meyering  <meyering@lucent.com>
132317         * lib/localcharset.c: Update from latest gettext.
132318         * lib/config.charset: Likewise.
132320 2001-09-20  Jim Meyering  <meyering@lucent.com>
132322         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
132323         strtoimax.
132324         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
132325         strtoumax.
132327 2001-09-20  Jim Meyering  <meyering@lucent.com>
132329         * lib/xstrtol.c (strtoimax): Guard declaration with
132330         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
132331         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
132332         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
132333         (strtoumax): Likewise, for completeness (it wasn't necessary).
132335 2001-09-17  Paul Eggert  <eggert@twinsun.com>
132337         * lib/strtoimax.c (HAVE_LONG_LONG):
132338         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
132339         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
132340         to work around bug in IBM C compiler.
132342 2001-09-17  Jim Meyering  <meyering@lucent.com>
132344         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
132345         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
132346         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
132347         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
132348         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
132349         whenever the right hand side need not be expanded by the shell.
132351 2001-09-16  Paul Eggert  <eggert@twinsun.com>
132353         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
132354         library.  It's not correct, as some older glibcs are buggy.
132355         fnmatch wasn't fixed until glibc 2.2.
132357         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
132358         special shell magic here.
132360 2001-09-16  Jim Meyering  <meyering@lucent.com>
132362         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
132363         * m4/jm-macros.m4: Require it.
132365 2001-09-16  Jim Meyering  <meyering@lucent.com>
132367         * lib/mkdir.c: New file.
132369 2001-09-15  Jim Meyering  <meyering@lucent.com>
132371         * m4/jm-macros.m4: Check for help2man.
132373 2001-09-11  Jim Meyering  <meyering@lucent.com>
132375         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
132376         The body, by Paul Eggert, was moved here from configure.in.
132377         * m4/jm-macros.m4: Require UTILS_HOST_OS.
132379 2001-09-04  Paul Eggert  <eggert@twinsun.com>
132381         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
132382         (jm_PREREQ): Use it.
132384 2001-09-04  Paul Eggert  <eggert@twinsun.com>
132386         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
132387         Use ssize_t, not int, to store result of readlink.
132388         Check for ssize_t overflow as well as size_t overflow,
132389         as POSIX says the result of readlink is implementation-defined
132390         when ssize_t overflows.
132391         Remove unnecessary cast to char*.
132392         Use free+malloc instead of realloc, as the storage doesn't need
132393         to be preserved and it's clearer and can be more efficient that way.
132394         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
132395         * lib/xreadlink.h (xreadlink): Update prototype.
132397 2001-09-04  Paul Eggert  <eggert@twinsun.com>
132399         * lib/xgetcwd.c: Revert some of the previous change; intead,
132400         fix the HAVE_GETCWD_NULL code to behave more like the
132401         !HAVE_GETCWD_NULL code used to.
132403         Include "xalloc.h".
132404         (xgetcwd): Do not return NULL when memory is exhausted; instead,
132405         invoke xalloc_die.
132407 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132409         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
132410         sys/param.h, as pathmax.h includes them.
132412 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132414         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
132415         (jm_PREREQ_XGETCWD): New macro.
132417         * m4/getcwd.m4: New file.
132419 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132421         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
132422         like the HAVE_GETCWD_NULL code.
132423         Include pathmax.h if not HAVE_GETCWD.
132424         Do not include xalloc.h.
132425         (INITIAL_BUFFER_SIZE): New symbol.
132426         Do not use xmalloc / xrealloc, since the caller is responsible for
132427         handling errors.  Preserve errno around `free' during failure.
132428         Do not overrun buffer when using getwd.
132430 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132432         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
132433         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
132434         getcwd (NULL, 0).
132436 2001-09-03  Paul Eggert  <eggert@twinsun.com>
132438         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
132439         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
132440         spotted by Jim Meyering.
132442 2001-09-03  Jim Meyering  <meyering@lucent.com>
132444         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
132445         failure.
132447 2001-09-02  Jim Meyering  <meyering@lucent.com>
132449         * lib/error.c: Update from GNU libc.
132451 2001-09-01  Jim Meyering  <meyering@lucent.com>
132453         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
132454         Used by df.
132456 2001-09-01  Jim Meyering  <meyering@lucent.com>
132458         * lib/xreadlink.c: New file.
132459         * lib/xreadlink.h: New file.
132460         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
132461         xreadlink.h.
132463         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
132464         doesn't conflict with sparc Solaris 7's definition in
132465         /usr/include/sys/int_types.h.
132467         * lib/exclude.c: Use `""', not `<>' to #include non-system header
132468         files.
132469         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
132470         and strncasecmp as r-values.  Unixware didn't have declarations.
132472 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132474         * lib/xstrtol.h: Add copyright notice.
132475         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
132476         LONGINT_INVALID_SUFFIX_CHAR.
132478 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132480         * lib/xstrtol.c (strtoimax): New decl.
132482 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132484         * lib/xgetcwd.c: Don't include pathmax.h.
132485         Include stdlib.h and unistd.h if available.
132486         Include xalloc.h.
132487         (xmalloc, xstrdup, free): Remove decls.
132488         (xgetcwd): Don't assume sizes fit in unsigned.
132489         Check for overflow when computing sizes.
132490         Simplify reallocation code.
132492 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132494         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
132495         a directory's st_size can have an arbitrary value, so the old
132496         usage could waste an arbitrary amount of memory.  All uses
132497         changed.
132498         * lib/savedir.h: Update prototype.
132500 2001-08-31  Paul Eggert  <eggert@twinsun.com>
132502         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
132504         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
132505         old strtoimax.c.
132507         Also, make the following further changes to make this file's
132508         configuration more similar to that of strtol.c:
132509         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
132510         (strtoumax, uintmax_t, strtoull, strtol): Remove.
132511         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
132512         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
132513         changed to signed values.
132515         And make the following changes as well:
132516         Fix copyright notice, as 1999 was missing.
132517         (verify): New macro.
132518         (strtoimax): Check sizes at compile-time, not run-time.
132519         Prefer strtol to strtoll if both work.
132520         (main): Remove; it was not that useful and was a pain to maintain.
132522         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
132524 2001-08-31  Jim Meyering  <meyering@lucent.com>
132526         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
132527         Use an initial, malloc'd, buffer of length 128 rather than
132528         a statically allocated one of length 1024.
132530 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132532         Simplify code, partly by assuming autoconf 2.52 semantics.
132534         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
132536         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
132537         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
132538         All uses removed.
132539         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
132540         Move AC_REQUIRE to next-to-top level, to avoid confusion.
132541         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
132542         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
132543         jm_AC_HEADER_INTTYPES_H.
132544         * m4/jm-macros.m4 (jm_MACROS): Likewise.
132546         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
132548         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
132549         Quote first arg of AC_DEFUN.
132550         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
132551         since they are needed to parse the include file even if we need
132552         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
132553         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
132554         but with opposite signedness.
132556 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132558         Merge 'exclude' changes from tar 1.13.22.
132559         This fixes one or two unlikely storage allocation overflow bugs,
132560         but doesn't change user-visible behavior otherwise.
132562 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132564         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
132565         (jm_PREREQ_EXCLUDE): New macro.
132567 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132569         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
132570         tm to be declared.
132572 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132574         * lib/hash.c: Remove '2001' from copyright notice.
132576 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132578         * lib/full-write.h: New file.
132579         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
132580         * lib/full-write.c: Correct credits, as cccp.c no longer
132581         exists and anyway it was so heavily changed from the old cccp
132582         code as to be unrecognizable.  Include full-write.h.
132583         (full_write): Return size_t, with short writes meaning failure.
132584         All callers changed.  This fixes a bug with large buffers
132585         on 64-bit hosts.
132586         * lib/utime.c: Include full-write.h.
132588 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132590         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
132591         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
132592         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
132593         Include if available.
132594         (<xalloc.h>): Include
132595         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
132596         (verify): New macro.  Use it to verify that EXCLUDE macros do not
132597         collide with FNM macros.
132598         (struct patopts): New struct.
132599         (struct exclude): Use it, as exclude patterns now come with options.
132600         (new_exclude): Support above changes.
132601         (new_exclude, add_exclude_file):
132602         Initial size must now be a power of two to simplify overflow checking.
132603         (free_exclude, fnmatch_no_wildcards): New function.
132604         (excluded_filename): No longer requires options arg, as the options
132605         are determined by add_exclude.  Now returns bool, not int.
132606         (excluded_filename, add_exclude):
132607         Add support for the fancy new exclusion options.
132608         (add_exclude, add_exclude_file): Now takes int options arg.
132609         Check for arithmetic overflow when computing sizes.
132610         (add_exclude_file): xrealloc might modify errno, so don't
132611         realloc until after errno might be used.
132613         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
132614         New macros.
132615         (free_exclude): New decl.
132616         (add_exclude, add_exclude_file): Now takes int options arg.
132617         (excluded_filename): No longer requires options arg, as the options
132618         are determined by add_exclude.  Now returns bool, not int.
132620 2001-08-30  Paul Eggert  <eggert@twinsun.com>
132622         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
132624 2001-08-27  Jim Meyering  <meyering@lucent.com>
132626         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
132628         * lib/version-etc.c (N_): Remove definition.
132629         Revert most of last change.
132630         Instead, simply don't mark the `Copyright...' string for translation.
132631         Based on advice from Paul Eggert.
132633         * lib/strtoxmax.c: Tweak comment.
132635 2001-08-26  Jim Meyering  <meyering@lucent.com>
132637         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
132639         * m4/xstrtoimax.m4: New file.
132640         * m4/xstrtoumax.m4: Add comments explaining why we
132641         AC_REPLACE_FUNCS(strtol).
132643 2001-08-26  Jim Meyering  <meyering@lucent.com>
132645         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
132646         of copyright with `%s' so translators don't get an untranslated
132647         message in 2002.
132648         (COPYRIGHT_YEAR): Define.
132649         (version_etc): Use fprintf rather than fputs.
132650         Suggestion from Ulrich Drepper.
132652         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
132654         * lib/strtoll.c: New file, from GNU libc.
132655         * lib/xstrtoimax.c: New file.
132657         * lib/xstrtol.h: Add xstrtoimax.
132658         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
132659         * lib/strtoimax.c: New file.  Likewise, but first define
132660         STRTOUXMAX_SIGNED.
132662         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
132663         ...
132664         * lib/strtoxmax.c: ... then renamed to this.
132666 2001-08-18  Paul Eggert  <eggert@twinsun.com>
132668         * m4/inttypes.m4: Add AC_PREREQ(2.13).
132669         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
132670         (jm_AC_TYPE_INTMAX_T): New macro.
132671         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
132673         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
132675         * m4/longlong.m4: Renamed from ulonglong.m4.
132676         * m4/inttypes.m4: Renamed from inttypes_h.m4.
132677         * m4/uintmax_t.m4: Removed.
132679 2001-08-13  Paul Eggert  <eggert@twinsun.com>
132681         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
132682         Port to Solaris 8, where 'sed' requires a space after the 'r'
132683         command, and where sh dislikes "$/".  Clean up the spacing a bit.
132684         Redirect output to $tmp just once.
132686 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
132688         * lib/addext.c (<errno.h>): Include.
132689         (errno): Declare if not defined.
132690         (addext): Work correctly when pathconf returns -1 and leaves
132691         errno alone because there is no limit.  Also, work even if
132692         pathconf returns a value greater than SIZE_MAX.
132694 2001-08-12  Jim Meyering  <meyering@lucent.com>
132696         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
132697         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
132698         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
132699         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
132700         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
132701         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
132702         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
132703         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
132704         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
132705         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
132706         utime.m4, utimes.m4, xstrtoumax.m4:
132707         Quote the first argument in each use of AC_DEFUN.
132709 2001-08-12  Jim Meyering  <meyering@lucent.com>
132711         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
132712         Simply `return getcwd (NULL, 0);'.
132713         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
132714         Use 1300 as initial value for length, not PATH_MAX.
132716         * lib/pathmax.h: Clean up cpp syntax.
132718 2001-08-12  Jim Meyering  <meyering@lucent.com>
132720         * lib/gettimeofday.c: New file.
132721         * lib/gtod.h: New file.
132722         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
132724 2001-08-05  Jim Meyering  <meyering@lucent.com>
132726         * m4/jm-macros.m4: Require autoconf-2.52.
132728 2001-08-04  Jim Meyering  <meyering@lucent.com>
132730         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
132731         stmt, to get in sync with glibc.
132733 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132735         The following changes are from gettext 0.10.39 as maintained by
132736         Bruno Haible.
132738         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
132739         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
132740         with inverted sense.  All uses changed.
132742         * lib/mbswidth.c: Don't include <limits.h>.
132743         Include <stdlib.h> and <string.h> unconditionally.
132744         (iswcntrl, mbsinit, ISCNTRL): New macros.
132745         (mbsnwidth): Use K&R style function declarations.
132746         Don't bother checking for MB_LEN_MAX == 1, since the compiler
132747         can optimize it when MB_CUR_MAX == 1.
132748         The width of control characters is zero, not 1.
132750 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132752         The following changes are from gettext 0.10.39 as maintained by
132753         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
132755         * m4/codeset.m4: Upgrade to serial AM1.
132756         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
132757         all uses changed.  Quote first arg of AC_DEFUN.
132758         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
132760         * m4/iconv.m4: Upgrade to serial AM2.
132761         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
132762         Add --with-libconv-prefix.
132763         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
132764         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
132765         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
132766         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
132767         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
132769         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
132770         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
132771         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
132772         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
132773         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
132774         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
132775         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
132776         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
132777         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
132779         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
132780         string.h any more.
132782         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
132783         not the default value.
132785         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
132786         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
132787         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
132788         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
132789         Also check for iswcntrl, used for wcwidth fallback.
132790         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
132791         to Autoconf 2.13.
132793 2001-08-03  Jim Meyering  <meyering@lucent.com>
132795         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
132796         as it was in the original.  Reported by Paul Eggert.
132798 2001-07-16  Jim Meyering  <meyering@lucent.com>
132800         * m4/gettimeofday.m4: New file.
132801         Prompted by a report from Bernhard Baehr.
132803 2001-07-15  Jim Meyering  <meyering@lucent.com>
132805         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
132806         stuff. Now it's in ../Makefile.cfg.
132808 2001-07-15  Jim Meyering  <meyering@lucent.com>
132810         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
132811         (BUILT_SOURCES): Add unlocked-io.h.
132812         (io_functions): Define.
132813         (unlocked-io.h): New rule.
132814         (DISTCLEANFILES): Add unlocked-io.h.
132815         (all-local): Depend on unlocked-io.h, to ensure it is created.
132817         * lib/unlocked-io.hin: New file
132819         * lib/regex.c: Update from glibc.
132821 2001-07-05  Jim Meyering  <meyering@lucent.com>
132823         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
132824         recommendation.
132825         (libfetish_a_SOURCES): Put all .h files here instead.
132826         Remove a thus-exposed (better checks in automake) duplicate and
132827         two unnecessary .h files.
132829 2001-07-04  Jim Meyering  <meyering@lucent.com>
132831         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
132832         that generates jm-glibc-io.m4 so that it doesn't trigger any make
132833         distcheck failure.
132835 2001-07-02  Jim Meyering  <meyering@lucent.com>
132837         The following changes were prompted by suggestions from Bruno Haible.
132839         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
132840         is now generated.
132841         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
132842         definition of EXTRA_DIST.
132843         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
132844         ensure that the generated file is created/updated whenever the list
132845         of $(unlocked_functions) is changed.
132846         (jm-glibc-io.m4): New rule.
132847         (unlocked-io.h): New rule -- currently unused.
132849 2001-06-24  Jim Meyering  <meyering@lucent.com>
132851         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
132852         unmatched right bracket, rather than kludging it with an extra,
132853         falsely-matching quote in a comment.  Patch by Akim Demaille.
132855 2001-06-11  Jim Meyering  <meyering@lucent.com>
132857         * lib/regex.c: Update from GNU libc.
132859 2001-05-27  Jim Meyering  <meyering@lucent.com>
132861         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
132862         Check for ut_type in struct utmp.
132864 2001-05-27  Jim Meyering  <meyering@lucent.com>
132866         * lib/readutmp.h (UT_TYPE): Define.
132868 2001-05-24  Jim Meyering  <meyering@lucent.com>
132870         * lib/argmatch.c: Include "quote.h".
132871         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
132872         quote function.  Reported by Göran Uddeborg.
132874 2001-05-22  Jim Meyering  <meyering@lucent.com>
132876         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
132877         now that we use the package-supplied version unconditionally.
132878         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
132880 2001-05-21  Jim Meyering  <meyering@lucent.com>
132882         * m4/regex.m4: Change a couple backticks to single quotes to avoid
132883         shell syntax errors.
132885 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132887         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
132889 2001-05-20  Paul Eggert  <eggert@twinsun.com>
132891         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
132892         Don't bother to check library strftime, since
132893         we'll be using our own my_strftime function anyway.
132894         Define my_strftime instead of strftime.
132896 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
132898         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
132899         which is not yet declared.
132901 2001-05-15  Jim Meyering  <meyering@lucent.com>
132903         * m4/regex.m4: Use proper quoting so brackets appear in the test
132904         program.
132905         Reported by, and with help from, Bruno Haible.
132907 2001-05-13  Jim Meyering  <meyering@lucent.com>
132909         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
132910         undefined.
132912 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132914         dirname code cleanup.  base_name now behaves more compatibly
132915         with POSIX basename when given file names that have trailing
132916         slashes, and similarly for dir_name.  Add new primitives
132917         base_len and dir_len.  Put the directory-name-related decls
132918         into dirname.h.
132920         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
132921         * lib/backupfile.c (base_name): Likewise.
132922         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
132923         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
132924         * lib/makepath.c (strip_trailing_slashes): Likewise.
132925         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
132926         ISSLASH): Likewise.
132927         * lib/rename.c (strip_trailing_slashes): Likewise.
132928         * lib/same.c (base_name): Likewise.
132929         * lib/stripslash.c (ISSLASH): Likewise.
132931         * lib/addext.c: Include <dirname.h> after size_t is defined.
132932         * lib/backupfile.c: Likewise.
132934         * lib/addext.c (addext): Use base_len to trim redundant
132935         trailing slashes instead of doing it ourselves.
132936         But do not trim the last slash if it is not redundant.
132938         * lib/backupfile.c (find_backup_file_name,
132939         max_backup_version): Use base_len instead of rolling it ourselves.
132940         Handle the case of "" and (on DOS) "C:" correctly.
132942         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
132943         needed. Include <string.h>, <dirname.h>.
132944         (base_name): Allow file names ending in slashes, other than names
132945         that are all slashes.  In this case, return the basename followed
132946         by the slashes.  This is more general, and can be used in places
132947         where the original base_name purposely had an assertion failure.
132948         (base_len): New function.
132950         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
132951         Do not include <assert.h>; no longer needed.
132952         Include xalloc.h.
132953         (memrchr): Remove decl.
132954         (dir_name_r): Remove.
132955         (dir_len): Renamed from dirlen.  All callers changed.
132956         Rewrite in terms of base_name, for simplicity and consistency.
132957         (dir_name): Never return NULL.  All callers changed.
132958         Do not include <stdlib.h> in test program; no longer needed.
132959         return 0; is fine for test program.
132961         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
132962         New macros.
132963         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
132965         * lib/path-concat.c (path_concat): Use base_len to compute
132966         base length, not strlen; this means we cannot rely on memcpy
132967         to null-terminate.
132969         * lib/same.c (STREQ): Remove.
132970         (same_name): Handle the case where the basename ends in trailing '/'.
132972         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
132973         a slash was stripped.  Do not strip the last slash after a
132974         file system prefix.
132976 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132978         * lib/Makefile.am (libfetish_a_SOURCES):
132979         Add strftime.c, since we now compile it on all hosts.
132981         * lib/strftime.c (my_strftime):
132982         Define to nstrftime if emacs, but only if my_strftime is not defined.
132983         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
132984         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
132985         Add one more extra argument: a nanoseconds value.
132986         All uses changed.
132987         (ns): New macro.
132988         (my_strftime function): Add %N format.
132989         (emacs_strftimeu): Renamed from emacs_strftime,
132990         with extra ut argument.
132992 2001-05-09  Paul Eggert  <eggert@twinsun.com>
132994         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
132996 2001-04-21  Jim Meyering  <meyering@lucent.com>
132998         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
132999         doesn't interfere.
133001 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
133003         * m4/ftruncate.m4: Check for chsize.
133004         Link with ftruncate.o unconditionally if ftruncate is missing.
133005         This was required when cross-compiling to i586-mingw32msvc.
133007 2001-04-08  Jim Meyering  <meyering@lucent.com>
133009         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
133010         recomputed; that's necessary when the offset spans a DST transition.
133011         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
133013 2001-04-02  Jim Meyering  <meyering@lucent.com>
133015         * lib/regex.h, regex.c: Update from GNU libc.
133017 2001-03-24  Jim Meyering  <meyering@lucent.com>
133019         * m4/jm-macros.m4: Require autoconf-2.49d.
133021 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
133023         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
133025 2001-03-19  Paul Eggert  <eggert@twinsun.com>
133027         * lib/version-etc.c (version_etc_copyright): Update to 2001.
133029 2001-03-17  Jim Meyering  <meyering@lucent.com>
133031         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
133032         now that the version in autoconf is equivalent.
133033         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
133035         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
133036         Suggestion from Akim Demaille.
133038         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
133039         (jm_PREREQ_TEMPNAME): New function.
133041 2001-03-16  Paul Eggert  <eggert@twinsun.com>
133043         * lib/tempname.c (uint64_t): Define to uintmax_t if
133044         not defined, and if UINT64_MAX is not defined.
133045         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
133046         Reported by John David Anglin.
133048 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
133050         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
133051         resolve alias if codeset is empty.
133052         * lib/config.charset (BeOS): Use wildcard syntax.
133054 2001-03-13  Jim Meyering  <meyering@lucent.com>
133056         * lib/path-concat.c (path_concat)
133057         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
133058         concatenating e.g., `C:' and `foo'.
133059         From Bruno Haible.
133061 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
133063         * lib/localcharset.c (locale_charset): Don't use
133064         setlocale(LC_CTYPE,NULL). Don't return NULL.
133065         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
133067 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
133069         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
133070         support for DOS/DJGPP.
133072 2001-03-01  Paul Eggert  <eggert@twinsun.com>
133074         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
133075         lacks mkstemp.  Compile our own tempname.c if we compile our own
133076         mkstemp.c, as mkstemp relies on tempname.
133078 2001-03-01  Jim Meyering  <meyering@lucent.com>
133080         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
133081         AH_VERBATIM really does output its argument verbatim.
133083 2001-02-28  Paul Eggert  <eggert@twinsun.com>
133085         * lib/Makefile.am (libfetish_a_SOURCES):
133086         Add dup-safer.c, fopen-safer.c.
133087         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
133089         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
133090         * lib/unistd-safer.h: New files.
133092 2001-02-25  Paul Eggert  <eggert@twinsun.com>
133094         The mkstemp replacement is taken from glibc 2.2.2, with some
133095         portability fixes for use outside glibc, as follows:
133097         * lib/tempname.c (struct_stat64): New macro.
133098         (direxists, __gen_tempname): Use it.
133099         This avoids a portability problem with Solaris 8.
133101         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
133102         (<stddef.h>, <stdint.h>, <string.h>):
133103         Include only if STDC_HEADERS || _LIBC.
133104         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
133105         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
133106         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
133107         (__set_errno): Define this macro if <errno.h> doesn't.
133108         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
133109         Define these macros if <stdio.h> doesn't.
133110         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
133111         Define these macros if <sys/stat.h>
133112         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
133113         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
133114         __xstat64): Define if not _LIBC.
133115         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
133116         (__gen_tempname): Invoke gettimeofday only if
133117         HAVE_GETTIMEOFDAY || _LIBC;
133118         otherwise, fall back on plain "time".
133119         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
133121         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
133123         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
133125 2001-02-18  Paul Eggert  <eggert@twinsun.com>
133127         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
133129 2001-02-17  Paul Eggert  <eggert@twinsun.com>
133131         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
133132         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
133133         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
133134         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
133136 2001-02-17  Paul Eggert  <eggert@twinsun.com>
133138         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
133139         Remove workaround macros for hosts that have mbrtowc but not
133140         mbstate_t, as we now insist on proper declarations for both
133141         before using mbrtowc.
133143 2001-02-17  Jim Meyering  <meyering@lucent.com>
133145         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
133146         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
133147         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
133148         UnixWare 7.1.1.
133150         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
133151         rather than AC_CACHE_VAL.
133153 2001-02-17  Jim Meyering  <meyering@lucent.com>
133155         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
133156         around included file name.
133158         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
133160         * lib/strftime.c: Update from GNU libc (the only changes were to
133161         comments).
133163 2001-02-17  Jim Meyering  <meyering@lucent.com>
133165         * lib/regex.c: Update from libc.
133167 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
133169         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
133170         clash.
133172 2001-02-16  Paul Eggert  <eggert@twinsun.com>
133174         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
133175         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
133176         Reported by Mark Hounschell via Paul Eggert.
133178 2001-02-07  Jim Meyering  <meyering@lucent.com>
133180         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
133182 2001-02-05  Jim Meyering  <meyering@lucent.com>
133184         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
133185         it includes the patch required for `large file' support with at least
133186         HP-UX's 10.20 /bin/cc.
133188 2001-02-03  Jim Meyering  <meyering@lucent.com>
133190         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
133191         AS_IF, now that it works once again (mysteriously).
133192         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
133194 2001-01-30  Jim Meyering  <meyering@lucent.com>
133196         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
133197         * m4/chown.m4: Rename conftestchown to conftest.chown.
133198         * m4/rename.m4: s/conftestdir/conftest.d1/ and
133199         s/conftestdir2/conftest.d2/.
133200         * m4/utimes.m4: s/conftestdata/conftest.data/
133201         Inspired by Pavel Roskin's change in autoconf.
133203 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
133205         * lib/config.charset: Update for FreeBSD 4.2.
133207 2001-01-27  Jim Meyering  <meyering@lucent.com>
133209         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
133210         a use of AS_IF.
133211         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
133213 2001-01-26  Jim Meyering  <meyering@lucent.com>
133215         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
133216         quotearg.c includes it.
133218 2001-01-26  Jim Meyering  <meyering@lucent.com>
133220         * lib/quotearg.c: Include stddef.h.
133221         * lib/quote.c: Include stddef.h.
133222         Reported by Axel Kittenberger.
133224         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
133225         line in double quotes so that it evokes a better diagnostic.
133226         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
133227         Reported by Axel Kittenberger.
133229 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
133231         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
133232         as if it was a `charset'.
133234 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
133236         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
133237         has const.
133239 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
133241         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
133242         to avoid a warning.  Add back 'const' to inptr.
133244 2001-01-20  Jim Meyering  <meyering@lucent.com>
133246         Be sure that headers are checked before used in code compiled
133247         for the type checks.
133248         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
133249         In place of that, invoke jm_CHECK_ALL_TYPES.
133250         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
133251         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
133252         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
133253         The check for ssize_t was mistakenly run before the test for unistd.h.
133255         The configure-time check for stdbool.h was missing.
133256         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
133257         (jm_PREREQ_HASH): New function.
133259 2001-01-17  Jim Meyering  <meyering@lucent.com>
133261         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
133262         for autoconf-2.49c.
133263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
133265 2001-01-16  Jim Meyering  <meyering@lucent.com>
133267         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
133268         From Bruno Haible.
133270 2001-01-14  Jim Meyering  <meyering@lucent.com>
133272         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
133273         foo and bar.  Create conftestdir/ in the script, not in the C code.
133274         Remove directories in the script, not in the C code.
133275         Remove conftestdir{,2} before trying to create the directory.
133276         Make the entire configure script fail if the mkdir fails.
133278 2001-01-14  Jim Meyering  <meyering@lucent.com>
133280         * lib/rename.c: New file.  From Volker Borchert.
133281         Include stdlib.h, string.h or strings.h, and xalloc.h.
133282         Use strip_trailing_slashes rather than open-coding it.
133284 2001-01-03  Paul Eggert  <eggert@twinsun.com>
133286         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
133288 2001-01-03  Jim Meyering  <meyering@lucent.com>
133290         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
133291         of local `inptr' to avoid warning with some system declarations of
133292         iconv.
133294 2001-01-02  Volker Borchert  <bt@teknon.de>
133296         * m4/rename.m4: New file.
133297         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
133299 2001-01-01  Jim Meyering  <meyering@lucent.com>
133301         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
133302         even on systems with utmpx.h.  It's necessary for the declaration of
133303         utmp's ut_user member.  Reported by Andreas Jaeger.
133305         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
133306         available. They are required for the declarations of getgrgid and
133307         getpwuid resp.
133308         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
133309         Reported by Andreas Jaeger.
133311 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
133313         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
133314         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
133315         so `make install' also works in VPATH builds.
133317 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
133319         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
133320         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
133321         can be used in subdirectories.
133323 2000-12-29  Paul Eggert  <eggert@twinsun.com>
133325         * lib/modechange.c: Do not assume that mode_t uses the
133326         traditional octal encoding.  E.g. "chmod 1 FOO" should set
133327         the other-execute bit of FOO even if S_IXOTH != 1.
133329         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
133330         WOTH, XOTH, ALLM): New macros.
133331         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
133332          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
133333         Use them.
133334         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
133335         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
133336         (mode_compile):
133337         No need to use uintmax_t; unsigned long is long enough.
133338         Don't bother to get suffix since we don't use it.
133340 2000-12-26  Jim Meyering  <meyering@lucent.com>
133342         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
133343         better with autoheader.
133345 2000-12-24  Jim Meyering  <meyering@lucent.com>
133347         * lib/hash.c (is_prime): Return explicit boolean values.
133348         (hash_get_first): Return NULL to appease Irix5.6's 89.
133349         Reported by Nelson Beebe.
133351 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
133353         * lib/localcharset.c (locale_charset): Add support for Win32.
133355 2000-12-18  Paul Eggert  <eggert@twinsun.com>
133357         * lib/physmem.h, lib/physmem.c: New files.
133359         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
133360         (noinst_HEADERS): Add physmem.h.
133362         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
133363         't' for compatibility with Solaris 8 sort.
133365 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
133367         * lib/config.charset: Add support for BeOS.
133369 2000-12-17  Jim Meyering  <meyering@lucent.com>
133371         * m4/dos.m4 (jm_AC_DOS): New file and macro.
133372         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
133374 2000-12-16  Jim Meyering  <meyering@lucent.com>
133376         This bug had a serious impact on chown: `chown N:M FILE' (for integer
133377         N and M) would have treated it like `chown N:N FILE'.
133379         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
133381 2000-12-16  Jim Meyering  <meyering@lucent.com>
133383         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
133384         SHELLS_FILE to a file name that's useful on djgpp systems.
133385         Include stdlib.h.
133386         (ADDITIONAL_DEFAULT_SHELLS): Define.
133387         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
133388         Based mostly on a patch from Prashant TR.
133390 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
133392         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
133393         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
133394         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
133396 2000-12-08  Andreas Schwab  <schwab@suse.de>
133398         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
133399         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
133401 2000-12-07  Jim Meyering  <meyering@lucent.com>
133403         * lib/stripslash.c (ISSLASH): Define.
133404         (strip_trailing_slashes): Use ISSLASH rather than comparing against
133405         `/'.
133406         From Prashant TR.
133408         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
133409         (dir_name_r): Declare this function as static.
133410         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
133411         manifest itself on a name containing a mix of slashes and
133412         backslashes.
133413         Make this function work with names starting with a DOS-style
133414         drive letter and colon prefix.
133415         (dir_name): Append `.' if necessary.
133416         Based mostly on patches from Prashant TR and Eli Zaretskii.
133418         * lib/dirname.h (dir_name_r): Remove prototype.
133420 2000-12-06  Paul Eggert  <eggert@twinsun.com>
133422         * m4/off_t-format.m4: Remove this file.
133423         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
133425 2000-12-06  Jim Meyering  <meyering@lucent.com>
133427         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
133428         replacement strtoull, we may well need the replacement strtoul, too.
133429         Check for declarations of strtoul and strtoull.
133430         Check for strtol.  Mainly as a cue to cause automake to include
133431         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
133432         Check for limits.h -- strtol.c needs it.
133434 2000-12-05  Jim Meyering  <meyering@lucent.com>
133436         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
133438 2000-12-04  Jim Meyering  <meyering@lucent.com>
133440         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
133441         Also include memory.h, stdlib.h, unistd.h if appropriate.
133442         Reported by Andreas Jaeger (conflicting declaration of malloc).
133444 2000-12-02  Jim Meyering  <meyering@lucent.com>
133446         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
133447         * m4/jm-macros.m4 (jm_MACROS): require it.
133449 2000-12-02  Jim Meyering  <meyering@lucent.com>
133451         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
133453 2000-12-01  Paul Eggert  <eggert@twinsun.com>
133455         * lib/memrchr.c: Include <config.h> before any system include file.
133457 2000-11-30  Jim Meyering  <meyering@lucent.com>
133459         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
133461 2000-11-30  Jim Meyering  <meyering@lucent.com>
133463         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
133465 2000-11-29  Paul Eggert  <eggert@twinsun.com>
133467         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
133469 2000-11-26  Jim Meyering  <meyering@lucent.com>
133471         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
133473 2000-11-22  Paul Eggert  <eggert@twinsun.com>
133475         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
133476         size of (size_t) -1; it's not portable.
133478 2000-11-17  Jim Meyering  <meyering@lucent.com>
133480         * lib/strstr.c: Update from GNU libc.
133482 2000-11-17  Akim Demaille  <akim@epita.fr>
133484         * lib/obstack.h: Formatting changes.
133485         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
133486         prevent type checking.
133487         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
133488         cast the value to (void *): assigning a `foo *' to a `void *'
133489         variable is valid.
133490         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
133492 2000-11-16  Jim Meyering  <meyering@lucent.com>
133494         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
133496 2000-11-11  Jim Meyering  <meyering@lucent.com>
133498         * lib/error.c: Add a couple #includes, merging from GNU libc version.
133500 2000-11-10  Jim Meyering  <meyering@lucent.com>
133502         * lib/obstack.h: Update from GNU libc.
133503         * lib/obstack.c: Likewise.
133505 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
133507         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
133509 2000-11-06  Paul Eggert  <eggert@twinsun.com>
133511         * lib/getusershell.c (setusershell): Use rewind rather than
133512         fseek/fseeko, to avoid configuration hassles with fseeko.
133513         Don't bother opening SHELLS_FILE if shellstream is NULL;
133514         it's not necessary.
133516 2000-11-05  Jim Meyering  <meyering@lucent.com>
133518         * lib/makepath.h (make_dir): Declare.
133519         * lib/makepath.c (make_dir): Remove `static' attribute.
133520         Tweak a comment.
133522 2000-11-04  Jim Meyering  <meyering@lucent.com>
133524         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
133526 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
133528         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
133529         last one in a bucket, advance to the next bucket.
133531 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
133533         * lib/fnmatch.c: Do not comment out all the code if we are using
133534         the GNU C library, because in some cases we are replacing buggy
133535         code in the GNU C library itself.
133537 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
133539         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
133540         (regex_compile): Catch bogus \(\1\).
133542 2000-10-30  Paul Eggert  <eggert@twinsun.com>
133544         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
133545         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
133546         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
133548 2000-10-30  Paul Eggert  <eggert@twinsun.com>
133550         * lib/error.h, getline.h, modechange.h:
133551         Remove "2000" from Copyright line, as the file hasn't been
133552         changed this year other than in the copyright notice.
133554         * lib/xalloc.h: Add "2000" to Copyright line, as this file
133555         was changed this year.
133557 2000-10-29  Jim Meyering  <meyering@lucent.com>
133559         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
133560         renaming.
133561         * m4/ls-mntd-fs.m4: Likewise
133563 2000-10-29  Jim Meyering  <meyering@lucent.com>
133565         * lib/xstat.in: Fix grammar in comment.
133567 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
133569         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
133570         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
133571         doesn't define __restrict_arr.
133573 2000-10-28  Jim Meyering  <meyering@lucent.com>
133575         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
133576         (jm_PREREQ_MEMCHR): New function.
133578 2000-10-28  Jim Meyering  <meyering@lucent.com>
133580         * lib/memchr.c: Update from libc.
133581         Adjust for portability:
133582         [HAVE_STDLIB_H]: Include stdlib.h.
133583         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
133584         Undef __memchr, too.
133585         [!weak_alias]: Define __memchr to memchr.
133587         * lib/regex.c: Update from libc.
133588         * lib/regex.h: Likewise.
133589         * lib/getopt1.c: Likewise.
133590         * lib/memcmp.c: Likewise.
133592         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
133593         Avoid using fseek, when possible -- it's broken by design.
133594         Patch by Ulrich Drepper.
133596 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
133598         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
133599         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
133600         Giving in to popular pressure to shut up the compiler with casts.
133602 2000-10-26  Jim Meyering  <meyering@lucent.com>
133604         * lib/strftime.c: Update from libc.
133606 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
133608         * regex.c: More `unsigned char' -> `re_char' changes.
133609         Also change several `int' into `re_wchar_t'.
133610         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
133611         (PUSH_FAILURE_POINTER): Don't cast any more.
133612         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
133613         We want GCC to complain, since this piece of code makes
133614         re_match non-reentrant, which *should* be fixed.
133615         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
133616         (EXTEND_BUFFER): Use RETALLOC.
133617         (SET_LIST_BIT): Don't cast.
133618         (re_wchar_t): New type.
133619         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
133620         that those two functions will always properly return.
133621         (IMMEDIATE_QUIT_CHECK): Cast to void.
133622         (analyse_first): Use recursion rather than an explicit stack.
133623         (re_compile_fastmap): Can't fail anymore.
133624         (re_search_2): Don't check re_compile_fastmap for failure.
133625         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
133626         Now also sets the new value (passed in a new argument).
133627         (re_match_2_internal): Use it.
133628         Also, use a new var `reg' of type size_t when looping through regs
133629         rather than reuse the inappropriate `mcnt'.
133631 2000-10-25  Jim Meyering  <meyering@lucent.com>
133633         * lib/obstack.c: Update from libc.
133635 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
133637         * regex.c (regex_compile): Change the way of handling a range from
133638         a char less than 256 to a char not less than 256.
133640 2000-10-24  Andrew Innes  <andrewi@gnu.org>
133642         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
133643         NT-Emacs only.
133644         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
133645         so that re_search functions only quit when callers expect them to.
133647 2000-10-23  Jim Meyering  <meyering@lucent.com>
133649         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
133650         wrong.  That set_locale call must not have any side effects.
133651         From Paul Eggert.
133653 2000-10-22  Jim Meyering  <meyering@lucent.com>
133655         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
133656         [CYCLIC]: Remove now-unused definition.
133658         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
133659         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
133660         Suggestion from Ulrich Drepper.
133662 2000-10-21  Jim Meyering  <meyering@lucent.com>
133664         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
133665         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
133666         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
133668 2000-10-21  Jim Meyering  <meyering@lucent.com>
133670         * lib/dirname.c (memrchr): Declare if necessary.
133671         (dir_name): Remove the restriction that there be no
133672         trailing slashes.  Now, this code skips past them, effectively
133673         ignoring them.
133674         [TEST_DIRNAME] (main): New unit tests.
133676         * lib/memrchr.c: New file from GNU libc.
133677         Undef __memrchr, too.
133678         [!weak_alias]: Define __memrchr to memrchr.
133679         Guard weak_alias use with `#ifdef weak_alias'.
133681 2000-10-21  Jim Meyering  <meyering@lucent.com>
133683         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
133684         (dir_name): Use dir_name_r.
133685         * lib/dirname.h (dir_name_r): Declare it.
133687 2000-10-17  Jim Meyering  <meyering@lucent.com>
133689         * lib/quote.h (PARAMS): Define and use.
133690         Reported by Akim Demaille.
133692         * lib/getopt.c: Update from libc.
133694 2000-10-16  Jim Meyering  <meyering@lucent.com>
133696         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
133697         setlocale.
133698         From Jan Fedak.
133700 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
133702         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
133704 2000-09-25  Jim Meyering  <meyering@lucent.com>
133706         * lib/md5.h (rol): Define (from GnuPG).
133708         * lib/sha.c: Give credit (GnuPG) where due.
133709         (M): Use rol rather than open-coding it.
133710         Add a FIXME comment.
133712 2000-09-21  Jim Meyering  <meyering@lucent.com>
133714         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
133715         Reported by Michael Stone.
133717 2000-09-20  Jim Meyering  <meyering@lucent.com>
133719         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
133720         (noinst_HEADERS): Add sha.h.
133721         Based on code from Scott G. Miller and from GnuPG.
133723 2000-09-18  Jim Meyering  <meyering@lucent.com>
133725         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
133726         LIBS. Otherwise, everyone ends up linking with -lelf for some
133727         configurations.
133728         Reported by Mike Stone.
133730 2000-09-15  Jim Meyering  <meyering@lucent.com>
133732         * lib/regex.c: Update from libc.
133734 2000-09-10  Jim Meyering  <meyering@lucent.com>
133736         * lib/getopt.c (_getopt_internal): Update from glibc.
133738 2000-09-09  Jim Meyering  <meyering@lucent.com>
133740         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
133741         think it should be used as a general replacement for isascii.
133742         * lib/fnmatch.c: Likewise.
133743         * lib/mbswidth.c: Likewise
133744         * lib/regex.c: Likewise.
133746         Don't use atoi.
133747         * lib/userspec.c: Include sys/param.h and limits.h.
133748         Include xstrtol.h.
133749         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
133750         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
133751         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
133752         UID, GID.  Check range.
133754 2000-09-06  Jim Meyering  <meyering@lucent.com>
133756         * lib/getopt.c (_getopt_internal): Update from glibc.
133758 2000-08-30  Jim Meyering  <meyering@lucent.com>
133760         * lib/strftime.c: Merge in changes from GNU libc.
133762 2000-08-26  Jim Meyering  <meyering@lucent.com>
133764         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
133765         * m4/fpending.m4: New file.
133767 2000-08-26  Jim Meyering  <meyering@lucent.com>
133769         * lib/closeout.c: Include "__fpending.h".
133770         (close_stdout_status): Return right away if there's nothing to flush.
133772         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
133773         * lib/__fpending.c: New file.
133774         * lib/__fpending.h: New file.
133776 2000-08-20  Jim Meyering  <meyering@lucent.com>
133778         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
133779         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
133780         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
133782 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
133784         Improve fileutils installation on systems where running
133785         programs (like install) can't be unlinked.
133786         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
133787         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
133789 2000-08-07  Paul Eggert  <eggert@twinsun.com>
133791         Standardize on "memory exhausted" instead of "Memory exhausted"
133792         or "virtual memory exhausted".
133793         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
133794         "virtual memory exhausted".
133795         * lib/same.c (same_name): Invoke xalloc_die instead of printing
133796         our own message.
133797         * lib/userspec.c (parse_user_spec): Likewise.
133798         * lib/bumpalloc.h: comment fix
133799         * lib/same.c, userspec.c: Include xalloc.h.
133801         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
133802         not char *const and pointing to a constant array.
133803         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
133804         (xrealloc): Comment fix.
133806         * lib/userspec.c (parse_user_spec):
133807         Don't translate a message until just before returning,
133808         to avoid unnecessary translation.
133810 2000-08-07  Jim Meyering  <meyering@lucent.com>
133812         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
133813         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
133814         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
133815         getgroups.c, gethostname.c, getopt.h, group-member.c,
133816         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
133817         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
133818         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
133819         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
133820         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
133821         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
133822         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
133823         yesno.c: Back out Copyright date changes for each file with no change
133824         this year.  This eases coordination with other programs using the same
133825         source code modules.  From Paul Eggert.
133827 2000-08-06  Paul Eggert  <eggert@twinsun.com>
133829         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
133830         not char, for compatibility with glibc 2.1.3 strftime.c.
133832 2000-08-03  Greg McGary  <greg@mcgary.org>
133834         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
133835         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
133836         (EXTEND_BUFFER): Use them.
133838 2000-08-01  Jim Meyering  <meyering@lucent.com>
133840         * lib/dirname.c (ISSLASH): Define.
133841         (BACKSLASH_IS_PATH_SEPARATOR): Define.
133842         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
133843         both `\' and `/' may be use as path separators.
133844         Based on a patch from Prashant TR.
133846 2000-07-31  Paul Eggert  <eggert@twinsun.com>
133848         * lib/quotearg.c (quotearg_n_options): Don't make the initial
133849         slot vector a constant, since it might get modified.
133851 2000-07-31  Jim Meyering  <meyering@lucent.com>
133853         * lib/xmalloc.c: Use `virtual memory exhausted', not
133854         `Memory exhausted'.
133855         * lib/obstack.c (print_and_abort): Likewise.
133857 2000-07-30  Paul Eggert  <eggert@twinsun.com>
133859         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
133860         buffer, so that the caller can always quote one small
133861         component of a "memory exhausted" message in slot 0.
133862         From a suggestion by Jim Meyering.
133864 2000-07-30  Jim Meyering  <meyering@lucent.com>
133866         * lib/makepath.c (make_path): Quote the other instance, too.
133868         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
133869         (STATIC_BUF_SIZE): Define.
133870         (quotearg_n_options): Use only statically allocated storage when
133871         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
133872         than STATIC_BUF_SIZE.
133874 2000-07-29  Jim Meyering  <meyering@lucent.com>
133876         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
133877         * lib/dirname.c (dir_name): Likewise.
133879         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
133880         `/'.
133882         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
133883         (dir_name): Assert that there are no trailing slashes.
133885 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
133887         * lib/mbswidth.h (mbswidth): Add a flags argument.
133888         (mbswidth): New declaration.
133889         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
133890         * lib/mbswidth.c (mbswidth): Add a flags argument.
133891         (mbsnwidth): New function.
133893 2000-07-24  Jim Meyering  <meyering@lucent.com>
133895         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
133897 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133899         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
133901 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133903         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
133904         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
133905         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
133906         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
133907         invoke multibyte primitives.
133909 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133911         * lib/quotearg.c:
133912         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
133913         so that mbstate_t is always defined.
133915         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
133916         be 1 in at least one GCC installation, and this configuration
133917         error is likely to be common.  Ignoring MB_LEN_MAX hurts
133918         performance on hosts that have mbrtowc but have only unibyte
133919         locales, but I assume these hosts are rare.
133921 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133923         * lib/mbswidth.c (_XOPEN_SOURCE):
133924         Don't define; this causes problems on Solaris 7.
133925         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
133927 2000-07-23  Jim Meyering  <meyering@lucent.com>
133929         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
133930         too: getgrgid, getpwuid, getuid.
133932 2000-07-23  Jim Meyering  <meyering@lucent.com>
133934         * lib/basename.c (base_name): Add an assertion.
133936 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
133938         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
133939         shadow its mbsinit function.
133941 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133943         * lib/mbswidth.h: New file.
133944         * lib/mbswidth.c: New file.
133945         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
133946         (noinst_HEADERS): Add mbswidth.h.
133948 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133950         * lib/config.charset: Add support for FreeBSD. Improve support for
133951         HP-UX and IRIX 6.
133953 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
133955         * m4/mbswidth.m4: New file.
133956         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
133958 2000-07-15  Jim Meyering  <meyering@lucent.com>
133960         * lib/makepath.c: Include quote.h.
133961         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
133962         corresponding argument in a `quote (...)' call.
133963         Give better diagnostics.
133965         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
133966         (noinst_HEADERS): Add quote.h.
133968         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
133969         from tar's src/misc.c.
133970         * lib/quote.h: New file.  Prototypes for same.
133972 2000-07-14  Paul Eggert  <eggert@twinsun.com>
133974         From a suggestion by Bruno Haible.
133975         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
133976         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
133977         to decide whether to define the BeOS workaround macro;
133978         this adjusts to the change to AC_MBSTATE_T.
133980 2000-07-14  Jim Meyering  <meyering@lucent.com>
133982         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
133983         jm_AC_TYPE_UINTMAX_T.
133985 2000-07-13  Paul Eggert  <eggert@twinsun.com>
133987         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
133989         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
133990         quotearg_buffer_restyled): Add support for
133991         clocale_quoting_style.  Undo previous change to
133992         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
133993         and "{RIGHT QUOTATION MARK}" msgids.
133995 2000-07-10  Paul Eggert  <eggert@twinsun.com>
133997         From a suggestion by Bruno Haible.
133998         * m4/mbstate_t.m4 (AC_MBSTATE_T):
133999         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
134000         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
134001         and mbstate_t, to a single-part test that simply defines mbstate_t.
134002         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
134003         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
134005 2000-07-10  Jim Meyering  <meyering@lucent.com>
134007         * m4/strerror_r.m4: Mirror the correction made in autoconf.
134009         * m4/gnu-source.m4: Output to confdefs.h directly.
134010         Suggestion from Akim Demaille.
134012 2000-07-09  Paul Eggert  <eggert@twinsun.com>
134014         The old behavior of quoting `like this' doesn't look good with
134015         newer, ISO-style fonts.  See:
134016         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
134018         Instead, quote "like this" by default.  Let the translator
134019         tailor the locale-specific quoting behavior by providing
134020         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
134022         * lib/quotearg.c (N_): New macro.
134023         (gettext_default): New function.
134024         (quotearg_buffer_restyled): Use
134025         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
134026         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
134028 2000-07-09  Jim Meyering  <meyering@lucent.com>
134030         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
134031         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
134033         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
134034         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
134036 2000-07-09  Jim Meyering  <meyering@lucent.com>
134038         * lib/Most files: Update copyright dates to include 2000.
134040 2000-07-08  Jim Meyering  <meyering@lucent.com>
134042         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
134043         if not defined.
134044         (xgethostname): Remove now-unnecessary #ifdef.
134045         Move declaration of `err' into loop where it's used.
134047 2000-07-05  Paul Eggert  <eggert@twinsun.com>
134048         and Bruno Haible  <haible@clisp.cons.org>
134050         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
134051         only if the test for an object-type mbstate_t fails.  This
134052         prevents us from mistakenly reporting that mbstate_t is a
134053         system object type after we "#define mbstate_t int" to work
134054         around its lack.
134056 2000-07-05  Paul Eggert  <eggert@twinsun.com>
134057         and Bruno Haible  <haible@clisp.cons.org>
134059         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
134061 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
134063         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
134064         to strerror_r.
134065         Include <ctype.h> for use of isalpha.
134067 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
134069         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
134070         by allocating a larger buffer. Test the gethostname return value for
134071         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
134072         returns an error and ENAMETOOLONG isn't defined.
134074 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
134076         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
134077         dimension.
134079 2000-07-04  Jim Meyering  <meyering@lucent.com>
134081         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
134082         of the deprecated AC_CHECKING.
134084 2000-07-04  Jim Meyering  <meyering@lucent.com>
134086         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
134087         Reported by Bruno Haible.
134089 2000-07-04  Jim Meyering  <meyering@lucent.com>
134091         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
134092         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
134093         lacks mbrtowc.
134095 2000-07-03  Paul Eggert  <eggert@twinsun.com>
134097         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
134098         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
134100 2000-07-03  Paul Eggert  <eggert@twinsun.com>
134101         and Bruno Haible  <haible@clisp.cons.org>
134103         * lib/quotearg.c (mbrtowc):
134104         Assign to *pwc, and return 1 only if result is nonzero.
134105         (iswprint): Use ISPRINT when substituting our own mbrtowc.
134107 2000-07-03  Jim Meyering  <meyering@lucent.com>
134109         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
134111 2000-07-03  Jim Meyering  <meyering@lucent.com>
134113         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
134114         This is necessary to get a definition of e.g., UTMP_FILE on
134115         HP-UX 10.20.
134116         From Bob Proulx.
134118 2000-07-02  Jim Meyering  <meyering@lucent.com>
134120         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
134122         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
134123         AC_LIBOBJ(function_name).
134124         * m4/chown.m4: Likewise.
134125         * m4/fnmatch.m4: Likewise.
134126         * m4/ftruncate.m4: Likewise.
134127         * m4/getgroups.m4: Likewise.
134128         * m4/getline.m4: Likewise.
134129         * m4/group-member.m4: Likewise.
134130         * m4/jm-macros.m4: Likewise.
134131         * m4/lstat.m4: Likewise.
134132         * m4/malloc.m4: Likewise.
134133         * m4/memcmp.m4: Likewise.
134134         * m4/nanosleep.m4: Likewise.
134135         * m4/putenv.m4: Likewise.
134136         * m4/realloc.m4: Likewise.
134137         * m4/regex.m4: Likewise.
134138         * m4/stat.m4: Likewise.
134139         * m4/strftime.m4: Likewise.
134141 2000-07-02  Jim Meyering  <meyering@lucent.com>
134143         * lib/quotearg.c (mbstate_t): Don't define here.
134145 2000-07-02  Jim Meyering  <meyering@lucent.com>
134147         * lib/nanosleep.c (SIGCONT): Define if not already defined.
134149 2000-07-01  Jim Meyering  <meyering@lucent.com>
134151         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
134153 2000-07-01  Jim Meyering  <meyering@lucent.com>
134155         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
134156         problem.
134158 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
134160         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
134161         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
134163 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
134165         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
134166         per change in ../m4/ls-mntd-fs.m4.
134167         (read_filesystem_list): Ignore symbolic links.
134169 2000-06-29  Jim Meyering  <meyering@lucent.com>
134171         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
134172         for declaration of strcmp.
134174         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
134176         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
134177         Avoid warning by casting result to `char *' to remove `const'.
134179 2000-06-28  Jim Meyering  <meyering@lucent.com>
134181         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
134182         included by quotearg.c, for which we perform this test.  From
134183         Bruno Haible.
134185 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
134187         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
134188         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
134189         <utmpx.h> exists, put readutmp.o into LIBOBJS.
134191 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
134193         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
134195 2000-06-26  Paul Eggert  <eggert@twinsun.com>
134197         savedir now sets errno on failure and invokes xmalloc to get memory.
134198         Fix a couple of other minor bugs while we're at it.
134200         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
134201         (NAMLEN): Remove macro.
134202         (malloc, realloc): Remove decls.
134203         (stpcpy): Likewise.
134204         ("xalloc.h"): Include.
134205         (NAME_SIZE_DEFAULT): New macro.
134206         (savedir): Use xmalloc / xrealloc to allocate memory.
134207         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
134208         Skip "" directory entries.
134209         Use strlen to calculate directory entry length, since the old method
134210         is rarely used these days and isn't worth supporting.
134211         Don't use a pointer after freeing it.
134212         Check for integer overflow when calculating allocation size.
134213         Use memcpy to copy entries, instead of stpcpy.
134214         Set errno properly when returning NULL.
134215         Check for readdir error.
134217 2000-06-26  Jim Meyering  <meyering@lucent.com>
134219         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
134221 2000-06-25  Jim Meyering  <meyering@lucent.com>
134223         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
134224         Linux header bug when _XOPEN_SOURCE is defined to 500.
134226 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
134228         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
134229         deficiency.
134231 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
134233         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
134234         Include xalloc.h.
134235         Don't include <stdlib.h>.  Don't declare malloc, realloc.
134237 2000-06-24  Jim Meyering  <meyering@lucent.com>
134239         * m4/strerror_r.m4: Revive this file -- to try out an experimental
134240         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
134241         for which strerror does return char*, but which lacks a conveniently
134242         accessible declaration of the function.  If the compile-test says
134243         strerror_r doesn't work, then resort to a `run'-test that works on
134244         BeOS and segfaults on DEC Unix.
134246 2000-06-24  Jim Meyering  <meyering@lucent.com>
134248         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
134250 2000-06-23  Paul Eggert  <eggert@twinsun.com>
134252         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
134253         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
134255 2000-06-23  Paul Eggert  <eggert@twinsun.com>
134257         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
134258         (mbrtowc, mbstate_t): Define substitutes if
134259         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
134260         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
134261         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
134263 2000-06-23  Jim Meyering  <meyering@lucent.com>
134265         * m4/afs.m4: Add missing AC_MSG_RESULT.
134266         Reported by Bruno Haible.
134268         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
134269         Suggestion from Bruno Haible.
134271 2000-06-23  Jim Meyering  <meyering@lucent.com>
134273         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
134275 2000-06-21  Jim Meyering  <meyering@lucent.com>
134277         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
134279 2000-06-21  Jim Meyering  <meyering@lucent.com>
134281         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
134282         (noinst_HEADERS): Add getstr.h.
134284         * lib/getline.c (getstr): Move into a separate file.
134285         * lib/getstr.c (getstr): New file, extracted from getline.c, with
134286         the following changes: new parameter, delim2; both delim[12]
134287         parameters have type `int', not `char'.  The latter would lose
134288         with 8-bit delimiters.
134289         * lib/getstr.h: New file.
134291 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
134293         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
134294         than 1024, return a memory chunk of least possible size, instead
134295         of size PATH_MAX + 2. In the loop, increment the size proportionally.
134296         Use free/xmalloc instead of xrealloc to avoid copying for very long
134297         paths.
134299 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
134301         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
134302         the empty string.
134304 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
134306         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
134307         address, not strdup.  Include <stdlib.h> and don't declare free().
134309 2000-06-19  Jim Meyering  <meyering@lucent.com>
134311         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
134313 2000-06-18  Jim Meyering  <meyering@lucent.com>
134315         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
134317         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
134318         `checking whether...' message to be consistent with that of the
134319         lstat test.
134321 2000-06-18  Jim Meyering  <meyering@lucent.com>
134323         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
134324         Besides, these days every porting target provides a mkdir function.
134326         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
134327         needed. (this snippet comes from src/system.h).
134329 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
134331         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
134333 2000-06-15  Paul Eggert  <eggert@twinsun.com>
134335         * lib/human.c (adjust_value): New function.
134336         (human_readable_inexact): Apply rounding style even when
134337         printing approximate values.
134339 2000-06-14  Paul Eggert  <eggert@twinsun.com>
134341         * lib/human.c (human_readable_inexact): Allow an input block
134342         size that is not a multiple of the output block size, and vice versa.
134343         Reported by Piergiorgio Sartor.
134345 2000-06-14  Paul Eggert  <eggert@twinsun.com>
134347         * lib/getdate.y (get_date): Apply relative times after time
134348         zone indicator, not before.  Reported by Todd A. Jacobs.
134350 2000-06-13  Jim Meyering  <meyering@lucent.com>
134352         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
134354         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
134356 2000-06-12  Paul Eggert  <eggert@twinsun.com>
134358         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
134360 2000-06-12  Jim Meyering  <meyering@lucent.com>
134362         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
134363         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
134364         optional argument.
134365         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
134366         the optional argument, `lib'.
134368 2000-06-08  Jim Meyering  <meyering@lucent.com>
134370         * m4/largefile.m4: Remove file (now that it's part of autoconf).
134372 2000-06-04  Paul Eggert  <eggert@twinsun.com>
134374         Rewrite largefile configuration so that we don't need to run
134375         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
134376         AC_CANONICAL_HOST in configure.in -- jmm]
134378         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
134379         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
134380         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
134381         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
134382         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
134383         All uses changed.
134384         Instead of inspecting the output of getconf, try to compile the
134385         test program without and with the macro definition.
134386         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
134387         for getconf.  Instead, check for the needed flags by compiling
134388         test programs.
134390 2000-06-04  Paul Eggert  <eggert@twinsun.com>
134392         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
134394 2000-06-04  Jim Meyering  <meyering@lucent.com>
134396         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
134397         SunOS 4.1.4 for which gid_t is an unsigned type.
134399 2000-06-03  Jim Meyering  <meyering@lucent.com>
134401         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
134402         now that autoconf requires that.
134404         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
134405         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
134406         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
134408 2000-06-03  Jim Meyering  <meyering@lucent.com>
134410         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
134412 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
134414         * m4/glibc21.m4: New file.
134415         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
134417 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
134419         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
134420         newer, don't install charset.alias.
134421         * lib/config.charset: Change the Linux/glibc rules so they become empty
134422         on glibc-2.1 or newer.
134424 2000-06-02  Jim Meyering  <meyering@lucent.com>
134426         * lib/mountlist.c: Back out last change.  Instead, do this...
134427         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
134428         me_dummy member using the same `ignore'-testing code.
134429         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
134430         fs_type strings.
134431         From Mark D. Roth.
134433 2000-05-29  Jim Meyering  <meyering@lucent.com>
134435         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
134436         mounts with the `ignore' attribute.  Based on a patch from
134437         Mark D. Roth.
134439 2000-05-28  Jim Meyering  <meyering@lucent.com>
134441         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
134442         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134443         * m4/stat.m4: Likewise.
134444         * m4/lstat.m4: Likewise.
134445         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
134447         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
134448         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
134450 2000-05-26  Jim Meyering  <meyering@lucent.com>
134452         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
134454 2000-05-24  Jim Meyering  <meyering@lucent.com>
134456         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
134457         autoconf requires that.
134458         * m4/lib-check.m4: Likewise.
134459         * m4/jm-macros.m4: Likewise.
134460         * m4/strftime.m4: Likewise.
134462         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
134463         AC_CHECK_DECLS, now that autoconf requires that.
134465 2000-05-22  Jim Meyering  <meyering@lucent.com>
134467         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134468         * m4/lstat.m4: Likewise.
134470 2000-05-22  Jim Meyering  <meyering@lucent.com>
134472         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
134474 2000-05-20  Jim Meyering  <meyering@lucent.com>
134476         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
134477         (jm_PREREQ): Use it.
134479 2000-05-18  Jim Meyering  <meyering@lucent.com>
134481         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
134482         back, too, since it may have been modified by allocate_entry.
134483         (hash_delete): Rewrite to use neither the assignment operator
134484         nor the comma operator in an if-expression.
134486 2000-05-15  Paul Eggert  <eggert@twinsun.com>
134488         * lib/closeout.c:
134489         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
134490         Remove; no longer needed.
134491         "quotearg.h": Add include.
134492         (file_name): Do not bother to explicitly initialize to NULL; it's less
134493         efficient on some hosts.
134494         (close_stdout_status): Remove test as to whether stdout was already
134495         closed; it breaks for the case "echo x | sort >&-".
134496         Quote file name colons.
134497         Do not assume that _("write error") lacks format strings.
134499 2000-05-15  Jim Meyering  <meyering@lucent.com>
134501         * lib/version-etc.c (version_etc_copyright): Update the copyright
134502         string used in all --version output.
134504 2000-05-14  Jim Meyering  <meyering@lucent.com>
134506         * lib/closeout.c (close_stdout_set_file_name): New function.
134507         (close_stdout_status): Use new file-scoped global.
134508         Return right away if fstat says the stdout file descriptor is invalid.
134509         * lib/closeout.h (close_stdout_set_file_name): Declare.
134511 2000-05-10  Jim Meyering  <meyering@lucent.com>
134513         * lib/closeout.c [default_exit_status]: New file-scoped variable.
134514         (close_stdout_set_status): New function.
134515         * lib/closeout.h (close_stdout_set_status): Declare.
134517 2000-05-09  Jim Meyering  <meyering@lucent.com>
134519         * m4/gettext.m4: Rename this...
134520         * m4/libintl.m4: ...to this.
134522 2000-05-08  Jim Meyering  <meyering@lucent.com>
134524         * lib/long-options.c: Don't include closeout.h.
134525         (parse_long_options): Don't call close_stdout for --version.
134527 2000-05-06  Paul Eggert  <eggert@twinsun.com>
134529         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
134530         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
134531         2.1.3 bug.  This avoids a clash when files like regex.c define
134532         _GNU_SOURCE.
134534 2000-05-06  Jim Meyering  <meyering@lucent.com>
134536         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
134537         (AC_REPLACE_FUNCS): Add strnlen.
134539         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
134540         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
134542         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
134543         AC_SEARCH_LIBS call for nanosleep.
134544         (LIB_NANOSLEEP): Set and AC_SUBST.
134546 2000-05-06  Jim Meyering  <meyering@lucent.com>
134548         * lib/strnlen.c: Undefine __strnlen and strnlen.
134549         [!weak_alias]: Define __strnlen to strnlen.
134551         * lib/atexit.c: New file, from libiberty.
134553 2000-05-06  Jim Meyering  <meyering@lucent.com>
134555         * lib/closeout.c (close_stdout_status): Also check for errors on the
134556         stderr stream.
134558 2000-05-05  Jim Meyering  <meyering@lucent.com>
134560         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
134561         AC_SEARCH_LIBS call for clock_gettime.
134562         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
134564         * m4/search-libs.m4: Update from autoconf.
134566         su doesn't work on Solaris 2.6.
134567         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
134568         <shadow.h>.  Reported by Dragos Harabor.
134570 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
134572         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
134573         memcpy instead of xmalloc, xrealloc, path_concat.
134574         (locale_charset): Treat empty environment variables as absent.
134575         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
134577 2000-05-04  Jim Meyering  <meyering@lucent.com>
134579         * lib/getopt.c: Update from glibc.
134580         * lib/obstack.c: Likewise.
134581         * lib/obstack.h: Likewise.
134582         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
134583         file
134585         * lib/regex.h: Likewise.
134586         * lib/strndup.c: Likewise.
134587         * lib/strnlen.c: New file, from glibc.
134589 2000-05-03  Jim Meyering  <meyering@lucent.com>
134591         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
134593 2000-05-02  Paul Eggert  <eggert@twinsun.com>
134595         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
134596         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
134597         compile-time test, rather than inspecting host and OS, to
134598         decide whether to define _LARGEFILE_SOURCE.
134600 2000-05-01  Jim Meyering  <meyering@lucent.com>
134602         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
134604         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
134605         Based on a patch from Bruno Haible.
134607 2000-05-01  Jim Meyering  <meyering@lucent.com>
134609         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
134611 2000-04-29  Jim Meyering  <meyering@lucent.com>
134613         * lib/path-concat.c: Declare strdup only if it's not defined.
134614         * lib/canon-host.c: Likewise.
134616 2000-04-28  Jim Meyering  <meyering@lucent.com>
134618         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
134619         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
134620         is included first, then limits.h is included by locale.h by libintl.h.
134621         From John David Anglin.
134623 2000-04-25  Jim Meyering  <meyering@lucent.com>
134625         * lib/makepath.c (S_IRWXUGO): Define.
134626         (make_path): Always perform explicit chmod if MODE specifies any
134627         of the `special' permission bits.  Prompted by a bug report against
134628         install from Mate Wierdl and Joost van Baal.
134630 2000-04-18  Jim Meyering  <meyering@lucent.com>
134632         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
134633         (jm_PREREQ): Use it.
134635 2000-04-18  Jim Meyering  <meyering@lucent.com>
134637         * lib/README: New file.
134639         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
134640         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
134642 2000-04-17  Jim Meyering  <meyering@lucent.com>
134644         Get it right :-)
134645         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
134646         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
134647         Suggestion from Akim Demaille.
134649 2000-04-17  Jim Meyering  <meyering@lucent.com>
134651         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
134652         the definition of it to rpl_strftime also defined-away the system's
134653         declaration.
134655 2000-04-15  Jim Meyering  <meyering@lucent.com>
134657         Use `C' to denote so-called `contiguous' files, the same way
134658         that tar does.
134659         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
134660         (ftypelet): Use S_ISCTG.
134661         From Michael Deutschmann.
134663 2000-04-14  Jim Meyering  <meyering@lucent.com>
134665         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
134666         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
134667         clobbered.
134669 2000-04-14  Jim Meyering  <meyering@lucent.com>
134671         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
134673 2000-04-13  Jim Meyering  <meyering@lucent.com>
134675         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
134676         AH_VERBATIM to insert required #ifndef into config.h.in.
134677         Suggestion from Akim Demaille.
134679 2000-04-12  Jim Meyering  <meyering@lucent.com>
134681         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
134682         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
134683         Christian Krackowizer.
134685         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
134686         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
134687         (AC_SYS_LARGEFILE): Require.
134688         (AM_C_PROTOTYPES): Require.
134690 2000-04-08  Jim Meyering  <meyering@lucent.com>
134692         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
134693         names don't conflict.  Reported by Eli Zaretskii.
134695 2000-04-07  Jim Meyering  <meyering@lucent.com>
134697         * lib/putenv.c: Move inclusion of errno.h so it follows that of
134698         sys/types.h, to work around system header problems on AIX 3.2.5.
134699         From Bruno Haible.
134701 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
134703         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
134704         bug.  Deal with the different error behavior of Irix iconv.
134706 2000-04-05  Paul Eggert  <eggert@twinsun.com>
134708         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
134709         IRIX if the installer said otherwise.
134711 2000-04-05  Jim Meyering  <meyering@lucent.com>
134713         Portability tweaks required for ultrix4.3.
134714         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
134715         (jm_CHECK_DECLS): Add getutent to the list of functions.
134716         (_jm_DECL_HEADERS): Add utmpx.h.
134717         From John David Anglin.
134719         * m4/strftime.m4: Back out the 2000-04-02 change.
134720         Instead of that change, simply undefine putenv in the test program.
134722 2000-04-05  Jim Meyering  <meyering@lucent.com>
134724         Portability tweaks required for ultrix4.3.
134725         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
134726         getutent.
134727         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
134728         * lib/canon-host.c: Declare strdup.
134729         * lib/path-concat.c: Likewise.
134730         From John David Anglin.
134732 2000-04-04  Jim Meyering  <meyering@lucent.com>
134734         Be more DOS 8.3-friendly.
134735         * lib/ref-add.sin: Renamed from ref-add.sed.in.
134736         * lib/ref-del.sin: Renamed from ref-del.sed.in.
134737         * lib/Makefile.am: Reflect renaming.
134738         Reported by Eli Zaretskii.
134740         Use a temporary file name that won't clash with `charset.alias'
134741         in the DOS 8.3 name space.
134742         * lib/Makefile.am (charset_tmp): Define.
134743         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
134744         (uninstall-local): Likewise.
134745         Reported by Eli Zaretskii.
134747 2000-04-03  Jim Meyering  <meyering@lucent.com>
134749         * m4/gettext.m4: Fix typo in comment.
134751         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
134752         textutils/configure.in).  Suggestion from Paul Eggert.
134753         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
134755 2000-04-02  Paul Eggert  <eggert@twinsun.com>
134757         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
134758         variable in the shell rather than using putenv, which isn't
134759         portable.  This avoids the configure-time inter-test dependency
134760         on the potentially-renamed putenv function.
134762 2000-03-30  Paul Eggert  <eggert@twinsun.com>
134764         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
134765         before checking struct stat.st_blksize, so that
134766         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
134768 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134770         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
134771         since strftime.c uses HAVE_STRFTIME to decide whether to use
134772         the underlying strftime.
134774 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134776         * lib/time/strftime.c (my_strftime): Make sure we call the system
134777         strftime, not ourselves, when invoking the underlying strftime.
134779 2000-03-24  Jim Meyering  <meyering@lucent.com>
134781         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
134782         (charset_alias): Define.
134783         (install-exec-local): Factor out common code.
134784         (uninstall-local): Split lines longer than 80.
134785         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
134786         (SUFFIXES): Define.
134787         (.sed.in.sed): New rule.  Don't redirect directly to $@.
134788         (CLEANFILES): Add ref-add.sed and ref-del.sed.
134790 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
134792         * lib/config.charset: Output a line containing "Packages using this
134793         file".
134794         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
134795         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
134796         ref-del.sed): New rules.
134798 2000-03-17  Jim Meyering  <meyering@lucent.com>
134800         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
134801         Otherwise, include <strings.h>
134803 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
134805         * lib/unicodeio.c (utf8_wctomb): New function.
134806         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
134807         format instead of in UCS-4 with platform dependent endianness.
134809 2000-03-10  Jim Meyering  <meyering@lucent.com>
134811         * m4/lib-check.m4: Look for getspnam in -lgen, too.
134812         From Marco Franzen.
134814 2000-03-07  Paul Eggert  <eggert@twinsun.com>
134816         * lib/savedir.c (savedir): Work even if directory size is
134817         negative; this can happen with some screwy NFS configurations.
134819 2000-03-06  Jim Meyering  <meyering@lucent.com>
134821         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
134822         if it's NULL (because we ran out of memory).  From Bruno Haible.
134824 2000-03-05  Jim Meyering  <meyering@lucent.com>
134826         * lib/localcharset.c ("path-concat.h"): Include.
134827         (get_charset_aliases): Use path_concat instead of ANSI string
134828         concatenation.
134830         * lib/unicodeio.h (PARAMS): Define.
134831         Use it to guard prototype.
134833 2000-03-04  Jim Meyering  <meyering@lucent.com>
134835         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
134836         for lib/localcharset.c.
134838 2000-03-04  Jim Meyering  <meyering@lucent.com>
134840         * lib/Makefile.am (install-exec-local): Create $(libdir) before
134841         installing into it.
134842         (uninstall-local): Uncomment this rule so `make distcheck' works
134843         once again.
134845         * lib/unicodeio.c (<errno.h>): Include it.
134846         (errno): Declare if not defined.
134848         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
134850         * lib/config.charset: New version, incorporating remarks from a linux
134851         i18n mailing list.  From Bruno Haible.
134853 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
134855         * m4/codeset.m4: New file.
134856         * m4/iconv.m4: New file.
134857         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
134859 2000-03-03  Jim Meyering  <meyering@lucent.com>
134861         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
134863 2000-03-02  Jim Meyering  <meyering@lucent.com>
134865         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
134866         the messages come out on separate lines.
134868         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
134869         rather than jm_CHECK_DECLARATIONS.
134870         * m4/decl.m4: Remove now-unused file.
134872         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
134873         geteuid.
134875 2000-03-02  Jim Meyering  <meyering@lucent.com>
134877         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
134879 2000-03-01  Jim Meyering  <meyering@lucent.com>
134881         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
134882         * lib/unicodeio.c: Likewise.
134884 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
134886         * lib/config.charset: New file.
134887         * lib/localcharset.c: New file.
134888         * lib/unicodeio.h, lib/unicodeio.c: New files.
134889         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
134890         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
134891         (noinst_HEADERS): Add unicodeio.h.
134892         (all-local, install-exec-local, charset.alias): New targets.
134894 2000-02-28  Paul Eggert  <eggert@twinsun.com>
134896         * lib/quotearg.c (ALERT_CHAR): New macro.
134897         (quotearg_buffer_restyled): Use it.
134899 2000-02-27  Jim Meyering  <meyering@lucent.com>
134901         * m4/check-decl.m4: Add getenv to the list.
134903 2000-02-27  Jim Meyering  <meyering@lucent.com>
134905         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
134906         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
134908         * lib/backupfile.c: Guard inclusion of stdlib.h with
134909         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
134910         Declare malloc if needed.
134912         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
134913         `#ifndef HAVE_DECL..'
134914         now that autoconf always defines the HAVE_DECL_ symbols.
134915         * lib/human.c: Likewise.
134916         * lib/same.c: Likewise.
134917         * lib/strtoumax.c: Likewise.
134919         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
134920         declaration check was not run.
134921         * lib/hash.c: Likewise.
134922         * lib/human.c: Likewise.
134923         * lib/same.c: Likewise.
134924         * lib/strtoumax.c: Likewise.
134926         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
134927         `.', then first look up the entire `.'-containing string as a login
134928         name.
134930 2000-02-23  Jim Meyering  <meyering@lucent.com>
134932         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
134933         in place of my hack.
134935 2000-02-18  Paul Eggert  <eggert@twinsun.com>
134937         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
134938         (textint): New typedef.
134939         (parser_control): Member year changed from int to textint.
134940         All uses changed.
134941         (YYSTYPE): Removed; replaced by %union with int and textint members.
134942         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
134943         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
134944         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
134945         (tSNUMBER, tUNUMBER): Now of type <textintval>.
134946         (date, number, to_year): Use width of number in digits, not its value,
134947         to determine whether it's a 2-digit year, or a 2-digit time.
134948         (yylex): Store number of digits of numeric tokens.
134949         Reported by John Kendall.
134951         (parser_control): Changed from struct parser_control to typedef (for
134952         consistency).  All uses changed.
134954         (tID): Removed; not used.
134955         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
134957 2000-02-14  Paul Eggert  <eggert@twinsun.com>
134959         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
134960         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
134962 2000-02-12  Jim Meyering  <meyering@lucent.com>
134964         * lib/userspec.c (ISDIGIT): Define it.
134965         (isdigit): Remove definition.
134966         (is_number): Use ISDIGIT, not isdigit.
134967         <libintl.h>: Include.
134968         (_ and N_): Define.
134969         (parse_user_spec): Mark translatable strings.
134971 2000-02-10  Jim Meyering  <meyering@lucent.com>
134973         With these changes, nanosleep.[ch] are finally enough like the other
134974         lib/* replacement files to compile on a few more losing systems.
134976         * lib/nanosleep.h: Don't include config.h.
134977         Remove prototype from declaration of nanosleep.
134978         (PARAMS): Remove now-unneeded definition.
134979         * lib/nanosleep.c: #undef nanosleep.
134980         (rpl_nanosleep): Rename from nanosleep.
134982 2000-02-10  Jim Meyering  <meyering@lucent.com>
134984         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
134985         gnu_nanosleep to rpl_nanosleep.
134987 2000-02-09  Jim Meyering  <meyering@lucent.com>
134989         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
134990         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
134992 2000-02-08  Akim Demaille  <akim@epita.fr>
134994         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
134995         `[' and `]' and remove uses of `changequote'.
134996         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
134997         (AC_SYS_LARGEFILE): Likewise.
134998         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
134999         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
135000         of changequote.
135001         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
135002         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
135003         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
135004         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
135006 2000-02-05  Jim Meyering  <meyering@lucent.com>
135008         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
135009         Remove explicit use of AC_HEADER_TIME.  It is required by
135010         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
135011         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
135012         in autoconf whereby the expansion of the latter ended up preceding
135013         the expansion of its prerequisite, AC_HEADER_TIME.
135014         Reported by Volker Borchert.
135016 2000-02-03  Jim Meyering  <meyering@lucent.com>
135018         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
135020 2000-02-03  Jim Meyering  <meyering@lucent.com>
135022         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
135023         rather than with `#if HAVE_UTMPNAME'.
135025 2000-02-02  Jim Meyering  <meyering@lucent.com>
135027         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
135028         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
135029         Reported by Eli Zaretskii.
135031 2000-02-01  Jim Meyering  <meyering@lucent.com>
135033         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
135035 2000-01-31  Jim Meyering  <meyering@lucent.com>
135037         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
135038         functions.  Add the time.h and sys/time.h headers along with the
135039         AC_REQUIRE'ment of AC_HEADER_TIME.
135041 2000-01-31  Jim Meyering  <meyering@lucent.com>
135043         * lib/nanosleep.h (nanosleep): Guard declaration with
135044         `#if ! HAVE_DECL_NANOSLEEP'.
135045         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
135046         the declaration in that vendor's sys/timers.h.
135047         Reported by Christian Krackowizer.
135049         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
135050         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
135051         (ISPRINT): Likewise.
135052         Reported by Tom Tromey.
135054 2000-01-30  Jim Meyering  <meyering@lucent.com>
135056         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
135058         * m4/prereq.m4 (utmp_includes): Define.
135059         Check for ut_user and ut_name members in both struct utmpx
135060         and struct utmp.
135062 2000-01-30  Jim Meyering  <meyering@lucent.com>
135064         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
135065         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
135066         header files where only utmpx.ut_user is declared.
135068         * lib/readutmp.h (UT_USER): Define.
135070 2000-01-29  Jim Meyering  <meyering@lucent.com>
135072         * m4/lib-check.m4: New file containing library-related checks from
135073         fileutils and sh-utils (textutils had none).
135075 2000-01-28  Jim Meyering  <meyering@lucent.com>
135077         * m4/perl.m4: Change format of warning message to look more like that
135078         from the missing script.  Suggestion from François Pinard.
135080 2000-01-25  Jim Meyering  <meyering@lucent.com>
135082         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
135083         well as time.h in the compile check.
135084         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
135085         Fix typo in cross-compiling case: s/yes/no/.
135087 2000-01-23  Jim Meyering  <meyering@lucent.com>
135089         * m4/jm-macros.m4: Move df-related tests here from
135090         fileutils/configure.in
135092         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
135093         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
135095         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
135096         s/space/ac_fsusage_space/.
135097         (jm_FILE_SYSTEM_USAGE): Take two parameters.
135099         * m4/ftruncate.m4: New file (derived from part of
135100         fileutils/configure.in).
135101         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
135102         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
135104         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
135105         AC_SUBST these here, rather than just in sh-util/configure.in, so
135106         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
135107         all the same.
135108         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
135109         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
135110         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
135111         (AC_SUBST(POW_LIBM)): Likewise.
135112         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
135114 2000-01-23  Jim Meyering  <meyering@lucent.com>
135116         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
135117         obstack.c.
135119 2000-01-22  Jim Meyering  <meyering@lucent.com>
135121         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
135123         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
135125         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
135126         configure.in
135127         (AC_CHECK_HEADERS): Likewise for sh-utils.
135128         (AC_CHECK_HEADERS): Likewise for textutils.
135129         Merge the three lists of headers.
135131         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
135132         from fileutils' configure.in.
135134         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
135135         code. Moved tests into their own function (_jm_DECL_HEADERS) in
135136         check-decl.m4.
135138         * m4/check-decl.m4: Use #if rather than #ifdef.
135139         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
135140         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
135141         (_jm_DECL_HEADERS): Define new function.
135142         (jm_CHECK_DECLARATIONS): Require it.
135144 2000-01-22  Jim Meyering  <meyering@lucent.com>
135146         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
135147         [! HAVE_DECL_STRTOULL]: Declare strtoull.
135148         Required for some AIX systems.  Reported by Christian Krackowizer.
135149         [TESTING] (main): New function.
135151         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
135152         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
135153         letters.
135155         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
135156         iswprint.
135158         * lib/strverscmp.c (ISDIGIT): Define.
135159         (strverscmp): Use ISDIGIT, not isdigit.
135161 2000-01-19  Jim Meyering  <meyering@lucent.com>
135163         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
135164         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
135165         defines `struct timespec' in <sys/time.h>
135167         * m4/c-bs-a.m4: Remove uses of changequote altogether.
135168         Thanks to Akim for explaining.
135170 2000-01-17  Paul Eggert  <eggert@twinsun.com>
135172         * lib/nanosleep.c (nanosleep):
135173         Don't use SA_INTERRUPT to decide whether to call sigaction, as
135174         POSIX.1 doesn't require SA_INTERRUPT and some systems
135175         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
135176         it's been part of POSIX.1 since day 1 (in 1988).
135178 2000-01-17  Jim Meyering  <meyering@lucent.com>
135180         * lib/interlock: Remove unused file.  Reported by François Pinard.
135182 2000-01-16  Paul Eggert  <eggert@twinsun.com>
135184         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
135185         alert, backslash, formfeed, and vertical tab unnecessarily in
135186         shell quoting style.
135188 2000-01-16  Jim Meyering  <meyering@lucent.com>
135190         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
135191         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
135192         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
135193         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
135195 2000-01-16  Jim Meyering  <meyering@lucent.com>
135197         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
135198         because the latter didn't work.
135200 2000-01-15  Jim Meyering  <meyering@lucent.com>
135202         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
135203         (AC_REPLACE_FUNCS): Add memcpy and memset.
135204         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
135205         Add strpbrk.
135206         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
135208 2000-01-12  Jim Meyering  <meyering@lucent.com>
135210         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
135211         (jm_PREREQ): Use it.
135212         (jm_PREREQ_READUTMP): New macro.
135213         (jm_PREREQ): Use it.
135215 2000-01-11  Paul Eggert  <eggert@twinsun.com>
135217         Quote multibyte characters correctly.
135218         * m4/c-bs-a.m4: New file.
135219         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
135220         (jm_PREREQ): Use it.
135222 2000-01-11  Paul Eggert  <eggert@twinsun.com>
135224         * m4/uintmax_t.m4: Port to autoconf 2.13.
135226 2000-01-08  Jim Meyering  <meyering@ascend.com>
135228         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
135229         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
135231 2000-01-04  Jim Meyering  <meyering@ascend.com>
135233         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
135234         jm_STRUCT_DIRENT_D_TYPE.
135235         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
135236         jm_STRUCT_DIRENT_D_INO.
135237         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
135238         jm_STRUCT_UTIMBUF.
135239         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
135240         renamings.
135241         * m4/utime.m4: Likewise.
135243         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
135244         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
135246 2000-01-03  Paul Eggert  <eggert@twinsun.com>
135248         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
135249         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
135251 2000-01-02  Jim Meyering  <meyering@ascend.com>
135253         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
135254         remember if this is necessary.
135256 1999-12-26  Jim Meyering  <meyering@ascend.com>
135258         * m4/jm-macros.m4: Use it here.
135259         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
135261 1999-12-23  Jim Meyering  <meyering@ascend.com>
135263         * m4/jm-macros.m4: Check for clock_gettime (moved from
135264         fileutils/configure.in)
135265         Check for gettimeofday.
135267 1999-12-20  Jim Meyering  <meyering@ascend.com>
135269         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
135270         autoconf-2.14a-1999-12-20.
135272 1999-12-19  Jim Meyering  <meyering@ascend.com>
135274         * m4/lstat-slash.m4: New file.
135275         * m4/jm-macros.m4: Use the new macro:
135276         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
135278 1999-12-07  Jim Meyering  <meyering@ascend.com>
135280         * m4/perl.m4: Require that File::Compare be available, too.
135281         Too many systems seem to lack it.
135283         * m4/strftime.m4: Add checks for most of the cpp macros tested in
135284         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
135286 1999-11-18  Paul Eggert  <eggert@twinsun.com>
135288         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
135289         problem with the QNX 4.25 shell, which doesn't propagate exit
135290         status of failed commands inside shell assignments.
135292 1999-11-17  Jim Meyering  <meyering@ascend.com>
135294         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
135296 1999-11-07  Jim Meyering  <meyering@ascend.com>
135298         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
135300 1999-11-06  Jim Meyering  <meyering@ascend.com>
135302         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
135303         * m4/jm-macros.m4 (jm_MACROS): Use it here.
135305 1999-11-05  Jim Meyering  <meyering@ascend.com>
135307         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
135308         configure.in of textutils, fileutils, and sh-utils into this one
135309         (shared between those packages) file.
135310         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
135311         AC_STRUCT_ST_BLKSIZE.
135313 1999-11-03  Jim Meyering  <meyering@ascend.com>
135315         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
135316         of AC_CHECK_TYPE checks includes unistd.h.
135317         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
135318         Suggestion from Akim Demaille.
135320 1999-10-30  Jim Meyering  <meyering@ascend.com>
135322         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
135323         m4-quoted string.
135324         * m4/ls-mntd-fs.m4: Likewise.
135325         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
135326         * m4/jm-winsz1.m4: Likewise.
135328         * m4/const.m4: Remove file, since the fix made it into the experimental
135329         version of autoconf.
135330         * m4/mktime.m4: Likewise.
135332         * m4/check-type.m4: Remove file, now that the latest version of
135333         AC_CHECK_TYPE takes a third arg to specify additional #includes.
135335         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
135336         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
135337         AC_CHECK_TYPE.
135339 1999-10-04  Jim Meyering  <meyering@ascend.com>
135341         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
135343 1999-09-22  Paul Eggert  <eggert@twinsun.com>
135345         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
135346         2.95.1 bug with HP-UX 10.20.
135348 1999-09-17  Jim Meyering  <meyering@ascend.com>
135350         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
135351         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
135352         due to missing strdup (against sh-utils-2.0).
135354 1999-08-29  Jim Meyering  <meyering@ascend.com>
135356         * m4/jm-macros.m4: Require jm_BISON.
135357         * m4/bison.m4: New file.
135359 1999-08-17  Paul Eggert  <eggert@twinsun.com>
135361         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
135362         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
135364 1999-08-05  Jim Meyering  <meyering@ascend.com>
135366         * m4/getline.m4: Rename test file from conftestdata to conftest.data
135367         to avoid conflicts with `conftest' on 8+3 filesystems.
135368         Suggestion from Eli Zaretskii.
135370 1999-08-04  Jim Meyering  <meyering@ascend.com>
135372         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
135373         fileutils and sh-utils (textutils's getline test was inadequate).
135374         (AM_FUNC_GETLINE): Run this test.
135375         (AC_CHECK_FUNCS): Check for getdelim.
135376         Reported by Bob Proulx.
135378 1999-08-02  Jim Meyering  <meyering@ascend.com>
135380         * m4/jm-macros.m4: Add a comment.
135382 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135384         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
135385         <inttypes.h> defines strtoumax as a macro (and not as a
135386         function).
135388 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135390         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
135391         that we can shift, multiply and divide unsigned long long
135392         values; Ultrix cc can't do it.
135394 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135396         * m4/mktime.m4: New file, which is a preview of what should appear
135397         in the next public autoconf release.
135399 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135401         * m4/lfs.m4: Remove this file.
135402         * m4/largefile.m4: New file.  It contains the old contents of
135403         lfs.m4, except that all names with prefix AC_LFS have been
135404         changed to use the prefix AC_SYS_LARGEFILE instead, to be
135405         compatible with future autoconf versions.  Also, some minor m4
135406         quoting problems have been fixed.
135408 1999-08-01  Paul Eggert  <eggert@twinsun.com>
135410         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
135411         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
135412         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
135413         and simplify the shell code.
135415 1999-08-01  Jim Meyering  <meyering@ascend.com>
135417         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
135418         m4.
135420 1999-07-20  Jim Meyering  <meyering@ascend.com>
135422         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
135424 1999-07-15  Jim Meyering  <meyering@ascend.com>
135426         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
135428 1999-05-22  Jim Meyering  <meyering@ascend.com>
135430         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
135432 1999-05-20  Jim Meyering  <meyering@ascend.com>
135434         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
135435         Add a colon after each `then' in case $4 is empty.
135437 1999-05-16  Jim Meyering  <meyering@ascend.com>
135439         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
135441 1999-05-10  Jim Meyering  <meyering@ascend.com>
135443         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
135445         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
135446         AC_FUNC_MKTIME.
135448 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
135450         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
135452 1999-05-04  Paul Eggert  <eggert@twinsun.com>
135454         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
135455         not CPPFLAGS, so that linking works correctly in IRIX.
135457 1999-04-30  Paul Eggert  <eggert@twinsun.com>
135459         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
135461 1999-04-20  Paul Eggert  <eggert@twinsun.com>
135463         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
135464         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
135465         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
135466         jm_AC_TYPE_UNSIGNED_LONG_LONG.
135467         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
135469         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
135471 1999-04-20  Jim Meyering  <meyering@ascend.com>
135473         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
135474         AC_REPLACE xstroull if necessary.  From Paul Eggert.
135475         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
135477 1999-04-18  Jim Meyering  <meyering@ascend.com>
135479         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
135480         * m4/jm-macros.m4: Use it.
135482 1999-04-06  Jim Meyering  <meyering@ascend.com>
135484         * m4/strftime.m4: Remove test for %f.
135486 1999-03-29  Jim Meyering  <meyering@ascend.com>
135488         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
135489         superset of the AC_TYPE_* checks in the textutils, fileutils,
135490         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
135491         AC_TYPE_PID_T.
135493 1999-03-28  Jim Meyering  <meyering@ascend.com>
135495         * m4/jm-macros.m4: Define GNU_PACKAGE here.
135496         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
135497         replaced e.g., in the *.sh files of the sh-utils.
135499 1999-03-20  Jim Meyering  <meyering@ascend.com>
135501         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
135502         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
135503         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
135505 1999-03-19  Jim Meyering  <meyering@ascend.com>
135507         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
135509 1999-03-12  Jim Meyering  <meyering@ascend.com>
135511         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
135513 1999-03-07  Jim Meyering  <meyering@ascend.com>
135515         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
135516         declared.
135518 1999-02-17  Jim Meyering  <meyering@ascend.com>
135520         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
135521         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
135523 1999-02-07  Jim Meyering  <meyering@ascend.com>
135525         * m4/group-member.m4: New file -- extracted from sh-utils'
135526         configure.in.
135528         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
135529         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
135531 1999-02-06  Jim Meyering  <meyering@ascend.com>
135533         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
135534         * m4/fnmatch.m4: Likewise.
135535         * m4/getgroups.m4: Likewise.
135536         * m4/lstat.m4: Likewise.
135537         * m4/malloc.m4: Likewise.
135538         * m4/putenv.m4: Likewise.
135539         * m4/realloc.m4: Likewise.
135540         * m4/regex.m4: Likewise.
135541         * m4/stat.m4: Likewise.
135542         * m4/strftime.m4: Likewise.
135543         Suggestion from Alain Magloire.
135545         * m4/chown.m4: Use `.$ac_objext', not `.o'.
135546         * m4/fnmatch.m4: Likewise.
135547         * m4/getgroups.m4: Likewise.
135548         * m4/getline.m4: Likewise.
135549         * m4/lstat.m4: Likewise.
135550         * m4/malloc.m4: Likewise.
135551         * m4/memcmp.m4: Likewise.
135552         * m4/putenv.m4: Likewise.
135553         * m4/realloc.m4: Likewise.
135554         * m4/regex.m4: Likewise.
135555         * m4/stat.m4: Likewise.
135556         * m4/strftime.m4: Likewise.
135557         Suggestion from Alain Magloire.
135559         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
135560         an argument.
135562         * m4/regex.m4: Add a run-time Test for proper operation of
135563         re_compile_pattern.
135565 1999-01-31  Jim Meyering  <meyering@ascend.com>
135567         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
135569 1999-01-30  Jim Meyering  <meyering@ascend.com>
135571         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
135573         * m4/jm-mktime.m4: Make this a wrapper around the official
135574         AM_FUNC_MKTIME rather than my private copy, now that the official one
135575         is up to date.
135576         * m4/mktime.m4: Remove file.
135578         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
135579         * m4/uptime.m4: Likewise.
135580         * m4/uintmax_t.m4: Likewise.
135582 1999-01-28  Jim Meyering  <meyering@ascend.com>
135584         * m4/jm-macros.m4: Use jm_AFS.
135585         * m4/afs.m4: New file (from fileutils' configure.in).
135587         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
135588         * m4/chown.m4: Likewise.
135589         * m4/d-ino.m4: Likewise.
135590         * m4/d-type.m4: Likewise.
135591         * m4/fnmatch.m4: Likewise.
135592         * m4/getgroups.m4: Likewise.
135593         * m4/gettext.m4: Likewise.
135594         * m4/jm-mktime.m4: Likewise.
135595         * m4/jm-winsz2.m4: Likewise.
135596         * m4/lcmessage.m4: Likewise.
135597         * m4/ls-mntd-fs.m4: Likewise.
135598         * m4/malloc.m4: Likewise.
135599         * m4/memcmp.m4: Likewise.
135600         * m4/putenv.m4: Likewise.
135601         * m4/realloc.m4: Likewise.
135602         * m4/st_mtim.m4: Likewise.
135603         * m4/strftime.m4: Likewise.
135605 1999-01-16  Jim Meyering  <meyering@ascend.com>
135607         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
135608         (ARGMATCH_DIE_DECL): Define.
135610 1999-01-12  Jim Meyering  <meyering@ascend.com>
135612         * m4/Makefile.am.in: Rewrite to avoid using fmt.
135613         Reported by Lars Hecking.
135615 1999-01-10  Jim Meyering  <meyering@ascend.com>
135617         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
135618         gross kludge.
135619         * m4/inttypes_h.m4: Likewise.
135620         * m4/lstat.m4: Likewise.
135621         * m4/malloc.m4: Likewise.
135622         * m4/readdir.m4: Likewise.
135623         * m4/realloc.m4: Likewise.
135624         * m4/st_dm_mode.m4: Likewise.
135625         * m4/stat.m4: Likewise.
135626         * m4/utimbuf.m4: Likewise.
135627         * m4/utimes.m4: Likewise.
135629         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
135630         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
135631         comments in config.h.in are meaningful.
135633         * m4/jm-macros.m4: Require autoconf-2.13 here.
135635         * m4/regex.m4: By default, don't use the included regex.c on systems
135636         with glibc 2.  Suggestion from Uli Drepper.
135638 1999-01-02  Jim Meyering  <meyering@ascend.com>
135640         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
135642 1998-12-18  Jim Meyering  <meyering@ascend.com>
135644         * m4/Makefile.am.in (Makefile.am): Simplify rule.
135645         Based on a suggestion from Lars Hecking.
135647 1998-11-16  Paul Eggert  <eggert@twinsun.com>
135649         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
135651 1998-11-16  Jim Meyering  <meyering@ascend.com>
135653         * m4/lfs.m4: Double-quote the `uname...` expression.
135655 1998-11-14  Jim Meyering  <meyering@ascend.com>
135657         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
135658         * m4/stat.m4: Likewise.
135660 1998-11-03  Jim Meyering  <meyering@ascend.com>
135662         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
135663         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
135665 1998-10-18  Jim Meyering  <meyering@ascend.com>
135667         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
135669 1998-10-17  Jim Meyering  <meyering@ascend.com>
135671         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
135672         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
135673         calls for those previously hard-coded headers.  Instead, take a new
135674         parameter.
135675         (jm_CHECK_DECLARATIONS): Reflect interface change.
135676         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
135677         (jm_CHECK_DECL_LOCALTIME_R): New macro.
135679         * m4/mktime.m4: Test for spring-forward gap before long-running test.
135681 1998-10-14  Jim Meyering  <meyering@ascend.com>
135683         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
135684         instead of "TZ=America/Vancouver".  From Paul Eggert.
135686 1998-10-11  Jim Meyering  <meyering@ascend.com>
135688         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
135689         This adds a test for a recently added compatibility fix for mktime.c.
135690         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
135692 1998-09-27  Jim Meyering  <meyering@ascend.com>
135694         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
135696         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
135697         ../configure.in, including a change from Gordon Matzigkeit to allow
135698         cross-compiling for the Hurd.
135700         * m4/glibc.m4: New file/macro to test for the GNU C Library
135701         versions 1 and 2.  From Gordon Matzigkeit.
135702         Indent.
135704 1998-09-21  Jim Meyering  <meyering@ascend.com>
135706         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
135708 1998-08-18  Paul Eggert  <eggert@twinsun.com>
135710         Port nanosecond-resolution times to UnixWare 2.1.2 and
135711         pedantic Solaris 2.6.
135713         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
135714         AC_STRUCT_ST_MTIM.
135715         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
135716         Generate name of ns member, instead of just 1 or undef.
135717         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
135719 1998-08-15  Jim Meyering  <meyering@ascend.com>
135721         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
135722         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
135723         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
135724         instead of jm_TYPE_SSIZE_T.
135726 1998-08-12  Jim Meyering  <meyering@ascend.com>
135728         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
135730 1998-08-02  Jim Meyering  <meyering@ascend.com>
135732         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
135733         in acconfig.h manually.
135735 1998-07-31  Paul Eggert  <eggert@twinsun.com>
135737         * m4/st_mtim.m4: New file.
135739 1998-07-28  Jim Meyering  <meyering@ascend.com>
135741         * m4/utimes.m4: Undef stat.
135743 1998-07-25  Jim Meyering  <meyering@ascend.com>
135745         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
135746         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
135748 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
135750         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
135751         uid and gid actually remain unchanged.
135753 1998-07-07  Jim Meyering  <meyering@ascend.com>
135755         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
135757 1998-07-04  Jim Meyering  <meyering@ascend.com>
135759         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
135760         to prove that this macro can be used in packages without regex.c.
135762 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
135764         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
135765         is to be used.
135767 1998-07-03  Jim Meyering  <meyering@ascend.com>
135769         * m4/gettext.m4: Add -lintl if it's found to be necessary.
135771         * m4/gettext.m4: New file -- from gettext-0.10.35.
135772         * m4/lcmessage.m4: Likewise.
135773         * m4/progtest.m4: Likewise.
135775         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
135776         * m4/jm-macros.m4: Require the new macro.
135778 1998-06-29  Jim Meyering  <meyering@ascend.com>
135780         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
135781         for the definition of NGROUPS (used in a system header included
135782         by sys/mount.h).
135784 1998-06-28  Jim Meyering  <meyering@ascend.com>
135786         * m4/ls-mntd-fs.m4: New file.
135787         * m4/fstypename.m4: New file.
135789         * m4/jm-macros.m4: Require the new macro.
135790         * m4/jm-glibc-io.m4: New file.
135792 1998-05-19  Jim Meyering  <meyering@ascend.com>
135794         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
135795         * m4/lchown.m4: New file.
135797         * m4/Makefile.am.in: New file.
135798         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
135800 1998-05-14  Jim Meyering  <meyering@ascend.com>
135802         * m4/Makefile.am (EXTRA_DIST): Add them.
135803         * m4/jm-macros.m4: New file.
135804         * m4/utimbuf.m4: New file.
135806 1998-05-12  Jim Meyering  <meyering@ascend.com>
135808         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
135810 1998-05-11  Jim Meyering  <meyering@ascend.com>
135812         * m4/isc-posix.m4: New file.
135814 1998-05-10  Jim Meyering  <meyering@ascend.com>
135816         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
135818 1998-05-09  Jim Meyering  <meyering@ascend.com>
135820         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
135821         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
135822         with automake.
135824         * m4/ssize_t.m4: New file.
135825         * m4/mktime.m4: Remove file -- the new automake has this now.
135827 1998-04-26  Jim Meyering  <meyering@ascend.com>
135829         * m4/assert.m4: New file.
135830         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
135832 1998-04-05  Jim Meyering  <meyering@ascend.com>
135834         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
135835         (jm_PREREQ): Use it here.
135837 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
135839         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
135840         in acconfig.h.
135842 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
135844         * m4/prereq.m4: New file.
135845         * m4/error.m4: New file.
135846         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
135848 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
135850         * m4/getline.m4: Don't set am_cv_func_working_getline before the
135851         cache-check for the same variable -- that defeated the purpose of
135852         the test; the test program was never run.  This was a problem only
135853         on systems with losing getline functions -- HP-UX 10.20 is one.
135854         Reported by Bjorn Helgaas.
135856 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
135858         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
135860 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
135862         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
135864         * m4/const.m4: New file.  Use an initializer in this declaration
135865         typedef int charset[2]; const charset x;
135866         Reported by Bob Glickstein.
135868 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
135870         * m4/chown.m4: Fix reversed types on -1 args to chown.
135871         From Kaveh Ghazi.
135873 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
135875         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
135876         Add lseek and memchr.
135878         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
135879         T.E.Dickey <dickey@clark.net> said that some older preprocessors
135880         have a 20-character limit on names.
135882 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
135884         * m4/inttypes_h.m4: New file.
135885         * m4/uintmax_t.m4: New file.
135886         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
135889         -----
135891         Local Variables:
135892         coding: utf-8
135893         End:
135895         Copyright (C) 1997-2021 Free Software Foundation, Inc.
135897         Copying and distribution of this file, with or without
135898         modification, are permitted provided the copyright notice
135899         and this notice are preserved.